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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Je,Mp3,DbH,Dc,Sp,NRc,PGG,G8,jp,S8b,Zpp,k8b,pp,TRp,Ice,mw,lcR,G8n,tp8,pYY,mb0,gon,noR,Hpe,ce8,Kw8,zt,q83,Sa,Wwc,kp,ac3,Bu,Tt,Eob,fcp,gg,nv,Aep,Ma8,z20,dg,R28,DBb,Ng8,S$n,JSR,$p,ktp,Tge,e2G,NN,Qk8,UB8,vpH,Gtb,wuG,Ds,opp,Ji,XuH,lV8,gp8,npo,h2w,O5,cSo,Hvc,dBn,K$H,$Be,q$o,W$H,Ep0,fV0,ivc,bvH,Mm3,Nln,S5o,PwG,s5,Zw8,IsR,oG8,lsp,vGp,Qve,Gc3,UNn,hi,uQn,ct,dl,Kw,wt8,$G,jv0,xNp,tm0,E5,pto,FdY,mNR,svo,gGR,nGw,hw8,yip,Wt,cip,Kdo,bw,ul3,Vmp,ME,LdG,Cwp,q5c,bw3,Mq0,zi3,Z3e,DEG,BiR,Tio,Ido,X4Y,ld8,GAw,p4e,nq0,
crn,WA8,v4,Vq0,fd8,LAY,p3,Fq,mA,us,qE,JGG,NVc,PYp,kT8,OS8,JG,TVn,DD,Ny,Py,SX,oj8,Xyp,lDG,ene,Qo0,vj8,GTw,wyn,xy3,joe,TT,OI,pyp,FWY,YIc,gjc,my0,so8,njc,hnp,vy,GT,xj,tG,pS,HS3,F4,dyb,WWR,mW,aDp,VXo,EjY,sI,fD8,LWo,AGn,nS,bSw,ya,zDY,JA8,Hy,Dxw,RDH,Nu3,Pv0,Sa0,ZOc,qy,k$8,BuH,Wy,OOp,Tuc,ao,Va,EI,fS,Io8,XjG,orR,LS,eD8,Q$o,UxH,iY,bY,rV,Mx,z$,JA,vrw,G$H,xxH,tUn,j$G,pjY,Fa0,Yap,mxH,gr3,s$o,nr3,hDc,yAc,Do,HOR,cAp,SU,dxb,Bj,T$,Kao,qap,Wa8,aop,Ere,foe,LaG,bO3,rA8,MJb,zBp,JKH,RB8,D$R,ZWw,lv,kze,BSc,OWp,TS8,I0p,
oFY,l0n,YC8,m$w,gFc,hBw,yK3,tA,HWp,KqR,qCR,WqG,a08,VJb,EF8,f00,Lq3,AKR,Cmb,bWY,$$o,rKR,MP8,zSo,JP0,RS3,DaR,Nfe,P0p,SZ8,OqG,kk8,oEe,Tf3,IZ8,eSH,Q4R,Uan,Xl8,Gkb,lZe,xae,Wj,tPp,a$,fO,j4Y,Ftn,YZc,s4p,qZp,hSc,nE8,Hqn,dap,yPH,Lt8,VPp,APo,iqp,C0G,bqp,rPn,zLY,Mfb,Jg8,RLp,DHp,N33,SRp,k4o,B3G,OhR,INw,T3n,jX3,CO,pW0,YR8,mHc,gyc,sX8,ny8,yg8,Hh8,cgn,D0,N$,dHH,aNY,Z0,kF,LFb,ih3,P9p,I2,kw8,BQ8,oNb,TQ0,IRc,UC,XJe,lR3,HKe,cFY,dC3,Kop,$Ce,uhn,q78,aRw,Vzw,fRo,ENG,iKp,YF,sC,bKY,rFp,MW8,zXn,Joc,RXR,Nc0,SyR,PDb,Vs,fW,
eXY,CW,xc8,tW8,bm,pIo,jHe,How,coY,dcp,$cG,aGc,E_p,fGw,L20,Aop,CDR,roR,MIG,JP,JL8,NPo,PWc,SBo,ZcR,BPw,Dp8,zAo,kF8,DZ,TPp,lhR,o4w,ZZ,Qfc,v4G,GF3,wbw,xp8,Tk,tIp,pb0,jf8,Fhb,mpH,X8,cLb,Kho,uSp,WhY,UZ,VIH,wf,tP,xE,AL3,aho,icR,F8,M_8,gf,sZ,RJ3,P40,Z4G,kSH,BXp,nq,O43,y8,TX0,o2H,XNe,l3o,eJn,USn,cl,v23,GS8,u0,a4,t_n,jOe,pNp,F6n,g2H,sO0,hJp,y1n,qFb,W6p,K6n,V_o,E2p,f38,z4,RX,DN,C48,b4p,ZN,r1R,Mnn,zMo,JuG,DIc,NMp,PSo,SK3,RM8,Zup,T4,BMY,TM3,IX,OuR,IQc,ki8,ol8,XT,lQn,eMR,QTn,UIY,Gi0,vlR,wse,jTw,xIY,F48,hMb,Hu8,
cuG,K4e,qK8,ujG,$I0,W4p,Vnb,fQn,Ele,Auw,jf,CSH,buH,rub,M98,P3c,NER,SfH,ZY3,g3,sR,kVn,OYH,ILb,lLn,Qnn,e48,r3,Usw,TEo,pvb,Yfe,msY,gQ8,DR,sn3,h4H,cdG,$s3,KVH,aLw,V9e,EQ0,fL0,Adp,Mg0,iYY,bYR,rdR,zbR,JNG,Dve,RbG,PdY,NAo,ez,Shp,krY,BAp,ofw,jz,pK,XA0,l8p,Fh,vfp,s7,nK,hF,tgn,yy,Fpn,dQ,Yhb,mvH,gfY,ss3,u9,nfG,hbH,yNp,cN8,Kpe,qhw,a8o,CK,Vgb,Ef8,f83,LpH,AN3,iDw,CdH,bD3,Mc,z8o,J98,R83,DGw,NBn,P78,SAc,ZXn,khw,BBp,OXo,TBG,ISo,ZG,jzY,pPH,k_,BI,Oy,FQ8,YAc,mGY,gVn,szw,nVR,h80,KQo,$Gc,ukn,qAp,WQc,XJ,eW,QS,Uy,x_,to,
jW,Ve8,FJ,fSc,Y_,LQo,A9w,m2,iXw,C70,bXp,SVc,kpb,oz0,QuH,efe,ZdR,U3p,wU0,cJY,YVw,qVY,gz0,uw0,Wxn,cI,VNY,Ko,fEw,Lxb,idp,Cap,bdH,M5b,qc,JhR,Rtn,Dfw,Nvc,P5G,SU3,Ze8,ztG,Oeb,TvG,Ifp,aH,UfY,vSp,QE8,w5w,xfw,jEp,p58,t5b,hte,Hep,dfo,$fe,zF,ESH,V5n,C5R,rh0,Mh3,zUn,JMo,RUe,D7b,Bb,Ivn,XSn,Onp,B4p,onR,PPc,eUp,YNY,vn0,GLp,wSp,KNp,uYG,d7G,fve,cMc,N4n,Eno,U7w,FNG,$7b,lv8,Znb,SNG,kL3,T4o,HnR,FS,S3c,k_e,BZn,Ofp,TZH,G_R,FnY,Y33,uW,gCe,h$w,d6R,c_Y,$6n,uap,Wn8,VFw,aU0,ECG,Cc,fU8,Lnb,if3,A_R,bW,Jk3,zYe,M4w,Pfo,RY8,Sm0,
NFp,Zrw,MS,kyp,IKo,OrG,TFR,XXn,QZn,D3,Gyp,U9w,wX0,pXR,F38,g8p,n8o,Z3,k2,ckH,d9p,BN,OF,K3p,TS,IO,$9H,oO,uBe,XK,qmH,W3Y,e_,aKp,V4b,E88,fKb,L3G,irp,Ak0,br0,zc0,M3G,Jx8,Rce,Cfc,D5p,Sjp,P2p,rkH,ZaR,k0H,x2,Bye,Ty8,Oap,Iz8,oTH,lz8,Xfw,ecH,j_,U5Y,vTY,Qh8,wfo,x5R,t33,YjY,shY,cx0,uLo,p4,az3,V3H,FK,ETH,h1,y3,baw,sF,dX,rxo,Ms3,JvY,Rqo,No3,SDw,Zyw,kj0,Bop,IPo,QJ8,lP3,Toe,U8Y,vI8,qS,eqc,Gjc,V3,w9H,x8H,ts0,jJY,m8p,p9G,YDY,hqn,yvw,$8G,Ke3,Wec,AvH,iyb,byY,M6p,zIb,RI0,Doo,NpH,Scp,ZQp,kEe,Tp8,lko,eIp,Iko,Uob,GEo,viR,
QN3,wKH,t63,jNH,pKR,Fc8,Ycc,RT,DQ,Sn,kl,sNY,nip,yww,Kcn,Bs,OK,$op,Ti,WcR,akR,V6R,oT,iQo,MB8,JQc,RvY,DkY,Ns8,PHH,kQ8,lS,Bsp,ICn,en,ose,evp,Qyp,UkR,lCp,jy8,Yee,pRp,mkn,ns8,yQc,cQn,upo,$k8,VBH,wM,EsY,fC8,xl,Lip,tu,AQe,isY,CHn,rQp,bsp,MHY,zhe,JbG,Rh0,BqR,TqY,oep,IF8,Skp,Nq3,lFH,QIw,xDY,tHn,FvG,yb8,cbY,Yl,dD8,$Dc,u$R,WvR,fFb,iFp,rbb,Mln,z_p,J$p,Sq0,R_0,OC0,TdH,IWc,Xhw,sK,lWp,Q_c,UhH,vDc,Gap,whp,xh8,tlc,php,F8p,Hs,YqH,mh8,s_o,dM,gDG,h_G,dhY,uS,K88,$hn,uMY,aWR,Vlp,qqY,fW0,CMG,bCb,r$G,fu,MRp,DPc,NJe,Cu,ZRG,
PZn,S_Y,ORp,TJ8,Iy8,eTn,vt3,UPY,Qq0,Gxp,xPo,tR8,mPo,jqY,gtH,nto,sqp,K7b,q_o,ayY,EtH,iRY,ROc,NLp,P$3,BLY,TL8,gE,$Q,Qwb,www,GdY,tce,jwH,FTp,pw3,Yvp,m00,u3,XUw,U0Y,x03,v7p,dE,n7w,hOp,yTo,HH8,cTo,d08,KTb,uG8,qv3,WTn,apG,rE,Vcc,E73,fpe,LT8,ATY,Rs,iHe,rTH,zrn,JV8,kOb,OMH,T$8,IBb,Xc0,lBR,X2,QR0,Uj8,vBo,GO8,wc3,xjH,jRY,FRb,mjp,gBR,cVR,yVp,djR,u7p,q4R,wA,WRG,aBw,VOR,LRo,iMG,AV8,bMR,Mxw,pD,JmG,Rgp,zgo,DJ8,NN8,Sbc,kCG,ZNp,BN8,Pnc,ONp,TN3,Iu3,o9H,X2R,luc,egc,QVn,UJb,w2o,GCo,xJ8,jVc,txH,F2,p2H,mJ8,hgw,F9p,cm8,
dJp,K9R,$Je,W9Y,iNG,Cnb,rm0,ME8,ud,Dn0,ZZR,OZH,qv,Xaw,o58,l1o,V$,eyH,QQe,Unn,GNn,waw,xnH,tEG,pa0,F_p,dnw,hye,HZn,$n8,K_o,uf0,qEG,a1p,E5p,L_b,iZG,csR,$Ko,qQH,Wgo,aJ8,Vu8,EK3,Lg8,Asp,bEc,rs8,MC8,zjc,Jpp,Rjp,D4e,Nb8,Zk8,Tbb,DS,NG,PP,Se,I2Y,BP,Xgn,tCn,g1c,YP0,f2H,LGc,ApH,ej8,x4H,v1w,Clc,bke,rpp,pg3,zuG,Rup,N0w,ZxH,kWc,xV,pX,Fk,lXR,XH8,vk8,GW8,gk0,nkR,yX0,HxR,KSc,uyb,$mc,aX3,Ekp,rX3,CA8,LSc,bxw,AXG,Mbp,DAc,WP,In3,Bjp,X8o,lnp,QSG,UAn,VO,vh8,xAe,jSY,p88,YLH,FY3,LX,y3R,M3,c3n,dAn,JJ,KYG,$Ap,uPR,qL8,WYn,anb,
Vbn,Eh0,fnH,LYo,A3H,imR,C1Y,bmn,r3Y,Ru,Mtc,zdp,JU0,Rd8,DL8,NG8,Pjp,Sz0,Z9w,kM0,BG0,O9H,N3,I7o,XCw,edw,vYH,xLp,tt8,j5b,FEY,mLo,gYY,s5p,Iu,cU8,yU8,dLe,KEn,$L3,WEb,a7p,Vtb,f7G,jN,AUo,xz,Cjo,b9o,pd,rUG,MKH,zWc,JBp,gH,PLR,Zzb,Imb,T2R,Xo8,lmp,dH,eW8,QPw,vbe,woR,xVe,jP3,pob,GuY,Fmw,nbG,cBb,dVw,Kd,Kmc,$V0,VKR,uE8,Wmw,amR,CLb,fmG,bzp,MGw,JCn,RsG,DOb,N53,PV8,SOo,kg8,B5w,OUn,T5H,IqH,XeH,esH,vxG,tGp,F00,mOp,nxb,EV,hs8,yCn,HUe,cCw,dOH,$OY,uFo,qOb,W0c,aqo,VGn,Exe,fq8,L0e,ACp,iUp,bUp,CVY,zFe,RF0,AJ,Dzc,S28,PQR,
Brn,O7c,Tr8,om0,eFp,vme,UzG,lI8,xzR,wpc,Y2w,tYe,zm,ppw,H7H,sg8,nmn,hFH,y5p,c5Y,KHw,dze,Jh,RE,EmG,ube,VYG,aIY,q23,WHw,A5G,CQ3,r5G,b7b,R5H,Jjo,PI3,SWn,k1e,Bew,ZLR,OLp,IAn,Te8,XB8,QMp,OU,Ui8,vOo,xi0,YW3,yjH,IE,cjG,uoY,Vow,aA8,qWp,WJw,Q1,Aj0,EOn,fAp,iLG,bLw,CIY,z3p,J28,Dt3,N93,PX8,SsY,Z6H,B98,O6G,sU,IO8,ocp,Qx0,Ut0,c5,vcw,wLp,sxR,W5,pLH,gcp,F5e,Ys0,$t0,c2p,ug0,qsp,V1,aOc,V1p,Ec0,W5c,Le,fOo,EU,CXn,DTo,Nhc,POp,SHb,Z28,kRw,I_8,O2p,The,Bhn,XGp,Qm0,GR3,wGc,t7w,Ff3,jmn,pGc,YHb,gHp,smG,nHG,he3,yDp,H2R,dTG,JM,
$T8,Wfw,qHc,V7w,a_H,EHn,f_G,LfG,Rl,i2n,Sow,Nt0,Btb,OPo,ekp,QBR,U1b,vve,GYc,wVY,jBe,pV0,FLp,Yo3,sBG,nvo,hko,XY,d1o,cYb,HP8,yYc,qoo,$13,a68,VAw,Ev3,f6n,bPw,LLo,AYG,iPw,rYR,MDH,zZH,Cx0,GL,DUe,NCp,tM,SX8,ZAn,kf8,Pre,BCc,OAH,TCR,Itb,oap,lt8,eZp,Qpp,UU8,wZ3,Gfp,FZc,vao,jh,YX0,xUH,pZ8,spp,naH,hZR,yz8,HAp,czG,dUR,KZ8,$U0,uto,qXw,atp,VD0,Eap,LZ8,iA8,bA3,M$Y,N68,RQp,Dwp,J03,zQw,PR8,SuG,Kn,B6n,O1e,T6c,ITp,odY,Xk8,vd8,eQH,lTH,QGY,sGe,mwR,Uw8,Yun,KM8,$wH,uiH,quH,WMY,aTo,V$H,Ede,A0H,CRe,r0o,zop,J7b,Row,S98,PgG,
Z8c,B1o,Pn,I4w,oMn,X$o,l4H,ZU,kC,Ud3,w$8,Y9w,nM8,ho8,y7e,H8R,c7R,ddw,$do,q9c,usw,Wsw,Vk8,EM0,f4o,Lsn,A7G,i8p,Xa,Cgp,D2Y,Nkw,zK8,MdH,RK8,Jae,Ir8,Bk8,oWo,XE8,lro,eK0,Qdw,U2b,vn,Gbe,wE0,x28,tdH,FUH,YJ8,jdG,pE3,HJY,d2n,$2e,qJo,arG,EWY,iJ3,CKp,bJH,zze,MyG,rap,J8H,Rz8,NwH,Pk3,S08,Zg0,kDb,Bw3,Twb,Ogo,Ibp,XDb,UZ3,vJ3,GD8,wDb,tyo,j7H,pDH,Fr0,Y0p,mZ8,nJe,hzH,HgY,dZc,c8w,Kr8,y9,$Z0,uDG,q08,Wrn,fb8,EJ0,igp,CkG,M88,JtH,RHe,D_8,NDw,P6w,Srw,ZTp,kv0,BDH,OT8,Ije,TDc,oZn,X1b,ljn,eHn,Q6w,U_G,vZ0,Gvp,w1w,Wn,t8n,j6G,
p1b,FD8,m_e,s6o,nZn,hHw,ytn,HTY,ctY,KDc,$_0,qr8,aj0,EZH,iTG,LDY,fjn,At0,C6p,bT8,rtp,J4R,R6G,DFG,NIH,SdR,Zle,kl8,Ol0,BIH,TIn,Igc,oRp,e6b,QKG,UFn,vR8,Glp,w_0,jKc,p_R,zy,sKe,nRp,y4o,dFH,c4p,KOY,$Fo,Jk,DK,qd3,WO0,S4,ZK,fgY,ago,Vw0,ile,Cbp,blY,r4o,RxH,N7w,Ppc,St0,ZGY,k9e,OGG,T78,Ie8,ouo,XTo,lew,exG,Om,QF8,Uun,IZ,vu0,G98,wTG,xub,tr3,jF0,lf,e4,pTn,FXo,QL,YtR,mu3,gu3,sF0,hx8,yyG,cyY,qt8,uAp,$un,WXn,aen,iGH,fe8,LXR,Eup,AyY,vX,ry3,M2w,zN8,JqY,RN8,NKG,S6p,BK3,oUH,TK8,Gy,Obc,UYn,Go0,wrw,xY8,t2n,j1e,FlG,Y6o,mY8,
gUR,nU8,hNp,yqc,cqG,dY0,$YH,uN8,EUw,V2G,Llo,rqY,MVn,zae,JRc,NOo,Z$e,FB,Y8,k7R,BOR,O$b,TO8,oL3,Xzn,lYn,eap,UQb,G7p,wzR,xQ8,gF,tV0,j0G,YiH,mQw,sm,nr,nLe,gLY,H$n,ha8,cR8,KIc,cX,$QG,uv0,aYG,ELn,dF,LI3,AR0,i$w,CBw,b$3,rRe,Mvw,Jl3,Pe0,SpH,Bze,ZIY,kKG,OIH,XQG,TzR,o38,l5p,ePb,QDw,GKp,wQR,xl0,jDo,pQH,n3o,sDe,KP8,qp3,Lr,WP3,FFb,a5R,Vvp,f5G,iIp,Cep,Dq3,N8Y,Pu3,STR,ZBH,keG,OB0,T8n,o68,l$p,I$8,Xie,Qeb,emw,v6w,xqe,Geo,tMn,jeG,piY,F18,YTp,g6p,mqo,yOY,dqp,HB8,K1p,$qp,uu8,Rh,qTw,W1e,N5,VMG,a$b,E6e,f$R,AO0,iBw,bBG,
rOn,MZc,zC8,J6R,NUp,Zjn,Oje,BUR,TUp,Iao,law,pd8,v$n,YGo,mgn,sCn,n$0,c6Y,dg8,Kb8,$g3,u5p,aaG,VZe,E$0,fae,Lb8,A6H,ij3,bjR,zGY,JI8,RGp,DW8,Nmp,PCo,SMw,BmH,kXY,oXn,XMe,lMp,eGG,Qc8,vXH,UWn,wMw,FCb,hG8,scH,yIR,H_p,cIH,KCc,mz,uX8,hx,WCc,VSn,EXn,CC0,rIc,Jf8,De8,NYo,SnH,Z08,kq0,O0e,IlH,owH,llR,UeH,QW0,eRY,$T,Gq0,vw0,wOY,xeR,tLG,jWw,pOb,FBp,Yn0,gwp,sW8,nwR,hRH,yfp,H0e,cf3,deG,KB0,u0p,qne,i08,CyY,b0G,MTG,zE8,JHR,Na8,fa,OiG,TaG,Ii8,oPH,Xxp,La,Ax,EC,i2,b2,xMp,pxb,YxR,FjH,M8,mMe,gPG,sUw;
_.Mb=function(M,z){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Mb);else{var J=Error().stack;J&&(this.stack=J)}M&&(this.message=String(M));z!==void 0&&(this.cause=z)};
Je=function(){throw Error("E");};
Mp3=function(M,z){z=String.fromCharCode.apply(null,z);return M==null?z:M+z};
DbH=function(M){var z=!1;z=z===void 0?!1:z;if(z0b){if(z&&(Jec?!M.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(M)))throw Error("F");M=(R0b||(R0b=new TextEncoder)).encode(M)}else{for(var J=0,R=new Uint8Array(3*M.length),D=0;D<M.length;D++){var N=M.charCodeAt(D);if(N<128)R[J++]=N;else{if(N<2048)R[J++]=N>>6|192;else{if(N>=55296&&N<=57343){if(N<=56319&&D<M.length){var Z=M.charCodeAt(++D);if(Z>=56320&&Z<=57343){N=(N-55296)*1024+Z-56320+65536;R[J++]=N>>18|
240;R[J++]=N>>12&63|128;R[J++]=N>>6&63|128;R[J++]=N&63|128;continue}else D--}if(z)throw Error("F");N=65533}R[J++]=N>>12|224;R[J++]=N>>6&63|128}R[J++]=N&63|128}}M=J===R.length?R:R.subarray(0,J)}return M};
Dc=function(M){_.R3.setTimeout(function(){throw M;},0)};
_.PY=function(M,z){return M.lastIndexOf(z,0)==0};
Sp=function(M,z){var J=M.length-z.length;return J>=0&&M.indexOf(z,J)==J};
_.ko=function(M){return/^[\s\xa0]*$/.test(M)};
_.BY=function(M,z){return M.indexOf(z)!=-1};
_.T8=function(M,z){return _.BY(M.toLowerCase(),z.toLowerCase())};
_.Xn=function(M,z){var J=0;M=o3(String(M)).split(".");z=o3(String(z)).split(".");for(var R=Math.max(M.length,z.length),D=0;J==0&&D<R;D++){var N=M[D]||"",Z=z[D]||"";do{N=/(\d*)(\D*)(.*)/.exec(N)||["","","",""];Z=/(\d*)(\D*)(.*)/.exec(Z)||["","","",""];if(N[0].length==0&&Z[0].length==0)break;J=NRc(N[1].length==0?0:parseInt(N[1],10),Z[1].length==0?0:parseInt(Z[1],10))||NRc(N[2].length==0,Z[2].length==0)||NRc(N[2],Z[2]);N=N[3];Z=Z[3]}while(J==0)}return J};
NRc=function(M,z){return M<z?-1:M>z?1:0};
_.lG=function(){var M=_.R3.navigator;return M&&(M=M.userAgent)?M:""};
PGG=function(M){if(!QH||!U8)return!1;for(var z=0;z<U8.brands.length;z++){var J=U8.brands[z].brand;if(J&&_.BY(J,M))return!0}return!1};
G8=function(M){return _.BY(_.lG(),M)};
jp=function(){return QH?!!U8&&U8.brands.length>0:!1};
S8b=function(){return jp()?!1:G8("Opera")};
Zpp=function(){return jp()?!1:G8("Trident")||G8("MSIE")};
k8b=function(){return jp()?PGG("Microsoft Edge"):G8("Edg/")};
pp=function(){return G8("Firefox")||G8("FxiOS")};
_.BRb=function(){return G8("Safari")&&!(_.Yo()||(jp()?0:G8("Coast"))||S8b()||(jp()?0:G8("Edge"))||k8b()||(jp()?PGG("Opera"):G8("OPR"))||pp()||G8("Silk")||G8("Android"))};
_.Yo=function(){return jp()?PGG("Chromium"):(G8("Chrome")||G8("CriOS"))&&!(jp()?0:G8("Edge"))||G8("Silk")};
_.Opb=function(){return G8("Android")&&!(_.Yo()||pp()||S8b()||G8("Silk"))};
TRp=function(M){var z={};M.forEach(function(J){z[J[0]]=J[1]});
return function(J){return z[J.find(function(R){return R in z})]||""}};
Ice=function(M){var z=_.lG();if(M==="Internet Explorer"){if(Zpp())if((M=/rv: *([\d\.]*)/.exec(z))&&M[1])z=M[1];else{M="";var J=/MSIE +([\d\.]+)/.exec(z);if(J&&J[1])if(z=/Trident\/(\d.\d)/.exec(z),J[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=J[1];z=M}else z="";return z}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");J=[];for(var D;D=R.exec(z);)J.push([D[1],D[2],D[3]||void 0]);
z=TRp(J);switch(M){case "Opera":if(S8b())return z(["Version","Opera"]);if(jp()?PGG("Opera"):G8("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(jp()?0:G8("Edge"))return z(["Edge"]);if(k8b())return z(["Edg"]);break;case "Chromium":if(_.Yo())return z(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&pp()||M==="Safari"&&_.BRb()||M==="Android Browser"&&_.Opb()||M==="Silk"&&G8("Silk")?(z=J[2])&&z[1]||"":""};
_.ooG=function(M){if(jp()&&M!=="Silk"){var z=U8.brands.find(function(J){return J.brand===M});
if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=Ice(M);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])};
mw=function(){return QH?!!U8&&!!U8.platform:!1};
_.XYn=function(){return mw()?U8.platform==="Android":G8("Android")};
lcR=function(){return G8("iPhone")&&!G8("iPod")&&!G8("iPad")};
_.gR=function(){return lcR()||G8("iPad")||G8("iPod")};
_.e03=function(){return mw()?U8.platform==="macOS":G8("Macintosh")};
_.Q3c=function(){return mw()?U8.platform==="Windows":G8("Windows")};
_.Ubw=function(){return mw()?U8.platform==="Chrome OS":G8("CrOS")};
_.s8=function(M){return M[M.length-1]};
_.he=function(M,z,J){z=_.voH(M,z,J);return z<0?null:typeof M==="string"?M.charAt(z):M[z]};
_.voH=function(M,z,J){for(var R=M.length,D=typeof M==="string"?M.split(""):M,N=0;N<R;N++)if(N in D&&z.call(J,D[N],N,M))return N;return-1};
G8n=function(M){for(var z=_.yH,J=typeof M==="string"?M.split(""):M,R=M.length-1;R>=0;R--)if(R in J&&z.call(void 0,J[R],R,M))return R;return-1};
_.Kp=function(M,z){return _.HY(M,z)>=0};
_.wYY=function(M,z){_.Kp(M,z)||M.push(z)};
_.$o=function(M,z){z=_.HY(M,z);var J;(J=z>=0)&&_.xbH(M,z);return J};
_.xbH=function(M,z){Array.prototype.splice.call(M,z,1)};
_.uG=function(M){var z=M.length;if(z>0){for(var J=Array(z),R=0;R<z;R++)J[R]=M[R];return J}return[]};
_.a3=function(M,z){for(var J=1;J<arguments.length;J++){var R=arguments[J];if(_.WY(R)){var D=M.length||0,N=R.length||0;M.length=D+N;for(var Z=0;Z<N;Z++)M[D+Z]=R[Z]}else M.push(R)}};
_.j3R=function(M,z,J,R){Array.prototype.splice.apply(M,tp8(arguments,1))};
tp8=function(M,z,J){return arguments.length<=2?Array.prototype.slice.call(M,z):Array.prototype.slice.call(M,z,J)};
pYY=function(M,z){z=z||M;for(var J=0,R=0,D={};R<M.length;){var N=M[R++],Z=_.E8(N)?"o"+_.fp(N):(typeof N).charAt(0)+N;Object.prototype.hasOwnProperty.call(D,Z)||(D[Z]=!0,z[J++]=N)}z.length=J};
_.Y8o=function(M,z,J){J=J||_.Fwp;for(var R=0,D=M.length,N;R<D;){var Z=R+(D-R>>>1);var B=J(z,M[Z]);B>0?R=Z+1:(D=Z,N=!B)}return N?R:-R-1};
_.Lp=function(M,z,J){if(!_.WY(M)||!_.WY(z)||M.length!=z.length)return!1;var R=M.length;J=J||mb0;for(var D=0;D<R;D++)if(!J(M[D],z[D]))return!1;return!0};
_.Fwp=function(M,z){return M>z?1:M<z?-1:0};
mb0=function(M,z){return M===z};
gon=function(M,z,J){z=Array.prototype.splice.call(M,z,1);Array.prototype.splice.call(M,J,0,z[0])};
noR=function(M){return s3p[M]||""};
Hpe=function(M){if(!h0Y)return _.Ae(M);M=yee.test(M)?M.replace(yee,noR):M;M=atob(M);for(var z=new Uint8Array(M.length),J=0;J<M.length;J++)z[J]=M.charCodeAt(J);return z};
ce8=function(M,z){M.__closure__error__context__984382||(M.__closure__error__context__984382={});M.__closure__error__context__984382.severity=z};
_.bG=function(M){M=Error(M);ce8(M,"warning");return M};
Kw8=function(M,z){if(M!=null){var J;var R=(J=dbw)!=null?J:dbw={};J=R[M]||0;J>=z||(R[M]=J+1,M=Error(),ce8(M,"incident"),Dc(M))}};
zt=function(M,z,J){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(J===void 0?0:J)&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol():z};
q83=function(M,z){DV||_.NB in M||$bY(M,unp);M[_.NB]|=z};
Sa=function(M,z){DV||_.NB in M||$bY(M,unp);M[_.NB]=z};
Wwc=function(M){if(4&M)return 512&M?512:1024&M?1024:0};
kp=function(M){q83(M,34);return M};
ac3=function(M){q83(M,32);return M};
Bu=function(){return typeof BigInt==="function"};
Tt=function(M,z){return z===void 0?M.copyOnWrite!==O$&&!!(2&(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.NB]|0)):!!(2&z)&&M.copyOnWrite!==O$};
_.pv=function(M,z){if(M!=null)if(typeof M==="string")M=M?new U$(M,tS):_.ja();else if(M.constructor!==U$)if(Vp3&&M!=null&&M instanceof Uint8Array)M=M.length?new U$(new Uint8Array(M),tS):_.ja();else{if(!z)throw Error();M=void 0}return M};
Eob=function(M,z){if(typeof z!=="number"||z<0||z>=M.length)throw Error();};
fcp=function(M,z,J){var R=z&128?0:-1,D=M.length,N;if(N=!!D)N=M[D-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;var Z=D+(N?-1:0);for(z=z&128?1:0;z<Z;z++)J(z-R,M[z]);if(N){M=M[D-1];for(var B in M)!isNaN(B)&&J(+B,M[B])}};
gg=function(M){return M&128?m$:void 0};
nv=function(M){M.isGuard_doNotManuallySetPrettyPlease=!0;return M};
Aep=function(){var M=LwY;return nv(function(z){for(var J in M)if(z===M[J]&&!/^[0-9]+$/.test(J))return!0;return!1})};
_.hS=function(M){var z=M;if(ipR(z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(z))throw Error(String(z));}else if(CG8(z)&&!Number.isSafeInteger(z))throw Error(String(z));return bp0?BigInt(M):M=rew(M)?M?"1":"0":ipR(M)?M.trim()||"0":String(M)};
Ma8=function(M,z){if(M.length>z.length)return!1;if(M.length<z.length||M===z)return!0;for(var J=0;J<M.length;J++){var R=M[J],D=z[J];if(R>D)return!1;if(R<D)return!0}};
z20=function(M){var z=M>>>0;Hu=z;cu=(M-z)/4294967296>>>0};
dg=function(M){if(M<0){z20(-M);var z=_.S(JSR(Hu,cu));M=z.next().value;z=z.next().value;Hu=M>>>0;cu=z>>>0}else z20(M)};
R28=function(M,z){var J=z*4294967296+(M>>>0);return Number.isSafeInteger(J)?J:_.Kv(M,z)};
DBb=function(M,z){var J=z&2147483648;J&&(M=~M+1>>>0,z=~z>>>0,M==0&&(z=z+1>>>0));M=R28(M,z);return typeof M==="number"?J?-M:M:J?"-"+M:M};
_.Kv=function(M,z){z>>>=0;M>>>=0;if(z<=2097151)var J=""+(4294967296*z+M);else Bu()?J=""+(BigInt(z)<<BigInt(32)|BigInt(M)):(J=(M>>>24|z<<8)&16777215,z=z>>16&65535,M=(M&16777215)+J*6777216+z*6710656,J+=z*8147497,z*=2,M>=1E7&&(J+=M/1E7>>>0,M%=1E7),J>=1E7&&(z+=J/1E7>>>0,J%=1E7),J=z+Ng8(J)+Ng8(M));return J};
Ng8=function(M){M=String(M);return"0000000".slice(M.length)+M};
_.PJ0=function(M,z){z&2147483648?Bu()?M=""+(BigInt(z|0)<<BigInt(32)|BigInt(M>>>0)):(z=_.S(JSR(M,z)),M=z.next().value,z=z.next().value,M="-"+_.Kv(M,z)):M=_.Kv(M,z);return M};
S$n=function(M){if(M.length<16)dg(Number(M));else if(Bu())M=BigInt(M),Hu=Number(M&BigInt(4294967295))>>>0,cu=Number(M>>BigInt(32)&BigInt(4294967295));else{var z=+(M[0]==="-");cu=Hu=0;for(var J=M.length,R=z,D=(J-z)%6+z;D<=J;R=D,D+=6)R=Number(M.slice(R,D)),cu*=1E6,Hu=Hu*1E6+R,Hu>=4294967296&&(cu+=Math.trunc(Hu/4294967296),cu>>>=0,Hu>>>=0);z&&(z=_.S(JSR(Hu,cu)),M=z.next().value,z=z.next().value,Hu=M,cu=z)}};
JSR=function(M,z){z=~z;M?M=~M+1:z+=1;return[M,z]};
$p=function(M){return Array.prototype.slice.call(M)};
_.uJ=function(M,z){throw Error(z===void 0?"unexpected value "+M+"!":z);};
_.Wu=function(M){if(M!=null&&typeof M!=="number")throw Error("L`"+typeof M+"`"+M);return M};
_.Zvn=function(M){if(M==null||typeof M==="number")return M;if(M==="NaN"||M==="Infinity"||M==="-Infinity")return Number(M)};
ktp=function(M){if(M!=null&&typeof M!=="boolean")throw Error("M`"+_.ak(M)+"`"+M);return M};
_.BgR=function(M){if(M==null||typeof M==="boolean")return M;if(typeof M==="number")return!!M};
_.E$=function(M){switch(typeof M){case "bigint":return!0;case "number":return VV(M);case "string":return OvH.test(M);default:return!1}};
_.fv=function(M){if(!VV(M))throw _.bG("enum");return M|0};
_.Cv=function(M){return M==null?M:VV(M)?M|0:void 0};
Tge=function(M){if(typeof M!=="number")throw _.bG("int32");if(!VV(M))throw _.bG("int32");return M|0};
_.bJ=function(M){return M==null?M:Tge(M)};
_.rg=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return VV(M)?M|0:void 0};
_.IV8=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return VV(M)?M>>>0:void 0};
e2G=function(M){var z=0;z=z===void 0?0:z;if(!_.E$(M))throw _.bG("int64");var J=typeof M;switch(z){case 512:switch(J){case "string":return Ji(M);case "bigint":return String(Rv(64,M));default:return opp(M)}case 1024:switch(J){case "string":return XuH(M);case "bigint":return _.hS(Rv(64,M));default:return lV8(M)}case 0:switch(J){case "string":return Ji(M);case "bigint":return _.hS(Rv(64,M));default:return Ds(M)}default:return _.uJ(z,"Unknown format requested type for int64")}};
NN=function(M){return M==null?M:e2G(M)};
Qk8=function(M){if(M[0]==="-")return!1;var z=M.length;return z<20?!0:z===20&&Number(M.substring(0,6))<184467};
UB8=function(M){var z=M.length;return M[0]==="-"?z<20?!0:z===20&&Number(M.substring(0,7))>-922337:z<19?!0:z===19&&Number(M.substring(0,6))<922337};
vpH=function(M){if(M<0){dg(M);var z=_.Kv(Hu,cu);M=Number(z);return Pt(M)?M:z}z=String(M);if(Qk8(z))return z;dg(M);return R28(Hu,cu)};
Gtb=function(M){if(UB8(M))return M;S$n(M);return _.PJ0(Hu,cu)};
wuG=function(M){if(Qk8(M))return M;S$n(M);return _.Kv(Hu,cu)};
Ds=function(M){M=Zs(M);Pt(M)||(dg(M),M=DBb(Hu,cu));return M};
_.xBn=function(M){M=Zs(M);return M>=0&&Pt(M)?M:vpH(M)};
opp=function(M){M=Zs(M);if(Pt(M))M=String(M);else{var z=String(M);UB8(z)?M=z:(dg(M),M=_.PJ0(Hu,cu))}return M};
_.ta3=function(M){M=Zs(M);if(M>=0&&Pt(M))M=String(M);else{var z=String(M);Qk8(z)?M=z:(dg(M),M=_.Kv(Hu,cu))}return M};
Ji=function(M){var z=Zs(Number(M));if(Pt(z))return String(z);z=M.indexOf(".");z!==-1&&(M=M.substring(0,z));return Gtb(M)};
XuH=function(M){var z=Zs(Number(M));if(Pt(z))return _.hS(z);z=M.indexOf(".");z!==-1&&(M=M.substring(0,z));return Bu()?_.hS(Rv(64,BigInt(M))):_.hS(Gtb(M))};
lV8=function(M){return Pt(M)?_.hS(Ds(M)):_.hS(opp(M))};
_.jkn=function(M){return Pt(M)?_.hS(_.xBn(M)):_.hS(_.ta3(M))};
_.puH=function(M){var z=Zs(Number(M));if(Pt(z)&&z>=0)return String(z);z=M.indexOf(".");z!==-1&&(M=M.substring(0,z));return wuG(M)};
_.F$G=function(M){var z=Zs(Number(M));if(Pt(z)&&z>=0)return _.hS(z);z=M.indexOf(".");z!==-1&&(M=M.substring(0,z));return Bu()?_.hS((0,_.kG)(64,BigInt(M))):_.hS(wuG(M))};
_.mB8=function(M){if(M==null)return M;if(typeof M==="bigint")return Y$3(M)?M=Number(M):(M=Rv(64,M),M=Y$3(M)?Number(M):String(M)),M;if(_.E$(M))return typeof M==="number"?Ds(M):Ji(M)};
gp8=function(M,z){z=z===void 0?!1:z;var J=typeof M;if(M==null)return M;if(J==="bigint")return String(Rv(64,M));if(_.E$(M))return J==="string"?Ji(M):z?opp(M):Ds(M)};
_.sk8=function(M){var z=typeof M;if(M==null)return M;if(z==="bigint")return _.hS(Rv(64,M));if(_.E$(M))return z==="string"?XuH(M):lV8(M)};
npo=function(M){if(M==null)return M;var z=typeof M;if(z==="bigint")return String(Rv(64,M));if(_.E$(M)){if(z==="string")return Ji(M);if(z==="number")return Ds(M)}};
h2w=function(M){if(M==null)return M;var z=typeof M;if(z==="bigint")return String((0,_.kG)(64,M));if(_.E$(M)){if(z==="string")return _.puH(M);if(z==="number")return _.xBn(M)}};
_.Bt=function(M){if(typeof M!=="string")throw Error();return M};
O5=function(M){if(M!=null&&typeof M!=="string")throw Error();return M};
_.ov=function(M){return M==null||typeof M==="string"?M:void 0};
cSo=function(M,z,J,R){if(M!=null&&M[lw]===U5)return M;if(!Array.isArray(M))return J?R&2?z[ySn]||(z[ySn]=Hvc(z)):new z:void 0;J=M[_.NB]|0;R=J|R&32|R&2;R!==J&&Sa(M,R);return new z(M)};
Hvc=function(M){M=new M;kp(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
dBn=function(M,z,J){M=z?Tge(M):_.rg(M);return M==null?J?0:void 0:M|0};
K$H=function(M){return M};
$Be=function(M){return M};
q$o=function(M,z,J,R,D,N){M=cSo(M,R,J,N);D&&(M=uQn(M));return M};
W$H=function(M){return[M,this.get(M)]};
Ep0=function(){return aV0||(aV0=new vt(kp([]),void 0,void 0,void 0,VaG))};
fV0=function(M){var z=wl(xG);return z?M[z]:void 0};
ivc=function(M,z){var J=J===void 0?!1:J;if(wl(L$o)&&wl(xG)&&void 0===L$o){var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=R[xG];if(!D)return;if(D=D.reviveUnknownFields)try{D(R,z,ASG);return}catch(N){Dc(N)}}J&&(M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(J=wl(xG))&&J in M&&(M=M[J])&&delete M[z])};
bvH=function(M,z){var J=wl(xG),R;DV&&J&&((R=M[J])==null?void 0:R[z])!=null&&Kw8(CJe,3)};
Mm3=function(M,z){z<100||Kw8(rSn,1)};
Nln=function(M,z,J,R){var D=R!==void 0;R=!!R;var N=wl(xG),Z;!D&&DV&&N&&(Z=M[N])&&zw0(Z,Mm3);N=[];var B=M.length;Z=4294967295;var O=!1,X=!!(z&64),l=X?z&128?0:-1:void 0;if(!(z&1)){var e=B&&M[B-1];e!=null&&typeof e==="object"&&e.constructor===Object?(B--,Z=B):e=void 0;if(X&&!(z&128)&&!D){O=!0;var Q;Z=((Q=JiY)!=null?Q:K$H)(Z-l,l,M,e,void 0)+l}}z=void 0;for(Q=0;Q<B;Q++){var v=M[Q];if(v!=null&&(v=J(v,R))!=null)if(X&&Q>=Z){var x=Q-l,m=void 0;((m=z)!=null?m:z={})[x]=v}else N[Q]=v}if(e)for(var y in e)B=e[y],
B!=null&&(B=J(B,R))!=null&&(Q=+y,v=void 0,X&&!Number.isNaN(Q)&&(v=Q+l)<Z?N[v]=B:(Q=void 0,((Q=z)!=null?Q:z={})[y]=B));z&&(O?N.push(z):N[Z]=z);D&&wl(xG)&&(M=fV0(M))&&M instanceof Rwb&&(N[xG]=DNc(M));return N};
S5o=function(M){M[0]=PwG(M[0]);M[1]=PwG(M[1]);return M};
PwG=function(M){switch(typeof M){case "number":return Number.isFinite(M)?M:""+M;case "bigint":return Y$3(M)?Number(M):""+M;case "boolean":return M?1:0;case "object":if(Array.isArray(M)){var z=M[_.NB]|0;return M.length===0&&z&1?void 0:Nln(M,z,PwG)}if(M!=null&&M[lw]===U5)return Zw8(M);if(M instanceof U$){z=M.JSC$8786_value_;if(z==null)M="";else if(typeof z==="string")M=z;else{if(h0Y){for(var J="",R=0,D=z.length-10240;R<D;)J+=String.fromCharCode.apply(null,z.subarray(R,R+=10240));J+=String.fromCharCode.apply(null,
R?z.subarray(R):z);z=btoa(J)}else z=_.YG(z);M=M.JSC$8786_value_=z}return M}if(M instanceof vt)return M=M.size!==0?Array.from(md.prototype.entries.call(M),S5o):void 0,M;return}return M};
s5=function(M,z){if(z){JiY=z==null||z===K$H||z[kcn]!==Blc?K$H:z;try{return Zw8(M)}finally{JiY=void 0}}return Zw8(M)};
Zw8=function(M){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Nln(M,M[_.NB]|0,PwG)};
IsR=function(M){switch(typeof M){case "boolean":return OwR||(OwR=[0,void 0,!0]);case "number":return M>0?void 0:M===0?Tle||(Tle=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}};
oG8=function(M,z,J){return M=_.nw(M,z[0],z[1],J?1:2)};
_.nw=function(M,z,J,R){R=R===void 0?0:R;if(M==null){var D=32;J?(M=[J],D|=128):M=[];z&&(D=D&-8380417|(z&1023)<<13)}else{if(!Array.isArray(M))throw Error("O");D=M[_.NB]|0;if(Xtp&&1&D)throw Error("P");2048&D&&!(2&D)&&lsp();if(D&256)throw Error("Q");if(D&64)return R!==0||D&2048||Sa(M,D|2048),M;if(J&&(D|=128,J!==M[0]))throw Error("R");a:{J=M;D|=64;var N=J.length;if(N){var Z=N-1,B=J[Z];if(B!=null&&typeof B==="object"&&B.constructor===Object){z=D&128?0:-1;Z-=z;if(Z>=1024)throw Error("T");for(var O in B)N=
+O,N<Z&&(J[N+z]=B[O],delete B[O]);D=D&-8380417|(Z&1023)<<13;break a}}if(z){O=Math.max(z,N-(D&128?0:-1));if(O>1024)throw Error("U");D=D&-8380417|(O&1023)<<13}}}D|=64;R===0&&(D|=2048);Sa(M,D);return M};
lsp=function(){if(Xtp)throw Error("S");Kw8(ewp,5)};
vGp=function(M,z){if(typeof M!=="object")return M;if(Array.isArray(M)){var J=M[_.NB]|0;return M.length===0&&J&1?void 0:Qve(M,J,z)}if(M!=null&&M[lw]===U5)return UNn(M);if(M instanceof vt){z=M.arrayState;if(z&2)return M;if(!M.size)return;J=kp(Array.from(md.prototype.entries.call(M)));if(M.valueCtor)for(M=0;M<J.length;M++){var R=J[M],D=R[1];D==null||typeof D!=="object"?D=void 0:D!=null&&D[lw]===U5?D=UNn(D):Array.isArray(D)?D=Qve(D,D[_.NB]|0,!!(z&32)):D=void 0;R[1]=D}return J}if(M instanceof U$)return M};
Qve=function(M,z,J){if(z&2)return M;!J||4096&z||16&z?M=hi(M,z,!1,J&&!(z&16)):(q83(M,34),z&4&&Object.freeze(M));return M};
Gc3=function(M,z,J){M=new M.constructor(z);J&&(M.copyOnWrite=O$);M.noLegacyNull=O$;return M};
UNn=function(M){var z=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=z[_.NB]|0;return Tt(M,J)?M:wt8(M,z,J)?Gc3(M,z):hi(z,J)};
hi=function(M,z,J,R){R!=null||(R=!!(34&z));M=Nln(M,z,vGp,R);R=32;J&&(R|=2);z=z&8380609|R;Sa(M,z);return M};
uQn=function(M){var z=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=z[_.NB]|0;return Tt(M,J)?wt8(M,z,J)?Gc3(M,z,!0):new M.constructor(hi(z,J,!1)):M};
ct=function(M){if(M.copyOnWrite!==O$)return!1;var z=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=hi(z,z[_.NB]|0);q83(z,2048);M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=z;M.copyOnWrite=void 0;M.noLegacyNull=void 0;return!0};
dl=function(M){if(!ct(M)&&Tt(M,M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.NB]|0))throw Error();};
Kw=function(M,z){z===void 0&&(z=M[_.NB]|0);z&32&&!(z&4096)&&Sa(M,z|4096)};
wt8=function(M,z,J){return J&2?!0:J&32&&!(J&4096)?(Sa(z,J|2),M.copyOnWrite=O$,!0):!1};
$G=function(M,z,J,R,D){var N=J+(D?0:-1),Z=M.length-1;if(Z>=1+(D?0:-1)&&N>=Z){var B=M[Z];if(B!=null&&typeof B==="object"&&B.constructor===Object)return B[J]=R,z}if(N<=Z)return M[N]=R,z;if(R!==void 0){var O;Z=((O=z)!=null?O:z=M[_.NB]|0)>>13&1023||536870912;J>=Z?R!=null&&(N={},M[Z+(D?0:-1)]=(N[J]=R,N)):M[N]=R}return z};
_.av=function(M,z,J,R,D){var N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=N[_.NB]|0;R=Tt(M,Z)?1:R;D=!!D||R===3;R===2&&ct(M)&&(N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=N[_.NB]|0);M=xNp(N,z);var B=M===qN?7:M[_.NB]|0,O=tm0(B,Z);var X=4&O?!1:!0;if(X){4&O&&(M=$p(M),B=0,O=Wt(O,Z),Z=$G(N,Z,z,M));for(var l=0,e=0;l<M.length;l++){var Q=J(M[l]);Q!=null&&(M[e++]=Q)}e<l&&(M.length=e);J=(O|4)&-513;O=J&=-1025;O&=-4097}O!==B&&(Sa(M,O),2&O&&Object.freeze(M));return M=jv0(M,O,N,
Z,z,R,X,D)};
jv0=function(M,z,J,R,D,N,Z,B){var O=z;N===1||(N!==4?0:2&z||!(16&z)&&32&R)?E5(z)||(z|=!M.length||Z&&!(4096&z)||32&R&&!(4096&z||16&z)?2:256,z!==O&&Sa(M,z),Object.freeze(M)):(N===2&&E5(z)&&(M=$p(M),O=0,z=Wt(z,R),R=$G(J,R,D,M)),E5(z)||(B||(z|=16),z!==O&&Sa(M,z)));2&z||!(4096&z||16&z)||Kw(J,R);return M};
xNp=function(M,z,J){M=fw(M,z,J);return Array.isArray(M)?M:qN};
tm0=function(M,z){2&z&&(M|=2);return M|1};
E5=function(M){return!!(2&M)&&!!(4&M)||!!(256&M)};
pto=function(M){return _.pv(M,!0)};
FdY=function(M,z){var J=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=J[_.NB]|0;a:{var D=R;R=Tt(M,R);!R&&ct(M)&&(J=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=J[_.NB]|0);var N=fw(J,z);M=!1;if(N==null){if(R){z=Ep0();break a}N=[]}else if(N.constructor===vt)if(N.arrayState&2&&!R)N=Array.from(md.prototype.entries.call(N));else{z=N;break a}else Array.isArray(N)?M=!!((N[_.NB]|0)&2):N=[];if(R){if(!N.length){z=Ep0();break a}M||(M=!0,kp(N))}else if(M){M=!1;R=N;R=$p(R);for(N=0;N<
R.length;N++){var Z=R[N]=$p(R[N]);Array.isArray(Z[1])&&(Z[1]=kp(Z[1]))}N=R}!M&&D&32&&ac3(N);R=new vt(N,void 0,dBn,dBn);D=$G(J,D,z,R);M||Kw(J,D);z=R}return z};
_.Lw=function(M,z,J,R){dl(M);var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=D[_.NB]|0;if(J==null)return $G(D,N,z),M;var Z=J===qN?7:J[_.NB]|0,B=Z,O=E5(Z),X=O||Object.isFrozen(J);O||(Z=0);X||(J=$p(J),B=0,Z=Wt(Z,N),X=!1);Z|=5;var l;O=(l=Wwc(Z))!=null?l:0;for(l=0;l<J.length;l++){var e=J[l],Q=R(e,O);Object.is(e,Q)||(X&&(J=$p(J),B=0,Z=Wt(Z,N),X=!1),J[l]=Q)}Z!==B&&(X&&(J=$p(J),Z=Wt(Z,N)),Sa(J,Z));$G(D,N,z,J);return M};
_.Ai=function(M,z,J,R,D){dl(M);var N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$G(N,N[_.NB]|0,z,(R==="0"?Number(J)===0:J===R)?void 0:J,D);return M};
_.Y5Y=function(M,z,J){if(z&2)throw Error();var R=gg(z),D=xNp(M,J,R),N=D===qN?7:D[_.NB]|0,Z=tm0(N,z);if(2&Z||E5(Z)||16&Z)D=$p(D),N=0,Z=Wt(Z,z),$G(M,z,J,D,R);Z&=-13;Z!==N&&Sa(D,Z);return D};
mNR=function(M){if(DV){var z;return(z=M[iw])!=null?z:M[iw]=new Map}if(iw in M)return M[iw];z=new Map;Object.defineProperty(M,iw,{value:z});return z};
svo=function(M,z,J,R,D){var N=mNR(M),Z=gGR(N,M,z,J,D);Z!==R&&(Z&&(z=$G(M,z,Z,void 0,D)),N.set(J,R));return z};
gGR=function(M,z,J,R,D){var N=M.get(R);if(N!=null)return N;for(var Z=N=0;Z<R.length;Z++){var B=R[Z];fw(z,B,D)!=null&&(N!==0&&(J=$G(z,J,N,void 0,D)),N=B)}M.set(R,N);return N};
nGw=function(M,z,J,R,D){var N=!1;R=fw(M,R,D,function(Z){var B=cSo(Z,J,!1,z);N=B!==Z&&B!=null;return B});
if(R!=null)return N&&!Tt(R)&&Kw(M,z),R};
hw8=function(M,z,J,R,D,N,Z,B){var O=Tt(M,J);N=O?1:N;Z=!!Z||N===3;O=B&&!O;(N===2||O)&&ct(M)&&(z=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=z[_.NB]|0);M=xNp(z,D);var X=M===qN?7:M[_.NB]|0,l=tm0(X,J);if(B=!(4&l)){var e=M,Q=J,v=!!(2&l);v&&(Q|=2);for(var x=!v,m=!0,y=0,H=0;y<e.length;y++){var q=cSo(e[y],R,!1,Q);if(q instanceof R){if(!v){var b=Tt(q);x&&(x=!b);m&&(m=b)}e[H++]=q}}H<y&&(e.length=H);l|=4;l=m?l&-4097:l|4096;l=x?l|8:l&-9}l!==X&&(Sa(M,l),2&l&&Object.freeze(M));if(O&&!(8&l||!M.length&&
(N===1||(N!==4?0:2&l||!(16&l)&&32&J)))){E5(l)&&(M=$p(M),l=Wt(l,J),J=$G(z,J,D,M));R=M;O=l;for(X=0;X<R.length;X++)e=R[X],l=uQn(e),e!==l&&(R[X]=l);O|=8;l=O=R.length?O|4096:O&-4097;Sa(M,l)}return M=jv0(M,l,z,J,D,N,B,Z)};
yip=function(M){M==null&&(M=void 0);return M};
Wt=function(M,z){return M=(2&z?M|2:M&-3)&-273};
_.Hw8=function(M,z,J,R,D){dl(M);z=_.av(M,z,D,2,!0);var N;D=(N=Wwc(z===qN?7:z[_.NB]|0))!=null?N:0;z.push(J(R,D));return M};
cip=function(M,z,J,R,D,N,Z){dl(M);var B=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=hw8(M,B,B[_.NB]|0,J,z,2,!0);if(N&&Z)D!=null||(D=M.length-1),Eob(M,D),M.splice(D,N),M.length||(M[_.NB]&=-4097);else{if(N){if(typeof D!=="number"||D<0||D>M.length)throw Error();}else R=R!=null?R:new J;D!=void 0?M.splice(D,N,R):M.push(R);D=J=M===qN?7:M[_.NB]|0;(R=Tt(R))?(J&=-9,M.length===1&&(J&=-4097)):J|=4096;J!==D&&Sa(M,J);R||Kw(B)}};
Kdo=function(M,z){if(typeof M==="string")return new Cw(Hpe(M),z);if(Array.isArray(M))return new Cw(new Uint8Array(M),z);if(M.constructor===Uint8Array)return new Cw(M,!1);if(M.constructor===ArrayBuffer)return M=new Uint8Array(M),new Cw(M,!1);if(M.constructor===U$)return z=dNn(M)||new Uint8Array(0),new Cw(z,!0,M);if(M instanceof Uint8Array)return M=M.constructor===Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new Cw(M,!1);throw Error();};
bw=function(){var M=function(){throw Error();};
Object.setPrototypeOf(M,M.prototype);return M};
ul3=function(M,z){var J=J===void 0?$NH:J;return new rl(M,z,J)};
Vmp=function(M,z,J,R,D){z=q5c(z,R);z!=null&&(J=_.Wde(M,J),D(z,M),_.asY(M,J))};
ME=function(M,z,J,R){var D=R[M];if(D)return D;D={};D.binaryFields=R;D.messageMetadata=IsR(R[0]);var N=R[1],Z=1;N&&N.constructor===Object&&(D.extensions=N,N=R[++Z],typeof N==="function"&&(D.isMessageSet=!0,EG3!=null||(EG3=N),fs8!=null||(fs8=R[Z+1]),N=R[Z+=2]));for(var B={};N&&LdG(N);){for(var O=0;O<N.length;O++)B[N[O]]=N;N=R[++Z]}for(O=1;N!==void 0;){typeof N==="number"&&(O+=N,N=R[++Z]);var X=void 0;if(N instanceof rl)var l=N;else l=AiR,Z--;N=void 0;if((N=l)==null?0:N.$$isMsg){N=R[++Z];X=R;var e=Z;
typeof N==="function"&&(N=N(),X[e]=N);X=N}N=R[++Z];e=O+1;typeof N==="number"&&N<0&&(e-=N,N=R[++Z]);for(;O<e;O++){var Q=B[O];X?J(D,O,l,X,Q):z(D,O,l,Q)}}return R[M]=D};
LdG=function(M){return Array.isArray(M)&&!!M.length&&typeof M[0]==="number"&&M[0]>0};
Cwp=function(M){return Array.isArray(M)?M[0]instanceof rl?M:[iww,M]:[M,void 0]};
q5c=function(M,z){if(M instanceof _.zA)return M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(M))return oG8(M,z,!1)};
bw3=function(M,z,J,R){var D=J.$$binaryReaderFn;M[z]=R?function(N,Z,B){return D(N,Z,B,R)}:D};
Mq0=function(M,z,J,R,D){var N=J.$$binaryReaderFn,Z,B;M[z]=function(O,X,l){return N(O,X,l,B||(B=ME(ri8,bw3,Mq0,R).messageMetadata),Z||(Z=zi3(R)),D)}};
zi3=function(M){var z=M[Jr8];if(z!=null)return z;var J=ME(ri8,bw3,Mq0,M);z=J.isMessageSet?function(R,D){return EG3(R,D,J)}:function(R,D){for(;Rip(D)&&D.nextWireType_!=4;){var N=D.nextField_,Z=J[N];
if(Z==null){var B=J.extensions;B&&(B=B[N])&&(B=DEG(B),B!=null&&(Z=J[N]=B))}if(Z==null||!Z(D,R,N)){B=D;Z=B.fieldCursor_;Niw(B);if(B.discardUnknownFields)var O=void 0;else{var X=B.decoder_.cursor_-Z;B.decoder_.cursor_=Z;O=Ps0(B.decoder_,X)}X=B=Z=void 0;var l=R;O&&((Z=(B=(X=l[xG])!=null?X:l[xG]=new Rwb)[N])!=null?Z:B[N]=[]).push(O)}}if(R=fV0(R))R.reviveUnknownFields=J.binaryFields[Swn];return!0};
M[Jr8]=z;M[Swn]=Z3e.bind(M);return z};
Z3e=function(M,z,J,R){var D=this[ri8],N=this[Jr8],Z=oG8(void 0,D.messageMetadata,!1),B=fV0(M);if(B){var O=!1,X=D.extensions;if(X){D=function(x,m,y){if(y.length!==0)if(X[m])for(x=_.S(y),m=x.next();!m.done;m=x.next()){m=kAR(m.value);try{O=!0,N(Z,m)}finally{m.free()}}else R==null||R(M,m,y)};
if(z==null)zw0(B,D);else if(B!=null){var l=B[z];l&&D(B,z,l)}if(O){var e=M[_.NB]|0;if(e&2&&e&2048&&(J==null||!J.reviveIntoImmutable))throw Error();var Q=gg(e),v=function(x,m){if(fw(M,x,Q)!=null)switch(J==null?void 0:J.resolutionBehavior){case 1:return;default:throw Error();}m!=null&&(e=$G(M,e,x,m,Q));delete B[x]};
z==null?fcp(Z,Z[_.NB]|0,function(x,m){v(x,m)}):v(z,fw(Z,z,Q))}}}};
DEG=function(M){M=Cwp(M);var z=M[0].$$binaryReaderFn;if(M=M[1]){var J=zi3(M),R=ME(ri8,bw3,Mq0,M).messageMetadata;return function(D,N,Z){return z(D,N,Z,R,J)}}return z};
BiR=function(M,z,J){M[z]=J.$$binaryWriterFn};
Tio=function(M,z,J,R){var D,N,Z=J.$$binaryWriterFn;M[z]=function(B,O,X){return Z(B,O,X,N||(N=ME(O30,BiR,Tio,R).messageMetadata),D||(D=Ido(R)))}};
Ido=function(M){var z=M[oqc];if(!z){var J=ME(O30,BiR,Tio,M);z=function(R,D){return X4Y(R,D,J)};
M[oqc]=z}return z};
X4Y=function(M,z,J){fcp(M,M[_.NB]|0,function(R,D){if(D!=null){var N=ld8(J,R);N?N(z,D,R):R<500||Kw8(eip,3)}});
(M=fV0(M))&&zw0(M,function(R,D,N){Jr(z,z.encoder_.end());for(R=0;R<N.length;R++)Jr(z,dNn(N[R])||new Uint8Array(0))})};
ld8=function(M,z){var J=M[z];if(J)return J;if(J=M.extensions)if(J=J[z]){J=Cwp(J);var R=J[0].$$binaryWriterFn;if(J=J[1]){var D=Ido(J),N=ME(O30,BiR,Tio,J).messageMetadata;J=M.isMessageSet?fs8(N,D):function(Z,B,O){return R(Z,B,O,N,D)}}else J=R;
return M[z]=J}};
_.Qrn=function(M,z,J){if(Array.isArray(z)){var R=z[_.NB]|0;if(R&4)return z;for(var D=0,N=0;D<z.length;D++){var Z=M(z[D]);Z!=null&&(z[N++]=Z)}N<D&&(z.length=N);J&&(Sa(z,(R|5)&-1537),R&2&&Object.freeze(z));return z}};
_.Dd=function(M,z,J){return new rl(M,z,J)};
_.UE8=function(M,z,J){return new rl(M,z,J)};
_.NE=function(M,z,J){$G(M,M[_.NB]|0,z,J,gg(M[_.NB]|0))};
GAw=function(M,z,J){z=_.Zvn(z);z!=null&&(_.P4(M,J,1),M=M.encoder_,J=vqp||(vqp=new DataView(new ArrayBuffer(8))),J.setFloat64(0,+z,!0),Hu=J.getUint32(0,!0),cu=J.getUint32(4,!0),_.Sq(M,Hu),_.Sq(M,cu))};
_.kq=function(M,z,J){z=npo(z);if(z!=null){switch(typeof z){case "string":w4R(z)}if(z!=null)switch(_.P4(M,J,0),typeof z){case "number":M=M.encoder_;dg(z);xE8(M,Hu,cu);break;case "bigint":J=BigInt.asUintN(64,z);J=new tqp(Number(J&BigInt(4294967295)),Number(J>>BigInt(32)));xE8(M.encoder_,J.JSC$8830_lo,J.JSC$8830_hi);break;default:J=w4R(z),xE8(M.encoder_,J.JSC$8830_lo,J.JSC$8830_hi)}}};
p4e=function(M,z,J){z=_.rg(z);z!=null&&z!=null&&(_.P4(M,J,0),_.jro(M.encoder_,z))};
_.Ywb=function(M,z,J){FA8(M,J,h2w(z))};
_.mE8=function(M,z,J){z=_.BgR(z);z!=null&&(_.P4(M,J,0),M.encoder_.JSC$8832_buffer_.push(z?1:0))};
_.sro=function(M,z,J){z=_.ov(z);z!=null&&gqY(M,J,DbH(z))};
nq0=function(M,z,J,R,D){z=q5c(z,R);z!=null&&(J=_.Wde(M,J),D(z,M),_.asY(M,J))};
_.hiR=function(M,z,J){z=z==null||typeof z=="string"||z instanceof U$?z:void 0;z!=null&&gqY(M,J,Kdo(z,!0).buffer)};
_.yrn=function(M,z,J){z=_.rg(z);z!=null&&(z=parseInt(z,10),_.P4(M,J,0),_.jro(M.encoder_,z))};
_.B4=function(M,z){return function(J,R){var D={treatNewDataAsImmutable:!0};R&&Object.assign(D,R);J=kAR(J,void 0,void 0,D);try{var N=new M,Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zi3(z)(Z,J);var B=N}finally{J.free()}return B}};
_.Ow=function(M){return function(z){return H33(z,M)}};
crn=function(M){return function(){return H33(this,M)}};
_.dEo=function(M){return nv(function(z){return z instanceof M&&!Tt(z)})};
_.TA=function(M){return function(z){return KAb(M,z)}};
WA8=function(M,z){return $Ep({child:M,origin:z||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:uqp,getPayloadCase:function(J){return J.getPayloadCase()},
createInitMessage:function(J){var R=new Ir,D=new qwp;J=_.or(D,1,J);return _.Xq(R,5,QZ,J)}})};
v4=function(M){return{valueOf:M}.valueOf()};
Vq0=function(){var M=null;if(!adc)return M;try{var z=function(J){return J};
M=adc.createPolicy("goog#html",{createHTML:z,createScript:z,createScriptURL:z})}catch(J){}return M};
fd8=function(){Eqn===void 0&&(Eqn=Vq0());return Eqn};
_.wi=function(M){var z=fd8();M=z?z.createScriptURL(M):M;return new GA(M)};
_.xq=function(M){if(M instanceof GA)return M.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.tr=function(M){return Object.isFrozen(M)&&Object.isFrozen(M.raw)};
LAY=function(M){return M.toString().indexOf("`")===-1};
p3=function(M){return new _.jq(Ar8,M)};
Fq=function(M){return M instanceof _.jq};
_.Yq=function(M){if(Fq(M))return M.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
mA=function(M){return new i3Y(function(z){return z.substr(0,M.length+1).toLowerCase()===M+":"})};
_.sw=function(M,z){z=z===void 0?Cs3:z;if(Fq(M))return M;for(var J=0;J<z.length;++J){var R=z[J];if(R instanceof i3Y&&R.isValid(M))return p3(M)}};
_.hr=function(M,z){z=z===void 0?Cs3:z;return _.sw(M,z)||n3};
_.yZ=function(M){var z=window;if(typeof MediaSource!=="undefined"&&M instanceof MediaSource||typeof z.ManagedMediaSource!=="undefined"&&M instanceof z.ManagedMediaSource)return p3(URL.createObjectURL(M));z=M.type;z.toLowerCase()==="application/octet-stream"?z=!0:(z=z.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),z=(z==null?void 0:z.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(z[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(z[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(z[1])||/^font\/[\w-]+$/i.test(z[1])));if(!z)throw Error("Z");return p3(URL.createObjectURL(M))};
_.b30=function(M){for(var z=_.H4.apply(1,arguments),J=[M[0]],R=0;R<z.length;R++)J.push(String(z[R])),J.push(M[R+1]);return p3(J.join(""))};
_.MXw=function(M){if(!rrY){a:{var z=document.createElement("a");try{z.href=M}catch(J){M=void 0;break a}M=z.protocol;M=M===":"||M===""?"https:":M}return M}try{z=new URL(M)}catch(J){return"https:"}return z.protocol};
_.c4=function(M){M instanceof _.jq?M=_.Yq(M):M=znp.test(M)?M:void 0;return M};
_.K3=function(M,z){z=_.c4(z);z!==void 0&&(M.href=z)};
us=function(M){var z=fd8();M=z?z.createHTML(M):M;return new $q(M)};
qE=function(M){if(M instanceof $q)return M.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.W4=function(M,z){M.src=_.xq(z).toString()};
JGG=function(M,z){M.setAttribute("sandbox","");for(var J=0;J<z.length;J++)M.sandbox.supports&&!M.sandbox.supports(z[J])||M.sandbox.add(z[J])};
_.Dye=function(M,z,J){M.removeAttribute("srcdoc");switch(z){case 0:if(J instanceof GA)throw new Rne("TrustedResourceUrl",0);JGG(M,[]);z=_.c4(J);z!==void 0&&(M.src=z);break;case 1:if(!(J instanceof GA))throw new Rne(typeof J,1);JGG(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.W4(M,J);break;case 2:if(J instanceof GA)throw new Rne("TrustedResourceUrl",2);JGG(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
z=_.c4(J);z!==void 0&&(M.src=z);break;default:_.uJ(z)}};
_.VZ=function(M,z,J,R){z=_.c4(z);return z!==void 0?M.open(z,J,R):null};
_.Ew=function(M){M=M===void 0?document:M;var z,J;M=(J=(z=M).querySelector)==null?void 0:J.call(z,"script[nonce]");return M==null?"":M.nonce||M.getAttribute("nonce")||""};
_.L3=function(M){var z=fd8();M=z?z.createScript(M):M;return new _.f3(M)};
NVc=function(M){if(M instanceof _.f3)return M.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
PYp=function(M){var z=_.Ew(M.ownerDocument);z&&M.setAttribute("nonce",z)};
_.Ar=function(M,z){M.textContent=NVc(z);PYp(M)};
_.is=function(M,z){M.src=_.xq(z);PYp(M)};
_.C3=function(M,z){if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("Z");M.innerHTML=qE(z)};
_.bs=function(M,z,J,R){if(M.length===0)throw Error("Z");M=M.map(function(N){if(N instanceof SIY)N=N.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return N});
var D=J.toLowerCase();if(M.every(function(N){return D.indexOf(N)!==0}))throw Error("aa`"+J);
z.setAttribute(J,R)};
_.ri=function(M,z,J){if(z instanceof GA)M.href=_.xq(z).toString(),M.rel=J;else{if(ZS8.indexOf(J)===-1)throw Error("ba`"+J);z=_.c4(z);z!==void 0&&(M.href=z,M.rel=J)}};
kT8=function(M){if(M instanceof zT)return M.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.BVp=function(M,z){z=_.c4(z);z!==void 0&&(M.href=z)};
OS8=function(M,z){M&&(z=M.indexOf(z),0<=z&&M.splice(z,1))};
JG=function(M){return typeof M==="function"};
TVn=function(M){return M instanceof Ro||M&&"closed"in M&&JG(M.remove)&&JG(M.add)&&JG(M.unsubscribe)};
DD=function(){};
Ny=function(M){IDn(function(){throw M;})};
Py=function(M){return M};
SX=function(){return oj8(_.H4.apply(0,arguments))};
oj8=function(M){return M.length===0?Py:M.length===1?M[0]:function(z){return M.reduce(function(J,R){return R(J)},z)}};
Xyp=function(M){var z;return(z=M!=null?M:void 0)!=null?z:Promise};
lDG=function(M,z){return new ZD(function(J){var R=0;return z.schedule(function(){R===M.length?J.complete():(J.next(M[R++]),J.closed||this.schedule())})})};
ene=function(M,z){if(!M)throw Error("ca");return new ZD(function(J){var R=new Ro;R.add(z.schedule(function(){var D=M[Symbol.asyncIterator]();R.add(z.schedule(function(){var N=this;D.next().then(function(Z){Z.done?J.complete():(J.next(Z.value),N.schedule())})}))}));
return R})};
Qo0=function(M,z,J){z=z.schedule(function(){try{J.call(this)}catch(R){M.error(R)}},0);
M.add(z)};
vj8=function(M,z){return new ZD(function(J){var R;J.add(z.schedule(function(){R=M[Uy8]();Qo0(J,z,function(){var D=R.next(),N=D.value;D.done?J.complete():(J.next(N),this.schedule())})}));
return function(){var D;return JG((D=R)==null?void 0:D.return)&&R.return()}})};
GTw=function(M,z){return new ZD(function(J){var R=new Ro;R.add(z.schedule(function(){var D=M[kj]();R.add(D.subscribe({next:function(N){R.add(z.schedule(function(){return J.next(N)}))},
error:function(N){R.add(z.schedule(function(){return J.error(N)}))},
complete:function(){R.add(z.schedule(function(){return J.complete()}))}}))}));
return R})};
wyn=function(M,z){return new ZD(function(J){return z.schedule(function(){return M.then(function(R){J.add(z.schedule(function(){J.next(R);J.add(z.schedule(function(){return J.complete()}))}))},function(R){J.add(z.schedule(function(){return J.error(R)}))})})})};
xy3=function(M){return new TypeError("da`"+(M!==null&&typeof M==="object"?"an invalid object":"'"+M+"'"))};
joe=function(M,z){if(M!=null){if(JG(M[kj]))return GTw(M,z);if(tXp(M))return lDG(M,z);if(JG(M==null?void 0:M.then))return wyn(M,z);if(Symbol.asyncIterator&&JG(M==null?void 0:M[Symbol.asyncIterator]))return ene(M,z);if(JG(M==null?void 0:M[Uy8]))return vj8(M,z)}throw xy3(M);};
TT=function(M,z){return z?joe(M,z):OI(M)};
OI=function(M){if(M instanceof ZD)return M;if(M!=null){if(JG(M[kj]))return pyp(M);if(tXp(M))return FWY(M);if(JG(M==null?void 0:M.then))return YIc(M);if(Symbol.asyncIterator&&JG(M==null?void 0:M[Symbol.asyncIterator]))return my0(M);if(JG(M==null?void 0:M[Uy8]))return gjc(M)}throw xy3(M);};
pyp=function(M){return new ZD(function(z){var J=M[kj]();if(JG(J.subscribe))return J.subscribe(z);throw new TypeError("ea");})};
FWY=function(M){return new ZD(function(z){for(var J=0;J<M.length&&!z.closed;J++)z.next(M[J]);z.complete()})};
YIc=function(M){return new ZD(function(z){M.then(function(J){z.closed||(z.next(J),z.complete())},function(J){return z.error(J)}).then(null,Ny)})};
gjc=function(M){return new ZD(function(z){for(var J=M[Uy8]();!z.closed;){var R=J.next(),D=R.value;R.done?z.complete():z.next(D)}return function(){return JG(J==null?void 0:J.return)&&J.return()}})};
my0=function(M){return new ZD(function(z){so8(M,z).catch(function(J){return z.error(J)})})};
so8=function(M,z){var J,R,D,N,Z,B;return _.k(function(O){switch(O.nextAddress){case 1:_.Io(O,2,3),N=_.oo(M);case 5:return O.yield(N.next(),8);case 8:R=O.yieldResult;if(R.done){O.jumpTo(3);break}Z=R.value;z.next(Z);O.jumpTo(5);break;case 3:_.X4(O);_.lY(O,9);if(!R||R.done||!(D=N.return)){O.jumpTo(9);break}return O.yield(D.call(N),9);case 9:_.X4(O,0,0,1);if(J)throw J.error;_.eX(O,10,1);break;case 10:_.eX(O,4);break;case 2:B=_.Qa(O);J={error:B};O.jumpTo(3);break;case 4:z.complete(),_.UI(O)}})};
njc=function(M,z){return z?lDG(M,z):FWY(M)};
hnp=function(M){return JG(M[M.length-1])?M.pop():void 0};
vy=function(M){var z=M[M.length-1];return z&&JG(z.schedule)?M.pop():void 0};
GT=function(){var M=_.H4.apply(0,arguments),z=vy(M);return z?lDG(M,z):njc(M)};
xj=function(M){var z=JG(M)?M:function(){return M};
return new ZD(function(J){return J.error(z())})};
tG=function(M){return function(z){if(JG(z==null?void 0:z.lift))return z.lift(function(J){try{return M(J,this)}catch(R){this.error(R)}});
throw new TypeError("fa");}};
pS=function(){return tG(function(M,z){var J=null;M._refCount++;var R=new jX(z,void 0,void 0,void 0,function(){if(!M||M._refCount<=0||0<--M._refCount)J=null;else{var D=M._connection,N=J;J=null;!D||N&&D!==N||D.unsubscribe();z.unsubscribe()}});
M.subscribe(R);R.closed||(J=M.connect())})};
HS3=function(){var M=yG3;var z=z===void 0?0:z;return tG(function(J,R){R.add(M.schedule(function(){return J.subscribe(R)},z))})};
F4=function(M){return tG(function(z,J){var R=0;z.subscribe(new jX(J,function(D){J.next(M.call(void 0,D,R++))}))})};
dyb=function(M){return F4(function(z){return cG0(z)?M.apply(null,_.Yj(z)):M(z)})};
WWR=function(M){if(M.length===1){var z=M[0];if(KWp(z))return{args:z,keys:null};if(z&&typeof z==="object"&&$yw(z)===u48)return M=qI8(z),{args:M.map(function(J){return z[J]}),
keys:M}}return{args:M,keys:null}};
mW=function(){var M=_.H4.apply(0,arguments),z=vy(M),J=hnp(M);M=WWR(M);var R=M.args,D=M.keys;if(R.length===0)return TT([],z);z=new ZD(aDp(R,z,D?function(N){for(var Z={},B=0;B<N.length;B++)Z[D[B]]=N[B];return Z}:Py));
return J?z.pipe(dyb(J)):z};
aDp=function(M,z,J){J=J===void 0?Py:J;return function(R){VXo(z,function(){for(var D=M.length,N=Array(D),Z=D,B=M.map(function(){return!1}),O=!0,X={i$jscomp$216:0};X.i$jscomp$216<D;X={i$jscomp$216:X.i$jscomp$216},X.i$jscomp$216++)VXo(z,function(l){return function(){TT(M[l.i$jscomp$216],z).subscribe(new gV(R,function(e){N[l.i$jscomp$216]=e;
O&&(B[l.i$jscomp$216]=!0,O=!B.every(Py));O||R.next(J(N.slice()))},function(){return--Z===0}))}}(X),R)},R)}};
VXo=function(M,z,J){M?J.add(M.schedule(z)):z()};
EjY=function(M,z,J,R){var D=[],N=0,Z=0,B=!1,O=function(X){N++;OI(J(X,Z++)).subscribe(new jX(z,function(l){z.next(l)},void 0,function(){N--;
for(var l={};D.length&&N<R;l={bufferedValue:void 0})l.bufferedValue=D.shift(),O(l.bufferedValue);!B||D.length||N||z.complete()}))};
M.subscribe(new jX(z,function(X){return N<R?O(X):D.push(X)},void 0,function(){B=!0;
!B||D.length||N||z.complete()}));
return function(){D=null}};
sI=function(M,z){var J=J===void 0?Infinity:J;if(JG(z))return sI(function(R,D){return F4(function(N,Z){return z(R,N,D,Z)})(OI(M(R,D)))},J);
typeof z==="number"&&(J=z);return tG(function(R,D){return EjY(R,D,M,J)})};
fD8=function(M){M=M===void 0?Infinity:M;return sI(Py,M)};
LWo=function(){var M=_.H4.apply(0,arguments);return fD8(1)(njc(M,vy(M)))};
AGn=function(M){return new ZD(function(z){OI(M()).subscribe(z)})};
nS=function(M,z,J){if(JG(J)){var R=J;J=void 0}if(R)return nS(M,z,J).pipe(dyb(R));R=_.S(JG(M.addEventListener)&&JG(M.removeEventListener)?iSe.map(function(Z){return function(B){return M[Z](z,B,J)}}):JG(M.addListener)&&JG(M.removeListener)?CYe.map(bSw(M,z)):JG(M.on)&&JG(M.off)?rGo.map(bSw(M,z)):[]);
var D=R.next().value,N=R.next().value;return!D&&tXp(M)?sI(function(Z){return nS(Z,z,J)})(njc(M)):new ZD(function(Z){if(!D)throw new TypeError("ga");
var B=function(){var O=_.H4.apply(0,arguments);return Z.next(1<O.length?O:O[0])};
D(B);return function(){return N(B)}})};
bSw=function(M,z){return function(J){return function(R){return M[J](z,R)}}};
ya=function(){var M=_.H4.apply(0,arguments),z=vy(M);var J=typeof M[M.length-1]==="number"?M.pop():Infinity;return M.length?M.length===1?OI(M[0]):fD8(J)(njc(M,z)):hG};
zDY=function(M){return M.length===1&&MUb(M[0])?M[0]:M};
JA8=function(){var M=zDY(_.H4.apply(0,arguments));return tG(function(z,J){var R=[z].concat(_.Yj(M)),D=function(){if(!J.closed)if(R.length>0){try{var N=OI(R.shift())}catch(B){D();return}var Z=new jX(J,void 0,DD,DD);J.add(N.subscribe(Z));Z.add(D)}else J.complete()};
D()})};
Hy=function(M){return tG(function(z,J){var R=0;z.subscribe(new jX(J,function(D){return M.call(void 0,D,R++)&&J.next(D)}))})};
Dxw=function(){var M=_.H4.apply(0,arguments);M=zDY(M);return M.length===1?OI(M[0]):new ZD(RDH(M))};
RDH=function(M){return function(z){for(var J=[],R={i$jscomp$219:0};J&&!z.closed&&R.i$jscomp$219<M.length;R={i$jscomp$219:R.i$jscomp$219},R.i$jscomp$219++)J.push(OI(M[R.i$jscomp$219]).subscribe(new jX(z,function(D){return function(N){if(J){for(var Z=0;Z<J.length;Z++)Z!==D.i$jscomp$219&&J[Z].unsubscribe();J=null}z.next(N)}}(R))))}};
Nu3=function(){var M=_.H4.apply(0,arguments),z=hnp(M),J=zDY(M);return J.length?new ZD(function(R){var D=J.map(function(){return[]}),N=J.map(function(){return!1});
R.add(function(){D=N=null});
for(var Z={sourceIndex$jscomp$1:0};!R.closed&&Z.sourceIndex$jscomp$1<J.length;Z={sourceIndex$jscomp$1:Z.sourceIndex$jscomp$1},Z.sourceIndex$jscomp$1++)OI(J[Z.sourceIndex$jscomp$1]).subscribe(new jX(R,function(B){return function(O){D[B.sourceIndex$jscomp$1].push(O);D.every(function(X){return X.length})&&(O=D.map(function(X){return X.shift()}),R.next(z?z.apply(null,_.Yj(O)):O),D.some(function(X,l){return!X.length&&N[l]})&&R.complete())}}(Z),void 0,function(B){return function(){N[B.sourceIndex$jscomp$1]=
!0;
!D[B.sourceIndex$jscomp$1].length&&R.complete()}}(Z)));
return function(){D=N=null}}):hG};
Pv0=function(M){var z,J,R;return!!M&&typeof M.active==="boolean"&&typeof((z=M.clock)==null?void 0:z.now)==="function"&&((J=M.clock)==null?void 0:J.timeline)!==void 0&&!((R=M.lastMeasurement)==null||!R.timestamp)&&typeof M.equivalentTo==="function"&&typeof M.extrapolateToNow==="function"&&typeof M.extrapolateToTime==="function"&&typeof M.map==="function"&&typeof M.joinWith==="function"};
Sa0=function(M){function z(J){return typeof J==="boolean"||typeof J==="string"||typeof J==="number"||J===void 0||J===null}
return z(M)?!0:Array.isArray(M)?M.every(z):typeof M==="object"?Object.keys(M).every(function(J){return typeof J==="string"})&&Object.values(M).every(function(J){return Array.isArray(J)?J.every(z):z(J)}):!1};
ZOc=function(M){if(Sa0(M))return M;if(Pv0(M))return{lastMeasurement:{value:ZOc(M.lastMeasurement.value),timestamp:cy(M.lastMeasurement.timestamp,new KS(0,M.lastMeasurement.timestamp.timeline))},active:M.active};try{return JSON.parse(JSON.stringify(M))}catch(z){}return String(M)};
qy=function(M,z){return function(J){return new ZD(function(R){return J.subscribe(function(D){M.timeExecution(z,function(){R.next(D)})()},function(D){M.timeExecution(z,function(){R.error(D)})()},function(){M.timeExecution(z,function(){R.complete()})()})})}};
k$8=function(M,z){var J=!1;return new ZD(function(R){var D=M.setTimeout(function(){J=!0;R.next(!0);R.complete()},z);
return function(){J||M.clearTimeout(D)}})};
BuH=function(M){M=M.global;if(M.fetchLater)return M.fetchLater.bind(M)};
Wy=function(M){return tG(function(z,J){var R=null,D=!1,N;R=z.subscribe(new jX(J,void 0,function(Z){N=OI(M(Z,Wy(M)(z)));R?(R.unsubscribe(),R=null,N.subscribe(J)):D=!0}));
D&&(R.unsubscribe(),R=null,N.subscribe(J))})};
OOp=function(M,z,J){return function(R,D){var N=J,Z=z,B=0;R.subscribe(new jX(D,function(O){var X=B++;Z=N?M(Z,O,X):(N=!0,O);D.next(Z)},void 0,void 0))}};
Tuc=function(M){M=M===void 0?null:M;return tG(function(z,J){var R=!1;z.subscribe(new jX(J,function(D){R=!0;J.next(D)},void 0,function(){R||J.next(M);
J.complete()}))})};
ao=function(){return tG(function(M,z){M.subscribe(new jX(z,DD))})};
Va=function(M){return tG(function(z,J){z.subscribe(new jX(J,function(){return J.next(M)}))})};
EI=function(M){return M<=0?function(){return hG}:tG(function(z,J){var R=0;
z.subscribe(new jX(J,function(D){++R<=M&&(J.next(D),M<=R&&J.complete())}))})};
fS=function(M){var z=z===void 0?Py:z;var J;M=(J=M)!=null?J:Io8;return tG(function(R,D){var N,Z=!0;R.subscribe(new jX(D,function(B){var O=z(B);if(Z||!M(N,O))Z=!1,N=O,D.next(B)}))})};
Io8=function(M,z){return M===z};
XjG=function(M){M=M===void 0?orR:M;return tG(function(z,J){var R=!1;z.subscribe(new jX(J,function(D){R=!0;J.next(D)},void 0,function(){return R?J.complete():J.error(M())}))})};
orR=function(){return new loH};
LS=function(){var M=_.H4.apply(0,arguments);return function(z){return LWo(z,GT.apply(null,_.Yj(M)))}};
eD8=function(M){return tG(function(z,J){var R=0;z.subscribe(new jX(J,function(D){M.call(void 0,D,R++,z)||(J.next(!1),J.complete())},void 0,function(){J.next(!0);
J.complete()}))})};
Q$o=function(){return tG(function(M,z){var J=[];M.subscribe(new jX(z,function(R){J.push(R);1<J.length&&J.shift()},void 0,function(){for(var R=_.S(J),D=R.next();!D.done;D=R.next())z.next(D.value);
z.complete()},function(){J=null}))})};
UxH=function(M,z){var J=arguments.length>=2;return function(R){return R.pipe(M?Hy(function(D,N){return M(D,N,R)}):Py,Q$o(),J?Tuc(z):XjG(function(){return new loH}))}};
iY=function(M){var z=JG(M)?M:function(){return M};
return JG()?tG(function(J,R){var D=z();(void 0)(D).subscribe(R).add(J.subscribe(D))}):function(J){var R=new AG(J,z);
JG(J==null?void 0:J.lift)&&(R.lift=J.lift);R.source=J;R.subjectFactory=z;return R}};
bY=function(M){var z=new CS(M,void 0,void 0);return function(J){return iY(function(){return z})(J)}};
rV=function(M,z){return tG(OOp(M,z,arguments.length>=2))};
Mx=function(){var M=_.H4.apply(0,arguments),z=vy(M);return tG(function(J,R){(z?LWo(M,J,z):LWo(M,J)).subscribe(R)})};
z$=function(M){return tG(function(z,J){var R=null,D=0,N=!1;z.subscribe(new jX(J,function(Z){var B;(B=R)==null||B.unsubscribe();B=D++;OI(M(Z,B)).subscribe(R=new jX(J,function(O){return J.next(O)},void 0,function(){R=null;
N&&!R&&J.complete()}))},void 0,function(){(N=!0,!R)&&J.complete()}))})};
JA=function(M,z){z=z===void 0?!1:z;return tG(function(J,R){var D=0;J.subscribe(new jX(R,function(N){var Z=M(N,D++);(Z||z)&&R.next(N);!Z&&R.complete()}))})};
vrw=function(M,z,J){var R=JG(M)||z||J?{next:M,error:z,complete:J}:M;return R?tG(function(D,N){D.subscribe(new jX(N,function(Z){var B;(B=R.next)==null||B.call(R,Z);N.next(Z)},function(Z){var B;
(B=R.error)==null||B.call(R,Z);N.error(Z)},function(){var Z;
(Z=R.complete)==null||Z.call(R);N.complete()}))}):Py};
G$H=function(){var M=_.H4.apply(0,arguments),z=hnp(M);return tG(function(J,R){for(var D=M.length,N=Array(D),Z=M.map(function(){return!1}),B=!1,O={i$jscomp$229:0};O.i$jscomp$229<D;O={i$jscomp$229:O.i$jscomp$229},O.i$jscomp$229++)OI(M[O.i$jscomp$229]).subscribe(new jX(R,function(X){return function(l){N[X.i$jscomp$229]=l;
B||Z[X.i$jscomp$229]||(Z[X.i$jscomp$229]=!0,(B=Z.every(Py))&&(Z=null))}}(O),void 0,DD));
J.subscribe(new jX(R,function(X){B&&(X=[X].concat(_.Yj(N)),R.next(z?z.apply(null,_.Yj(X)):X))}))})};
xxH=function(M){try{return!!M&&M.location.href!=null&&wj0(M,"foo")}catch(z){return!1}};
tUn=function(M){var z=[],J=0,R;for(R in M)z[J++]=R;return z};
j$G=function(M,z){for(var J in M)if(M[J]==z)return!0;return!1};
pjY=function(M,z,J){for(var R in M)if(z.call(J,M[R],R,M))return R};
Fa0=function(M){if(!M||typeof M!=="object")return M;if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);if(M instanceof Date)return new Date(M.getTime());var z=Array.isArray(M)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(M)||M instanceof DataView?{}:new M.constructor(M.length),J;for(J in M)z[J]=Fa0(M[J]);return z};
Yap=function(M){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return Yap.apply(null,arguments[0]);if(z%2)throw Error("ka");for(var J={},R=0;R<z;R+=2)J[arguments[R]]=arguments[R+1];return J};
mxH=function(M){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return mxH.apply(null,arguments[0]);for(var J={},R=0;R<z;R++)J[arguments[R]]=!0;return J};
_.R$=function(M){return new SIY(M[0].toLowerCase())};
gr3=function(M){for(var z=_.H4.apply(1,arguments),J=M[0],R=0;R<M.length-1;R++)J+=String(z[R]),J+=M[R+1];z=document.implementation.createHTMLDocument("");R=z.createElement("style");z.head.appendChild(R);z=R.sheet;z.insertRule(J,0);if(z.cssRules.length===1&&(J=z.cssRules[0],J instanceof CSSStyleRule))return new zT(J.cssText.replace(/</g,"\\3C "))};
s$o=function(M){try{return new URL(M,window.document.baseURI)}catch(z){return new URL("about:invalid")}};
nr3=function(M,z){var J=z.createRange();J.selectNode(z.body);M=us(M);return J.createContextualFragment(qE(M))};
hDc=function(M){M=M.nodeName;return typeof M==="string"?M:"FORM"};
yAc=function(M){M=M.nodeType;return M===1||typeof M!=="number"};
Do=function(M,z,J){M.setAttribute(z,J)};
HOR=function(M){return M.parts.map(function(z){var J=z.descriptor;return""+z.url+(J?" "+J:"")}).join(" , ")};
_.Nx=function(M){var z=_.H4.apply(1,arguments);if(z.length===0)return _.wi(M[0]);for(var J=M[0],R=0;R<z.length;R++)J+=encodeURIComponent(z[R])+M[R+1];return _.wi(J)};
_.Pj=function(M,z){M=_.xq(M).toString();var J=M.split(/[?#]/),R=/[?]/.test(M)?"?"+J[1]:"";return cAp(J[0],R,/[#]/.test(M)?"#"+(R?J[2]:J[1]):"",z)};
cAp=function(M,z,J,R){function D(Z,B){Z!=null&&(Array.isArray(Z)?Z.forEach(function(O){return D(O,B)}):(z+=N+encodeURIComponent(B)+"="+encodeURIComponent(Z),N="&"))}
var N=z.length?"&":"?";R.constructor===Object&&(R=Object.entries(R));Array.isArray(R)?R.forEach(function(Z){return D(Z[1],Z[0])}):R.forEach(D);
return _.wi(M+z+J)};
SU=function(M,z,J,R){this.top=M;this.right=z;this.bottom=J;this.left=R};
dxb=function(M){M=M.global;if(M.PendingGetBeacon)return M.PendingGetBeacon};
Bj=function(M){return function(z){return z.pipe(Kao(M,iY(new Zo)))}};
T$=function(M){return function(z){return z.pipe(Kao(M,bY(1)))}};
Kao=function(M,z){function J(R){return new ZD(function(D){return R.subscribe(function(N){I$(M,function(){return void D.next(N)},3)},function(N){I$(M,function(){return void D.error(N)},3)},function(){I$(M,function(){return void D.complete()},3)})})}
return SX(J,HS3(),z,pS(),J)};
qap=function(M){var z=$xn(M);return z===null?new X3(null):z.pipe(F4(function(J){J=J.serialize();if(u3G)J=_.R3.btoa(J);else{for(var R=[],D=0,N=0;N<J.length;N++){var Z=J.charCodeAt(N);Z>255&&(R[D++]=Z&255,Z>>=8);R[D++]=Z}J=_.YG(R)}return J}),EI(1),T$(M.queue))};
Wa8=function(M){var z=z===void 0?{}:z;if(typeof Event==="function")return new Event(M,z);if(typeof document!=="undefined"){var J=document.createEvent("CustomEvent");J.initCustomEvent(M,z.bubbles||!1,z.cancelable||!1,z.detail);return J}throw Error();};
aop=function(M){return typeof M==="string"?document.getElementById(M):M};
Ere=function(M){var z=!1;z=z===void 0?!1:z;if(M.tagName==="IMG"){if(M.complete&&(!M.naturalWidth||!M.naturalHeight))return!0;var J;if(z&&((J=M.style)==null?void 0:J.display)==="none")return!0}var R,D;return VUw.test((R=M.getAttribute("width"))!=null?R:"")&&VUw.test((D=M.getAttribute("height"))!=null?D:"")};
foe=function(M,z){if(M.tagName==="IMG")return M.naturalWidth&&M.naturalHeight?!0:!1;try{if(M.readyState)var J=M.readyState;else{var R,D;J=(R=M.contentWindow)==null?void 0:(D=R.document)==null?void 0:D.readyState}return J==="complete"}catch(N){return z===void 0?!1:z}};
LaG=function(M){M||(M=function(z,J,R){z.addEventListener(J,R)});
return M};
bO3=function(M,z){var J=AAw();J=J===void 0?new iOc:J;if(M=aop(M)){var R=LaG(R);for(var D=!1,N=function(y){D||(D=!0,z(y))},Z,B=2,O=0;O<CvG.length;++O)if(CvG[O]===M.tagName){B=3;
Z=[M];break}Z||(Z=M.querySelectorAll(CvG.join(",")));var X=0,l=0,e=!0,Q=M=!1;O={};for(var v=0;v<Z.length;O={isImg:void 0},v++){var x=Z[v];if(!Ere(x))if(O.isImg=x.tagName==="IMG",foe(x,J.crossDomainLoadedDefault))M=!0,O.isImg&&(e=!0);else{X++;var m=function(y){return function(H){X--;!X&&e&&N(B);y.isImg&&(H=H&&H.type==="error",l--,H||(e=!0),!l&&Q&&e&&N(B))}}(O);
R(x,"load",m);O.isImg&&(l++,R(x,"error",m))}}l===0&&(e=!0);Z=null;Z=_.R3.document.readyState==="complete";if(X===0&&!M&&Z)B=5;else if(X||!M){R(_.R3,"load",function(){!J.pendingImagesBlockLoad||!l&&e?N(4):Q=!0});
return}N(B)}};
rA8=function(M,z,J){if(M)for(var R=0;M!=null&&R<500&&!J(M);++R)M=z(M)};
MJb=function(M,z){rA8(M,function(J){try{return J===J.parent?null:J.parent}catch(R){}return null},z)};
zBp=function(M,z){if(M.tagName=="IFRAME")z(M);else{M=M.querySelectorAll("IFRAME");for(var J=0;J<M.length&&!z(M[J]);++J);}};
JKH=function(M){return(M=M.ownerDocument)&&(M.parentWindow||M.defaultView)||null};
RB8=function(M,z,J){try{var R=JSON.parse(J.data)}catch(Z){}if(typeof R==="object"&&R&&R.type==="creativeLoad"){var D=JKH(M);if(J.source&&D){var N;MJb(J.source,function(Z){try{if(Z.parent===D)return N=Z,!0}catch(B){}});
N&&zBp(M,function(Z){if(Z.contentWindow===N)return z(R),!0})}}};
D$R=function(M){return typeof M==="string"?document.getElementById(M):M};
ZWw=function(){var M={};return M[0]=_.Nx(NS0,"current"),M[1]=_.Nx(Pmp),M[2]=_.Nx(SCp),M};
lv=function(M,z){return M.left===z.left&&M.top===z.top&&M.width===z.width&&M.height===z.height};
kze=function(M,z){return{left:Math.max(M.left,z.left),top:Math.max(M.top,z.top),width:Math.max(0,Math.min(M.left+M.width,z.left+z.width)-Math.max(M.left,z.left)),height:Math.max(0,Math.min(M.top+M.height,z.top+z.height)-Math.max(M.top,z.top))}};
BSc=function(M,z){return{left:Math.round(M.left+z.x),top:Math.round(M.top+z.y),width:M.width,height:M.height}};
OWp=function(M,z,J){if(M&&z!==null&&z!=z.top){if(!z.top)return new _.eU(-12245933,-12245933);z=z.top}try{return(J===void 0?0:J)?(new _.eU(z.innerWidth,z.innerHeight)).round():_.QW(z).round()}catch(R){return new _.eU(-12245933,-12245933)}};
TS8=function(M,z,J){try{if(M){if(!z.top)return new SU(-12245933,-12245933,-12245933,-12245933);z=z.top}var R=OWp(M,z,J),D=R.height,N=R.width;if(N===-12245933)return new SU(N,N,N,N);var Z=Ua(vj(z.document)),B=Z.x,O=Z.y;return new SU(O,B+N,O+D,B)}catch(X){return new SU(-12245933,-12245933,-12245933,-12245933)}};
I0p=function(M){var z;return(z=M.google_tag_data)!=null?z:M.google_tag_data={}};
oFY=function(M){var z,J;return typeof((z=M.navigator)==null?void 0:(J=z.userAgentData)==null?void 0:J.getHighEntropyValues)==="function"};
l0n=function(M){if(!oFY(M))return null;var z=I0p(M);if(z.uach_promise)return z.uach_promise;M=M.navigator.userAgentData.getHighEntropyValues(X60).then(function(J){z.uach!=null||(z.uach=J);return J});
return z.uach_promise=M};
YC8=function(M){var z;return eBp(Q2e(U$p(vF0(Gzn(w6p(x$Y(tJw(j2Y(new p60,M.architecture||""),M.bitness||""),M.mobile||!1),M.model||""),M.platform||""),M.platformVersion||""),M.uaFullVersion||""),((z=M.fullVersionList)==null?void 0:z.map(function(J){var R=new Fq0;R=_.G$(R,1,J.brand);return _.G$(R,2,J.version)}))||[]),M.wow64||!1)};
m$w=function(M){var z,J;return(J=(z=l0n(M))==null?void 0:z.then(function(R){return YC8(R)}))!=null?J:null};
gFc=function(M,z){return new ZD(function(J){var R=!1,D=Array(z.length);D.fill(void 0);var N=new Set,Z=new Set,B=function(e,Q){M.running?(D[Q]=e,N.add(Q),R||(R=!0,I$(M,function(){R=!1;J.next(_.uG(D))},1))):J.error(new xr(Q))},O=function(e,Q){Z.add(Q);
N.add(Q);I$(M,function(){J.error(e)},1)},X=function(e){Z.add(e);
I$(M,function(){Z.size===z.length&&J.complete()},1)},l=z.map(function(e,Q){return e.subscribe(function(v){return void B(v,Q)},function(v){return void O(v,Q)},function(){return void X(Q)})});
return function(){l.forEach(function(e){return void e.unsubscribe()})}})};
hBw=function(M,z,J){function R(){if(z.debugChannel){var y=z.debugChannel,H=y.next;var q={creativeId:z.debugNames.getName(J),requiredSignals:D,signals:Object.assign({},N),hasPrematurelyCompleted:Z,errorMessage:B,erroredSignalKey:O};q={specMajor:2,specMinor:0,specPatch:0,timestamp:cy(z.timeProvider.now(),new KS(0,z.timeProvider.timeline)),instanceId:z.debugNames.getName(z.symbol),creativeState:q};H.call(y,q)}}
for(var D=Object.keys(M),N={},Z=!1,B=null,O=null,X={},l=new Set,e=[],Q=[],v=_.S(D),x=v.next(),m={};!x.done;m={key$jscomp$396:void 0},x=v.next())m.key$jscomp$396=x.value,x=M[m.key$jscomp$396],x instanceof X3?(X[m.key$jscomp$396]=x.value,l.add(m.key$jscomp$396),z.debugChannel&&(N[String(m.key$jscomp$396)]=ZOc(x.value))):(x=x.pipe(fS(function(y,H){return Pv0(y)||Pv0(H)?!1:y===H}),F4(function(y){return function(H){z.debugChannel&&(N[String(y.key$jscomp$396)]=ZOc(H),R());
var q={};return q[y.key$jscomp$396]=H,q}}(m)),Wy(function(y){return function(H){if(H instanceof xr)throw new s28(String(y.key$jscomp$396));
throw H;}}(m)),vrw(function(y){return function(){l.add(y.key$jscomp$396)}}(m),function(y){return function(H){O=String(y.key$jscomp$396);
B=String(H);R()}}(m),function(y){return function(){l.has(y.key$jscomp$396)||(Z=!0,R())}}(m))),Q.push(m.key$jscomp$396),e.push(x));
(M=Object.keys(N).length>0)&&R();v=gFc(z.queue,e).pipe(Wy(function(y){if(y instanceof xr)throw new nFw(String(Q[y.inputObservableIndex]));throw y;}),F4(function(y){return Object.freeze(Object.assign.apply(Object,[{},
X].concat(_.Yj(y))))}));
return(e=e.length>0)&&M?ya(GT(Object.freeze(X)),v):e?v:GT(Object.freeze(X))};
yK3=function(M,z,J,R,D){return M.performanceMonitor.timeExecution.bind(M.performanceMonitor)(733,function(){var N={};try{return z.pipe(Wy(function(Z){R(Object.assign({},N,{error:Z}));return hG}),sI(function(Z){try{var B=J(M,Z)}catch(X){return R(Object.assign({},N,{error:X instanceof Error?X:String(X)})),hG}var O={};
return hBw(B,M,Z.symbol).pipe(vrw(function(X){O=X}),bY(1),pS()).pipe(D,Wy(function(X){R(Object.assign({},O,{error:X}));
return hG}),LS(void 0),F4(function(){return!0}))})).pipe(rV(function(Z){return Z+1},0),Wy(function(Z){R(Object.assign({},N,{error:Z}));
return hG}))}catch(Z){return R(Object.assign({},N,{error:Z})),hG}})()};
tA=function(M){var z=new Map;if(typeof M!=="object"||M===null)return z;Object.values(M).forEach(function(J){J&&typeof J.extrapolateToNow==="function"&&(z.has(J.clock.timeline)||z.set(J.clock.timeline,J.clock.now()))});
return z};
HWp=function(M,z){return typeof M==="string"?encodeURIComponent(M):typeof M==="number"?String(M):Array.isArray(M)?M.map(function(J){return HWp(J,z)}).join(","):M instanceof KS?M.toString():M&&typeof M.extrapolateToNow==="function"?HWp(M.extrapolateUsingTimestampMap(z).value,z):M===!0?"1":M===!1?"0":M===void 0||M===null?null:M instanceof cK0?d$w(M):[M.top,
M.left,M.top+M.height,M.left+M.width].join()};
KqR=function(M,z){M=Object.entries(M).map(function(J){var R=_.S(J);J=R.next().value;R=R.next().value;R=HWp(R,z);return R===null?"":J+"="+R}).filter(function(J){return J!==""});
return M.length?M.join("&"):""};
qCR=function(M,z){var J=$$o,R=u_p;z=z===void 0?.01:z;return function(D){z>0&&Math.random()<=z&&(M.global.HTMLFencedFrameElement&&M.global.fence&&typeof M.global.fence.reportEvent==="function"&&M.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),D=Object.assign({},D,{errorMessage:D.error instanceof Error&&D.error.message?D.error.message:String(D.error),errorStack:D.error instanceof Error&&D.error.stack?String(D.error.stack):null,errorName:D.error instanceof
Error&&D.error.name?String(D.error.name):null,errorContext:String(M.performanceMonitor.timedFunctionContext),errorEscapedQueryId:D.escapedQueryId}),J(Object.assign({},D,{payloadMapper:function(){return function(N){try{return R(Object.assign({},N))}catch(Z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),tA(D)).forEach(function(N){M.beaconFactory.makeBeacon(N).sendNow()}))}};
WqG=function(){var M=_.H4.apply(0,arguments);return function(z){var J=z.pipe(bY(1),pS());z=M.map(function(R){return J.pipe(R,LS(!0))});
return mW(z).pipe(EI(1),ao())}};
a08=function(){var M=_.H4.apply(0,arguments);return function(z){var J=z.pipe(bY(1),pS());z=M.map(function(R){return J.pipe(R,LS(!0))});
return ya.apply(null,_.Yj(z)).pipe(EI(1),ao())}};
VJb=function(M,z){return function(J){var R=J.pipe(bY(1),pS());J=R.pipe(M,LS(!0));R=R.pipe(SX(z,bY(),pS()),LS(!0));J=mW([J,R]);return Dxw(J,R).pipe(EI(1),ao())}};
EF8=function(M,z,J){J(!0)};
f00=function(M,z){return SX(z$(function(J){var R=M(J),D=z(J),N={};return R&&D&&N?new ZD(function(Z){D(R,N,function(B){Z.next(Object.assign({},J,{canEmit:B}));Z.complete()});
return function(){}}):jU}),Hy(function(J){return J.canEmit}))};
Lq3=function(M){var z={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(J){return J.pipe(z$(function(R){return new ZD(function(D){function N(){B.disconnect();O.unsubscribe()}
var Z=M.MutationObserver;if(Z&&R.ref!==void 0){var B=new Z(function(X){D.next(X)});
B.observe(R.ref,z);var O=R.JSC$9327_released.subscribe(N);return N}})}))}};
AKR=function(M){if(M.measurementDeferralState===3)return null;if(M.timeOnScreenReason!==void 0){var z=M.creativeFound===!1?"n":null;if(z!==null)return z}return M.geometricMeasurementErrors instanceof pO?"msf":M.contextValidationErrors instanceof ma?"c":M.contextVisibilityKnown===!1?"pv":M.geometricMeasurementErrors||M.contextValidationErrors?"x":null};
Cmb=function(M,z){return M.replace(iWw,function(J,R){try{var D=_.gu.get(z,R);if(D==null||D.toString()==null)return J;D=D.toString();if(D==""||!_.ko(D==null?"":String(D)))return encodeURIComponent(D).replace(/%2C/g,",")}catch(N){}return J})};
bWY=function(M,z){var J=Object.assign({},M),R=M.userAgentClientHints;J=(delete J.userAgentClientHints,J);J=M.payloadMapper(J);var D=KqR(J,z);return _.sa(M.urlPrefixes,function(N){var Z="";typeof R==="string"&&(Z="&"+KqR({uach:R},z));var B={};return Cmb(N,(B.VIEWABILITY=D,B))+Z})};
$$o=function(M,z){var J=M.payloadMapper(M),R=KqR(J,z);return R?_.sa(M.urlPrefixes,function(D){D=D.indexOf("?")>=0?D:D+"?";D="?&".indexOf(D.slice(-1))>=0?D:D+"&";return D+R}):M.urlPrefixes};
rKR=function(){return SX(Hy(function(M){return M!==void 0}),F4(function(M){return M}))};
MP8=function(M){return SX(F4(function(){return!0}),Mx(!1),T$(M))};
zSo=function(M){return M.length<=0?hG:mW(M.map(function(z){var J=0;return z.pipe(F4(function(R){return{index:J++,value:R}}))})).pipe(Hy(function(z){return z.every(function(J){return J.index===z[0].index})}),F4(function(z){return z.map(function(J){return J.value})}))};
JP0=function(M,z){M.currentState&&(M.previousState=M.currentState);M.currentState=z;M.previousState&&M.previousState.value?(z=Math.max(0,cy(z.timestamp,M.previousState.timestamp)),M.totalTime+=z,M.consecutiveTime+=z):M.consecutiveTime=0;return M};
RS3=function(){return SX(rV(JP0,{totalTime:0,consecutiveTime:0}),F4(function(M){return M.totalTime}))};
DaR=function(){return SX(rV(JP0,{totalTime:0,consecutiveTime:0}),F4(function(M){return M.consecutiveTime}))};
Nfe=function(M,z){return function(J){return zSo(z.map(function(R){return J.pipe(M(R))}))}};
P0p=function(){var M;return SX(vrw(function(z){return void(M=z.timestamp)}),DaR(),F4(function(z){return{timestamp:M,
value:Math.round(z)}}))};
SZ8=function(M,z){return lv(M.topWindowViewportExternalGeometry,z.topWindowViewportExternalGeometry)&&lv(M.elementGeometry,z.elementGeometry)&&lv(M.exposedViewportLocalGeometry,z.exposedViewportLocalGeometry)&&lv(M.intersectionGeometry,z.intersectionGeometry)&&M.elementGeometrySourceName===z.elementGeometrySourceName&&M.measurementRequests===z.measurementRequests&&M.viewportGeometrySourceName===z.viewportGeometrySourceName&&M.viewportLocalAppOffset.x===z.viewportLocalAppOffset.x&&M.viewportLocalAppOffset.y===
z.viewportLocalAppOffset.y};
OqG=function(M,z){return function(J){return function(R){var D=R.pipe(iY(new Zo),pS());R=J.element.pipe(fS());D=D.pipe(F4(function(N){return N.value}));
return mW([R,D,z]).pipe(F4(function(N){var Z=_.S(N);N=Z.next().value;var B=Z.next().value;Z=Z.next().value;if(N.ref===void 0)var O={top:0,left:0,width:0,height:0};else{O=N.ref.getBoundingClientRect();var X=N.ref,l=M.global,e=new _.nO(0,0),Q=hA(_.yW(X));if(wj0(Q,"parent")){do{if(Q==l)var v=_.Hj(X);else v=Zqw(X),v=new _.nO(v.left,v.top);e.x+=v.x;e.y+=v.y}while(Q&&Q!=l&&Q!=Q.parent&&(X=Q.frameElement)&&(Q=Q.parent))}O={top:e.y,left:e.x,width:O.width,height:O.height}}O=BSc(O,B.viewportLocalAppOffset);
l=kze(O,B.exposedViewportLocalGeometry);e=M.timeProvider.now();Q=Object;X=Q.assign;if(Z!==2||M.inCrossDomainIframe||l.width<=0||l.height<=0)var x=!1;else try{var m=M.document.elementFromPoint(l.left+l.width/2,l.top+l.height/2);x=m?!kk8(m,N):!1}catch(y){x=!1}return{timestamp:e,value:X.call(Q,{},B,{elementGeometrySourceName:"geo",intersectionGeometry:x?Bfo.intersectionGeometry:l,elementGeometry:O})}}),Bj(M.queue))}}};
kk8=function(M,z,J){J=J===void 0?0:J;return M.ref===void 0||z.ref===void 0?!1:M.ref===z.ref||_.cj(z.ref,function(R){return R===M.ref})?!0:z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView===z.ref.ownerDocument.defaultView.top?!1:J<10&&z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView.frameElement?kk8(M,new du(z.ref.ownerDocument.defaultView.frameElement),J+1):!0};
oEe=function(M){return function(z){return z.pipe(M.ResizeObserver?Tf3(M):IZ8(M),bY(1),pS())}};
Tf3=function(M){return function(z){return z.pipe(z$(function(J){var R=M.ResizeObserver;if(!R||J.ref===void 0)return GT(Bfo.elementGeometry);var D=(new ZD(function(N){function Z(){J.ref!==void 0&&B.unobserve(J.ref);B.disconnect();O.unsubscribe()}
if(J.ref===void 0)return N.complete(),function(){};
var B=new R(function(X){X.forEach(function(l){N.next(l)})});
B.observe(J.ref);var O=J.JSC$9327_released.subscribe(Z);return Z})).pipe(qy(M.performanceMonitor,736),F4(function(N){return N.contentRect}));
return ya(GT(J.ref.getBoundingClientRect()),D)}),fS(lv))}};
IZ8=function(M){return function(z){var J=z.pipe(Lq3(M)),R=M.onResize;J=ya(z.pipe(F4(function(){return Wa8("resize")})),J,R);
return mW(z,J).pipe(qy(M.performanceMonitor,737),F4(function(D){D=_.S(D).next().value;return D.ref===void 0?void 0:D.ref.getBoundingClientRect()}),rKR(),fS(lv))}};
eSH=function(M,z){var J=Xl8(M,z).pipe(bY(1),pS());return function(R){return function(D){D=D.pipe(z$(function(N){return N.element}),fS());
return mW([J,D]).pipe(z$(function(N){var Z=_.S(N);N=Z.next().value;Z=Z.next().value;return lZe(M,N.intersectionObserver,oEe(M),N.observations,R,N.flushRecords,Z)}),Bj(M.queue))}}};
Q4R=function(M){return F4(function(z){return z.value.viewportGeometrySourceName!=="nio"?z:Object.assign({},z,{value:Object.assign({},z.value,{exposedViewportLocalGeometry:KO(M,!0),topWindowViewportExternalGeometry:KO(M,!0)})})})};
Uan=function(M,z){return GT(z).pipe(M,F4(function(){return z}))};
Xl8=function(M,z){return M.timeProvider.timeline!==vEn?xj(new pO(2)):M.MutationObserver?typeof IntersectionObserver==="undefined"?xj(new pO(0)):(new ZD(function(J){var R=new Zo,D=new $r(R.next.bind(R),{threshold:[].concat(_.Yj(z))});J.next({observations:R.pipe(qy(M.performanceMonitor,735)),intersectionObserver:D,flushRecords:function(N){N=D.takeRecords(N);N.length>0&&R.next(N)}})})).pipe(EI(1),bY(1),pS()):xj(new pO(1))};
Gkb=function(M){return joe(M.sort(function(z,J){return z.time-J.time}),yG3)};
lZe=function(M,z,J,R,D,N,Z){return new ZD(function(B){function O(){x||(x=!0,Z.ref!==void 0&&z.unobserve(D,Z.ref),l.unsubscribe(),v.unsubscribe(),Q.unsubscribe(),m.unsubscribe())}
if(Z.ref!==void 0){wl0(z,D);z.observe(D,Z.ref);var X=new uv({timestamp:M.timeProvider.now(),value:Object.assign({},Bfo,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),l=R.pipe(sI(function(y){return Gkb(y)}),Hy(function(y){return y.target===Z.ref}),F4(function(y){return{timestamp:new KS(y.time,vEn),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:y.rootBounds||qx,topWindowViewportExternalGeometry:y.rootBounds||KO(M,!0),measurementRequests:e,elementGeometrySourceName:"nio",intersectionGeometry:y.intersectionRect,elementGeometry:y.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:y.isIntersecting,isV2Visible:y.isVisible}}}),iY(X),pS()).subscribe(B),e=new Zo,Q=e.subscribe(function(){N(D);
B.next({timestamp:M.timeProvider.now(),value:X.value.value});Z.ref!==void 0&&(z.unobserve(D,Z.ref),z.observe(D,Z.ref))}),v=Uan(J,Z).subscribe(function(){e.next()}),x=!1,m=Z.JSC$9327_released.subscribe(function(){return O()});
return O}})};
xae=function(M,z){var J=M.getOnBackgrounded().pipe(F4(function(){return"b"}));
return Dxw(z,J).pipe(EI(1),T$(M.queue))};
Wj=function(M){return function(z){var J;return z.pipe(vrw(function(R){return void(J=R.timestamp)}),F4(function(R){return R.value}),M,F4(function(R){return{timestamp:J,
value:R}}))}};
tPp=function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.elementGeometry.width*M.elementGeometry.height)};
a$=function(M,z,J){J=J===void 0?function(R,D){return R===D}:J;
return M.timestamp.equals(z.timestamp)&&J(M.value,z.value)};
fO=function(M,z){return z.pipe(F4(function(J){return new Ea(M.timeProvider,{timestamp:M.timeProvider.now(),value:J})}))};
j4Y=function(M){return function(z){return z.pipe(G$H(M),F4(function(J){var R=_.S(J);J=R.next().value;R=R.next().value;var D=J.value;return{timestamp:J.timestamp,value:D>=1?!0:D<=0?!1:D>=R}}))}};
Ftn=function(){return SX(Hy(function(M,z){return z>0}),plb,Mx(-1),fS())};
YZc=function(M,z,J){return M?mW([z,J]).pipe(Hy(function(R){var D=_.S(R);R=D.next().value;D=D.next().value;return R.timestamp.equals(D.timestamp)}),F4(function(R){var D=_.S(R);
R=D.next().value;D=D.next().value;return R.value>D.value?R:D})):z};
s4p=function(M){return function(z){var J=z.pipe(map),R=z.pipe(gE8);return M instanceof ZD?M.pipe(z$(function(D){return YZc(D,J,R)})):YZc(M.value,J,R)}};
qZp=function(M,z,J,R){var D=R.geometryIsOccluded,N=R.exposureThreshold,Z=R.wasLargeAdAtRender,B=R.allowLargeAdThreshold,O=R.largeAdExposureThreshold,X=R.mayUseViewportShareExposure,l=R.hasMeasurementStarted;R=R.useIntersectionObserverV2;z=nE8(M,J,z);J=hSc(M,J);R=yPH(z,R);var e=Hqn(M,D,X,z),Q=e.pipe(F4(function(E){return E.value}),fS(),T$(M),rV(function(E,L){return Math.max(E,L)},0)),v=e.pipe(F4(function(E){return E.value}),Ftn(),T$(M)),x=z.pipe(cP8,F4(function(E){return E.value}),EI(2),fS(),T$(M));
Z=dap(M,z,Z,B);var m=Z.pipe(Mx(!1),fS(),F4(function(E){return E?O:N}));
B=e.pipe(j4Y(m),fS(),T$(M));var y=mW([B,z]).pipe(Hy(function(E){var L=_.S(E);E=L.next().value;L=L.next().value;return E.timestamp.equals(L.timestamp)}),F4(function(E){var L=_.S(E);
E=L.next().value;L=L.next().value;return{visible:E.value,geometry:L.value.elementGeometry}}),rV(function(E,L){return!L.visible&&E.visible?E:L},{visible:!1,
geometry:qx}),F4(function(E){return E.geometry}),Mx(qx),T$(M),fS(lv));
X=X instanceof ZD?X.pipe(fS(),Va()):jU;m=mW([X,m]).pipe(Va());var H=z.pipe(Hy(function(E){return E.value.viewportGeometrySourceName!=="ns"&&E.value.elementGeometrySourceName!=="ns"}),rV(function(E){return E+1},0),Mx(0),T$(M)),q=J.pipe(Va(!0),Mx(!1),T$(M));
q=mW([l,q]).pipe(F4(function(E){var L=_.S(E);E=L.next().value;L=L.next().value;return E&&!L}),T$(M));
var b=z.pipe(KtG,fS()),V=b.pipe(F4(function(E){return E.value}),rV(function(E,L){return Math.max(E,L)},0),fS(),T$(M));
M=b.pipe(F4(function(E){return E.value}),Ftn(),T$(M));
return{shouldResetExposureSignals:X,shouldResetViewabilitySignals:m,geometrySignals:{readyGeometryWithDefault:z,measurementStrategy:z.pipe($aR),creativePosition:y.pipe(fS(lv)),visible:B.pipe(fS(a$)),timestampedExposure:e.pipe(fS(a$)),maximumExposure:Q,minimumExposure:v,browserSize:z.pipe(u88,fS(_.Lp)),timestampedScreenShare:b,maxScreenShare:V,minScreenShare:M,geometricMeasurementErrors:J,measurementRequests:z.pipe(F4(function(E){return E.value.measurementRequests})),
isLargeAd:Z,geometryIsOccluded:D,hasMeasurementStarted:l,geometryMeasurable:q,validMeasurementCount:H,loadTimeExposure:x,v2VisibilityBitVector:R}}};
hSc=function(M,z){return z.pipe(Hy(function(){return!1}),F4(function(J){return J}),Wy(function(J){return LO(new X3(J),M)}))};
nE8=function(M,z,J){return z.pipe(JA8(jU),T$(M)).pipe(fS(function(R,D){return a$(R,D,SZ8)}),Mx({timestamp:J.now(),
value:Bfo}),T$(M))};
Hqn=function(M,z,J,R){J=R.pipe(s4p(J),Wj(F4(function(D){return Math.round(D*100)/100})),T$(M));
return z instanceof X3?J:mW([J,z]).pipe(F4(function(D){var N=_.S(D);D=N.next().value;N=N.next().value;return{timestamp:N.timestamp.maximum(D.timestamp),value:N.value?0:D.value}}),fS(a$),T$(M))};
dap=function(M,z,J,R){z=[z.pipe(F4(function(D){return D.value.elementGeometry.width*D.value.elementGeometry.height>=242500}))];
J instanceof ZD&&z.push(J.pipe(F4(function(D){return!!D})));
J=mW(z);return R?J.pipe(F4(function(D){return D.some(function(N){return N})}),Mx(!1),fS(),T$(M)):LO(new X3(!1),M)};
yPH=function(M,z){M=mW([M,z]).pipe(F4(function(D){var N=_.S(D);D=N.next().value;if(N.next().value&&D.value.isIntersecting)return D.value.isV2Visible}),fS());
var J=M.pipe(F4(function(D){return D===void 0?!0:D}),rV(function(D,N){return D||!N},!1)),R=M.pipe(rV(function(D,N){return N===void 0?D:N?!1:D!=null?D:!0},void 0),F4(function(D){return!!D}));
return mW([z,Nu3(M,J,R)]).pipe(F4(function(D){var N=_.S(D);D=N.next().value;var Z=_.S(N.next().value);N=Z.next().value;var B=Z.next().value;Z=Z.next().value;var O=0;if(!D)return 0;if(N===void 0)return 16;N&&(O|=1);N||(O|=2);B&&(O|=4);Z&&(O|=8);return O}))};
Lt8=function(M,z,J,R,D){var N=WtR.timeThresholdMs;var Z=Z===void 0?new aZG(z,R):Z;return(new ZD(function(B){var O=J.pipe(Mx(void 0),z$(function(){return VPp(D)})).pipe(F4(function(X){var l=X.value;
X=X.timestamp;var e=l.visible;l=l.consecutiveViewTime;var Q=l>=N;Q||!e?EEY(Z):(X=Math.max(0,cy(z.now(),X)),fZ8(Z,Math.max(0,N-l-X)));return Q}),rV(function(X,l){return l||X},!1),fS()).subscribe(B);
return function(){Z.dispose();O.unsubscribe()}})).pipe(JA(function(B){return!B},!0),T$(M))};
VPp=function(M){return zSo([M,M.pipe(P0p())]).pipe(F4(function(z){var J=_.S(z);z=J.next().value;J=J.next().value;return{timestamp:z.timestamp,value:{visible:z.value,consecutiveViewTime:J.value}}}),fS(function(z,J){return a$(z,J,function(R,D){return R.consecutiveViewTime===D.consecutiveViewTime&&R.visible===D.visible})}))};
APo=function(){return SX(DaR(),rV(function(M,z){return Math.max(M,z)},0),F4(function(M){return Math.round(M)}))};
iqp=function(M){return SX(j4Y(GT(M)),APo())};
C0G=function(M,z){return z instanceof ZD?z.pipe(z$(function(J){return(J=J?15:null)?xj(new pO(J)):M})):(z=z.value?15:null)?xj(new pO(z)):M};
bqp=function(M){var z=new pO(13);if(M.length<1)return{chain:hG,capturedErrors:hG};var J=new Zo,R=M[0];return{chain:M.slice(1).reduce(function(D,N){return D.pipe(Wy(function(Z){J.next(Z);return N}))},R).pipe(Wy(function(D){J.next(D);
return xj(z)}),iY(new Zo),pS()),
capturedErrors:J}};
rPn=function(M,z){var J=M.pipe(iY(new Zo),pS());return z$(function(R){return J.pipe(z(R))})};
zLY=function(M,z){if(M.inCrossDomainIframe)return xj(new pO(6));var J=new Zo;return ya(GT({}),z,J).pipe(F4(function(){return{timestamp:M.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Mfb(M),topWindowViewportExternalGeometry:KO(M,!0),measurementRequests:J,viewportLocalAppOffset:{x:0,y:0}}}}),Bj(M.queue))};
Mfb=function(M){var z=KO(M,!1);if(!M.inIframe||!xxH(M.global.parent)||M.global.parent===M.global)return z;var J=new AA(M.global.parent,M.debugChannel);J.beaconFactory=M.beaconFactory;J=Mfb(J);M=M.global.frameElement.getBoundingClientRect();return kze(BSc(kze(J,M),{x:z.left-M.left,y:z.top-M.top}),z)};
Jg8=function(M){if(M.prerendering)return 3;var z;return(z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""])!=null?z:0};
RLp=function(M){return M.document.JSC$9338_onVisibilityChange.pipe(F4(function(z){return z==="visible"}),fS(),T$(M.queue))};
DHp=function(M,z,J){var R;return z.pipe(fS(),z$(function(D){return J.pipe(F4(function(){if(!R){R=!0;try{D.next()}finally{R=!1}}return!0}))}),Mx(!1),T$(M.queue))};
N33=function(M){return SX(Wj(F4(function(z){return z>=1?!0:z<=0?!1:z>=M})),RS3(),F4(function(z){return Math.round(z)}))};
SRp=function(M,z,J,R,D){var N=Pic;if(N.length>1)for(var Z=0;Z<N.length-1;Z++)if(N[Z]<N[Z+1])throw Error();Z=D.pipe(Mx(void 0),z$(function(){return J.pipe(P0p())}),fS(),T$(M));
D=D.pipe(Mx(void 0),z$(function(){return J.pipe(APo())}),fS(),T$(M));
return{totalMeasurementTime:R.pipe(Mx(void 0),z$(function(){return z.pipe(F4(function(B){return{timestamp:B.timestamp,value:!0}}),RS3())}),fS(),T$(M)),
totalUnviewedTime:R.pipe(Mx(void 0),z$(function(){return z.pipe(F4(function(B){return{timestamp:B.timestamp,value:B.value===0}}),RS3())}),fS(),T$(M)),
maxTimeOnScreen:R.pipe(Mx(void 0),z$(function(){return z.pipe(Nfe(iqp,N))}),fS(_.Lp),T$(M)),
timeOnScreen:R.pipe(Mx(void 0),z$(function(){return z.pipe(Nfe(N33,N),F4(function(B){return B.map(function(O,X){return X>0?O-B[X-1]:O})}))}),fS(_.Lp),T$(M)),
maxConsecutiveViewTime:D,consecutiveViewTime:Z.pipe(fS(a$),T$(M))}};
k4o=function(M){var z=!0;z=z===void 0?!1:z;return SX(z$(function(J){return Zhp(M.document,J,z)}),T$(M.queue))};
B3G=function(M,z,J){var R=J.pipe(F4(function(D){return{value:D,timestamp:M.timeProvider.now()}}),fS(a$));
return z instanceof ZD?z.pipe(fS(),z$(function(D){return D?LO(new X3({value:!1,timestamp:M.timeProvider.now()}),M.queue):R})):z.value===!1?R:new X3(!1)};
OhR=function(M,z,J,R,D,N,Z){var B=WtR;z=z instanceof ZD?z.pipe(Mx(!1),fS()):z;var O=!M.isMobile();J=B3G(M,J,R);M=Z.measurableCreative.pipe(MP8(M.queue));return Object.assign({},B,{geometryIsOccluded:J,wasLargeAdAtRender:D,allowLargeAdThreshold:O,mayUseViewportShareExposure:z,hasMeasurementStarted:M,useIntersectionObserverV2:N})};
INw=function(M,z,J,R,D,N){var Z=1;N=N===void 0?!0:N;Z=Z===void 0?.01:Z;var B=B===void 0?M.timeProvider.intervalObservable(100).pipe(T$(M.queue)):B;return M.performanceMonitor.timeExecution(916,function(){return T3n(M,z.pipe(Bj(M.queue)),J.pipe(Bj(M.queue)),R,D,N,Z,B)})()};
T3n=function(M,z,J,R,D,N,Z,B){var O=RLp(M).pipe(F4(function(l){return!l})),X=new oyn(M,[new XWH(M,Pic),
new lNG(M,B)]);B=WqG(eLn,QXw);return yK3(M,z,function(l,e){var Q=LO(new X3(e.element),l.queue).pipe(k4o(l),T$(l.queue)),v={loadedElement:Q,shouldMeasure:Q.pipe(Va(!0)),measurableCreative:Q.pipe(F4(function(E){var L=L===void 0?Symbol():L;return Object.freeze({symbol:L,element:LO(new X3(E),l.queue)})})),
creativeSearchResult:LO(new X3("mue"),l.queue)},x=new X3(!1),m=new X3(!1),y=new X3(17),H=new X3(!1),q=new X3(!1),b=LO(iv,l.queue);x=X.buildGeometrySource(v,{inApp:x,useV2:!1,requestSource:LO(y,l.queue)}).geometrySource;v=OhR(l,H,m,O,q,b,v);m=qZp(l.queue,l.timeProvider,x,v);v=m.geometrySignals;H=m.shouldResetViewabilitySignals;m=SRp(l.queue,v.timestampedExposure,v.visible,m.shouldResetExposureSignals,H);H=Lt8(l.queue,l.timeProvider,H,v.measurementRequests,v.visible);q=J.pipe(Hy(function(E){return E===
e.element.ref}),F4(function(){return"ur"}));
b=k$8(l.timeProvider,D).pipe(Va("t"));q=xae(l,ya(q,b));b=DHp(l,v.measurementRequests,q.pipe(Hy(function(E){return E!==null})));
x=q.pipe(Hy(function(E){return E!==null}),F4(function(){return Jg8(l.global.document)===1}));
var V=UH0(l.document);return Object.assign({},{beaconFactory:new X3(l.beaconFactory),context:new X3(l),inferredPingId:new X3("lidar2"),timeOnScreenPingId:new X3("lidartos"),binaryContext:new X3(17),binaryVersion:new X3(R),requestSource:y,contextValidationErrors:new X3(l.validate()?null:new ma),contextVisibilityKnown:new X3(V),payloadMapper:new X3(u_p),endOfSessionReason:q,timeOnScreenReason:q,requestMeasurementOnEndOfSession:b,hasImpressionFired:vy0,crossDomainIframeState:new X3(l.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:iv,inFetchLaterBeaconExperiment:iv,isTurtlex:iv,turtlexReportEventData:new X3(""),reportFencedFrameEvent:jU,isViewableAttributionEnabled:iv,inViewableAttributionExperiment:new X3(0),fetchBeaconFactory:jU,supportsPendingBeacon:iv,supportsFetchLater:iv,emit:new X3(EF8),beginToRenderEvent:new X3(Symbol()),activeViewUnmeasurableEvent:new X3(Symbol()),activeViewViewableEvent:new X3(Symbol()),creativeFound:vy0,immediateUrlPrefixes:new X3(e.immediateUrls),timeOnScreenUrlPrefixes:new X3(e.timeOnScreenUrls),
cpmavUrls:jU,viewableRelayUrls:jU,measurementDeferralState:new X3(2),urlSerializer:new X3(bWY),viewUrlSerializer:new X3(G4w),isCreativeLoaded:Q.pipe(MP8(l.queue)),pageVisible:O.pipe(F4(function(E){return!E})),
eosPageVisible:x,timestampedExposureHistory:v.timestampedExposure.pipe(rV(function(E,L){E.push(L);return E},[]))},v,{viewable:fO(l,H),
maxTimeOnScreen:fO(l,m.maxTimeOnScreen),timeOnScreen:fO(l,m.timeOnScreen),maxConsecutiveViewTime:fO(l,m.maxConsecutiveViewTime),consecutiveViewTime:m.consecutiveViewTime.pipe(F4(function(E){return new Ea(l.timeProvider,E)})),
totalMeasurementTime:fO(l,m.totalMeasurementTime),totalUnviewedTime:fO(l,m.totalUnviewedTime),userAgentClientHints:qap(l),clientOrderPingCounter:new X3(new cK0)})},qCR(M,Z),a08(N?VJb(B,wWH):VJb(B,xH0),tfb))};
jX3=function(M){var z=_.H4.apply(1,arguments).filter(Boolean).join("&");if(!z)return M;var J=M.match(/[?&]adurl=/);return J?M.slice(0,J.index+1)+z+"&"+M.slice(J.index+1):M+(M.indexOf("?")<0?"?":"&")+z};
CO=function(M,z){return z?"&"+M+"="+encodeURIComponent(z):""};
pW0=function(){try{var M,z;return!!((M=window)==null?0:(z=M.top)==null?0:z.location.href)&&!1}catch(J){return!0}};
_.bv=function(M){M&&typeof M.dispose=="function"&&M.dispose()};
_.ru=function(M){for(var z=0,J=arguments.length;z<J;++z){var R=arguments[z];_.WY(R)?_.ru.apply(null,R):_.bv(R)}};
YR8=function(){var M=FFb();M=M===void 0?"bevasrsg":M;return new Promise(function(z){var J=window===window.top?window:pW0()?window:window.top,R=J[M],D;((D=R)==null?0:D.bevasrs)?z(new M$(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),J[M]=R),R.nqfbel.push(function(N){z(new M$(N))}))})};
mHc=function(M){var z={c:M.u0,e:M.rs2,mc:M.pMM,me:M.fxB};M.pD&&(z.co={c:M.pD.rrm,a:M.pD.c4F,s:M.pD.ug1});return z};
gyc=function(M){var z,J,R={u0:M.c,rs2:M.e,pMM:(z=M.mc)!=null?z:!1,fxB:(J=M.me)!=null?J:!1};M.co&&(R.pD={rrm:M.co.c,c4F:M.co.a,ug1:M.co.s});return R};
sX8=function(M){return function(){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M(),2);z=J.yieldResult;return J.return({f:function(){return z.orE()},
c:function(R){return z.rFS(R)},
m:function(R){return z.zv(gyc(R))},
mws:function(R){return z.xN0(gyc(R))}})})}};
ny8=function(M,z){var J=FFb();J=J===void 0?"bevasrsg":J;z={s:function(N){var Z;return M.snapshot(Object.assign({},N.c&&{u0:N.c},N.s&&{svO:N.s},{sHj:(Z=N.p)!=null?Z:!0}))},
e:function(N){var Z;return void((Z=M.rfx)==null?void 0:Z.call(M,N))},
c:function(N,Z){return M.xWN(N,Z)},
p:M.bCN,l:function(){return M.dz8()},
wpc:z?sX8(z):void 0};var R=window===window.top?window:pW0()?window:window.top,D=R[J];if(D){D.bevasrs=z;if(D.nqfbel!==void 0)for(J=_.S(D.nqfbel),R=J.next();!R.done;R=J.next())R=R.value,R(z);D.nqfbel=void 0}else D={},D=(D.bevasrs=z,D.nqfbel=void 0,D),R[J]=D};
yg8=function(M){var z=z===void 0?51:z;var J=[];_.zz(M,hLY,6,_.JK()).forEach(function(R){_.R2(R,2)<=z&&J.push(_.R2(R,1))});
return J};
Hh8=function(M){var z=z===void 0?51:z;var J=[];_.zz(M,hLY,6,_.JK()).forEach(function(R){_.R2(R,2)>z&&J.push(_.R2(R,1))});
return J};
cgn=function(M){M.then(function(){},function(){})};
D0=function(M){return{fieldType:1,fieldName:M}};
N$=function(M){return{fieldType:2,fieldName:M}};
_.P6=function(M){return{fieldType:3,fieldName:M}};
dHH=function(){function M(){D[0]=1732584193;D[1]=4023233417;D[2]=2562383102;D[3]=271733878;D[4]=3285377520;l=X=0}
function z(e){for(var Q=Z,v=0;v<64;v+=4)Q[v/4]=e[v]<<24|e[v+1]<<16|e[v+2]<<8|e[v+3];for(v=16;v<80;v++)e=Q[v-3]^Q[v-8]^Q[v-14]^Q[v-16],Q[v]=(e<<1|e>>>31)&4294967295;e=D[0];var x=D[1],m=D[2],y=D[3],H=D[4];for(v=0;v<80;v++){if(v<40)if(v<20){var q=y^x&(m^y);var b=1518500249}else q=x^m^y,b=1859775393;else v<60?(q=x&m|y&(x|m),b=2400959708):(q=x^m^y,b=3395469782);q=((e<<5|e>>>27)&4294967295)+q+H+b+Q[v]&4294967295;H=y;y=m;m=(x<<30|x>>>2)&4294967295;x=e;e=q}D[0]=D[0]+e&4294967295;D[1]=D[1]+x&4294967295;D[2]=
D[2]+m&4294967295;D[3]=D[3]+y&4294967295;D[4]=D[4]+H&4294967295}
function J(e,Q){if(typeof e==="string"){e=unescape(encodeURIComponent(e));for(var v=[],x=0,m=e.length;x<m;++x)v.push(e.charCodeAt(x));e=v}Q||(Q=e.length);v=0;if(X==0)for(;v+64<Q;)z(e.slice(v,v+64)),v+=64,l+=64;for(;v<Q;)if(N[X++]=e[v++],l++,X==64)for(X=0,z(N);v+64<Q;)z(e.slice(v,v+64)),v+=64,l+=64}
function R(){var e=[],Q=l*8;X<56?J(B,56-X):J(B,64-(X-56));for(var v=63;v>=56;v--)N[v]=Q&255,Q>>>=8;z(N);for(v=Q=0;v<5;v++)for(var x=24;x>=0;x-=8)e[Q++]=D[v]>>x&255;return e}
for(var D=[],N=[],Z=[],B=[128],O=1;O<64;++O)B[O]=0;var X,l;M();return{reset:M,update:J,digest:R,digestString:function(){for(var e=R(),Q="",v=0;v<e.length;v++)Q+="0123456789ABCDEF".charAt(Math.floor(e[v]/16))+"0123456789ABCDEF".charAt(e[v]%16);return Q}}};
aNY=function(M,z){z=z===void 0?KFR:z;if(!$Hp){var J;M=(J=M.navigator)==null?void 0:J.userAgentData;if(!M||typeof M.getHighEntropyValues!=="function"||M.brands&&typeof M.brands.map!=="function")return Promise.reject(Error("ua"));uTe((M.brands||[]).map(function(D){var N=new qRR;N=_.G$(N,1,D.brand);return _.G$(N,2,D.version)}));
typeof M.mobile==="boolean"&&_.SJ(WFw,2,M.mobile);$Hp=M.getHighEntropyValues(z)}var R=new Set(z);return $Hp.then(function(D){var N=WFw.clone();R.has("platform")&&_.G$(N,3,D.platform);R.has("platformVersion")&&_.G$(N,4,D.platformVersion);R.has("architecture")&&_.G$(N,5,D.architecture);R.has("model")&&_.G$(N,6,D.model);R.has("uaFullVersion")&&_.G$(N,7,D.uaFullVersion);return N.serialize()}).catch(function(){return WFw.serialize()})};
Z0=function(M,z,J,R){this.initialValue_=M;this.maxValue_=z;this.currBaseValue_=this.currValue_=M;this.randomFactor_=J||0;this.backoffFactor_=R||2};
kF=function(M){this.src=M;this.listeners={};this.typeCount_=0};
LFb=function(){for(var M;M=Vfe.remove();){try{M.fn.call(M.scope)}catch(z){Dc(z)}Eyo.put(M)}fNo=!1};
_.Ag3=function(M){switch(M){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
ih3=function(M){switch(M){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.Ci8=function(){};
P9p=function(M,z,J,R){M=bhc(rgp(Mze(new _.B6(1828,"0"),M),new zVb));z.length&&JFY(M,RVw(new DCn,z));R!==void 0&&(M.destinationUrl=R);M.disableWithCredentials();var D=new NQe(1828,"","",!1,"",M.build());_.OC(D,M);var N=new Tz({flush:function(Z){try{D.flush(Z)}catch(B){J(B)}}});
N.addOnDisposeCallback(function(){setTimeout(function(){try{N.snapshotAndFlush()}finally{D.dispose()}})});
N.invocationLimit=1E5;N.flushInterval=3E4;N.JSC$9754_flushTimer.setInterval(3E4);return N};
I2=function(){var M,z,J;return(J=(M=globalThis.performance)==null?void 0:(z=M.now)==null?void 0:z.call(M))!=null?J:Date.now()};
kw8=function(M,z){if(M.disable)return new S7H;z=z?yg8(z):[];M={lR:M.lR,cCr:M.i35,a0Q:M.v9R,destinationUrl:M.destinationUrl,q1y:M.q1y,psR:M.psR};z=z===void 0?[]:z;return new ZKY(M,z)};
BQ8=function(M){if(!M)return null;M=_.o2(M,2);return M===null||M===void 0?null:us(M)};
_.OKp=function(M){if(!M)return null;M=_.o2(M,4);return M===null||M===void 0?null:_.wi(M)};
oNb=function(M,z){return z?TQ0(z):M?IRc(M):Promise.resolve()};
TQ0=function(M){return new Promise(function(z,J){var R=_.lm("SCRIPT"),D=_.OKp(M);_.is(R,D);R.onload=function(){_.eJ(R);z()};
R.onerror=function(){_.eJ(R);J(Error("Fa"))};
(Qs("HEAD")[0]||document.documentElement).appendChild(R)})};
IRc=function(M){return new Promise(function(z){var J=_.lm("SCRIPT");if(M){var R=_.o2(M,6);R=R===null||R===void 0?null:_.L3(R)}else R=null;_.Ar(J,R);(Qs("HEAD")[0]||document.documentElement).appendChild(J);_.eJ(J);z()})};
UC=function(M,z,J){var R,D=new Promise(function(N){R=setTimeout(N,z)});
return Promise.race([M.finally(function(){return void clearTimeout(R)}),
D.then(J)])};
XJe=function(M,z){try{return globalThis.sessionStorage.setItem(M,z),!0}catch(J){return!1}};
lR3=function(M,z,J,R){z=z===void 0?0:z;J=J===void 0?M.length:J;var D=0;for(R&&(D=lR3(R));z<J;z++)R=typeof M==="string"?M.charCodeAt(z):M[z],D=yFY(31,D)+R|0;return D};
HKe=function(M,z){return[lR3(M,0,M.length>>1,z),lR3(M,M.length>>1)]};
cFY=function(M){var z=_.S(HKe(M,v6));M=z.next().value;z=z.next().value;return M.toString(16)+z.toString(16)};
dC3=function(M,z){var J=HKe(z);M=new Uint32Array(M.buffer);z=M[0];var R=_.S(J);J=R.next().value;R=R.next().value;for(var D=1;D<M.length;D+=2){for(var N=z,Z=D,B=J,O=R,X=0;X<22;X++)Z=Z>>>8|Z<<24,Z+=N|0,Z^=B+38293,N=N<<3|N>>>29,N^=Z,O=O>>>8|O<<24,O+=B|0,O^=X+38293,B=B<<3|B>>>29,B^=O;N=[N,Z];M[D]^=N[0];D+1<M.length&&(M[D+1]^=N[1])}};
Kop=function(M,z,J,R,D){var N=(4-(v6.length+J.length)%4)%4,Z=new Uint8Array(4+N+v6.length+4+J.length),B=new DataView(Z.buffer),O=0;B.setUint32(O,Math.random()*4294967295);O=O+4+N;Z.set(v6,O);O+=v6.length;B.setUint32(O,D);Z.set(J,O+4);dC3(Z,R);return M.insert(z,function(X){return void globalThis.sessionStorage.removeItem(X)})?XJe(z,_.YG(Z))?"s":"t":"i"};
$Ce=function(M,z){var J=globalThis.sessionStorage.getItem(M);if(!J)return["m"];try{var R=_.Ae(J);dC3(R,z)}catch(D){return globalThis.sessionStorage.removeItem(M),["c"]}for(z=4;z<7&&R[z]===0;)z++;for(J=0;J<v6.length;J++)if(R[z++]!==v6[J])return globalThis.sessionStorage.removeItem(M),["d"];J=(new DataView(R.buffer)).getUint32(z);return Math.floor(Date.now()/1E3)>=J?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(R.buffer,z+4)]};
uhn=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):_.Gz(M)};
q78=function(M){var z=M,J;return function(){if(z){var R=z;z=void 0;J=R.apply(this,arguments)}return J}};
aRw=function(M){return nv(function(z){if(z instanceof M)return!0;var J,R,D=z==null?void 0:(J=z.ownerDocument)==null?void 0:(R=J.defaultView)==null?void 0:R[M.name];return Won(D)&&z instanceof D})};
_.tK=function(M,z,J){_.wS.call(this);this.JSC$9967_listener_=M;this.JSC$9967_interval_=z||0;this.handler_=J;this.callback_=(0,_.xF)(this.JSC$9969_doAction_,this)};
_.jJ=function(M){M=Vzw(M);return _.wi(M)};
Vzw=function(M){return M===null?"null":M===void 0?"undefined":M};
fRo=function(M){if(M&&M.focus)if(M!==document.activeElement)M.focus();else return ENG(function(){return _.k(function(z){document.activeElement&&document.activeElement.blur();return z.return(ENG(function(){M.focus()}))})})};
_.Low=function(M){var z=z===void 0?5:z;setTimeout(function(){var J;return _.k(function(R){R.nextAddress==1&&(J=document.activeElement);if(R.nextAddress!=5)return(document.activeElement===J||document.activeElement===document.body)&&z>=0&&M?R.yield(fRo(M),5):R.jumpTo(0);if(document.activeElement===M)return R.return();M=M.parentElement;--z;return R.jumpTo(2)})},15)};
ENG=function(M){return new Promise(function(z){requestAnimationFrame(function(){z(M())})})};
iKp=function(M){if(_.pW)M(_.pW);else{var z;((z=AFY)!=null?z:AFY=[]).push(M)}};
YF=function(){!_.pW&&_.F_&&_.C9G(_.F_());return _.pW};
_.C9G=function(M){_.pW=M;var z;(z=AFY)==null||z.forEach(iKp);AFY=void 0};
_.mq=function(M){_.pW&&_.pW.beforeLoadModuleCode(M)};
_.gS=function(){_.pW&&_.pW.JSC$10954_setLoaded()};
sC=function(M){return Y$3(M)?Number(M):String(M)};
bKY=function(M){this.action=M;this.wfv=!1};
rFp=function(M,z){bKY.call(this,"set-drive-options");this.appId=M;this.appOrigin=z};
MW8=function(M){bKY.call(this,"visibility");this.visible=M};
zXn=function(M,z,J){nW.call(this,M,z,J)};
Joc=function(M){hK.call(this,M)};
RXR=function(M){M=M&&M.getWindow()||window;return M.gadgets&&M.gadgets.rpc};
Nc0=function(M,z){var J=z&&z.getWindow()||window;if(RXR(z))M();else if(Dcc)Dcc.push(M);else var R=Dcc=[M],D=J.setInterval(function(){if(RXR(z)){J.clearInterval(D);for(var N=0;N<R.length;N++)R[N]();Dcc=null}},100)};
SyR=function(M,z){var J=new H6(M);_.OC(z,J);var R={passive:!1};z.listen(J,"mousewheel",function(D){return void PDb(M,D)},R).listen(M,"scroll",function(D){return void PDb(M,D)},R)};
PDb=function(M,z){var J;a:{for(J=z.target;J;){if(J.nodeType==1){var R=_.c6(J,"overflowY");if(R=="auto"||R=="scroll")break a}J=J.parentNode}J=null}if(!J||!_.dS(M,J)||J.scrollHeight==J.clientHeight||z.deltaY>0&&Math.abs(J.scrollTop-(J.scrollHeight-J.clientHeight))<=1||z.deltaY<0&&J.scrollTop==0)z.preventDefault(),z.stopPropagation()};
Vs=function(M,z,J,R,D,N,Z,B,O){B=B===void 0?!1:B;O=O===void 0?!1:O;nW.call(this,void 0,void 0,void 0);nW.call(this,N?N+" picker modal-dialog":"picker modal-dialog",!0,J);_.KW(M,"protocol");this.iframeManager_=new Zon;this.targetId_=$F();this.rpcToken_=$F();M=_.um(M);_.q$(M,"hostId");J=_.q$(M,"parent");this.useGapi_=!O&&!0||(J==null?void 0:J.includes("onepick.corp.google.com"));B&&_.W6(M,"fv2","true");this.setUrl(M.toString());this.preferredDialogWidth_=R;this.preferredDialogHeight_=D;R!==void 0||
D!==void 0?R=!0:(R=_.q$(_.um(M.toString()),"hostId"),kUe||(kUe=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),R=!kUe.has(R));this.autoSizeDialog_=R;this.JSC$10157_gadgetsDomHelper_=Z||this.JSC$10108_dom_;z&&(Z=this.JSC$10157_gadgetsDomHelper_,z=_.q$(_.um(this.JSC$10159_url_),"grugl")=="true"?Bcc:Oo3,RXR(Z)||(Z=Z||vj(document),R=Z.createElement("SCRIPT"),_.is(R,z),R.type="text/javascript",Z.JSC$9293_document_.body.appendChild(R)));
M=M.toString();z=null;Z=M.indexOf("/picker?");Z>-1?z=M.substring(0,Z+8-1):Sp(M,"/picker")&&(z=M);z&&this.setRelayUrl(z+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(M=this.buttons_,M.JSC$10142_element_=this.buttonEl_,M.render()):_.C3(this.buttonEl_,Tce),_.a2(this.buttonEl_,!!this.buttons_))};
_.lG8=function(M){var z=z===void 0?IG8:z;var J=_.fp(M),R=function(N){N=_.S(N);N.next();N=EC(N);return z(J,N)},D=function(N){var Z=_.S(N);
N=Z.next().value;Z=EC(Z);return M.apply(N,Z)};
return function(){var N=_.H4.apply(0,arguments),Z=this||_.R3,B=o_n.get(Z);B||(B={},o_n.set(Z,B));return XIY(B,[this].concat(_.Yj(N)),D,R)}};
fW=function(M){var z={};M=M.replace(/\r/g,"").split("\n");for(var J=0;J<M.length;J++){var R=M[J],D=R.indexOf(":");D<0||(z[R.substring(0,D)]=R.substring(D+2,R.length))}return z};
eXY=function(M,z,J){J=J===void 0?function(){}:J;
return M?z():J()};
_.Uce=function(M){var z;return((z=QHn.documentOverride)!=null?z:M).__wizdispatcher};
_.AK=function(M){var z=LW;LW=M;return z};
_.GUc=function(M){return M===v_c||(M==null?void 0:M.name)==="\u0275NotFound"};
_.im=function(M,z){var J;if((J=M)==null?0:J.isDisposed)throw Error("jb`"+String(M.debugName));for(;M!==void 0;){J=M;if(J.retrieve)return J.retrieve(z,{optional:!0});M=M.parent}return v_c};
CW=function(M){return{"\u0275prov":{providedIn:"root",token:Symbol(M),factory:void 0,value:void 0}}};
_.wIc=function(M){var z=LW;if(!z){switch(M===void 0?3:M){case 0:M=Error("ib");break;case 1:M=Error("kb");break;case 2:M=Error("lb");break;default:M=Error("mb")}throw M;}return z};
xc8=function(M){var z=_.AK(M);M={};return M[Symbol.dispose]=function(){_.AK(z)},M};
tW8=function(M,z){M.disposables||(M.disposables=[]);M.disposables.push(z)};
bm=function(M){var z=LW;z&&!z.isDisposed&&(tW8(z,M),M.parent=z)};
pIo=function(M){if(M.disposables){for(var z=_.S(M.disposables),J=z.next();!J.done;J=z.next())J=J.value,typeof J==="function"?J():jHe(J);M.disposables.length=0}};
jHe=function(M){if(!M.isDisposed){M.isDisposed=!0;var z;(z=M[Symbol.dispose])==null||z.call(M);delete M.parent;pIo(M)}};
How=function(M){var z={retrieve:function(J){switch(J.\u0275prov.token){case F2Y.\u0275prov.token:var R=M.asyncDeps;break;case _.Yyb.\u0275prov.token:R=M.rootElement;break;case mcR.\u0275prov.token:R=M.modelRootElement;break;case g_n.\u0275prov.token:R=M.appContext;break;case sHn.\u0275prov.token:R=M.rendererData;break;case n_H.\u0275prov.token:R=M.injectingConstructor;break;case hX8.\u0275prov.token:R=M.dispatcher}if(R)J=R;else a:{for(R=z.parent;R;){var D=R;if(D.retrieve){J=D.retrieve(J);break a}R=
R.parent}R=J.\u0275prov.token;D=yop[R];D!==void 0?J=D:(D=J.\u0275prov.providedIn,J.\u0275prov.factory?(J=J.\u0275prov.factory(),R&&D==="root"&&(yop[R]=J)):J=v_c)}return J}};
bm(z);return z};
coY=function(){var M=_.wIc(1),z=_.im(M,g_n);_.GUc(z)&&(M=_.im(M,hX8),_.GUc(M)||M.getOptionalAppContext())};
dcp=function(M){if(typeof document!=="undefined"&&document&&document.getElementById&&(M=document.getElementById(M))){var z=M.tagName.toUpperCase();if(z=="SCRIPT"||z=="LINK")return M}return null};
$cG=function(M,z){if((M=M===void 0?"":M)&&z)throw Error("sb");var J="";var R=_.R3._F_jsUrl;(M=z||dcp(M))&&(J=M.src?M.src:M.getAttribute("href"));if(R&&J){if(R!=J)throw Error("tb`"+R+"`"+J);J=R}else J=R||J;if(!K2p(J))throw Error("ub");return J};
aGc=function(){if(!uJR){uJR=!0;try{var M=$cG(_.R3._F_jsUrl?"":"base-js")}catch(R){return}var z=qyH(W28(M)),J=Object.keys(z);J.length!==0&&iKp(function(R){for(var D=_.S(J),N=D.next();!N.done;N=D.next()){N=N.value;for(var Z=_.S(Object.keys(z[N])),B=Z.next();!B.done;B=Z.next())R.addExtraEdge(N,B.value)}})}};
E_p=function(){var M=Object.assign({},VWG);Object.getOwnPropertyNames(VWG).forEach(function(z){rS[z]!==void 0&&(M[z]=rS[z])});
return M};
fGw=function(M,z){if(rS.enablePerformanceTiming){var J,R;(R=(J=performance).mark)==null||R.call(J,M+"Start__"+z)}};
L20=function(M,z){if(rS.enablePerformanceTiming){var J,R;(R=(J=performance).measure)==null||R.call(J,M+"__"+z,M+"Start__"+z)}};
Aop=function(M,z,J){var R;return M&&z?M+"__"+z:(R=M!=null?M:z)!=null?R:J};
CDR=function(M,z){var J=Object.create(io0);J.debugName=z;!LW||bm(J);z=_.AK(J);try{M(J)}finally{_.AK(z)}return function(){return void jHe(J)}};
roR=function(M){return Ma(M)&&bon in M};
MIG=function(M,z){return Object.is(M,z)};
JP=function(M){var z=zk;zk=M;return z};
JL8=function(M){if(R4)throw Error("Z");if(zk!==null){var z=zk.producersTail;if(z===void 0||z.producer!==M){var J=void 0,R=zk.recomputing;if(R&&(J=z!==void 0?z.nextProducer:zk.producers,J!==void 0&&J.producer===M)){zk.producersTail=J;J.lastReadVersion=M.version;return}var D=M.consumersTail,N;if(!(N=D===void 0||D.consumer!==zk)){if(R){a:{N=zk;R=N.producersTail;if(R!==void 0){N=N.producers;do{if(N===D){R=!0;break a}if(N===R)break;N=N.nextProducer}while(N!==void 0)}R=!1}R=!R}N=R}N&&(R=DZ(zk),J={producer:M,
consumer:zk,nextProducer:J,prevConsumer:D,lastReadVersion:M.version,nextConsumer:void 0},zk.producersTail=J,z!==void 0?z.nextProducer=J:zk.producers=J,R&&zAo(M,J))}}};
NPo=function(M){if(!DZ(M)||M.dirty)if(M.dirty||M.lastCleanEpoch!==RAw)(M.producerMustRecompute(M)||Dp8(M))&&M.producerRecomputeValue(M),M.dirty=!1,M.lastCleanEpoch=RAw};
PWc=function(M){if(M.consumers!==void 0){var z=R4;R4=!0;try{for(var J=M.consumers;J!==void 0;J=J.nextConsumer){var R=J.consumer;R.dirty||(M=void 0,R.dirty=!0,PWc(R),(M=R.consumerMarkedDirty)==null||M.call(R,R))}}finally{R4=z}}};
SBo=function(){var M;return((M=zk)==null?void 0:M.consumerAllowSignalWrites)!==!1};
ZcR=function(M){M&&(M.producersTail=void 0,M.recomputing=!0);return JP(M)};
BPw=function(M,z){JP(z);if(M){M.recomputing=!1;z=M.producersTail;var J=z!==void 0?z.nextProducer:M.producers;if(J!==void 0){if(DZ(M)){do J=kF8(J);while(J!==void 0)}z!==void 0?z.nextProducer=void 0:M.producers=void 0}}};
Dp8=function(M){for(M=M.producers;M!==void 0;M=M.nextProducer){var z=M.producer,J=M.lastReadVersion;if(J!==z.version)return!0;NPo(z);if(J!==z.version)return!0}return!1};
zAo=function(M,z){var J=M.consumersTail,R=DZ(M);J!==void 0?(z.nextConsumer=J.nextConsumer,J.nextConsumer=z):(z.nextConsumer=void 0,M.consumers=z);z.prevConsumer=J;M.consumersTail=z;if(!R)for(M=M.producers;M!==void 0;M=M.nextProducer)zAo(M.producer,M)};
kF8=function(M){var z=M.producer,J=M.nextProducer,R=M.nextConsumer,D=M.prevConsumer;M.nextConsumer=void 0;M.prevConsumer=void 0;R!==void 0?R.prevConsumer=D:z.consumersTail=D;if(D!==void 0)D.nextConsumer=R;else if(z.consumers=R,!DZ(z))for(M=z.producers;M!==void 0;)M=kF8(M);return J};
DZ=function(M){return M.consumerIsAlwaysLive||M.consumers!==void 0};
TPp=function(M){var z=Object.create(Oc8);z.computation=M;M=function(){NPo(z);JL8(z);if(z.value===Pl)throw z.error;return z.value};
M[SP]=z;return M};
lhR=function(M,z){var J=Object.create(Ihw);J.value=M;z!==void 0&&(J.equal=z);M=function(){JL8(J);return J.value};
M[SP]=J;return[M,function(R){return o4w(J,R)},
function(R){SBo()||Xbn(J);o4w(J,R(J.value))}]};
o4w=function(M,z){SBo()||Xbn(M);if(!M.equal(M.value,z)){M.value=z;M.version++;RAw++;PWc(M);var J;(J=eAY)==null||J(M)}};
ZZ=function(M){var z=JP(null);try{return M()}finally{JP(z)}};
_.kE=function(M,z,J){J=J===void 0?"":J;M=lhR(M,z==null?void 0:z.equals);var R=M[0],D=R[SP];D.debugName=Aop(z==null?void 0:z.debugName,J,"[signal]");if(!rS.enablePerformanceTiming)return M;var N=M[1],Z=M[2];return[R,function(B){Qfc(function(){return void N(B)},D)},
function(B){Qfc(function(){return void Z(B)},D)}]};
Qfc=function(M,z){fGw("signalSet",z.debugName);try{M()}finally{L20("signalSet",z.debugName)}};
v4G=function(M,z){var J=_.S(_.kE(M,void 0,"cPpJzc"));M=J.next().value;J=J.next().value;M[UpY]=J;M[Bl]=z;return M};
GF3=function(M){return!!M&&typeof M==="object"&&Object.getPrototypeOf(M)===Object.prototype};
wbw=function(M){return typeof M==="function"&&UpY in M&&typeof M[UpY]==="function"};
xp8=function(M,z){Object.defineProperty(M,Bl,{get:function(){return z}})};
Tk=function(M,z){if(OZ(M)){var J=M.map(function(N){return Tk(N,z)});
xp8(J,z);return J}if(GF3(M)){J={};M=_.S(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;J[R]=Tk(D,z)}xp8(J,z);return J}return v4G(M,z)};
tIp=function(M){if(OZ(M))return M.map(function(D){return tIp(D)});
if(GF3(M)){var z={};M=_.S(Object.entries(M));for(var J=M.next();!J.done;J=M.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;z[J]=tIp(R)}return z}return wbw(M)?M():M};
pb0=function(){var M={height:0,width:0};if(!GF3(M))throw Error("Gb");var z=Symbol("Hb");return[Tk(M,z),function(J,R){if(J[Bl]===z)if(typeof R==="function"){var D=[].concat(_.Yj(tIp(J)));R=R(D)||D;jf8(J,[].concat(_.Yj(R)))}else jf8(J,R);else throw Error("Ib");}]};
jf8=function(M,z){if(wbw(M))M[UpY](z);else if(OZ(M)&&OZ(z))z=Tk(z,M[Bl]),M.length=0,M.push.apply(M,_.Yj(z));else if((GF3(M)||OZ(M))&&(OZ(z)||typeof z==="object"&&z!==null)){z=_.S(Object.entries(z));for(var J=z.next();!J.done;J=z.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;var D=M,N=D[J];Object.hasOwn(M,J)?jf8(N,R):D[J]=Tk(R,M[Bl])}}else throw Error("Jb");};
Fhb=function(M){return Object.create(Object.assign({},I4,M))};
mpH=function(){var M;return(M=YBb)!=null?M:YBb=Fhb({consumerAllowSignalWrites:!0})};
_.o4=function(M,z,J){J=J===void 0?"":J;M=TPp(M);var R=M[SP];R.debugName=Aop(z==null?void 0:z.debugName,J,"[computed]");(z==null?void 0:z.equals)!=null&&(R.equal=z.equals);return M};
X8=function(M){var z=JP(g4H);try{M()}finally{JP(z)}};
cLb=function(M){if(!M.isDisposed)switch(M.effectType){case l0:sfo.schedule(M);break;case n4p:hAb.schedule(M);break;case yLc:Hcp.schedule(M);break;default:_.uJ(M.effectType)}};
Kho=function(M){dpH.push(M);return function(){var z=dpH.indexOf(M);z!==-1&&dpH.splice(z,1)}};
uSp=function(){if(eP>0)rS.flushRenderEffectsDuringRender&&sfo.flush();else for(var M=_.S($pG),z=M.next();!z.done;z=M.next())z.value.flush()};
WhY=function(M){Q8=!0;try{for(var z=_.S(M),J=z.next();!J.done;J=z.next()){for(var R=J.value,D=[R],N=R;N.parent!==void 0;)N=N.parent,qBe(N)&&M.has(N)&&D.push(N);for(;D.length>0;){var Z=D.pop();M.delete(Z);Z.run()}}}finally{Q8=!1}};
UZ=function(M){eP--;if(M){M=_.S($pG);for(var z=M.next();!z.done;z=M.next())z.value.clear()}else eP>0||Q8&&!rS.flushRenderEffectsDuringRender||uSp()};
VIH=function(M,z,J){var R=aho(M);vl={name:J?R+" ("+J+")":R,isReactive:M.componentType!==Gk,parent:vl};M=z();vl=vl.parent;return M};
wf=function(){var M=vl;return M?M.isReactive:!1};
tP=function(M,z,J){var R=vl;z&&(vl=z);try{return J==null?M():M.call(J)}catch(N){M=N;xE(M,vl);if(M!==E48){fhY=vl;z=[];for(J=LW;J;){var D=void 0;z.push((D=J.debugName)!=null?D:"[context]");D=void 0;J=(D=J.parent)!=null?D:null}Lhp=z.reverse()}E48=M;throw M;}finally{vl=R}};
xE=function(M,z){try{var J=AL3(z);if(J&&!M.componentStack&&(M.componentStack=J,rS.enableComponentStacksInErrorMessages)){var R=M.message+"\n\nComponent stack: "+J;M.stack&&(M.stack=M.stack.replace(M.message,R));M.message=R}}catch(D){}};
AL3=function(M){if(Ma(M)&&M.name!==void 0&&M.isReactive!==void 0&&M.parent!==void 0||M===null){for(var z=0,J="";z<20&&M;)J+=M.name+" > ",M=M.parent,z++;M=J.slice(0,-3)}else if(rS.enableContextBasedComponentStacks){a:{for(M=M===void 0?LW:M;M;){if(roR(M))break a;z=void 0;M=(z=M.parent)!=null?z:null}M=null}M=M.getComponentStack().slice(0,20).join(" > ")}else M="";return M};
aho=function(M){return M.debugName||M.name||"[component]"};
icR=function(M,z,J){z=Object.create(z);M&&(z.effectFn=M);J&&(z.debugName=J);bm(z);z.componentStack=vl;return z};
_.jP=function(M,z){M=icR(M,CWe,z);cLb(M)};
_.pq=function(M){var z=LW;if(z){var J=vl;tW8(z,function(){var R=JP(mpH());try{tP(function(){return void M()},J)}catch(D){throw rS.enableContextBasedComponentStacks&&xE(D),D;
}finally{JP(R)}})}};
F8=function(M,z){var J={};(z===void 0||z)&&bm(J);z=_.AK(J);try{M(J)}finally{_.AK(z)}return function(){return void jHe(J)}};
_.YE=function(M){return typeof M==="function"?M():(M==null?0:M[bcw])?M.get():M};
_.mt=function(M,z){M=icR(M,rL8,z);cLb(M)};
M_8=function(M){if(LW)throw Error("nb");F8(M,!1)};
gf=function(M,z){M=_.AK(M);try{return ZZ(z)}finally{_.AK(M)}};
sZ=function(M,z){var J=AL3(fhY),R,D;var N=(D=(R=Lhp)==null?void 0:R.slice())!=null?D:[];z={componentStack:J,contextTrace:N,errorSeverity:3,featureFlags:E_p(),tagName:z};return[M,z]};
RJ3=function(M,z,J){if(Object.hasOwnProperty.call(zJ8,M)&&(M=zJ8[M],Object.hasOwnProperty.call(M,z)&&(M=M[z],M instanceof Array))){for(var R=null,D=!1,N=0,Z=M.length;N<Z;++N){var B=M[N],O=B.contingentAttribute;if(!O)return B.contract;R===null&&(R={});O=Object.hasOwnProperty.call(R,O)?R[O]:R[O]=J(O);if(O===B.requiredValue)return B.contract;O==null&&(D=!0)}if(D)return null}z=J1Y[z];return typeof z==="number"?z:null};
P40=function(M,z,J){var R=null;(M=DSb[M])&&(R=M[z]);return typeof R!=="number"&&((M=DSb["*"])&&(R=M[z]),typeof R!=="number")?!1:!0===NXn[R][String(J).toLowerCase()]};
Z4G=function(M,z){z=RJ3(M.toLowerCase(),z,function(){var R;(R=rS.handleError)==null||R.call.apply(R,[rS].concat(_.Yj(sZ(Error("Ob"),M.toLowerCase()))))});
if(z===null)return null;var J;return(J=SFc[z])!=null?J:null};
kSH=function(M,z,J){if(J===null||J===void 0)return J;z=z.toLowerCase();M=Z4G(M,z);return M===null?J:M(z,J)};
BXp=function(){};
nq=function(M,z){for(;M.length>z;)M.pop()};
O43=function(M){M=Array(M);nq(M,0);return M};
y8=function(M,z,J){if(J==null)M.removeAttribute(z);else{var R;(R=z.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":z.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?M.setAttributeNS(R,z,J):M.setAttribute(z,J)}};
TX0=function(M,z,J){M[z]=J};
o2H=function(M,z,J){M=M.style;if(typeof J==="string")M.cssText=J;else{M.cssText="";for(var R in J)if(I3R.call(J,R)){z=M;var D=R,N=J[R];D.indexOf("-")>=0?z.setProperty(D,N):z[D]=N}}};
XNe=function(M,z,J){var R=typeof J;R==="object"||R==="function"?M[z]=J:y8(M,z,J)};
l3o=function(){var M=new BXp;M[Hl.default]=XNe;M.style=o2H;return M};
eJn=function(M,z,J,R){(R[z]||R[Hl.default])(M,z,J)};
USn=function(M,z,J){z=new QOG(z,J);return M.__incrementalDOMData=z};
cl=function(M,z){if(M.__incrementalDOMData)return M.__incrementalDOMData;var J=M.nodeType===1?M.localName:M.nodeName,R=M.nodeType===1?M.getAttribute("key"):null;z=USn(M,J,M.nodeType===1?R||z:null);if(M.nodeType===1&&(M=M.attributes,J=M.length)){R=z._attrsArr||(z._attrsArr=O43(J*2));for(var D=0,N=0;D<J;D+=1,N+=2){var Z=M[D],B=Z.value;R[N]=Z.name;R[N+1]=B}}return z};
v23=function(M,z,J,R,D){return z==J&&R==D};
GS8=function(M){for(var z=df,J=u0();J!==M;){var R=J.nextSibling;z.removeChild(J);qa.deleted.push(J);J=R}};
u0=function(){return Wl?Wl.nextSibling:df.firstChild};
a4=function(){Wl=u0()};
t_n=function(M,z,J){a4();var R;a:{if(R=Wl){do{var D=R,N=M,Z=z,B=cl(D,Z);if(wNo(D,N,B.nameOrCtor,Z,B.key))break a}while(z&&(R=R.nextSibling))}R=null}R||(M==="#text"?(J=V8.createTextNode(""),USn(J,"#text",null),M=J):(R=V8,D=df,typeof M==="function"?R=new M:R=(D=M==="svg"?"http://www.w3.org/2000/svg":M==="math"?"http://www.w3.org/1998/Math/MathML":D==null||cl(D).nameOrCtor==="foreignObject"?null:D.namespaceURI)?R.createElementNS(D,M):R.createElement(M),USn(R,M,z),M=R,J&&M.setAttribute("nonce",J)),qa.created.push(M),
R=M);J=R;if(J!==Wl){if(xSp.indexOf(J)>=0)for(M=df,z=J.nextSibling,R=Wl;R!==null&&R!==J;)D=R.nextSibling,M.insertBefore(R,z),R=D;else df.insertBefore(J,Wl);Wl=J}};
jOe=function(M,z,J){t_n(M,z,J);df=Wl;Wl=null;return df};
pNp=function(){GS8(null);Wl=df;df=df.parentNode};
F6n=function(){Wl=df.lastChild};
g2H=function(M,z){z=z===void 0?{}:z;var J=z.matches===void 0?v23:z.matches;return function(R,D,N){var Z=qa,B=V8,O=xSp,X=EZ,l=fq,e=Wl,Q=df,v=wNo;V8=R.ownerDocument;qa=new YFp(R);wNo=J;EZ=[];fq=[];Wl=null;var x=df=R.parentNode,m,y=mSb.call(R);if((m=y.nodeType===11||y.nodeType===9?y.activeElement:null)&&R.contains(m)){for(y=[];m!==x;)y.push(m),m=m.parentNode||(x?m.host:null);x=y}else x=[];xSp=x;try{return M(R,D,N)}finally{R=qa,Lq&&R.deleted.length>0&&Lq(R.deleted),V8=B,qa=Z,wNo=v,EZ=X,fq=l,Wl=e,df=Q,
xSp=O}}};
sO0=function(M,z,J,R){AP.push(eJn);AP.push(M);AP.push(z);AP.push(J);AP.push(R)};
hJp=function(M,z,J){var R=fq;z=z._attrsArr||(z._attrsArr=O43(R.length));for(var D=!z.length||!1,N=0;N<R.length;N+=2){var Z=R[N];if(D)z[N]=Z;else if(z[N]!==Z)break;var B=R[N+1];if(D||z[N+1]!==B)z[N+1]=B,sO0(M,Z,B,J)}if(N<R.length||N<z.length){for(N=D=N;N<z.length;N+=2)i0[z[N]]=z[N+1];for(N=D;N<R.length;N+=2)D=R[N],Z=R[N+1],i0[D]!==Z&&sO0(M,D,Z,J),z[N]=D,z[N+1]=Z,delete i0[D];nq(z,R.length);for(var O in i0)sO0(M,O,void 0,J),delete i0[O]}M=n28;n28=J=AP.length;for(O=M;O<J;O+=5)(0,AP[O])(AP[O+1],AP[O+
2],AP[O+3],AP[O+4]);n28=M;nq(AP,M);nq(R,0)};
y1n=function(M){t_n("#text",null);var z=Wl;var J=cl(z);if(J.text!==M){J=J.text=M;for(var R=1;R<arguments.length;R+=1)J=(0,arguments[R])(J);z.data!==J&&(z.data=J)}};
qFb=function(M,z,J){if(J===!1&&H4p.has(z))y8(M,z,null);else if(z!=="idomKey"&&z!=="skip"&&z!=="skipchildren"&&z!=="children"&&z!=="el")if(z.startsWith("on")){if(z[2]!==":")throw Error("Nb`"+z);if(J===void 0||J===null){var R;(R=rS.handleError)==null||R.call.apply(R,[rS].concat(_.Yj(sZ(Error("Sb`"+z),M.tagName))));M[z]=void 0}else{var D=z.slice(3);R=wf();if(D==="jsaction"){J=Array.isArray(J)?J:[J];J=_.S(J);for(var N=J.next();!N.done;N=J.next()){N=N.value;if(typeof N!=="object"||N===null||typeof N.selfReg!==
"function")throw Error("Vb`"+z);N.selfReg(0,M,R?_.pq:function(){})}}else{if(typeof J!=="object"||J===null)throw Error("Tb`"+z+"`"+typeof J);
if(typeof J.getFn!=="function")throw Error("Ub`"+z+"`"+Object.keys(J));if(J.selfReg)J.selfReg(0,M,D,R?_.pq:function(){});
else if(R&&M["on"+D]===void 0){var Z=J.getFn(0);M.addEventListener(D,Z);_.pq(function(){return void M.removeEventListener(D,Z)})}else if(R||!c13.includes(D))M["on"+D]=J.getFn(0)}}}else{if(z.startsWith("data-")&&typeof J==="string")try{J=dSp(J)}catch(B){J="zSoyz"}typeof J!=="function"||M._disposeEffects!=null?((R=z.startsWith("prop:"))&&(z=z.slice(5)),rS.enableAttributeSanitization&&(R&&K6n(M.tagName)||(J=kSH(M.tagName,z,J))),z==="style"?("function"==typeof _.Cq&&J instanceof _.Cq&&(J=J.toString()),
$S3(M,z,J)):R?M[z]=J:uKe(M,z,J)):(M._signalProps||(M._signalProps=[]),M._signalValues||(M._signalValues=[]),M._signalProps.push(z))}};
W6p=function(M,z,J){J=(J===void 0?{}:J).isReactive;if(z==null?0:z.el){var R=z.el;if(typeof R==="function")R(M);else{var D;(D=R.onRender)==null||D.call(R,M);M._disposeRef||(M._disposeRef=function(){var N;(N=R.onUnmount)==null||N.call(R);delete M._disposeRef},J&&_.pq(function(){var N;
(N=M._disposeRef)==null||N.call(M)}))}}};
K6n=function(M){return M.length>0&&M.includes("-")&&!a38.includes(M.toLowerCase())};
V_o=function(M){return Ma(M)&&b0 in M};
E2p=function(M){return V_o(M)?M[b0].flattened:M};
f38=function(M,z){var J=_.H4.apply(2,arguments),R;z=(R=z)!=null?R:{};R={};return R.type=M,R.props=z,R.children=J,R[rf]=!0,R};
_.MH=function(M){return M.children};
z4=function(M){var z=L60!==f38;L60=M?A1c:f38;return z};
_.Jg=function(M){return _.E8(M)?"nodeType"in M:!1};
RX=function(){return document.createTextNode("")};
DN=function(M){M=document.createTextNode(String(M));M._isSignalTextNode=!0;return M};
C48=function(M){return M!=null&&M.contentKind===Sf||M instanceof $q||i4p(M)};
b4p=function(M){var z=document.createElement("div");if(i4p(M)&&BQ8(M))_.C3(z,BQ8(M));else if(M instanceof $q)_.C3(z,M);else if(M!=null&&M.contentKind===Sf){if(M.contentKind!==Sf)throw Error("Rb");M=us(M.toString());_.C3(z,M)}M=_.S(z.childNodes);for(var J=M.next();!J.done;J=M.next())J.value._isSafeOrSanitizedHtmlNode=!0;return z};
ZN=function(M){M=typeof M;return M==="string"||M==="number"||M==="boolean"};
r1R=function(M){return M instanceof GA||Fq(M)||M instanceof zT||"function"==typeof _.Cq&&M instanceof _.Cq};
Mnn=function(M,z){var J=M.parentElement;if(!J)return z;J.replaceChild(z,M);return z};
zMo=function(M,z){var J=M[0].parentElement;if(J)if(M[0].previousSibling||M[M.length-1].nextSibling){J.insertBefore(z,M[0]);for(var R=M.length-1;R>=0;R--)J.removeChild(M[R])}else J.textContent="",J.appendChild(z);return z};
JuG=function(M,z){if(M[0].parentElement)for(var J=M[0].parentElement,R=z.length,D=M.length,N=R,Z=0,B=0,O=M[D-1].nextSibling,X=null;Z<D||B<N;)if(M[Z]===z[B])Z++,B++;else{for(;M[D-1]===z[N-1];)D--,N--;if(D===Z)for(var l=N<R?B?z[B-1].nextSibling:z[N-B]:O;B<N;){var e=z[B++];J.insertBefore(e,l)}else if(N===B)for(;Z<D;)l=M[Z],X&&X.has(l)||J.removeChild(l),Z++;else if(M[Z]===z[N-1]&&z[B]===M[D-1])l=M[--D].nextSibling,J.insertBefore(z[B++],M[Z++].nextSibling),J.insertBefore(z[--N],l),M[D]=z[N];else{if(!X)for(X=
new Map,l=B;l<N;)X.set(z[l],l++);l=X.get(M[Z]);if(l==null)J.removeChild(M[Z]),Z++;else if(B<l&&l<N){e=Z;for(var Q=1,v=void 0;++e<D&&e<N&&(v=X.get(M[e]))!=null&&v===l+Q;)Q++;if(Q>l-B)for(e=M[Z];B<l;)J.insertBefore(z[B++],e);else J.replaceChild(z[B++],M[Z++])}else Z++}}return z};
DIc=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("dc`"+M.length+"`"+M.map(RM8).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof _.f3)){var z,J;if((z=window)==null?0:(J=z.trustedTypes)==null?0:J.isScript(M))throw Error("cc");if(String(M).trim().length===0)return null;throw Error("ec`"+RM8(M));}return M};
NMp=function(M,z){z=DIc(z);z!==null&&_.Ar(M,z)};
PSo=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("fc`"+M.length+"`"+M.map(RM8).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof zT)){if(String(M).trim().length===0)return null;throw Error("gc`"+RM8(M));}return M};
SK3=function(M,z){z=PSo(z);z!==null&&(M.textContent=kT8(z))};
RM8=function(M){return"("+typeof M+") "+(M!=null&&typeof M==="object"?M.constructor.name:typeof M)+" "+M};
Zup=function(){};
T4=function(M,z){z=z===void 0?{}:z;var J=ki8();rS.legacyTriggerSoyRendererEvents&&coY();_.mt(function(){ky.setUp();z.isControlFlowComponent&&eP++;var R=J[0],D=J[b0].flattened,N=z4(!0);try{var Z=M(),B=BMY(R,Z,J);Array.isArray(B)||(J[b0].flattened=[B]);var O=J[b0].flattened;if(D&&(!Array.isArray(D)||D.length!==0)){var X=Array.isArray(D)?D[0]:D,l=X[BW],e=X._disposeEffects;X._disposeEffects=void 0;X=Array.isArray(O)?O[0]:O;X[BW]=l;X[BW]&&(X[BW].numNodes=X===O?1:O.length);X._disposeEffects=e}J[0]=B;z.isControlFlowComponent&&
UZ(!1)}catch(Q){throw z.isControlFlowComponent&&UZ(!0),Q;}finally{z4(N),ky.tearDown()}},z.debugName);
return J};
BMY=function(M,z,J){for(;typeof z==="function";)z=z();if(z!=null&&z[rf]){var R,D,N;(N=rS.handleError)==null||N.call.apply(N,[rS].concat(_.Yj(sZ(Error("hc`"+((R=z.type)==null?void 0:R.TAG_NAME)),(D=z.type)==null?void 0:D.TAG_NAME))))}if(M==null)return z==null?RX():ZN(z)?DN(z):r1R(z)?DN(z.toString()):_.Jg(z)?z:z.length===0?RX():OuR(z,J);if(_.Jg(M)){if(z==null)return Mnn(M,RX());if(ZN(z))return TM3(M,z);if(r1R(z))return TM3(M,z.toString());if(_.Jg(z))return Mnn(M,z);if(z.length===0)return Mnn(M,RX());
z=OuR(z,J);JuG([M],J[b0].flattened);return z}M=IX(M);if(z==null)return zMo(M,RX());if(ZN(z))return zMo(M,DN(z));if(r1R(z))return zMo(M,DN(z.toString()));if(_.Jg(z))return JuG(M,[z])[0];if(z.length===0)return zMo(M,RX());z=OuR(z,J);JuG(M,J[b0].flattened);return z};
TM3=function(M,z){M.nodeType===Node.TEXT_NODE?M.textContent!==String(z)&&(M.textContent=String(z)):M=Mnn(M,DN(z));return M};
IX=function(M,z,J){return IQc(M,z!=null?z:[],J===void 0?!1:J)};
OuR=function(M,z){var J=IX(M,void 0,!0);if(J.length===0)return RX();z[b0].flattened=J;return M};
IQc=function(M,z,J,R,D){z=z===void 0?[]:z;J=J===void 0?!1:J;D=D===void 0?-1:D;if(M==null)return z;if(M instanceof oX){var N=M.render();return IQc(N,z,J,R,D)}if(_.Jg(z)&&z.nodeType===Node.ELEMENT_NODE)switch(z.tagName){case "SCRIPT":NMp(z,M);return;case "STYLE":SK3(z,M);return}ZN(M)&&(M=DN(M),R&&J&&(R[D]=M));if(C48(M)){J=b4p(M);J=Array.from(J.childNodes);J=_.S(J);for(N=J.next();!N.done;N=J.next())ol8(z,N.value);return z}r1R(M)&&(M=DN(M.toString()),R&&J&&(R[D]=M));if(_.Jg(M))return ol8(z,M);if(Array.isArray(M)){for(N=
0;N<M.length;N++)IQc(M[N],z,J,M,N);return z}if(typeof M==="function"){N=T4(function(){var B=M();return B!=null&&!ZN(B)&&C48(B)?(B=b4p(B),Array.from(B.childNodes)):B},{debugName:"qmF2ne",
debugFn:M})[0];if(Array.isArray(N)){J=_.S(N);for(N=J.next();!N.done;N=J.next())ol8(z,N.value);return z}R&&J&&(R[D]=N);return ol8(z,N)}if(M!=null&&M[rf]){R=M;D=z4(!0);var Z=L60;try{N=Z.apply(null,[R.type,R.props].concat(_.Yj(R.children)))}finally{z4(D)}return IQc(N,z,J)}(Z=rS.handleError)==null||Z.call.apply(Z,[rS].concat(_.Yj(sZ(Error("ic")))));return z};
ki8=function(M){var z={};z=Object.assign([],(z[b0]={flattened:[]},z));if(!M)return z;z[0]=OuR(M,z);return z};
ol8=function(M,z){Array.isArray(M)?M.push(z):M.appendChild(z);return M};
XT=function(M){if(!rS.enableLazyTsx)return M;if(Array.isArray(M)){for(var z=0;z<M.length;z++)M[z]=XT(M[z]);return M}return M instanceof oX?(M=M.render(),XT(M)):M};
lQn=function(M,z){var J,R,D=aho(M),N=function(v){R=v;v=z4(!0);var x=JP(li);fGw("render",D);try{J=XT(M(z))}finally{L20("render",D),JP(x),z4(v)}};
N=rS.enableContextPerComponent?CDR(N,D):F8(N,rS.alwaysTrackContexts||!!LW);roR(R);if(!z.renderedFromIdom){var Z=_.AK(R);try{return Xsb(M,z,J),J}finally{_.AK(Z)}}!V_o(J)&&Array.isArray(J)&&(J=ki8(J));var B=E2p(J);Z=Array.isArray(B)?B[0]:B;var O=!1;if(Z){var X,l=(X=z==null?void 0:z.idomKey)!=null?X:M;X=B!==Z;Z._disposeEffects=N;var e=Z[BW]||{},Q=V_o(J)?J:e.sourceDynamicRange;Object.assign(e,{key:l,numNodes:X?B.length:1,context:R,higherOrder:!!Z[BW],sourceDynamicRange:Q});Z[BW]=e}else O=!0;(function(){var v=
_.AK(R);try{Xsb(M,z,B)}finally{_.AK(v)}})();
O&&N();return J};
eMR=function(M){var z={},J;for(J in M)z={prev$jscomp$23:void 0,next$jscomp$33:void 0},z.prev$jscomp$23=ef[J],z.next$jscomp$33=M[J],ef[J]=function(R){return function(){var D=_.H4.apply(0,arguments);R.prev$jscomp$23.apply(null,_.Yj(D));R.next$jscomp$33.apply(null,_.Yj(D))}}(z)};
QTn=function(){if(wf())throw Error("jc");return QU};
UIY=function(M,z){if(!M.__unmounted&&z){M.__unmounted=!0;try{M.didUnmount()}catch(D){var J,R;(R=rS.handleError)==null||R.call.apply(R,[rS].concat(_.Yj(sZ(D,(J=M.JSC$10183___type)==null?void 0:J.TAG_NAME))))}ef.didUnmount(M);M.el=null;z.__instance&&delete z.__instance}};
Gi0=function(M,z,J){M._signalProps!=null&&M._disposeEffects==null&&((J===void 0?0:J)?M._disposeEffects=F8(function(){return void vlR(M,z)},rS.alwaysTrackContexts||!!LW):vlR(M,z))};
vlR=function(M,z){_.mt(function(){for(var J=M._signalProps,R=M._signalValues,D=0;D<J.length;D++){var N=J[D],Z=z[N]();R[D]!==Z&&(R[D]=Z,qFb(M,N,Z))}},"e3YVbb")};
wse=function(M,z,J){var R,D=[];M._disposeEffects=F8(function(){_.mt(function(){var N=J();if(N===null||N===void 0)N="";if(ZN(N)||N===null)R!=null||(R=document.createTextNode("")),R.parentNode!==M&&(R._isSignalTextNode=!0,M.insertBefore(R,z)),R.textContent=String(N);else if(C48(N)){for(var Z=D.length>0?D[D.length-1].nextSibling:z,B=_.S(D),O=B.next();!O.done;O=B.next())M.removeChild(O.value);N=b4p(N);D=Array.from(N.childNodes);N=_.S(D);for(B=N.next();!B.done;B=N.next())M.insertBefore(B.value,Z)}else throw O=
(B=(Z=vl)==null?void 0:Z.name)!=null?B:"unknown",Error("Zb`"+O+"`"+typeof N);},"VvDgC")},rS.alwaysTrackContexts||!!LW)};
jTw=function(M,z){var J=_.H4.apply(2,arguments);z!=null||(z={});return!rS.enableLazyTsx||vl!=null&&!wf()?xIY(M,z,J):new tnR(M,z,J)};
xIY=function(M,z,J){if(M===_.MH)return J;if(typeof M==="function")return vl&&!wf()&&(z.renderedFromIdom=!0),VIH(M,function(){var N=psR(M,z,J);if(N)return N;J.length>0&&(z.children=J.length===1?J[0]:J);if(M.componentType===Gk){var Z;CDR(function(){var B=z;if(M.componentType!==Gk)Z=!1;else{B||(B={});var O=new UR(B,M),X=JP(li);try{var l=O.render(B)}finally{JP(X)}l instanceof HTMLElement?(l.__instance=O,O.el=l,O.JSC$10183___type=M,M.TAG_NAME=l.tagName.toLowerCase(),ef.didPatch(O),Z=l):Z=l}},M.name);
if(Z)return Z}return lQn(M,z)},z.debugInstance);
var R=F48(M,z),D;for(D in z)qFb(R,D,z[D]);Gi0(R,z);IX(J,R);W6p(R,z,{isReactive:!0});YKH(R,z);return R};
F48=function(M,z){M=(mI8.has(M.toLowerCase())?0:gln.has(M.startsWith("svg:")?M.replace("svg:",""):M))?document.createElementNS("http://www.w3.org/2000/svg",M.startsWith("svg:")?M.replace("svg:",""):M):sT8(M,z)||document.createElement(M);M[nlc]=!0;return M};
hMb=function(M){if(M){var z;(z=M._disposeRef)==null||z.call(M);var J;(J=M._disposeEffects)==null||J.call(M);M.__instance&&M.__instance instanceof vW&&(z=M.__instance,UIY(z,M),z instanceof UR&&z.disposeEffects());for(z=0;z<M.childNodes.length;z++)hMb(M.childNodes[z])}};
Hu8=function(M){yue.push(M)===1&&requestAnimationFrame(function(){setTimeout(function(){var z=[].concat(_.Yj(yue));yue=[];z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;try{for(var R=0;R<J.length;R++)hMb(J[R])}catch(D){R=J=void 0,(R=(J=rS).handleError)==null||R.call.apply(R,[J].concat(_.Yj(sZ(D))))}}})})};
_.T=function(M,z){return L60.apply(null,[M,z].concat(_.Yj(_.H4.apply(2,arguments))))};
cuG=function(M,z){z=z===void 0?new Map:z;M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,!z.has(J)){for(var R=[],D=J.producers;D!==void 0;D=D.nextProducer)R.push(D.producer);z.set(J,R);cuG(R,z)}return z};
_.I=function(M){var z=M.cond;if(z===void 0)return M.else&&M.else();var J=_.o4(function(){return!!z()},void 0,"JHVi8"),R=function(){var D=z();
if(!D){var N;(N=rS.handleError)==null||N.call.apply(N,[rS].concat(_.Yj(sZ(dIG.nonNullableCondIsNull()))))}return D};
return T4(function(){var D=J(),N;F8(function(){var Z=JP(li);try{N=XT(D?M.then(R):M.else&&M.else())}finally{JP(Z)}},!0);
return N},{debugName:M.debugInstance,
debugFn:M.then,isControlFlowComponent:!0})};
K4e=function(M){return _.I(M)};
_.G4=function(M){return M.keyBy==="INDEX"?$I0(M):ujG(M)};
qK8=function(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next()){var J=void 0;(J=z.value)==null||J()}};
ujG=function(M){var z=M.keyBy===void 0||M.keyBy==="REFERENCE",J=z?function(l){return l}:M.keyBy,R=[],D=[],N=[],Z=[],B=[],O=[],X=!0;
_.pq(function(){qK8(Z)});
return T4(function(){var l=M.each(),e=l.length;if(e===0){if(R.length===0&&!X)return N;qK8(Z);R=l;D=[];for(l=0;l<R.length;l++)D.push(J(R[l]));N=[];Z=[];B=[];O=[];M.fallback&&(Z[0]=W4p(function(){N[0]=XT(M.fallback())}));
X=!1;return N}for(var Q=new aQw,v=R.length-1;v>=0;v--)Q.push(D[v],v);v=Array(e);for(var x=Array(e),m=Array(e),y=Array(e),H=Array(z?0:e),q={i$jscomp$445:0};q.i$jscomp$445<e;q={i$jscomp$445:q.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$550:void 0},q.i$jscomp$445++){q.item$jscomp$104=l[q.i$jscomp$445];q.key$jscomp$550=J(q.item$jscomp$104);var b=Q.pop(q.key$jscomp$550);b!=null?(m[q.i$jscomp$445]=N[b],x[q.i$jscomp$445]=D[b],v[q.i$jscomp$445]=Z[b],y[q.i$jscomp$445]=B[b],z||(H[q.i$jscomp$445]=O[b]),X8(function(V){return function(){y[V.i$jscomp$445](V.i$jscomp$445);
if(!z)H[V.i$jscomp$445](V.item$jscomp$104)}}(q)),delete Z[b]):v[q.i$jscomp$445]=W4p(function(V){return function(){var E=_.S(_.kE(V.i$jscomp$445,void 0,"Fqk1zd")),L=E.next().value;
E=E.next().value;y[V.i$jscomp$445]=E;x[V.i$jscomp$445]=V.key$jscomp$550;if(z)m[V.i$jscomp$445]=XT(M.children(V.item$jscomp$104,L));else{var z8=_.S(_.kE(V.item$jscomp$104,void 0,"GBj5de"));E=z8.next().value;z8=z8.next().value;H[V.i$jscomp$445]=z8;m[V.i$jscomp$445]=XT(M.children(E,L))}}}(q))}qK8(Z);
R=l;D=x;N=m;Z=v;B=y;O=H;X=!1;return m},{debugName:M.debugInstance,
debugFn:M.each,isControlFlowComponent:!0})};
$I0=function(M){var z=[],J=[],R=[],D=[],N=!1;_.pq(function(){for(var Z=_.S(D),B=Z.next();!B.done;B=Z.next())B=B.value,B()});
return T4(function(){var Z=M.each();N&&Z.length>0&&(D.pop()(),z.pop(),N=!1);for(var B=Array(Z.length),O={i$jscomp$446:0};O.i$jscomp$446<Z.length;O={i$jscomp$446:O.i$jscomp$446},O.i$jscomp$446++)if(O.i$jscomp$446<z.length)z[O.i$jscomp$446]!==Z[O.i$jscomp$446]&&(X8(function(l){return function(){return void J[l.i$jscomp$446](Z[l.i$jscomp$446])}}(O)),z[O.i$jscomp$446]=Z[O.i$jscomp$446]),B[O.i$jscomp$446]=R[O.i$jscomp$446];
else{var X=W4p(function(l){return function(){z[l.i$jscomp$446]=Z[l.i$jscomp$446];var e=_.S(_.kE(Z[l.i$jscomp$446],void 0,"JMMLmd")),Q=e.next().value;e=e.next().value;J[l.i$jscomp$446]=e;B[l.i$jscomp$446]=XT(M.children(Q,l.i$jscomp$446))}}(O));
D[O.i$jscomp$446]=X}for(;z.length>Z.length;)z.pop(),D.pop()(),J.pop();Z.length===0&&!N&&M.fallback&&(O=W4p(function(){B[0]=XT(M.fallback())}),D[0]=O,N=!0);
return R=B},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
W4p=function(M){var z=LW;return F8(function(J){var R=JP(li);try{J.parent=z,M(J)}finally{JP(R)}},!1)};
_.w3=function(M){return M};
_.xy=function(M){return{isDefault:!0,children:M.children}};
_.tg=function(M){var z=Vnb(M),J=_.o4(function(){return Ele(z)},void 0,"F1PF4");
return T4(function(){var R=J(),D;F8(function(){var N=JP(li);try{D=XT(R())}finally{JP(N)}});
return D},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
Vnb=function(M){M=M.children;return Array.isArray(M)?M:[M]};
fQn=function(M){var z=M.props;M=M.getChildren()[0];return z.when?{when:z.when,children:M}:{isDefault:!0,children:M}};
Ele=function(M){var z=function(){return null};
M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,J!=null&&J[rf]&&(J=J.type===_.xy?{isDefault:!0,children:J.children[0]}:{when:J.props.when,children:J.children[0]}),J instanceof oX&&(J=fQn(J)),J.isDefault)z=J.children;else if(J.when())return J.children;return z};
Auw=function(M){var z=null,J,R={get value(){var N,Z;(Z=(N=D).validateGetValue)==null||Z.call(N);return D.__value},set value(N){var Z,B;(B=(Z=D).validateSetValue)==null||B.call(Z,N);D.__value=N;D.__hasBeenSet=!0}},D=(R.__value=null,R.__hasBeenSet=!1,R.__hasErrored=!1,R.onRender=function(N){if(J&&N!==J){J._disposeRef=void 0;var Z;(Z=z)==null||Z()}J=N;z=M(N)||null},R.onUnmount=function(){var N;
(N=z)==null||N();z=D.value=null},R[_.L4Y]=!0,R);
return D};
jf=function(M){return typeof M==="symbol"};
CSH=function(M){var z=QTn();if(z==null)throw _.iu8.PRIMITIVE_INVALID_HOOK_CALL();var J=z.hookCounter++;z.hooks||(z.hooks=[]);var R=z.hooks;R[J]||(R[J]={key:M,host:z});if(M!==R[J].key){if(z.JSC$10183___type){var D;M=(D=z.JSC$10183___type)==null?void 0:D.name}else M=z instanceof UR?aho(z.functionComponent):"<"+z.el.tagName.toLowerCase()+">";throw _.iu8.OUT_OF_ORDER_HOOK_CALL(M);}return R[J]};
buH=function(M,z){return!M||M.length!==(z==null?void 0:z.length)||M.some(function(J,R){return J!==z[R]})};
rub=function(M,z){var J=CSH("onChange"),R=QTn();buH(J.deps,z)&&(J.deps=z,J.pendingEffect=M,R.__syncEffects||(R.__syncEffects=[]),R.__syncEffects.push(J))};
_.ph=function(M,z){var J=J===void 0?{}:J;J=J.appContext;var R=!!rS.legacyTriggerSoyRendererEvents;ky.setUp();try{var D=M98(M,z,J);R&&(z=J,z==null&&(z=_.Uce(document).getAppContext()),z.get(z48).JSC$28893_getEventTarget().dispatchEvent(new Jd8(R4b,M,Sf)));ky.log(M);return D}finally{ky.tearDown()}};
M98=function(M,z,J){var R=tP(function(){var D=JP(li);try{return F8(function(){var N=_.Uce(_.yW(M)),Z;var B=How({rootElement:{value:M},appContext:J||(N==null?void 0:(Z=N.getOptionalAppContext)==null?void 0:Z.call(N)),dispatcher:N});N=_.AK(B);B=z4(!0);eP++;try{IX(z(),M),UZ(!1)}catch(O){throw UZ(!0),O;}finally{z4(B),_.AK(N)}},!1)}catch(N){throw rS.enableContextBasedComponentStacks&&xE(N),N;
}finally{JP(D)}});
M[DsH]=!0;return function(){M.textContent="";R();M[DsH]=!1}};
_.FT=function(M){if(qBe(zk)){var z;(z=rS.handleError)==null||z.call.apply(z,[rS].concat(_.Yj(sZ(Error("Yb")))))}var J=LW,R=vl;Promise.resolve().then(function(){if(J&&!J.isDisposed){var D=_.AK(J);try{tP(function(){return void M()},R)}catch(N){throw rS.enableContextBasedComponentStacks&&xE(N),N;
}finally{_.AK(D)}}})};
_.Yy=function(M,z){rub(function(){return ZZ(M)},z)};
_.mF=function(M){wf()?_.FT(function(){ZZ(M)}):rub(function(){return ZZ(M)},[])};
P3c=function(M){var z=[].concat(_.Yj(M));M.length=0;M=_.S(z);for(z=M.next();!z.done;z=M.next()){z=z.value;NER(z);var J=z.pendingEffect;z.pendingEffect=null;if(J=J==null?void 0:J())z.pendingCleanup=J}};
NER=function(M){var z=M.pendingCleanup;M.pendingCleanup=null;z==null||z()};
SfH=function(M,z){if(wf())return M();var J=CSH("useMemoInternal");buH(J.deps,z)&&(J.deps=z,J.value=M());return J.value};
ZY3=function(M,z){return SfH(M,z)};
g3=function(M){return SfH(M,[])};
sR=function(M){return g3(function(){return{value:M}})};
_.nh=function(M,z){if(!M)return null;M=Object.keys(M);M=_.S(M);for(var J=M.next();!J.done;J=M.next()){J=J.value;var R=J.toLowerCase();if(R.indexOf(z,R.length-z.length)>-1)return J}return null};
_.yU=function(){var M=arguments,z=_.hg;M.length>1?z[M[0]]=M[1]:M.length===1&&Object.assign(z,M[0])};
_.HW=function(M,z){return M in _.hg?_.hg[M]:z};
_.cW=function(M,z){return!!_.HW(M,z)};
kVn=function(M){var z=_.hg.EXPERIMENT_FLAGS;return z?z[M]:void 0};
OYH=function(M){BE8.forEach(function(z){return z(M)})};
_.ui=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(z){_.$y(z)}}:M};
_.$y=function(M){var z=_.qH("yt.logging.errors.log");z?z(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=_.HW("ERRORS",[]),z.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.yU("ERRORS",z));OYH(M)};
_.WW=function(M,z,J,R,D){var N=_.qH("yt.logging.errors.log");N?N(M,"WARNING",z,J,R,void 0,D):(N=_.HW("ERRORS",[]),N.push([M,"WARNING",z,J,R,void 0,D]),_.yU("ERRORS",N))};
ILb=function(M,z){z=M.split(z);for(var J={},R=0,D=z.length;R<D;R++){var N=z[R].split("=");if(N.length===1&&N[0]||N.length===2)try{var Z=TEo(N[0]||""),B=TEo(N[1]||"");if(Z in J){var O=J[Z];Array.isArray(O)?_.a3(O,B):J[Z]=[O,B]}else J[Z]=B}catch(Q){var X=Q,l=N[0],e=String(ILb);X.args=[{key:l,value:N[1],query:M,method:oQo===e?"unchanged":e}];Xv0.hasOwnProperty(l)||_.WW(X)}}return J};
lLn=function(M){var z=[];_.gu.forEach(M,function(J,R){var D=_.aX(R);J=Array.isArray(J)?J:[J];_.VU(J,function(N){N==""?z.push(D):z.push(D+"="+_.aX(N))})});
return z.join("&")};
_.ER=function(M){M.charAt(0)==="?"&&(M=M.substring(1));return ILb(M,"&")};
_.fh=function(M){return M.indexOf("?")!==-1?(M=(M||"").split("#")[0],M=M.split("?",2),_.ER(M.length>1?M[1]:M[0])):{}};
_.Lh=function(M,z){return e48(M,z||{},!0)};
Qnn=function(M,z){return e48(M,z||{},!1)};
e48=function(M,z,J){var R=M.split("#",2);M=R[0];R=R.length>1?"#"+R[1]:"";var D=M.split("?",2);M=D[0];D=_.ER(D[1]||"");for(var N in z)if(J||!_.gu.containsKey(D,N))D[N]=z[N];return _.Ag(M,D)+R};
r3=function(M){if(!z)var z=window.location.href;var J=_.ii(M)[1]||null,R=_.Ch(M);return J&&R?bi(M,z):R?_.Ch(z)===R&&(Number(_.ii(z)[4]||null)||null)===(Number(_.ii(M)[4]||null)||null):!0};
_.vQ3=function(M){M=Usw(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Usw=function(M){M=_.Ch(M);return M!==null?M.split(".").reverse():null};
TEo=function(M){return M&&M.match(GVb)?M:MC(M)};
_.zw=function(M){return new wvn(M)};
_.JF=function(){xsn||(xsn=new t9n);return xsn};
pvb=function(){var M=jnR;return function(){var z=_.JF();z.resolve(_.zw(M))||z.addProvider({provide:M,useClass:M});return z.resolve(M)}};
Yfe=function(M){var z=_.Rb,J,R;_.k(function(D){J=_.JF();return(R=J.resolve(_.zw(z)))?(M(R),D.return(Promise.resolve(R))):D.return(J.resolve(new FVp(z)).then(function(N){M(N);return N}))})};
_.U=function(M){M=DR(M);return typeof M==="string"&&M==="false"?!1:!!M};
_.NC=function(M,z){M=DR(M);return M===void 0&&z!==void 0?z:Number(M||0)};
msY=function(M){M=DR(M);return Array.isArray(M)?_.sa(M,function(z){return Number(z||0)}):[Number(M||0)]};
_.Sz=function(M){M=DR(M);return M!==void 0?String(M):""};
_.ZR=function(M){M=DR(M);return Array.isArray(M)?_.sa(M,function(z){return String(z||"")}):[String(M||"")]};
gQ8=function(){return _.HW("EXPERIMENTS_TOKEN","")};
DR=function(M){return _.HW("EXPERIMENT_FLAGS",{})[M]};
sn3=function(){for(var M=[],z=_.HW("EXPERIMENTS_FORCED_FLAGS",{}),J=_.S(Object.keys(z)),R=J.next();!R.done;R=J.next())R=R.value,M.push({key:R,value:String(z[R])});J=_.HW("EXPERIMENT_FLAGS",{});R=_.S(Object.keys(J));for(var D=R.next();!D.done;D=R.next())D=D.value,D.startsWith("force_")&&z[D]===void 0&&M.push({key:D,value:String(J[D])});return M};
h4H=function(){if(!nQ8)return null;var M=nQ8();return"open"in M?M:null};
_.yd8=function(M){switch(_.kN(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.kN=function(M){return M&&"status"in M?M.status:-1};
_.BJ=function(M,z){typeof M==="function"&&(M=_.ui(M));return window.setTimeout(M,z)};
_.O7=function(M,z){typeof M==="function"&&(M=_.ui(M));return window.setInterval(M,z)};
_.Tw=function(M){window.clearTimeout(M)};
cdG=function(M){M=_.fh(M);for(var z=_.S(HYG),J=z.next();!J.done;J=z.next())if(M[J.value]!==void 0)return!0;return!1};
$s3=function(M,z,J,R,D,N,Z,B,O){J=J===void 0?"GET":J;R=R===void 0?"":R;B=B===void 0?!1:B;var X=h4H();if(!X)return null;var l=function(){(X&&"readyState"in X?X.readyState:0)===4&&z&&_.ui(z)(X)};
"onloadend"in X?X.addEventListener("loadend",l,!1):X.onreadystatechange=l;_.U("debug_forward_web_query_parameters")&&(M=dsH(M,window.location.search));X.open(J,M,!0);N&&(X.responseType=N);Z&&(X.withCredentials=!0);J=J==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(D=KVH(M,D))for(var e in D)X.setRequestHeader(e,D[e]),"content-type"===e.toLowerCase()&&(J=!1);J&&X.setRequestHeader("Content-Type","application/x-www-form-urlencoded");O&&"onprogress"in X&&(X.onprogress=function(){O(X.responseText)});
if(B&&"setAttributionReporting"in XMLHttpRequest.prototype){M={eventSourceEligible:!0,triggerEligible:!1};try{X.setAttributionReporting(M)}catch(Q){_.WW(Q)}}X.send(R);return X};
KVH=function(M,z){z=z===void 0?{}:z;var J=r3(M),R=_.HW("INNERTUBE_CLIENT_NAME"),D=_.U("web_ajax_ignore_global_headers_if_set"),N;for(N in u9p){var Z=_.HW(u9p[N]),B=N==="X-Goog-AuthUser"||N==="X-Goog-PageId";N!=="X-Goog-Visitor-Id"||Z||(Z=_.HW("VISITOR_DATA"));var O;if(!(O=!Z)){if(!(O=J||(_.Ch(M)?!1:!0))){O=M;var X;if(X=_.U("add_auth_headers_to_remarketing_google_dot_com_ping")&&N==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY"))X=Usw(O),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&&(O=_.Ib(O)||"",O=O.split("/"),O="/"+(O.length>1?O[1]:""),X=O==="/pagead");O=X?!0:!1}O=!O}O||D&&z[N]!==void 0||R==="TVHTML5_UNPLUGGED"&&B||(z[N]=Z)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(J||!_.Ch(M))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(J||!_.Ch(M)){try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}l&&(z["X-YouTube-Time-Zone"]=
l)}document.location.hostname.endsWith("youtubeeducation.com")||!J&&_.Ch(M)||(z["X-YouTube-Ad-Signals"]=lLn(qfw()));return z};
_.WVR=function(M,z){var J=_.Ch(M);_.U("debug_handle_relative_url_for_query_forward_killswitch")||!J&&r3(M)&&(J=document.location.hostname);var R=_.Ib(M);R=(J=J&&(J.endsWith("youtube.com")||J.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!J||R)return M;var D=_.ER(z),N={};_.VU(HYG,function(Z){D[Z]&&(N[Z]=D[Z])});
return Qnn(M,N)};
aLw=function(M,z){z.method="POST";z.postParams||(z.postParams={});return _.ob(M,z)};
V9e=function(M,z){var J=_.HW("XSRF_FIELD_NAME"),R;z.headers&&(R=z.headers["Content-Type"]);return!z.excludeXsrf&&(!_.Ch(M)||z.withCredentials||_.Ch(M)===document.location.hostname)&&z.method==="POST"&&(!R||R==="application/x-www-form-urlencoded")&&!(z.postParams&&z.postParams[J])};
_.ob=function(M,z){var J=z.format||"JSON";M=EQ0(M,z);var R=fL0(M,z),D=!1,N=LVn(M,function(O){if(!D){D=!0;B&&_.Tw(B);var X=_.yd8(O),l=null,e=400<=O.status&&O.status<500,Q=500<=O.status&&O.status<600;if(X||e||Q)l=Adp(M,J,O,z.convertToSafeHtml);X&&(X=iYY(J,O,l));l=l||{};e=z.context||_.R3;X?z.onSuccess&&z.onSuccess.call(e,O,l):z.onError&&z.onError.call(e,O,l);z.onFinish&&z.onFinish.call(e,O,l)}},z.method,R,z.headers,z.responseType,z.withCredentials,!1,z.onProgress);
R=z.timeout||0;if(z.onTimeout&&R>0){var Z=z.onTimeout;var B=_.BJ(function(){D||(D=!0,N.abort(),_.Tw(B),Z.call(z.context||_.R3,N))},R)}return N};
EQ0=function(M,z){z.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);var J=_.HW("XSRF_FIELD_NAME");if(z=z.urlParams)z[J]&&delete z[J],M=_.Lh(M,z);return M};
fL0=function(M,z){var J=_.HW("XSRF_FIELD_NAME"),R=_.HW("XSRF_TOKEN"),D=z.postBody||"",N=z.postParams;V9e(M,z)&&(N||(N={}),N[J]=R);(_.U("ajax_parse_query_data_only_when_filled")&&N&&Object.keys(N).length>0||N)&&typeof D==="string"&&(D=_.ER(D),_.gu.extend(D,N),D=z.postBodyFormat&&z.postBodyFormat==="JSON"?JSON.stringify(D):_.Xh(D));N=D||N&&!_.gu.isEmpty(N);!C3R&&N&&z.method!=="POST"&&(C3R=!0,_.$y(Error("Ec")));return D};
Adp=function(M,z,J,R){var D=null;switch(z){case "JSON":try{var N=J.responseText}catch(Z){throw R=Error("Fc"),R.params=M,_.WW(R),Z;}M=J.getResponseHeader("Content-Type")||"";N&&M.indexOf("json")>=0&&(N.substring(0,5)===")]}'\n"&&(N=N.substring(5)),D=JSON.parse(N));break;case "XML":if(M=(M=J.responseXML)?bYR(M):null)D={},_.VU(M.getElementsByTagName("*"),function(Z){D[Z.tagName]=rdR(Z)})}R&&Mg0(D);
return D};
Mg0=function(M){if(_.E8(M))for(var z in M)z==="html_content"||Sp(z,"_html")?M[z]=us(M[z]):Mg0(M[z])};
iYY=function(M,z,J){if(z&&z.status===204)return!0;switch(M){case "JSON":return!!J;case "XML":return Number(J&&J.return_code)===0;case "RAW":return!0;default:return!!J}};
bYR=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null};
rdR=function(M){var z="";_.VU(M.childNodes,function(J){z+=J.nodeValue});
return z};
zbR=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("-extension://")||M.includes("webkit-masked-url://")};
JNG=function(M){if(!M.stack)return!0;var z=!M.stack.includes("\n");return z&&M.stack.includes("ErrorType: ")||z&&M.stack.includes("Anonymous function (Unknown script")||M.stack.toLowerCase()==="not available"||M.fileName==="user-script"||M.fileName.startsWith("user-script:")?!0:!1};
_.l9=function(M){_.wS.call(this);this.JSC$10446_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!M};
Dve=function(M,z){var J=M.length,R=0,D=function(){return M.charCodeAt(R++)};
do{var N=RbG(D);if(N===Infinity)break;var Z=N>>3;switch(N&7){case 0:N=RbG(D);if(Z===z)return N;break;case 1:if(Z===z)return;R+=8;break;case 2:N=RbG(D);if(Z===z)return M.substr(R,N);R+=N;break;case 5:if(Z===z)return;R+=4;break;default:return}}while(R<J)};
RbG=function(M){var z=M(),J=z&127;if(z<128)return J;z=M();J|=(z&127)<<7;if(z<128)return J;z=M();J|=(z&127)<<14;if(z<128)return J;z=M();return z<128?J|(z&127)<<21:Infinity};
PdY=function(M,z,J,R){if(M)if(Array.isArray(M)){var D=R;for(R=0;R<M.length&&!(M[R]&&(D+=NAo(R,M[R],z,J),D>500));R++);R=D}else if(typeof M==="object")for(D in M){if(M[D]){var N=D;var Z=M[D],B=z,O=J;N=typeof Z!=="string"||N!=="clickTrackingParams"&&N!=="trackingParams"?0:(Z=Dve(atob(Z.replace(/-/g,"+").replace(/_/g,"/")),2))?NAo(N+".ve",Z,B,O):0;R+=N;R+=NAo(D,M[D],z,J);if(R>500)break}}else J[z]=ez(M),R+=J[z].length;else J[z]=ez(M),R+=J[z].length;return R};
NAo=function(M,z,J,R){J+="."+M;M=ez(z);R[J]=M;return J.length+M.length};
ez=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(z){return"unable to serialize "+typeof M+" ("+z.message+")"}};
Shp=function(M){switch(M){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.U7=function(M,z,J,R,D){_.Qy.set(M,z,{maxAge:J,path:"/",domain:R===void 0?"youtube.com":R,secure:D===void 0?!1:D})};
_.ZD0=function(M,z,J){_.Qy.remove(M,z===void 0?"/":z,J===void 0?"youtube.com":J)};
_.vJ=function(){if(_.U("embeds_web_enable_cookie_detection_fix")){if(!_.R3.navigator.cookieEnabled)return!1}else if(!_.Qy.isEnabled())return!1;if(!_.Qy.isEmpty())return!0;_.U("embeds_web_enable_cookie_detection_fix")?_.Qy.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Qy.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Qy.get("TESTCOOKIESENABLED")!=="1")return!1;_.Qy.remove("TESTCOOKIESENABLED");return!0};
krY=function(){var M=_.R3.navigator;return M?M.connection:void 0};
BAp=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}};
_.TAc=function(){var M=krY();if(M){var z=ODG[M.type||"unknown"]||"CONN_UNKNOWN";M=ODG[M.effectiveType||"unknown"]||"CONN_UNKNOWN";z==="CONN_CELLULAR_UNKNOWN"&&M!=="CONN_UNKNOWN"&&(z=M);if(z!=="CONN_UNKNOWN")return z;if(M!=="CONN_UNKNOWN")return M}};
ofw=function(){var M=krY();if(M!=null&&M.effectiveType)return I8H.hasOwnProperty(M.effectiveType)?I8H[M.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.wQ=function(){try{return _.Gw(),!0}catch(M){return!1}};
_.Gw=function(M){if(_.HW("DATASYNC_ID")!==void 0)return _.HW("DATASYNC_ID");throw new _.xN("Datasync ID not set",M===void 0?"unknown":M);};
_.tF=function(M){this.mechanism=M};
jz=function(M){this.mechanism=M};
pK=function(M){this.storage_=M;this.cachedIsStorageAvailable_=null};
XA0=function(){var M=null;try{M=_.R3.localStorage||null}catch(z){}pK.call(this,M)};
l8p=function(){var M=null;try{M=_.R3.sessionStorage||null}catch(z){}pK.call(this,M)};
Fh=function(M,z){this.mechanism_=M;this.JSC$10548_prefix_=z+"::"};
_.ebR=function(M){var z=new XA0;return z.isAvailable()?M?new Fh(z,M):z:null};
_.Qsw=function(M){var z=new l8p;return z.isAvailable()?M?new Fh(z,M):z:null};
vfp=function(){var M;return(M=Uvo())==null?void 0:M.get("LAST_RESULT_ENTRY_KEY",!0)};
_.gQ=function(M){Grc||(_.YN?_.YN.logError(M):(_.mo.push({type:"ERROR",payload:M}),_.mo.length>10&&_.mo.shift()))};
s7=function(M,z){Grc||(_.YN?_.YN.logEvent(M,z):(_.mo.push({type:"EVENT",eventType:M,payload:z}),_.mo.length>10&&_.mo.shift()))};
nK=function(M){if(M.indexOf(":")>=0)throw Error("Mc");};
hF=function(M){return M.substr(0,M.indexOf(":"))||M};
tgn=function(){return(wAb||xvp)&&yy("applewebkit")&&!yy("version")&&(!yy("safari")||yy("gsa/"))};
yy=function(M){var z=_.lG();return z?z.toLowerCase().indexOf(M)>=0:!1};
Fpn=function(M,z,J,R){z=hF(z);var D=M instanceof Error?M:Error("Nc`"+M);if(D instanceof HJ)return D;M={objectStoreNames:J,dbName:z,dbVersion:R};if(D.name==="QuotaExceededError")return new HJ("QUOTA_EXCEEDED",M);if(_.cJ&&D.name==="UnknownError")return new HJ("QUOTA_MAYBE_EXCEEDED",M);if(D instanceof jsY)return new HJ("MISSING_INDEX",Object.assign({},M,{objectStore:D.objectStore,index:D.index}));if(D.name==="InvalidStateError"&&pAp.some(function(N){return D.message.includes(N)}))return new HJ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
M);
if(D.name==="AbortError")return new HJ("UNKNOWN_ABORT",M,D.message);D.args=[Object.assign({},M,{name:"IdbError",originalName:D.name})];D.level="WARNING";return D};
dQ=function(M,z,J){var R=vfp();return new HJ("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:z,version:J,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})};
Yhb=function(M){if(!M)throw Error();throw M;};
mvH=function(M){return M};
gfY=function(M,z,J){var R=function(){try{M.removeEventListener("success",D),M.removeEventListener("error",N)}catch(Z){}},D=function(){z(M.result);
R()},N=function(){J(M.error);
R()};
M.addEventListener("success",D);M.addEventListener("error",N)};
ss3=function(M){return new Promise(function(z,J){gfY(M,z,J)})};
u9=function(M){return new KK(new $N(function(z,J){gfY(M,z,J)}))};
nfG=function(M,z){return new KK(new $N(function(J,R){var D=function(){var N=M?z(M):null;N?N.then(function(Z){M=Z;D()},R):J()};
D()}))};
hbH=function(M,z,J){return new Promise(function(R,D){var N=z!==void 0?self.indexedDB.open(M,z):self.indexedDB.open(M);var Z=J.blocked,B=J.blocking,O=J.terminated,X=J.upgrade,l=J.closed,e,Q=function(){e||(e=new qC(N.result,{closed:l}));return e};
N.addEventListener("upgradeneeded",function(v){try{if(v.newVersion===null)throw Error("Sc");if(N.transaction===null)throw Error("Tc");v.dataLoss&&v.dataLoss!=="none"&&s7("IDB_DATA_CORRUPTED",{reason:v.dataLossMessage||"unknown reason",dbName:hF(M)});var x=Q(),m=new WJ(N.transaction);X&&X(x,function(y){return v.oldVersion<y&&v.newVersion>=y},m);
m.done.catch(function(y){D(y)})}catch(y){D(y)}});
N.addEventListener("success",function(){var v=N.result;B&&v.addEventListener("versionchange",function(){B(Q())});
v.addEventListener("close",function(){s7("IDB_UNEXPECTEDLY_CLOSED",{dbName:hF(M),dbVersion:v.version});O&&O()});
R(Q())});
N.addEventListener("error",function(){D(N.error)});
Z&&N.addEventListener("blocked",function(){Z()})})};
yNp=function(M,z,J){J=J===void 0?{}:J;return hbH(M,z,J)};
_.Vy=function(M,z){z=z===void 0?{}:z;var J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return _.Io(Z,2),J=self.indexedDB.deleteDatabase(M),R=z,(D=R.blocked)&&J.addEventListener("blocked",function(){D()}),Z.yield(ss3(J),4);
if(Z.nextAddress!=2)return _.ab(Z,0);N=_.Qa(Z);throw Fpn(N,M,"",-1);})};
cN8=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.E7(HDn,z),2);J=R.yieldResult;return R.return(_.fK(J,["databases"],{enableRetries:!0,mode:"readwrite"},function(D){var N=D.objectStore("databases");return N.get(M.actualName).then(function(Z){if(Z?M.actualName!==Z.actualName||M.publicName!==Z.publicName||M.userIdentifier!==Z.userIdentifier:1)return N.put(M).then(function(){})})}))})};
_.LK=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)return M?R.yield(_.E7(HDn,z),2):R.return();J=R.yieldResult;return R.return(J.delete("databases",M))})};
_.dvb=function(M,z){var J,R;return _.k(function(D){return D.nextAddress==1?(J=[],D.yield(_.E7(HDn,z),2)):D.nextAddress!=3?(R=D.yieldResult,D.yield(_.fK(R,["databases"],{enableRetries:!0,mode:"readonly"},function(N){J.length=0;return AF(N.objectStore("databases"),{},function(Z){M(Z.getValue())&&J.push(Z.getValue());return Z.continue()})}),3)):D.return(J)})};
Kpe=function(M,z){return _.dvb(function(J){return J.publicName===M&&J.userIdentifier!==void 0},z)};
qhw=function(){var M,z,J,R;return _.k(function(D){switch(D.nextAddress){case 1:M=vfp();if((z=M)==null?0:z.hasSucceededOnce)return D.return(!0);var N;if(N=$vc)N=/WebKit\/([0-9]+)/.exec(_.lG()),N=!!(N&&parseInt(N[1],10)>=600);N&&(N=/WebKit\/([0-9]+)/.exec(_.lG()),N=!(N&&parseInt(N[1],10)>=602));if(N||i9)return D.return(!1);try{if(J=self,!(J.indexedDB&&J.IDBIndex&&J.IDBKeyRange&&J.IDBObjectStore))return D.return(!1)}catch(Z){return D.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return D.return(!1);
_.Io(D,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return D.yield(cN8(R,u2Y),4);case 4:return D.yield(_.LK("yt-idb-test-do-not-use",u2Y),5);case 5:return D.return(!0);case 2:return _.Qa(D),D.return(!1)}})};
a8o=function(){if(WpG!==void 0)return WpG;Grc=!0;return WpG=qhw().then(function(M){Grc=!1;var z;if((z=Uvo())!=null&&z.expiringStorage_){var J;z={hasSucceededOnce:((J=vfp())==null?void 0:J.hasSucceededOnce)||M};var R;(R=Uvo())==null||R.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return M})};
CK=function(){return _.qH("ytglobal.idbToken_")||void 0};
_.rQ=function(){var M=CK();return M?Promise.resolve(M):a8o().then(function(z){(z=z?u2Y:void 0)&&_.b9("ytglobal.idbToken_",z);return z})};
Vgb=function(M){if(!_.wQ())throw M=new HJ("AUTH_INVALID",{dbName:M}),_.gQ(M),M;var z=_.Gw();return{actualName:M+":"+z,publicName:M,userIdentifier:z}};
Ef8=function(M,z,J,R){var D,N,Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:return N=(D=Error().stack)!=null?D:"",l.yield(_.rQ(),2);case 2:Z=l.yieldResult;if(!Z)throw B=dQ("openDbImpl",M,z),_.U("ytidb_async_stack_killswitch")||(B.stack=B.stack+"\n"+N.substring(N.indexOf("\n")+1)),_.gQ(B),B;nK(M);O=J?{actualName:M,publicName:M,userIdentifier:void 0}:Vgb(M);_.Io(l,3);return l.yield(cN8(O,Z),5);case 5:return l.yield(yNp(O.actualName,z,R),6);case 6:return l.return(l.yieldResult);case 3:return X=
_.Qa(l),_.Io(l,7),l.yield(_.LK(O.actualName,Z),9);case 9:_.ab(l,8);break;case 7:_.Qa(l);case 8:throw X;}})};
f83=function(M,z,J){J=J===void 0?{}:J;return Ef8(M,z,!1,J)};
LpH=function(M,z,J){J=J===void 0?{}:J;return Ef8(M,z,!0,J)};
AN3=function(M,z){z=z===void 0?{}:z;var J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(_.rQ(),2);if(D.nextAddress!=3){J=D.yieldResult;if(!J)return D.return();nK(M);R=Vgb(M);return D.yield(_.Vy(R.actualName,z),3)}return D.yield(_.LK(R.actualName,J),0)})};
iDw=function(M,z,J){M=M.map(function(R){return _.k(function(D){return D.nextAddress==1?D.yield(_.Vy(R.actualName,z),2):D.yield(_.LK(R.actualName,J),0)})});
return Promise.all(M).then(function(){})};
CdH=function(M){var z=z===void 0?{}:z;var J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(_.rQ(),2);if(D.nextAddress!=3){J=D.yieldResult;if(!J)return D.return();nK(M);return D.yield(Kpe(M,J),3)}R=D.yieldResult;return D.yield(iDw(R,z,J),0)})};
bD3=function(M,z){z=z===void 0?{}:z;var J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.rQ(),2);if(R.nextAddress!=3){J=R.yieldResult;if(!J)return R.return();nK(M);return R.yield(_.Vy(M,z),3)}return R.yield(_.LK(M,J),0)})};
Mc=function(M,z){return rNG(M,z)};
z8o=function(M){return _.E7(Mep(),M)};
J98=function(M,z,J,R){var D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:return D={config:M,hashData:z,timestamp:R!==void 0?R:(0,_.zU)()},B.yield(z8o(J),2);case 2:return N=B.yieldResult,B.yield(N.clear("hotConfigStore"),3);case 3:return B.yield(N.put("hotConfigStore",D),4);case 4:return Z=B.yieldResult,B.return(Z)}})};
R83=function(M,z,J,R,D){var N,Z,B;return _.k(function(O){switch(O.nextAddress){case 1:return N={config:M,hashData:z,configData:J,timestamp:D!==void 0?D:(0,_.zU)()},O.yield(z8o(R),2);case 2:return Z=O.yieldResult,O.yield(Z.clear("coldConfigStore"),3);case 3:return O.yield(Z.put("coldConfigStore",N),4);case 4:return B=O.yieldResult,O.return(B)}})};
DGw=function(M){var z,J;return _.k(function(R){return R.nextAddress==1?R.yield(z8o(M),2):R.nextAddress!=3?(z=R.yieldResult,J=void 0,R.yield(_.fK(z,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(D){return _.Jo(D.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(N){J=N.getValue()})}),3)):R.return(J)})};
NBn=function(M){var z,J;return _.k(function(R){return R.nextAddress==1?R.yield(z8o(M),2):R.nextAddress!=3?(z=R.yieldResult,J=void 0,R.yield(_.fK(z,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(D){return _.Jo(D.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(N){J=N.getValue()})}),3)):R.return(J)})};
P78=function(){return _.k(function(M){return M.yield(CdH("ytGcfConfig"),0)})};
SAc=function(){return"INNERTUBE_API_KEY"in _.hg&&"INNERTUBE_API_VERSION"in _.hg};
_.RH=function(){return{innertubeApiKey:_.HW("INNERTUBE_API_KEY"),innertubeApiVersion:_.HW("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.HW("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.HW("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.HW("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.HW("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.HW("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.HW("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.cW("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.cW("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.HW("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.oVo=function(M){var z={client:{hl:M.innertubeContextHostLanguage,gl:M.innertubeContextGeoLocation,clientName:M.innertubeContextClientName,clientVersion:M.innertubeContextClientVersion,configInfo:M.innertubeContextClientConfigInfo}};navigator.userAgent&&(z.client.userAgent=String(navigator.userAgent));var J=_.R3.devicePixelRatio;J&&J!=1&&(z.client.screenDensityFloat=String(J));J=gQ8();J!==""&&(z.client.experimentsToken=J);J=sn3();J.length>0&&(z.request={internalExperimentFlags:J});ZXn(M,void 0,z);
khw(void 0,z);BBp(void 0,z);OXo(M,void 0,z);TBG(void 0,z);_.U("start_client_gcf")&&ISo(void 0,z);_.HW("DELEGATED_SESSION_ID")&&!_.U("pageid_as_header_web")&&(z.user={onBehalfOfUser:_.HW("DELEGATED_SESSION_ID")});!_.U("fill_delegate_context_in_gel_killswitch")&&(M=_.HW("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:M}));M=_.HW("INNERTUBE_CONTEXT");var R;if(_.U("enable_persistent_device_token")&&(M==null?0:(R=M.client)==null?0:R.rolloutToken)){var D;
z.client.rolloutToken=M==null?void 0:(D=M.client)==null?void 0:D.rolloutToken}R=Object;D=R.assign;M=z.client;J={};for(var N=_.S(Object.entries(_.ER(_.HW("DEVICE","")))),Z=N.next();!Z.done;Z=N.next()){var B=_.S(Z.value);Z=B.next().value;B=B.next().value;Z==="cbrand"?J.deviceMake=B:Z==="cmodel"?J.deviceModel=B:Z==="cbr"?J.browserName=B:Z==="cbrver"?J.browserVersion=B:Z==="cos"?J.osName=B:Z==="cosver"?J.osVersion=B:Z==="cplatform"&&(J.platform=B)}z.client=D.call(R,M,J);return z};
ZXn=function(M,z,J){M=M.innertubeContextClientName;if(M==="WEB"||M==="MWEB"||M===1||M===2)if(z){J=_.DG(z,XPe,96)||new XPe;var R=lSe();R=Object.keys(e88).indexOf(R);R=R===-1?null:R;R!==null&&_.Nc(J,3,R);_.or(z,96,J)}else J&&(J.client.mainAppWebInfo=(R=J.client.mainAppWebInfo)!=null?R:{},J.client.mainAppWebInfo.webDisplayMode=lSe())};
khw=function(M,z){var J=_.qH("yt.embedded_player.embed_url");J&&(M?(z=_.DG(M,Qzc,7)||new Qzc,_.G$(z,4,J),_.or(M,7,z)):z&&(z.thirdParty={embedUrl:J}))};
BBp=function(M,z){var J;if(_.U("web_log_memory_total_kbytes")&&((J=_.R3.navigator)==null?0:J.deviceMemory)){var R;J=(R=_.R3.navigator)==null?void 0:R.deviceMemory;M?_.PI(M,95,NN(J*1E6)):z&&(z.client.memoryTotalKbytes=""+J*1E6)}};
OXo=function(M,z,J){if(M.appInstallData)if(z){var R;J=(R=_.DG(z,SW,62))!=null?R:new SW;_.G$(J,6,M.appInstallData);_.or(z,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},J.client.configInfo.appInstallData=M.appInstallData)};
TBG=function(M,z){var J=_.TAc();J&&(M?_.Nc(M,61,UG3[J]):z&&(z.client.connectionType=J));_.U("web_log_effective_connection_type")&&(J=ofw())&&(M?_.Nc(M,94,vVo[J]):z&&(z.client.effectiveConnectionType=J))};
_.xGH=function(M,z,J){J=J===void 0?{}:J;var R={};_.HW("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":_.HW("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":J.visitorData||_.HW("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return R;z=J.authorization||_.HW("AUTHORIZATION");z||(M?z="Bearer "+_.qH("gapi.auth.getToken")().access_token:(Ghb.instance||(Ghb.instance=new Ghb),M=wPc(),_.U("pageid_as_header_web")||delete M["X-Goog-PageId"],R=Object.assign({},R,M)));z&&(R.Authorization=z);return R};
ISo=function(M,z){var J=teY();if(J){var R=J.coldConfigData,D=J.coldHashData;J=J.hotHashData;if(M){var N;z=(N=_.DG(M,SW,62))!=null?N:new SW;R=_.G$(z,1,R);_.G$(R,3,D).setHotHashData(J);_.or(M,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},R&&(z.client.configInfo.coldConfigData=R),D&&(z.client.configInfo.coldHashData=D),J&&(z.client.configInfo.hotHashData=J))}};
ZG=function(M){for(var z=M.length;--z>=0;)M[z]=0};
jzY=function(M,z,J,R,D){this.static_tree=M;this.extra_bits=z;this.extra_base=J;this.elems=R;this.max_length=D;this.has_stree=M&&M.length};
pPH=function(M,z){this.dyn_tree=M;this.max_code=0;this.stat_desc=z};
k_=function(M,z){M.pending_buf[M.pending++]=z&255;M.pending_buf[M.pending++]=z>>>8&255};
BI=function(M,z,J){M.bi_valid>16-J?(M.bi_buf|=z<<M.bi_valid&65535,k_(M,M.bi_buf),M.bi_buf=z>>16-M.bi_valid,M.bi_valid+=J-16):(M.bi_buf|=z<<M.bi_valid&65535,M.bi_valid+=J)};
Oy=function(M,z,J){BI(M,J[z*2],J[z*2+1])};
FQ8=function(M,z){var J=0;do J|=M&1,M>>>=1,J<<=1;while(--z>0);return J>>>1};
YAc=function(M,z,J){var R=Array(16),D=0,N;for(N=1;N<=15;N++)R[N]=D=D+J[N-1]<<1;for(J=0;J<=z;J++)D=M[J*2+1],D!==0&&(M[J*2]=FQ8(R[D]++,D))};
mGY=function(M){var z;for(z=0;z<286;z++)M.dyn_ltree[z*2]=0;for(z=0;z<30;z++)M.dyn_dtree[z*2]=0;for(z=0;z<19;z++)M.bl_tree[z*2]=0;M.dyn_ltree[512]=1;M.opt_len=M.static_len=0;M.last_lit=M.matches=0};
gVn=function(M){M.bi_valid>8?k_(M,M.bi_buf):M.bi_valid>0&&(M.pending_buf[M.pending++]=M.bi_buf);M.bi_buf=0;M.bi_valid=0};
szw=function(M,z,J){gVn(M);k_(M,J);k_(M,~J);TU.arraySet(M.pending_buf,M.window,z,J,M.pending);M.pending+=J};
nVR=function(M,z,J,R){var D=z*2,N=J*2;return M[D]<M[N]||M[D]===M[N]&&R[z]<=R[J]};
h80=function(M,z,J){for(var R=M.heap[J],D=J<<1;D<=M.heap_len;){D<M.heap_len&&nVR(z,M.heap[D+1],M.heap[D],M.depth)&&D++;if(nVR(z,R,M.heap[D],M.depth))break;M.heap[J]=M.heap[D];J=D;D<<=1}M.heap[J]=R};
KQo=function(M,z,J){var R=0;if(M.last_lit!==0){do{var D=M.pending_buf[M.d_buf+R*2]<<8|M.pending_buf[M.d_buf+R*2+1];var N=M.pending_buf[M.l_buf+R];R++;if(D===0)Oy(M,N,z);else{var Z=IH[N];Oy(M,Z+256+1,z);var B=y9p[Z];B!==0&&(N-=HXo[Z],BI(M,N,B));D--;Z=D<256?oH[D]:oH[256+(D>>>7)];Oy(M,Z,J);B=c90[Z];B!==0&&(D-=dGp[Z],BI(M,D,B))}}while(R<M.last_lit)}Oy(M,256,z)};
$Gc=function(M,z){var J=z.dyn_tree,R=z.stat_desc.static_tree,D=z.stat_desc.has_stree,N=z.stat_desc.elems,Z,B=-1;M.heap_len=0;M.heap_max=573;for(Z=0;Z<N;Z++)J[Z*2]!==0?(M.heap[++M.heap_len]=B=Z,M.depth[Z]=0):J[Z*2+1]=0;for(;M.heap_len<2;){var O=M.heap[++M.heap_len]=B<2?++B:0;J[O*2]=1;M.depth[O]=0;M.opt_len--;D&&(M.static_len-=R[O*2+1])}z.max_code=B;for(Z=M.heap_len>>1;Z>=1;Z--)h80(M,J,Z);O=N;do Z=M.heap[1],M.heap[1]=M.heap[M.heap_len--],h80(M,J,1),R=M.heap[1],M.heap[--M.heap_max]=Z,M.heap[--M.heap_max]=
R,J[O*2]=J[Z*2]+J[R*2],M.depth[O]=(M.depth[Z]>=M.depth[R]?M.depth[Z]:M.depth[R])+1,J[Z*2+1]=J[R*2+1]=O,M.heap[1]=O++,h80(M,J,1);while(M.heap_len>=2);M.heap[--M.heap_max]=M.heap[1];Z=z.dyn_tree;O=z.max_code;R=z.stat_desc.static_tree;D=z.stat_desc.has_stree;N=z.stat_desc.extra_bits;var X=z.stat_desc.extra_base,l=z.stat_desc.max_length,e,Q=0;for(e=0;e<=15;e++)M.bl_count[e]=0;Z[M.heap[M.heap_max]*2+1]=0;for(z=M.heap_max+1;z<573;z++){var v=M.heap[z];e=Z[Z[v*2+1]*2+1]+1;e>l&&(e=l,Q++);Z[v*2+1]=e;if(!(v>
O)){M.bl_count[e]++;var x=0;v>=X&&(x=N[v-X]);var m=Z[v*2];M.opt_len+=m*(e+x);D&&(M.static_len+=m*(R[v*2+1]+x))}}if(Q!==0){do{for(e=l-1;M.bl_count[e]===0;)e--;M.bl_count[e]--;M.bl_count[e+1]+=2;M.bl_count[l]--;Q-=2}while(Q>0);for(e=l;e!==0;e--)for(v=M.bl_count[e];v!==0;)R=M.heap[--z],R>O||(Z[R*2+1]!==e&&(M.opt_len+=(e-Z[R*2+1])*Z[R*2],Z[R*2+1]=e),v--)}YAc(J,B,M.bl_count)};
ukn=function(M,z,J){var R,D=-1,N=z[1],Z=0,B=7,O=4;N===0&&(B=138,O=3);z[(J+1)*2+1]=65535;for(R=0;R<=J;R++){var X=N;N=z[(R+1)*2+1];++Z<B&&X===N||(Z<O?M.bl_tree[X*2]+=Z:X!==0?(X!==D&&M.bl_tree[X*2]++,M.bl_tree[32]++):Z<=10?M.bl_tree[34]++:M.bl_tree[36]++,Z=0,D=X,N===0?(B=138,O=3):X===N?(B=6,O=3):(B=7,O=4))}};
qAp=function(M,z,J){var R,D=-1,N=z[1],Z=0,B=7,O=4;N===0&&(B=138,O=3);for(R=0;R<=J;R++){var X=N;N=z[(R+1)*2+1];if(!(++Z<B&&X===N)){if(Z<O){do Oy(M,X,M.bl_tree);while(--Z!==0)}else X!==0?(X!==D&&(Oy(M,X,M.bl_tree),Z--),Oy(M,16,M.bl_tree),BI(M,Z-3,2)):Z<=10?(Oy(M,17,M.bl_tree),BI(M,Z-3,3)):(Oy(M,18,M.bl_tree),BI(M,Z-11,7));Z=0;D=X;N===0?(B=138,O=3):X===N?(B=6,O=3):(B=7,O=4)}}};
WQc=function(M){var z=4093624447,J;for(J=0;J<=31;J++,z>>>=1)if(z&1&&M.dyn_ltree[J*2]!==0)return 0;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return 1;for(J=32;J<256;J++)if(M.dyn_ltree[J*2]!==0)return 1;return 0};
XJ=function(M,z,J){M.pending_buf[M.d_buf+M.last_lit*2]=z>>>8&255;M.pending_buf[M.d_buf+M.last_lit*2+1]=z&255;M.pending_buf[M.l_buf+M.last_lit]=J&255;M.last_lit++;z===0?M.dyn_ltree[J*2]++:(M.matches++,z--,M.dyn_ltree[(IH[J]+256+1)*2]++,M.dyn_dtree[(z<256?oH[z]:oH[256+(z>>>7)])*2]++);return M.last_lit===M.lit_bufsize-1};
eW=function(M,z){M.msg=lD[z];return z};
QS=function(M){for(var z=M.length;--z>=0;)M[z]=0};
Uy=function(M){var z=M.state,J=z.pending;J>M.avail_out&&(J=M.avail_out);J!==0&&(TU.arraySet(M.output,z.pending_buf,z.pending_out,J,M.next_out),M.next_out+=J,z.pending_out+=J,M.total_out+=J,M.avail_out-=J,z.pending-=J,z.pending===0&&(z.pending_out=0))};
x_=function(M,z){var J=M.block_start>=0?M.block_start:-1,R=M.strstart-M.block_start,D=0;if(M.level>0){M.strm.data_type===2&&(M.strm.data_type=WQc(M));$Gc(M,M.l_desc);$Gc(M,M.d_desc);ukn(M,M.dyn_ltree,M.l_desc.max_code);ukn(M,M.dyn_dtree,M.d_desc.max_code);$Gc(M,M.bl_desc);for(D=18;D>=3&&M.bl_tree[aS0[D]*2+1]===0;D--);M.opt_len+=3*(D+1)+5+5+4;var N=M.opt_len+3+7>>>3;var Z=M.static_len+3+7>>>3;Z<=N&&(N=Z)}else N=Z=R+5;if(R+4<=N&&J!==-1)BI(M,z?1:0,3),szw(M,J,R);else if(M.strategy===4||Z===N)BI(M,2+(z?
1:0),3),KQo(M,vI,GU);else{BI(M,4+(z?1:0),3);J=M.l_desc.max_code+1;R=M.d_desc.max_code+1;D+=1;BI(M,J-257,5);BI(M,R-1,5);BI(M,D-4,4);for(N=0;N<D;N++)BI(M,M.bl_tree[aS0[N]*2+1],3);qAp(M,M.dyn_ltree,J-1);qAp(M,M.dyn_dtree,R-1);KQo(M,M.dyn_ltree,M.dyn_dtree)}mGY(M);z&&gVn(M);M.block_start=M.strstart;Uy(M.strm)};
to=function(M,z){M.pending_buf[M.pending++]=z};
jW=function(M,z){M.pending_buf[M.pending++]=z>>>8&255;M.pending_buf[M.pending++]=z&255};
Ve8=function(M,z){var J=M.max_chain_length,R=M.strstart,D=M.prev_length,N=M.nice_match,Z=M.strstart>M.w_size-262?M.strstart-(M.w_size-262):0,B=M.window,O=M.w_mask,X=M.prev,l=M.strstart+258,e=B[R+D-1],Q=B[R+D];M.prev_length>=M.good_match&&(J>>=2);N>M.lookahead&&(N=M.lookahead);do{var v=z;if(B[v+D]===Q&&B[v+D-1]===e&&B[v]===B[R]&&B[++v]===B[R+1]){R+=2;for(v++;B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&B[++R]===B[++v]&&R<l;);
v=258-(l-R);R=l-258;if(v>D){M.match_start=z;D=v;if(v>=N)break;e=B[R+D-1];Q=B[R+D]}}}while((z=X[z&O])>Z&&--J!==0);return D<=M.lookahead?D:M.lookahead};
FJ=function(M){var z=M.w_size,J;do{var R=M.window_size-M.lookahead-M.strstart;if(M.strstart>=z+(z-262)){TU.arraySet(M.window,M.window,z,z,0);M.match_start-=z;M.strstart-=z;M.block_start-=z;var D=J=M.hash_size;do{var N=M.head[--D];M.head[D]=N>=z?N-z:0}while(--J);D=J=z;do N=M.prev[--D],M.prev[D]=N>=z?N-z:0;while(--J);R+=z}if(M.strm.avail_in===0)break;D=M.strm;J=M.window;N=M.strstart+M.lookahead;var Z=D.avail_in;Z>R&&(Z=R);Z===0?J=0:(D.avail_in-=Z,TU.arraySet(J,D.input,D.next_in,Z,N),D.state.wrap===
1?D.adler=EV8(D.adler,J,Z,N):D.state.wrap===2&&(D.adler=po(D.adler,J,Z,N)),D.next_in+=Z,D.total_in+=Z,J=Z);M.lookahead+=J;if(M.lookahead+M.insert>=3)for(R=M.strstart-M.insert,M.ins_h=M.window[R],M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+1])&M.hash_mask;M.insert&&!(M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+3-1])&M.hash_mask,M.prev[R&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=R,R++,M.insert--,M.lookahead+M.insert<3););}while(M.lookahead<262&&M.strm.avail_in!==0)};
fSc=function(M,z){for(var J;;){if(M.lookahead<262){FJ(M);if(M.lookahead<262&&z===0)return 1;if(M.lookahead===0)break}J=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,J=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);J!==0&&M.strstart-J<=M.w_size-262&&(M.match_length=Ve8(M,J));if(M.match_length>=3)if(J=XJ(M,M.strstart-M.match_start,M.match_length-3),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=3){M.match_length--;
do M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart;while(--M.match_length!==0);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else J=XJ(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(J&&(x_(M,!1),M.strm.avail_out===0))return 1}M.insert=M.strstart<2?M.strstart:2;return z===4?(x_(M,
!0),M.strm.avail_out===0?3:4):M.last_lit&&(x_(M,!1),M.strm.avail_out===0)?1:2};
Y_=function(M,z){for(var J,R;;){if(M.lookahead<262){FJ(M);if(M.lookahead<262&&z===0)return 1;if(M.lookahead===0)break}J=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,J=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);M.prev_length=M.match_length;M.prev_match=M.match_start;M.match_length=2;J!==0&&M.prev_length<M.max_lazy_match&&M.strstart-J<=M.w_size-262&&(M.match_length=Ve8(M,J),M.match_length<=5&&(M.strategy===1||M.match_length===3&&
M.strstart-M.match_start>4096)&&(M.match_length=2));if(M.prev_length>=3&&M.match_length<=M.prev_length){R=M.strstart+M.lookahead-3;J=XJ(M,M.strstart-1-M.prev_match,M.prev_length-3);M.lookahead-=M.prev_length-1;M.prev_length-=2;do++M.strstart<=R&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);while(--M.prev_length!==0);M.match_available=0;M.match_length=2;M.strstart++;if(J&&(x_(M,!1),M.strm.avail_out===0))return 1}else if(M.match_available){if((J=
XJ(M,0,M.window[M.strstart-1]))&&x_(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return 1}else M.match_available=1,M.strstart++,M.lookahead--}M.match_available&&(XJ(M,0,M.window[M.strstart-1]),M.match_available=0);M.insert=M.strstart<2?M.strstart:2;return z===4?(x_(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(x_(M,!1),M.strm.avail_out===0)?1:2};
LQo=function(M,z){for(var J,R,D,N=M.window;;){if(M.lookahead<=258){FJ(M);if(M.lookahead<=258&&z===0)return 1;if(M.lookahead===0)break}M.match_length=0;if(M.lookahead>=3&&M.strstart>0&&(R=M.strstart-1,J=N[R],J===N[++R]&&J===N[++R]&&J===N[++R])){for(D=M.strstart+258;J===N[++R]&&J===N[++R]&&J===N[++R]&&J===N[++R]&&J===N[++R]&&J===N[++R]&&J===N[++R]&&J===N[++R]&&R<D;);M.match_length=258-(D-R);M.match_length>M.lookahead&&(M.match_length=M.lookahead)}M.match_length>=3?(J=XJ(M,1,M.match_length-3),M.lookahead-=
M.match_length,M.strstart+=M.match_length,M.match_length=0):(J=XJ(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++);if(J&&(x_(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return z===4?(x_(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(x_(M,!1),M.strm.avail_out===0)?1:2};
A9w=function(M,z){for(var J;;){if(M.lookahead===0&&(FJ(M),M.lookahead===0)){if(z===0)return 1;break}M.match_length=0;J=XJ(M,0,M.window[M.strstart]);M.lookahead--;M.strstart++;if(J&&(x_(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return z===4?(x_(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(x_(M,!1),M.strm.avail_out===0)?1:2};
m2=function(M,z,J,R,D){this.good_length=M;this.max_lazy=z;this.nice_length=J;this.max_chain=R;this.func=D};
iXw=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 TU.Buf16(1146);this.dyn_dtree=new TU.Buf16(122);this.bl_tree=new TU.Buf16(78);QS(this.dyn_ltree);QS(this.dyn_dtree);QS(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new TU.Buf16(16);this.heap=new TU.Buf16(573);QS(this.heap);this.heap_max=this.heap_len=0;this.depth=new TU.Buf16(573);QS(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};
C70=function(M,z){if(!M||!M.state||z>5||z<0)return M?eW(M,-2):-2;var J=M.state;if(!M.output||!M.input&&M.avail_in!==0||J.status===666&&z!==4)return eW(M,M.avail_out===0?-5:-2);J.strm=M;var R=J.last_flush;J.last_flush=z;if(J.status===42)if(J.wrap===2)M.adler=0,to(J,31),to(J,139),to(J,8),J.gzhead?(to(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),to(J,J.gzhead.time&255),to(J,J.gzhead.time>>8&255),to(J,J.gzhead.time>>16&255),to(J,J.gzhead.time>>
24&255),to(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),to(J,J.gzhead.os&255),J.gzhead.extra&&J.gzhead.extra.length&&(to(J,J.gzhead.extra.length&255),to(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(M.adler=po(M.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(to(J,0),to(J,0),to(J,0),to(J,0),to(J,0),to(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),to(J,3),J.status=113);else{var D=8+(J.w_bits-8<<4)<<8;D|=(J.strategy>=2||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6;J.strstart!==0&&(D|=
32);J.status=113;jW(J,D+(31-D%31));J.strstart!==0&&(jW(J,M.adler>>>16),jW(J,M.adler&65535));M.adler=1}if(J.status===69)if(J.gzhead.extra){for(D=J.pending;J.gzindex<(J.gzhead.extra.length&65535)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D)),Uy(M),D=J.pending,J.pending!==J.pending_buf_size));)to(J,J.gzhead.extra[J.gzindex]&255),J.gzindex++;J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D));J.gzindex===J.gzhead.extra.length&&
(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){D=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D)),Uy(M),D=J.pending,J.pending===J.pending_buf_size)){var N=1;break}N=J.gzindex<J.gzhead.name.length?J.gzhead.name.charCodeAt(J.gzindex++)&255:0;to(J,N)}while(N!==0);J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D));N===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===
91)if(J.gzhead.comment){D=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D)),Uy(M),D=J.pending,J.pending===J.pending_buf_size)){N=1;break}N=J.gzindex<J.gzhead.comment.length?J.gzhead.comment.charCodeAt(J.gzindex++)&255:0;to(J,N)}while(N!==0);J.gzhead.hcrc&&J.pending>D&&(M.adler=po(M.adler,J.pending_buf,J.pending-D,D));N===0&&(J.status=103)}else J.status=103;J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Uy(M),
J.pending+2<=J.pending_buf_size&&(to(J,M.adler&255),to(J,M.adler>>8&255),M.adler=0,J.status=113)):J.status=113);if(J.pending!==0){if(Uy(M),M.avail_out===0)return J.last_flush=-1,0}else if(M.avail_in===0&&(z<<1)-(z>4?9:0)<=(R<<1)-(R>4?9:0)&&z!==4)return eW(M,-5);if(J.status===666&&M.avail_in!==0)return eW(M,-5);if(M.avail_in!==0||J.lookahead!==0||z!==0&&J.status!==666){R=J.strategy===2?A9w(J,z):J.strategy===3?LQo(J,z):sy[J.level].func(J,z);if(R===3||R===4)J.status=666;if(R===1||R===3)return M.avail_out===
0&&(J.last_flush=-1),0;if(R===2&&(z===1?(BI(J,2,3),Oy(J,256,vI),J.bi_valid===16?(k_(J,J.bi_buf),J.bi_buf=0,J.bi_valid=0):J.bi_valid>=8&&(J.pending_buf[J.pending++]=J.bi_buf&255,J.bi_buf>>=8,J.bi_valid-=8)):z!==5&&(BI(J,0,3),szw(J,0,0),z===3&&(QS(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Uy(M),M.avail_out===0))return J.last_flush=-1,0}if(z!==4)return 0;if(J.wrap<=0)return 1;J.wrap===2?(to(J,M.adler&255),to(J,M.adler>>8&255),to(J,M.adler>>16&255),to(J,M.adler>>24&255),to(J,
M.total_in&255),to(J,M.total_in>>8&255),to(J,M.total_in>>16&255),to(J,M.total_in>>24&255)):(jW(J,M.adler>>>16),jW(J,M.adler&65535));Uy(M);J.wrap>0&&(J.wrap=-J.wrap);return J.pending!==0?0:1};
bXp=function(M){if(!(this instanceof bXp))return new bXp(M);M=this.options=TU.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new r9w;this.strm.avail_out=0;var z=this.strm;var J=M.level,R=M.method,D=M.windowBits,N=M.memLevel,Z=M.strategy;if(z){var B=1;J===-1&&(J=6);D<0?(B=0,D=-D):D>15&&
(B=2,D-=16);if(N<1||N>9||R!==8||D<8||D>15||J<0||J>9||Z<0||Z>4)z=eW(z,-2);else{D===8&&(D=9);var O=new iXw;z.state=O;O.strm=z;O.wrap=B;O.gzhead=null;O.w_bits=D;O.w_size=1<<O.w_bits;O.w_mask=O.w_size-1;O.hash_bits=N+7;O.hash_size=1<<O.hash_bits;O.hash_mask=O.hash_size-1;O.hash_shift=~~((O.hash_bits+3-1)/3);O.window=new TU.Buf8(O.w_size*2);O.head=new TU.Buf16(O.hash_size);O.prev=new TU.Buf16(O.w_size);O.lit_bufsize=1<<N+6;O.pending_buf_size=O.lit_bufsize*4;O.pending_buf=new TU.Buf8(O.pending_buf_size);
O.d_buf=O.lit_bufsize;O.l_buf=3*O.lit_bufsize;O.level=J;O.strategy=Z;O.method=R;if(z&&z.state){z.total_in=z.total_out=0;z.data_type=2;J=z.state;J.pending=0;J.pending_out=0;J.wrap<0&&(J.wrap=-J.wrap);J.status=J.wrap?42:113;z.adler=J.wrap===2?0:1;J.last_flush=0;if(!MNb){R=Array(16);for(N=Z=0;N<28;N++)for(HXo[N]=Z,D=0;D<1<<y9p[N];D++)IH[Z++]=N;IH[Z-1]=N;for(N=Z=0;N<16;N++)for(dGp[N]=Z,D=0;D<1<<c90[N];D++)oH[Z++]=N;for(Z>>=7;N<30;N++)for(dGp[N]=Z<<7,D=0;D<1<<c90[N]-7;D++)oH[256+Z++]=N;for(D=0;D<=15;D++)R[D]=
0;for(D=0;D<=143;)vI[D*2+1]=8,D++,R[8]++;for(;D<=255;)vI[D*2+1]=9,D++,R[9]++;for(;D<=279;)vI[D*2+1]=7,D++,R[7]++;for(;D<=287;)vI[D*2+1]=8,D++,R[8]++;YAc(vI,287,R);for(D=0;D<30;D++)GU[D*2+1]=5,GU[D*2]=FQ8(D,5);zfe=new jzY(vI,y9p,257,286,15);JJc=new jzY(GU,c90,0,30,15);Rf3=new jzY([],D3c,0,19,7);MNb=!0}J.l_desc=new pPH(J.dyn_ltree,zfe);J.d_desc=new pPH(J.dyn_dtree,JJc);J.bl_desc=new pPH(J.bl_tree,Rf3);J.bi_buf=0;J.bi_valid=0;mGY(J);J=0}else J=eW(z,-2);J===0&&(z=z.state,z.window_size=2*z.w_size,QS(z.head),
z.max_lazy_match=sy[z.level].max_lazy,z.good_match=sy[z.level].good_length,z.nice_match=sy[z.level].nice_length,z.max_chain_length=sy[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=2,z.match_available=0,z.ins_h=0);z=J}}else z=-2;if(z!==0)throw Error(lD[z]);M.header&&(z=this.strm)&&z.state&&z.state.wrap===2&&(z.state.gzhead=M.header);if(M.dictionary){var X;typeof M.dictionary==="string"?X=NH3(M.dictionary):PaG.call(M.dictionary)==="[object ArrayBuffer]"?
X=new Uint8Array(M.dictionary):X=M.dictionary;M=this.strm;N=X;Z=N.length;if(M&&M.state)if(X=M.state,z=X.wrap,z===2||z===1&&X.status!==42||X.lookahead)z=-2;else{z===1&&(M.adler=EV8(M.adler,N,Z,0));X.wrap=0;Z>=X.w_size&&(z===0&&(QS(X.head),X.strstart=0,X.block_start=0,X.insert=0),J=new TU.Buf8(X.w_size),TU.arraySet(J,N,Z-X.w_size,X.w_size,0),N=J,Z=X.w_size);J=M.avail_in;R=M.next_in;D=M.input;M.avail_in=Z;M.next_in=0;M.input=N;for(FJ(X);X.lookahead>=3;){N=X.strstart;Z=X.lookahead-2;do X.ins_h=(X.ins_h<<
X.hash_shift^X.window[N+3-1])&X.hash_mask,X.prev[N&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=N,N++;while(--Z);X.strstart=N;X.lookahead=2;FJ(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;M.next_in=R;M.input=D;M.avail_in=J;X.wrap=z;z=0}else z=-2;if(z!==0)throw Error(lD[z]);this._dict_set=!0}};
SVc=function(M,z){z=z||{};z.gzip=!0;z=new bXp(z);z.push(M,!0);if(z.err)throw z.msg||lD[z.err];return z.result};
kpb=function(M,z){var J=ZdR();J&&J.publish.call(J,M.toString(),M,z)};
oz0=function(M,z,J){var R=ZdR();if(!R)return 0;var D=R.subscribe(M.toString(),function(N,Z){var B=_.qH("ytPubsub2Pubsub2SkipSubKey");B&&B==D||(B=function(){if(BHn[D])try{if(Z&&M instanceof Odc&&M!=N)try{var O=M.dataClass,X=Z;if(!X.args||!X.version)throw Error("Vc");try{if(!O.version_){var l=new O;O.version_=l.version}var e=O.version_}catch(Q){}if(!e||X.version!=e)throw Error("Wc");try{Z=Reflect.construct(O,_.uG(X.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+M.toString()+": "+Q.message,Q;}z.call(J||window,Z)}catch(Q){_.$y(Q)}},THc[M.toString()]?_.qH("yt.scheduler.instance")?_.no.addLowPriorityJob(B):_.BJ(B,0):B())});
BHn[D]=!0;IE0[M.toString()]||(IE0[M.toString()]=[]);IE0[M.toString()].push(D);return D};
QuH=function(){var M=XUw,z=oz0(lE8,function(J){M.apply(void 0,arguments);efe(z)});
return z};
efe=function(M){var z=ZdR();z&&(typeof M==="number"&&(M=[M]),_.VU(M,function(J){z.unsubscribeByKey(J);delete BHn[J]}))};
ZdR=function(){return _.qH("ytPubsub2Pubsub2Instance")};
U3p=function(M,z,J){J=J===void 0?{sampleRate:.1}:J;Math.random()<Math.min(.02,J.sampleRate/100)&&kpb("meta_logging_csi_event",{timerName:M,timelineData:z})};
_.vzG=function(M){return M?(M=M.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.L3(M):null:null};
_.ho=function(M){return M?(M=M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.wi(M):null:null};
wU0=function(){Gp8||(Gp8=_.ho(_.HW("WORKER_SERIALIZATION_URL")));return Gp8||void 0};
_.tNH=function(){var M=wU0();x38||M===void 0||(x38=new Worker(_.xq(M),void 0));return x38};
_.juw=function(){return typeof Worker==="function"&&wU0()?!0:!1};
_.m38=function(){if(_.juw()&&!pUH){var M=function(J){J=J.data;if(J.op==="gzippedGelBatch"){var R=Fxc.get(J.key);R&&(YVw(J.gzippedBatch,R.latencyPayload,R.url,R.options,R.sendFn),Fxc.delete(J.key))}},z=_.tNH();
z&&(z.addEventListener("message",M),z.onerror=function(){Fxc.clear()},pUH=!0)}};
cJY=function(M,z,J,R,D){D=D===void 0?!1:D;var N={startTime:(0,_.zU)(),ticks:{},infos:{}};if(yS)try{var Z=gz0(z);if(Z!=null&&(Z>su3||Z<nz8))R(M,J);else{if(_.U("gzip_gel_with_worker")&&(_.U("initial_gzip_use_main_thread")&&!hf3||!_.U("initial_gzip_use_main_thread"))){pUH||_.m38();var B=_.tNH();if(B&&!D){Fxc.set(yJw,{latencyPayload:N,url:M,options:J,sendFn:R});B.postMessage({op:"gelBatchToGzip",serializedBatch:z,key:yJw});yJw++;return}}var O=SVc(HdG(z));YVw(O,N,M,J,R)}}catch(X){_.WW(X),R(M,J)}else R(M,
J)};
YVw=function(M,z,J,R,D){hf3=!1;var N=(0,_.zU)();z.ticks.gelc=N;HI++;_.U("disable_compression_due_to_performance_degredation")&&N-z.startTime>=d3H&&(Kxp++,_.U("abandon_compression_after_N_slow_zips")?HI===_.NC("compression_disable_point")&&Kxp>$3G&&(yS=!1):yS=!1);uw0(z);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=M;R.postParams=void 0;D(J,R)};
qVY=function(M){var z=z===void 0?!1:z;var J=J===void 0?!1:J;var R=(0,_.zU)(),D={startTime:R,ticks:{},infos:{}},N=z?_.qH("yt.logging.gzipForFetch",!1):!0;if(yS&&N){if(!M.body)return M;try{var Z=J?M.body:typeof M.body==="string"?M.body:JSON.stringify(M.body);N=Z;if(!J&&typeof Z==="string"){var B=gz0(Z);if(B!=null&&(B>su3||B<nz8))return M;J=z?{level:1}:void 0;N=SVc(HdG(Z),J);var O=(0,_.zU)();D.ticks.gelc=O;if(z){HI++;if((_.U("disable_compression_due_to_performance_degredation")||_.U("disable_compression_due_to_performance_degradation_lr"))&&
O-R>=d3H)if(Kxp++,_.U("abandon_compression_after_N_slow_zips")||_.U("abandon_compression_after_N_slow_zips_lr")){z=Kxp/HI;var X=$3G/_.NC("compression_disable_point");HI>0&&HI%_.NC("compression_disable_point")===0&&z>=X&&(yS=!1)}else yS=!1;uw0(D)}}M.headers=Object.assign({},{"Content-Encoding":"gzip"},M.headers||{});M.body=N;return M}catch(l){return _.WW(l),M}}else return M};
gz0=function(M){try{return(new Blob(M.split(""))).size}catch(z){return _.WW(z),null}};
uw0=function(M){_.U("gel_compression_csi_killswitch")||!_.U("log_gel_compression_latency")&&!_.U("log_gel_compression_latency_lr")||U3p("gel_compression",M,{sampleRate:.1})};
Wxn=function(){this.blockSize=-1};
cI=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var M=1;M<this.blockSize;++M)this.pad_[M]=0;this.total_=this.inbuf_=0;this.reset()};
VNY=function(M){M=Object.assign({},M);delete M.Authorization;var z=_.aE8();if(z){var J=new cI;J.update(_.HW("INNERTUBE_API_KEY"));J.update(z);M.hash=_.YG(J.digest(),3)}return M};
Ko=function(){Eze||(Eze=new _.dc("yt.innertube"));return Eze};
fEw=function(M,z,J,R){if(R)return null;R=Ko().get("nextId",!0)||1;var D=Ko().get("requests",!0)||{};D[R]={method:M,request:z,authState:VNY(J),requestTime:Math.round((0,_.zU)())};Ko().set("nextId",R+1,86400,!0);Ko().set("requests",D,86400,!0);return R};
Lxb=function(M){var z=Ko().get("requests",!0)||{};delete z[M];Ko().set("requests",z,86400,!0)};
idp=function(M){var z=Ko().get("requests",!0);if(z){for(var J in z){var R=z[J];if(!(Math.round((0,_.zU)())-R.requestTime<6E4)){var D=R.authState,N=VNY(_.xGH(!1));_.gu.equals(D,N)&&(D=R.request,"requestTimeMs"in D&&(D.requestTimeMs=Math.round((0,_.zU)())),AJe(M,R.method,D,{}));delete z[J]}}Ko().set("requests",z,86400,!0)}};
Cap=function(M){var z;return(M=M==null?void 0:(z=M.error)==null?void 0:z.code)&&M>=400&&M<=599?!1:!0};
bdH=function(M){var z;M=M==null?void 0:(z=M.error)==null?void 0:z.code;return!(M!==400&&M!==415)};
M5b=function(){if(rJ8)return rJ8();var M={};rJ8=Mc("LogsDatabaseV2",{objectStores:(M.LogsRequestsStore={addedAtVersion:2},M),shared:!1,upgrade:function(z,J,R){J(2)&&$_(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});J(3);J(5)&&(R=R.objectStore("LogsRequestsStore"),R.JSC$10607_wrapped.indexNames.contains("newRequest")&&R.JSC$10607_wrapped.deleteIndex("newRequest"),uD(R,"newRequestV2",["status","interface","timestamp"]));J(7)&&z.JSC$10592_wrapped.objectStoreNames.contains("sapisid")&&z.JSC$10592_wrapped.deleteObjectStore("sapisid");
J(9)&&z.JSC$10592_wrapped.objectStoreNames.contains("SWHealthLog")&&z.JSC$10592_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return rJ8()};
qc=function(M){return _.E7(M5b(),M)};
JhR=function(M,z){var J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return J={startTime:(0,_.zU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},Z.yield(qc(z),2);if(Z.nextAddress!=3)return R=Z.yieldResult,D=Object.assign({},M,{options:JSON.parse(JSON.stringify(M.options)),interface:_.HW("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),Z.yield(R.put("LogsRequestsStore",D),3);N=Z.yieldResult;J.ticks.tc=(0,_.zU)();ztG(J);return Z.return(N)})};
Rtn=function(M,z){var J,R,D,N,Z,B,O,X,l;return _.k(function(e){if(e.nextAddress==1)return J={startTime:(0,_.zU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},e.yield(qc(z),2);if(e.nextAddress!=3)return R=e.yieldResult,D=_.HW("INNERTUBE_CONTEXT_CLIENT_NAME",0),N=[M,D,0],Z=[M,D,(0,_.zU)()],B=IDBKeyRange.bound(N,Z),O="prev",_.U("use_fifo_for_networkless")&&(O="next"),X=void 0,l=M==="NEW"?"readwrite":"readonly",_.U("use_readonly_for_get_most_recent_by_status_killswitch")&&(l="readwrite"),
e.yield(_.fK(R,["LogsRequestsStore"],{mode:l,enableRetries:!0},function(Q){return _.Jo(Q.objectStore("LogsRequestsStore").index("newRequestV2"),{query:B,direction:O},function(v){v.getValue()&&(X=v.getValue(),M==="NEW"&&(X.status="QUEUED",v.update(X)))})}),3);
J.ticks.tc=(0,_.zU)();ztG(J);return e.return(X)})};
Dfw=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)return R.yield(qc(z),2);J=R.yieldResult;return R.return(_.fK(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(D){var N=D.objectStore("LogsRequestsStore");return N.get(M).then(function(Z){if(Z)return Z.status="QUEUED",N.put(Z).then(function(){return Z})})}))})};
Nvc=function(M,z,J,R){J=J===void 0?!0:J;var D;return _.k(function(N){if(N.nextAddress==1)return N.yield(qc(z),2);D=N.yieldResult;return N.return(_.fK(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var B=Z.objectStore("LogsRequestsStore");return B.get(M).then(function(O){return O?(O.status="NEW",J&&(O.sendCount+=1),R!==void 0&&(O.options.compress=R),B.put(O).then(function(){return O})):KK.resolve(void 0)})}))})};
P5G=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)return R.yield(qc(z),2);J=R.yieldResult;return R.return(J.delete("LogsRequestsStore",M))})};
SU3=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(qc(M),2);z=R.yieldResult;J=(0,_.zU)()-2592E6;return R.yield(_.fK(z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(D){return AF(D.objectStore("LogsRequestsStore"),{},function(N){if(N.getValue().timestamp<=J)return N.delete().then(function(){return N.continue()})})}),0)})};
Ze8=function(){_.k(function(M){return M.yield(CdH("LogsDatabaseV2"),0)})};
ztG=function(M){_.U("nwl_csi_killswitch")||U3p("networkless_performance",M,{sampleRate:1})};
_.Bvp=function(M){return _.E7(kmH(),M)};
Oeb=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(_.Bvp(M),2);z=R.yieldResult;J=(0,_.zU)()-2592E6;return R.yield(_.fK(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(D){return AF(D.objectStore("SWHealthLog"),{},function(N){if(N.getValue().timestamp<=J)return N.delete().then(function(){return N.continue()})})}),0)})};
TvG=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(_.Bvp(M),2);z=J.yieldResult;return J.yield(z.clear("SWHealthLog"),0)})};
_.WI=function(M,z,J,R,D,N,Z){D=D===void 0?"":D;N=N===void 0?!1:N;Z=Z===void 0?!1:Z;if(M)if(J&&!yy("cobalt"))_.WW(new _.xN("Legacy referrer-scrubbed ping detected")),M&&Ifp(M,void 0,{scrubReferrer:!0});else if(D)$s3(M,z,"POST",D,R);else if(_.HW("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||Z)$s3(M,z,"GET","",R,void 0,N,Z);else{b:{try{c:{var B=new oSn({url:M});if(B.urlParamValues_.dsh==="1")var O=null;else{var X=B.urlParamValues_.ae;if(X==="1"){var l=B.urlParamValues_.adurl;if(l)try{O={version:3,directUrl:decodeURIComponent(l),
asyncUrl:jX3(B.JSC$9443_url_,"act=1","ri=1",X5n(B))};break c}catch(x){}}O=X==="2"?{version:4,directUrl:jX3(B.JSC$9443_url_,"dct=1","suid="+B.suid_,""),asyncUrl:jX3(B.JSC$9443_url_,"act=1","ri=1","suid="+B.suid_)}:null}}if(O){var e=_.Ib(M);var Q=!(!e||!e.endsWith("/aclk")||_.KW(M,"ri")!=="1");break b}}catch(x){}Q=!1}if(Q){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,"")){var v=!0;break b}}catch(x){}v=!1}v?(z&&z(),J=!0):J=!1}else J=!1;J||Ifp(M,z)}};
Ifp=function(M,z,J){J=J===void 0?{}:J;var R=new Image,D=""+lfo++;eto[D]=R;R.onload=R.onerror=function(){z&&eto[D]&&z();delete eto[D]};
J.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=M};
aH=function(M,z){QE8(M,z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
UfY=function(M){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?M+"&nis=6":M+"&nis=5"};
vSp=function(M){if(!M)return!1;try{var z;if(((z=_.ER(M))==null?void 0:z.asm)==="4")return!0}catch(J){_.$y(J)}return!1};
QE8=function(M,z){z?(M=UfY(M),_.WI(M,void 0,void 0,void 0,"",!0,!0)):_.WI(M)};
w5w=function(){GmH||(GmH=new _.dc("yt.offline"));return GmH};
xfw=function(M){if(_.U("offline_error_handling")){var z=w5w().get("errors",!0)||{};z[M.message]={name:M.name,stack:M.stack};M.level&&(z[M.message].level=M.level);w5w().set("errors",z,2592E3,!0)}};
jEp=function(M,z,J,R){R=R===void 0?!1:R;z=_.U("web_fp_via_jspb")?Object.assign({},z):z;_.U("use_cfr_monitor")&&t5b(M,z);if(_.U("use_request_time_ms_header"))z.headers&&r3(M)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.zU)())));else{var D;if((D=z.postParams)==null?0:D.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,_.zU)())}J&&Object.keys(z).length===0?_.WI(M):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),cJY(M,z.postBody,
z,_.ob,R)):cJY(M,JSON.stringify(z.postParams),z,aLw,R):_.ob(M,z)};
p58=function(M,z){_.U("use_event_time_ms_header")&&r3(M)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.zU)())));return z};
_.YUH=function(){FK3||(FK3=new _.VS({logOfflineErrors:!0,enablePolling:!0}));return FK3};
t5b=function(M,z){var J=z.onError?z.onError:function(){};
z.onError=function(D,N){Ey().requestComplete(M,!1);J(D,N)};
var R=z.onSuccess?z.onSuccess:function(){};
z.onSuccess=function(D,N){Ey().requestComplete(M,!0);R(D,N)}};
_.mfw=function(){return _.Ch(document.location.toString())!=="www.youtube-nocookie.com"};
_.nSR=function(){return _.qH("ytNetworklessLoggingInitializationOptions")?_.gS8.isNwlInitialized:_.sEY};
hte=function(M,z){if(_.U("polymer_on_demand_shady_dom")){var J;var R=(J=M.__shady_native_firstElementChild)!=null?J:M.firstElementChild}else R=M.firstElementChild;for(;R;){if(M=z(R)?R:hte(R,z))return M;R=R.nextElementSibling}return null};
Hep=function(){var M=document;if("visibilityState"in M)return M.visibilityState;var z=yhe+"VisibilityState";if(z in M)return M[z]};
_.che=function(M,z){var J;fo(M,function(R){J=z[R];return!!J});
return J};
_.Ao=function(M){var z=dfo(M);z?z.focus(void 0):_.Lo(M)};
dfo=function(M){return(M=hte(M,function(z){return _.iD(z)?KKp(z)&&!!z.offsetParent:!1}))?M:null};
_.Lo=function(M,z){M.hasAttribute("tabindex")||M.setAttribute("tabindex","-1");M.focus(z)};
$fe=function(M,z,J,R){R=R===void 0?{}:R;M.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return _.gu.findKey(bD,function(D){var N=typeof D[4]==="boolean"&&D[4]==!!R,Z=_.E8(D[4])&&_.E8(R)&&_.gu.equals(D[4],R);return!!D.length&&D[0]==M&&D[1]==z&&D[2]==J&&(N||Z)})};
_.Mp=function(M,z,J,R){R=R===void 0?{}:R;if(!M||!M.addEventListener&&!M.attachEvent)return"";var D=$fe(M,z,J,R);if(D)return D;D=++uH0.count+"";var N=!(z!="mouseenter"&&z!="mouseleave"||!M.addEventListener||"onmouseenter"in document);var Z=N?function(B){B=new rc(B);if(!_.cj(B.relatedTarget,function(O){return O==M},!0))return B.currentTarget=M,B.type=z,J.call(M,B)}:function(B){B=new rc(B);
B.currentTarget=M;return J.call(M,B)};
Z=_.ui(Z);M.addEventListener?(z=="mouseenter"&&N?z="mouseover":z=="mouseleave"&&N?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),qUG()||typeof R==="boolean"?M.addEventListener(z,Z,R):M.addEventListener(z,Z,!!R.capture)):M.attachEvent("on"+z,Z);bD[D]=[M,z,J,Z,R];return D};
_.afp=function(M,z,J){var R=R===void 0?{}:R;var D=_.Mp(M,z,function(){_.WK8(D);J.apply(M,arguments)},R)};
_.WK8=function(M){M&&(typeof M=="string"&&(M=[M]),_.VU(M,function(z){if(z in bD){var J=bD[z],R=J[0],D=J[1],N=J[3];J=J[4];R.removeEventListener?qUG()||typeof J==="boolean"?R.removeEventListener(D,N,J):R.removeEventListener(D,N,!!J.capture):R.detachEvent&&R.detachEvent("on"+D,N);delete bD[z]}}))};
zF=function(M){this.callback_=M;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(M=0;M<4;M++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Mp(window,"mousemove",(0,_.xF)(this.onMouseMove_,this));this.timerId_=_.O7((0,_.xF)(this.checkPosition_,this),25)};
ESH=function(){var M={};var z=M.preferMobileEvents===void 0?!1:M.preferMobileEvents;M=M.enableScrollEventListener===void 0?!0:M.enableScrollEventListener;if(_.qH("_lact",window)==null){var J=parseInt(_.HW("LACT"),10);J=isFinite(J)?Date.now()-Math.max(J,0):-1;_.b9("_lact",J,window);_.b9("_fact",J,window);J==-1&&_.JL();_.Mp(document,"keydown",_.JL);_.Mp(document,"keyup",_.JL);_.Mp(document,"mousedown",_.JL);_.Mp(document,"mouseup",_.JL);z?_.Mp(window,"touchmove",function(){V5n("touchmove",200)},{passive:!0}):
(_.Mp(window,"resize",function(){V5n("resize",200)}),M&&_.Mp(window,"scroll",function(){V5n("scroll",200)}));
new zF(function(){V5n("mouse",100)});
_.Mp(document,"touchstart",_.JL,{passive:!0});_.Mp(document,"touchend",_.JL,{passive:!0})}};
V5n=function(M,z){ffp[M]||(ffp[M]=!0,_.no.addLowPriorityJob(function(){_.JL();ffp[M]=!1},z))};
_.JL=function(){_.qH("_lact",window)==null&&ESH();var M=Date.now();_.b9("_lact",M,window);_.qH("_fact",window)==-1&&_.b9("_fact",M,window);(M=_.qH("ytglobal.ytUtilActivityCallback_"))&&M()};
_.Rf=function(){var M=_.qH("_lact",window);return M==null?-1:Math.max(Date.now()-M,0)};
_.SI=function(M,z,J){var R=_.Dh();if(R&&z){var D=R.subscribe(M,function(){var N=arguments,Z=function(){Np[D]&&z.apply&&typeof z.apply=="function"&&z.apply(J||window,N)};
try{_.LKp[M]?Z():_.BJ(Z,0)}catch(B){_.$y(B)}},J);
Np[D]=!0;Pb[M]||(Pb[M]=[]);Pb[M].push(D);return D}return 0};
_.AhH=function(M){var z=_.Dh();z&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),_.VU(M,function(J){z.unsubscribeByKey(J);delete Np[J]}))};
_.ieb=function(M,z){var J=_.Dh();J&&J.publish.apply(J,arguments)};
_.beR=function(M){var z=_.Dh();if(z)if(z.clear(M),M)C5R(M);else for(var J in Pb)C5R(J)};
_.Dh=function(){return _.R3.ytPubsubPubsubInstance};
C5R=function(M){Pb[M]&&(M=Pb[M],_.VU(M,function(z){Np[z]&&delete Np[z]}),M.length=0)};
rh0=function(){var M,z;return"h5vcc"in Zh&&((M=Zh.h5vcc.traceEvent)==null?0:M.traceBegin)&&((z=Zh.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in Zh&&Zh.performance.mark&&Zh.performance.measure?2:0};
Mh3=function(M){var z=rh0();switch(z){case 1:Zh.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:Zh.performance.mark(M+"-start");break;case 0:break;default:_.uJ(z,"unknown trace type")}};
zUn=function(M){var z=rh0();switch(z){case 1:Zh.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:z=M+"-start";var J=M+"-end";Zh.performance.mark(J);Zh.performance.measure(M,z,J);break;case 0:break;default:_.uJ(z,"unknown trace type")}};
JMo=function(M){var z,J;(J=(z=window).onerror)==null||J.call(z,M.message,"",0,0,M)};
RUe=function(M){if(_.U("web_lifecycle_error_handling_killswitch"))return M();try{return M()}catch(z){JMo(z)}};
D7b=function(M){return[M.auth===void 0?"undefined":M.auth,M.isJspb===void 0?"undefined":M.isJspb,M.cttAuthInfo===void 0?"undefined":M.cttAuthInfo,M.tier===void 0?"undefined":M.tier].join("/")};
_.G=function(M,z){if(M)return M[z.name]};
Bb=function(){var M=_.qH("yt.logging.ims");M||(M=new k4,_.b9("yt.logging.ims",M));return M};
Ivn=function(M,z){if(M.endpoint==="log_event"){N4n(M);var J=PPc(M),R=SNG(M.payload)||"",D=Znb(R),N=200;if(D){if(D.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;N=kL3(D.tier);if(N===400){B4p(M,z);return}}OB[J]=!0;J={cttAuthInfo:J,isJspb:!1,tier:N};Bb().storePayload(J,M.payload);Onp(z,!1,J,T4o(R))}};
XSn=function(M,z,J){if(z.endpoint==="log_event"){N4n(void 0,z);var R=PPc(z,!0),D=Znb(M),N=200;if(D){if(D.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;N=kL3(D.tier);if(N===400){onR(M,z,J);return}}OB[R]=!0;R={cttAuthInfo:R,isJspb:!0,tier:N};Bb().storePayload(R,s5(z.payload));Onp(J,!0,R,T4o(M))}};
Onp=function(M,z,J,R){z=z===void 0?!1:z;R=R===void 0?!1:R;M&&(TF=new M);M=_.NC("tvhtml5_logging_max_batch_ads_fork")||_.NC("tvhtml5_logging_max_batch")||_.NC("web_logging_max_batch")||100;var D=(0,_.zU)(),N=lv8(z,J.tier),Z=N.lastDebounceQueueFromLogTimeMs;R&&(N.useVideoStatsEndPoint=!0);R=0;J&&(R=Bb().getSequenceCount(J));var B=function(){eUp({writeThenSend:!0},z,J.tier)};
R>=1E3?B():R>=M?Ql8||(Ql8=U7w(function(){B();Ql8=void 0},0)):D-Z>=10&&(vn0(z,J.tier),N.lastDebounceQueueFromLogTimeMs=D)};
B4p=function(M,z){if(M.endpoint==="log_event"){_.U("more_accurate_gel_parser")&&Bb().storePayload({isJspb:!1},M.payload);N4n(M);var J=PPc(M),R=new Map;R.set(J,[M.payload]);var D=SNG(M.payload)||"";z&&(TF=new z);return new _.If(function(N,Z){TF&&TF.isReady()?GLp(R,TF,N,Z,{bypassNetworkless:!0},!0,T4o(D)):N()})}};
onR=function(M,z,J){if(z.endpoint==="log_event"){N4n(void 0,z);var R=PPc(z,!0),D=new Map;D.set(R,[s5(z.payload)]);J&&(TF=new J);return new _.If(function(N){TF&&TF.isReady()?wSp(D,TF,N,{bypassNetworkless:!0},!0,T4o(M)):N()})}};
PPc=function(M,z){var J="";if(M.dangerousLogToVisitorSession)J="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(z===void 0?0:z){z=M.cttAuthInfo.token;J=M.cttAuthInfo;var R=new x7p;J.videoId?R.setVideoId(J.videoId):J.playlistId&&of(R,2,th0,O5(J.playlistId));jlp[z]=R}else z=M.cttAuthInfo,J={},z.videoId?J.videoId=z.videoId:z.playlistId&&(J.playlistId=z.playlistId),pSw[M.cttAuthInfo.token]=J;J=M.cttAuthInfo.token}return J};
eUp=function(M,z,J){M=M===void 0?{}:M;z=z===void 0?!1:z;new _.If(function(R,D){var N=lv8(z,J),Z=N.useVideoStatsEndPoint;N.useVideoStatsEndPoint=!1;FNG(N.queueTimer);FNG(N.queueMaxTimer);N.queueMaxTimer=0;TF&&TF.isReady()?J===void 0&&_.U("enable_web_tiered_gel")?YNY(R,D,M,z,300,Z):YNY(R,D,M,z,J,Z):(vn0(z,J),R())})};
YNY=function(M,z,J,R,D,N){var Z=TF;J=J===void 0?{}:J;R=R===void 0?!1:R;D=D===void 0?200:D;N=N===void 0?!1:N;var B=new Map,O=new Map,X={isJspb:R,cttAuthInfo:void 0,tier:D},l={isJspb:R,cttAuthInfo:void 0};if(R){z=_.S(Object.keys(OB));for(D=z.next();!D.done;D=z.next())D=D.value,O=_.U("enable_web_tiered_gel")?Bb().smartExtractMatchingEntries({keys:[X,l],sizeLimit:1E3}):Bb().extractMatchingEntries({isJspb:!0,cttAuthInfo:D}),O.length>0&&B.set(D,O),(_.U("web_fp_via_jspb_and_json")&&J.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&
delete OB[D];wSp(B,Z,M,J,!1,N)}else{B=_.S(Object.keys(OB));for(X=B.next();!X.done;X=B.next())X=X.value,l=_.U("enable_web_tiered_gel")?Bb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:X,tier:D},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):Bb().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),l.length>0&&O.set(X,l),(_.U("web_fp_via_jspb_and_json")&&J.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&delete OB[X];GLp(O,Z,M,z,J,!1,N)}};
vn0=function(M,z){M=M===void 0?!1:M;z=z===void 0?200:z;var J=function(){eUp({writeThenSend:!0},M,z)},R=lv8(M,z),D=R===m73||R===gnY?5E3:slo;
_.U("web_gel_timeout_cap")&&!R.queueMaxTimer&&(D=U7w(function(){J()},D),R.queueMaxTimer=D);
FNG(R.queueTimer);D=_.HW("LOGGING_BATCH_TIMEOUT",_.NC("web_gel_debounce_ms",1E4));_.U("shorten_initial_gel_batch_timeout")&&nnc&&(D=hUb);D=U7w(function(){_.NC("gel_min_batch_size")>0?Bb().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:z})>=yMw&&J():J()},D);
R.queueTimer=D};
GLp=function(M,z,J,R,D,N,Z){D=D===void 0?{}:D;var B=Math.round((0,_.zU)()),O=M.size,X=HnR(Z);M=_.S(M);var l=M.next();for(Z={};!l.done;Z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},l=M.next()){var e=_.S(l.value);l=e.next().value;e=e.next().value;Z.batchRequest=_.gu.unsafeClone({context:_.oVo(z.config_||_.RH())});if(!_.WY(e)&&!_.U("throw_err_when_logevent_malformed_killswitch")){R();break}Z.batchRequest.events=e;
(e=pSw[l])&&cMc(Z.batchRequest,l,e);delete pSw[l];Z.dangerousLogToVisitorSession=l==="visitorOnlyApprovedKey";d7G(Z.batchRequest,B,Z.dangerousLogToVisitorSession);KNp(D);Z.onSuccess$jscomp$3=function(Q){_.U("start_client_gcf")&&_.no.addLowPriorityJob(function(){return _.k(function(v){return v.yield($7b(Q),0)})});
O--;O||J()};
Z.networkFailures=0;Z.onError$jscomp$5=function(Q){return function(){Q.networkFailures++;if(D.bypassNetworkless&&Q.networkFailures===1)try{AJe(z,X,Q.batchRequest,uYG({writeThenSend:!0},Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,N)),nnc=!1}catch(v){_.$y(v),R()}O--;O||J()}}(Z);
try{AJe(z,X,Z.batchRequest,uYG(D,Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,N)),nnc=!1}catch(Q){_.$y(Q),R()}}};
wSp=function(M,z,J,R,D,N){R=R===void 0?{}:R;var Z=Math.round((0,_.zU)()),B={value:M.size},O=new Map([].concat(_.Yj(M)));O=_.S(O);for(var X=O.next();!X.done;X=O.next()){var l=_.S(X.value).next().value,e=M.get(l);X=new qNY;var Q=z.config_||_.RH(),v=new XS,x=new WNp;_.G$(x,1,Q.innertubeContextHostLanguage);_.G$(x,2,Q.innertubeContextGeoLocation);_.Nc(x,16,Q.innertubeContextClientNameFieldNumber);_.G$(x,17,Q.innertubeContextClientVersion);if(Q.innertubeContextClientConfigInfo){var m=Q.innertubeContextClientConfigInfo,
y=new SW;m.coldConfigData&&_.G$(y,1,m.coldConfigData);m.appInstallData&&_.G$(y,6,m.appInstallData);m.coldHashData&&_.G$(y,3,m.coldHashData);m.hotHashData&&y.setHotHashData(m.hotHashData);_.or(x,62,y)}(m=_.R3.devicePixelRatio)&&m!=1&&_.PI(x,65,_.Wu(m));m=gQ8();m!==""&&_.G$(x,54,m);m=sn3();if(m.length>0){y=new avY;for(var H=0;H<m.length;H++){var q=new lW;q.setKey(m[H].key);of(q,2,Vhp,O5(m[H].value));eI(y,15,lW,q)}_.or(v,5,y)}ZXn(Q,x);khw(v);BBp(x);OXo(Q,x);TBG(x);_.U("start_client_gcf")&&ISo(x);_.HW("DELEGATED_SESSION_ID")&&
!_.U("pageid_as_header_web")&&(Q=new QA,_.G$(Q,3,_.HW("DELEGATED_SESSION_ID")));!_.U("fill_delegate_context_in_gel_killswitch")&&(m=_.HW("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y=_.DG(v,QA,3)||new QA,Q=v,m=_.G$(y,18,m),_.or(Q,3,m));Q=x;m=_.S(Object.entries(_.ER(_.HW("DEVICE",""))));for(y=m.next();!y.done;y=m.next())H=_.S(y.value),y=H.next().value,H=H.next().value,y==="cbrand"?_.G$(Q,12,H):y==="cmodel"?_.G$(Q,13,H):y==="cbr"?_.G$(Q,87,H):y==="cbrver"?_.G$(Q,88,H):y==="cos"?_.G$(Q,18,
H):y==="cosver"?_.G$(Q,19,H):y==="cplatform"&&_.Nc(Q,42,Shp(H));v.setClient(x);_.or(X,1,v);if(x=jlp[l])a:{if(_.o2(x,UB(x,th0,1)))v=1;else if(x.getPlaylistId())v=2;else break a;_.or(X,4,x);x=X.getContext()||new XS;Q=_.DG(x,QA,3)||new QA;m=new vb;m.setToken(l);_.Nc(m,1,v);eI(Q,12,vb,m);_.or(x,3,Q)}delete jlp[l];l=l==="visitorOnlyApprovedKey";Eno()||_.GF(X,2,Z);!l&&(v=_.HW("EVENT_ID"))&&(x=fve(),Q=new LN3,_.G$(Q,1,v),_.GF(Q,2,x),_.or(X,5,Q));KNp(R);if(_.U("jspb_serialize_with_worker")&&(v=_.tNH())&&
R.writeThenSend){_.AMG.set(in8,{client:z,resolve:J,networklessOptions:R,isIsolated:D,useVSSEndpoint:N,dangerousLogToVisitorSession:l,requestsOutstanding:B});v.postMessage({op:"gelBatchToSerialize",batchRequest:s5(X),clientEvents:e,key:in8});in8++;break}if(e){v=[];for(x=0;x<e.length;x++)try{v.push(new wP(e[x]))}catch(b){_.$y(new _.xN("Transport failed to deserialize "+String(e[x])))}e=v}else e=[];e=_.S(e);for(v=e.next();!v.done;v=e.next())eI(X,3,wP,v.value);e={startTime:(0,_.zU)(),ticks:{},infos:{}};
X=X.serialize();e.ticks.geljspc=(0,_.zU)();_.U("log_jspb_serialize_latency")&&U3p("gel_jspb_serialize",e,{sampleRate:.1});_.CP8(X,z,J,R,D,N,l,B)}};
_.CP8=function(M,z,J,R,D,N,Z,B){R=R===void 0?{}:R;B=B===void 0?{value:0}:B;N=HnR(N);R=uYG(R,Z,function(O){_.U("start_client_gcf")&&_.no.addLowPriorityJob(function(){return _.k(function(X){return X.yield($7b(O),0)})});
B.value--;B.value||J()},function(){B.value--;
B.value||J()},D);
R.headers["Content-Type"]="application/json+protobuf";R.postBodyFormat="JSPB";R.postBody=M;AJe(z,N,"",R);nnc=!1};
KNp=function(M){_.U("always_send_and_write")&&(M.writeThenSend=!1)};
uYG=function(M,z,J,R,D){M={retry:!0,onSuccess:J,onError:R,networklessOptions:M,dangerousLogToVisitorSession:z,bypassMonitoring:!!D,headers:{},postBodyFormat:"",postBody:"",compress:_.U("compress_gel")||_.U("compress_gel_lr")};Eno()&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.zU)())));return M};
d7G=function(M,z,J){Eno()||(M.requestTimeMs=String(z));_.U("unsplit_gel_payloads_in_logs")&&(M.unsplitGelPayloadsInLogs=!0);!J&&(z=_.HW("EVENT_ID"))&&(J=fve(),M.serializedClientEventId={serializedEventId:z,clientCounter:String(J)})};
fve=function(){var M=_.HW("BATCH_CLIENT_COUNTER")||0;M||(M=Math.floor(Math.random()*65535/2));M++;M>65535&&(M=1);_.yU("BATCH_CLIENT_COUNTER",M);return M};
cMc=function(M,z,J){if(J.videoId)var R="VIDEO";else if(J.playlistId)R="PLAYLIST";else return;M.credentialTransferTokenTargetId=J;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:z,scope:R}]};
N4n=function(M,z){var J=_.Sz("il_payload_scraping")==="enable_il_payload_scraping";if(!_.qH("yt.logging.transport.enableScrapingForTest"))if(J)bno=[],_.b9("yt.logging.transport.enableScrapingForTest",!0),_.b9("yt.logging.transport.scrapedPayloadsForTesting",bno),_.b9("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.b9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.b9("yt.logging.transport.scrapeClientEvent",!0);else return;J=_.qH("yt.logging.transport.scrapedPayloadsForTesting");var R=_.qH("yt.logging.transport.payloadToScrape");z&&(z=_.qH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z.payload)())&&J.push(z);z=_.qH("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var D=0;D<R.length;D++)if(M&&M.payload[R[D]])if(z)J.push(M.payload);else{var N=void 0;J.push(((N=M)==null?void 0:N.payload)[R[D]])}_.b9("yt.logging.transport.scrapedPayloadsForTesting",
J)};
Eno=function(){return _.U("use_request_time_ms_header")||_.U("lr_use_request_time_ms_header")};
U7w=function(M,z){return _.U("transport_use_scheduler")===!1?_.BJ(M,z):_.U("logging_avoid_blocking_during_navigation")||_.U("lr_logging_avoid_blocking_during_navigation")?_.x4(_.no,function(){if(_.rMc().currentState==="none")M();else{var J={};_.rMc().install((J.none={callback:M},J))}},z):_.x4(_.no,M,z)};
FNG=function(M){_.U("transport_use_scheduler")?_.no.cancelJob(M):_.Tw(M)};
$7b=function(M){var z,J,R,D,N,Z,B,O,X,l;return _.k(function(e){return e.nextAddress==1?(R=(z=M)==null?void 0:(J=z.responseContext)==null?void 0:J.globalConfigGroup,D=_.G(R,MFG),Z=(N=R)==null?void 0:N.hotHashData,B=_.G(R,z$w),X=(O=R)==null?void 0:O.coldHashData,(l=_.JF().resolve(_.zw(tL)))?Z?D?e.yield(J_o(l,Z,D),2):e.yield(J_o(l,Z),2):e.jumpTo(2):e.return()):X?B?e.yield(R$3(l,X,B),0):e.yield(R$3(l,X),0):e.jumpTo(0)})};
lv8=function(M,z){z=z===void 0?200:z;return M?z===300?m73:D6G:z===300?gnY:NZe};
Znb=function(M){if(_.U("enable_web_tiered_gel")){M=PEp[M||""];var z,J,R,D=_.JF().resolve(_.zw(tL))==null?void 0:(z=jI())==null?void 0:(J=z.loggingHotConfig)==null?void 0:(R=J.eventLoggingConfig)==null?void 0:R.payloadPolicies;if(D)for(z=0;z<D.length;z++)if(D[z].payloadNumber===M)return D[z]}};
SNG=function(M){M=Object.keys(M);M=_.S(M);for(var z=M.next();!z.done;z=M.next())if(z=z.value,PEp[z])return z};
kL3=function(M){switch(M){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
T4o=function(M){return M==="gelDebuggingEvent"};
HnR=function(M){return(M===void 0?0:M)&&_.U("vss_through_gel_video_stats")?"video_stats":"log_event"};
FS=function(M,z,J,R){R=R===void 0?{}:R;var D={},N=Math.round(R.timestamp||(0,_.zU)());D.eventTimeMs=N<Number.MAX_SAFE_INTEGER?N:0;D[M]=z;M=_.Rf();D.context={lastActivityMs:String(R.timestamp||!isFinite(M)?-1:M)};R.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")&&(M=D.context,z=R.sequenceGroup,z={index:S3c(z),groupKey:z},M.sequence=z,R.endOfSequence&&delete pc[R.sequenceGroup]);_.U("web_tag_automated_log_events")&&(D.context.automatedLogEventSource=R.automatedLogEventSource);(R.sendIsolatedPayload?
B4p:Ivn)({endpoint:"log_event",payload:D,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},J)};
S3c=function(M){pc[M]=M in pc?pc[M]+1:0;return pc[M]};
_.gP=function(M,z,J){J=J===void 0?{}:J;var R=Y4;_.cW("ytLoggingEventsDefaultDisabled",!1)&&Y4===Y4&&(R=null);FS(M,z,R,J)};
_.sB=function(){if(_.U("web_fp_via_jspb")){var M=!0;M=M===void 0?!1:M;var z=Zf8;Zf8=[];if(z){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,M?FS(J.payloadName,J.payload,Y4,J.options):_.gP(J.payloadName,J.payload,J.options)}eUp(void 0,!0);if(!_.U("web_fp_via_jspb_and_json"))return}eUp(void 0,!1)};
k_e=function(M,z){var J;if((J=z)==null?0:J.componentStack)return z;if(M=M.componentStack)z||(z={}),z.componentStack=M;return z};
BZn=function(){_.VU(_.HW("ERRORS")||[],function(M){_.nc.apply(null,M)});
_.yU("ERRORS",[])};
_.hL=function(M){_.nc(M)};
_.yA=function(M){_.nc(M,"WARNING")};
Ofp=function(M){M instanceof Error?_.nc(M):(M=_.E8(M)?JSON.stringify(M):String(M),M=new _.xN(M),M.name="RejectedPromiseError",_.yA(M))};
TZH=function(M,z,J,R,D,N){z=z===void 0?"Unknown file":z;J=J===void 0?0:J;var Z=!1,B=kVn("log_window_onerror_fraction");if(B&&Math.random()<B)Z=!0;else{B=document.getElementsByTagName("script");for(var O=0,X=B.length;O<X;O++)if(B[O].src.indexOf("/debug-")>0){Z=!0;break}}Z&&(Z=!1,D?Z=!0:(typeof M==="string"?B=M:ErrorEvent&&M instanceof ErrorEvent?(Z=!0,B=M.message,z=M.filename,J=M.lineno,R=M.colno):(B="Unknown error",z="Unknown file",J=0),D=new _.xN(B),D.name="UnhandledWindowError",D.message=B,D.fileName=
z,D.lineNumber=J,isNaN(R)?delete D.columnNumber:D.columnNumber=R),_.U("wiz_enable_component_stack_propagation_killswitch")||(N=k_e(D,N)),N&&_.Hb(D,N),Z?_.nc(D):_.yA(D))};
_.nc=function(M,z,J,R,D,N,Z,B){N=N===void 0?{}:N;N.name=J||_.HW("INNERTUBE_CONTEXT_CLIENT_NAME",1);N.version=R||_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION");J=N;z=z===void 0?"ERROR":z;Z=Z===void 0?!1:Z;z=z===void 0?"ERROR":z;Z=Z===void 0?!1:Z;if(M&&(M.hasOwnProperty("level")&&M.level&&(z=M.level),_.U("console_log_js_exceptions")&&(R=[],R.push("Name: "+M.name),R.push("Message: "+M.message),M.hasOwnProperty("params")&&R.push("Error Params: "+JSON.stringify(M.params)),M.hasOwnProperty("args")&&R.push("Error args: "+
JSON.stringify(M.args)),R.push("File name: "+M.fileName),R.push("Stacktrace: "+M.stack),R=R.join("\n"),window.console.log(R,M)),!(IU8>=5))){R=[];D=_.S(oCo);for(N=D.next();!N.done;N=D.next()){N=N.value;try{N()&&R.push(N())}catch(y){}}R=[].concat(_.Yj(Xn3),_.Yj(R));var O=lUR(M);D=O.message||"Unknown Error";N=O.name||"UnknownError";var X=O.stack||M.stacktrace||"Not available";if(X.startsWith(N+": "+D)){var l=X.split("\n");l.shift();X=l.join("\n")}l=O.lineNumber||"Not available";O=O.fileName||"Not available";
var e=0;if(M.hasOwnProperty("args")&&M.args&&M.args.length)for(var Q=0;Q<M.args.length&&!(e=PdY(M.args[Q],"params."+Q,J,e),e>=500);Q++);else if(M.hasOwnProperty("params")&&M.params){var v=M.params;if(typeof M.params==="object")for(Q in v){if(v[Q]){var x="params."+Q,m=ez(v[Q]);J[x]=m;e+=x.length+m.length;if(e>500)break}}else J.params=ez(v)}if(R.length)for(Q=0;Q<R.length&&!(e=PdY(R[Q],"params.context."+Q,J,e),e>=500);Q++);navigator.vendor&&!J.hasOwnProperty("vendor")&&(J["device.vendor"]=navigator.vendor);
Q={message:D,name:N,lineNumber:l,fileName:O,stack:X,params:J,sampleWeight:1};J=Number(M.columnNumber);isNaN(J)||(Q.lineNumber=Q.lineNumber+":"+J);if(M.level==="IGNORED")M=0;else a:{M=e$G();J=_.S(M.messageWeights);for(R=J.next();!R.done;R=J.next())if(R=R.value,Q.message&&Q.message.match(R.messageRegExp)){M=R.weight;break a}M=_.S(M.callbackWeights);for(J=M.next();!J.done;J=M.next())if(J=J.value,J.callback(Q)){M=J.weight;break a}M=1}Q.sampleWeight=M;M=_.S(Q98);for(J=M.next();!J.done;J=M.next())if(J=
J.value,J.patternsForType[Q.name])for(D=_.S(J.patternsForType[Q.name]),R=D.next();!R.done;R=D.next())if(N=R.value,R=Q.message.match(N.regexp)){Q.params["params.error.original"]=R[0];D=N.groups;N={};for(l=0;l<D.length;l++)N[D[l]]=R[l+1],Q.params["params.error."+D[l]]=R[l+1];Q.message=J.messageFn(N);break}Q.params||(Q.params={});M=e$G();Q.params["params.errorServiceSignature"]="msg="+M.messageWeights.length+"&cb="+M.callbackWeights.length;Q.params["params.serviceWorker"]="false";_.R3.document&&_.R3.document.querySelectorAll&&
(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Kc(U63,"sample")).constructor!==Kc&&(Q.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!vCw.has(Q.message)){if(Z&&_.U("web_enable_error_204"))G_R(z===void 0?"ERROR":z,Q);else{z=z===void 0?"ERROR":z;z==="ERROR"?(wno.publish("handleError",Q),_.U("record_app_crashed_web")&&x68===0&&Q.sampleWeight===1&&(x68++,Z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.U("report_client_error_with_app_crash_ks")||(Z.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}}),_.gP("appCrashed",Z)),tFG++):z==="WARNING"&&wno.publish("handleWarning",Q);if(_.U("kevlar_gel_error_routing")){Z=z;B=B===void 0?{}:B;b:{M=_.S(j93);for(J=M.next();!J.done;J=M.next())if(yy(J.value.toLowerCase())){M=!0;break b}M=!1}if(M)B=void 0;else{J={stackTrace:Q.stack};Q.fileName&&(J.filename=Q.fileName);M=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];M.length!==
0&&(M.length!==1||isNaN(Number(M[0]))?M.length!==2||isNaN(Number(M[0]))||isNaN(Number(M[1]))||(J.lineNumber=Number(M[0]),J.columnNumber=Number(M[1])):J.lineNumber=Number(M[0]));M={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};Z==="ERROR"?M.level="ERROR_LEVEL_ERROR":Z==="WARNING"&&(M.level="ERROR_LEVEL_WARNNING");J={isObfuscated:!0,browserStackInfo:J};B.pageUrl=window.location.href;B.kvPairs=[];_.HW("FEXP_EXPERIMENTS")&&(B.experimentIds=_.HW("FEXP_EXPERIMENTS"));
R=_.HW("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!kVn("web_disable_gel_stp_ecatcher_killswitch")&&R)for(D=_.S(Object.keys(R)),N=D.next();!N.done;N=D.next())N=N.value,B.kvPairs.push({key:N,value:String(R[N])});if(R=Q.params)for(D=_.S(Object.keys(R)),N=D.next();!N.done;N=D.next())N=N.value,B.kvPairs.push({key:"client."+N,value:String(R[N])});R=_.HW("SERVER_NAME");D=_.HW("SERVER_VERSION");R&&D&&(B.kvPairs.push({key:"server.name",value:R}),B.kvPairs.push({key:"server.version",value:D}));B={errorMetadata:B,
stackTrace:J,logMessage:M}}B&&(_.gP("clientError",B),(Z==="ERROR"||_.U("errors_flush_gel_always_killswitch"))&&_.sB())}_.U("suppress_error_204_logging")||G_R(z,Q)}try{vCw.add(Q.message)}catch(y){}IU8++}}};
G_R=function(M,z){var J=z.params||{};M={urlParams:{a:"logerror",t:"jserror",type:z.name,msg:z.message.substr(0,250),line:z.lineNumber,level:M,"client.name":J.name},postParams:{url:_.HW("PAGE_NAME",window.location.href),file:z.fileName},method:"POST"};J.version&&(M["client.version"]=J.version);if(M.postParams){z.stack&&(M.postParams.stack=z.stack);z=_.S(Object.keys(J));for(var R=z.next();!R.done;R=z.next())R=R.value,M.postParams["client."+R]=J[R];if(J=_.HW("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(z=
_.S(Object.keys(J)),R=z.next();!R.done;R=z.next())R=R.value,M.postParams[R]=J[R];(J=_.HW("LAVA_VERSION"))&&(M.postParams["lava.version"]=J);J=_.HW("SERVER_NAME");z=_.HW("SERVER_VERSION");J&&z&&(M.postParams["server.name"]=J,M.postParams["server.version"]=z)}_.ob(_.HW("ECATCHER_REPORT_HOST","")+"/error_204",M)};
_.pnG=function(M,z){z=z===void 0?"ERROR":z;var J=J===void 0?{}:J;var R=_.qH("ytbin.polymer.shared.lib.tampering.info");R&&(R=R())&&(J["params.tamperingInfo"]=R.sort().join(","));_.nc(M,z,void 0,void 0,!0,J)};
_.Hb=function(M){var z=_.H4.apply(1,arguments);M.args||(M.args=[]);Array.isArray(M.args)&&M.args.push.apply(M.args,_.Yj(z))};
FnY=function(M){M.level="IGNORED"};
Y33=function(M,z){Xn3.push(M);z();Xn3.pop()};
uW=function(M,z){for(var J in z)z.hasOwnProperty(J)&&(M=_.$4(M,J,z[J]));return M};
_.m68=function(M,z,J){J=J===void 0?!1:J;if(!M)return null;if(M.adInfoDialogEndpoint||M.backstageImageUploadEndpoint||M.confirmDialogEndpoint||M.clientActionEndpoint||M.createBackstagePostDialogEndpoint||M.createCommentReplyDialogEndpoint||M.flowEndpoint||M.guideBuilderEndpoint||M.liveChatDialogEndpoint||M.modalEndpoint||M.openPopupAction||M.shareEndpoint||M.shareEntityEndpoint||M.showLiveChatItemEndpoint||M.subscriptionManagerEndpoint||M.unlimitedCreateFamilyEndpoint||M.unlimitedFamilyFlowEndpoint||
M.updateCommentDialogEndpoint||M.updateCommentReplyDialogEndpoint||M.userFeedbackEndpoint||M.videoEditorEndpoint||M.ypcCancelSurveyEndpoint)return z=_.NC("polymer_report_client_url_requested_rate"),!J&&Math.random()<z&&_.yA(new _.xN("urlForEndpoint used on client endpoint",M)),null;var R=_.NC("polymer_report_missing_web_navigation_endpoint_rate");if(M.liveChatEndpoint||M.liveChatReplayEndpoint)R=0;if(!M.commandMetadata&&!M.clickTrackingParams&&Math.random()<R){var D={},N;for(N in M)D[N]="1";_.yA(new _.xN("Missing navigation data",
D))}D="";if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url)D=M.commandMetadata.webCommandMetadata.url;else if(M.searchEndpoint)Math.random()<R&&_.yA(new _.xN("Should not manually handle search",M)),D="/results?search_query="+encodeURIComponent(M.searchEndpoint.query).replace(/%20/g,"+"),M.searchEndpoint.params&&(D+="&sp="+M.searchEndpoint.params);else if(M.watchEndpoint)Math.random()<R&&_.yA(new _.xN("Should not manually handle watch",M)),D="/watch?v="+
M.watchEndpoint.videoId,M.watchEndpoint.playlistId&&(D+="&list="+M.watchEndpoint.playlistId),M.watchEndpoint.index&&(D+="&index="+M.watchEndpoint.index),M.watchEndpoint.startTimeSeconds&&(D+="&t="+M.watchEndpoint.startTimeSeconds);else if(M.browseEndpoint)R=M.browseEndpoint.browseId,(N=M.browseEndpoint.canonicalBaseUrl)?D=N:R&&(D=R.substr(0,2),D=D==="FE"?R==="FEwhat_to_watch"?"/":R==="FEmy_videos"?"/my_videos":"/feed/"+R.substr(2):D==="VL"?"/playlist?list="+R.substr(2):"/channel/"+R),D&&M.browseEndpoint.query&&
(D=uW(D+"/search",{query:M.browseEndpoint.query})),D&&M.browseEndpoint.params&&(D=uW(D,{params:M.browseEndpoint.params}));else{if(M.urlEndpoint)return M.urlEndpoint.url;M.signInEndpoint?(D="https://accounts.google.com/ServiceLogin",R={},_.gu.extend(R,z||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),z=R):M.uploadEndpoint?D="//www.youtube.com/upload":M.liveChatEndpoint?(D=M.liveChatEndpoint,R=_.gu.clone(D),_.E8(D.continuation)&&(N=Object.keys(D.continuation)[0],
R.continuation=D.continuation[N].continuation),D=uW("/youtubei/v1/live_chat/get_live_chat",R)):M.liveChatReplayEndpoint?(D=_.gu.clone(M.liveChatReplayEndpoint),D.currentPlayerState&&(_.gu.extend(D,D.currentPlayerState),delete D.currentPlayerState),D=uW("/youtubei/v1/live_chat/get_live_chat_replay",D)):M.liveChatItemContextMenuEndpoint?D=uW("/youtubei/v1/live_chat/get_item_context_menu",M.liveChatItemContextMenuEndpoint):M.liveChatPurchaseMessageEndpoint?D=uW("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
M.liveChatPurchaseMessageEndpoint):M.openSuperStickerBuyFlowCommand?D=uW("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",M.openSuperStickerBuyFlowCommand):M.videoEditEndpoint?D=uW("/edit",{video_id:M.videoEditEndpoint.videoId}):M.liveDashboardEndpoint?D=M.liveDashboardEndpoint.videoId?uW("/live_dashboard",{v:M.liveDashboardEndpoint.videoId}):"/live_dashboard":M.signalNavigationEndpoint&&M.signalNavigationEndpoint.signal&&M.signalNavigationEndpoint.signal==="WEBCAM"?D="/webcam":M.getPdgBuyFlowCommand&&
(D=uW(M.getPdgBuyFlowCommand.buyflowApiPath,{params:M.getPdgBuyFlowCommand.params}))}return D||J?uW(D,z||{}):(_.yA(new _.xN("Error: Can't construct url for endpoint","keys:"+Object.keys(M).sort().join(","),M)),null)};
gCe=function(M){if(M){if(M.browseEndpoint)return!!M.browseEndpoint.nofollow;if(M.watchEndpoint)return!!M.watchEndpoint.nofollow;if(M.urlEndpoint)return!!M.urlEndpoint.nofollow}return!1};
_.nC8=function(M,z){var J=z+M,R=s93.get(J);if(R)return R;M=z+"-"+M.replace(/([A-Z])/g,"-$1").toLowerCase();s93.set(J,M);return M};
h$w=function(M){var z=_.nh(M,"action")||_.nh(M,"command")||_.nh(M,"endpoint");if(!z)return null;z=_.nC8(z,"yt");_.G(M,_.qp)&&(z+="-"+_.G(M,_.qp).signal.toLowerCase().replace(/_/g,"-"));return z};
d6R=function(M){try{var z=Object.keys(M)}catch(D){return[]}for(var J=0;J<z.length;J++){var R=z[J];if(y_R.test(R)||HfG.test(R))return c_Y(M[R])}return[]};
c_Y=function(M){return M.command?[M.command]:M.onExecutionAction?[M.onExecutionAction]:M.onResponseReceivedCommand?[M.onResponseReceivedCommand]:M.updateFlowCommand?[M.updateFlowCommand]:M.clientActions?M.clientActions:M.action?[M.action]:M.actions||M.commands||M.onResponseReceivedActions||M.onResponseReceivedCommands||M.onResponseReceivedEndpoints||[]};
$6n=function(M,z){z=z===void 0?!1:z;var J=_.JF().resolve(_.zw(Wb));J||(J=new Knp,_.JF().addProvider({provide:Wb,useValue:J}));return J&&M&&!_.gu.isEmpty(M)?J.getUrl(M,z):""};
uap=function(M,z,J){J=J===void 0?"":J;if(z){M.data=z;var R=$6n(z);R?(_.K3(M,R),gCe(z)||!r3(R)?M.rel="nofollow":M.removeAttribute("rel"),_.G(z,_.af)&&_.G(z,_.af).target==="TARGET_NEW_WINDOW"?M.target="_blank":J?M.target=J:M.removeAttribute("target")):(M.removeAttribute("href"),M.removeAttribute("rel"),M.removeAttribute("target"))}};
_.Lc=function(M,z){var J=LW;if(wf())q3Y(M,function(){var N=_.H4.apply(0,arguments);gf(J,function(){z.apply(null,_.Yj(N))})});
else{var R=_.VA.getInstance(),D=sR(z);rub(function(){D.value=z});
_.mF(function(){var N={},Z=_.EB(R,(N[M]=function(){var B=_.H4.apply(0,arguments);gf(J,function(){D.value.apply(D,_.Yj(B))})},N));
return function(){var B={};_.fc(R,(B[M]="",B),Z)}})}};
_.AL=function(M,z){return Wn8(M,!1,z)};
_.iW=function(M,z){return Wn8(M,!0,z)};
Wn8=function(M,z,J){return wf()?aU0(M,z,J):VFw(M,z,J)};
VFw=function(M,z,J){return g3(function(){return aU0(M,z,J)})};
aU0=function(M,z,J){var R=Auw(function(D){R.value=D;var N=function(){var Z=JP(null);try{return J==null?void 0:J(D)}finally{JP(Z)}}();
return function(){N==null||N()}});
R.__expectedTagName=M;R.__optional=z;R.isIdom=!wf();return R};
ECG=function(M){var z=LW,J=vl;return{getFn:function(){return function(R){z.isDisposed||tP(function(){return ZZ(function(){return M(R)})},J)!==!0&&R.stopPropagation()}}}};
Cc=function(M){if(typeof M.children==="function")return M.children(),null;M=_.S(M.children);for(var z=M.next();!z.done;z=M.next())z=z.value,z();return null};
fU8=function(M){var z;return((z=M.prototype)==null?void 0:z.render)===void 0};
Lnb=function(M){return M.items.map(M.children)};
if3=function(M,z,J){J=J===void 0?!1:J;tP(function(){return A_R(M,z,J)})};
A_R=function(M,z,J){var R=null;eP++;J=(J===void 0?0:J)?CE0:bfG;try{R=J(M,function(){bW(z)}),UZ(!1)}catch(D){throw UZ(!0),D;
}return R===null?M:R};
bW=function(M){if(M!==void 0&&M!==null)if(M instanceof oX)for(var z=df;u0()!=null&&nlc in u0()&&z.contains(u0());)a4();else if(Array.isArray(M))for(z=_.S(M),M=z.next();!M.done;M=z.next())bW(M.value);else if(M instanceof GA||M instanceof zT||"function"==typeof _.Cq&&M instanceof _.Cq)y1n(M.toString());else if(_.Jg(M)){if(u0()!==M){var J,R;z=(R=(J=vl)==null?void 0:J.name)!=null?R:"unknown";throw Error("bc`"+M.tagName+"`"+z);}a4()}else if(M!=null&&M.contentKind===Sf||M instanceof $q||i4p(M))for(z=b4p(M),
z=Array.from(z.childNodes),z=_.S(z),M=z.next();!M.done;M=z.next())df.appendChild(M.value),a4();else if(Fq(M)&&(M=M.toString()),J=typeof M,J==="boolean"||J==="number"||J==="string")y1n(M);else if(typeof M==="function"){z=df;var D=u0();D&&(D._isSignalTextNode||D._isSafeOrSanitizedHtmlNode)||wse(z,D,M);a4()}else if(M.type===Lnb)bW(M.type(Object.assign({},M.props,{children:M.children[0]})));else{ef.beforeVisit(M);if(typeof M.type==="string"){a:{M.__open||jOe(M.type,M.props.idomKey);D=df;for(z in M.props)if(M.props[z]!==
r_H){var N=M.props[z];J=fq;J.push(z);J.push(N)}z=rS.attributes;z=z===void 0?rP:z;N=df;J=cl(N);hJp(N,J,z);Gi0(D,M.props,!0);if((M.props.skip||M.props.skipchildren)&&df.hasChildNodes())F6n();else{if(M.type==="style"&&PSo(M.children)===null){F6n();z=void 0;break a}bW(M.children)}pNp();M.__open&&(M.__open=!1);W6p(D,M.props);z=D}return z}if(M.type===_.MH)bW(M.children);else if(!M4w(M)){z=M;try{zYe(z)}catch(Z){M=Z,(N=rS.handleError)==null||N.call.apply(N,[rS].concat(_.Yj(sZ(M,(D=z.type)==null?void 0:D.TAG_NAME))))}z.__open&&
(pNp(),z.__open=!1)}}};
Jk3=function(M,z){var J;fU8(M)?J=new UR(z,M):J=new M(z);J.JSC$10183___type=M;J.__updateContext={nextState:J.state,isForced:!1};return J};
zYe=function(M){var z=M.type,J=z.TAG_NAME;if(z===Cc)M.props.children=M.children,z(M.props);else{M.children.length>0&&(M.props.children=M.children);var R;(R=M.props).idomKey||(R.idomKey=z);if(J){var D=jOe(J,M.props.idomKey);M.__open=!0;var N=D.__instance}N||(N=Jk3(z,M.props),N.props=null,D&&(D.__instance=N,N.el=D));var Z;J=((Z=N.__updateContext)!=null?Z:{nextState:N.state,isForced:!1}).nextState;N.__updateContext=void 0;z.getDerivedStateFromProps&&(J=z.getDerivedStateFromProps(M.props,J));N.props=
M.props;N.state=J;Z=function(){var B=N;ef.beforeRender(B);var O=B.render(B.props);ef.afterRender(B,O);O?(B.props.idomKey&&(O.props.idomKey=B.props.idomKey),B=O):B=void 0;if(O=B)if(O.__open=M.__open,B=bW(O),M.__open=O.__open,!z.TAG_NAME)if(B)z.TAG_NAME=B.tagName.toLowerCase(),B.__instance=N,N.el=B;else{var X;if((X=N.hooks)==null?0:X.length){var l;(l=rS.handleError)==null||l.call.apply(l,[rS].concat(_.Yj(sZ(Error("id")))))}}N.didPatch();ef.didPatch(N)};
(J=N.functionComponent)?VIH(J,Z,N.props.debugInstance):Z()}};
M4w=function(M){var z=M.type;if(!fU8(z)||z===Cc||z.componentType===Gk)return!1;M.props.children=M.children.length>1?M.children:M.children[0];var J,R=(J=M.props.idomKey)!=null?J:M.type,D;if(u0()&&((D=u0()[BW])==null?void 0:D.key)===R){var N=u0(),Z=N[BW];if(!Z)throw Error("ac`"+N.tagName);var B;(B=Z.updateSignalsFromIdomProps)==null||B.call(Z,M.props);RY8(Z);return!0}if(D98.has(z.name))throw B=z.name,z=(Z=(N=vl)==null?void 0:N.name)!=null?Z:"unknown",Error("$b`"+B+"`"+z);psR(M.type,M.props,M.children);
M.props.renderedFromIdom=!0;(B=VIH(M.type,function(){return lQn(M.type,M.props)},M.props.debugInstance))&&NFp(B);
return!0};
Pfo=function(M){for(var z=0;z<IX(M).length;z++)a4()};
RY8=function(M){var z=Sm0();if(z)Pfo(z);else for(var J=0;J<M.numNodes;J++)(z=Sm0())?Pfo(z):a4()};
Sm0=function(){var M;return(M=u0()[BW])==null?void 0:M.sourceDynamicRange};
NFp=function(M){M=E2p(M);M=Array.isArray(M)?M:[M];M=_.S(M);for(var z=M.next();!z.done;z=M.next())df.insertBefore(z.value,u0()),a4()};
Zrw=function(M){var z=QTn(),J=g3(function(){return{value:typeof M==="function"?M():M}});
return[J.value,function(R){if(QU!==null){var D;(D=rS.handleError)==null||D.call.apply(D,[rS].concat(_.Yj(sZ(Error("jd")))))}J.value=typeof R==="function"?R(J.value):R;z.__updateContext={nextState:z.state,isForced:!0};R=_.AK(z.effectContext);D=z4(!1);try{if(z.el){var N,Z={},B=(Z.props=z.props,Z.type=z.JSC$10183___type,Z.children=(N=z.props.children)!=null?N:[],Z[rf]=!0,Z);try{if3(z.el,B,!0)}catch(l){var O,X;(X=rS.handleError)==null||X.call.apply(X,[rS].concat(_.Yj(sZ(l,(O=z.JSC$10183___type)==null?
void 0:O.TAG_NAME))))}}}finally{z4(D),_.AK(R)}}]};
MS=function(M,z){var J=LW,R=function(D){gf(J,function(){z(D)})};
window.addEventListener(M,R,void 0);_.pq(function(){window.removeEventListener(M,R,void 0)})};
_.J1=function(M){var z=LW;return function(J){var R,D=(R=M.observer)!=null?R:_.JF().resolve(zS);R=kyp(J);var N=[];M.showOption&&N.push(D.observe(J,function(){gf(z,function(){M.visibilityCallback(!0,J)})},M.showOption));
M.hideOption&&N.push(D.observe(J,function(){gf(z,function(){M.visibilityCallback(!1,J)})},M.hideOption));
M.prescanOption&&M.prescanCallback&&N.push(D.observe(J,function(){gf(z,function(){M.prescanCallback()})},M.prescanOption));
var Z;R.visibilityMonitorKeys=((Z=R.visibilityMonitorKeys)!=null?Z:[]).concat(N)}};
kyp=function(M){var z;return(z=M.polymerController)!=null?z:M};
_.RO=function(M){M.componentType=Gk};
IKo=function(M,z){var J=BFp;return _.T(_.MH,null,eXY(rS.enableLazyTsx,function(){return _.T(OrG,{id:J,value:M,children:z})},function(){var R=TFR(J,M);
bm(R);R=_.AK(R);try{return z()}finally{_.AK(R)}}))};
OrG=function(M){var z=M.children;M=TFR(M.id,M.value);bm(M);M=_.AK(M);try{return _.T(_.MH,null,XT(z()))}finally{_.AK(M)}};
TFR=function(M,z){return Object.assign(Object.create(o8G),{id:M,contextValue:z})};
XXn=function(M){var z,J=LW;_.mt(function(){var R=_.AK(J),D=z4(!z);try{if(z)if3(z,M.children(),!0);else if(z=XT(M.children()),!(z instanceof Element))throw Error("kd");}finally{z4(D),_.AK(R)}});
return z};
_.lKR=function(M,z){var J;z=F8(function(){var R=z4(!0);eP++;try{J=IX(M()),UZ(!1)}catch(D){throw UZ(!0),D;}finally{z4(R)}},z===void 0?!1:z);
return[J,z]};
QZn=function(M){M=M.buf.charCodeAt(M.pos++);return eYb[M]};
D3=function(M){var z=0,J=0;do{var R=QZn(M);z|=(R&31)<<J;J+=5}while(R&32);return z<0?z+4294967296:z};
Gyp=function(M,z,J){U9w(M,z);M[z][v8Y].unshift(J)};
U9w=function(M,z){if(!M[z]||!M[z][v8Y]){var J=M[z],R=J?[J]:[];M[z]=function(){for(var D=_.S(R),N=D.next();!N.done;N=D.next())N.value.apply(this,arguments)};
M[z][v8Y]=R}};
wX0=function(M){if(!M)return[];var z=[];M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,Array.isArray(J)?z.push.apply(z,_.Yj(wX0(J))):z.push(J);return z};
_.PN=function(M,z){if(M&&x9H.test(M)||M==="//")return M;if(t40===void 0){t40=!1;try{var J=new URL("b","http://a");J.pathname="c%20d";t40=J.href==="http://a/c%20d"}catch(R){}}z||(z=document.baseURI||window.location.href);if(t40)try{return(new URL(M,z)).href}catch(R){return M}NS||(NS=document.implementation.createHTMLDocument("temp"),NS.base=NS.createElement("base"),NS.head.appendChild(NS.base),NS.anchor=NS.createElement("a"),NS.body.appendChild(NS.anchor));NS.base.href=z;NS.anchor.href=M;return NS.anchor.href||
M};
pXR=function(M,z){return M.replace(jZH,function(J,R,D,N){return R+"'"+_.PN(D.replace(/["']/g,""),z)+"'"+N})};
F38=function(M){return M.substring(0,M.lastIndexOf("/")+1)};
g8p=function(){Ym3=!1;for(var M=S_.length,z=0;z<M;z++){var J=S_[z];if(J)try{J()}catch(R){setTimeout(function(){throw R;})}}S_.splice(0,M);
m9G+=M};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(M){console.log("["+M.is+"]: registered")};
n8o=function(M){sZG.push(M)};
Z3=function(M){return hYY[M]||(hYY[M]=M.indexOf("-")<0?M:M.replace(ykR,function(z){return z[1].toUpperCase()}))};
k2=function(M){return hYY[M]||(hYY[M]=M.replace(HrH,"-$1").toLowerCase())};
ckH=function(M,z){var J=z.parentInfo&&ckH(M,z.parentInfo);if(J)for(M=J.firstChild,J=0;M;M=M.nextSibling){if(z.parentIndex===J++)return M}else return M};
d9p=function(M,z){M=M._methodHost||M;return function(J){if(M[z])M[z](J,J.detail);else console.warn("listener method `"+z+"` not defined")}};
BN=function(M){return M.indexOf(".")>=0};
OF=function(M){var z=M.indexOf(".");return z===-1?M:M.slice(0,z)};
K3p=function(M,z){return M.indexOf(z+".")===0};
TS=function(M,z){return z.indexOf(M+".")===0};
IO=function(M,z,J){return z+J.slice(M.length)};
$9H=function(M,z){return M===z||K3p(M,z)||TS(M,z)};
oO=function(M){if(Array.isArray(M)){for(var z=[],J=0;J<M.length;J++)for(var R=M[J].toString().split("."),D=0;D<R.length;D++)z.push(R[D]);return z.join(".")}return M};
uBe=function(M){return Array.isArray(M)?oO(M).split("."):M.toString().split(".")};
XK=function(M,z,J){z=uBe(z);for(var R=0;R<z.length;R++){if(!M)return;M=M[z[R]]}J&&(J.path=z.join("."));return M};
qmH=function(M,z,J){var R=uBe(z),D=R[R.length-1];if(R.length>1){for(z=0;z<R.length-1;z++)if(M=M[R[z]],!M)return;M[D]=J}else M[z]=J;return R.join(".")};
W3Y=function(M,z,J){var R=M[z];if(!R)R=M[z]={};else if(!M.hasOwnProperty(z)&&(R=M[z]=Object.create(M[z]),J))for(var D in R)for(M=R[D],z=R[D]=Array(M.length),J=0;J<M.length;J++)z[J]=M[J];return R};
e_=function(M,z,J,R,D,N){if(z){var Z=!1,B=l4++,O;for(O in J){var X=D?OF(O):O;if(X=z[X])for(var l=0,e=X.length,Q=void 0;l<e&&(Q=X[l]);l++)Q.info&&Q.info.lastRun===B||D&&!aKp(O,Q.trigger)||(Q.info&&(Q.info.lastRun=B),Q.fn(M,O,J,R,Q.info,D,N),Z=!0)}return Z}return!1};
aKp=function(M,z){if(z){var J=z.name;return J==M||!(!z.structured||!K3p(J,M))||!(!z.wildcard||!TS(J,M))}return!0};
V4b=function(M,z,J,R,D){z=typeof D.method==="string"?M[D.method]:D.method;J=D.property;z?z.call(M,M.__data[J],R[J]):D.dynamicFn||console.warn("observer method `"+D.method+"` not defined")};
E88=function(M,z,J,R){J={value:J,queueProperty:!0};R&&(J.path=R);(0,_.Q3)(M).dispatchEvent(new CustomEvent(z,{detail:J}))};
fKb=function(M,z,J,R,D,N){N=(R=(N?OF(z):z)!=z?z:null)?XK(M,R):M.__data[z];R&&N===void 0&&(N=J[z]);E88(M,D.eventName,N,R)};
L3G=function(M,z,J,R,D){J=M.__data[z];vN&&(J=vN(J,D.attrName,"attribute",M));M._propertyToAttribute(z,D.attrName,J)};
irp=function(M){var z=M.constructor.__orderedComputedDeps;if(!z){z=new Map;for(var J=M.__computeEffects,R=Ak0(M),D=R.counts,N=R.ready,Z=R.total;R=N.shift();)z.set(R,z.size),(R=J[R])&&R.forEach(function(B){B=B.info.methodInfo;--Z;--D[B]===0&&N.push(B)});
Z!==0&&console.warn("Computed graph for "+M.localName+" incomplete; circular?");M.constructor.__orderedComputedDeps=z}return z};
Ak0=function(M){var z=M.__computeInfo,J={};M=M.__computeEffects;var R=[],D=0,N;for(N in z){var Z=z[N];D+=J[N]=Z.args.filter(function(O){return!O.literal}).length+(Z.dynamicFn?1:0)}for(var B in M)z[B]||R.push(B);
return{counts:J,ready:R,total:D}};
br0=function(M,z,J,R,D){z=Cfc(M,z,J,R,D);if(z===GS)return!1;D=D.methodInfo;if(M.__dataHasAccessor&&M.__dataHasAccessor[D])return M._setPendingProperty(D,z,!0);M[D]=z;return!1};
zc0=function(M,z,J,R,D,N,Z){J.bindings=J.bindings||[];R={kind:R,target:D,parts:N,literal:Z,isCompound:N.length!==1};J.bindings.push(R);R.target&&R.kind!="attribute"&&R.kind!="text"&&!R.isCompound&&R.parts[0].mode==="{"&&(J=R.parts[0],N=J.negate,R.listenerEvent=J.event||k2(D)+"-changed",R.listenerNegate=N);D=z.nodeInfoList.length;for(J=0;J<R.parts.length;J++){var B=R.parts[J];B.compoundIndex=J;N=M;Z=z;var O=R,X=B,l=D;if(!X.literal)if(O.kind==="attribute"&&O.target[0]==="-")console.warn("Cannot set attribute "+
O.target+' because "-" is not a valid attribute starting character');else for(B=X.dependencies,O={index:l,binding:O,part:X,evaluator:N},X=0;X<B.length;X++)l=B[X],typeof l=="string"&&(l=rkH(l),l.wildcard=!0),N._addTemplatePropertyEffect(Z,l.rootProperty,{fn:M3G,info:O,trigger:l})}};
M3G=function(M,z,J,R,D,N,Z){Z=Z[D.index];var B=D.binding,O=D.part;N&&O.source&&z.length>O.source.length&&B.kind=="property"&&!B.isCompound&&Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[B.target]?(J=J[z],z=IO(O.source,B.target,z),Z._setPendingPropertyOrPath(z,J,!1,!0)&&M._enqueueClient(Z)):(z=D.evaluator._evaluateBinding(M,O,z,J,R,N),z!==GS&&(B.isCompound&&(J=Z.__dataCompoundStorage[B.target],J[O.compoundIndex]=z,z=J.join("")),B.kind==="attribute"||B.target!=="textContent"&&
(B.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(z=z==void 0?"":z),O=z,vN&&(O=vN(O,B.target,B.kind,Z)),B.kind=="attribute"?M._valueToNodeAttribute(Z,O,B.target):(B=B.target,Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[B]?Z.__readOnly&&Z.__readOnly[B]||Z._setPendingProperty(B,O)&&M._enqueueClient(Z):M._setUnmanagedPropertyToNode(Z,B,O))))};
Jx8=function(M,z,J){if(J.listenerEvent){var R=J.parts[0];M.addEventListener(J.listenerEvent,function(D){var N=J.target,Z=R.source,B=R.negate,O=D.detail,X=O&&O.path;X?(Z=IO(N,Z,X),D=O&&O.value):D=D.currentTarget[N];z.__readOnly&&z.__readOnly[Z]||!z._setPendingPropertyOrPath(Z,B?!D:D,!0,!!X)||O&&O.queueProperty||z._invalidateProperties()})}};
Rce=function(M,z,J,R,D,N){N=z.static||N&&(typeof N!=="object"||N[z.methodName]);D={methodName:z.methodName,args:z.args,methodInfo:D,dynamicFn:N};for(var Z=0,B=void 0;Z<z.args.length&&(B=z.args[Z]);Z++)B.literal||M._addPropertyEffect(B.rootProperty,J,{fn:R,info:D,trigger:B});N&&M._addPropertyEffect(z.methodName,J,{fn:R,info:D});return D};
Cfc=function(M,z,J,R,D){R=M._methodHost||M;var N=R[D.methodName];if(N)return M=M._marshalArgs(D.args,z,J),M===GS?GS:N.apply(R,M);D.dynamicFn||console.warn("method `"+D.methodName+"` not defined")};
D5p=function(M){for(var z="",J=0;J<M.length;J++)z+=M[J].literal||"";return z};
Sjp=function(M){if(M=M.match(/([^\s]+?)\(([\s\S]*)\)/)){var z={methodName:M[1],static:!0,args:Nyc};return M[2].trim()?P2p(M[2].replace(/\\,/g,"&comma;").split(","),z):z}return null};
P2p=function(M,z){z.args=M.map(function(J){J=rkH(J);J.literal||(z.static=!1);return J},this);
return z};
rkH=function(M){M=M.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var z={name:M,value:"",literal:!1},J=M[0];J==="-"&&(J=M[1]);J>="0"&&J<="9"&&(J="#");switch(J){case "'":case '"':z.value=M.slice(1,-1);z.literal=!0;break;case "#":z.value=Number(M),z.literal=!0}z.literal||(z.rootProperty=OF(M),z.structured=BN(M),z.structured&&(z.wildcard=M.slice(-2)==".*",z.wildcard&&(z.name=M.slice(0,-2))));return z};
ZaR=function(M,z,J){M=XK(M,J);M===void 0&&(M=z[J]);return M};
k0H=function(M,z,J,R){R={indexSplices:R};wX&&!M._overrideLegacyUndefined&&(z.splices=R);M.notifyPath(J+".splices",R);M.notifyPath(J+".length",z.length);wX&&!M._overrideLegacyUndefined&&(R.indexSplices=[])};
x2=function(M,z,J,R,D,N){k0H(M,z,J,[{index:R,addedCount:D,removed:N,object:z,type:"splice"}])};
Bye=function(M){M=pXR((M.body?M.body:M).textContent,M.baseURI);var z=document.createElement("style");z.textContent=M;return z};
Ty8=function(M){M=M.trim().split(/\s+/);for(var z=[],J=0;J<M.length;J++)z.push.apply(z,_.Yj(Oap(M[J])));return z};
Oap=function(M){var z=t1.import(M);if(!z)return console.warn("Could not find style data in module named",M),[];if(z._styles===void 0){M=[];M.push.apply(M,_.Yj(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z)));var J=z.querySelector("template");J&&M.push.apply(M,_.Yj(Iz8(J,z.assetpath)));z._styles=M}return z._styles};
Iz8=function(M,z){if(!M._styles){for(var J=[],R=M.content.querySelectorAll("style"),D=0;D<R.length;D++){var N=R[D],Z=N.getAttribute("include");Z&&J.push.apply(J,_.Yj(Ty8(Z).filter(function(B,O,X){return X.indexOf(B)===O})));
z&&(N.textContent=pXR(N.textContent,z));J.push(N)}M._styles=J}return M._styles};
oTH=function(M){return(M=t1.import(M))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var z=[];M=M.querySelectorAll("link[rel=import][type~=css]");for(var J=0;J<M.length;J++){var R=M[J];if(R.import){var D=R.import;if((R=R.hasAttribute("shady-unscoped"))&&!D._unscopedStyle){var N=Bye(D);N.setAttribute("shady-unscoped","");D._unscopedStyle=N}else D._style||(D._style=Bye(D));z.push(R?D._unscopedStyle:D._style)}}return z};
lz8=function(M){M=M.trim().split(/\s+/);for(var z="",J=0;J<M.length;J++)z+=Xfw(M[J]);return z};
Xfw=function(M){var z=t1.import(M);if(z&&z._cssText===void 0){var J=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z),R=z.querySelector("template");R&&(J+=ecH(R,z.assetpath));z._cssText=J||null}z||console.warn("Could not find style data in module named",M);return z&&z._cssText||""};
ecH=function(M,z){var J="";M=Iz8(M,z);for(z=0;z<M.length;z++){var R=M[z];R.parentNode&&R.parentNode.removeChild(R);J+=R.textContent}return J};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var z="";M=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M);for(var J=0;J<M.length;J++)z+=M[J].textContent;return z};
j_=function(M,z){return{index:M,removed:[],addedCount:z}};
U5Y=function(M,z,J,R){var D=0,N=0,Z=0,B=0,O=Math.min(z-D,R-N);if(D==0&&N==0)a:{for(Z=0;Z<O;Z++)if(M[Z]!==J[Z])break a;Z=O}if(z==M.length&&R==J.length){B=M.length;for(var X=J.length,l=0;l<O-Z&&Qh8(M[--B],J[--X]);)l++;B=l}D+=Z;N+=Z;z-=B;R-=B;if(z-D==0&&R-N==0)return[];if(D==z){for(z=j_(D,0);N<R;)z.removed.push(J[N++]);return[z]}if(N==R)return[j_(D,z-D)];O=D;Z=N;R=R-Z+1;B=z-O+1;z=Array(R);for(X=0;X<R;X++)z[X]=Array(B),z[X][0]=X;for(X=0;X<B;X++)z[0][X]=X;for(X=1;X<R;X++)for(l=1;l<B;l++)if(M[O+l-1]===
J[Z+X-1])z[X][l]=z[X-1][l-1];else{var e=z[X-1][l]+1,Q=z[X][l-1]+1;z[X][l]=e<Q?e:Q}O=z.length-1;Z=z[0].length-1;R=z[O][Z];for(M=[];O>0||Z>0;)O==0?(M.push(2),Z--):Z==0?(M.push(3),O--):(B=z[O-1][Z-1],X=z[O-1][Z],l=z[O][Z-1],e=X<l?X<B?X:B:l<B?l:B,e==B?(B==R?M.push(0):(M.push(1),R=B),O--,Z--):e==X?(M.push(3),O--,R=X):(M.push(2),Z--,R=l));M.reverse();z=void 0;O=[];for(Z=0;Z<M.length;Z++)switch(M[Z]){case 0:z&&(O.push(z),z=void 0);D++;N++;break;case 1:z||(z=j_(D,0));z.addedCount++;D++;z.removed.push(J[N]);
N++;break;case 2:z||(z=j_(D,0));z.addedCount++;D++;break;case 3:z||(z=j_(D,0)),z.removed.push(J[N]),N++}z&&O.push(z);return O};
vTY=function(M,z){return U5Y(M,M.length,z,z.length)};
Qh8=function(M,z){return M===z};
wfo=function(M){if(M instanceof G0H)return M.value;throw Error("Bd`"+M);};
x5R=function(M,z){for(var J in z)J===null?M.style.removeProperty(J):M.style.setProperty(J,z[J])};
t33=function(M,z){return(M=window.getComputedStyle(M).getPropertyValue(z))?M.trim():""};
YjY=function(M){requestAnimationFrame(function(){jh0?jh0(M):(pf3||(pf3=new Promise(function(z){FzR=z}),document.readyState==="complete"?FzR():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&FzR()})),pf3.then(function(){M&&M()}))})};
shY=function(M){m5H=M&&M.shimcssproperties?!1:gT3||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
cx0=function(M){if(!(nT8.indexOf(M)>-1)&&M!=="touchend"&&hc8&&yxn&&HaG)return{passive:!0}};
uLo=function(M){for(var z=d58?["click"]:nT8,J=0,R;J<z.length;J++)R=z[J],M?(Kz3.length=0,document.addEventListener(R,$5R,!0)):document.removeEventListener(R,$5R,!0)};
p4=function(M){var z=M.type;return nT8.indexOf(z)>-1?z==="mousemove"?(z=M.buttons===void 0?1:M.buttons,M instanceof window.MouseEvent&&!qjn&&(z=Wz8[M.which]||0),!!(z&1)):(M.button===void 0?0:M.button)===0:!1};
az3=function(M){if(M.type==="click"){if(M.detail===0)return!0;var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);if(!z.nodeType||z.nodeType!==Node.ELEMENT_NODE)return!0;z=z.getBoundingClientRect();var J=M.pageX;M=M.pageY;return!(J>=z.left&&J<=z.right&&M>=z.top&&M<=z.bottom)}return!1};
V3H=function(M,z,J){M.movefn=z;M.upfn=J;document.addEventListener("mousemove",z);document.addEventListener("mouseup",J)};
FK=function(M){document.removeEventListener("mousemove",M.movefn);document.removeEventListener("mouseup",M.upfn);M.movefn=null;M.upfn=null};
ETH=function(M,z){for(var J=document.elementFromPoint(M,z),R=J;R&&R.shadowRoot&&!window.ShadyDOM;){var D=R;R=R.shadowRoot.elementFromPoint(M,z);if(D===R)break;R&&(J=R)}return J};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var z=fz3(M);return z.length>0?z[0]:M.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var z=M.type,J=M.currentTarget.__polymerGestures;if(J&&(J=J[z])){if(!M.__polymerGesturesHandled&&(M.__polymerGesturesHandled={},z.slice(0,5)==="touch")){var R=M.changedTouches[0];z==="touchstart"&&M.touches.length===1&&(Lzb=R.identifier);if(Lzb!==R.identifier)return;hc8||(z==="touchstart"||z==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)}R=
M.__polymerGesturesHandled;if(!R.skip){for(var D=0,N;D<Y2.length;D++)N=Y2[D],J[N.name]&&!R[N.name]&&N.flow&&N.flow.start.indexOf(M.type)>-1&&N.reset&&N.reset();for(D=0;D<Y2.length;D++)N=Y2[D],J[N.name]&&!R[N.name]&&(R[N.name]=!0,N[z](M))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var z=M.changedTouches[0],J=M.type;if(J==="touchstart")Axp=z.clientX,iaR=z.clientY,C2c=!1;else if(J==="touchmove"&&!C2c){C2c=!0;J="auto";for(var R=fz3(M),D=0,N;D<R.length;D++)if(N=R[D],N.__polymerGesturesTouchAction){J=N.__polymerGesturesTouchAction;break}R=!1;D=Math.abs(Axp-z.clientX);z=Math.abs(iaR-z.clientY);M.cancelable&&(J==="none"?R=!0:J==="pan-x"?R=z>D:J==="pan-y"&&(R=D>z));R?M.preventDefault():
sF("track")}};
h1=function(M,z,J){return n4[z]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,z,J),!0):!1};
y3=function(M,z,J){return n4[z]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,z,J),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,z,J){var R=n4[z],D=R.deps,N=R.name,Z=M.__polymerGestures;Z||(M.__polymerGestures=Z={});for(var B=0,O,X;B<D.length;B++)O=D[B],d58&&nT8.indexOf(O)>-1&&O!=="click"||((X=Z[O])||(Z[O]=X={_count:0}),X._count===0&&M.addEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,cx0(O)),X[N]=(X[N]||0)+1,X._count=(X._count||0)+1);M.addEventListener(z,J);R.touchAction&&_.HN(M,R.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,z,J){var R=n4[z],D=R.deps;R=R.name;var N=M.__polymerGestures;if(N)for(var Z=0,B,O;Z<D.length;Z++)B=D[Z],(O=N[B])&&O[R]&&(O[R]=(O[R]||1)-1,O._count=(O._count||1)-1,O._count===0&&M.removeEventListener(B,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,cx0(B)));M.removeEventListener(z,J)};
baw=function(M){Y2.push(M);for(var z=0;z<M.emits.length;z++)n4[M.emits[z]]=M};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){for(var z=0,J;z<Y2.length;z++){J=Y2[z];for(var R=0,D;R<J.emits.length;R++)if(D=J.emits[R],D===M)return J}return null};
_.HN=function(M,z){hc8&&M instanceof HTMLElement&&cN.run(function(){M.style.touchAction=z});
M.__polymerGesturesTouchAction=z};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,z,J){z=new Event(z,{bubbles:!0,cancelable:!0,composed:!0});z.detail=J;(0,_.Q3)(M).dispatchEvent(z);z.defaultPrevented&&(M=J.preventer||J.sourceEvent)&&M.preventDefault&&M.preventDefault()};
sF=function(M){M=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M.info&&(M.info.prevent=!0)};
dX=function(M,z,J,R){z&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,M,{x:J.clientX,y:J.clientY,sourceEvent:J,preventer:R,prevent:function(D){return sF(D)}})};
rxo=function(M,z,J){if(M.prevent)return!1;if(M.started)return!0;J=Math.abs(M.y-J);return Math.abs(M.x-z)>=5||J>=5};
Ms3=function(M,z,J){if(z){var R=M.moves[M.moves.length-2],D=M.moves[M.moves.length-1],N=D.x-M.x,Z=D.y-M.y,B=0;if(R){var O=D.x-R.x;B=D.y-R.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"track",{state:M.state,x:J.clientX,y:J.clientY,dx:N,dy:Z,ddx:O,ddy:B,sourceEvent:J,hover:function(){return ETH(J.clientX,J.clientY)}})}};
JvY=function(M,z,J){var R=Math.abs(z.clientX-M.x),D=Math.abs(z.clientY-M.y),N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J||z);!N||zq8[N.localName]&&N.hasAttribute("disabled")||!(isNaN(R)||isNaN(D)||R<=25&&D<=25||az3(z))||M.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,"tap",{x:z.clientX,y:z.clientY,sourceEvent:z,preventer:J})};
Rqo=function(M,z,J,R,D){var N;D&&(N=typeof J==="object"&&J!==null)&&(R=M.__dataTemp[z]);R=R!==J&&(R===R||J===J);N&&R&&(M.__dataTemp[z]=J);return R};
No3=function(){if(K4&&!$2){if(!D8o){D8o=!0;var M=document.createElement("style");M.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(M)}return!0}return!1};
SDw=function(){return PNp};
Zyw=function(M,z){PNp=M;Object.setPrototypeOf(M,z.prototype);new z;PNp=null};
kj0=function(M,z){for(var J=0;J<z.length;J++){var R=z[J];if(!!M!=!!R.__hideTemplateChildren__)if(R.nodeType===Node.TEXT_NODE)M?(R.__polymerTextContent__=R.textContent,R.textContent=""):R.textContent=R.__polymerTextContent__;else if(R.localName==="slot")if(M)R.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Q3)((0,_.Q3)(R).parentNode).replaceChild(R.__polymerReplaced__,R);else{var D=R.__polymerReplaced__;D&&(0,_.Q3)((0,_.Q3)(D).parentNode).replaceChild(R,D)}else R.style&&(M?(R.__polymerDisplay__=
R.style.display,R.style.display="none"):R.style.display=R.__polymerDisplay__);R.__hideTemplateChildren__=M;R._showHideChildren&&R._showHideChildren(M)}};
Bop=function(M){return(M=M.__dataHost)&&M._methodHost||M};
IPo=function(M,z,J){var R=J.mutableData?OyY:u4;qS.mixin&&(R=qS.mixin(R));var D=function(){return R.apply(this,arguments)||this};
_.w(D,R);D.prototype.__templatizeOptions=J;D.prototype._bindTemplate(M);Toe(D,M,z,J);return D};
QJ8=function(M,z,J,R){var D=J.forwardHostProp;if(D&&z.hasHostProps){var N=M.localName=="template",Z=z.templatizeTemplateClass;if(!Z){if(N){var B=J.mutableData?oIG:X9p;Z=function(){return B.apply(this,arguments)||this};
_.w(Z,B);Z=z.templatizeTemplateClass=Z}else{var O=M.constructor;Z=function(){return O.apply(this,arguments)||this};
_.w(Z,O);Z=z.templatizeTemplateClass=Z}var X=z.hostProps,l;for(l in X)Z.prototype._addPropertyEffect("_host_"+l,Z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:lP3(D)}),Z.prototype._createNotifyingProperty("_host_"+l);WN&&R&&eqc(z,J,R)}M.__dataProto&&Object.assign(M.__data,M.__dataProto);if(N)Zyw(M,Z),M.__dataTemp={},M.__dataPending=null,M.__dataOld=null,M._enableProperties();else{Object.setPrototypeOf(M,Z.prototype);z=z.hostProps;for(var e in z)e="_host_"+e,e in M&&(z=M[e],delete M[e],M.__data[e]=
z)}}};
lP3=function(M){return function(z,J,R){M.call(z.__templatizeOwner,J.substring(6),R[J])}};
Toe=function(M,z,J,R){var D=J.hostProps||{},N;for(N in R.instanceProps){delete D[N];var Z=R.notifyInstanceProp;Z&&M.prototype._addPropertyEffect(N,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:U8Y(Z)})}if(R.forwardHostProp&&z.__dataHost)for(var B in D)J.hasHostProps||(J.hasHostProps=!0),M.prototype._addPropertyEffect(B,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vI8()})};
U8Y=function(M){return function(z,J,R){M.call(z.__templatizeOwner,z,J,R[J])}};
vI8=function(){return function(M,z,J){M.__dataHost._setPendingPropertyOrPath("_host_"+z,J[z],!0,!0)}};
qS=function(M,z,J){if(aO&&!Bop(M))throw Error("Hd");J=J||{};if(M.__templatizeOwner)throw Error("Id");M.__templatizeOwner=z;var R=(z?z.constructor:u4)._parseTemplate(M),D=R.templatizeInstanceClass;D||(D=IPo(M,R,J),R.templatizeInstanceClass=D);var N=Bop(M);QJ8(M,R,J,N);J=function(){return D.apply(this,arguments)||this};
_.w(J,D);J.prototype._methodHost=N;J.prototype.__dataHost=M;J.prototype.__templatizeOwner=z;J.prototype.__hostProps=R.hostProps;return J};
eqc=function(M,z,J){J=J.constructor._properties;M=M.propertyEffects;z=z.instanceProps;for(var R in M)if(!(J[R]||z&&z[R]))for(var D=M[R],N=0;N<D.length;N++){var Z=D[N].info.part;if(!Z.signature||!Z.signature.static){console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Gjc=function(M,z){for(var J;z;)if(J=z.__dataHost?z:z.__templatizeInstance)if(J.__dataHost!=M)z=J.__dataHost;else return J;else z=(0,_.Q3)(z).parentNode;return null};
V3=function(M){return M.localName==="slot"};
w9H=function(){for(var M=EF.prototype,z="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),J={},R=0;R<z.length;J={method$jscomp$33:void 0},R++)J.method$jscomp$33=z[R],M[J.method$jscomp$33]=function(D){return function(){return this.node[D.method$jscomp$33].apply(this.node,arguments)}}(J)};
x8H=function(M,z){for(var J={},R=0;R<z.length;J={name$jscomp$422:void 0},R++)J.name$jscomp$422=z[R],Object.defineProperty(M,J.name$jscomp$422,{get:function(D){return function(){return this.node[D.name$jscomp$422]}}(J),
configurable:!0})};
ts0=function(){for(var M=EF.prototype,z=["textContent","innerHTML","className"],J={},R=0;R<z.length;J={name$jscomp$423:void 0},R++)J.name$jscomp$423=z[R],Object.defineProperty(M,J.name$jscomp$423,{get:function(D){return function(){return this.node[D.name$jscomp$423]}}(J),
set:function(D){return function(N){this.node[D.name$jscomp$423]=N}}(J),
configurable:!0})};
jJY=function(){f4=document.documentElement.getAttribute("dir");f4=document.documentElement.getAttribute("dir");for(var M=0;M<L4.length;M++){var z=L4[M];z.__autoDirOptOut||z.setAttribute("dir",f4)}};
m8p=function(){A1=!0;requestAnimationFrame(function(){A1=!1;p9G(FeG);setTimeout(function(){for(var M=0,z=i4.length;M<z;M++)YDY(i4.shift())})})};
p9G=function(M){for(;M.length;)YDY(M.shift())};
YDY=function(M){var z=M[0],J=M[1];M=M[2];try{J.apply(z,M)}catch(R){setTimeout(function(){throw R;})}};
_.gIo=function(M,z,J){A1||m8p();FeG.push([M,z,J])};
_.C4=function(M,z,J){A1||m8p();i4.push([M,z,J])};
hqn=function(M,z){z=z===void 0?!1:z;if(!sJn||!nIp||!sJn.handlesDynamicScoping)return null;var J=nIp.ScopingShim;if(!J)return null;var R=J.scopeForNode(M),D=(0,_.Q3)(M).getRootNode(),N=function(Z){if((0,_.Q3)(Z).getRootNode()===D){var B=Array.from(sJn.nativeMethods.querySelectorAll.call(Z,"*"));B.push(Z);for(Z=0;Z<B.length;Z++){var O=B[Z];if((0,_.Q3)(O).getRootNode()===D){var X=J.currentScopeForNode(O);X!==R&&(X!==""&&J.unscopeNode(O,X),J.scopeNode(O,R))}}}};
N(M);return z?(z=new MutationObserver(function(Z){for(var B=0;B<Z.length;B++)for(var O=Z[B],X=0;X<O.addedNodes.length;X++){var l=O.addedNodes[X];l.nodeType===Node.ELEMENT_NODE&&N(l)}}),z.observe(M,{childList:!0,
subtree:!0}),z):null};
yvw=function(){document.body.removeAttribute("unresolved")};
$8G=function(M){var z=M=M.replace(Hyp,"").replace(cvn,""),J=new d8e;J.start=0;J.end=z.length;for(var R=J,D=0,N=z.length;D<N;D++)if(z[D]==="{"){R.rules||(R.rules=[]);var Z=R,B=Z.rules[Z.rules.length-1]||null;R=new d8e;R.start=D+1;R.parent=Z;R.previous=B;Z.rules.push(R)}else z[D]==="}"&&(R.end=D+1,R=R.parent||J);return Ke3(J,M)};
Ke3=function(M,z){var J=z.substring(M.start,M.end-1);M.parsedCssText=M.cssText=J.trim();M.parent&&(J=z.substring(M.previous?M.previous.end:M.parent.start,M.start-1),J=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(J),J=J.replace(uZ8," "),J=J.substring(J.lastIndexOf(";")+1),J=M.parsedSelector=M.selector=J.trim(),M.atRule=J.indexOf("@")===0,M.atRule?J.indexOf("@media")===0?M.type=4:J.match(qDw)&&(M.type=7,M.keyframesName=M.selector.split(uZ8).pop()):J.indexOf("--")===
0?M.type=1E3:M.type=1);if(J=M.rules)for(var R=0,D=J.length,N=void 0;R<D&&(N=J[R]);R++)Ke3(N,z);return M};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){return M.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var z=arguments[1],J=6-z.length;J--;)z="0"+z;return"\\"+z})};
Wec=function(M,z,J){J=J===void 0?"":J;var R="";if(M.cssText||M.rules){var D=M.rules;if(D&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(D))for(var N=0,Z=D.length,B=void 0;N<Z&&(B=D[N]);N++)R=Wec(B,z,R);else z?z=M.cssText:(z=M.cssText,z=z.replace(aPe,"").replace(Vs3,""),z=z.replace(EI8,"").replace(fP0,"")),(R=z.trim())&&(R="  "+R+"\n")}R&&(M.selector&&(J+=M.selector+" {\n"),J+=R,M.selector&&(J+="}\n\n"));return J};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){M=M[0];return!!M&&!!M.selector&&M.selector.indexOf("--")===0};
AvH=function(M){if(M=Lep[M])M._applyShimCurrentVersion=M._applyShimCurrentVersion||0,M._applyShimValidatingVersion=M._applyShimValidatingVersion||0,M._applyShimNextVersion=(M._applyShimNextVersion||0)+1};
iyb=function(M){return M._applyShimCurrentVersion===M._applyShimNextVersion};
byY=function(M){M._applyShimValidatingVersion=M._applyShimNextVersion;M._validating||(M._validating=!0,CNG.then(function(){M._applyShimCurrentVersion=M._applyShimNextVersion;M._validating=!1}))};
M6p=function(M){if(!M)return"";typeof M==="string"&&(M=$8G(M));return Wec(M,rvn)};
zIb=function(M){!M.__cssRules&&M.textContent&&(M.__cssRules=$8G(M.textContent));return M.__cssRules||null};
RI0=function(M,z,J,R){if(M){var D=!1,N=M.type;if(R&&N===4){var Z=M.selector.match(Jwb);Z&&(window.matchMedia(Z[1]).matches||(D=!0))}N===1?z(M):J&&N===7?J(M):N===1E3&&(D=!0);if((M=M.rules)&&!D)for(D=0,N=M.length,Z=void 0;D<N&&(Z=M[D]);D++)RI0(Z,z,J,R)}};
Doo=function(M,z){var J=M.indexOf("var(");if(J===-1)return z(M,"","","");a:{var R=0;var D=J+3;for(var N=M.length;D<N;D++)if(M[D]==="(")R++;else if(M[D]===")"&&--R===0)break a;D=-1}R=M.substring(J+4,D);J=M.substring(0,J);M=Doo(M.substring(D+1),z);N=R.indexOf(",");if(N===-1)return z(J,R.trim(),"",M);D=R.substring(0,N).trim();R=R.substring(N+1).trim();return z(J,D,R,M)};
NpH=function(M){if(b4!==void 0)return b4;if(M.__cssBuild===void 0){var z=M.getAttribute("css-build");if(z)M.__cssBuild=z;else{a:{z=M.localName==="template"?M.content.firstChild:M.firstChild;if(z instanceof Comment&&(z=z.textContent.trim().split(":"),z[0]==="css-build")){z=z[1];break a}z=""}if(z!==""){var J=M.localName==="template"?M.content.firstChild:M.firstChild;J.parentNode.removeChild(J)}M.__cssBuild=z}}return M.__cssBuild||""};
Scp=function(M,z,J,R){for(var D=z._noAccessors,N=Object.getOwnPropertyNames(z),Z=0;Z<N.length;Z++){var B=N[Z];if(!(B in R))if(D)M[B]=z[B];else{var O=Object.getOwnPropertyDescriptor(z,B);O&&(O.configurable=!0,Object.defineProperty(M,B,O))}}for(var X in Pon)z[X]&&(J[X]=J[X]||[],J[X].push(z[X]))};
ZQp=function(M,z,J){z=z||[];for(var R=M.length-1;R>=0;R--){var D=M[R];D?Array.isArray(D)?ZQp(D,z):z.indexOf(D)<0&&(!J||J.indexOf(D)<0)&&z.unshift(D):console.warn("behavior is null, check for missing or 404 import")}return z};
kEe=function(M,z){for(var J in z){var R=M[J],D=z[J];M[J]=!("value"in D)&&R&&"value"in R?Object.assign({value:R.value},D):D}};
Tp8=function(M,z,J){var R={},D=function(){return z.apply(this,arguments)||this};
_.w(D,z);D._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Z)for(var O=0,X;O<Z.length;O++)X=Z[O],X.properties&&this.createProperties(X.properties),X.observers&&this.createObservers(X.observers,X.properties);M.properties&&this.createProperties(M.properties);M.observers&&this.createObservers(M.observers,M.properties);this._prepareTemplate()}else z._finalizeClass.call(this)};
D.prototype.created=function(){z.prototype.created.call(this);var O=R.created;if(O)for(var X=0;X<O.length;X++)O[X].call(this)};
D.prototype._registered=function(){var O=D.prototype;if(!O.hasOwnProperty("__hasRegisterFinished")){O.__hasRegisterFinished=!0;z.prototype._registered.call(this);K4&&B(O);O=Object.getPrototypeOf(this);var X=R.beforeRegister;if(X)for(var l=0;l<X.length;l++)X[l].call(O);if(X=R.registered)for(l=0;l<X.length;l++)X[l].call(O)}};
D.prototype._applyListeners=function(){z.prototype._applyListeners.call(this);var O=R.listeners;if(O)for(var X=0;X<O.length;X++){var l=O[X];if(l)for(var e in l)this._addMethodEventListenerToNode(this,e,l[e])}};
D.prototype._ensureAttributes=function(){var O=R.hostAttributes;if(O)for(var X=O.length-1;X>=0;X--){var l=O[X],e;for(e in l)this._ensureAttribute(e,l[e])}z.prototype._ensureAttributes.call(this)};
D.prototype.ready=function(){z.prototype.ready.call(this);var O=R.ready;if(O)for(var X=0;X<O.length;X++)O[X].call(this)};
D.prototype.attached=function(){z.prototype.attached.call(this);var O=R.attached;if(O)for(var X=0;X<O.length;X++)O[X].call(this)};
D.prototype.detached=function(){z.prototype.detached.call(this);var O=R.detached;if(O)for(var X=0;X<O.length;X++)O[X].call(this)};
D.prototype.attributeChanged=function(O,X,l){z.prototype.attributeChanged.call(this);var e=R.attributeChanged;if(e)for(var Q=0;Q<e.length;Q++)e[Q].call(this,O,X,l)};
_.rX.Object.defineProperties(D,{properties:{configurable:!0,enumerable:!0,get:function(){var O={};if(Z)for(var X=0;X<Z.length;X++)kEe(O,Z[X].properties);kEe(O,M.properties);return O}},
observers:{configurable:!0,enumerable:!0,get:function(){var O=[];if(Z)for(var X=0,l;X<Z.length;X++)l=Z[X],l.observers&&(O=O.concat(l.observers));M.observers&&(O=O.concat(M.observers));return O}}});
if(J){Array.isArray(J)||(J=[J]);var N=z.prototype.behaviors;var Z=ZQp(J,null,N);D.prototype.behaviors=N?N.concat(J):Z}var B=function(O){if(Z)for(var X=Z,l=0;l<X.length;l++)Scp(O,X[l],R,Bpp);Scp(O,M,R,OQ3)};
K4||B(D.prototype);D.generatedFrom=M;return D};
lko=function(M){var z=typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0};z.fastInit===void 0&&(z.fastInit=!0);return function(J){if(!z.disableInheritanceCheck&&Object.getPrototypeOf(J.prototype).constructor!==_.MI)throw Error("Md");var R=J.prototype;R.is=z.is;Gyp(R,"created",function(){this.hostElement=this;this.polymerController=this});
Iko(R,J,z.fastInit);z.notifyObserversOnUndefined&&(R._overrideLegacyUndefined=!0);if(oiG)for(var D=_.S(Object.getOwnPropertyNames(R)),N=D.next();!N.done;N=D.next()){N=N.value;var Z=Object.getOwnPropertyDescriptor(R,N);Z.enumerable===!1&&(Z.enumerable=!0,Object.defineProperty(R,N,Z))}if("template"in J)var B=function(){return J.template};
else z.template!==void 0&&(B=z.template);if(B!==void 0){var O;Object.defineProperty(R,"_template",{get:function(){O===void 0&&(O=B());return O},
set:function(X){O=X},
configurable:!0,enumerable:!0})}Polymer(R);J[XKo]=R}};
eIp=function(M){M=M===void 0?{}:M;M.fastInit===void 0&&(M.fastInit=!0);return function(z){if(!M.disableInheritanceCheck&&Object.getPrototypeOf(z.prototype).constructor!==zi)throw Error("Nd");Iko(z.prototype,z,M.fastInit)}};
Iko=function(M,z,J){J=J===void 0?!1:J;QN3(z);J?Gyp(M,"created",function(){this.disableEnforceFastDefaultValuesCheck||Uob(z,this)}):Gyp(M,"ready",function(){for(var R={},D=_.S(wX0(this.behaviors)),N=D.next();!N.done;N=D.next())N=N.value,N.properties&&Object.assign(R,viR(this,N.properties));
Object.assign(R,viR(this,this.properties));Uob(z,this);D=_.S(Object.keys(R));for(N=D.next();!N.done;N=D.next())N=N.value,this[N]=R[N]})};
Uob=function(M,z){if(oiG){M=new M;for(var J=_.S(Object.getOwnPropertyNames(M)),R=J.next();!R.done;R=J.next())R=R.value,z[R]=M[R];for(J=z;J&&J!==Object.prototype;J=Object.getPrototypeOf(J)){R=_.S(Object.getOwnPropertyNames(J));for(var D=R.next();!D.done;D=R.next())D=D.value,M.hasOwnProperty(D)||Object.defineProperty(M,D,GEo(z,D))}}else M.apply(z)};
GEo=function(M,z){return{get:function(){var J=M[z];return J instanceof Function?J.bind(M):J},
set:function(J){M[z]=J}}};
viR=function(M,z){if(!z)return{};for(var J={},R=_.S(Object.keys(z)),D=R.next();!D.done;D=R.next())if(D=D.value,!z[D].readOnly){var N=M[D];N!==void 0&&(J[D]=N)}return J};
QN3=function(M){var z=new M;M=M.prototype.properties||{};for(var J=_.S(Object.keys(M)),R=J.next();!R.done;R=J.next())if(R=R.value,z.hasOwnProperty(R)){var D=M[R];typeof D==="function"&&(M[R]=D={type:D});z[R]!=null&&D.type===Object&&(D.type=wKH(z[R].constructor))}};
wKH=function(M){for(var z=_.S(xow),J=z.next();!J.done;J=z.next())if(J=J.value,M===J)return J;return Object};
t63=function(M){return function(z,J){z.behaviors=z.behaviors||[];z.behaviors.push(M||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",z,J).prototype:void 0));Object.defineProperty(z,J,{get:function(){return this},
enumerable:!0,configurable:!0})}};
jNH=function(M){M=M===void 0?{}:M;return function(z,J){z.properties=z.properties||{};M.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?M.type=wKH(Reflect.getMetadata("design:type",z,J)):M.type=String);var R=M,D=z.properties[J];z.properties[J]=D?Object.assign({},D,R):R}};
pKR=function(M){return function(z,J){z.listeners=z.listeners||{};z.listeners[M]=J}};
Fc8=function(){var M=_.H4.apply(0,arguments);if(M.length===0)throw Error("Od");return function(z,J){z.observers=z.observers||[];z.observers.push(J+"("+M.join(",")+")")}};
Ycc=function(){var M=_.H4.apply(0,arguments);return function(z,J,R){var D=Object.getOwnPropertyDescriptor(z,J).get,N="__compute__"+J;Object.defineProperty(z,N,{value:D,enumerable:!0});z.properties=z.properties||{};D=z.properties[J];D||(D={},z.properties[J]=D);D.computed=N+"("+M.join(",")+")";R.get=void 0}};
_.Ju=function(M,z,J){_.wS.call(this);this.JSC$11225_id_=null;this.usingListeners_=!1;this.JSC$11225_listener_=M;this.handler_=J;this.JSC$11225_win_=z||window;this.callback_=(0,_.xF)(this.JSC$11227_doAction_,this)};
RT=function(M){this.range_=M};
DQ=function(M){this.range_=M};
Sn=function(M,z,J){_.wS.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=M;this.scrollTimer_=new _.NI(50);this.JSC$11304_eventHandler_=new _.Ps(this);this.scrollDelta_=new _.nO;this.containerIsActuallyContent_=M.tagName==="BODY"||M.tagName==="HTML";this.containerBounds_=mo3(M);this.containerIsActuallyContent_&&(M=_.QW(),this.containerBounds_.height=M.height,this.containerBounds_.width=M.width);this.margin_=z||0;if(z){if(z=this.containerBounds_.clone(),M=this.margin_){var R=
Math.min(M,z.height*.25);z.top+=R;z.height-=2*R;M=Math.min(M,z.width*.25);z.left+=M;z.width-=2*M}}else z=this.containerBounds_;this.scrollBounds_=z;J||this.JSC$11304_eventHandler_.listen(_.yW(this.containerNode_),"mousemove",this.JSC$11306_onMouseMove);this.JSC$11304_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11306_onTick_)};
_.ZQ=function(M){this.mechanism=M};
kl=function(M,z){this.JSC$11402_key_=M;this.JSC$11402_value_=z};
sNY=function(M){if(M>=55296&&M<=57343||M>1114111)return"\ufffd";M in gip&&(M=gip[M]);var z="";M>65535&&(M-=65536,z+=String.fromCharCode(M>>>10&1023|55296),M=56320|M&1023);return z+=String.fromCharCode(M)};
nip=function(M,z){return M<z?1:-1};
yww=function(){return function(M){return M.charAt(1)==="#"?M.charAt(2)==="X"||M.charAt(2)==="x"?sNY(parseInt(M.substr(3),16)):sNY(parseInt(M.substr(2),10)):hIG[M.slice(1,-1)]}};
Kcn=function(M){return M.slice(1,M.length-1).trim().replace(HQ8,function(z){return do8[z]||" "})};
Bs=function(M){return M===32||M===9};
OK=function(M,z){return z<M.length?M.charCodeAt(z):-1};
$op=function(M){for(;M;){if(M._lastLineBlank)return!0;var z=M.type;if(z==="list"||z==="item")M=M._lastChild;else break}return!1};
Ti=function(M){if(udY.test(M)){var z=1,J=0,R=0;for(M[J]=="|"&&J++;J<M.length;){switch(M[J]){case "|":R=1;break;case " ":break;case "\t":break;default:R&&(R=0,z++)}J++}return qcp.test(M)?-z:z}return 0};
WcR=function(M){return M=="table"||M=="row"||M=="cell"};
akR=function(){return new IT("document",[[1,1],[0,0]])};
V6R=function(){};
oT=function(){var M={safe:!1};M=M||{};M.softbreak=M.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=M};
iQo=function(M,z){var J="";if(M)if(M=M.toLowerCase(),M===" "||EiY.test(M))J="space";else if(fk8.test(M))J="esc";else if(M.length==1){if(!z||Lcp.test(M))J=M}else J=Awp.test(M)?M.replace("arrow",""):M=="multiply"?"*":M;return J};
MB8=function(M,z){var J=M.hasModifiers;if(z.key)J=iQo(z.key,J);else if(z.detail&&z.detail.key)J=iQo(z.detail.key,J);else{J=z.keyIdentifier;var R="";J&&(J in Coe?R=Coe[J]:bQb.test(J)?(J=parseInt(J.replace("U+","0x"),16),R=String.fromCharCode(J).toLowerCase()):R=J.toLowerCase());(J=R)||(J=z.keyCode,R="",Number(J)&&(J>=65&&J<=90?R=String.fromCharCode(32+J):J>=112&&J<=123?R="f"+(J-112+1):J>=48&&J<=57?R=String(J-48):J>=96&&J<=105?R=String(J-96):R=rw3[J]),J=R);J=J||""}return J===M.key&&(!M.hasModifiers||
!!z.shiftKey===!!M.shiftKey&&!!z.ctrlKey===!!M.ctrlKey&&!!z.altKey===!!M.altKey&&!!z.metaKey===!!M.metaKey)};
JQc=function(M){return M.length===1?{combo:M,key:M,event:"keydown"}:M.split("+").reduce(function(z,J){var R=J.split(":");J=R[0];R=R[1];J in zvo?(z[zvo[J]]=!0,z.hasModifiers=!0):(z.key=J,z.event=R||"keydown");return z},{combo:M.split(":").shift()})};
RvY=function(M){return M.trim().split(" ").map(function(z){return JQc(z)})};
DkY=function(M,z){if(M&&M.fn){var J=M.fn;M.fn=function(){try{J.apply(this,arguments)}catch(R){if(R instanceof Xj)console.warn("Argument '"+R.arg+"'"+(z?" for method '"+z+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw R;}}}return M};
Ns8=function(){var M=_.H4.apply(0,arguments);return M.length===0?function(z){return z}:M.length===1?M[0]:M.reduce(function(z,J){return function(){return z(J.apply(null,_.Yj(_.H4.apply(0,arguments))))}})};
PHH=function(){var M=_.H4.apply(0,arguments);return function(z){return function(J,R){J=z(J,R);var D=function(){throw Error("ye");},N={getState:J.getState,
dispatch:function(Z){return D.apply(null,[Z].concat(_.Yj(_.H4.apply(1,arguments))))}};
R=M.map(function(Z){return Z(N)});
D=Ns8.apply(null,_.Yj(R))(J.dispatch);return Object.assign({},J,{dispatch:D})}}};
kQ8=function(M){Object.keys(M).forEach(function(z){var J=M[z];if(typeof J(void 0,{type:Sec})==="undefined")throw Error("ze`"+z);if(typeof J(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+ZsR()})==="undefined")throw Error("Ae`"+z+"`"+Sec);})};
lS=function(M){for(var z=Object.keys(M),J={},R=0;R<z.length;R++){var D=z[R];typeof M[D]==="function"&&(J[D]=M[D])}var N=Object.keys(J);try{kQ8(J)}catch(B){var Z=B}return function(B,O){B=B===void 0?{}:B;if(Z)throw Z;for(var X=!1,l={},e=0;e<N.length;e++){var Q=N[e],v=B[Q],x=(0,J[Q])(v,O);if(typeof x==="undefined")throw B=O&&O.type,Error("Be`"+(B?'"'+String(B)+'"':"(unknown type)")+"`"+Q);l[Q]=x;X=X||x!==v}return(X=X||N.length!==Object.keys(B).length)?l:B}};
Bsp=function(M,z,J){function R(){if(l)throw Error("Ce");return B}
function D(v){if(typeof v!=="function")throw Error("De`"+typeof v);if(l)throw Error("Ee");var x=!0;X===O&&(X=O.slice());X.push(v);return function(){if(x){if(l)throw Error("Fe");x=!1;X===O&&(X=O.slice());var m=X.indexOf(v);X.splice(m,1);O=null}}}
function N(v){if(typeof v!=="object"||v===null)var x=!1;else{for(x=v;Object.getPrototypeOf(x)!==null;)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(v)===x}if(!x)throw Error("Ge`"+typeof v);if(typeof v.type==="undefined")throw Error("He");if(l)throw Error("Ie");try{l=!0,B=Z(B,v)}finally{l=!1}x=O=X;for(var m=0;m<x.length;m++)(0,x[m])();return v}
if(typeof z==="function"&&typeof J==="function"||typeof J==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof z==="function"&&typeof J==="undefined"&&(J=z,z=void 0);if(typeof J!=="undefined"){if(typeof J!=="function")throw Error("Ke`"+typeof J);return J(Bsp)(M,z)}if(typeof M!=="function")throw Error("Le`"+typeof M);var Z=M,B=z,O=[],X=O,l=!1;N({type:Sec});var e={},Q=(e.dispatch=N,e.subscribe=D,e.getState=R,e.replaceReducer=function(v){if(typeof v!=="function")throw Error("Me`"+
typeof v);Z=v;N({type:Ose});return Q},e[Tsp]=function(){var v={};
return v.subscribe=function(x){function m(){x.next&&x.next(R())}
if(typeof x!=="object"||x===null)throw new TypeError("Ne`"+typeof x);m();return{unsubscribe:D(m)}},v[Tsp]=function(){return this},v},e);
return Q};
ICn=function(M){function z(){D&&(D=!1,M());N&&R()}
function J(){requestAnimationFrame(z)}
function R(){var B=Date.now();if(D){if(B-Z<2)return;N=!0}else D=!0,N=!1,setTimeout(J,20);Z=B}
var D=!1,N=!1,Z=0;return R};
en=function(M){return typeof M==="number"?M:parseFloat(M)||0};
ose=function(M){return _.H4.apply(1,arguments).reduce(function(z,J){return z+en(M["border-"+J+"-width"])},0)};
_.t=function(M,z){z=qE(us(z));M.innerHTML=z};
evp=function(M){var z=XRw;z||(z=lCp(),z=XRw=_.gu.transpose(z));z=z[M];return typeof z==="string"?z:_.Q5(M)};
Qyp=function(M){M=String(M).toLowerCase();var z=lCp()[M];return typeof z==="string"?z:_.UK(M)};
UkR=function(M){M=M.toLowerCase();M=lCp()[M];return typeof M==="string"?M:null};
lCp=function(){if(!vsH){for(var M=Object.assign({},GQ8),z=_.S(wR0),J=z.next();!J.done;J=z.next())J=J.value,M[J.toLowerCase()]=J;vsH=M}return vsH};
jy8=function(M,z){var J=window.customElements;return J&&J.get(M)||xkp[M]===!0?2:z.name==="HTMLUnknownElement"?1:z.name==="HTMLElement"&&tBR.test(M)?3:0};
Yee=function(M,z){switch(z){case "innerHTML":return pRp(M)===1?2:null;case "textContent":return M=pRp(M),M===1||M===6?1:null;default:var J,R;return(R=(J=FiH[M.localName])==null?void 0:J[z])!=null?R:null}};
pRp=function(M){var z=M.localName,J=jy8(z,M.constructor);switch(J){case 0:case 1:return mkn(z,M);case 3:case 2:return 1;default:_.uJ(J,"got an unknown element classification")}};
mkn=function(M,z){var J=Object.hasOwnProperty.call(gsw,M)?gsw[M]:null;return J!==null?J:Object.hasOwnProperty.call(syR,M)&&z instanceof SVGElement?syR[M]:null};
ns8=function(M,z){return z};
yQc=function(M){return(M=M.split(hvR,2))?{url:M[0],metadata:M[1]}:null};
cQn=function(M){var z=String(M.url).replace(Hsn,encodeURIComponent);if(M=M.metadata){Hsn.lastIndex=0;if(Hsn.test(M))return null;z+=" "+M}return z};
upo=function(M){function z(X){var l=X.localName;if(!X.getAttribute("is")&&jy8(l,X.constructor)===2){var e;return(e=O)!=null?e:O=document.createElement("polyresinuncustomized")}(X=B[l])||(X=B[l]=document.createElement(l));return X}
var J=M.reportHandler||void 0,R=M.safeTypesBridge||dkp,D=/^$/;if(M=M.allowedIdentifierPrefixes){M=_.S(M);for(var N=M.next();!N.done;N=M.next())D=new RegExp(D.source+"|^"+_.KiH(N.value))}J&&J(!1,"initResin",null);var Z=$k8(D,R,J),B={},O=null;return function(X,l,e){var Q=X.nodeType;if(Q!==Node.ELEMENT_NODE){if(Q===Node.TEXT_NODE){l=X.parentElement;e=!l;if(l&&l.nodeType===Node.ELEMENT_NODE){Q=l.localName;var v=jy8(Q,l.constructor);switch(v){case 0:case 1:l=mkn(Q,l);e=l===1||l===6;break;case 3:case 2:e=
!0;break;default:_.uJ(v,"got an unknown element classification")}}if(e)return function(H){return""+R(H,"STRING",H)}}return function(H){if(!H&&H!==document.all)return H;
J&&J(!0,"Failed to sanitize "+(X.parentElement&&X.parentElement.nodeName)+" #text node to value "+H,X.parentElement);return vs}}var x=X.localName;
Q=z(X);var m=null;switch(e){case "attribute":if(Qyp(l)in Q)break;return function(H){return H};
case "property":if(l in Q){m=Yee(Q,l);break}if((v=UkR(l))&&v in Q)break;return function(H){return H};
default:_.uJ(e,"got an unknown resin type, expected either 'property' or 'attribute'")}var y=e==="attribute"?l.toLowerCase():evp(l);m||(m=RJ3(x,y,function(H){var q=X.getAttribute(H);return!q||/[\[\{]/.test(H)?null:q}));
return function(H){var q=Gi,b=null;if(!H&&H!==document.all)return H;if(m!=null){var V=Z[m],E=V.safeType;b=V.safeReplacement;E&&(q=R(H,E,Gi));q===Gi&&(V.filterString?(q=String(R(H,"STRING",H)),q=V.filterString(x,y,q)):V.filterRaw&&(q=V.filterRaw(x,y,H,X)),q===b&&(q=Gi))}q===Gi&&(q=b||vs,J&&J(!0,"Failed to sanitize attribute of <"+x+">: <"+x+" "+y+'="'+H+'">',X));return q}}};
$k8=function(M,z,J){return[,{filterRaw:function(R,D,N){return N},
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:qeb,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:qeb,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vs,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:WiY,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(R,D,N){N=
String(N).toLowerCase();return P40(R,D,N)?N:vs},
safeReplacement:vs,safeType:void 0},,{filterRaw:void 0,filterString:function(R,D,N){return M.test(N)?N:vs},
safeReplacement:vs,safeType:"CONSTANT"},{filterRaw:function(R,D,N,Z){if(typeof N==="string")var B=(B=N.match(aCH))?B.map(yQc).filter(Boolean):[];else if(Array.isArray(N))B=N;else return qeb;var O=B;B=[];var X=[],l={};if(Array.isArray(O))for(var e=0,Q=O.length;e<Q;++e){var v=O[e],x=v&&v.url;if(x){var m=z(x,"URL",l);if(m){var y=m!==l;(y?B:X).push({url:y?m:x,metadata:v.metadata})}}}else X.push(O);O=X.length?JSON.stringify(X):null;X=Gi;if(B.length){if(!Array.isArray(B))throw Error();X=B.map(cQn).filter(Boolean).join(" , ")||
Gi}O&&J&&J(!0,"Failed to sanitize attribute value of <"+R+">: <"+R+" "+D+'="'+N+'">: '+O,Z);return X===Gi?qeb:X},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
VBH=function(M){var z=upo(M);return function(J,R,D,N){return N||N===document.all?z(J,R,D)(N):N}};
wM=function(M,z){function J(){function D(B,O,X){for(O=Reflect.getMetadata("parameters",B)||[];O.length<=X;)O.push(null);O[X]=O[X]||[];O[X].push(Z);Reflect.defineMetadata(O,B);return B}
var N=_.H4.apply(0,arguments);if(this instanceof J)return R.apply(this,N),this;var Z=new (Function.prototype.bind.apply(J,[null].concat(_.Yj(N))));D.annotation=Z;return D}
var R=EsY(z);J.prototype.toString=function(){return"@"+M};
return J.annotationCls=J};
EsY=function(M){return function(){var z=_.H4.apply(0,arguments),J=this;M.forEach(function(R,D){D=z[D];if(Array.isArray(R))J[R[0]]=D&&D!==void 0?D:R[1];else for(var N in R)J[N]=D&&D[N]!==void 0?D[N]:R[N]})}};
fC8=function(M){return M!==void 0&&M!==null};
xl=function(M){if(typeof M==="string")return M;if(M===void 0||M===null)return""+M;if(M.overriddenName)return M.overriddenName;if(M.name)return M.name;M=M.toString();var z=M.indexOf("\n");return z===-1?M:M.substring(0,z)};
Lip=function(M){M.__forward_ref__=Lip;M.toString=function(){return xl(this())};
return M};
tu=function(M){return typeof M==="function"&&M.hasOwnProperty("__forward_ref__")&&M.__forward_ref__===Lip?M():M};
AQe=function(M){return M?M.map(function(z){return new (Function.prototype.bind.apply(z.type.annotationCls,[null].concat(_.Yj(z.args?z.args:[]))))}):[]};
isY=function(M){for(var z=[],J=0;J<M.length;++J){if(z.indexOf(M[J])>-1){z.push(M[J]);break}z.push(M[J])}return z};
CHn=function(M){return M.length>1?" ("+isY(M.slice().reverse()).map(function(z){return xl(z.token)}).join(" -> ")+")":""};
rQp=function(M,z,J,R){if(R){var D=Error("Ue``"+(R instanceof Error?R.message:R));D.ngOriginalError=R}else D=Error();D.addKey=bsp;D.keys=[z];D.injectors=[M];D.constructResolvingMessage=J;D.message=D.constructResolvingMessage();D.ngOriginalError=R;return D};
bsp=function(M,z){this.injectors.push(M);this.keys.push(z);this.message=this.constructResolvingMessage()};
MHY=function(M,z){return rQp(M,z,function(){return"No provider for "+xl(this.keys[0].token)+"!"+CHn(this.keys)})};
zhe=function(M,z){return rQp(M,z,function(){return"Cannot instantiate cyclic dependency!"+CHn(this.keys)})};
JbG=function(M,z,J){return rQp(M,J,function(){var R=xl(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+R+"!"+CHn(this.keys)+"."},z)};
Rh0=function(M,z){for(var J=[],R=0,D=z.length;R<D;R++){var N=z[R];N&&N.length!=0?J.push(N.map(xl).join(" ")):J.push("?")}return Error("Ye`"+xl(M)+"`"+J.join(", ")+"`"+xl(M))};
BqR=function(M){var z=void 0,J=void 0;if(M&&M.useClass!==void 0){z=M.useClass;var R=tu(M.useClass);var D=DDY.factory(R);R=Nq3(R)}else M&&M.useExisting!==void 0?(D=function(N){return N},R=[PFn(jn.get(tu(M.useExisting)))]):M&&M.useFactory!==void 0?(D=M.useFactory,R=Skp(M.useFactory,M.deps)):(J=M.useValue,D=function(){return M.useValue},R=ZFp);
return new k5Y(D,R,z,J)};
TqY=function(M){return new OF3(jn.get(tu(M.provide)),[BqR(M)],M.multi)};
oep=function(M){M=IF8(M,[]).map(TqY);for(var z=new Map,J=0;J<M.length;J++){var R=M[J],D=z.get(R.key.id);if(D){if(R.multiProvider!==D.multiProvider)throw Error("$e`"+D+"`"+R);if(R.multiProvider)for(var N=0;N<R.resolvedFactories.length;N++)D.resolvedFactories.push(R.resolvedFactories[N]);else z.set(R.key.id,R)}else D=void 0,R.multiProvider?D=new OF3(R.key,R.resolvedFactories.slice(),R.multiProvider):D=R,z.set(R.key.id,D)}return Array.from(z.values())};
IF8=function(M,z){M.forEach(function(J){if(J instanceof X3w)z.push({provide:J,useClass:J});else if(J&&typeof J=="object"&&J.provide!==void 0)z.push(J);else if(J instanceof Array)IF8(J,z);else throw Error("Xe`"+J);});
return z};
Skp=function(M,z){if(z){var J=z.map(function(R){return[R]});
return z.map(function(R){return lFH(M,R,J)})}return Nq3(M)};
Nq3=function(M){var z=DDY.parameters(M);if(!z)return[];if(z.some(function(J){return J==null}))throw Rh0(M,z);
return z.map(function(J){return lFH(M,J,z)})};
lFH=function(M,z,J){var R=null,D=!1;if(!Array.isArray(z))return z instanceof ehb?QIw(z.token,D,null):QIw(z,D,null);for(var N=null,Z=0;Z<z.length;++Z){var B=z[Z];if(B instanceof X3w)R=B;else if(B instanceof ehb)R=B.token;else if(B instanceof UDo)D=!0;else if(B instanceof veb||B instanceof G5n)N=B}R=tu(R);if(R!=null)return QIw(R,D,N);throw Rh0(M,J);};
QIw=function(M,z,J){return new w3b(jn.get(tu(M)),z,J)};
xDY=function(M,z){for(var J=Array(M.providers.length),R=0;R<M.providers.length;++R){var D=R;if(R<0||R>=M.providers.length)throw Error("Ze`"+R);J[D]=z(M.providers[R])}return J};
tHn=function(M){return typeof M==="function"&&DDY.parameters(M).every(function(z){return!!z})};
FvG=function(M){var z=jIH;p30.get(M)||p30.set(M,new z);return p30.get(M)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,z){var J,R;if(M.contains(z))return!0;M=_.pu(M).querySelectorAll("content,slot");for(J=0;J<M.length;++J){var D=_.pu(M[J]).getDistributedNodes();for(R=0;R<D.length;++R)if(D[R].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D[R],z))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){M.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M)&&M.preventDefault();M.targetTouches&&(M=M.targetTouches[0],Ykw=M.pageX,mDn=M.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var M=0,z=Fj.length;M<z;M++)document.addEventListener(Fj[M],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var M=0,z=Fj.length;M<z;M++)document.removeEventListener(Fj[M],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var z=_.pu(M).rootTarget;M.type!=="touchmove"&&gen!==z&&(gen=z,sI0=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.pu(M).path));if(!sI0.length)return!0;if(M.type==="touchstart")return!1;M=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(sI0,M.deltaX,M.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){for(var z=[],J=M.indexOf(hh8),R=0;R<=J;R++)if(M[R].nodeType===Node.ELEMENT_NODE){var D=M[R],N=D.style;N.overflow!=="scroll"&&N.overflow!=="auto"&&(N=window.getComputedStyle(D));N.overflow!=="scroll"&&N.overflow!=="auto"||z.push(D)}return z};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,z,J){if(z||J)for(var R=Math.abs(J)>=Math.abs(z),D=0;D<M.length;D++){var N=M[D];if(R?J<0?N.scrollTop>0:N.scrollTop<N.scrollHeight-N.clientHeight:z<0?N.scrollLeft>0:N.scrollLeft<N.scrollWidth-N.clientWidth)return N}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var z={deltaX:M.deltaX,deltaY:M.deltaY};"deltaX"in M||("wheelDeltaX"in M&&"wheelDeltaY"in M?(z.deltaX=-M.wheelDeltaX,z.deltaY=-M.wheelDeltaY):"wheelDelta"in M?(z.deltaX=0,z.deltaY=-M.wheelDelta):"axis"in M?(z.deltaX=M.axis===1?M.detail:0,z.deltaY=M.axis===2?M.detail:0):M.targetTouches&&(M=M.targetTouches[0],z.deltaX=Ykw-M.pageX,z.deltaY=mDn-M.pageY));return z};
yb8=function(M){this.element=M;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
cbY=function(M){this.element=M;this.color=window.getComputedStyle(M).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.pu(this.waveContainer).appendChild(this.wave);HFY(this)};
Yl=function(M,z){for(var J in M)if(J.toLowerCase()===z.toLowerCase())return M[J]};
dD8=function(M,z){for(var J in M)if(J.toLowerCase()===z.toLowerCase()){delete M[J];break}};
$Dc=function(M){M=_.gu.clone(M);for(var z=0;z<KvG.length;++z){var J=KvG[z],R=Yl(M,J);R&&(M["X-Goog-Upload-Header-"+J]=R,dD8(M,J))}return M};
u$R=function(M){M=_.gu.clone(M);dD8(M,"X-Goog-Upload-Status")};
WvR=function(M){return qkR.some(function(z){return z.test(M)})};
fFb=function(M,z){var J;var R=(J=M.formContent)==null?void 0:J.locale;J=R==null?void 0:R.split("-")[0];R=R&&aF8.includes(R)?R:J&&aF8.includes(J)?J:void 0;R=(R!=null?R:"en").replaceAll("-","_").toLowerCase();var D;M=((D=M.initializationData)==null?0:D.useNightlyRelease)?"nightly":"live";var N;return(z==null?0:(N=z.getEnableAlohaBinarySplit)==null?0:N.call(z))?_.Nx(VHG,M):_.Nx(Eee,M,R)};
iFp=function(M,z,J,R){if(Lv0&&Abw===z)return Lv0;Abw=z;var D=fFb(M,R);return Lv0=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(N,Z){var B=_.lm("SCRIPT");_.is(B,D);B.onload=function(){z.feedbackV2GlobalObject?N(z.feedbackV2GlobalObject):Z(Error("cf"))};
B.onerror=function(){Z(Error("df`"+D.toString()))};
J.body.appendChild(B)})};
rbb=function(M,z,J,R){if(CFY&&bFH===z)return CFY;bFH=z;var D=fFb(M,R);return CFY=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(N,Z){var B=_.lm("SCRIPT");_.is(B,D);B.onload=function(){z.feedbackV2GlobalObject?N(z.feedbackV2GlobalObject):Z(Error("cf"))};
B.onerror=function(){Z(Error("df`"+D.toString()))};
J.body.appendChild(B)})};
Mln=function(M,z,J,R,D){D=D===void 0?!0:D;var N,Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:return N=Date.now(),l.yield(iFp(M,J,R,z),2);case 2:Z=l.yieldResult;if(!(D||((O=M.initializationData)==null?0:O.useNightlyRelease)||((X=M.initializationData)==null?0:X.isLocalServer))){B=Z.initializeFeedbackClient(M,N,z);l.jumpTo(3);break}return l.yield(Z.initializeFeedbackClientAsync(M,N,z),4);case 4:B=l.yieldResult;case 3:return B.initiateAloha(),l.return(B)}})};
z_p=function(M,z,J,R){var D,N,Z;return _.k(function(B){if(B.nextAddress==1)return D=Date.now(),B.yield(rbb(M,J,R.document,z),2);if(B.nextAddress!=3)return N=B.yieldResult,B.yield(N.initializeFeedbackClientAsync(M,D,z,R),3);Z=B.yieldResult;Z.initiateAloha();return B.return(Z)})};
J$p=function(M,z,J){var R=!0;R=R===void 0?!0:R;var D,N,Z,B,O,X,l,e,Q,v;return _.k(function(x){D=J||_.R3;if((N=z)==null?0:(B=(Z=N).getEnableAlohaBinarySplit)==null?0:B.call(Z)){O=D;if(O.isFormOpened)throw X=Error("ef"),X.name="DuplicateFormError",X;O.isFormOpened=!0;M.callbacks=M.callbacks||{};l=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(m){O.isFormOpened=!1;l(m)};
try{return x.return(z_p(M,z,O,D))}catch(m){throw O.isFormOpened=!1,m;}}else{e=D;if(e.isFormOpened)throw Q=Error("ef"),Q.name="DuplicateFormError",Q;e.isFormOpened=!0;M.callbacks=M.callbacks||{};v=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(m){e.isFormOpened=!1;v(m)};
try{return x.return(Mln(M,z,e,D.document,R))}catch(m){throw e.isFormOpened=!1,m;}}_.UI(x)})};
Sq0=function(M,z){return _.k(function(J){return J.return(new Promise(function(R){var D=R_0(z!=null?z:"")+"/aloha_form_properties?productId="+M;DhG(D,function(N){N=N.target;var Z=null;try{var B=JSON,O=B.stringify;if(N.JSC$9763_xhr_){var X=N.JSC$9763_xhr_.responseText;X.indexOf(")]}'\n")==0&&(X=X.substring(5));var l=(0,_.m4)(X)}else l=void 0;Z=KAb(Ndw,O.call(B,l))}catch(e){O=new Ndw,l=PMH(),l=_.gM(l,13,!1),l=_.gM(l,14,!0),l=_.gM(l,15,!0),l=_.gM(l,20,!1),Z=_.or(O,1,l)}R(Z)},"GET","",{},2E3,!0)}))})};
R_0=function(M){return WvR(M)?M:"https://www.google.com/tools/feedback"};
OC0=function(M){M=M.match(new RegExp(ZC8,"gi"))||[];M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;a:{var J=_.S(kae);for(var R=J.next();!R.done;R=J.next())if(R.value.test(z)){J=!1;break a}J=!0}if(!J)a:{J=_.S(Bdp);for(R=J.next();!R.done;R=J.next())if(R.value.test(z)){J=!0;break a}J=!1}if(J)return!0}return!1};
TdH=function(M,z){var J={},R=Object.keys(M);R=_.S(R);for(var D=R.next();!D.done;D=R.next())D=D.value,J[D]=z(D,M[D]);return J};
IWc=function(M){switch(M){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
Xhw=function(M){if(window.crypto&&window.crypto.getRandomValues)try{var z=Array(M),J=new Uint8Array(M);window.crypto.getRandomValues(J);for(var R=0;R<z.length;R++)z[R]=J[R];return z}catch(N){}z=Array(M);for(J=0;J<M;J++){R=Date.now();for(var D=0;D<R%23;D++)z[J]=Math.random();z[J]=Math.floor(Math.random()*256)}if(oD8)for(J=1,R=0;R<oD8.length;R++)z[J%M]^=z[(J-1)%M]/4^oD8.charCodeAt(R),J++;return z};
sK=function(M){M=Xhw(M);for(var z=[],J=0;J<M.length;J++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[J]&63));return z.join("")};
lWp=function(){var M=_.R3.ytLoggingDocDocumentNonce_;M||(M=sK(16),_.b9("ytLoggingDocDocumentNonce_",M));return M};
Q_c=function(M){M&&_.gP("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:e_8,clientScreenNonce:M})};
UhH=function(M){return _.HW("client-screen-nonce-store",{})[M===void 0?0:M]};
vDc=function(M,z){z=z===void 0?0:z;var J=_.HW("client-screen-nonce-store");J||(J={},_.yU("client-screen-nonce-store",J));J[z]=M};
Gap=function(M){M=M===void 0?0:M;return M===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+M};
whp=function(M){return _.HW(Gap(M===void 0?0:M))};
_.hu=function(M){return(M=whp(M===void 0?0:M))?new nu({veType:M,youtubeData:void 0,jspbYoutubeData:void 0}):null};
xh8=function(){var M=_.HW("csn-to-ctt-auth-info");M||(M={},_.yU("csn-to-ctt-auth-info",M));return M};
tlc=function(){return Object.values(_.HW("client-screen-nonce-store",{})).filter(function(M){return M!==void 0})};
_.y5=function(M){M=UhH(M===void 0?0:M);if(!M&&!_.cW("USE_CSN_FALLBACK",!0))return null;M||(M="UNDEFINED_CSN");return M?M:null};
php=function(M){for(var z=_.S(Object.values(j_p)),J=z.next();!J.done;J=z.next())if(_.y5(J.value)===M)return!0;return!1};
F8p=function(M,z,J){var R=xh8();(J=_.y5(J))&&delete R[J];z&&(R[M]=z)};
Hs=function(M){return xh8()[M]};
_.cs=function(M,z,J,R){J=J===void 0?0:J;if(M!==UhH(J)||z!==_.HW(Gap(J)))if(F8p(M,R,J),vDc(M,J),_.yU(Gap(J),z),z=function(){setTimeout(function(){Q_c(M)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(z)}catch(D){z()}else z()};
YqH=function(M,z){z=z===void 0?"":z;var J=[],R;for(R in M)if(M.hasOwnProperty(R)){var D=z!==""?z+"."+R:R;typeof M[R]==="object"?J.push.apply(J,_.Yj(YqH(M[R],D))):J.push([D,M[R]])}J.sort();return J};
_.Ku=function(M){var z=_.H4.apply(1,arguments);if(!dM(M)||z.some(function(R){return!dM(R)}))throw Error("ff");
z=_.S(z);for(var J=z.next();!J.done;J=z.next())mh8(M,J.value)};
mh8=function(M,z){for(var J in z)if(dM(z[J])){if(J in M&&!dM(M[J]))throw Error("gf");J in M||(M[J]={});mh8(M[J],z[J])}else if(gDG(z[J])){if(J in M&&!gDG(M[J]))throw Error("hf");J in M||(M[J]=[]);s_o(M[J],z[J])}else M[J]=z[J];return M};
s_o=function(M,z){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,dM(J)?M.push(mh8({},J)):gDG(J)?M.push(s_o([],J)):M.push(J);return M};
dM=function(M){return typeof M==="object"&&!Array.isArray(M)};
gDG=function(M){return typeof M==="object"&&Array.isArray(M)};
h_G=function(M){for(var z=_.S(Object.entries(nDH)),J=z.next();!J.done;J=z.next())if(J=_.S(J.value),J.next(),J=J.next().value,J==="SLI_STATUS_"+M)return J;return"SLI_STATUS_UNKNOWN"};
_.$l=function(M,z,J,R){return y$H(M,z,function(){return new _.HCo(M,z,J,R)})};
_.c$p=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
dhY=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
uS=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
K88=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
$hn=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
uMY=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
aWR=function(M){M&&(M.dataset?M.dataset[qqY()]="true":_.bs([_.R$(W8R)],M,"data-loaded","true".toString()))};
Vlp=function(M){return M?M.dataset?M.dataset[qqY()]:M.getAttribute("data-loaded"):null};
qqY=function(){return EDH.loaded||(EDH.loaded="loaded".replace(/\-([a-z])/g,function(M,z){return z.toUpperCase()}))};
_.qI=function(M,z,J){fW0(M,z,J===void 0?null:J)};
_.A$b=function(M,z){M&&z&&(M=""+_.fp(z),(M=L8o[M])&&_.AhH(M))};
fW0=function(M,z,J){J=J===void 0?null:J;var R=_.iCR(typeof M==="string"?M:M.toString()),D=document.getElementById(R),N=D&&Vlp(D),Z=D&&!N;N?z&&z():(z&&(N=_.SI(R,z),z=""+_.fp(z),L8o[z]=N),Z||(D=CMG(M,R,function(){Vlp(D)||(aWR(D),_.ieb(R),_.BJ(function(){_.beR(R)},0))},J)))};
CMG=function(M,z,J,R){R=R===void 0?null:R;var D=_.lm("SCRIPT");D.id=z;D.onload=function(){J&&setTimeout(J,0)};
D.onreadystatechange=function(){switch(D.readyState){case "loaded":case "complete":D.onload()}};
R&&D.setAttribute("nonce",R);_.is(D,typeof M==="string"?_.jJ(M):M);M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(D,M.firstChild);return D};
_.iCR=function(M){var z=document.createElement("a");_.K3(z,M);return"js-"+Ws(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
bCb=function(M){var z=_.HW("INNERTUBE_HOST_OVERRIDE");z&&(M=String(z)+String(_.aT(M)));return M};
r$G=function(M){var z={};_.U("json_condensed_response")&&(z.prettyPrint="false");return M=Qnn(M,z)};
_.V5=function(M){return r3(M)?"same-origin":"include"};
_.EK=function(M){return r3(M)?"same-origin":"cors"};
fu=function(M,z,J){J=J===void 0?{}:J;M={method:z===void 0?"POST":z,mode:_.EK(M),credentials:_.V5(M)};z={};for(var R=_.S(Object.keys(J)),D=R.next();!D.done;D=R.next())D=D.value,J[D]&&(z[D]=J[D]);Object.keys(z).length>0&&(M.headers=z);return M};
_.Lu=function(M,z){z=z===void 0?{}:z;return"service:"+M+"/"+Object.keys(z).sort().map(function(J){return J+":"+z[J]}).join("/")};
MRp=function(M){var z,J,R,D;M=(z=_.G(M,_.Au))==null?void 0:(J=z.watchEndpointSupportedOnesieConfig)==null?void 0:(R=J.html5PlaybackOnesieConfig)==null?void 0:(D=R.commonConfig)==null?void 0:D.url;if(!M)return[];z=new _.iS(M);return z.JSC$9998_domain_?["https://"+z.JSC$9998_domain_+"/generate_204"]:[]};
_.RTn=function(){return zTH()||tgn()||Jnw&&yy("version/")?!0:_.HW("EOM_VISITOR_DATA")?!1:!0};
DPc=function(M){var z=M.docid||M.video_id||M.videoId||M.id;if(z)return z;z=M.raw_player_response;z||(M=M.player_response)&&(z=JSON.parse(M));return z&&z.videoDetails&&z.videoDetails.videoId||null};
NJe=function(M){return M.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Cu=function(M){return!isNaN(Number(M))&&!_.ko(M)};
_.rM=function(M,z,J,R){R=R===void 0?!0:R;var D=_.HW("VALID_SESSION_TEMPDATA_DOMAINS",[]),N=_.Ch(window.location.href);N&&D.push(N);N=_.Ch(M);if(_.Kp(D,N)||!N&&_.PY(M,"/"))if(D=document.createElement("a"),_.K3(D,M),M=D.href)if(M=_.aT(M),M=_.bS(M))R&&!z.csn&&(z.itct||z.ved)&&(z=Object.assign({csn:_.y5()},z)),J?(J=parseInt(J,10),isFinite(J)&&J>0&&PZn(M,z,J)):PZn(M,z)};
ZRG=function(M){var z=_.HW("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.Ch(window.location.href);J&&z.push(J);J=_.Ch(M);if(!(_.Kp(z,J)||!J&&_.PY(M,"/")))return null;M=_.aT(M);(M=_.bS(M))?(M=S_Y(M),M=(M=_.Qy.get(M,void 0)||null)?_.ER(M):{}):M=null;return M};
PZn=function(M,z,J){M=S_Y(M);z=z?_.Xh(z):"";J=J||5;_.RTn()&&_.U7(M,z,J)};
S_Y=function(M){for(var z=_.S(kxn),J=z.next();!J.done;J=z.next())M=_.Ms(M,J.value);return"ST-"+Ws(M).toString(36)};
_.BJp=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return M instanceof Promise?M:Promise.resolve()};
_.Jd=function(M){var z;_.che(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.zV()==M&&(z=document):z=M;if(z&&(M=_.che(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))){M.call(z)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.zV=function(){var M=M===void 0?!1:M;var z=_.che(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null};
_.DL=function(M,z){z=z===void 0?!0:z;M.addEventListener("wheel",ORp);M.overscrollConfig={cooldown:z}};
_.Ns=function(M){M.overscrollConfig=void 0;M.removeEventListener("wheel",ORp)};
ORp=function(M){var z=M.deltaY,J=M.target,R=null;if(window.Polymer&&window.Polymer.Element){if(J=M.path||M.composedPath&&M.composedPath()){J=_.S(J);for(var D=J.next();!D.done&&(D=D.value,!TJ8(D,z));D=J.next())if(D.overscrollConfig){R=D;break}}}else for(;J&&!TJ8(J,z);){if(J.overscrollConfig){R=J;break}J=J.parentElement}R&&(z=R.overscrollConfig,z.cooldown?(R=M.deltaY,J=z.lastDeltaY||0,z.lastDeltaY=R,D=z.lastStopped||0,J&&D&&J>0==R>0?Math.abs(J)>=Math.abs(R)?(R=D+1200,J=!1):(R=D+600,J=!0):(R=Date.now()+
600,J=!0),R>Date.now()&&(M.preventDefault(),J&&(z.lastStopped=Date.now()))):M.preventDefault())};
TJ8=function(M,z){return z<0&&M.scrollTop>0||z>0&&M.scrollTop<M.scrollHeight-M.clientHeight-1?(M=getComputedStyle(M).overflowY,M=="auto"||M=="scroll"):!1};
_.Pv=function(M,z,J,R){R||(R={bubbles:!0,cancelable:!1,composed:!0});J!==null&&J!==void 0&&(R.detail=J);var D=new CustomEvent(z,R);_.U("untrack_fire_custom_event_killswitch")?M.dispatchEvent(D):ZZ(function(){return void M.dispatchEvent(D)});
return D};
Iy8=function(M){var z=window,J=function(R){z.removeEventListener("yt-navigate-start",J);return M.call(z,R)};
z.addEventListener("yt-navigate-start",J,void 0)};
_.S9=function(M,z,J,R){z=new otp(z,!(R===void 0||!R),J);_.Pv(M,"yt-action",z);return z.returnValue};
_.ZL=function(M,z,J){return _.S9(M,z,J,!0)};
_.Bv=function(M,z,J,R){z&&z.length&&z.forEach(function(D){var N=h$w(D);N&&(_.U("handle_service_request_actions")&&D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.sendPost?_.kQ(J?J:M,[D]):_.ZL(M,N,[D,J,R]))})};
_.kQ=function(M,z){var J=[M];z&&J.push.apply(J,z);z=_.S9(M,"yt-service-request",J);return z.length>0&&(z=z[0],_.Pv(M,"yt-service-request-sent",z),z&&z.ajaxPromise)?(z.ajaxPromise.then(function(R){_.Pv(M,"yt-service-request-completed",R)},function(R){_.Pv(M,"yt-service-request-error",{error:R,
params:J})},M),z.ajaxPromise):_.Of()};
_.In=function(M,z){if(_.U("handle_service_request_actions"))_.Bv(z,M,z);else{M=_.S(M);for(var J=M.next();!J.done;J=M.next()){J=J.value;var R=void 0;((R=_.G(J,_.TV))==null?0:R.commands)?_.In(_.G(J,_.TV).commands,z):(R=void 0,((R=_.G(J,_.on))==null?0:R.actions)?_.In(_.G(J,_.on).actions,z):(R=void 0,((R=_.G(J.commandMetadata,_.X9))==null?0:R.sendPost)?_.kQ(z,[J]):_.Bv(z,[J],z)))}}};
_.lyo=function(M,z,J){z=z===void 0?{}:z;typeof z==="function"&&(z={callback:z});J||z._c&&z._c.jsl&&z._c.jsl.h||_.gu.extend(z,{_c:{jsl:{h:_.HW("GAPI_HINT_PARAMS")}}});(z.gapiHintOverride||_.HW("GAPI_HINT_OVERRIDE"))&&(J=_.fh(document.location.href).gapi_jsh)&&_.gu.extend(z,{_c:{jsl:{h:J}}});X0p(M,z)};
_.e9=function(M,z,J){z=z===void 0?{}:z;M=(M=M in l3?l3[M]:J)||"";J={};for(var R in z){J={key$jscomp$818:J.key$jscomp$818};J.key$jscomp$818=R;var D=function(N){return function(){return String(z[N.key$jscomp$818])}}(J);
M=M.replace(new RegExp("\\$\\{"+J.key$jscomp$818+"\\}","gi"),D);M=M.replace(new RegExp("\\$"+J.key$jscomp$818,"gi"),D)}return M};
_.QC=function(M,z){return eTn(M in l3?l3[M]:{},z)};
eTn=function(M,z){var J=_.HW("I18N_PLURAL_RULES");J||(J=function(R){return R==1?"one":"other"});
return(M=M["case"+z]||M[J(z)])?M.replace("#",z.toString()):z+""};
vt3=function(M){var z=Qq0(M),J=document.getElementById(z),R=J&&Vlp(J);R||J&&!R||(J=UPY(M,z,function(){if(!Vlp(J)){aWR(J);_.ieb(z);var D=_.Uf(_.beR,z);_.BJ(D,0)}}))};
UPY=function(M,z,J){var R=document.createElement("link");R.id=z;R.onload=function(){J&&setTimeout(J,0)};
M=_.jJ(M);_.ri(R,M,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(R);return R};
Qq0=function(M){var z=_.lm("A");_.K3(z,p3(M));return"css-"+Ws(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.w08=function(M){var z=Gxp();M!==z&&(z=_.vv(),!_.U("web_autonav_allow_off_by_default")&&M||_.GV(0,141,!0),_.GV(0,140,!M),z.save())};
Gxp=function(){var M=_.vv();return _.U("web_autonav_allow_off_by_default")&&!M.getFlag(141)&&_.HW("AUTONAV_OFF_BY_DEFAULT")?!1:!M.getFlag(140)};
xPo=function(M,z){var J,R;M=((J=M.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=J.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(J=0;J<M.length;++J)if(M[J].scope===z)return M[J].token||void 0};
tR8=function(M){for(var z=0,J=0;J<M.length;J++)z=z*31+M.charCodeAt(J),J<M.length-1&&(z%=0x800000000000);return z%1E5};
_.wE=function(M){return _.qH("ytcsi."+(M||"")+"data_")||jqY(M)};
_.p08=function(M){M=_.wE(M);M.metadata||(M.metadata={});return M.metadata};
_.F7b=function(M){M=_.wE(M);M.tick||(M.tick={});return M.tick};
_.xQ=function(M){M=_.wE(M);if(M.gel){var z=M.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel};
_.Y_R=function(M){M=_.xQ(M);M.gelInfos||(M.gelInfos={});return M.gelInfos};
mPo=function(M){var z=_.wE(M).nonce;z||(z=sK(16),_.wE(M).nonce=z);return z};
jqY=function(M){var z={tick:{},info:{}};_.b9("ytcsi."+(M||"")+"data_",z);return z};
gtH=function(){var M=_.qH("ytcsi.debug");M||(M=[],_.b9("ytcsi.debug",M),_.b9("ytcsi.reference",{}));return M};
_.td=function(M){M=M||"";var z=sqp();if(z[M])return z[M];var J=gtH(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};J.push(R);return z[M]=R};
nto=function(M){M=M||"";var z=sqp();z[M]&&delete z[M];var J=gtH(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};J.push(R);z[M]=R};
sqp=function(){var M=_.qH("ytcsi.reference");if(M)return M;gtH();return _.qH("ytcsi.reference")};
_.ynR=function(M){return hTw[M]||"LATENCY_ACTION_UNKNOWN"};
K7b=function(M,z,J){J=J===void 0?{}:J;var R=!1;_.cW("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:Y4;J=J===void 0?{}:J;var D=Math.round(J.timestamp||(0,_.zU)());_.GF(z,1,D<Number.MAX_SAFE_INTEGER?D:0);D=new HRR;if(J.lact)_.GF(D,1,isFinite(J.lact)?J.lact:-1);else if(J.timestamp)_.GF(D,1,-1);else{var N=_.Rf();_.GF(D,1,isFinite(N)?N:-1)}if(J.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")){N=J.sequenceGroup;var Z=S3c(N),B=new cno;_.GF(B,2,Z);_.G$(B,1,N);_.or(D,3,B);J.endOfSequence&&delete dPG[J.sequenceGroup]}_.or(z,
33,D);(J.sendIsolatedPayload?onR:XSn)(M,{endpoint:"log_event",payload:z,cttAuthInfo:J.cttAuthInfo,dangerousLogToVisitorSession:J.dangerousLogToVisitorSession},R)};
_.pY=function(){return(_.U("csi_use_time_origin")||_.U("csi_use_time_origin_tvhtml5"))&&_.j9.timeOrigin?Math.floor(_.j9.timeOrigin):_.j9.timing.navigationStart};
_.$PR=function(M,z){_.F9("_start",M,z)};
_.YQ=function(M,z){if(!_.U("web_csi_action_sampling_enabled")||!_.wE(z).actionDisabled){var J=_.td(z||"");_.Ku(J.info,M);M.loadType&&(J=M.loadType,_.p08(z).loadType=J);_.Ku(_.Y_R(z),M);J=mPo(z);z=_.wE(z).cttAuthInfo;ue3().info(M,J,z)}};
q_o=function(){var M,z,J,R;return((R=_.JF().resolve(_.zw(tL))==null?void 0:(M=jI())==null?void 0:(z=M.loggingHotConfig)==null?void 0:(J=z.csiConfig)==null?void 0:J.debugTicks)!=null?R:[]).map(function(D){return Object.values(D)[0]})};
_.F9=function(M,z,J){if(!_.U("web_csi_action_sampling_enabled")||!_.wE(J).actionDisabled){var R=mPo(J),D;if(D=_.U("web_csi_debug_sample_enabled")&&R){(_.JF().resolve(_.zw(tL))==null?0:jI())&&!W7p&&(W7p=!0,_.F9("gcfl",(0,_.zU)(),J));var N,Z,B;D=(_.JF().resolve(_.zw(tL))==null?void 0:(N=jI())==null?void 0:(Z=N.loggingHotConfig)==null?void 0:(B=Z.csiConfig)==null?void 0:B.debugSampleWeight)||0;if(N=D!==0)b:{N=q_o();if(N.length>0)for(Z=0;Z<N.length;Z++)if(M===N[Z]){N=!0;break b}N=!1}N?(D=tR8(R)%D!==0,
_.wE(J).debugTicksExcludedLogged||(N={},N.debugTicksExcluded=D,_.YQ(N,J)),_.wE(J).debugTicksExcludedLogged=!0):D=!1}if(!D){M[0]!=="_"&&ayY(M,J,z);D=_.td(J||"");D.tick[M]=z||(0,_.zU)();if(D.callback&&D.callback[M])for(D=_.S(D.callback[M]),N=D.next();!N.done;N=D.next())N=N.value,N();D=_.xQ(J);D.gelTicks&&(D.gelTicks[M]=!0);N=_.F7b(J);D=z||(0,_.zU)();_.U("log_repeated_ytcsi_ticks")?M in N||(N[M]=D):N[M]=D;N=_.wE(J).cttAuthInfo;M==="_start"?ue3().baseline(R,z,N):ue3().tick(M,R,z,N);_.VRH(J);return D}}};
ayY=function(M,z,J){if(_.j9.mark)if(M.startsWith("mark_")||(M="mark_"+M),z&&(M+=" ("+z+")"),J===void 0||_.U("web_csi_disable_alt_time_performance_mark"))_.j9.mark(M);else{J=_.U("csi_use_performance_navigation_timing")?J-_.j9.timeOrigin:J-(_.j9.timeOrigin||_.j9.timing.navigationStart);try{_.j9.mark(M,{startTime:J})}catch(R){}}};
EtH=function(){var M,z=(M=_.j9.getEntriesByType)==null?void 0:M.call(_.j9,"mark");z&&z.forEach(function(J){if(J.name.startsWith("mark_")){var R;(R=_.j9.clearMarks)==null||R.call(_.j9,J.name)}})};
_.fyp=function(){switch(Hep()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.L7e=function(M){var z={},J=function(N,Z,B){Z=Z.match("_rid")?Z.split("_rid")[0]:Z;typeof B==="number"&&(B=JSON.stringify(B));N.requestIds?N.requestIds.push({endpoint:Z,id:B}):N.requestIds=[{endpoint:Z,id:B}]};
M=_.S(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;switch(R){case "GetBrowse_rid":J(z,R,D);break;case "GetGuide_rid":J(z,R,D);break;case "GetHome_rid":J(z,R,D);break;case "GetPlayer_rid":J(z,R,D);break;case "GetSearch_rid":J(z,R,D);break;case "GetSettings_rid":J(z,R,D);break;case "GetTrending_rid":J(z,R,D);break;case "GetWatchNext_rid":J(z,R,D);break;case "yt_red":z.isRedSubscriber=!!D;break;case "yt_ad":z.isMonetized=!!D}}return z};
iRY=function(M,z,J,R,D,N){if(!_.U("web_csi_action_sampling_enabled")||!_.wE(N).actionDisabled){var Z=_.xQ(N);if(Z.gelSpans)Z.gelSpans[M]=!0;else{var B={};Z.gelSpans=(B[M]=!0,B)}AnH++;M={spanName:M,spanLengthUsec:String(Math.round(z*1E3)),spanNonce:AnH};R&&(M.spanInfo=R);D&&(M.parentSpanNonce=D);J&&(M.spanStartTimeUsec=String(Math.round(J*1E3)));_.td(N||"").span[String(M.spanName)]=M;J=_.xQ(N);J.gelSpans||(J.gelSpans={});_.Ku(J.gelSpans,M);J=mPo(N);N=_.wE(N).cttAuthInfo;ue3().span(M,J,N);return M.spanNonce}};
_.CZn=function(M){var z=_.mV("aft",M);if(z)return z;z=_.HW((M||"")+"TIMING_AFT_KEYS",["ol"]);for(var J=z.length,R=0;R<J;R++){var D=_.mV(z[R],M);if(D)return D}return NaN};
_.bR8=function(M,z){_.b9("ytglobal.timing"+(z||"")+"ready_",M)};
_.mV=function(M,z){if(M=_.F7b(z)[M])return typeof M==="number"?M:M[M.length-1]};
_.VRH=function(M){var z=_.mV("_start",M),J=_.CZn(M),R=!rn8;z&&J&&R&&(kpb(Mc3,new zO8(Math.round(J-z),M)),rn8=!0)};
ROc=function(M){jqY(M);JTG();EtH();M||(_.HW("TIMING_ACTION")&&_.yU("PREVIOUS_ACTION",_.HW("TIMING_ACTION")),_.yU("TIMING_ACTION",""))};
_.D0R=function(M){M=M===void 0?{}:M;_.ui(function(){gE();nto();ROc();_.bR8(!1);M.cttAuthInfo&&(_.wE().cttAuthInfo=M.cttAuthInfo);_.yU("TIMING_AFT_KEYS",[]);M.isHot?_.sf({loadType:"hot"}):_.sf({loadType:"warm"});_.yU("TIMING_ACTION","");delete _.HW("TIMING_INFO",{}).yt_lt;_.ui(_.$PR)(M.startTime,void 0)})()};
_.nY=function(M,z,J,R){z=z===void 0?{}:z;_.ui(function(){var D=J?J:M;NLp(D);var N=z.sampleRate;if(!_.U("web_csi_action_sampling_enabled")||N===void 0||N<=1)N=!1;else{var Z=mPo(D);N=tR8(Z)%N!==0}N&&(_.wE(D).actionDisabled=!0);_.td(D||"").info.actionType=M;z.cttAuthInfo&&(_.wE(D).cttAuthInfo=z.cttAuthInfo);_.yU(D+"TIMING_ACTION",M);_.ui(_.$PR)(z.startTime,D);N={actionType:R||_.ynR(M)};z.logPreviousAction&&(N.previousAction=_.ynR(_.HW("TIMING_ACTION")));(Z=_.y5())&&Z!=="UNDEFINED_CSN"&&(N.clientScreenNonce=
Z);_.sf(N,D);_.bR8(!0,D)})()};
NLp=function(M){_.ui(function(){gE(M);nto(M);ROc(M)})()};
P$3=function(){_.ui(function(){var M=[],z;for(z in _.qH("ytcsi.".slice(0,-1)))z.endsWith("data_")&&M.push(z.slice(0,-5));M=_.S(M);for(z=M.next();!z.done;z=M.next())NLp(z.value);gE()})()};
_.ZH8=function(M){return _.ui(function(){return _.SvY("_start",M)})()};
_.sf=function(M,z,J){_.ui(_.YQ)(M,z,J===void 0?!1:J)};
_.hd=function(M,z,J){return _.ui(_.F9)(M,z,J)};
_.SvY=function(M,z){return _.ui(function(){var J=_.F7b(z);return M in J})()};
BLY=function(M){if(!_.U("universal_csi_network_ticks"))return"";M=_.Ib(M)||"";for(var z=Object.keys(kdp),J=0;J<z.length;J++){var R=z[J];if(M.includes(R))return R}return""};
TL8=function(M){if(!_.U("universal_csi_network_ticks"))return function(){};
var z=kdp[M];return z?(_.yC(z),function(){var J=_.U("universal_csi_network_ticks")?(J=OH8[M])?_.yC(J):!1:!1;return J}):function(){}};
_.yC=function(M,z,J){return _.ui(function(){if(_.SvY(M,J))return!1;_.hd(M,z,J);return!0})()};
_.Hv=function(M,z,J){_.ui(function(){if(!_.ZH8(J)||_.SvY(M,J))return!1;_.hd(M,z,J);return!0})()};
_.cv=function(M){return _.ui(_.mV)(M,void 0)};
gE=function(M){_.ZH8(M)&&_.hd("aa",void 0,M)};
_.eOR=function(M,z,J,R,D,N,Z,B,O){var X=Ip3();B=new nu({veType:z,youtubeData:N,jspbYoutubeData:B});N=dE({},X);D&&(N.cttAuthInfo=D);D={csn:X,pageVe:B.getAsJson()};_.U("expectation_logging")&&O&&O.screenCreatedLoggingExpectations&&(D.screenCreatedLoggingExpectations=O.screenCreatedLoggingExpectations);J&&J.visualElement?(D.implicitGesture={parentCsn:J.clientScreenNonce,gesturedVe:J.visualElement.getAsJson()},Z&&(D.implicitGesture.gestureType=Z)):J&&_.yA(new _.xN("newScreen() parent element does not have a VE - rootVe",
z));R&&(D.cloneCsn=R);M?FS("screenCreated",D,M,N):_.gP("screenCreated",D,N);kpb(lE8,new o7n(X));KY.clear();Xwp.clear();lpo.clear();return X};
$Q=function(M,z,J,R,D,N){N=N===void 0?{}:N;Qwb(M,z,J,[R],D===void 0?!1:D,N)};
Qwb=function(M,z,J,R,D,N){D=D===void 0?!1:D;N=N===void 0?{}:N;Object.assign(N,dE({cttAuthInfo:Hs(z)||void 0},z));for(var Z=_.S(R),B=Z.next();!B.done;B=Z.next()){B=B.value;var O=B.getAsJson();(_.gu.isEmpty(O)||!O.trackingParams&&!O.veType)&&_.yA(Error("sf"));if(_.U("no_client_ve_attach_unless_shown")){var X=U0Y(B,z);if(O.veType&&!Xwp.has(X)&&!lpo.has(X)&&!D){if(!_.U("il_attach_cache_limit")||KY.size<1E3){KY.set(X,[M,z,J,B]);return}_.U("il_attach_cache_limit")&&KY.size>1E3&&_.yA(new _.xN("IL Attach cache exceeded limit"))}B=
U0Y(J,z);KY.has(B)?v7p(J,z):lpo.set(B,!0)}}R=R.filter(function(l){l.csn!==z?(l.csn=z,l=!0):l=!1;return l});
J={csn:z,parentVe:J.getAsJson(),childVes:_.sa(R,function(l){return l.getAsJson()})};
z==="UNDEFINED_CSN"?u3("visualElementAttached",N,J):M?FS("visualElementAttached",J,M,N):_.gP("visualElementAttached",J,N)};
www=function(M,z,J,R,D){GdY(M,z,J,D)};
GdY=function(M,z,J,R){x03(J,z);var D=dE({cttAuthInfo:Hs(z)||void 0},z);J={csn:z,ve:J.getAsJson(),eventType:1};R&&(J.clientData=R);z==="UNDEFINED_CSN"?u3("visualElementShown",D,J):M?FS("visualElementShown",J,M,D):_.gP("visualElementShown",J,D)};
tce=function(M,z,J,R){x03(J,z);var D=dE({cttAuthInfo:Hs(z)||void 0},z);J={csn:z,ve:J.getAsJson(),eventType:4};R&&(J.clientData=R);z==="UNDEFINED_CSN"?u3("visualElementShown",D,J):M?FS("visualElementShown",J,M,D):_.gP("visualElementShown",J,D)};
jwH=function(M,z,J,R,D){var N=(R=R===void 0?!1:R)?16:8;R=dE({cttAuthInfo:Hs(z)||void 0,endOfSequence:R},z);J={csn:z,ve:J.getAsJson(),eventType:N};D&&(J.clientData=D);z==="UNDEFINED_CSN"?u3("visualElementHidden",R,J):M?FS("visualElementHidden",J,M,R):_.gP("visualElementHidden",J,R)};
FTp=function(M,z,J,R,D){pw3(M,z,J,void 0,R,D)};
pw3=function(M,z,J,R,D){x03(J,z);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var N=dE({cttAuthInfo:Hs(z)||void 0},z);J={csn:z,ve:J.getAsJson(),gestureType:R};D&&(J.clientData=D);z==="UNDEFINED_CSN"?u3("visualElementGestured",N,J):M?FS("visualElementGestured",J,M,N):_.gP("visualElementGestured",J,N)};
Yvp=function(M,z,J,R){var D=dE({cttAuthInfo:Hs(z)||void 0},z);J={csn:z,ve:J.getAsJson(),clientData:R};z==="UNDEFINED_CSN"?u3("visualElementStateChanged",D,J):M?FS("visualElementStateChanged",J,M,D):_.gP("visualElementStateChanged",J,D)};
m00=function(){var M=Xhw(16);for(var z=[],J=0;J<M.length;J++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[J]&63));return z.join("")};
u3=function(M,z,J){g7G.push({payloadName:M,payload:J,jspbPayload:void 0,options:z});swb||(swb=QuH())};
XUw=function(M){if(g7G){for(var z=_.S(g7G),J=z.next();!J.done;J=z.next())J=J.value,J.payload&&(J.payload.csn=M.csn,_.gP(J.payloadName,J.payload,J.options));g7G.length=0}swb=0};
U0Y=function(M,z){return""+M.getAsJson().veType+M.getAsJson().veCounter+z};
x03=function(M,z){if(_.U("no_client_ve_attach_unless_shown")){var J=U0Y(M,z);Xwp.set(J,!0);v7p(M,z)}};
v7p=function(M,z){M=U0Y(M,z);KY.has(M)&&(z=KY.get(M)||[],$Q(z[0],z[1],z[2],z[3],!0),KY.delete(M))};
dE=function(M,z){_.U("log_sequence_info_on_gel_web")&&(M.sequenceGroup=z);return M};
_.qs=function(M,z,J){_.ui($Q)(void 0,M,z,J)};
_.Wv=function(M,z,J){_.ui(Qwb)(void 0,M,z,J)};
_.an=function(M,z){_.ui(www)(void 0,M,z,void 0,void 0,void 0)};
_.VC=function(M,z,J){_.ui(function(){_.VU(z,function(R){tce(void 0,M,R,J)})})()};
_.Ef=function(M,z,J,R){_.ui(function(){_.VU(z,function(D){jwH(void 0,M,D,J,R)})})()};
_.fY=function(M,z,J){_.ui(FTp)(void 0,M,z,J,void 0)};
_.LY=function(M,z,J,R){_.ui(pw3)(void 0,M,z,J,R,void 0)};
_.Ad=function(M,z,J){_.ui(Yvp)(void 0,M,z,J,void 0)};
n7w=function(M,z){i3.set(M,z)};
hOp=function(M){b3={sessionId:M.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:M.enabledSpans}};
yTo=function(M){return b3?b3.enabledSpans?!!b3.enabledSpans[M]:!0:!1};
HH8=function(M){if(!b3)throw Error("vf");b3.processors.push(M)};
cTo=function(M){var z;return{id:M.id,traceId:M.traceId,sessionId:M.sessionId,name:M.name,attributes:M.attributes,startTime:M.startTime,endTime:M.endTime,status:M.status,parentId:(z=M.parent)==null?void 0:z.id}};
d08=function(M,z){if(M){z=z===void 0?1:z;if(M&&(M.endTime=(0,_.zU)(),z&&(M.status=z),z=b3)){z=_.S(z.processors);for(var J=z.next();!J.done;J=z.next()){var R=void 0,D=void 0;(D=(R=J.value).onSpanEnd)==null||D.call(R,M)}}if(z=b3){if(M!==z.activeSpan)throw Error("wf");var N;z.activeSpan=(N=z.activeSpan)==null?void 0:N.parent}}};
KTb=function(M,z,J){var R;if((R=b3)&&yTo(M)){var D=R.nextSpanId++,N=R.activeSpan;M={id:D,parent:N,name:M,attributes:z,traceId:N?N.traceId:D,sessionId:R.sessionId,startTime:(0,_.zU)(),status:0};if(R.activeSpan){var Z;(Z=R.activeSpan).children||(Z.children=[]);R.activeSpan.children.push(M)}R=_.S(R.processors);for(Z=R.next();!Z.done;Z=R.next())D=z=void 0,(D=(z=Z.value).onSpanStart)==null||D.call(z,M);R=M}else R=void 0;M=b3;R=R&&M?M.activeSpan=R:void 0;if(!R)return J();try{var B=J(R);d08(R);return B}catch(O){throw d08(R,
2),O;}};
uG8=function(M,z){var J=$08();if(J){var R=J.get(M);R?z.update(function(){return JSON.parse(R)}):J.set(M,JSON.stringify(z.value));
z.subscribe(function(D){J.set(M,JSON.stringify(D))})}};
qv3=function(M,z){var J=Object.keys(M);M=new _.xN("[Command Handler] "+z,{filteredCommandNames:J,originalCommand:M});_.nc(M)};
WTn=function(M,z){qv3(M,z+" was called but not set")};
apG=function(M){return function(){return new M}};
rE=function(M){return function(){return _.JF().resolve(M)}};
Vcc=function(M,z){var J=_.G(M,_.qp);if(J&&(J=z[J.signal]))return J();M=_.S(Object.keys(M));for(J=M.next();!J.done;J=M.next())if(J=J.value,z[J]&&(J=z[J]))return J()};
_.Mv=function(M,z,J,R){return{browseEndpoint:{browseId:M},commandMetadata:{webCommandMetadata:{url:z,rootVe:J,webPageType:R===void 0?"WEB_PAGE_TYPE_BROWSE":R}}}};
E73=function(M,z,J){var R=z=z===void 0?0:z;J=J===void 0?0:J;var D=J-R;return _.zr(M,"PPSV",void 0,void 0,(D>600?0:D<60||J<=0||R/J>.9)?0:z)};
_.zr=function(M,z,J,R,D){var N="/watch?v="+M;M={videoId:M};z&&(M.playlistId=z,N+="&list="+z);R&&(N+="&pp="+R);D&&(M.startTimeSeconds=D,N+="&t="+D+"s");z={watchEndpoint:M,commandMetadata:{webCommandMetadata:{url:N,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};J&&(z.clickTrackingParams=J);R&&(_.G(z,_.Au).playerParams=R);return z};
fpe=function(M){return{browseEndpoint:{browseId:"VL"+M},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+M,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
LT8=function(M){if(M){var z;if(M){var J=(z=_.G(M.commandMetadata,_.X9))==null?void 0:z.url;z=!(!J||J==="/service_ajax")}else z=!1;if(z)return M;var R;if(M=(R=_.G(M,_.TV))==null?void 0:R.commands)for(R=_.S(M),M=R.next();!M.done;M=R.next())if(M=LT8(M.value))return M}};
_.JN=function(M){return{runs:[{text:M}]}};
ATY=function(M,z){return M&&z?{runs:[{text:M,navigationEndpoint:z}]}:void 0};
Rs=function(M){return M?_.JN(M):void 0};
_.D8=function(M){return M?{simpleText:M}:void 0};
_.Nv=function(M){var z=M.type;M=M.payload;z={type:z};M!==void 0&&(z.payload=M);return z};
iHe=function(M,z,J){for(var R=Object.assign({},M),D=_.S(Object.keys(z)),N=D.next();!N.done;N=D.next()){N=N.value;var Z=M[N],B=z[N];if(B===void 0)delete R[N];else if(Z===void 0)R[N]=B;else if(Array.isArray(B)&&Array.isArray(Z))R[N]=J?[].concat(_.Yj(Z),_.Yj(B)):B;else if(!Array.isArray(B)&&_.E8(B)&&!Array.isArray(Z)&&_.E8(Z))R[N]=iHe(Z,B,J);else if(typeof B===typeof Z)R[N]=B;else return z=new _.xN("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:N,originalValue:Z,updateValue:B}),
_.nc(z),M}return R};
rTH=function(M){if(!M.length)return"";try{if(C$8)return C$8.decode(M);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(M)}catch(Z){}for(var z=0,J=[],R=M.length;z<R;){for(var D=0;D<1024&&z<R;){var N=M[z++];if(N<128)bHe[D++]=N;else{if(N<224)N=(N&31)<<6|M[z++]&63;else if(N<240)N=(N&15)<<12|(M[z++]&63)<<6|M[z++]&63;else{if(D+1===1024){--z;break}N=(N&7)<<18|(M[z++]&63)<<12|(M[z++]&63)<<6|M[z++]&63;N-=65536;bHe[D++]=55296|N>>10;N=56320|N&1023}bHe[D++]=N}}N=String.fromCharCode.apply(String,
bHe);D<1024&&(N=N.substring(0,D));J.push(N)}return J.join("")};
zrn=function(M,z){var J;if((J=MOb)==null?0:J.encodeInto)return z=MOb.encodeInto(M,z),z.read<M.length?M.length*4:z.written;for(var R=J=0;R<M.length;R++){var D=M.charCodeAt(R);D<128?z[J++]=D:(D<2048?z[J++]=D>>6|192:((D&64512)===55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)===56320?(D=65536+((D&1023)<<10)+(M.charCodeAt(++R)&1023),z[J++]=D>>18|240,z[J++]=D>>12&63|128):z[J++]=D>>12|224,z[J++]=D>>6&63|128),z[J++]=D&63|128)}return J};
JV8=function(M,z,J){if(z&&J&&J.buffer===z.exports.memory.buffer){var R=z.realloc(J.byteOffset,M);if(R)return new Uint8Array(z.exports.memory.buffer,R,M)}M=z?new Uint8Array(z.exports.memory.buffer,z.malloc(M),M):new Uint8Array(M);J&&M.set(J);return M};
_.kf=function(M){M=new Rre(new Djo([_.Ae(decodeURIComponent(M))]));if(N$8(M,2)){var z=PA(M);var J=M.pos;var R=M.arrayView;J=J===void 0?0:J;var D=z===void 0?-1:z;J=J===void 0?0:J;D=D===void 0?-1:D;if(R.totalLength&&D){D<0&&(D=R.totalLength-J);R.focus(J);if(!(J-R.arrayPos+D<=R.arrays[R.arrayIdx].length)){var N=R.arrayIdx,Z=R.arrayPos;R.focus(J+D-1);Z=new Uint8Array(R.arrayPos+R.arrays[R.arrayIdx].length-Z);for(var B=0,O=N;O<=R.arrayIdx;O++)Z.set(R.arrays[O],B),B+=R.arrays[O].length;R.arrays.splice(N,
R.arrayIdx-N+1,Z);R.arrayIdx=0;R.arrayPos=0;R.focus(J)}N=R.arrays[R.arrayIdx];R=new DataView(N.buffer,N.byteOffset+J-R.arrayPos,D)}else R=new DataView(new ArrayBuffer(0));R=new Uint8Array(R.buffer,R.byteOffset,R.byteLength);M.pos+=z;z=R}else z=void 0;z=z?rTH(z):void 0;M=N$8(M,4)?PA(M):void 0;R=PUe[M];if(typeof R==="undefined")throw M=new _.xN("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:M}),_.nc(M),M;return{entityTypeFieldNumber:M,entityType:R,entityId:z}};
_.Tr=function(M,z,J){J=J===void 0?0:J;var R=new S43;if(MOb)M=MOb.encode(M);else{var D=new Uint8Array(Math.ceil(M.length*1.2)),N=zrn(M,D);D.length<N&&(D=new Uint8Array(N),N=zrn(M,D));D.length>N&&(D=D.subarray(0,N));M=D}M!==void 0&&(BA(R,18),D=M.length,BA(R,D),Oh(R,D),R.buf.set(M,R.pos),R.pos+=D);M=ZMH[z];if(typeof M==="undefined")throw J=new _.xN("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),_.nc(J),J;M!==void 0&&(BA(R,32),BA(R,M));BA(R,40);BA(R,1);z=new Uint8Array(R.buf.buffer,
R.buf.byteOffset,R.pos);return encodeURIComponent(_.YG(z,J))};
kOb=function(M){M=M.key||M.id;if(!M)throw Error("yf");return M};
OMH=function(M,z){M=M===void 0?{}:M;return B$G(M,z)};
T$8=function(M,z,J,R){if(R===void 0)return R=Object.assign({},M[z]||{}),J=(delete R[J],R),R={},Object.assign({},M,(R[z]=J,R));var D={},N={};return Object.assign({},M,(N[z]=Object.assign({},M[z],(D[J]=R,D)),N))};
IBb=function(M,z,J,R,D){var N=M[z];if(N==null||!N[J])return M;R=iHe(N[J],R,D==="REPEATED_FIELDS_MERGE_OPTION_APPEND");D={};N={};return Object.assign({},M,(N[z]=Object.assign({},M[z],(D[J]=R,D)),N))};
_.Is=function(M,z,J){return M[z]?M[z][J]||null:null};
Xc0=function(){if(oBR)return oBR();var M={};oBR=Mc("PersistentEntityStoreDb",{objectStores:(M.EntityStore={addedAtVersion:1},M.EntityAssociationStore={addedAtVersion:2},M),shared:!1,upgrade:function(z,J){J(1)&&uD($_(z,"EntityStore",{keyPath:"key"}),"entityType","entityType");J(2)&&(z=$_(z,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),uD(z,"byParentEntityKey","parentEntityKey"),uD(z,"byChildEntityKey","childEntityKey"))},
version:3});return oBR()};
lBR=function(M){return _.E7(Xc0(),M)};
X2=function(M){return window.Int32Array?new Int32Array(M):Array(M)};
QR0=function(M){return _.E7(erc(),M)};
Uj8=function(M){return new ld("WRONG_DATA_TYPE",{encoderVersion:M})};
vBo=function(M){return M instanceof Error?new ld("UNKNOWN_ENCODE_ERROR",{originalMessage:M.message}):new ld("UNKNOWN_ENCODE_ERROR")};
GO8=function(M){return M instanceof Error?new ld("UNKNOWN_DECODE_ERROR",{originalMessage:M.message}):new ld("UNKNOWN_DECODE_ERROR")};
wc3=function(M,z){M=M instanceof ld?M:z(M);_.nc(M);throw M;};
xjH=function(M){M=(new TextEncoder).encode(M).subarray(0,16);var z=new Uint8Array(16);z.set(M);return z};
jRY=function(M){var z=tOY[M];if(z)return z;_.yA(new _.xN("Entity model not found.",{entityType:M}))};
_.eg=function(){pcR||(pcR=FRb());return pcR};
FRb=function(){var M,z,J;return _.k(function(R){if(R.nextAddress==1)return _.Io(R,2),R.yield(_.rQ(),4);if(R.nextAddress!=2){M=R.yieldResult;if(!M||!_.wQ()||typeof _.R3.BroadcastChannel==="undefined")return R.return();z=new Y43;return R.return(new Q$(M,z))}J=_.Qa(R);J instanceof Error&&_.nc(J);return R.return()})};
_.Uh=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1){J=M.mutations;if(!J||J.length<=0)return R.return();z&&z.dispatch(_.Nv({type:"ENTITY_LOADED",payload:J}));return R.yield(mjp(J),2)}J.length=0;_.UI(R)})};
mjp=function(M){var z;return _.k(function(J){return J.nextAddress==1?J.yield(_.eg(),2):(z=J.yieldResult)?J.yield(_.vA(z,"readwrite",function(R){for(var D={},N=_.S(M),Z=N.next(),B={};!Z.done;B={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Z=N.next())B.mutation$jscomp$4=Z.value,B.mutation$jscomp$4.entityKey&&gBR(B.mutation$jscomp$4)&&(B.mutationEntityType$jscomp$3=(0,_.gu.getAnyKey)(B.mutation$jscomp$4.payload),Z=void 0,B.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Z=function(O){return function(){return _.sRp(R,
O.mutation$jscomp$4.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(B)),B.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Z=function(O){return function(){return nB3(R,O.mutation$jscomp$4.entityKey)}}(B)),B.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Z=function(O){return function(){return hro(R,O.mutation$jscomp$4.entityKey,O.mutation$jscomp$4.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(B)),Z&&(D[B.mutation$jscomp$4.entityKey]=
D[B.mutation$jscomp$4.entityKey]?D[B.mutation$jscomp$4.entityKey].then(Z):Z()));
return KK.all(Object.values(D))}),0):J.return()})};
gBR=function(M){var z;M=(z=M.options)==null?void 0:z.persistenceOption;return M==="ENTITY_PERSISTENCE_OPTION_PERSIST"||M==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
cVR=function(M,z){var J,R;_.k(function(D){if(D.nextAddress==1)return D.yield(_.eg(),2);if(D.nextAddress!=3)return(J=D.yieldResult)?D.yield(_.vA(J,"readonly",function(N){var Z={},B=Object.keys(z).map(function(O){var X=z[O]?[].concat(_.Yj(z[O])):[];return yVp(N,O,X,Z)});
return KK.all(B).then(function(){return Z})}),3):D.return();
R=D.yieldResult;Object.keys(R).length>0&&M.dispatch(HMp(R));_.UI(D)})};
yVp=function(M,z,J,R){return Gr(M,z,J).then(function(D){R[z]=djR(J,D)})};
djR=function(M,z){if(z.length!==M.length)throw Error("Bf");return z.reduce(function(J,R,D){J[M[D]]=R;return J},{})};
u7p=function(M){var z=M.filter(function(D){var N;return(D==null?void 0:(N=D.transferEntity)==null?void 0:N.transferState)==="TRANSFER_STATE_COMPLETE"}).length,J=M.filter(function(D){var N;
return(D==null?void 0:(N=D.transferEntity)==null?void 0:N.transferState)==="TRANSFER_STATE_FAILED"}).length,R=M.filter(function(D){var N;
return(D==null?void 0:(N=D.transferEntity)==null?void 0:N.transferState)&&KR3.includes(D.transferEntity.transferState)});
if(!(z||R!=null&&R.length))return 0;z=_.$jY(R)+z;M=M.length-J;return M===0?0:Math.round(z*100/M)/100};
_.$jY=function(M){var z=[];z=z.concat.apply(z,_.Yj(M.filter(function(N){return N.streamEntity}).map(function(N){var Z=Object.assign({},N.streamEntity),B,O=(B=N.transferEntity)==null?void 0:B.transferState;
Z.streamsProgress=Z.streamsProgress||[];Z.streamsProgress=Z.streamsProgress.map(function(X){var l=Object.assign({},X);l.numBytesDownloaded=O==="TRANSFER_STATE_COMPLETE"?X.numTotalBytes:X.numBytesDownloaded;return l});
return Z}).map(function(N){return N.streamsProgress})));
var J=M=0;z=_.S(z);for(var R=z.next();!R.done;R=z.next()){var D=R.value;R=Number(D.numBytesDownloaded);D=Number(D.numTotalBytes);J+=isNaN(R)?0:R;M+=isNaN(D)?0:D}return M===0?0:Math.round(J*100/M)/100};
q4R=function(M){if(!M||!M.expirationTimestamp||!M.action)return!1;var z=(0,_.zU)()/1E3;return Number(M.expirationTimestamp)>=z};
wA=function(M){return M&&M.expirationTimestamp&&M.action?q4R(M)&&M.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.xf=function(M){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(M||"TRANSFER_STATE_UNKNOWN")};
WRG=function(M){var z=new S43;if(M!==void 0){var J=Math.ceil(Math.log2(M.length*4+2)/7);J=J===void 0?2:J;BA(z,10);z.submessagePosStack.push(z.pos);z.submessagePosStack.push(J);z.pos+=J;Oh(z,M.length*1.2);J=zrn(M,z.buf.subarray(z.pos));z.pos+J>z.buf.length&&(Oh(z,J),J=zrn(M,z.buf.subarray(z.pos)));z.pos+=J;M=z.submessagePosStack.pop();J=z.submessagePosStack.pop();for(var R=z.pos-J-M;M--;){var D=M?128:0;z.view.setUint8(J++,R&127|D);R>>=7}}z=new Uint8Array(z.buf.buffer,z.buf.byteOffset,z.pos);return(new TextDecoder("utf-8")).decode(z)};
_.tN=function(M){var z=0;M=_.S(M);for(var J=M.next(),R={};!J.done;R={transferState$jscomp$3:void 0},J=M.next()){var D=J.value,N=void 0;J=(N=D.streamEntity)!=null?N:{};N=void 0;R.transferState$jscomp$3=(N=D.transferEntity)==null?void 0:N.transferState;N=D=void 0;((D=J)==null?0:(N=D.streamsProgress)==null?0:N.length)&&J.streamsProgress.forEach(function(Z){return function(B){B=Number(Z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?B.numTotalBytes:B.numBytesDownloaded);isFinite(B)&&(z+=B)}}(R))}return z};
aBw=function(M){return M.some(function(z){var J;if(!(z==null?0:(J=z.transferEntity)==null?0:J.transferState)){var R;return!(z==null?0:(R=z.policyEntity)==null?0:R.action)||z.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return KR3.includes(z.transferEntity.transferState)})};
VOR=function(M,z){if(!z)return!1;if(_.U("of_pb_en_po_ks"))return!0;var J;M=(J=_.Is(M,"offlineVideoPolicy",_.Tr(z,"offlineVideoPolicy")))!=null?J:void 0;return!!M&&wA(M)};
_.fBp=function(M){var z=["TRANSFER_STATE_COMPLETE"];z=z===void 0?EB3:z;return M.filter(function(J){var R,D;return z.includes((D=(R=J.transferEntity)==null?void 0:R.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN")})};
LRo=function(M,z){if(z){var J,R=(J=_.Is(M,"playbackData",_.Tr(z,"playbackData")))!=null?J:null,D;J=(D=_.Is(M,"transfer",_.Tr(z,"transfer")))!=null?D:null;var N;D=(N=_.Is(M,"offlineVideoStreams",_.Tr(z,"offlineVideoStreams")))!=null?N:null;var Z;M=(Z=_.Is(M,"offlineVideoPolicy",_.Tr(z,"offlineVideoPolicy")))!=null?Z:null;if(R||J||D||M)return{playbackDataEntity:R,transferEntity:J,streamEntity:D,policyEntity:M}}};
_.jg=function(M){var z=M.playbackData;if(!z)return[];var J=[];z=_.S(Object.keys(z));for(var R=z.next();!R.done;R=z.next()){var D=R.value;if(!AV8(M,_.kf(D).entityId)&&(R=LRo(M,_.kf(D).entityId))){var N=void 0,Z=void 0;D=(Z=Number((N=_.Is(M,"playbackData",D))==null?void 0:N.streamDownloadTimestampSeconds))!=null?Z:(0,_.zU)();J.push({entity:R,streamDownloadTimestamp:D})}}return J.sort(function(B,O){var X=B.streamDownloadTimestamp,l=O.streamDownloadTimestamp;return l===X?B.entity.streamEntity&&!O.entity.streamEntity?
1:-1:l-X}).map(function(B){return B.entity})};
iMG=function(M){return _.fBp(_.jg(M))};
_.CUo=function(M){return _.jg(M).filter(function(z){var J;if(((J=z.policyEntity)==null?0:J.action)&&z.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var R;if((R=z.transferEntity)==null?0:R.transferState){var D;return KR3.includes((D=z.transferEntity)==null?void 0:D.transferState)}return!0})};
AV8=function(M,z){var J;return((J=_.Is(M,"downloadStatusEntity",_.Tr(z,"downloadStatusEntity")))==null?void 0:J.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
bMR=function(M){var z;if(M==null?0:(z=M.playbackDataEntity)==null?0:z.key)return _.kf(M.playbackDataEntity.key).entityId;var J;if(M==null?0:(J=M.transferEntity)==null?0:J.key)return _.kf(M.transferEntity.key).entityId;var R;if(M==null?0:(R=M.streamEntity)==null?0:R.key)return _.kf(M.streamEntity.key).entityId;var D;if(M==null?0:(D=M.policyEntity)==null?0:D.key)return _.kf(M.policyEntity.key).entityId};
Mxw=function(M){var z=new Set,J;M=(J=M.mainDownloadsListEntity)==null?void 0:J[rV8];var R;if(!(M==null?0:(R=M.downloads)==null?0:R.length))return z;var D;M==null||(D=M.downloads)==null||D.forEach(function(N){(N==null?0:N.videoItem)&&z.add(N.videoItem)});
return z};
pD=function(M,z){if(z){var J=_.Is(M,"mainVideoEntity",_.Tr(z,"mainVideoEntity")),R=_.Is(M,"downloadStatusEntity",_.Tr(z,"downloadStatusEntity")),D=_.Is(M,"ytMainChannelEntity",_.Tr(z,"ytMainChannelEntity")),N={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};M=LRo(M,z);R=(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.U("woffle_render_failed_download_state_ks")&&(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_FAILED";!M&&R&&(M=N);if(M&&J&&
D)return Object.assign({},{videoEntity:J,channelEntity:D},M)}};
JmG=function(M,z){return zgo(M,z)==="TRANSFER_STATE_COMPLETE"&&VOR(M,z)};
Rgp=function(M,z){if(!z)return!1;var J;M=(J=_.Is(M,"playbackData",_.Tr(z,"playbackData")))!=null?J:void 0;return!!M&&!!M.playerResponseJson};
zgo=function(M,z){if(!z)return"TRANSFER_STATE_UNKNOWN";var J=_.Is(M,"transfer",_.Tr(z,"transfer"));if(J){var R;return(R=J.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}J=_.Is(M,"offlineOrchestrationActionWrapperEntity",_.Tr(z,"offlineOrchestrationActionWrapperEntity"));M=_.Is(M,"mainVideoEntity",_.Tr(z,"mainVideoEntity"));return J||M?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
DJ8=function(M,z){if(!z)return"TRANSFER_STATE_UNKNOWN";if(M=_.Is(M,"transfer",_.Tr(z,"transfer"))){var J;return(J=M.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
NN8=function(M,z){return z&&(M=_.Is(M,"videoPlaybackPositionEntity",_.Tr(z,"videoPlaybackPositionEntity")),M==null?0:M.lastPlaybackPositionSeconds)?Number(M.lastPlaybackPositionSeconds):0};
Sbc=function(M,z){return Pnc(M).some(function(J){var R;return(J==null?void 0:(R=J.mainPlaylistEntity)==null?void 0:R.playlistId)===z})};
kCG=function(M,z,J){var R=ZNp(M,z);if(!R.length)return[];z=[];R=_.S(R);for(var D=R.next();!D.done;D=R.next()){D=D.value;var N=pD(M,D);J&&zgo(M,D)!=="TRANSFER_STATE_COMPLETE"||N&&z.push(N)}return z};
ZNp=function(M,z){if(!z)return[];var J=_.Tr(z,"mainPlaylistEntity"),R;z=(R=M.mainPlaylistEntity)==null?void 0:R[J];R=[];if(z==null||!z.videos)return R;z=_.S(z.videos);for(J=z.next();!J.done;J=z.next()){J=J.value;var D=void 0,N=void 0,Z=void 0,B=(D=M)==null?void 0:(N=D.mainPlaylistVideoEntity)==null?void 0:(Z=N[J])==null?void 0:Z.video;B&&(J=_.kf(B).entityId)&&R.push(J)}return R};
BN8=function(M,z){if(z){var J=_.Is(M,"mainPlaylistEntity",_.Tr(z,"mainPlaylistEntity")),R=_.Is(M,"mainPlaylistDownloadStateEntity",_.Tr(z,"mainPlaylistDownloadStateEntity"));M=_.Is(M,"ytMainChannelEntity",_.Tr(z,"ytMainChannelEntity"));if(R&&J)return Object.assign({},{mainPlaylistEntity:J,mainPlaylistDownloadStateEntity:R},!!M&&{channelEntity:M})}};
Pnc=function(M){return ONp(M).sort(function(z,J){return J.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedPlaylistEntities})};
ONp=function(M){var z=M.mainPlaylistDownloadStateEntity,J=[];if(!z)return J;for(var R=_.S(Object.keys(z)),D=R.next();!D.done;D=R.next()){var N=D.value;D=BN8(M,_.kf(N).entityId);var Z=void 0;N=Number((Z=z[N])==null?void 0:Z.addedTimestampMillis);Z=isNaN(N)?(0,_.zU)():N;D!==void 0&&J.push({downloadedPlaylistEntities:D,addedTimestampMillis:Z})}return J};
TN3=function(M){var z,J=(z=M.mainPlaylistVideoEntity)!=null?z:{};return new Set(Pnc(M).reduce(function(R,D){R=R===void 0?[]:R;var N,Z;D==null||(N=D.mainPlaylistEntity)==null||(Z=N.videos)==null||Z.forEach(function(B){var O;(B=(O=J[B])==null?void 0:O.video)&&R.push(B)});
return R},[]))};
Iu3=function(M){return"downloadedMusicPlaylistEntities"in M};
o9H=function(M){return"mainPlaylistEntity"in M&&"mainPlaylistDownloadStateEntity"in M};
X2R=function(M){return"videoEntity"in M&&"channelEntity"in M};
luc=function(M){var z=M.musicPlaylistDownloadMetadataEntity,J=[];if(!z)return J;for(var R=_.S(Object.keys(z)),D=R.next();!D.done;D=R.next()){D=D.value;a:{var N=M,Z=_.kf(D).entityId;if(Z){var B=_.Is(N,"musicPlaylist",_.Tr(Z,"musicPlaylist"));N=_.Is(N,"musicPlaylistDownloadMetadataEntity",_.Tr(Z,"musicPlaylistDownloadMetadataEntity"));if(B&&N){B={musicPlaylistEntity:B,musicPlaylistDownloadStateEntity:N};break a}}B=void 0}N=void 0;D=Number((N=z[D])==null?void 0:N.addedTimestampMillis);D=isNaN(D)?(0,_.zU)():
D;B!==void 0&&J.push({downloadedMusicPlaylistEntities:B,addedTimestampMillis:D})}return J};
egc=function(M){var z=new Set;M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,"musicPlaylistEntity"in J&&"musicPlaylistDownloadStateEntity"in J){J=_.S(J.musicPlaylistEntity.tracks);for(var R=J.next();!R.done;R=J.next())z.add(R.value)}return z};
QVn=function(M,z){if(z){var J=_.Is(M,"musicTrack",_.Tr(z,"musicTrack")),R=_.Is(M,"musicArtist",_.Tr(z,"musicArtist"))||{};if((M=LRo(M,z))&&J&&R)return Object.assign({},{musicTrackEntity:J,musicArtistEntity:R},M)}};
UJb=function(M){var z=M.musicTrackDownloadMetadataEntity,J=[];if(!z)return[];z=_.S(Object.keys(z));for(var R=z.next();!R.done;R=z.next()){var D=R.value;R=QVn(M,_.kf(D).entityId);var N=void 0;D=Number((N=_.Is(M,"musicTrackDownloadMetadataEntity",D))==null?void 0:N.addedTimestampMillis);N=isNaN(D)?(0,_.zU)():D;R!==void 0&&J.push({downloadedMusicEntities:R,addedTimestampMillis:N})}return J};
w2o=function(M,z){if(!z)return[];if(Object.values(v9o).includes(z))return GCo(M,z);z=_.Tr(z,"musicPlaylist");var J;M=(J=M.musicPlaylist)==null?void 0:J[z];J=[];if(M==null||!M.tracks)return J;M=_.S(M.tracks);for(z=M.next();!z.done;z=M.next())(z=_.kf(z.value).entityId)&&J.push(z);return J};
GCo=function(M,z){var J=new Set,R=luc(M).map(function(N){return N.downloadedMusicPlaylistEntities});
R=egc(R);R=_.S(R);for(var D=R.next();!D.done;D=R.next())(D=_.kf(D.value).entityId)&&J.add(D);return xJ8(M).downloadedMusicEntities.filter(function(N){var Z;if((Z=N.musicTrackEntity)!=null&&Z.videoId){N=N.musicTrackEntity;if(Z=z==="PPOM"?!0:!J.has(N.videoId))b:switch(N=N.musicVideoType,z){case "PPSE":Z=N==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Z=N!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}N=Z}else N=!1;return N}).map(function(N){var Z;
return(Z=N.musicTrackEntity)==null?void 0:Z.videoId})};
xJ8=function(M){var z=UJb(M).sort(function(J,R){return R.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return"downloadedMusicEntities"in J?J.downloadedMusicEntities:Iu3(J)?J.downloadedMusicPlaylistEntities:{}});
M=luc(M).sort(function(J,R){return R.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return"downloadedMusicEntities"in J?J.downloadedMusicEntities:Iu3(J)?J.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:z,downloadedMusicPlaylistEntities:M}};
jVc=function(M,z){z=_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?w2o(M,z):ZNp(M,z);if(!z.length)return"TRANSFER_STATE_UNKNOWN";z=z.map(function(J){return DJ8(M,J)});
return txH(z)};
txH=function(M){var z=new Set(M);if(z.has("TRANSFER_STATE_FAILED")&&z.size===1)return"TRANSFER_STATE_FAILED";z.delete("TRANSFER_STATE_FAILED");if(z.has("TRANSFER_STATE_UNKNOWN")&&z.size===1)return"TRANSFER_STATE_PRE_TRANSFER";z.delete("TRANSFER_STATE_UNKNOWN");if(z.has("TRANSFER_STATE_PRE_TRANSFER")&&z.size===1||z.size===0)return"TRANSFER_STATE_PRE_TRANSFER";M=z.has("TRANSFER_STATE_TRANSFERRING");z=z.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return M||z?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
F2=function(M){var z=M.mainVideoDownloadStateEntity,J=[];if(!z)return[];z=_.S(Object.keys(z));for(var R=z.next();!R.done;R=z.next()){var D=R.value;if(!AV8(M,_.kf(D).entityId)){R=pD(M,_.kf(D).entityId);var N=void 0,Z=void 0;D=(Z=Number((N=_.Is(M,"mainVideoDownloadStateEntity",D))==null?void 0:N.addedTimestampMillis))!=null?Z:(0,_.zU)();R!==void 0&&J.push({downloadedVideoEntities:R,addedTimestampMillis:D})}}return J};
p2H=function(M){return F2(M).sort(function(z,J){return J.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedVideoEntities})};
_.Ybo=function(M){var z=TN3(M),J=_.Yf(M),R=Mxw(M),D=F2(M).filter(function(Z){var B,O;if((Z==null?void 0:(B=Z.downloadedVideoEntities)==null?void 0:(O=B.transferEntity)==null?void 0:O.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var X,l;Z=Z==null?void 0:(X=Z.downloadedVideoEntities)==null?void 0:(l=X.videoEntity)==null?void 0:l.key;return _.U("kevlar_use_library_entity")?Z&&(R.has(Z)||J[Z]):Z&&!z.has(Z)}),N=ONp(M).filter(function(Z){return jVc(M,Z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Yj(D),_.Yj(N)).sort(function(Z,B){return B.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return F9p(Z)})};
mJ8=function(M,z){if(z&&VOR(M,z)){var J,R,D=(R=(J=_.Is(M,"playbackData",_.Tr(z,"playbackData")))!=null?J:void 0)==null?void 0:R.playerResponseJson;if(D){try{var N=JSON.parse(D);var Z=_.Is(M,"transfer",_.Tr(z,"transfer")),B=NN8(M,z);B&&(N=Object.assign({},N,{playerConfig:Object.assign({},N.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+B*1E3}}})}));N.cotn=Z==null?void 0:Z.cotn}catch(O){}return N}}};
_.sVY=function(M){var z,J,R;M=(R=(J=((z=M.downloadsPageViewConfigurationEntity)!=null?z:{})[_.mp])==null?void 0:J.smartDownloadsOptInBannerVisibility)!=null?R:{};var D;return(D=_.G(M,g9e))!=null?D:{}};
_.Yf=function(M){var z,J,R;M=(R=(J=((z=M.mainDownloadsListEntity)!=null?z:{})[_.n98])==null?void 0:J.downloads)!=null?R:[];z={};J=_.S(M);for(R=J.next();!R.done;R=J.next())M=void 0,z[(M=R.value.videoItem)!=null?M:""]=!0;return z};
hgw=function(M){var z=_.Yf(M);if(Object.keys(z).length===0)return!1;var J=M.mainVideoEntity;if(!J)return!0;J=_.S(Object.keys(J));for(var R=J.next();!R.done;R=J.next()){R=R.value;var D=_.kf(R).entityId;if(z[R]&&!AV8(M,D))return!1}return!0};
_.gA=function(M){var z=_.Yf(M);return F2(M).sort(function(J,R){return J.addedTimestampMillis-R.addedTimestampMillis}).map(function(J){return J.downloadedVideoEntities}).filter(function(J){var R;
return(J=J==null?void 0:(R=J.videoEntity)==null?void 0:R.key)&&!!z[J]})};
_.HNY=function(M){var z,J,R;M=(R=(J=((z=M.downloadsPageViewConfigurationEntity)!=null?z:{})[_.mp])==null?void 0:J.downloadsUpsellBannerVisibility)!=null?R:{};var D;return(D=_.G(M,ymb))!=null?D:{}};
F9p=function(M){return"downloadedVideoEntities"in M?M.downloadedVideoEntities:"downloadedPlaylistEntities"in M?M.downloadedPlaylistEntities:{}};
cm8=function(M){var z=_.Yf(M),J=TN3(M),R=F2(M).filter(function(D){var N,Z;return(D=D==null?void 0:(N=D.downloadedVideoEntities)==null?void 0:(Z=N.videoEntity)==null?void 0:Z.key)&&!z[D]&&!J.has(D)});
M=ONp(M);return[].concat(_.Yj(R),_.Yj(M)).sort(function(D,N){return N.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return F9p(D)})};
_.sh=function(M){if(!_.U("kevlar_use_library_entity"))return cm8(M);var z=F2(M).filter(function(R){var D,N;if(D=R=R==null?void 0:(D=R.downloadedVideoEntities)==null?void 0:(N=D.videoEntity)==null?void 0:N.key){var Z,B,O;D=((B=(Z=M.mainDownloadsListEntity)==null?void 0:Z[rV8])==null?0:(O=B.downloads)==null?0:O.length)?Mxw(M).has(R):!1}return D}),J=ONp(M);
return[].concat(_.Yj(z),_.Yj(J)).sort(function(R,D){return D.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return F9p(R)})};
dJp=function(M){var z=_.Yf(M),J=TN3(M);return p2H(M).filter(function(R){var D;return(R=R==null?void 0:(D=R.videoEntity)==null?void 0:D.key)&&!z[R]&&!J.has(R)})};
K9R=function(M){if(!_.U("kevlar_use_library_entity"))return dJp(M);var z=_.Yf(M),J=Mxw(M);return p2H(M).filter(function(R){var D;return(R=R==null?void 0:(D=R.videoEntity)==null?void 0:D.key)&&!z[R]&&J.has(R)})};
$Je=function(M,z){z=_.Tr(z,"settingEntity");var J,R,D;return!!((D=(R=((J=M.settingEntity)!=null?J:{})[z])==null?void 0:R.settingOptionValue)!=null?D:{}).boolValue};
_.nD=function(M){var z=_.gA(M);if(aBw(z))return 0;var J=[];z=_.S(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;var D=void 0,N=void 0;if((D=R)==null?0:(N=D.videoEntity)==null?0:N.key)D=_.kf(R.videoEntity.key).entityId,R=M,D=_.Tr(D,"mainVideoDownloadStateEntity"),R=_.Is(R,"mainVideoDownloadStateEntity",D),(R=Number(R==null?void 0:R.addedTimestampMillis))&&J.push(R)}return Math.max.apply(Math,_.Yj(J))};
_.hN=function(M){return M.ui.richGridMiniMode};
_.y$=function(M){return M.ui.richGridItemsPerRow};
_.ux3=function(M){return M.ui.richGridSlimItemsPerRow};
_.qb3=function(M){return M.ui.guideIsExpanded};
_.HA=function(M){return M.ui.miniplayerIsActive};
W9Y=function(M){return M.ui.singleOptionSurveyIsActive};
_.cA=function(M){var z;return((z=M.ui)==null?void 0:z.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.aup=function(M){return _.cA(M)==="WEB_PAGE_TYPE_WATCH"};
_.Vx8=function(M){return _.cA(M)==="WEB_PAGE_TYPE_SHORTS"};
_.E98=function(M){return M.ui.inlinePreviewIsActive};
_.fuo=function(M){return M.ui.inlinePreviewIsEnabled};
_.L9G=function(M){return M.ui.miniplayerPlaybackState};
_.dA=function(M){return M.ui.isOnline};
_.Amp=function(M){return M.ui.frostedGlassMode};
_.KD=function(M,z){return zgo(M.entities,z)};
_.$f=function(M,z){return jVc(M.entities,z)};
iNG=function(M,z){var J;if(z){var R;M=(R=_.Is(M.entities,"offlineVideoPolicy",_.Tr(z,"offlineVideoPolicy")))==null?void 0:R.action}else M=void 0;return(J=M)!=null?J:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Cnb=function(M,z){var J;z?(M=_.Is(M.entities,"offlineVideoPolicy",_.Tr(z,"offlineVideoPolicy")),M=Number(M==null?void 0:M.expirationTimestamp)):M=void 0;return(J=M)!=null?J:0};
_.bNp=function(M){return _.jg(M.entities).length};
rm0=function(M,z){return pD(M.entities,z)};
ME8=function(M,z){return BN8(M.entities,z)};
ud=function(M,z){return(M=pD(M.entities,z))?_.$jY([M]):0};
_.zyc=function(M,z){var J=_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(J){var R=M.entities;var D=w2o(R,z);if(D.length){var N=[];D=_.S(D);for(var Z=D.next();!Z.done;Z=D.next())(Z=QVn(R,Z.value))&&N.push(Z);R=N}else R=[]}else R=kCG(M.entities,z);var B;if(J){var O=M.entities;z?(z=_.Tr(z,"musicPlaylist"),O=(B=O.musicPlaylist)==null?void 0:B[z],B=O!=null&&O.tracks?O.tracks.length:0):B=0}else B=M.entities,z?(z=_.Tr(z,"mainPlaylistEntity"),B=(O=B.mainPlaylistEntity)==null?void 0:O[z],B=B!=null&&B.videos?
B.videos.length:0):B=0;return R.length!==B?0:R?u7p(R):0};
_.JE8=function(M){return M.download.isLeaderTab};
_.Rye=function(M,z,J){if(!z&&J){var R=M.entities;if(J){var D=WRG(J),N,Z;z=(Z=(N=_.Is(R,"offlineabilityEntity",_.Tr(D,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else N=M.entities,z?(Z=WRG(z),z=(D=(R=_.Is(N,"offlineabilityEntity",_.Tr(Z,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?D:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return z};
Dn0=function(M,z){M=M.entities;if(z){z=WRG(z);var J,R;z=(R=(J=_.Is(M,"offlineabilityEntity",_.Tr(z,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else z="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return z};
_.N_n=function(M){var z=M.entities;M=_.dA(M);var J=$Je(z,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.U("kevlar_modern_downloads_page")&&J)var R=!1;else{var D,N;z=(N=(D=((R=z.downloadsPageViewConfigurationEntity)!=null?R:{})[_.mp])==null?void 0:D.smartDownloadsOptInBannerVisibility)!=null?N:{};R=M?!!z.visibleWithConnection:!!z.visibleWithoutConnection}return R};
_.P_e=function(M){return $Je(M.entities,"SMART_DOWNLOADS_ENABLED")};
_.SE8=function(M){return hgw(M.entities)};
ZZR=function(M){return _.gA(M.entities).every(function(z){var J;return(z==null?void 0:(J=z.transferEntity)==null?void 0:J.transferState)&&!KR3.includes(z.transferEntity.transferState)})};
_.kNH=function(M){var z,J,R,D=(R=(J=((z=M.entities.downloadsPageViewConfigurationEntity)!=null?z:{})[_.mp])==null?void 0:J.downloadsUpsellBannerVisibility)!=null?R:{};return _.dA(M)?!!D.visibleWithConnection:!!D.visibleWithoutConnection};
_.B_3=function(M,z){return AV8(M.entities,z)};
OZH=function(M,z){if(z){var J,R;M=(R=(J=_.Is(M.entities,"downloadStatusEntity",_.Tr(z,"downloadStatusEntity")))==null?void 0:J.downloadState)!=null?R:"DOWNLOAD_STATE_UNKNOWN"}else M="DOWNLOAD_STATE_UNKNOWN";return M};
qv=function(M,z){return NN8(M.entities,z)};
Xaw=function(M){M=_.T_3(M);var z=M.hours===void 0?0:M.hours,J=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds,D=z>0;M=[];D&&(z=_.I1e(z),M.push(z));z=D;z=z===void 0?!1:z;J=(["af","be","lt"].includes(_.WA)||z)&&J<10?o58().format(J):(new Intl.NumberFormat("en-u-nu-latn")).format(J);M.push(J);J=o58().format(R);M.push(J);J=":";"da fi id si sr sr-Latn".split(" ").includes(_.WA)&&(J=".");return M.join(J)};
_.T_3=function(M){var z=M.hours||0,J=M.minutes||0,R=M.seconds||0;z=R+J*60+z*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;if(z<=0)return{hours:0,minutes:0,seconds:0};M=z;z=Math.floor(M/3600);M%=3600;J=Math.floor(M/60);R=Math.floor(M%60);return{hours:z,minutes:J,seconds:R}};
_.I1e=function(M){M=(new Intl.NumberFormat("en-u-nu-latn")).format(M);var z=["fr"],J="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(_.WA)?M.replace(",","\u00a0"):z.includes(_.WA)?M.replace(",","\u202f"):J.includes(_.WA)?M.replace(",","."):M};
o58=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
l1o=function(M){try{return(new _.as(5)).format(M)}catch(z){}};
V$=function(M){return{thumbnailOverlayDownloadingRenderer:{state:M}}};
eyH=function(M){if(M=l1o(M))return{thumbnailOverlaySidePanelRenderer:{text:_.JN(M),icon:{iconType:"PLAYLISTS"}}}};
QQe=function(){var M=_.e9("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.JN(M),icon:{iconType:"PLAY_ALL"}}}};
Unn=function(M){M=_.Eh(M,2);return _.WA!=="ru"&&_.WA!=="es_419"&&_.WA!=="es-419"&&_.WA!=="es"&&_.WA!=="es_US"&&_.WA!=="es-US"&&_.WA!=="fr"&&_.WA!=="pl"&&_.WA!=="it"&&_.WA!=="nl"&&_.WA!=="uk"&&_.WA!=="fr_CA"&&_.WA!=="fr-CA"||M===""?M:M[0].toLocaleUpperCase()+M.substring(1)};
GNn=function(M){return function(z){var J=M(),R=_.Eh(z,J.dateFormat);z=_.Eh(z,J.timeFormat);var D=v5b.DATETIMEFORMATS[J.joinerStyle];D=D.replace(/'(?!')/g,"");D=D.replace("{0}",z);D=D.replace("{1}",R);return J.capitalize(D)}};
waw=function(M){return M?typeof M.seconds==="string"&&(M.nanos===void 0||typeof M.nanos==="number"):!1};
xnH=function(M){return new Date(Number(M.seconds)*1E3+(M.nanos||0)*1E-6)};
_.Eh=function(M,z){if(typeof M.getTime==="function")M={date:M};else if(waw(M))M={date:xnH(M)};else if(typeof waw(M.timestamp)&&typeof M.i18nInternalSecondsEastOfUtc==="number")M={date:xnH(M.timestamp),timeZone:fD(-M.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(M));var J=M;M=J.date;J=J.timeZone;z=tEG(z).format(M,J);_.WA==="zh-TW"&&(M=J?Number(tEG("H").format(M,J)):M.getHours(),z=M<5?z.replace("\u4e0a\u5348","\u51cc\u6668"):M<8?z.replace("\u4e0a\u5348","\u65e9\u4e0a"):M<12?
z.replace("\u4e0a\u5348","\u4e0a\u5348"):M<13?z.replace("\u4e0b\u5348","\u4e2d\u5348"):M<19?z.replace("\u4e0b\u5348","\u4e0b\u5348"):z.replace("\u4e0b\u5348","\u665a\u4e0a"));return z};
tEG=function(M){if(jQ8.has(M))return jQ8.get(M);var z=pa0(M);z=F_p(z);YEH!==!0&&(YEH=!0);mnn=!0;mnn=!1;z=new LD(z,v5b);jQ8.set(M,z);return z};
pa0=function(M){return(new LD(M,v5b)).patternParts_.map(function(z){return z.type===0?"'"+z.text+"'":z.text}).join("")};
F_p=function(M){return _.WA==="en"||_.WA==="es_US"||_.WA==="es-US"?M:M.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(z,J,R){return"H".repeat(J.length)+R})};
dnw=function(M,z){g5n||(_.AN=_.sQ0,g5n=new n5H);var J=g5n;a:if(M=hye(M),z=hye(z||new Date),M>z)J=M.getTime()-z.getTime()>6048E5?_.Eh(M,1):yEo(M);else{for(var R=0;HZn(M,12*(R+1))<z;)++R;if(R>0)J=J.format(-R,0);else{for(R=0;HZn(M,R+1)<z;)++R;if(R>0)J=J.format(-R,2);else{M=z.getTime()-M.getTime();z=_.S(cER);for(R=z.next();!R.done;R=z.next()){R=R.value;var D=R.unit,N=Math.floor(M/R.unitDuration);if(N>=(R.threshold===void 0?1:R.threshold)){J=J.format(-N,D);break a}}J=J.format(-0,7)}}}return J};
hye=function(M){if(typeof M.getTime==="function")return M;if(waw(M))return xnH(M);throw Error("Df`"+JSON.stringify(M));};
HZn=function(M,z){for(var J=0,R;;++J)if(R=new Date(M.getFullYear(),M.getMonth()+z,M.getDate()-J,M.getHours(),M.getMinutes(),M.getSeconds()),R.getMonth()===(M.getMonth()+z)%12)return R};
_.id=function(M){return{runs:[{text:M}]}};
_.CD=function(M){if(M&&M.simpleText)return M.simpleText;var z="";if(M&&M.runs)for(var J=0;J<M.runs.length;J++)M.runs[J].text&&(z+=M.runs[J].text);return z};
$n8=function(M,z,J,R){return M.videoEntity&&!M.policyEntity&&J!=="DOWNLOAD_STATE_FAILED"?[V$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:wA(M.policyEntity)&&z!=="TRANSFER_STATE_FAILED"&&z!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?z==="TRANSFER_STATE_PAUSED_BY_USER"?[V$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.xf(z)?[V$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:M.videoEntity.lengthSeconds?K_o(M.videoEntity.lengthSeconds,R):[]:
[V$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
K_o=function(M,z){var J=[{thumbnailOverlayTimeStatusRenderer:{text:_.JN(Xaw({seconds:M})),style:"DEFAULT"}}];z&&(M=z<=0||M<=0?0:z>=M?100:Math.ceil(z*100/M),M>0&&J.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:M}}));return J};
uf0=function(M,z,J,R,D){if(z==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(_.xf(z)||z==="TRANSFER_STATE_PRE_TRANSFER")var N=[V$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Z,B;if(z==="TRANSFER_STATE_COMPLETE"&&((Z=M.mainPlaylistEntity)==null?0:(B=Z.videos)==null?0:B.length)){if(_.U("web_modern_collections_v2")){var O;var X=(N=M.mainPlaylistEntity)==null?void 0:(O=N.videos)==null?void 0:O.length;N=(N=l1o(X))?{thumbnailOverlayBottomPanelRenderer:{text:_.JN(N),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var l;N=eyH((X=M.mainPlaylistEntity)==null?void 0:(l=X.videos)==null?void 0:l.length)}var e;N=[QQe(),Object.assign({},(e=N)!=null?e:{})]}else N=[]}e=N;a:if(z==="TRANSFER_STATE_PRE_TRANSFER")J=Rs(_.e9("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE")J=Rs(_.e9("WAITING_TO_DOWNLOAD"));else if(_.xf(z))J=Math.floor(J*100).toString(),J=Rs(_.e9("DOWNLOADING_PERCENT",{percent:J},"Downloading... "+J+"%"));else{if(R&&(_.U("playlist_is_offline_selector_killswitch")&&
(D=_.JF().resolve(_.VS).isNetworkAvailable()),D)){J=ATY(_.e9("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),fpe(R));break a}J=void 0}z=z==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.e9("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},e.length?{thumbnailOverlays:e}:{},J?{viewPlaylistText:J}:{viewPlaylistText:_.id("")},z.length?{badges:z}:{})};
qEG=function(M,z,J,R,D,N){if(z==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(R==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Z=$n8(M,z,R);if(M.videoEntity&&!M.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"){var B=_.e9("WAITING_TO_DOWNLOAD");if(B)return{shortViewCountText:_.id(B),publishedTimeText:void 0,thumbnailOverlays:Z}}if(!wA(M.policyEntity)){N=M.policyEntity&&!q4R(M.policyEntity)?_.e9("DOWNLOAD_EXPIRED",{},"Download expired"):
_.e9("TRANSFER_FAILED",{},"Download failed");var O;if((O=M.policyEntity)==null?0:O.shortMessageForDisabledAction)N=M.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Rs(N),publishedTimeText:void 0,thumbnailOverlays:Z}}if(z==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.id(_.e9("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Z};if(z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.id(_.e9("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Z};if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(O=_.e9("WAITING_TO_DOWNLOAD"),R==="DOWNLOAD_STATE_PAUSED"&&(O=_.e9("DOWNLOAD_PAUSED",{},"Download paused")),O))return{shortViewCountText:_.id(O),publishedTimeText:void 0,thumbnailOverlays:Z};if(_.xf(z))return M=Math.floor(J*100).toString(),{shortViewCountText:_.id(_.e9("DOWNLOADING_PERCENT",{percent:M},"Downloading... "+M+"%")),publishedTimeText:void 0,thumbnailOverlays:Z};z=void 0;M.videoEntity.publishedTimestampMillis&&
(z=new Date,D&&(z=new Date(D)),z=Rs(dnw(new Date(Number(M.videoEntity.publishedTimestampMillis)),z)));D=[];_.U("kevlar_woffle_badge_killswitch")||(D=[{metadataBadgeRenderer:{label:_.e9("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var X;M=Rs((X=M.videoEntity.localizedStrings)==null?void 0:X.viewCount);return Object.assign({},N?{shortViewCountText:void 0}:{shortViewCountText:M},N?{}:{publishedTimeText:z},{badges:D,thumbnailOverlays:Z})};
a1p=function(M,z){M=M===void 0?W_3:M;switch(z.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:z.payload.playlistId,inviteLinkURL:z.payload.inviteLinkUrl};default:return M}};
E5p=function(M,z){M=M===void 0?VEo:M;switch(z.type){case "SET_CURRENT_FORM_ID":return z=z.payload.formId,M.currentFormId===z?M:{currentFormId:z,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var J=z.payload;z=J.groupId;J=J.command;if(M.currentFormId){var R=Object.assign({},M.commandsMap);R[z]=J;M=Object.assign({},M,{commandsMap:R})}return M;case "RESET_COMMAND_MAP":return Object.assign({},M,{commandsMap:{}});default:return M}};
L_b=function(M,z){M=M===void 0?f1w:M;switch(z.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},M,{guideIsExpanded:z.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},M,{scrollAtTop:z.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},M,{guideIsVisibleButNotPersistent:z.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},M,{miniplayerIsActive:z.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},M,{singleOptionSurveyIsActive:z.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},M,{slimlineSurveyRatingSelectedIndex:z.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},M,{richGridMiniMode:z.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},M,{richGridItemsPerRow:z.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},M,{richGridSlimItemsPerRow:z.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},M,{richGridContainerWidth:z.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},M,{richGridStyle:z.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:z.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},M,{inlinePreviewIsActive:z.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},M,{inlinePreviewIsEnabled:z.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},M,{darkModeIsEnabled:z.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
M,{miniplayerPlaybackState:z.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},M,{tabGesturesIsActive:z.payload});case "SET_ONLINE_STATUS":return Object.assign({},M,{isOnline:z.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},M,{chipBarIsSticky:z.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},M,{frostedGlassMode:z.payload});default:return M}};
iZG=function(M,z){M=M===void 0?AEb:M;switch(z.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},M,{transcription:z.payload});case "SET_OVERLAY_STATE":return Object.assign({},M,{overlay:z.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return M}};
csR=function(){return lS(Object.assign({},{continuation:Fg8,download:YQH,reportChannelAbuse:mK0,share:gKp,talkToRecs:sYp,ui:L_b,voiceSearch:iZG,watch:nKb,ypc:h1G,shorts:ysG,radioButtonGroup:E5p,collabInviteLink:a1p},HEH))};
$Ko=function(){return _.U("web_player_entities_middleware")?new bd(csR(),[dK8,KgG]):new bd(csR(),[dK8])};
_.rA=function(){uCw||(uCw=$Ko());return uCw};
qQH=function(M,z,J){if(M.length)return{titleText:_.JN(z!=null?z:_.e9("DOWNLOADS",void 0,"Downloads")),contents:M.map(function(R){var D=R.videoEntity;R={videoId:D.videoId,title:Rs(D.title),shortBylineText:Rs(R.channelEntity.title),thumbnail:D.thumbnail};var N=D.videoId?qv(_.rA().getState(),D.videoId):0;D.videoId&&J?R.navigationEndpoint=_.zr(D.videoId,J,void 0,void 0,N):D.videoId&&(R.navigationEndpoint=E73(D.videoId,N,D.lengthSeconds));D.lengthSeconds&&(R.thumbnailOverlays=K_o(D.lengthSeconds,N));return{playlistPanelVideoRenderer:R}}),
totalVideos:M.length}};
Wgo=function(M){return(M=(0,_.gu.getValueByKeys)(M,"playlistId"))?{playlistId:M}:null};
aJ8=function(){return{}};
Vu8=function(M,z){return new _.If(function(J,R){M.then(function(D){if(D){if(D=z(D))return J(D);R()}},R)})};
EK3=function(M){var z,J,R,D=(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.autoplay)==null?void 0:R.autoplay,N,Z,B;z=(N=M.contents)==null?void 0:(Z=N.twoColumnWatchNextResults)==null?void 0:(B=Z.playlist)==null?void 0:B.playlist;return D&&z&&z.playlistId?{rawResponse:M,autoplayRenderer:D,playlistPanelRenderer:z,playlistId:z.playlistId}:null};
Lg8=function(M){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(M.length===1)return M[0];var J=fJp[z];if(J){J=new RegExp(J);for(var R=_.S(M),D=R.next();!D.done;D=R.next())if(D=D.value,J.exec(D))return D}var N=[];Object.entries(fJp).forEach(function(Z){var B=_.S(Z);Z=B.next().value;B=B.next().value;z!==Z&&N.push(B)});
J=new RegExp(N.join("|"));M.sort(function(Z,B){return Z.length-B.length});
R=_.S(M);for(D=R.next();!D.done;D=R.next())if(D=D.value,!J.exec(D))return D;return M[0]};
_.MG=function(M){return"/youtubei/v1/"+Lg8(M)};
_.zh=function(M){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:M}}}}};
_.J9=function(M){return _.zh(_.id(M))};
Asp=function(M,z){var J={mode:"NORMAL"};M&&(J.autoplayVideo=M.navigationEndpoint,J.nextButtonVideo=M.navigationEndpoint);z&&(J.previousButtonVideo=z.navigationEndpoint);return J};
bEc=function(M,z,J){if(!J||!J.sets)return{sets:[Asp(M,z)]};var R=J.sets.find(function(Z){return Z.mode==="NORMAL"}),D=(0,_.gu.unsafeClone)(J);
if(!R)return D.sets.push(Asp(M,z)),D;if(!M)return J;R=_.gu.getValueByKeys.apply(null,[R].concat(_.Yj(iE3)));var N=_.gu.getValueByKeys.apply(null,[M].concat(_.Yj(CT8)));if(R===N)return J;D.sets=D.sets.filter(function(Z){return Z.mode!=="NORMAL"});
D.sets.push(Asp(M,z));return D};
rs8=function(M){return!!M.playlistPanelVideoRenderer&&!M.playlistPanelVideoRenderer.unplayableText};
MC8=function(M){return!!M.playlistPanelVideoRenderer&&!!M.playlistPanelVideoRenderer.title};
zjc=function(M,z){if(z.contents&&!(M>=z.contents.length)&&(M=z.contents.slice(M).find(rs8)))return M.playlistPanelVideoRenderer};
Jpp=function(M,z){if(z.contents)return(z=z.contents.find(function(J){return!!J.playlistPanelVideoRenderer&&J.playlistPanelVideoRenderer.videoId===M}))?z.playlistPanelVideoRenderer:void 0};
Rjp=function(M,z){return z.contents?z.contents.findIndex(function(J){return!!J.playlistPanelVideoRenderer&&J.playlistPanelVideoRenderer.videoId===M}):-1};
D4e=function(M,z){return z.contents?z.contents.findIndex(function(J){return!!J.playlistPanelVideoRenderer&&J.playlistPanelVideoRenderer.playlistSetVideoId===M}):-1};
Nb8=function(M,z){M.contents&&z!==-1&&M.contents.splice(z,1).length===1&&M.totalVideos!==void 0&&(--M.totalVideos,delete M.videoCountText)};
_.Pl8=function(M){var z=[];if(!M||!M.contents)return z;M=_.S(M.contents);for(var J=M.next();!J.done;J=M.next())J=J.value,J.playlistPanelVideoRenderer&&J.playlistPanelVideoRenderer.videoId&&z.push(J.playlistPanelVideoRenderer.videoId);return z};
_.SP0=function(M){if(M&&M.contents)return(M=M.contents.find(function(z){return!!z.playlistPanelVideoRenderer&&!!z.playlistPanelVideoRenderer.selected})||M.contents[M.currentIndex])?M.playlistPanelVideoRenderer:void 0};
Zk8=function(M,z,J,R,D,N,Z){D=D===void 0?!1:D;N=N===void 0?!1:N;Z=Z===void 0?!1:Z;if(M.contents&&M.contents.length!==0){R&&(M.contents=M.contents.filter(R));R=M.contents.length;for(var B=0;B<R;B++){var O=M.contents[B].playlistPanelVideoRenderer;O&&(B===z?(N&&delete O.menu,O.indexText=_.id("\u25b6")):D||M.isInfinite||O.indexText===void 0?delete O.indexText:O.indexText=_.id((B+1+J).toString()))}M.currentIndex=z+J;Z&&(delete M.videoCountText,M.totalVideos=R)}};
_.Rz=function(M){M=ksb(M);if(M){var z=M.length;var J=-69%z;J<0&&(J=z+J);M=M.slice(z-J)+M.slice(0,z-J)}else M="";J="";for(z=0;z<M.length&&M[z]!==Bbn;z++)J+=M[z];return J};
_.Okp=function(M,z){var J=document.body;z=z===void 0?function(B){return B}:z;
var R,D=null;M=_.S(M);for(R=M.next();!R.done;R=M.next()){var N=R.value;R="div";N[2]&&(R=z(N[2]));R=document.createElement(R);D||(D=R);var Z=N[0];N=N[1];Z&&(R.id=z(Z));if(N)for(N=_.S(N),Z=N.next();!Z.done;Z=N.next())R.classList.add(z(Z.value));J.appendChild(R);J=R}return[D,J]};
Tbb=function(M,z){for(var J="",R=0;R<z;R++)J+=M.charAt(Math.floor(Math.random()*M.length));return J};
DS=function(M){return Tbb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",M)};
NG=function(M){return Tbb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",M)};
PP=function(M){return Tbb("0123456789",M)};
Se=function(){var M=performance.now(),z=new Date;var J="2."+z.getFullYear()+String(z.getMonth()+1).padStart(2,"0")+String(z.getDate()).padStart(2,"0");for(var R,D=Math.floor(Math.random()*11)+15,N=[],Z=0;Z<D;Z++)N.push(Math.floor(Math.random()*26476865)+24547720);R=N.join(",");var B=DS(10),O=DS(100),X=DS(102),l=DS(106),e=DS(108),Q=DS(11),v=DS(1140),x=DS(123),m=DS(14),y=DS(16),H=DS(1900),q=DS(23),b=DS(26),V=DS(34),E=DS(397),L=DS(44),z8=DS(5),O8=DS(72),I3=DS(74),vY=DS(75),te=DS(88),wR=DS(91),qb="rr4---sn-q4fl6n66 rr1---sn-q4fl6ns7 rr1---sn-5hne6nsd rr5---sn-5hneknek rr1---sn-q4fzenee rr5---sn-hgn7rn7y rr2---sn-aigzrne7 rr2---sn-q4flrnee rr1---sn-4g5e6nze rr1---sn-q4flrnl7 rr4---sn-q4flrnee rr3---sn-q4fl6ndz rr5---sn-q4fl6n6d rr5---sn-hgn7rnll rr4---sn-q4fl6ns6 rr3---sn-q4fl6ndl rr1---sn-q4fl6nsr rr5---sn-q4fl6nsk rr2---sn-5hneknek rr5---sn-5hneknee".split(" ");
var cY=qb[Math.floor(Math.random()*qb.length)];var Pu=(new Date("2010-01-01")).getTime();var yV=(new Date(Pu+Math.random()*((new Date).getTime()-Pu))).toISOString().split("T")[0];for(var Ik,rR=[],ea=0;ea<4;ea++)rR.push(Math.floor(Math.random()*100));Ik=rR.join(".");var ok=Number(PP(5)),s$=Number(PP(6)),pw=Number(PP(7)),iJ=Number(PP(9)),Nb=PP(1),MB=PP(10),vu=PP(16),Tc=PP(19),Gt=PP(2),zc=PP(20),My=PP(21),MN=PP(3),ZV=PP(4),Lv=PP(5),em=PP(6),FQ=PP(7),Yp=PP(8),Gc=PP(9);var By=Tbb("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Xl=[NG(5),NG(5),NG(5)].join("%2C"),F3=[PP(3),PP(5),PP(5)].join("%2C"),UF=NG(0),qB=NG(1),Ht=NG(10),Vu=NG(108),Rr=NG(11),NH=NG(12),o$=NG(13),wc=NG(14),PW=NG(15),dV=NG(16),CY=NG(17),Fn=NG(18),dR=NG(19),VH=NG(2),QV=NG(20),Iv=NG(22),gi=NG(23),ti=NG(24),xp=NG(266),wg=NG(3),yu=NG(30),ls=NG(34),lJ=NG(35),wu=NG(36),Na=NG(4),di=NG(40),hP=NG(43),mh=NG(47),Bf=NG(5),Yr=NG(6),bN=NG(7),f2=NG(75),iG=NG(8),Qu=NG(80),Fl=NG(9),Sm="https://www."+NG(12)+".com",kr={},VW={},ys={},Ke={},eF={},kL={},Bz={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:R}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:J},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+NG(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:J},{key:"client.name",value:"WEB"},{key:"client.fexp",value:R}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:My+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+NG(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:di,ypcGetOfflineUpsellEndpoint:{params:Qu}},trackingParams:lJ+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&cnr="+Gt+"&ratebypass=yes&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&c=WEB&txp="+FQ+"&n="+y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:s$,width:640,height:360,lastModified:vu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FQ,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+F3+"&mn="+
Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&cnr="+Gt+"&ratebypass=yes&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&c=WEB&txp="+FQ+"&n="+y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Vu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:s$,width:1280,
height:720,lastModified:vu,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FQ,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+Xl+"&ms="+
Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&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="+e,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:pw,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:pw,approxDurationMs:FQ},{itag:248,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+Xl+"&ms="+Xl+"&mv="+
qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:pw,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:pw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:399,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&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="+e,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:pw,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:pw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:136,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:pw,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:s$,approxDurationMs:FQ},{itag:247,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+
Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:pw,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:398,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Gc+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:pw,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Gc,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:135,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:s$,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:s$,approxDurationMs:FQ},{itag:244,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+
Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Vu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:s$,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:397,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&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="+e,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:s$,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:134,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:s$,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:s$,highReplication:!0,approxDurationMs:FQ},{itag:243,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:s$,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:396,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:s$,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:133,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:s$,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:s$,approxDurationMs:FQ},{itag:242,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+
Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:s$,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:395,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:s$,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:s$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:160,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:s$,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ok,approxDurationMs:FQ},{itag:278,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+F3+"&mn="+
Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:s$,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ok,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:394,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&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="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=video%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&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="+e,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ok,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ok,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FQ},{itag:140,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=audio%2Fmp4&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:s$,
initRange:{start:"0",end:"631"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:s$,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FQ,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+
Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=audio%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+FQ+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:ok,initRange:{start:"0",end:"265"},indexRange:{start:MN,
end:ZV},lastModified:vu,contentLength:FQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ok,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FQ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=audio%2Fwebm&ns="+
ti+"&gir="+wg+"&clen="+FQ+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:ok,initRange:{start:"0",end:"265"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:FQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ok,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FQ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+cY+".googlevideo.com/videoplayback?expire="+MB+"&ei="+q+"&ip="+Ik+"&id=o-AF"+hP+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+F3+"&mn="+Xl+"&ms="+Xl+"&mv="+qB+"&mvi="+Nb+"&pl="+Gt+"&initcwndbps="+FQ+"&siu="+Nb+"&spc="+L+"&vprv="+Nb+"&svpuc="+Nb+"&mime=audio%2Fwebm&ns="+ti+"&gir="+wg+"&clen="+Yp+"&dur="+Yp+"&lmt="+vu+"&mt="+MB+"&fvip=3&keepalive="+wg+"&c=WEB&txp="+
FQ+"&n="+dV+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:s$,initRange:{start:"0",end:"265"},indexRange:{start:MN,end:ZV},lastModified:vu,contentLength:Yp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:s$,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FQ,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="+Gc+"&docid="+Q+"&ei="+q+"&feature="+B+"&fexp="+UF+"&ns="+VH+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qB+"&el="+Ht+"&len="+ZV+"&of="+Iv+
"&uga="+Gt+"&vm="+xp},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Gc+"&docid="+Q+"&ei="+q+"&feature="+B+"&fexp="+UF+"&ns="+VH+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qB+"&el="+Ht+"&len="+ZV+"&of="+Iv+"&uga="+Gt+"&vm="+xp},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Gc+"&docid="+Q+"&ei="+q+"&feature="+B+"&fexp="+UF+"&ns="+VH+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
qB+"&el="+Ht+"&len="+ZV+"&of="+Iv+"&uga="+Gt+"&vm="+xp},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+q+"&m="+te+"&oid="+Iv+"&plid="+y+"&pltype="+bN+"&ptchn="+Iv+"&ptk="+m+"&video_id="+Q},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Gc+"&docid="+Q+"&ei="+q+"&event="+wc+"&feature="+B+"&fexp="+UF+"&ns="+VH+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qB},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+Q+"&ei="+q+"&feature="+
B+"&len="+ZV+"&ns="+VH+"&plid="+y+"&ver="+Nb,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+wg+"&opi="+Gc+"&xoaf="+Nb+"&hl="+VH+"&ip="+Ik+"&ipbits="+Nb+"&expire="+MB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ik+"&key="+wg+"&lang="+z8,name:{simpleText:CY},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+wg+"&opi="+Gc+"&xoaf="+Nb+"&hl="+VH+"&ip="+Ik+"&ipbits="+Nb+"&expire="+MB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ik+"&key="+wg+"&kind="+wg+"&lang="+VH,name:{simpleText:wc},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:Rr,title:CY,lengthSeconds:"1155",keywords:[Rr,wc,NH,Na],
channelId:ti,isOwnerViewing:!1,shortDescription:PW,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+ls,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+ls,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:FQ,author:o$,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:FQ,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Iv+"/featured_channel.jpg?v="+iG,width:40,height:40}]},trackingParams:lJ+"=",navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"/channel/"+ti,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ti}},channelName:o$,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Ht}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ti,showPreferences:!1,subscribedButtonText:{runs:[{text:Fl}]},unsubscribedButtonText:{runs:[{text:dV}]},trackingParams:lJ+"=",unsubscribeButtonText:{runs:[{text:o$}]},serviceEndpoints:[{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ti],params:iG}},{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:di,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lJ+"=",dialogMessages:[{runs:[{text:wc},{text:dR},{text:Ht}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Na}]},serviceEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ti],params:iG}},accessibility:{label:Ht},trackingParams:lJ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yr}]},accessibility:{label:Bf},trackingParams:lJ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Fl}},unsubscribeAccessibility:{accessibilityData:{label:Fn}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Yp},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ti],params:iG}},unsubscribeCommand:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ti],params:iG}},addToWatchLaterCommand:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Rr,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Rr}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Q+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+wu+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Rr,width:1280,height:720},title:{simpleText:NH},description:{simpleText:dR},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Na,externalChannelId:ti,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:FQ,category:"Travel & Events",publishDate:yV,ownerChannelName:o$,uploadDate:yV}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:PW},trackingParams:lJ+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:di,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:lJ+"="}}],headerText:{simpleText:Fn},icon:{infoCardIconRenderer:{trackingParams:lJ+"="}},closeButton:{infoCardIconRenderer:{trackingParams:lJ+"="}},trackingParams:lJ+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:lJ+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Rr+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:By,interpreterSafeUrl:(kr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+yu+".js",kr),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:dR},{text:wc,bold:!0}]},endpoint:{clickTrackingParams:di,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:lJ+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Fl}]},actionButton:{buttonRenderer:{text:{runs:[{text:QV}]},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Q,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Q,target:"TARGET_NEW_WINDOW"}},trackingParams:lJ+"="}},trackingParams:lJ+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+O8+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+O8+"=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:FQ,endMs:FQ,title:{accessibility:{accessibilityData:{label:dR}},simpleText:Fn},metadata:{simpleText:Fn},callToAction:{simpleText:Fl},dismiss:{simpleText:Ht},endpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"/channel/"+ti,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ti}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Fn}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ti,showPreferences:!1,
subscribedButtonText:{runs:[{text:iG}]},unsubscribedButtonText:{runs:[{text:Ht}]},trackingParams:lJ+"=",unsubscribeButtonText:{runs:[{text:dV}]},serviceEndpoints:[{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ti],params:iG}},{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:di,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lJ+
"=",dialogMessages:[{runs:[{text:PW},{text:o$},{text:o$}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dV}]},serviceEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ti],params:iG}},accessibility:{label:Fl},trackingParams:lJ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:CY}]},
accessibility:{label:Ht},trackingParams:lJ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:PW}},unsubscribeAccessibility:{accessibilityData:{label:PW}}}},trackingParams:lJ+"=",isSubscribe:!0,id:zc}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+ls,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+wu+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:FQ,endMs:FQ,title:{accessibility:{accessibilityData:{label:Fl}},simpleText:Na},metadata:{simpleText:Ht},endpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Rr,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Rr,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+cY+".googlevideo.com/videoplayback?source=youtube&oeis="+Nb+"&c=WEB&oad="+ZV+"&ovd="+ZV+"&oaad="+Lv+"&oavd="+Lv+"&ocs="+MN+"&oewis="+Nb+"&oputc="+Nb+"&ofpcc="+Nb+"&siu="+Nb+"&msp="+Nb+"&odepv="+Nb+
"&id=o-AF"+hP+"&ip="+Ik+"&initcwndbps="+FQ+"&mt="+MB+"&oweuc="+UF}}}}},trackingParams:lJ+"=",id:zc,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Rr}},simpleText:Bf},style:"DEFAULT"}}]}}],startMs:FQ,trackingParams:lJ+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Nb,offsetEndMilliseconds:Lv},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";ord="+MB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+MN+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_ref=http://www.youtube.com/video/"+Rr+";dc_pubid="+Nb+";dc_btype=23?gclid="+wR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Nb+"&ns="+Nb+"&event="+Nb+"&device="+Nb+"&content_v="+Q+"&el="+Ht+"&ei="+q+"&devicever="+J+"&bti="+FQ+"&format="+em+"&break_type="+Nb+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Nb+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ik+"&slot_pos="+Nb+"&slot_len="+Nb+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+F3+"&ad_len="+Lv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Rr+"&aqi="+q+"&ad_rmp="+Nb+"&sli="+Nb}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+
";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+FQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&ctype="+MN+"&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"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_engaged_view&ctype="+MN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+Tc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&dc_pubid="+Nb+"&dc_exteid="+zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Nb},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&avm="+Nb+"&dc_pubid="+Nb+"&dc_exteid="+
zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
X+"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Nb},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&dc_pubid="+Nb+"&dc_exteid="+zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:di,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+
MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lJ+"="},trackingParams:lJ+
"=",templatedCountdown:{templatedAdText:{text:Yr,isTemplated:!0,trackingParams:lJ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Rr,isTemplated:!1,trackingParams:lJ+"="},trackingParams:lJ+"="}},trackingParams:lJ+"=",skipOffsetMilliseconds:5E3}},trackingParams:lJ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:dR},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:CY,isTemplated:!1,trackingParams:lJ+"="},trackingParams:lJ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Yr,isTemplated:!0,trackingParams:lJ+"="}},trackingParams:lJ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:di,openPopupAction:{popup:{aboutThisAdRenderer:{url:(VW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+VH+"&origin=www.youtube.com&ata_theme="+Na,VW),trackingParams:lJ+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:lJ+"="}},hoverText:{runs:[{text:QV}]},trackingParams:lJ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lJ+"="},headline:{text:dV,isTemplated:!1,trackingParams:lJ+"="},description:{text:NH,
trackingParams:lJ+"="},actionButton:{buttonRenderer:{text:{simpleText:Na},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"="}},startMs:Nb,trackingParams:lJ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:bN},elementId:Fn}},elementId:NH,trackingParams:lJ+"=",legacyInfoCardVastExtension:QV,sodarExtensionData:{siub:Fn,bgub:bN,scs:Rr,bgp:PW},externalVideoId:Rr,adLayoutLoggingData:{serializedAdServingDataEntry:CY},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lJ+"="},
headline:{text:Bf,isTemplated:!1,trackingParams:lJ+"="},description:{text:Yr,isTemplated:!1,trackingParams:lJ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Rr},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+
zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+
Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lJ+"="}},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+
Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+
x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lJ+"="},abandonCommands:{commands:[{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+
Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:di,commandExecutorCommand:{commands:[{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Bf,isTemplated:!1,trackingParams:lJ+
"="},trackingParams:lJ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fn},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+FQ+";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="+Gc+";dc_trk_cid="+Gc+";ord="+MB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+MN+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_ref=http://www.youtube.com/video/"+Rr+";dc_pubid="+Nb+";dc_btype=23?gclid="+wR+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Nb+"&ns="+Nb+"&event="+Nb+"&device="+Nb+"&content_v="+Q+"&el="+Ht+"&ei="+q+"&devicever="+J+"&bti="+FQ+"&format="+em+"&break_type="+Nb+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Nb+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ik+"&slot_pos="+Nb+"&slot_len="+Nb+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
F3+"&ad_len="+Lv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Rr+"&aqi="+q+"&ad_rmp="+Nb+"&sli="+Nb}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+
b+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+FQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&ctype="+MN+"&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"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_engaged_view&ctype="+MN+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+
Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&dc_pubid="+Nb+"&dc_exteid="+zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+
"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Nb},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&avm="+Nb+"&dc_pubid="+Nb+"&dc_exteid="+zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+gi+"&ad_cpn=[AD_CPN]&id="+Yr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Nb},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Yr+"&dc_pubid="+Nb+"&dc_exteid="+zc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+em+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+
MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lJ+"="},trackingParams:lJ+"=",templatedCountdown:{templatedAdText:{text:dV,isTemplated:!0,trackingParams:lJ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:dV,isTemplated:!1,trackingParams:lJ+"="},trackingParams:lJ+"="}},
trackingParams:lJ+"=",skipOffsetMilliseconds:5E3}},trackingParams:lJ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Rr},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Bf,isTemplated:!1,trackingParams:lJ+"="},trackingParams:lJ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:QV,
isTemplated:!0,trackingParams:lJ+"="}},trackingParams:lJ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:di,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ys.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+VH+"&origin=www.youtube.com&ata_theme="+Na,ys),trackingParams:lJ+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:lJ+"="}},hoverText:{runs:[{text:QV}]},trackingParams:lJ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+I3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lJ+"="},headline:{text:bN,isTemplated:!1,trackingParams:lJ+"="},description:{text:Bf,trackingParams:lJ+"="},actionButton:{buttonRenderer:{text:{simpleText:dV},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"="}},startMs:Nb,trackingParams:lJ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fn},elementId:Ht}},elementId:Rr,trackingParams:lJ+"=",legacyInfoCardVastExtension:bN,sodarExtensionData:{siub:dR,bgub:Fl,scs:PW,bgp:wc},externalVideoId:Rr,adLayoutLoggingData:{serializedAdServingDataEntry:o$},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+I3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lJ+"="},headline:{text:Na,
isTemplated:!1,trackingParams:lJ+"="},description:{text:Na,isTemplated:!1,trackingParams:lJ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:NH},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lJ+"="}},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+
Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lJ+"="},abandonCommands:{commands:[{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+Gt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:di,commandExecutorCommand:{commands:[{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:dV,isTemplated:!1,trackingParams:lJ+"="},trackingParams:lJ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:CY},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nb+";dc_exteid="+zc+";met="+Nb+";ecn"+Nb+"="+Nb+";etm1="+Nb+";eid1="+
FQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Rr}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Lv,offsetEndMilliseconds:em},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+Gt+"&token=ALHj"+E+"&index="+Nb+"&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="+J+"&m_pos_ms="+Lv}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:em,offsetEndMilliseconds:em},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+MN+"&token=ALHj"+E+"&index="+Nb+"&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="+
J+"&m_pos_ms="+em}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:em,offsetEndMilliseconds:em},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+MN+"&token=ALHj"+E+"&index="+Nb+"&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="+
J+"&m_pos_ms="+em}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:em,offsetEndMilliseconds:em},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+MN+"&token=ALHj"+E+"&index="+Nb+"&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="+
J+"&m_pos_ms="+em}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:em,offsetEndMilliseconds:Gt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+MN+"&token=ALHj"+E+"&index="+Nb+"&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="+
J+"&m_pos_ms="+em}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Na}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Gt,offsetEndMilliseconds:Gt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+Gt+"&token=ALHj"+E+"&index="+Nb+"&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="+
J+"&m_pos_ms="+Gt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Yr,isTemplated:!1,trackingParams:lJ+"="},description:{text:NH,isTemplated:!1,trackingParams:lJ+"="},actionButton:{buttonRenderer:{text:{simpleText:iG},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mh+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:lJ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vY+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lJ+"="},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+
";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:di,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ke.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+VH+"&origin=www.youtube.com&ata_theme="+Na,Ke),trackingParams:lJ+"="}},popupType:"DIALOG"}},trackingParams:lJ+"="}},hoverText:{runs:[{text:Rr}]},trackingParams:lJ+"="}},adVideoId:Rr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:NH},associatedCompositePlayerBytesLayoutId:dV}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:wc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Bf,isTemplated:!1,trackingParams:lJ+"="},description:{text:Fn,isTemplated:!1,trackingParams:lJ+"="},actionButton:{buttonRenderer:{text:{simpleText:PW},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+
x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+I3+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lJ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+f2+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lJ+"="},navigationEndpoint:{clickTrackingParams:di,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+
Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:di,openPopupAction:{popup:{aboutThisAdRenderer:{url:(eF.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+VH+"&origin=www.youtube.com&ata_theme="+Na,eF),trackingParams:lJ+"="}},popupType:"DIALOG"}},trackingParams:lJ+"="}},
hoverText:{runs:[{text:Fl}]},trackingParams:lJ+"="}},adVideoId:Rr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Rr+"&cid="+b+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Na},associatedCompositePlayerBytesLayoutId:dV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:o$,
isTemplated:!1,trackingParams:lJ+"="},description:{text:bN,isTemplated:!1,trackingParams:lJ+"="},actionButton:{buttonRenderer:{text:{simpleText:Na},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+
Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lJ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mh+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lJ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vY+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lJ+
"="},navigationEndpoint:{clickTrackingParams:di,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Gc+";dc_trk_cid="+Gc+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nb+";ord="+Gc+";dc_rui="+Nb+";dc_exteid="+zc+";dc_av="+Nb+";dc_sk="+Nb+";dc_ctype="+Gt+";dc_pubid="+Nb+";dc_btype=3?gclid="+wR+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+v+"____________"+x+"AxAA&ase=2&num="+Nb+"&cid="+b+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Sm+"&label=video_click_to_advertiser_site&ctype="+MN+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lJ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:di,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+VH+"&origin=www.youtube.com&ata_theme="+Na,kL),trackingParams:lJ+"="}},popupType:"DIALOG"}},trackingParams:lJ+
"="}},hoverText:{runs:[{text:Rr}]},trackingParams:lJ+"="}},adVideoId:Rr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+v+"____________"+x+"AxAA&sigh="+Q+"&cid="+b+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ht},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:dV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dV}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:yu,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:yu,command:{innertubeCommand:{clickTrackingParams:di,ypcGetOfflineUpsellEndpoint:{params:Qu}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:lJ+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:MB,nanos:iJ}}}},cwY=JSON.stringify(Bz),Oi=performance.now()-M;return{objectRepresentation:Bz,jsonRepresentation:cwY,generationTime:Oi}};
I2Y=function(M,z){if(M===z)return!0;if(!M||!z||typeof M!==typeof z)return!1;if(M instanceof Array&&z instanceof Array){if(M.length!==z.length)return!1;for(var J=0;J<M.length;J++)if(!I2Y(M[J],z[J]))return!1;return!0}if(typeof M==="object"&&typeof z==="object"&&M&&z){for(J in M)if(!(J in z&&I2Y(M[J],z[J])))return!1;for(var R in z)if(!(R in M))return!1;return!0}return!1};
_.kV=function(){if(!ZS){ZS=new Tz(new o1H);var M=_.NC("client_streamz_web_flush_count",-1);M!==-1&&(ZS.invocationLimit=M)}return ZS};
BP=function(M,z,J,R){if(M===z)return!0;if(Array.isArray(M)&&Array.isArray(z)){if(M.length!==z.length)return!1;for(var D=0;D<M.length;D++)if(!BP(M[D],z[D],J,R))return!1;return!0}if(M instanceof Set||z instanceof Set){if(M instanceof Set&&z instanceof Set){if(M.size!==z.size)return!1;R=_.S(M.values());for(D=R.next();!D.done;D=R.next())if(!z.has(D.value))return!1;return!0}return!1}if(M instanceof Function){if(R)return!0;M.name===""&&_.nc(Error("Hf"),"ERROR");return!1}if(M instanceof Date&&z instanceof
Date)return M.getTime()===z.getTime();if(M instanceof Object&&z instanceof Object){if(Xgn(M)&&Xgn(z))try{return M.equals(z)}catch(Z){_.nc(Error("If`"+Z),"ERROR")}D=Object.getOwnPropertyNames(M).filter(function(Z){return J?M[Z]!==void 0:!0});
var N=Object.getOwnPropertyNames(z).filter(function(Z){return J?z[Z]!==void 0:!0});
if(D.length!==N.length)return!1;D=_.S(D);for(N=D.next();!N.done;N=D.next())if(N=N.value,!BP(M[N],z[N],J,R))return!1;return!0}return!1};
Xgn=function(M){M=Object.getPrototypeOf(M).equals;return M instanceof Function&&M.length===1};
_.QLe=function(){return _.k(function(M){if(M.nextAddress==1)return l2H!==2?M.jumpTo(2):M.yield(ej8(),3);M.nextAddress!=2&&(l2H=M.yieldResult);return M.return(l2H)})};
_.Gsp=function(){return _.k(function(M){if(M.nextAddress==1)return _.U("ab_pl_man")?U4G!==2?M.jumpTo(2):M.yield(v1w(),3):M.return(1);M.nextAddress!=2&&(U4G=M.yieldResult);return M.return(U4G)})};
tCn=function(){return _.k(function(M){if(M.nextAddress==1)return _.U("ab_fk_sk_cl")?wg0!==2?M.jumpTo(2):M.yield(x4H(),3):M.return(1);M.nextAddress!=2&&(wg0=M.yieldResult);return M.return(wg0)})};
_.FGG=function(){return _.k(function(M){if(M.nextAddress==1)return _.U("ab_det_apb_b")?jLH!==2?M.jumpTo(2):M.yield(pg3(),3):M.return(1);M.nextAddress!=2&&(jLH=M.yieldResult);return M.return(jLH)})};
g1c=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(Promise.all([_.QLe(),_.FGG(),_.Gsp(),tCn()]),2);if(z.nextAddress!=3)return YP0()?z.return(!0):z.yield(_.m4Y(),3);M=z.yieldResult;return z.return(M===0)})};
YP0=function(){var M=!1,z=function(J,R){sL8.increment(R,J);J===0&&(M=!0)};
z(_.n1Y(),"j.s_");z(l2H,"f.i_");z(jLH,"a.b_");z(U4G,"p.m_");z(wg0,"i.f_");hjp===2&&(hjp=_.yp8(Hk3));z(hjp,"e.h_");_.U("ks_det_gpbl")||z(_.cpp(),"p.i_");_.U("ks_get_o_pp")||z(_.d4n(),"g.o_");_.U("ab_deg_unex_thr")||z(_.KGp(),"a.o_");z($4b,"s.t_");_.U("ab_det_sc_inj_enf")&&z(_.ump(),"s.i_");z(qPb,"d.p_");z(_.WGe(_.OA),"o.p_");z(_.a2o()===0?0:_.VCo(),"o.a_");return _.U("debug_sk_em_precheck")?!0:M};
f2H=function(){var M=[].concat(_.Yj(E1H));try{var z=Se();M.push({jsonRepresentation:z.jsonRepresentation,objectRepresentation:z.objectRepresentation})}catch(J){M=[].concat(_.Yj(E1H))}return M};
LGc=function(){var M=["adPlacements","adSlots"];try{return M.filter(function(){return!0}).length!==M.length?0:1}catch(z){return 0}};
_.d4n=function(){if(LGc()===0)return 0;var M=Se(),z=M.objectRepresentation,J=(0,_.gu.unsafeClone)(z),R=[];if(z&&typeof z==="object")for(var D in z)R.push(D);else return 4;M=M.objectRepresentation.adPlacements;if(!(M&&M.length>0))return 4;try{if(!I2Y(R,Object.getOwnPropertyNames(z)))return 0}catch(N){return 0}return I2Y(J,z)?1:0};
_.WGe=function(M){if(!M||!M.length||typeof M==="string")return 0;for(var z=Object.getOwnPropertyNames(Object.prototype),J=0;J<M.length;J++)for(var R=_.Rz(M[J]),D=_.S(z),N=D.next();!N.done;N=D.next())if(R===N.value)return 0;return 1};
ApH=function(M){var z=_.Rz(M[1]);if(M[0]===null)return z;M=M[0];for(var J={},R=0;R<M.length;R++){var D=_.Rz(M[R]);if(R===0)J[D]=z;else{var N={};N[D]=J;J=N}}return J};
_.a2o=function(){for(var M=_.Th,z=0;z<M.length;z++){var J=ApH(M[z]),R=[];R.push(J);if(R.length===0)return 0}return 1};
_.VCo=function(){for(var M=_.Th,z={},J=0;J<M.length;z={vf0:void 0},J++){var R=[ApH(M[J])];z.vf0=[];R.forEach(function(D){return function(N){D.vf0[D.vf0.length]=N}}(z));
if(z.vf0.length===0)return 0}return 1};
_.n1Y=function(){for(var M=_.S(f2H()),z=M.next();!z.done;z=M.next()){var J=z.value;z=J.jsonRepresentation;J=J.objectRepresentation;try{var R=JSON.parse(z);if(!BP(R,J,!1,!1))return 0}catch(D){return 0}}return 1};
_.ump=function(){try{var M=_.ZR("ab_det_sc_inj_val");M.length===1&&M[0]===""&&(M=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var z=document.querySelectorAll("script"),J=_.S(z),R=J.next();!R.done;R=J.next())for(var D=R.value,N=_.S(M),Z=N.next();!Z.done;Z=N.next()){var B=Z.value;z=void 0;if((z=D.textContent)==null?0:z.includes(B))return 0}}catch(O){return 4}return 1};
_.m4Y=function(){var M,z,J,R,D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:_.Io(B,2),M=_.S(E1H),z=M.next();case 4:if(z.done)return B.return(1);R=J=z.value;D=R.jsonRepresentation;N=R.objectRepresentation;return B.yield((new Response(D,{status:200})).json(),7);case 7:Z=B.yieldResult;if(!BP(Z,N,!1,!1))return B.return(0);z=M.next();B.jumpTo(4);break;case 2:return _.Qa(B),B.return(4)}})};
_.KGp=function(){try{btoa("abc")}catch(M){return 0}return 1};
ej8=function(){var M,z,J,R,D,N,Z,B,O,X,l;return _.k(function(e){switch(e.nextAddress){case 1:_.Io(e,2),M=_.S(f2H()),z=M.next();case 4:if(z.done)return e.return(1);R=J=z.value;D=R.jsonRepresentation;N=R.objectRepresentation;Z=btoa(D);B="data:application/json;base64,"+Z;O=new Request(B);Object.defineProperty(O,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(O,"method",{get:function(){return"POST"}});
Object.defineProperty(O,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(O,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(O,"body",{get:function(){return new ReadableStream}});
return e.yield(fetch(O),7);case 7:return X=e.yieldResult,e.yield(X.json(),8);case 8:l=e.yieldResult;if(!BP(l,N,!1,!1))return e.return(0);z=M.next();e.jumpTo(4);break;case 2:return _.Qa(e),e.return(4)}})};
_.yp8=function(M){if(!M||!M.length||typeof M==="string")return 0;for(var z=function(D){return _.Rz(D)},J=2,R=0;R<M.length&&(J=_.ikY(_.Okp(M[R],z)),J!==0);R++);
return J};
_.ikY=function(M){var z=_.S(M);M=z.next().value;z=z.next().value;try{var J=document.createElement("div");document.body.appendChild(J);var R=getComputedStyle(J).display;document.body.removeChild(J);if(R==="none")return 4;var D=getComputedStyle(z).display==="none"?0:1;document.body.removeChild(M);return D}catch(N){return 4}};
x4H=function(){var M,z,J;return _.k(function(R){M=new _.Iz;z=document.createElement("button");z.classList.add("ytp-ad-skip-button");z.style.opacity="0";z.style.height="0px";z.style.width="0px";z.style.padding="0px";z.style.border="none";J=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.onclick=function(){M.resolve(0);J()};
document.body.appendChild(z);setTimeout(function(){J();M.resolve(1)},50);
return R.return(M.promise)})};
v1w=function(){var M,z,J,R,D,N,Z;return _.k(function(B){M=new _.Iz;z=document.createElement("ytd-player");try{document.body.prepend(z)}catch(O){return B.return(4)}J=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.getElementsByTagName("div").length>0?R=z.getElementsByTagName("div")[0]:(R=document.createElement("div"),z.appendChild(R));D=document.createElement("div");R.appendChild(D);N=document.createElement("video");Z=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"});N.src=_.Yq(_.yZ(Z));N.ontimeupdate=function(){J();M.resolve(0)};
D.appendChild(N);N.classList.add("html5-main-video");setTimeout(function(){D.classList.add("ad-interrupting")},200);
setTimeout(function(){J();M.resolve(1)},5E3);
return B.return(M.promise)})};
Clc=function(M,z){var J,R;return _.k(function(D){switch(D.nextAddress){case 1:J=[],R=0;case 2:if(!(R<3)){D.jumpTo(4);break}return D.yield(fetch(M,{cache:"no-store",method:z}).then(function(N){J.push(N.status)}).catch(function(){J.push(-1)}),3);
case 3:R++;D.jumpTo(2);break;case 4:return D.return(J)}})};
bke=function(M){return M.domainLookupStart===0&&M.domainLookupEnd===0&&M.connectStart===0&&M.connectEnd===0};
rpp=function(M,z,J){J=J===void 0?"GET":J;var R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){if(v.nextAddress==1)return v.yield(Promise.all([Clc(M,J),Clc(z,J)]),2);R=v.yieldResult;D=_.S(R);N=D.next().value;Z=D.next().value;B=N;O=Z;if(Math.min.apply(Math,_.Yj(O))!==Math.max.apply(Math,_.Yj(O))||Math.min.apply(Math,_.Yj(B))!==Math.max.apply(Math,_.Yj(B)))return v.return(2);if(Math.min.apply(Math,_.Yj(O))===Math.min.apply(Math,_.Yj(B)))return v.return(1);l=(X=performance.getEntriesByName(M))==null?void 0:
X[0];Q=(e=performance.getEntriesByName(z))==null?void 0:e[0];return l&&Q?bke(Q)?v.return(1):bke(l)?v.return(0):v.return(1):v.return(2)})};
pg3=function(){var M;return _.k(function(z){var J=[];var R;var D,N,Z;(D=R=(D=Se().objectRepresentation.streamingData)==null?void 0:(N=D.formats)==null?void 0:(Z=N[0])==null?void 0:Z.url)&&D&&!R.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(D=D.replace("initcwndbps","ctier=L&initcwndbps"),D=D.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),R={testUrl:D,baseUrl:R,method:"GET"}):R=void 0;R&&J.push(R);_.U("ab_net_tp_e")&&J.push({testUrl:_.R3.location.origin+"/ad_companion",baseUrl:_.R3.location.origin+
"/generate_204",method:"OPTIONS"});if(_.U("ad_net_pb_ab")){var B;b:{R=/api\/stats\/ads/;var O,X,l,e;D=(B=Se().objectRepresentation.adPlacements)==null?void 0:(O=B[0])==null?void 0:(X=O.adPlacementRenderer)==null?void 0:(l=X.renderer)==null?void 0:(e=l.linearAdSequenceRenderer)==null?void 0:e.linearAds;if(D!=null&&D.length&&(B=_.G(D[0],M0c))&&(B=B.pings,B!=null&&B.impressionPings))for(O=[].concat(_.Yj(B.impressionPings)),B.progressPings&&(O=[].concat(_.Yj(O),_.Yj(B.progressPings))),B=_.S(O),O=B.next();!O.done;O=
B.next())if(O=O.value,O.baseUrl&&R.test(O.baseUrl)){B=O.baseUrl.replace("https://www.youtube.com","");break b}B=void 0}B&&J.push({testUrl:_.R3.location.origin+B,baseUrl:_.R3.location.origin+"/feed/download",method:"GET"})}if(_.U("ad_net_pb_pbp")){var Q;b:{B=/api\/stats\/qoe/;if(O=Se().objectRepresentation.playbackTracking){X=[];X.push(O==null?void 0:(Q=O.videostatsPlaybackUrl)==null?void 0:Q.baseUrl);var v;X.push(O==null?void 0:(v=O.videostatsDelayplayUrl)==null?void 0:v.baseUrl);var x;X.push(O==
null?void 0:(x=O.videostatsWatchtimeUrl)==null?void 0:x.baseUrl);var m;X.push(O==null?void 0:(m=O.ptrackingUrl)==null?void 0:m.baseUrl);var y;X.push(O==null?void 0:(y=O.qoeUrl)==null?void 0:y.baseUrl);var H;X.push(O==null?void 0:(H=O.atrUrl)==null?void 0:H.baseUrl);Q=_.S(X);for(v=Q.next();!v.done;v=Q.next())if((v=v.value)&&B.test(v)){Q=v.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}Q=void 0}Q&&J.push({testUrl:_.R3.location.origin+Q,baseUrl:_.R3.location.origin+
"/feed/download",method:"GET"})}J=J.length!==0?J[Math.floor(Math.random()*J.length)]:void 0;return(M=J)?z.return(rpp(M.testUrl,M.baseUrl,M.method)):z.return(4)})};
_.cpp=function(){if(_.R3.wlT===void 0||_.R3.wlT===null||typeof _.R3.wlT!=="function")return 2;try{return _.R3.wlT()===!0?0:1}catch(M){return 0}};
zuG=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.uJ(M,"unknown result type")}};
_.JXw=function(M,z){var J=Number(_.HW("CATSTAT",0));if(z.avm===void 0)return J;z=z.avm;M=zuG(M);return J&~(3<<z)|M<<z};
Rup=function(M){var z,J;if((M=(z=M.auxiliaryUi)==null?void 0:(J=z.messageRenderers)==null?void 0:J.bkaEnforcementMessageViewModel)&&M.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return M};
N0w=function(){for(var M=_.S(Object.values(_.Dm3)),z=M.next();!z.done;z=M.next())z=z.value,z.isAsync&&z.avm&&_.yU("CATSTAT",_.JXw(2,z))};
_.QO=function(M,z){M=_.oz("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",M);(z===void 0?0:z)?_.PA0(M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.l7(_.ee(),M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
ZxH=function(){if(!SSn){if(Polymer.Base){var M=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{M.apply(this,arguments)}catch(e){_.$y(e)}};
var z=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{z.apply(this,arguments)}catch(e){_.$y(e)}};
var J=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{J.apply(this,arguments)}catch(e){_.$y(e)}};
var R=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{R.apply(this,arguments)}catch(e){_.$y(e)}};
var D=Polymer.Base._listen,N=new WeakMap;Polymer.Base._listen=function(e,Q,v){var x=function(){try{v.apply(this,arguments)}catch(m){_.$y(m)}};
N.set(v,x);D.call(this,e,Q,x)};
var Z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(e,Q,v){Z.call(this,e,Q,N.get(v))}}if(Polymer.Async){var B=Polymer.Async,O=B._atEndOfMicrotask;
B._atEndOfMicrotask=function(){try{O.apply(B,arguments)}catch(e){_.$y(e)}}}if(Polymer.RenderStatus){var X=Polymer.RenderStatus,l=X.afterNextRender;
X.afterNextRender=function(e,Q,v){l.call(X,e,function(){try{Q.apply(this,arguments)}catch(x){_.$y(x)}},v)}}SSn=!0}};
_.UA=function(M){var z=M?_.Ib(M):"";if(z){if(z.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(z.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(z.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(z.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(z.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";z=z.toLowerCase();if(z==="/")return"home";if(z==="/channel_memberships")return"channel-memberships-shopfront";if(z.indexOf("/feed/trending")===0)return"trending";if(z.indexOf("/feed/explore")===0)return"explore";if(z.indexOf("/live")===0)return"live";if(z.indexOf("/results")===0)return"search";if(z.indexOf("/sports")===0)return"sports";if(z.indexOf("/fashion")===0||z.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(z))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(z))return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/")===0||z.indexOf("/user/")===0||z.indexOf("/gaming")===0||z.indexOf("/post/")===0)return"channel";if(kWc(M))return"show";if(z==="/playlist"||z.indexOf("/playlist/")===0||z==="/view_play_list"||z.indexOf("/view_play_list/")===0||z.indexOf("/show/")===0)return"playlist";if(z==="/feed/history"||z.indexOf("/feed/history/")===0)return"history";if(z===
"/new")return"labs";if(z==="/feed/subscriptions")return"subscriptions";if(z.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(z==="/history_controls")return"standalone";if(z.indexOf("/account")===0||z==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(z.indexOf("/paid_memberships")===0||z.indexOf("/refund")===0||z.indexOf("/purchases")===0||z.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(z.indexOf("/product")===0)return"yts-products";if(z.indexOf("/premium")===
0||z.indexOf("/musicpremium")===0)return z.indexOf("/premium/offers")===0||z.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(z==="/cart/checkout"||z==="/cart")return"ypc-checkout";if(z.indexOf("/feed/downloads")===0||z.indexOf("/redeem")===0||z.indexOf("/reporthistory")===0)return"browse";if(z.indexOf("/hashtag")===0)return"hashtag-landing-page";if(z.indexOf("/handle")===0)return"handle";if(z.indexOf("/source")===0)return"audio-pivot";if(z.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(z.indexOf("/playables")===0)return"playables";if(z.indexOf("/create/live/join")===0)return"open-in-app";if(z.indexOf("/shorts")===0)return"shorts";if(z.indexOf("/feed/channels")===0)return"subscriptions-channels";(z=M?_.Ib(M):"")&&z.indexOf("/watch")===0&&_.U("web_watch_enable_learning_journey")?(M=_.fh(M),M=!!M.list&&M.list.indexOf("LJPP")===0):M=!1;if(M)return"learning_journey_watch"}};
_.vP=function(M){var z,J;(M=(J=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:J.url)&&(z=_.UA(M));return z};
kWc=function(M){var z=M?_.Ib(M):"";if(!z)return!1;z=z.toLowerCase();return z.indexOf("/show/")===0||z.indexOf("/playlist")===0&&(M=_.fh(M),M.list&&M.list.indexOf("EL")===0)?!0:!1};
xV=function(M){var z="unknown",J;var R=((J=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:J.webPageType)||"";R?(J=R.toLowerCase(),J.startsWith("web_page_type_")&&(J=J.slice(14))):J=R;J&&B0H[J.toUpperCase()]?z=B0H[J.toUpperCase()]:_.G(M,_.Gh)||_.G(M,Ox8)?z="browse":_.G(M,_.wB)?z="search":_.G(M,_.Au)&&(z="watch");z==="watch"&&_.vP(M||null)==="learning_journey_watch"&&(z="learning_journey_watch");z==="unknown"&&_.yA(Error("Kf`"+JSON.stringify({clickTrackingParams:M==null?void 0:M.clickTrackingParams,
commandMetadata:M==null?void 0:M.commandMetadata,allEndpointKeys:Object.keys(M||[])})));return z};
_.t9=function(M){if(!_.T0p||M)_.T0p=_.QW();return _.T0p};
_.IXc=function(M){return!!_.G(M,_.Au)||!!_.G(M,_.je)&&_.U("kevlar_enable_shorts_prefetch")};
_.oko=function(M,z){M=_.G(M,_.Au)||_.G(M,_.je);return"v"+M.videoId+(M.playlistId?"-pl"+M.playlistId:"")+(z?"-an1":"")+(M.params?"-pr"+M.params:"")};
pX=function(M){return function(){return new M}};
Fk=function(M){var z=_.JF();return function(){return z.resolve(M)}};
lXR=function(M){var z=_.NC("web_pbj_log_warning_rate",0);z=z>0&&Math.random()<z;if(!_.G(M,_.je))return z&&_.yA(Error("Nf")),!1;var J;return _.U("shorts_controller_retrieve_seedless_sequence_v2")&&((J=_.G(M,_.je))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:XH8(M)?!0:(z&&_.yA(Error("Of")),!1)};
XH8=function(M){var z=(_.G(M,_.Au)||_.G(M,_.je)).videoId;if(!z||!euo.test(z))return!1;var J;return(M=(J=_.G(M.commandMetadata,_.X9))==null?void 0:J.url)&&(M.includes(z)||M.startsWith("/clip"))?!0:!1};
_.UmG=function(){var M=_.vv();return M.getFlag(192)?M.getFlag(190):!(_.U("web_watch_cinematics_disabled_by_default")||_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&QjY())};
_.YV=function(M,z,J){var R={};R.currentUrl=z;R.vis=M.vis!==void 0?M.vis:0;R.splay=!1;z=_.vv();R.autoCaptionsDefaultOn=z.getFlag(66);z.getFlag(141)?z.getFlag(140)?R.autonavState="STATE_OFF":R.autonavState="STATE_ON":R.autonavState="STATE_NONE";R.html5Preference="HTML5_PREF_WANTS";isNaN(_.HW("STS"))||(R.signatureTimestamp=_.HW("STS"));M.autonav&&(R.autoplay=!0,R.autonav=!0);M.mutedAutoplay&&(R.autoplay=!0,R.mutedAutoplay=!0);M.inlinePlayback&&(R.autoplay=!0,R.autonav=!1,R.isInlineUnmutedPlayback=!!M.inlineUnmuted);
R.referer=J;R.lactMilliseconds=M.lact!==void 0?M.lact.toString():"-1";_.U("enable_unknown_lact_fix_on_html5")&&R.lactMilliseconds==="-1"&&_.yA(new _.xN("Unknown LACT is set in playbackContext.",{"lact in tempData":M.lact||"undefined",autonav:M.autonav||"undefined"}));M={};z.getFlag(194)&&(M.hasShownAmbientMode=!0);z.getFlag(192)&&(M.hasToggledOffAmbientMode=!0);_.UmG()&&(M.watchAmbientModeEnabled=!0);R.watchAmbientModeContext=M;return R};
vk8=function(M){var z={},J=M.pbis||0;J&&(z.playbackBeginsInSeconds=J);M.prefetch_reason&&M.prefetch_reason==="hc_pbis"&&(z.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return z};
_.gB=function(M){M=M===void 0?!1:M;var z=_.vv(),J="USER_INTERFACE_THEME_LIGHT";z.getFlag(165)?J="USER_INTERFACE_THEME_DARK":z.getFlag(174)?J="USER_INTERFACE_THEME_LIGHT":_.mQ()&&(J="USER_INTERFACE_THEME_DARK");return M?J:GW8()||J};
_.wH3=function(){return!_.U("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.mQ=function(){return _.wH3()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.sA=function(){var M=_.vv();return _.wH3()&&!M.getFlag(165)&&!M.getFlag(174)};
GW8=function(){var M=M===void 0?window.location.href:M;if(_.U("kevlar_disable_theme_param"))return null;var z=_.Ib(M);if(_.xmo(z))return"USER_INTERFACE_THEME_DARK";try{var J=_.fh(M).theme;return t0w.get(J)||null}catch(R){}return null};
_.xmo=function(M){return _.U("enable_dark_theme_only_on_shorts")?!(M==null||!M.startsWith("/shorts/")):!1};
_.FSo=function(M,z,J,R,D){z=z===void 0?!1:z;J=J===void 0?!1:J;var N=_.HW("INNERTUBE_CONTEXT");if(!N)return _.nc(Error("Rf")),{};N=(0,_.gu.unsafeClone)(N);_.U("web_no_tracking_params_in_shell_killswitch")||delete N.clickTracking;N.client||(N.client={});var Z=N.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=_.HW("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints=window.innerHeight;Z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Z.userInterfaceTheme=_.gB();if(!z){var B=_.TAc();B&&(Z.connectionType=B);_.U("web_log_effective_connection_type")&&(B=ofw())&&(N.client.effectiveConnectionType=B)}var O;if(_.U("web_log_memory_total_kbytes")&&((O=_.R3.navigator)==null?0:O.deviceMemory)){var X;O=(X=_.R3.navigator)==null?void 0:X.deviceMemory;N.client.memoryTotalKbytes=""+O*1E6}z&&R&&!_.U("web_it_context_set_original_url_ks")&&
(Z.originalUrl=jjG(_.R3.location.href,R).toString());_.U("web_gcf_hashes_innertube")&&(B=teY())&&(X=B.coldConfigData,O=B.coldHashData,B=B.hotHashData,N.client.configInfo=N.client.configInfo||{},X&&(N.client.configInfo.coldConfigData=X),O&&(N.client.configInfo.coldHashData=O),B&&(N.client.configInfo.hotHashData=B));X=_.fh(_.R3.location.href);!_.U("web_populate_internal_geo_killswitch")&&X.internalcountrycode&&(Z.internalGeo=X.internalcountrycode);!_.U("web_populate_client_screen_killswitch")&&D&&(Z.clientScreen=
D);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo||(Z.mainAppWebInfo={}),Z.mainAppWebInfo.graftUrl=R||_.R3.location.href,_.U("kevlar_woffle")&&_.nX.instance&&(R=_.nX.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!R.appInstalledEventFired&&R.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=lSe(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&
(!_.U("web_lr_app_quality_killswitch")&&(R=_.HW("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:R})),R=_.HW("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:R}));!_.U("web_populate_time_zone_itc_killswitch")&&(R=BAp())&&(Z.timeZone=R);(R=gQ8())?Z.experimentsToken=R:delete Z.experimentsToken;Z=sn3();R=_.pHR();R=(0,_.gu.getValues)(R.tokenJars);N.request=Object.assign({},N.request,{internalExperimentFlags:Z,consistencyTokenJars:R});
!_.U("web_prequest_context_killswitch")&&(Z=_.HW("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(N.request.externalPrequestContext=Z);R=_.vv();Z=R.getFlag(58);R=R.get("gsml","");N.user=Object.assign({},N.user);Z&&(N.user.enableSafetyMode=Z);R&&(N.user.lockedSafetyMode=!0);_.U("warm_op_csn_cleanup")?J&&(z=_.y5())&&(N.clientScreenNonce=z):!z&&(z=_.y5())&&(N.clientScreenNonce=z);M&&(N.clickTracking={clickTrackingParams:M});if(M=_.qH("yt.mdx.remote.remoteClient_"))N.remoteClient=M;_.h9.getInstance().setLocationOnInnerTubeContext(N);
try{var l=qfw(),e=l.bid;delete l.bid;N.adSignalsInfo={params:[],bid:e};for(var Q=_.S(Object.entries(l)),v=Q.next();!v.done;v=Q.next()){var x=_.S(v.value),m=x.next().value,y=x.next().value;l=m;e=y;M=void 0;(M=N.adSignalsInfo.params)==null||M.push({key:l,value:""+e})}var H,q;if(((H=N.client)==null?void 0:H.clientName)==="TVHTML5"||((q=N.client)==null?void 0:q.clientName)==="TVHTML5_UNPLUGGED"){var b=_.HW("INNERTUBE_CONTEXT");b.adSignalsInfo&&(N.adSignalsInfo.advertisingId=b.adSignalsInfo.advertisingId,
N.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.adSignalsInfo.limitAdTracking=b.adSignalsInfo.limitAdTracking)}}catch(V){_.nc(V)}return N};
_.YS8=function(M){var z=new yO(_.HW("ONE_PICK_URL",""));z.urlParamMap_.set("hostId",M);(M=_.HW("GAPI_LOCALE"))&&z.urlParamMap_.set("hl",M);(M=_.HW("SESSION_INDEX"))&&z.urlParamMap_.set("authuser",M);(M=_.HW("DELEGATED_SESSION_ID"))&&z.urlParamMap_.set("groupId",M);return z};
gk0=function(){var M=_.JF(),z=M.resolve(_.HP);M=M.resolve(_.cP);return new mmp(z,M)};
nkR=function(M){if(window.IntersectionObserver)return new sjw(M,400);throw new TypeError("Yf");};
yX0=function(){var M=Hammer.TouchAction,z=M.prototype.preventDefaults;M.prototype.preventDefaults=function(J){var R=this.actions.indexOf("pan-down")>-1;if(!R)return z.call(this,J);if(!hu8){var D=J.srcEvent;J=J.direction;var N;if((N=this.manager)==null?0:N.session.prevented)D.preventDefault();else if(R&&J&Hammer.DIRECTION_DOWN)return this.preventSrc(D)}}};
HxR=function(M){if(!M||M.size===0)return Hammer.DIRECTION_ALL;if(M.size===2){if(M.has("up")&&M.has("down"))return Hammer.DIRECTION_VERTICAL;if(M.has("right")&&M.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(M.size===1){if(M.has("up"))return Hammer.DIRECTION_UP;if(M.has("down"))return Hammer.DIRECTION_DOWN;if(M.has("right"))return Hammer.DIRECTION_RIGHT;if(M.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.dmn=function(){return cX3?Promise.resolve(cX3):new Promise(function(M,z){var J=self.indexedDB.open("swpushnotificationsdb");J.onerror=z;J.onsuccess=function(){var R=J.result;if(R.objectStoreNames.contains("swpushnotificationsstore"))cX3=R,M(cX3);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.dmn()};
J.onupgradeneeded=KSc})};
KSc=function(M){M=M.target.result;M.objectStoreNames.contains("swpushnotificationsstore")&&M.deleteObjectStore("swpushnotificationsstore");M.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
uyb=function(M){var z=$mc(),J;return _.k(function(R){switch(R.nextAddress){case 1:return _.Io(R,2),R.yield(M.match(z,{cacheName:"yt-appshell-assets"}),4);case 4:J=R.yieldResult;_.ab(R,3);break;case 2:_.Qa(R);case 3:return R.return(J)}})};
$mc=function(){var M=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?qS8.registration.scope:WS3;M.endsWith("/")&&(M=M.slice(0,-1));return M+"/app_shell_home"};
aX3=function(M){M.map(function(z){return z.source}).join("|")};
_.V0p=function(M){return _.k(function(z){return z.return(uyb(M))})};
Ekp=function(){var M=window.caches,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(_.V0p(M),2);z=J.yieldResult;return J.return(!!z)})};
rX3=function(){_.k(function(M){if(M.nextAddress==1){if(fXo)return M.jumpTo(0);fXo=!0;if(_.U("enable_system_health_primes_monitoring"))return _.O7(LSc,3E4),AXG(),M.return();if(!(Math.random()<_.NC("web_system_health_fraction")))return M.jumpTo(0);ixR={heightPixels:screen.height,widthPixels:screen.width};dB&&!isNaN(dB.jsHeapSizeLimit)&&(ixR.memoryTotalKbytes=String(Math.round(dB.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(ixR.devicePixelRatio=window.devicePixelRatio);return M.yield(CA8(),4)}_.O7(LSc,
3E4);return M.yield(bxw(),0)})};
CA8=function(){return _.k(function(M){if(M.nextAddress==1)return KX.intersectionObserverPresent="IntersectionObserver"in window,KX.serviceWorkerPresent="serviceWorker"in navigator,KX.webSharePresent="share"in navigator,KX.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,KX.cacheStoragePresent="caches"in window,KX.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,KX.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
KX.webkitTemporaryStoragePresent="webkitTemporaryStorage"in $V&&$V.webkitTemporaryStorage&&"queryUsageAndQuota"in $V.webkitTemporaryStorage,KX.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",M.yield(a8o(),2);KX.indexedDbPresent=M.yieldResult;KX.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;KX.broadcastChannelPresent="BroadcastChannel"in window;KX.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(KX.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,KX.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.UI(M)})};
LSc=function(){var M=9E4+Math.random()*2E3;_.Rf()>M||(_.U("enable_system_health_primes_monitoring")?AXG():bxw())};
bxw=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(Mbp(),2);M=z.yieldResult;_.gP("systemHealthCaptured",M);_.UI(z)})};
AXG=function(){var M={metric:{}},z=zlR();z.networkEvents.length&&(M.metric.networkEvents=J3e(z));_.gP("systemHealthCaptured",M)};
Mbp=function(){var M,z,J,R,D,N,Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:M={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};z=window.screen;_.U("enable_is_extended_monitoring")&&z&&"isExtended"in z&&(M.isExtended=!!z.isExtended);J={metric:{staticContext:ixR,dynamicContext:M,webMetric:Rle,webApiSupport:KX}};
if(R=_.y5())J.csn=R;dB&&(J.metric.webMetric.currentHeapKbytes=Math.round(dB.usedJSHeapSize/1E3));window.matchMedia&&(J.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,J.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,J.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in $V&&typeof $V.getBattery==="function")){l.jumpTo(2);break}return l.yield($V.getBattery(),3);case 3:if(D=
l.yieldResult)J.metric.dynamicContext.chargingStatus=D.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(J.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(KX.storageEstimatePresent)return l.yield(navigator.storage.estimate(),8);if(!KX.webkitTemporaryStoragePresent){l.jumpTo(5);break}return l.yield(DAc(),7);case 7:N=l.yieldResult;l.jumpTo(5);break;case 8:N=l.yieldResult;case 5:return J.metric.dynamicContext.deviceStorageQuotaMbytes=((Z=N)==null?0:Z.quota)?String(Math.round(N.quota/
1048576/10)*10):"-1",J.metric.dynamicContext.deviceStorageUsageMbytes=((B=N)==null?0:B.usage)?String(Math.round(N.usage/1048576/10)*10):"-1",O=J.metric.dynamicContext,l.yield(Ekp(),9);case 9:return O.hasAppShell=l.yieldResult,X=zlR(),X.networkEvents.length&&(J.metric.networkEvents=J3e(X)),l.return(J)}})};
DAc=function(){return new Promise(function(M){var z;KX.webkitTemporaryStoragePresent&&(z=$V.webkitTemporaryStorage)!=null&&z.queryUsageAndQuota?$V.webkitTemporaryStorage.queryUsageAndQuota(function(J,R){M({usage:J,quota:R})}):M(void 0)})};
_.u7=function(M){M&=16777215;M=[(M&16711680)>>16,(M&65280)>>8,M&255];return Njp(M[0],M[1],M[2])};
_.qG=function(M){M=[(M&16711680)>>>16,(M&65280)>>>8,M&255,(M&4278190080)>>>24];var z=_.P1G(M,function(J){return J==(J&255)});
M[3]=(M[3]/255).toFixed(3);if(!z)throw Error("Zf`"+M.join(","));return"rgba("+M.join(",")+")"};
_.SLH=function(M){return[(M&16711680)>>>16,(M&65280)>>>8,M&255]};
_.Zmn=function(M){M=M.map(function(z){z/=255;return z<=.03928?z/12.92:Math.pow((z+.05)/1.05,2.4)});
return M[0]*.2126+M[1]*.7152+M[2]*.0722};
WP=function(M,z){M=_.SLH(M);return"rgba("+M[0]+", "+M[1]+", "+M[2]+", "+z+")"};
_.kPR=function(){try{return!!self.localStorage}catch(M){return!1}};
In3=function(){if(Bjp())_.yA(Error("$f"));else{var M=document.createElement("iframe");M.style.display="none";var z=z===void 0?window.location.href:z;var J=_.ho(_.HW("PERSIST_IDENTITY_IFRAME_URL"));z=J?J:(new URL(z)).host.indexOf("studio")===0?_.Nx(Omo,"persist_identity"):_.Nx(Tj3,"persist_identity");_.Dye(M,1,z);M.id="persist_identity";var R;(R=document.body)==null||R.appendChild(M)}};
Bjp=function(){var M=oh8;M||(M=document.querySelector("#persist_identity"));return M};
X8o=function(){var M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch(z){M=!0}return(_.HW("INNERTUBE_CLIENT_NAME")==="WEB"||_.HW("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M};
lnp=function(M,z){if(!X8o())return!1;z||(z=_.HW("LOGIN_INFO"));return z?(M.session_logininfo=z,!0):!1};
QSG=function(M,z){M=M===void 0?!1:M;if((z===void 0||!z)&&elH!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.cW("LOG_STICKINESS",!1)){z=_.y5();var J=_.hu(),R={identityStickinessData:{initialState:elH}};z&&J&&_.Ad(z,J,R)}if(z=Bjp())if(J=z.src?(new URL(z.src)).origin:"*",M){var D;(D=z.contentWindow)==null||D.postMessage({action:"clear"},J)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(M=window.sessionStorage.getItem("session_logininfo"))){var N;(N=z.contentWindow)==null||N.postMessage({loginInfo:M},J)}};
_.az=function(M){M=M===void 0?!0:M;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.yU("LOGIN_INFO",""),M&&window.sessionStorage.setItem("from_switch_account","1"),QSG(!0,M)}catch(z){}};
UAn=function(M){M&&(M.startsWith("https://accounts.google.com/AddSession")?_.az():M.startsWith("https://accounts.google.com/ServiceLogin")?_.az():M.startsWith("https://myaccount.google.com")&&_.um(M).getPath().endsWith("/youtubeoptions")&&_.az())};
VO=function(M,z){UAn(M);if(_.cW("LOGGED_IN",!0)&&X8o()){var J=ZRG(M);J==null&&(J={});lnp(J,z)&&_.rM(M,J)}};
vh8=function(){function M(z){for(z=z.target;z&&z.nodeName!=="A";)if(z=z.parentNode,!(z&&z instanceof HTMLElement))return;if(z&&!z.hasAttribute("download")&&z.getAttribute("rel")!=="external"&&z.href)return z.href}
document.addEventListener("mousedown",function(z){z.button!==0&&(z=M(z))&&VO(z)});
document.addEventListener("click",function(z){(z=M(z))&&VO(z)})};
xAe=function(){var M=new GP0;try{if(_.cW("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(B){M.increment(5,!1);return}if(_.HW("LOGIN_INFO")){var z=w83?w83:window.location;_.HW("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&In3();var J=ZRG(z.href);J==null&&(J={});var R=J.session_logininfo,D=Number(window.sessionStorage.getItem("stickiness_reload")),N=R===_.HW("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
D>=2||N)D>=2?M.increment(2,N):N?M.increment(7,N):window.sessionStorage.getItem("session_logininfo")||(M.increment(3,N),elH="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.HW("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.HW("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))M.increment(4,N),window.sessionStorage.removeItem("stickiness_reload");
else if(D<2){window.sessionStorage.setItem("stickiness_reload",String(D+1));var Z=z.href;Z=_.Ms(Z,"sttick");VO(Z,window.sessionStorage.getItem("session_logininfo"));Z=_.Lh(Z,{sttick:D});M.increment(D,N);_.BVp(z,Z)}}else M.increment(6,!1)}else _.az(!1)}catch(B){}};
_.EA=function(M,z,J,R,D){z=z===void 0?{}:z;J=J===void 0?"":J;R=R===void 0?window:R;M=_.Ag(M,z);VO(M);J=_.hr(M+J,D);_.BVp(R.location,J)};
_.tbY=function(M,z,J,R,D){D=D===void 0?!1:D;J&&_.rM(M,J);J=_.hr(M);var N=_.Yq(J);M!=N&&_.WW(Error("ag`"+M));M=N;z=z||Ws(M).toString(36);try{if(D)return D=M,D=UfY(D),VO(D),_.VZ(window,D,z,"attributionsrc")}catch(Z){_.$y(Z)}VO(M);return _.VZ(window,J,z,R)};
jSY=function(M){if(M.urlEndpoint){if(M=_.fh(M.urlEndpoint.url),M.adurl)return MC(M.adurl)}else if(M.watchEndpoint)return"//www.youtube.com/watch?v="+M.watchEndpoint.videoId;return null};
p88=function(M){if(!M||!M.reportingPings)return null;var z={};M.reportingPings.forEach(function(J){J.pingType in z?z[J.pingType].push(J.url):z[J.pingType]=[J.url]});
return{adpings:lLn(z)}};
_.fX=function(){return{isShellLoad:_.cW("IS_SHELL_LOAD",!1)}};
YLH=function(){navigator.serviceWorker.getRegistrations().then(function(M){M.forEach(FY3)})};
FY3=function(M){M&&_.mAw(ghY,M.scope)};
_.mAw=function(M,z){z={scope:z||_.Sz("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.xq(M),z)};
LX=function(M,z,J,R){if(z&&z.serializedYpcCujLoggingParams){if(J){var D={};D.transactionErrorType=J;R&&(D.errorMessage=R);z.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:D}}}J={};J.ypcCujContext=z;M=_.oz("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",M,J);_.l7(_.ee(),M,"FLOW_TYPE_YPC_ACQUISITION")}};
_.sS8=function(M,z,J,R){var D={};D.serializedTransactionFlowLoggingParams=z;J&&(D.errorType=J);R&&(D.errorMessage=R);_.gP(M,D);_.sB()};
_.nhp=function(M){M&&_.sS8("transactionFlowStarted",M)};
_.hle=function(M){M&&_.sS8("transactionFlowCancelled",M)};
_.A9=function(M,z,J){z&&_.sS8("transactionFlowFailed",z,M,J)};
y3R=function(M){var z=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");z&&(z.inert=M)};
_.i7=function(){this.megabloxUrl_=null};
_.CX=function(M){try{var z=Hmw==null?void 0:Hmw.composedPath(M)}catch(J){z=M.composedPath?M.composedPath():[]}return z&&z.length>0?z:M.composedPath?M.composedPath():[]};
_.b7=function(M){return _.CX(M)[0]};
_.rB=function(M){if(!(M instanceof Element))return null;M=M.classList?Array.from(M.classList):void 0;if(!M)return null;var z=M.indexOf("style-scope");return z>-1&&z+1<M.length?M[z+1]:null};
M3=function(M){if(!(M instanceof HTMLElement))return null;var z=M&&(M.$$||M.polymerController)?M.tagName.toLowerCase():null;return z?z:_.rB(M)};
c3n=function(M,z){return M.replace(/[^a-z]*[^\s]+/g,function(J){return J+".style-scope."+z})};
dAn=function(M,z){return z?M.split(",").map(function(J){return c3n(J.trim(),z)}).join(", "):M};
_.zp=function(M){var z,J,R,D;return(D=(R=(J=(z=M.root)!=null?z:M.shadowRoot)!=null?J:M.__shady_native_shadowRoot)!=null?R:M.__shady_shadowRoot)!=null?D:M};
JJ=function(M){return M instanceof ShadowRoot?ShadowRoot:M instanceof DocumentFragment?DocumentFragment:M instanceof Document?Document:HTMLElement};
KYG=function(M){var z,J,R;return(R=(J=(z=M.parentElement)!=null?z:M.__shady_native_parentElement)!=null?J:M.__shady_parentElement)!=null?R:null};
$Ap=function(M){var z,J,R;return(R=(J=(z=M.parentNode)!=null?z:M.__shady_native_parentNode)!=null?J:M.__shady_parentNode)!=null?R:null};
uPR=function(M){var z,J,R;return(R=(J=(z=M.__shady_parentNode)!=null?z:M.__shady_native_parentNode)!=null?J:M.parentNode)!=null?R:null};
qL8=function(M){var z,J;return(J=(z=$Ap(M))!=null?z:M.host)!=null?J:null};
WYn=function(M){var z,J,R;return(R=(J=(z=M.nextSibling)!=null?z:M.__shady_native_nextSibling)!=null?J:M.__shady_nextSibling)!=null?R:null};
anb=function(M){var z,J,R;return(R=(J=(z=M.previousSibling)!=null?z:M.__shady_native_previousSibling)!=null?J:M.__shady_previousSibling)!=null?R:null};
Vbn=function(M){var z,J,R;return(R=(J=(z=M.nextElementSibling)!=null?z:M.__shady_native_nextElementSibling)!=null?J:M.__shady_nextElementSibling)!=null?R:null};
Eh0=function(M){var z,J,R;return(R=(J=(z=M.previousElementSibling)!=null?z:M.__shady_native_previousElementSibling)!=null?J:M.__shady_previousElementSibling)!=null?R:null};
fnH=function(M){var z,J,R;return new Set([].concat(_.Yj((z=M.children)!=null?z:[]),_.Yj((J=M.__shady_native_children)!=null?J:[]),_.Yj((R=M.__shady_children)!=null?R:[])))};
LYo=function(M){var z,J,R;return new Set([].concat(_.Yj((z=M.childNodes)!=null?z:[]),_.Yj((J=M.__shady_native_childNodes)!=null?J:[]),_.Yj((R=M.__shady_childNodes)!=null?R:[])))};
A3H=function(M){if(!M)return null;var z=_.rB(M);if(!z){var J;return(J=Node.prototype.getRootNode)==null?void 0:J.call(M)}z=z.toUpperCase();for(M=KYG(M);M&&M.tagName!==z;)M=KYG(M);return M?_.zp(M):null};
imR=function(M){for(;M&&!(M instanceof HTMLElement);)M=qL8(M);return M};
C1Y=function(M){var z=imR(M);return M===z?_.rB(M):z?M3(z):null};
bmn=function(M){return(M=imR(M))?M3(M):null};
r3Y=function(M){if(M instanceof Comment)return!1;if(M instanceof Text){var z,J;if(((J=(z=M.textContent)==null?void 0:z.trim())!=null?J:"")==="")return!1}return!0};
Ru=function(M,z,J){var R=z(M);for(J=J===void 0?bmn(M):J;R&&(C1Y(R)!==J||!r3Y(R));)M=R,R=z(M);return R};
Mtc=function(M,z,J){if(!z)return null;M=bmn(M);return C1Y(z)===M&&r3Y(z)?z:Ru(z,J,M)};
zdp=function(M){return Ru(M,uPR,_.rB(M))};
JU0=function(M){return Ru(M,Vbn)};
Rd8=function(M){return Ru(M,WYn)};
DL8=function(M){return Ru(M,Eh0)};
NG8=function(M){return Ru(M,anb)};
Pjp=function(M){return Mtc(M,M.firstChild||M.__shady_native_firstChild||M.__shady_firstChild||null,WYn)};
Sz0=function(M){var z,J,R;var D=(R=(J=(z=M.firstElementChild)!=null?z:M.__shady_native_firstElementChild)!=null?J:M.__shady_firstElementChild)!=null?R:null;return Mtc(M,D,Vbn)};
Z9w=function(M){var z,J,R;var D=(R=(J=(z=M.lastChild)!=null?z:M.__shady_native_lastChild)!=null?J:M.__shady_lastChild)!=null?R:null;return Mtc(M,D,anb)};
kM0=function(M){var z,J,R;var D=(R=(J=(z=M.lastElementChild)!=null?z:M.__shady_native_lastElementChild)!=null?J:M.__shady_lastElementChild)!=null?R:null;return Mtc(M,D,Eh0)};
BG0=function(M){var z=bmn(M);return Array.from(LYo(M)).filter(function(J){return C1Y(J)===z})};
O9H=function(M){var z=M3(M);return Array.from(fnH(M)).filter(function(J){return _.rB(J)===z})};
_.DE=function(M,z,J){if(M instanceof HTMLElement&&_.rB(M)===J){var R=Array.from(M.classList).indexOf("style-scope");if(R===-1)M.classList.add("style-scope"),M.classList.add(z);else if(!(R+1>=M.classList.length)){R=M.classList[R+1];var D,N;M==null||(D=M.classList)==null||(N=D.replace)==null||N.call(D,R,z)}}if(M instanceof HTMLElement||M instanceof DocumentFragment)for(D=_.S(fnH(M)),N=D.next();!N.done;N=D.next())_.DE(N.value,z,J);return M};
N3=function(M,z){if(M instanceof HTMLElement&&_.rB(M)===z){var J=Array.from(M.classList).indexOf("style-scope");J===-1||J+1>=M.classList.length||M.classList.remove("style-scope",M.classList[J+1])}if(M instanceof HTMLElement||M instanceof DocumentFragment){J=_.S(M.children);for(var R=J.next();!R.done;R=J.next())N3(R.value,z)}return M};
_.TGn=function(M,z){return JJ(M).prototype.appendChild.call(M,z)};
I7o=function(M,z){if(M===z)return!0;M=LYo(M);return Array.from(M).some(function(J){return I7o(J,z)})};
_.SN=function(M,z){if(M instanceof PU)return M;(z==null?0:z.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(M,"ownerDocument")&&Object.defineProperty(M,"ownerDocument",{get:function(){return window.document}});
return new PU(M)};
XCw=function(){var M=PU.prototype,z=[].concat(_.Yj(oY0?[]:["getRootNode"]),["setAttribute","removeAttribute"]);z=_.S(z);for(var J=z.next(),R={};!J.done;R={method$jscomp$51:void 0},J=z.next())R.method$jscomp$51=J.value,M[R.method$jscomp$51]=function(D){return function(){return this.host[D.method$jscomp$51].apply(this.host,arguments)}}(R)};
edw=function(){var M=PU.prototype,z=[].concat(_.Yj(oY0?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Yj(l7R?[]:["querySelector","querySelectorAll"]));z=_.S(z);for(var J=z.next(),R={};!J.done;R={method$jscomp$52:void 0},J=z.next())R.method$jscomp$52=J.value,M[R.method$jscomp$52]=function(D){return function(){return this.root[D.method$jscomp$52].apply(this.root,arguments)}}(R)};
vYH=function(){var M=PU.prototype,z=[].concat(_.Yj(Q5R?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Yj(ULo?[]:["parentNode"]));z=_.S(z);for(var J=z.next(),R={};!J.done;R={prop$jscomp$62:void 0},J=z.next())R.prop$jscomp$62=J.value,Object.defineProperty(M,R.prop$jscomp$62,{get:function(D){return function(){return this.host[D.prop$jscomp$62]}}(R),
configurable:!0})};
xLp=function(){var M=PU.prototype,z=["activeElement"].concat(_.Yj(Q5R?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Yj(GMp?[]:["children"]),_.Yj(wCe?[]:["lastChild"]));z=_.S(z);for(var J=z.next(),R={};!J.done;R={prop$jscomp$63:void 0},J=z.next())R.prop$jscomp$63=J.value,Object.defineProperty(M,R.prop$jscomp$63,{get:function(D){return function(){return this.root[D.prop$jscomp$63]}}(R),
configurable:!0})};
tt8=function(){for(var M=PU.prototype,z=_.S(["innerHTML","textContent"]),J=z.next(),R={};!J.done;R={prop$jscomp$64:void 0},J=z.next())R.prop$jscomp$64=J.value,Object.defineProperty(M,R.prop$jscomp$64,{get:function(D){return function(){return this.root[D.prop$jscomp$64]}}(R),
set:function(D){return function(N){this.root[D.prop$jscomp$64]=N}}(R),
configurable:!0})};
j5b=function(M){var z=PU.prototype;M=_.S(Object.entries(M));for(var J=M.next(),R={};!J.done;R={fn$jscomp$392:void 0},J=M.next()){var D=_.S(J.value);J=D.next().value;D=D.next().value;R.fn$jscomp$392=D;z[J]=function(N){return function(){return N.fn$jscomp$392.apply(null,[this.host.node||this.host].concat(_.Yj(arguments)))}}(R)}};
FEY=function(){for(var M=PU.prototype,z=_.S(Object.entries(pC8)),J=z.next(),R={};!J.done;R={fn$jscomp$393:void 0},J=z.next()){var D=_.S(J.value);J=D.next().value;D=D.next().value;R.fn$jscomp$393=D;Object.defineProperty(M,J,{get:function(N){return function(){return N.fn$jscomp$393.apply(null,[this.host.node||this.host].concat(_.Yj(arguments)))}}(R),
configurable:!0})}};
_.ZE=function(M){return M instanceof Yzb||M instanceof Document?M:new Yzb(M)};
mLo=function(){for(var M=Yzb.prototype,z=_.S("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),J=z.next(),R={};!J.done;R={method$jscomp$53:void 0},J=z.next())R.method$jscomp$53=J.value,M[R.method$jscomp$53]=function(D){return function(){return HTMLElement.prototype[D.method$jscomp$53].call.apply(HTMLElement.prototype[D.method$jscomp$53],[this.node].concat(_.Yj(arguments)))}}(R)};
gYY=function(){for(var M=Yzb.prototype,z=_.S("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),J=z.next(),R={};!J.done;R={prop$jscomp$65:void 0},J=z.next())R.prop$jscomp$65=J.value,Object.defineProperty(M,R.prop$jscomp$65,{get:function(D){return function(){var N;return(N=this.node["__shady_native_"+D.prop$jscomp$65])!=null?N:this.node[D.prop$jscomp$65]}}(R),
configurable:!0})};
_.kz=function(M,z,J){J===void 0&&(J=!M.classList.contains(z));J?M.classList.add(z):M.classList.remove(z)};
_.BU=function(M,z,J){J===void 0&&(J=!M.hasAttribute(z));if(z==="class")throw Error("eg");J?_.ZE(M).setAttribute(z,""):_.ZE(M).removeAttribute(z)};
s5p=function(M){return(M.localName!=="slot"?[]:(0,_.OV)(M).assignedNodes({flatten:!0})).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
_.nY3=function(M){return(M=_.SN(M).querySelector("slot"))&&M.localName==="slot"?s5p(M):[]};
_.Tp=function(M,z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(M,z)};
Iu=function(M,z){var J=z.bind(M);return function(R){J(R,R.detail)}};
_.ou=function(M,z){var J=hdc.get(M);J||(J=new WeakMap,hdc.set(M,J));if(J.has(z))return J.get(z);if(_.U("web_fi_listen_disable_bound_fn_helper")){var R=z.bind(M);M=function(D){R(D,D==null?void 0:D.detail)}}else M=Iu(M,z);
J.set(z,M);return M};
cU8=function(M,z){yU8(M);M.created[H93].push(z)};
yU8=function(M){if(!M.created||!M.created[H93]){var z=M.created,J=z?[z]:[];M.created=function(){for(var R=_.S(J),D=R.next();!D.done;D=R.next())D.value.apply(this)};
M.created[H93]=J}};
dLe=function(M){return function(){var z=_.H4.apply(0,arguments);return function(J,R,D){M.apply(null,_.Yj(z))(J,R,D)}}};
KEn=function(){return function(){var M=_.H4.apply(0,arguments);return function(z,J,R){t63.apply(null,_.Yj(M))(z,J,R)}}};
_.p=function(M){return KEn()(M)};
_.F=function(){return dLe(Ycc).apply(null,_.Yj(_.H4.apply(0,arguments)))};
_.Xw=function(M){return _.U("pbcm_fi_listen_decorators")?$L3(M):dLe(pKR)(M)};
$L3=function(M){return function(z,J){cU8(z,function(){var R=this[J],D=_.U("web_fi_listen_disable_bound_fn_helper")?function(N){R(N,N.detail)}.bind(this):Iu(this,R);
uc3.has(M)?h1(this.hostElement,M,D):this.hostElement.addEventListener(M,D)})}};
_.la=function(){return dLe(Fc8).apply(null,_.Yj(_.H4.apply(0,arguments)))};
_.Y=function(M){M=M===void 0?{}:M;return dLe(jNH)(M)};
_.eN=function(M){if(M.hostElement&&M!==M.hostElement){var z=_.pu(M.hostElement);z=M.renderIdom?z:z.shadowRoot}z||(M=M.root,z=M instanceof Node?_.pu(M):null);return z};
_.Qc=function(M){return qzn?WEb(M):function(z,J){Object.defineProperty(z,J,{get:function(){var R;return(R=_.eN(this))==null?void 0:R.querySelector(M)},
enumerable:!0,configurable:!0})}};
WEb=function(M){return function(z,J){Object.defineProperty(z,J,{get:function(){var R,D=(R=_.SN(this.hostElement))==null?void 0:R.querySelector(M);if(D)return D;var N;return(N=_.eN(this))==null?void 0:N.querySelector(M)},
enumerable:!0,configurable:!0})}};
_.UV=function(M){return qzn?a7p(M):function(z,J){Object.defineProperty(z,J,{get:function(){var R;return(R=_.eN(this))==null?void 0:R.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
a7p=function(M){return function(z,J){Object.defineProperty(z,J,{get:function(){var R,D=(R=_.SN(this.hostElement))==null?void 0:R.querySelectorAll(M);if(D==null?0:D.length)return D;var N;return(N=_.eN(this))==null?void 0:N.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
Vtb=function(M){return function(z){if(![_.MI,_.g].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("fg");lko(Object.assign({},typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(z)}};
_.Gp=function(){var M=M===void 0?{}:M;return function(z){if(![zi,_.vU].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("gg");eIp(Object.assign({},M,{disableInheritanceCheck:!0}))(z)}};
f7G=function(M,z){EYc[M]!=null||(EYc[M]=new Set);EYc[M].add(z)};
_.wH=function(){var M=_.la.apply(null,_.Yj(_.H4.apply(0,arguments)));return function(z,J){f7G(z.is,J);M(z,J)}};
jN=function(M,z,J){if(xz(M)&&!LER.has(z)){z=z.replace(/^JSC\$[\d]+_/,"");z=z.replace(/\.\d+(\.|$)/g,function(N,Z){return".#"+Z});
tJ[M]!=null||(tJ[M]={});var R,D;(R=tJ[M])[D=z]!=null||(R[D]=new Set);tJ[M][z].has(J)||(tJ[M][z].add(J),_.gP("polymerPropertyAccessEvent",{componentName:M,propertyName:z,accessType:J}))}};
AUo=function(){return _.U("polymer_property_access_logging_debug")||_.U("polymer_enable_property_access_logging")};
xz=function(M){if(_.U("polymer_property_access_logging_debug"))return!0;if(!_.U("polymer_enable_property_access_logging"))return!1;i9G||(i9G=Date.now());return(Ws(M)+i9G)%100<_.NC("polymer_property_access_logging_percent")};
Cjo=function(M,z){return xz(z)&&M.hostElement.loggingStatus?new Proxy(M,{get:function(J,R,D){if(J.hostElement.loggingStatus.bypassProxyController)return J[R];J.hostElement.loggingStatus.isExternalGet=!0;var N=J[R];J.hostElement.loggingStatus.isExternalGet=!1;if(N instanceof Function)return function(){var Z=_.H4.apply(0,arguments);try{return J.hostElement.loggingStatus.currentExternalCall=R,jN(z,R,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),N.apply(this===D?J:this,Z)}finally{J.hostElement.loggingStatus.currentExternalCall=
void 0}};
jN(z,R,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return N},
set:function(J,R,D){if(J.hostElement.loggingStatus.bypassProxyController)return J[R]=D,!0;J.hostElement.loggingStatus.isRendererStamper?jN(z,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):J.hostElement.loggingStatus.isDeclarativeExternal||jN(z,R,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{J.hostElement.loggingStatus.currentExternalSet=R,J[R]=D}finally{J.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):M};
b9o=function(M,z){M&&M.loggingStatus&&!M.loggingStatus.isDeclarativeExternal&&!M.loggingStatus.isExternalGet&&M.loggingStatus.currentExternalSet!==z&&jN(M.tagName.toLowerCase(),z,"PROPERTY_ACCESS_GET_INTERNAL")};
pd=function(M,z,J){M&&(J||M.loggingStatus&&!M.loggingStatus.isInitializing&&!M.loggingStatus.isDefiningPropertyAccessor&&M.loggingStatus.currentExternalSet!==z)&&jN(M.tagName.toLowerCase(),z,"PROPERTY_ACCESS_SET_INTERNAL")};
rUG=function(){return{_definePropertyAccessor:function(M,z){var J=this,R=J.hostElement.loggingStatus;R&&(R.isDefiningPropertyAccessor=!0);var D=J[M];D!==void 0&&(J.__data?J._setPendingProperty(M,D):(J.__dataProto!=null||(J.__dataProto={}),J.__dataProto[M]=D));R&&(R.isDefiningPropertyAccessor=!1);Object.defineProperty(this,M,{get:function(){b9o(J.hostElement,M);return this.__data[M]},
set:function(N){z||this._setPendingProperty(M,N,!0)&&this._invalidateProperties()}})},
created:function(){var M=this._setPendingProperty.bind(this);this._setPendingProperty=function(z,J,R){pd(this.hostElement,z);return M.apply(this,[z,J,R])}}}};
MKH=function(M){AUo()&&_.p(Fw.prototype)(M.prototype,"__templateBindingLoggingBehavior")};
zWc=function(M,z){if(z.resolvedFactories.length!==M.resolvedFactories.length)return!0;z=_.S(z.resolvedFactories.entries());for(var J=z.next();!J.done;J=z.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;if(R.providerClass){if(R.providerClass!==M.resolvedFactories[J].providerClass)return!0}else if(R.providerValue){if(R.providerValue!==M.resolvedFactories[J].providerValue)return!0}else if(R.factory!==M.resolvedFactories[J].factory)return!0}return!1};
JBp=function(M,z){M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,J.constructor===Array)JBp(J,z);else{var R=z;R.has(J)||(J.inject&&R.add(J),J.behaviors&&JBp(J.behaviors,R))}};
gH=function(M,z){var J=M[z];M[z]=function(){var R=_.H4.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(J)return J.apply(this,R)}};
PLR=function(){_.sV.Class=function(J,R){J=RWR(J,R);gH(J.prototype,"created");return J};
gH(nd.prototype,"_initializeProperties");gH(_.hJ.prototype,"_initializeProperties");if(DVb)gH(N2w,"created");else{var M=function(){gH(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))M();else{var z=customElements.define;customElements.define=function(J,R,D){z.call(customElements,J,R,D);J==="tp-yt-iron-list"&&(M(),customElements.define=z)}}}};
Zzb=function(M,z){M.prototype.behaviors=M.prototype.behaviors||[];M.prototype.behaviors.unshift(S10.InjectBehavior);M.prototype.provide=z};
_.cU=function(M){return function(z){if(!M.disableElementRegistration){M.noInjection||Zzb(z,M.providers);var J=z.prototype;J.__templateHelpers||t63(yc.prototype)(J,"__templateHelpers");J=M.is;kuG||(kuG=Date.now());(Ws(J)+kuG)%100<_.NC("polymer_log_prop_change_observer_percent")&&t63(HU.prototype)(z.prototype,"__propertyObserverObserver");z.prototype.behaviors=z.prototype.behaviors||[];z.prototype.behaviors.unshift(_.B2H.YtHostElementBehavior);MKH(z);Vtb({is:M.is,notifyObserversOnUndefined:M.notifyObserversOnUndefined!==
!1,fastInit:M.fastInit,template:M.template,disableEnforceFastDefaultValuesCheck:!0})(z)}}};
_.c=function(M){return _.cU({is:M.is,template:M.template,disableElementRegistration:M.disableElementRegistration,cssBuildOptOut:M.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Imb=function(M,z){if(Oze){M=new M;for(var J=_.S(Object.getOwnPropertyNames(M)),R=J.next();!R.done;R=J.next())R=R.value,z[R]=M[R];for(J=z;J&&J!==Object.prototype;J=Object.getPrototypeOf(J)){R=_.S(Object.getOwnPropertyNames(J));for(var D=R.next();!D.done;D=R.next())D=D.value,M.hasOwnProperty(D)||Object.defineProperty(M,D,T2R(z,D))}}else M.apply(z)};
T2R=function(M,z){return{get:function(){var J=M[z];return J instanceof Function?J.bind(M):J},
set:function(J){M[z]=J}}};
Xo8=function(M,z){for(var J=M._noAccessors,R=_.S(Object.getOwnPropertyNames(M)),D=R.next();!D.done;D=R.next())if(D=D.value,!obG.has(D))if(J)z[D]=M[D];else{var N=Object.getOwnPropertyDescriptor(M,D);N&&(N.configurable=!0,Object.defineProperty(z,D,N))}};
lmp=function(M,z,J){return function(R){if(J){var D=J();R.model=D}if(M[z])M[z](R,R.detail)}};
dH=function(M){var z=[];if(typeof M==="string")M.length>0&&z.push.apply(z,_.Yj(M.split(".")));else{M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,typeof J==="string"?z.push.apply(z,_.Yj(J.split("."))):z.push(J)}return z};
eW8=function(M,z){if(z[z.length-1]!=="*"&&z[z.length-1]!=="splices"){for(var J=0;J<z.length;J++){if(!M)return;M=M[z[J]]}return M}};
QPw=function(M,z){if(M.length>z.length)return!1;for(var J=0;J<M.length;J++)if(M[J]!==z[J])return!1;return!0};
vbe=function(M,z,J){if(z.type==="compute"){var R=z.getter.bind(J);var D=z.args}else R=function(){return J[z.method.methodName].apply(J,_.Yj(_.H4.apply(0,arguments)))},D=z.method.args;
UV3(M,z.propertyKey,R,D,z.value)};
woR=function(M,z){if(z.readOnly){var J=Object.getOwnPropertyDescriptor(M.model,z.propertyKey);Object.defineProperty(M.model,z.propertyKey,{get:J.get,set:function(){}});
M.model[GuY(z.propertyKey)]=J.set}};
xVe=function(M,z,J){if(J){var R=z.propertyKey,D=z.selector;z=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Yj(z.selectorArgs.map(function(N){return{type:"path",path:N}})));
UV3(M,R,function(N){var Z=_.H4.apply(1,arguments);return D.apply(null,[J.getState()].concat(_.Yj(Z)))},z)}};
jP3=function(M,z,J){var R=_.Q5(z.propertyKey)+"-changed";tK0(M,function(D){var N={value:D.value,queueProperty:!0};D.path.split(".").length>1&&(N.path=D.path);J.dispatchEvent(new CustomEvent(R,{detail:N}))},[{type:"wildcard",
path:z.propertyKey}])};
pob=function(M,z,J){tK0(M,function(){J[z.method.methodName].apply(J,_.Yj(_.H4.apply(0,arguments)))},z.method.args)};
GuY=function(M){return"_set"+(M.charAt(0).toUpperCase()+M.slice(1))};
Fmw=function(){var M,z=F8(function(J){M=J},!1);
return[M,z]};
nbG=function(M){M=M.trim().replace(Y1p,",").replace(mVw,"$1");var z=M[0];z==="-"&&(z=M[1]);if(z>="0"&&z<="9")return{type:"literal",value:Number(M)};if(z==="'"||z==='"')return{type:"literal",value:M.slice(1,-1)};if(z=M.match(gbp)){z=z[1];var J=sPo[z];if(J)return{type:J,path:M.slice(0,-(z.length+1))}}return{type:"path",path:M}};
cBb=function(M){var z=M.match(hW8);if(z)return M={methodName:z[1],args:yBH},z[2].trim()&&(z=z[2].replace(Hze,"&comma;").split(","),M.args=z.map(nbG)),M};
dVw=function(M,z,J,R){R=R===void 0?!1:R;z=_.Q5(z);var D=vN;D&&(J=D(J,z,"attribute",M));Kd(M,J,z,R)};
Kd=function(M,z,J,R){z=Kmc(z,R===void 0?!1:R);z===void 0?M.removeAttribute(J):M.setAttribute(J,z)};
Kmc=function(M,z){switch(typeof M){case "object":case "function":if(M instanceof Date)return M.toString();if(M){if((z===void 0?0:z)&&!_.U("polymer_reflect_objects_as_boolean_killswitch"))return M?"":void 0;z=window.trustedTypes?window.trustedTypes.isHTML(M)||window.trustedTypes.isScript(M)||window.trustedTypes.isScriptURL(M):void 0;if(z)return M;try{return JSON.stringify(M)}catch(J){_.yA(Error("Cg`"+M))}}break;case "boolean":return M?"":void 0;default:return M!==null&&M!==void 0?M.toString():void 0}};
$V0=function(M){if(M===void 0)throw Error("Dg");return M};
VKR=function(M,z,J,R){var D=uE8(R);if(D.length){R=J;var N="property";q1p.test(J)?N="attribute":J[J.length-1]==="$"&&(J=J.slice(0,-1),N="attribute");var Z=Wmw(D);Z&&N==="attribute"&&(J==="class"&&M.hasAttribute("class")&&(Z+=" "+M.getAttribute(J)),Kd(M,Z,J));N==="attribute"&&R==="disable-upgrade$"&&M.setAttribute("disable-upgrade","");M.localName==="input"&&R==="value"&&M.setAttribute("value","");M.removeAttribute(R);N==="property"&&(J=_.UK(J));z=$V0(z);amR(z,N,J,D);return!0}return J.slice(0,3)===
"on-"?(M.removeAttribute(J),(N=z).events!=null||(N.events=[]),z.events.push({name:J.slice(3),value:R}),!0):J==="id"?(z.id=R,!0):!1};
uE8=function(M){for(var z=[],J=0,R;(R=Ebo.exec(M))!==null;){R.index>J&&z.push({type:"literal",value:M.slice(J,R.index)});var D=R[1][0];J=!!R[2];R=R[3].trim();if(D==="{")throw Error("Eg");(D=cBb(R))?z.push({type:"method",negate:J,signature:D}):z.push({type:"path",negate:J,path:R});J=Ebo.lastIndex}J&&J<M.length&&(M=M.substring(J))&&z.push({type:"literal",value:M});return z};
Wmw=function(M){for(var z="",J=0;J<M.length;J++){var R=M[J];R.type==="literal"&&(z+=R.value)}return z};
amR=function(M,z,J,R){M.bindings!=null||(M.bindings=[]);M.bindings.push({kind:z,target:J,parts:R})};
CLb=function(M,z,J){var R=!1;if(M.localName==="template"){R=J;var D=z.stripWhitespace;D=fmG(M,D===void 0?!1:D);var N=M.content.ownerDocument.createDocumentFragment();D.content=N;N.appendChild(M.content);R&&(R.templateInfo=D);R=!0}else M.localName==="slot"&&(z.hasInsertionPoint=!0);if(M.firstChild&&(D=J,M.localName!=="script"&&M.localName!=="style")){N=0;for(var Z=M.firstChild;Z;){var B=Z;if(B.localName==="template"){var O=B.getAttribute("is");if((Z=O==="dom-if")||O==="dom-repeat"){B.removeAttribute("is");
O=B.ownerDocument.createElement("ps-"+O);B.parentNode.replaceChild(O,B);O.appendChild(B);var X=Array.from(B.attributes);X=_.S(X);for(var l=X.next();!l.done;l=X.next())l=l.value,Z?Lm0.has(l.name)&&Kd(O,l.value,l.name):AB8.has(l.name)?Kd(O,l.value,l.name):izw.has(l.name),B.removeAttribute(l.name);Z=O}else Z=B}if(Z.nodeType===Node.TEXT_NODE){B=void 0;O=M;for(X=Z;((B=X.nextSibling)==null?void 0:B.nodeType)===Node.TEXT_NODE;)l=void 0,(l=X).textContent!=null||(l.textContent=""),X.nextSibling.textContent&&
(X.textContent+=X.nextSibling.textContent),O.removeChild(X.nextSibling);if(z.stripWhitespace&&Z.textContent&&!Z.textContent.trim()){M.removeChild(Z);Z=Z.nextSibling;continue}}CLb(Z,z,{parentIndex:N,parentInfo:D});Z.parentNode&&N++;Z=Z.nextSibling}}var e;if((e=M.hasAttributes)==null?0:e.call(M)){e=J=$V0(J);D=!1;N=Array.from(M.attributes);N=_.S(N);for(B=N.next();!B.done;B=N.next())B=B.value,D=VKR(M,e,B.name,B.value)||D;R=D||R}M.nodeType===Node.TEXT_NODE&&(e=uE8(M.textContent),e.length&&(M.textContent=
Wmw(e)||" ",J=$V0(J),amR(J,"text","textContent",e),R=!0));J&&R&&(J.infoIndex=z.nodeInfoList.push(J)-1)};
fmG=function(M,z){z={nodeInfoList:[],stripWhitespace:(z===void 0?!1:z)||M.hasAttribute("strip-whitespace")};CLb(M.content,z);return z};
bzp=function(M){Object.assign(M,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
MGw=function(M,z,J){z.signalCache!=null||(z.signalCache={});var R=z.signalCache[J];if(!R){var D=J.split(".");R=!rBR(M,D[0]);if(D.length>1&&R){var N=M.getPathMutationSignal(D);R=function(){var Z=gf(M.owner,function(){return M.getWithPath([D[0]])}),B,O=(B=N())==null?void 0:B.value;
return{rootWasDefined:Z!==void 0,value:O}}}else R=function(){var Z=M.getWithPath(D);
return{rootWasDefined:Z!==void 0,value:Z}};
z.signalCache[J]=R}return R()};
JCn=function(M,z,J,R,D){z=z.parts.map(function(Z,B){if(Z.type==="literal"){J.partWasDefined!=null||(J.partWasDefined=[]);var O;(O=J.partWasDefined)[B]||(O[B]=Z.value!==void 0);return Z.value}var X;if(Z.type==="method"){var l,e=(l=(X=J.partWasDefined)==null?void 0:X[B])!=null?l:!1;e||(e=Z.signature.args.every(function(x){return x.type==="literal"}));
var Q=!1,v=!0;X=Z.signature.args.map(function(x){if(x.type==="literal")return x.value;if(x.type!=="path")throw Error("Fg`"+x.type);var m=MGw(M,J,x.path);x=m.value;m=m.rootWasDefined;Q||(Q=m);v&&(v=m);return x});
e||(e=D===1?v:Q);J.partWasDefined!=null||(J.partWasDefined={});J.partWasDefined[B]=e;if(!e)return;X=(B=MGw(M,J,Z.signature.methodName).value)&&typeof B==="function"?B.apply(R,X):void 0}else l=MGw(M,J,Z.path),X=l.value,J.partWasDefined!=null||(J.partWasDefined={}),(e=J.partWasDefined)[B]||(e[B]=X!==void 0||l.rootWasDefined);Z.negate&&(X=!X);return X});
if(z.length===1){var N;return((N=J.partWasDefined)==null?0:N[0])?z[0]:zsc}return z.join("")};
RsG=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M&&"canNotifyPath"in M};
DOb=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M};
N53=function(M){return"polymerController"in M};
PV8=function(M,z){z=""+dH(z)[0];if(RsG(M))return M.canNotifyPath(z);if(N53(M)&&RsG(M.polymerController))return M.polymerController.canNotifyPath(z);if(DOb(M)){var J;return!((J=M.properties)==null||!J[z])}if(N53(M)&&DOb(M.polymerController)){var R;return!((R=M.polymerController.properties)==null||!R[z])}return!1};
SOo=function(M,z,J){RsG(M)||DOb(M)?M.notifyPath(z,J):N53(M)&&(RsG(M.polymerController)||DOb(M.polymerController))&&M.polymerController.notifyPath(z,J)};
kg8=function(M,z,J){if(J!==zsc){M.kind==="attribute"||M.target!=="textContent"&&(M.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(J=J===void 0?"":J);var R,D=(R=ZUR.Polymer)==null?void 0:R.sanitizeDOMValue;D&&(J=D(J,M.target,M.kind,z));if(M.kind==="attribute"){M=M.target;if(M==="class"||M==="name"||M==="slot")z=(0,_.OV)(z);Kd(z,J,M)}else if(M=M.target,J!==z[M]||typeof J==="object")z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!0,jN(z.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
z[M]=J,z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!1)}};
B5w=function(M,z,J,R){var D=z.parts[0];if(z.parts.length!==1||D.type!=="path"||!PV8(J,z.target))return!1;var N=_.S(D.path.split(".")),Z=N.next().value,B=EC(N);if(rBR(M,Z))return!1;R.signalCache!=null||(R.signalCache={});N=R.signalCache[D.path];var O;N=(O=N)==null?void 0:O().value;if((N==null?void 0:N.path)!==void 0){R=dH(N.path);var X=dH(D.path);R=[z.target].concat(_.Yj(R.slice(X.length-1)));SOo(J,R,D.negate?!N.value:N.value);return!0}var l=$z(M,Z);var e=l.getChangeRecordSignal(B),Q=!1;N=function(){if(!Q){var x=
gf(M.owner,function(){return l.getWithPath([])});
Q||(Q=x!==void 0)}return{value:e(),rootWasDefined:Q}};
R.signalCache[D.path]=N;R.partWasDefined!=null||(R.partWasDefined={});N=N();(X=R.partWasDefined)[0]||(X[0]=N.rootWasDefined);var v=gf(M.owner,function(){return l.getWithPath(B)});
R.partWasDefined[0]&&gf(M.owner,function(){return void kg8(z,J,D.negate?!v:v)});
return!0};
OUn=function(M,z,J,R,D,N){if(!B5w(M,z,J,R)){var Z=JCn(M,z,R,D,N);gf(M.owner,function(){return void kg8(z,J,Z)})}};
T5H=function(M,z,J,R,D,N){J=_.S(J);for(var Z=J.next(),B={};!Z.done;B={infoIndex:void 0},Z=J.next()){Z=Z.value;var O=Z.bindings;B.infoIndex=Z.infoIndex;Z=Z.parentInfo;if(O){O=_.S(O);for(var X=O.next(),l={};!X.done;l={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},X=O.next()){l.b$jscomp$253=X.value;if(B.infoIndex===void 0)throw Error("Gg");l.bindingCtx$jscomp$4={};M.effect(function(e,Q){return function(){D&&!D()||OUn(M,e.b$jscomp$253,z[Q.infoIndex],e.bindingCtx$jscomp$4,R,N)}}(l,B))}}Z&&T5H(M,z,[Z],
R,D,N)}};
IqH=function(M,z){M=(z.parentInfo?IqH(M,z.parentInfo):M).firstChild;for(var J=0;M;M=M.nextSibling)if(z.parentIndex===J++)return M;throw Error("Hg");};
XeH=function(M,z,J,R){M=document.importNode(M.content,!0);M.__noInsertionPoint=!(R==null?0:R.hasInsertionPoint);for(var D=Array(z.length),N={},Z=0;Z<z.length;Z++){var B=z[Z],O=IqH(M,B);D[Z]=O;B.id&&(N[B.id]=O);if(B.templateInfo){var X=O.parentElement;X&&(X.templateInfo=B.templateInfo,X.parentSignalProxy=J,X.eventListenerHost=R.eventListenerHost,X.stampingEnabled=R.enabledSignal)}X=void 0;if((X=B.events)==null?0:X.length)for(X=0;X<B.events.length;X++){var l=B.events[X];oxn(R.eventListenerHost,O,l.name,
l.value,R.getModel)}}T5H(J,D,z,R.thisCtx,R.enabledSignal,R.methodInvocationRequirement);return{root:M,nodes:D,nodesById:N}};
esH=function(M,z){M=M();var J;(J=lqp.ShadyCSS)==null||J.prepareTemplate(M,z);z=fmG(M);return{template:M,nodeInfoList:z.nodeInfoList,hasInsertionPoint:z.hasInsertionPoint}};
vxG=function(){Q8G=!1;for(var M=ua.length,z=0;z<M;z++){var J=ua[z];if(J)try{J()}catch(R){Promise.resolve().then(function(){throw R;})}}ua.splice(0,M);
UOe+=M};
tGp=function(M){Q8G||(Q8G=!0,Gg0.textContent=(wep++).toString());ua.push(M);return xOe++};
_.au=function(M,z,J){q3++;M=z?new j8o(q3,M,z,J):new pep(q3,M);WU.set(q3,M);return q3};
F00=function(M){(M=WU.get(M))&&M.cancel()};
mOp=function(M,z){M=YOG.get(M);return M?(z=M.get(z))?z:null:null};
_.Vc=function(M,z,J,R){var D=mOp(M,z);if(!D){D=new gxp;var N=YOG.get(M);N||(N=new Map,YOG.set(M,N));N.set(z,D)}M=J.bind(M);D.run(M,R,void 0)};
_.s8R=function(M,z){var J;(J=mOp(M,z))==null||J.cancel()};
nxb=function(M){var z;(z=mOp(M,"doRender"))==null||z.flush()};
EV=function(M){var z;return(z=M.hostElement)!=null?z:M};
hs8=function(M){var z=M.indexOf(".");return z===-1?M:M.slice(0,z)};
yCn=function(M,z,J,R,D,N){N=(D=(R=N?hs8(z):z)?z:null)?M.get(D):M.__data[z];D&&N===void 0&&(N=J[z]);_.Pv(M.hostElement,NJe(R)+"-changed",{value:N,queueProperty:!0,path:D!=null?D:void 0},{bubbles:!1,composed:!1})};
HUe=function(M,z){M.__isReflecting=!0;dVw(M.hostElement,z,M.__data[z]);M.__isReflecting=!1};
cCw=function(M){if(M._onIronRequestResizeNotifications){var z=M._onIronRequestResizeNotifications.bind(M);M._onIronRequestResizeNotifications=function(J){_.b7(J)!==M.hostElement&&z(J)}}M._ariaActiveAttributeChanged&&(M._ariaActiveAttributeChanged=M._ariaActiveAttributeChanged.bind(M.hostElement));
M._activeChanged&&(M._activeChanged=function(J){M.toggles?Kd(M.hostElement,J?"true":"false",M.ariaActiveAttribute):M.hostElement.removeAttribute(M.ariaActiveAttribute);M._changedButtonState()});
M._asyncClick&&(M._asyncClick=function(){_.au(function(){M.hostElement.click()},1)});
!M.keyEventTarget||M.keyEventTarget instanceof EventTarget||(M.keyEventTarget=EV(M.keyEventTarget));M._disabledChanged&&(M._disabledChanged=M._disabledChanged.bind(M.hostElement));M._observeItems&&(M._observeItems=function(J){var R=EV(J);return _.pu(R).observeNodes(function(D){M._updateItems();M._updateSelected();_.Pv(R,"iron-items-changed",D,{bubbles:!1,cancelable:!1})})});
M._updateItems&&M._updateItems===_.fd._updateItems&&(M._updateItems=function(){var J=_.pu(M.hostElement).queryDistributedElements(M.selectable||"*");J=Array.prototype.filter.call(J,M._bindFilterItem);M._setItems(J)});
M._computeKeyboardClass&&(M._computeKeyboardClass=function(J){_.kz(M.hostElement,"keyboard-focus",J)});
M.ensureRipple&&(M.ensureRipple=function(J){if(M.hasRipple&&!M.hasRipple()){if(!M._createRipple)return;M._ripple=M._createRipple();M._ripple.noink=M.noink;var R=M._rippleContainer||M.hostElement;R&&_.SN(R).appendChild(M._ripple)}var D;if(J&&((D=M._ripple)==null?0:D.uiDownAction)){R=_.SN(M._rippleContainer||M.hostElement);var N;D=(N=J.composedPath())==null?void 0:N[0];R.contains(D)&&M._ripple.uiDownAction(J)}});
M._updateMultiselectable&&(M._updateMultiselectable=function(J){J?M.hostElement.setAttribute("aria-multiselectable","true"):M.hostElement.removeAttribute("aria-multiselectable")})};
dOH=function(M,z,J){J=_.S(J);for(var R=J.next();!R.done;R=J.next())Imb(R.value.constructor,M);Imb(z.constructor,M)};
$OY=function(M,z){M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,J.type==="signal"){var R=J.propertyKey;if(z.hasOwnProperty(R)&&z[R]!=null&&J.attributeType===Object){a:{R=z[R].constructor;for(var D=_.S(K0R),N=D.next();!N.done;N=D.next())if(N=N.value,R===N){R=N;break a}R=Object}J.attributeType=R}}};
uFo=function(){};
qOb=function(M){var z;return(z=M.hostElement)!=null?z:M};
W0c=function(){throw Error("Lg");};
aqo=function(M,z){M.constructor.prototype.useSignals=!0;var J=new M.constructor;dOH(J,M,z.behaviors);$OY(z.reactiveSchemas,J);J={};for(var R=_.S(z.reactiveSchemas),D=R.next();!D.done;D=R.next())D=D.value,D.type==="signal"&&(J[D.propertyKey]=D.attributeType);var N={copyPropertiesToProto:W0c,didRegister:!1,typesForSignals:J},Z=["disable-upgrade"].concat(_.Yj(z.observedAttributes)),B=function(O){Ld.call(this,M,z,N,O)};
_.w(B,Ld);_.rX.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
N.copyPropertiesToProto=function(){for(var O=0;O<z.behaviors.length;O++)Xo8(z.behaviors[O],B.prototype);Xo8(M,B.prototype)};
z.legacyOptimizations||N.copyPropertiesToProto();B.prototype.is=M.is;return B};
VGn=function(M,z){if(Object.getPrototypeOf(z.prototype).constructor!==_.g)throw Error("Mg");z.prototype.is=M.is;return aqo(z.prototype,M)};
Exe=function(M){return M.type==="compute"||M.type==="computeWithMethod"};
fq8=function(M){for(var z=M.reactiveSchemas.filter(Exe),J=new Map,R=new Map,D=new Map,N=_.S(z),Z=N.next();!Z.done;Z=N.next())Z=Z.value,J.set(Z.propertyKey,Z),R.set(Z.propertyKey,[]),D.set(Z.propertyKey,0);N=0;z=_.S(z);for(Z=z.next();!Z.done;Z=z.next()){Z=Z.value;for(var B=_.S(Z.type==="computeWithMethod"?Z.method.args:Z.args),O=B.next();!O.done;O=B.next())O=O.value,O.type!=="literal"&&(O=O.path.split(".")[0],R.has(O)&&(R.get(O).push(Z.propertyKey),D.set(Z.propertyKey,D.get(Z.propertyKey)+1),N++))}Z=
[].concat(_.Yj(R.keys())).filter(function(X){return D.get(X)===0});
for(z=[];Z.length;)for(B=Z.shift(),z.push(J.get(B)),B=_.S(R.get(B)),O=B.next();!O.done;O=B.next())O=O.value,D.set(O,D.get(O)-1),N--,D.get(O)===0&&Z.push(O);J=M.reactiveSchemas.filter(function(X){return!Exe(X)});
M.reactiveSchemas=[].concat(_.Yj(J),_.Yj(z))};
L0e=function(M,z){if(z.properties)for(var J=_.S(Object.entries(z.properties)),R=J.next();!R.done;R=J.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;M.properties[R]=typeof D==="function"?{type:D}:D}z.observers&&M.observers.push.apply(M.observers,_.Yj(z.observers));z.disabledPolySiReactions&&M.disabledPolySiReactions.push.apply(M.disabledPolySiReactions,_.Yj(z.disabledPolySiReactions))};
ACp=function(M,z){for(var J=z.length-1;J>=0;J--){var R=z[J];Array.isArray(R)?ACp(M,R):M.indexOf(R)<0&&M.unshift(R)}};
iUp=function(M,z){M.reactiveSchemas=M.reactiveSchemas.filter(function(J){return J.type==="observe"&&z.includes(J.method.methodName)||Exe(J)&&z.includes(J.propertyKey)?!1:!0})};
bUp=function(M,z){var J=z.prototype,R,D,N={is:M.is,reactiveSchemas:[],observedAttributes:[],behaviors:[S10.InjectBehavior,yc.prototype],disableElementRegistration:M.disableElementRegistration,provide:(R=M.providers)!=null?R:[],reactivityMode:M.reactivityMode,signalProperties:(D=J.signalProperties)!=null?D:[]};"template"in z?N.templateGetter=function(){return z.template}:M.getTemplate&&(N.templateGetter=M.getTemplate);
J.behaviors&&ACp(N.behaviors,J.behaviors);CVY(N,z);return N};
CVY=function(M,z){for(var J=z.prototype,R={properties:{},observers:[],disabledPolySiReactions:[]},D=_.S(M.behaviors),N=D.next();!N.done;N=D.next())L0e(R,N.value);L0e(R,J);if(M.signalProperties)for(J=_.S(M.signalProperties),D=J.next();!D.done;D=J.next())delete R.properties[D.value];J=_.S(Object.entries(R.properties));for(D=J.next();!D.done;D=J.next()){N=_.S(D.value);D=N.next().value;N=N.next().value;var Z=void 0;if((Z=M.signalProperties)==null||!Z.includes(D)){Z=void 0;var B=M,O=N.type;if(!O)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{O=Reflect.getMetadata("design:type",z,D);for(var X=_.S(rCw),l=X.next();!l.done;l=X.next())if(l=l.value,O===l){O=l;break a}O=Object}else O=String;N.computed||N.selector||(B.reactiveSchemas.push({type:"signal",propertyKey:D,value:N.value,attributeType:O,readOnly:N.readOnly}),B.observedAttributes.push(_.Q5(D)));N.reflectToAttribute&&B.reactiveSchemas.push({type:"reflect",propertyKey:D});if(N.computed){O=cBb(N.computed);if(!O)throw Error("Ng");B.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:D,method:O,value:N.value})}N.observer&&B.reactiveSchemas.push({type:"observe",method:{methodName:N.observer,args:[{type:"path",path:D}]}});N.notify&&B.reactiveSchemas.push({type:"notify",propertyKey:D});N.selector&&B.reactiveSchemas.push({type:"redux",propertyKey:D,selector:N.selector,selectorArgs:(Z=N.selectorArgs)!=null?Z:[]})}}MY0&&fq8(M);z=_.S(R.observers);for(D=z.next();!D.done;D=z.next())J=M,D=D.value,(N=cBb(D))?J.reactiveSchemas.push({type:"observe",method:N}):console.log('Warning: unable to parse observe declaration: "'+
D+'"');iUp(M,R.disabledPolySiReactions)};
zFe=function(M,z){for(var J=0;J<z.length;J++){var R=z[J],D=void 0;(D=R).showHideApi!=null||(D.showHideApi={});D=void 0;!!M!==!((D=R.showHideApi)==null||!D.hideTemplateChildren)&&(R.nodeType===Node.TEXT_NODE?M?(R.showHideApi.polymerTextContent=R.textContent,R.textContent=""):(D=void 0,R.textContent=(D=R.showHideApi.polymerTextContent)!=null?D:null):R instanceof Element&&R.localName==="slot"?M?(R.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.OV)((0,_.OV)(R).parentNode).replaceChild(R.showHideApi.polymerReplaced,
R)):(D=R.showHideApi.polymerReplaced)&&(0,_.OV)((0,_.OV)(D).parentNode).replaceChild(R,D):R instanceof HTMLElement&&R.style&&(M?(R.showHideApi.polymerDisplay=R.style.display,R.style.display="none"):R.style.display=R.showHideApi.polymerDisplay));R.showHideApi.hideTemplateChildren=M;R.showHideChildren&&R.showHideChildren(M)}};
RF0=function(){if(!J58){var M=document.createElement("style");M.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(M);J58=!0}};
AJ=function(){return _.U("disable_hidden_dom_if_using_stamper")};
Dzc=function(M,z){var J=_.ia().getState();return z?M.apply(null,[J].concat(_.Yj(z))):M(J)};
S28=function(){if(Nrn)return Nrn;var M=_.S(_.kE(0,void 0,"MB1Hb")),z=M.next().value;M.next();var J=M.next().value;_.ia().subscribe(function(){PQR(J)});
return Nrn=z};
PQR=function(M){Z7p||(Z7p=!0,Promise.resolve().then(function(){M(function(z){return z+1});
Z7p=!1}))};
_.ia=function(){return kGn.getAppStore()};
Brn=function(M,z){return kGn.getSelectFn()(M,z)};
_.Cd=function(M){kGn.getDispatchFn()(M)};
O7c=function(M,z){var J={},R;for(R in M)J[R]=z(M[R],R);return J};
_.ba=function(M,z){return function(){var J;return(J=_.YE(M))!=null?J:z}};
_.rH=function(M,z){var J=Object.assign({},M),R;for(R in z)z.hasOwnProperty(R)&&(J[R]=_.ba(M[R],z[R]));return J};
Tr8=function(M,z,J){M instanceof Element&&(J.debugName||(J.debugName="<"+M.tagName.toLowerCase()+(M.tagName.includes("-")?">":"."+M.className+">")),_.U("ytwiz_enable_debug_component_props")&&(M.debugProps||(M.debugProps=O7c(z,function(R){return function(){return R()}}))))};
om0=function(M){var z;if(!(z=II8.value.traceAllComponents)){var J;z=(J=b3)==null?void 0:J.activeSpan;z=(z==null?void 0:z.name)!=="ytComponent"}return z?KTb("ytComponent",{},M):M()};
_.Mf=function(M,z){var J=function(R){return om0(function(D){var N=Xpn={};var Z;if(((Z=J)==null?0:Z.idomCompat)&&R.renderedFromIdom){var B;Z=typeof J.idomCompat==="object"?(B=J)==null?void 0:B.idomCompat.callbacks:{};Z=_.S(lI8(R,Z,J.debugName));B=Z.next().value;Z.next();Z=Z.next().value;var O=eFp(M,B);N.privateValue=O;Xpn=void 0;Tr8(O,B,J);N={debugName:J.debugName};D&&N&&Object.assign(D.attributes,N);D=E2p(O);D=Array.isArray(D)?D[0]:D;D[BW]||(D[BW]={});D[BW].updateSignalsFromIdomProps=Z;Qgb(B,O);return O}Z=
O7c(R,UzG);B=eFp(M,Z);N.privateValue=B;Xpn=void 0;Tr8(B,Z,J);N={debugName:J.debugName};D&&N&&Object.assign(D.attributes,N);Qgb(Z,B);return B})};
J.debugName=z===void 0?"":z;return J};
eFp=function(M,z){M=M(z);return XT(M)};
vme=function(M,z){M[z]||(M=new _.xN("IDOM interop setter undefined. Key:",z),_.nc(M))};
UzG=function(M,z){return z==="children"||z==="ref"||typeof M==="function"||M===void 0?M:function(){return _.YE(M)}};
lI8=function(M,z,J){var R={},D={},N={},Z={},B;for(B in M){Z={key$jscomp$924:Z.key$jscomp$924};Z.key$jscomp$924=B;var O=M[Z.key$jscomp$924];if(Z.key$jscomp$924==="children"||Z.key$jscomp$924==="ref")R[Z.key$jscomp$924]=O;else if(typeof O==="function")Z.key$jscomp$924 in z||O.length>0?(N[Z.key$jscomp$924]=O,R[Z.key$jscomp$924]=function(l){return function(){return N[l.key$jscomp$924].apply(N,_.Yj(_.H4.apply(0,arguments)))}}(Z)):R[Z.key$jscomp$924]=O;
else if(!(M[Z.key$jscomp$924]===void 0&&Z.key$jscomp$924 in z)){var X=_.S(_.kE(M[Z.key$jscomp$924],{debugName:Z.key$jscomp$924+":cwis:"+J},"rvrjQe"));O=X.next().value;X=X.next().value;R[Z.key$jscomp$924]=O;D[Z.key$jscomp$924]=X}}return[R,D,function(l){var e={},Q;for(Q in l)e={key$jscomp$925:e.key$jscomp$925,val$jscomp$121:void 0},e.key$jscomp$925=Q,e.val$jscomp$121=l[e.key$jscomp$925],e.key$jscomp$925!=="children"&&e.key$jscomp$925!=="ref"&&(typeof e.val$jscomp$121==="function"?e.key$jscomp$925 in
z?N[e.key$jscomp$925]=e.val$jscomp$121:e.val$jscomp$121.length>0&&(N[e.key$jscomp$925]=e.val$jscomp$121,_.yA(new _.xN("Callback detected that was not set in the idomCompat callbacks map. Key:",e.key$jscomp$925))):e.key$jscomp$925 in z&&e.val$jscomp$121===void 0||(vme(D,e.key$jscomp$925),X8(function(v){return function(){D[v.key$jscomp$925](v.val$jscomp$121)}}(e))))}]};
xzR=function(M,z,J){var R=Tp8(M.prototype,GGG,M.prototype.behaviors);R.prototype.is=z;R.prototype.localName=z;J&&wpc(R,J);return function(D){D&&(R.prototype.hostElement=D);var N=new R;N.root=N;N.hostElement=D;return N}};
wpc=function(M,z){var J;Object.defineProperty(M.prototype,"_template",{get:function(){J===void 0&&(J=z());return J},
set:function(R){J=R},
configurable:!0,enumerable:!0})};
Y2w=function(M,z,J,R){function D(){if(!v){for(var x=new Set,m=_.S(l),y=m.next();!y.done;y=m.next()){y=y.value;for(var H=_.S(Object.getOwnPropertyNames(y)),q=H.next();!q.done;q=H.next()){q=q.value;var b=void 0,V=(b=Object.getOwnPropertyDescriptor(y,q))==null?void 0:b.value;V&&V instanceof Function&&!zm(q)&&(!B[q]||_.U("polymer_forward_method_killswitch"))&&x.add(q)}}m=_.S(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(y=m.next();!y.done;y=m.next())H=_.S(y.value),y=H.next().value,
H=H.next().value,H.value instanceof Function&&!zm(y)&&x.add(y);v=x}return v}
tYe(M,z,R==null?void 0:R.providers);Iko(M.prototype,M,!0);var N=xzR(M,z,J),Z,B=(Z=M.prototype.properties)!=null?Z:{},O,X,l=(X=(O=M.prototype.behaviors)==null?void 0:O.flat(Infinity))!=null?X:[];J=_.S(l);for(Z=J.next();!Z.done;Z=J.next())B=Object.assign({},Z.value.properties,B);var e=[].concat(_.Yj(jgn),_.Yj(Object.keys(B).map(function(x){return _.Q5(x)}))),Q=!1,v;
return{ctor:function(x,m){var y=N(x),H,q;x=[].concat(_.Yj((H=R==null?void 0:R.allowedProps)!=null?H:[]),_.Yj((q=R==null?void 0:R.allowedPropsFromBehaviors)!=null?q:[]));y.allowedProps=x.length>0?x:void 0;H={};q=_.S(e);for(x=q.next();!x.done;x=q.next())x=x.value,H[x]=_.UK(x);y.__dataAttributes=H;var b=y.ready.bind(y);y.ready=function(){m.beforeReady();b();if(xz(z)&&!Q){var V=y.__templateInfo;if(V==null?0:V.hostProps){V=_.S(Object.keys(V.hostProps));for(var E=V.next();!E.done;E=V.next())jN(z,E.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Q=!0}};
y._overrideLegacyUndefined=!0;return y},
props:B,observedAttributes:e,getInitialMethods:D,getPropsToForwardBeforeRegister:function(){for(var x=[],m=new Set,y=_.S(Object.keys(B)),H=y.next();!H.done;H=y.next())H=H.value,x.push([H,B[H].readOnly]),m.add(H);y=D();H=_.S(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var q=H.next();!q.done;q=H.next())q=q.value,!ppw(q)||y.has(q)||m.has(q)||(x.push([q,!1]),m.add(q));m=_.S(FH8);for(y=m.next();!y.done;y=m.next())x.push([y.value,!0]);return x},
getPropsToForwardBeforeReady:function(x){for(var m=[],y=_.S(Object.entries(x)),H=y.next();!H.done;H=y.next()){var q=_.S(H.value);H=q.next().value;q=q.next().value;if(ppw(H)&&!(q instanceof Function)&&(m.push([H,!1]),xz(z))){var b=q=void 0;(b=(q=x)._createPropertyAccessor)==null||b.call(q,H)}}return m},
shouldForwardProp:ppw,shouldLog:xz}};
tYe=function(M,z,J){Zzb(M,J);M.prototype.behaviors.unshift(mz8);if(AUo()){if(xz(z)){var R;(R=M.prototype).behaviors!=null||(R.behaviors=[]);M.prototype.behaviors.unshift(rUG())}MKH(M)}_.p(yc.prototype)(M.prototype,"__templateHelpers")};
zm=function(M){return gmo.has(M)||M.startsWith("__compute__")};
ppw=function(M){return!zm(M)&&!M.startsWith("_")&&!M.endsWith("_")};
H7H=function(M,z){function J(){var Q=O();Q=_.S(Q);for(var v=Q.next();!v.done;v=Q.next()){var x=_.S(v.value);v=x.next().value;x=x.next().value;sg8(e.prototype,v,x)}R=!0}
var R=!1,D=M.ctor,N=M.getInitialMethods,Z=M.observedAttributes,B=M.getPropsToForwardBeforeReady,O=M.getPropsToForwardBeforeRegister,X=M.shouldForwardProp,l=M.shouldLog,e=function(){var Q=HTMLElement.call(this)||this;Q.didForwardDynamicProps=!1;Q.loggingStatus={};R||J();Q.inst=D(Q,{beforeReady:function(){Q.didForwardDynamicProps||(Q.forwardDynamicProps(),Q.didForwardDynamicProps=!0)}});
Q.controllerProxy=Cjo(Q.inst,z);Q.forwardMethods();return Q};
_.w(e,HTMLElement);e.prototype.forwardMethods=function(){for(var Q=this,v=_.S(this.inst.getExtraMethodsToForward()),x=v.next(),m={};!x.done;m={method$jscomp$63:void 0},x=v.next()){var y=_.S(x.value);x=y.next().value;y=y.next().value;m.method$jscomp$63=y;this[x]=function(H){return function(){return H.method$jscomp$63.call.apply(H.method$jscomp$63,[Q.inst].concat(_.Yj(_.H4.apply(0,arguments))))}}(m)}v=_.S(N());
for(m=v.next();!m.done;m=v.next())m=m.value,X(m)&&nmn(this,m),l(z)&&!zm(m)&&hFH(this.inst,m)};
e.prototype.forwardDynamicProps=function(){var Q=B(this.inst);Q=_.S(Q);for(var v=Q.next();!v.done;v=Q.next()){var x=_.S(v.value);v=x.next().value;x=x.next().value;sg8(this,v,x);l(z)&&!zm(v)&&y5p(this.inst,v)}};
e.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
e.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
e.prototype.attributeChangedCallback=function(Q,v,x){this.inst.attributeChangedCallbackWrapper(Q,v,x)};
_.rX.Object.defineProperties(e.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return z}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.rX.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
customElements.define(z,e)};
sg8=function(M,z,J){M.hasOwnProperty(z)||Object.defineProperty(M,z,{get:function(){var R,D=((R=M.is)!=null?R:M.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||jN(D,z,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,R=this.polymerController[z],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,R},
set:function(R){if(!J){var D,N=((D=M.is)!=null?D:M.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||jN(N,z,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=z,this.loggingStatus.bypassProxyController=!0,this.polymerController[z]!==R&&(D={},this.polymerController.setProperties((D[z]=R,D)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
nmn=function(M,z,J){var R=M.polymerController;M[z]=function(){var D=_.H4.apply(0,arguments);M.loggingStatus.currentExternalCall=z;M.loggingStatus.bypassProxyController=!0;var N,Z=((N=M.is)!=null?N:M.tagName).toLowerCase();jN(Z,z,"PROPERTY_ACCESS_CALL_EXTERNAL");var B;N=(B=J!=null?J:R[z])==null?void 0:B.call.apply(B,[R].concat(_.Yj(D)));M.loggingStatus.currentExternalCall=void 0;M.loggingStatus.bypassProxyController=!1;return N}};
hFH=function(M,z){var J=M.hostElement,R=M[z];M[z]=function(){var D=_.H4.apply(0,arguments);if(J.loggingStatus.currentExternalCall!==z){var N,Z=((N=J.is)!=null?N:J.tagName).toLowerCase();jN(Z,z,"PROPERTY_ACCESS_CALL_INTERNAL")}return R==null?void 0:R.apply(M,D)}};
y5p=function(M,z){var J=Object.getOwnPropertyDescriptor(M,z);J&&!J.get&&Object.defineProperty(M,z,{get:function(){b9o(M.hostElement,z);return J.value},
set:function(R){pd(M.hostElement,z);J.value=R}})};
c5Y=function(M){return _.U("poly_si_dom_repeat_detached_fix_killswitch")||M.tagName!=="PS-DOM-REPEAT"?M.tagName==="DOM-REPEAT":!0};
KHw=function(M,z){var J=dze(M);M instanceof Element&&J.unshift(M);M=_.S(J.filter(c5Y));for(var R=M.next();!R.done;R=M.next()){var D=void 0;R=_.S((D=R.value.__instances)!=null?D:[]);for(D=R.next();!D.done;D=R.next())if(D=D.value,D.root){D=Array.from(D.root.children);D=_.S(D);for(var N=D.next();!N.done;N=D.next())J.push.apply(J,_.Yj(KHw(N.value,z)))}}return J.filter(function(Z){return Z.usePatchedLifecycles&&Z.lifecycleIsConnected===z})};
dze=function(M){var z=null;M instanceof Element?z=Element.prototype.querySelectorAll:M instanceof DocumentFragment&&(z=DocumentFragment.prototype.querySelectorAll);return z?Array.from(z.call(M,"*")):[]};
Jh=function(M){ZZ(function(){for(var z=_.S(KHw(M,!1)),J=z.next();!J.done;J=z.next()){J=J.value;J.lifecycleIsConnected=!0;try{var R=void 0,D=void 0,N=void 0,Z=void 0;(R=(Z=J.polymerController)!=null?Z:J)==null||(N=(D=R).connectedCallback)==null||N.call(D)}catch(B){_.nc(B)}}})};
RE=function(M){ZZ(function(){for(var z=_.S(KHw(M,!0)),J=z.next();!J.done;J=z.next()){J=J.value;J.lifecycleIsConnected=!1;try{var R=void 0,D=void 0,N=void 0,Z=void 0;(R=(Z=J.polymerController)!=null?Z:J)==null||(N=(D=R).disconnectedCallback)==null||N.call(D)}catch(B){_.nc(B)}}})};
EmG=function(){if(!$zo){$zo=!0;var M=[Node];Df&&M.push(Df.Wrapper);var z=Node.prototype.insertBefore,J=Node.prototype.removeChild;M=_.S(M);for(var R=M.next(),D={};!R.done;D={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},R=M.next())R=R.value,D.nativeInsertBefore=R.prototype.insertBefore,R.prototype.insertBefore=function(Z){return function(B,O){if(B instanceof DocumentFragment){var X=Array.from(B.children);B=Z.nativeInsertBefore.call(this,B,O);
if(this.isConnected&&Z.nativeInsertBefore===z)for(O=_.S(X),X=O.next();!X.done;X=O.next())Jh(X.value);return B}X=B instanceof Element&&B.isConnected;O=Z.nativeInsertBefore.call(this,B,O);X&&RE(B);this.isConnected&&Jh(B);return O}}(D),D.nativeAppendChild=R.prototype.appendChild,R.prototype.appendChild=function(Z){return function(B){if(B instanceof DocumentFragment){var O=Array.from(B.children);
B=Z.nativeAppendChild.call(this,B);if(this.isConnected){O=_.S(O);for(var X=O.next();!X.done;X=O.next())Jh(X.value)}return B}O=B instanceof Element&&B.isConnected;X=Z.nativeAppendChild.call(this,B);O&&RE(B);this.isConnected&&Jh(B);return X}}(D),D.nativeRemoveChild=R.prototype.removeChild,R.prototype.removeChild=function(Z){return function(B){var O=B instanceof Element&&B.isConnected,X=Z.nativeRemoveChild.call(this,B);
O&&J===Z.nativeRemoveChild&&RE(B);return X}}(D),D.nativeReplaceChild=R.prototype.replaceChild,R.prototype.replaceChild=function(Z){return function(B,O){if(B instanceof DocumentFragment){var X=Array.from(B.children);
B=Z.nativeReplaceChild.call(this,B,O);if(this.isConnected)for(RE(O),O=_.S(X),X=O.next();!X.done;X=O.next())Jh(X.value);return B}X=B instanceof Element&&B.isConnected;var l=this.isConnected,e=Z.nativeReplaceChild.call(this,B,O);l&&RE(O);X&&RE(B);l&&Jh(B);return e}}(D);
M=[Element];Df&&M.push(Df.Wrapper);M=_.S(M);R=M.next();for(D={};!R.done;D={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},R=M.next())R=R.value,R.prototype.before=ube(R.prototype.before),R.prototype.after=ube(R.prototype.after),D.nativeReplaceWith=R.prototype.replaceWith,R.prototype.replaceWith=function(Z){return function(){var B=_.H4.apply(0,arguments),O=_.S(q23(B)),X=O.next().value,
l=O.next().value;O=this.isConnected;Z.nativeReplaceWith.apply(this,B);B=_.S(l);for(l=B.next();!l.done;l=B.next())RE(l.value);if(O)for(RE(this),X=_.S(X),O=X.next();!O.done;O=X.next())O=O.value,O instanceof Element&&Jh(O)}}(D),D.nativeRemove=R.prototype.remove,R.prototype.remove=function(Z){return function(){var B=this.isConnected;
Z.nativeRemove.call(this);B&&RE(this)}}(D),D.nativeInsertAdjacentElement=R.prototype.insertAdjacentElement,R.prototype.insertAdjacentElement=function(Z){return function(B,O){var X=O.isConnected;
B=Z.nativeInsertAdjacentElement.call(this,B,O);X&&RE(O);B.isConnected&&Jh(B);return B}}(D),D.nativeSetAttribute=R.prototype.setAttribute,R.prototype.setAttribute=function(Z){return function(B,O){var X=WHw(this);
if(!X.usePatchedLifecycles)return Z.nativeSetAttribute.call(this,B,O);var l=this.getAttribute(B);Z.nativeSetAttribute.call(this,B,O);O=this.getAttribute(B);aIY(X,B,l,O)}}(D),D.nativeRemoveAttribute=R.prototype.removeAttribute,R.prototype.removeAttribute=function(Z){return function(B){var O=WHw(this);
if(!O.usePatchedLifecycles)return Z.nativeRemoveAttribute.call(this,B);var X=this.getAttribute(B);Z.nativeRemoveAttribute.call(this,B);X!==null&&aIY(O,B,X,null)}}(D),D.nativeToggleAttribute=R.prototype.toggleAttribute,R.prototype.toggleAttribute=function(Z){return function(B,O){var X=WHw(this);
if(!this.usePatchedLifecycles)return Z.nativeToggleAttribute.call(this,B,O);var l=this.getAttribute(B),e=l!==null;O=Z.nativeToggleAttribute.call(this,B,O);O!==e&&aIY(X,B,l,O?"":null);return O}}(D);
M=[Document,DocumentFragment,Element,ShadowRoot];Df&&M.push(Df.Wrapper);M=_.S(M);for(D=M.next();!D.done;D=M.next())D=D.value,D.prototype.prepend=ube(D.prototype.prepend),D.prototype.append=ube(D.prototype.append);(Df==null?void 0:Df.noPatch)===!0&&VYG();document.readyState==="complete"?Jh(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Jh(document.body)});
var N=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");N&&N.get&&N.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:N.enumerable,configurable:!0,get:N.get,set:function(Z){Z||RE(this);N.set.call(this,Z);return Z}})}};
ube=function(M){return function(){var z=_.H4.apply(0,arguments),J=_.S(q23(z)),R=J.next().value;J=J.next().value;M.apply(this,z);z=_.S(J);for(J=z.next();!J.done;J=z.next())RE(J.value);if(this.isConnected)for(R=_.S(R),z=R.next();!z.done;z=R.next())z=z.value,z instanceof Element&&Jh(z)}};
VYG=function(){for(var M=_.S(fIp),z=M.next();!z.done;z=M.next()){z=z.value.prototype;for(var J=_.S(LHR),R=J.next();!R.done;R=J.next()){R=R.value;var D=Object.getOwnPropertyDescriptor(z,R);D&&Object.defineProperty(z,"__shady_native_"+R,D)}}};
aIY=function(M,z,J,R){var D,N;if((D=M.polymerController)==null?0:(N=D.observedAttributes)==null?0:N.includes(z))if(M=M.polymerController,M.attributeChangedCallbackWrapper)M.attributeChangedCallbackWrapper.call(M,z,J,R);else{var Z;(Z=M.attributeChangedCallback)==null||Z.call(M,z,J,R)}};
q23=function(M){var z=[],J=[];M=_.S(M);for(var R=M.next();!R.done;R=M.next())R=R.value,R instanceof Element&&R.isConnected&&J.push(R),R instanceof DocumentFragment?z.push.apply(z,_.Yj(Array.from(R.children))):z.push(R);return[z,J]};
WHw=function(M){return!(M instanceof Element)&&M.node instanceof Element?M.node:M};
A5G=function(M,z){var J=z?["children"].concat(_.Yj(z)):["children"];z=[];J=_.S(J);for(var R=J.next();!R.done;R=J.next()){var D=R.value;if(M.hasOwnProperty(D)){R=M[D];R=typeof R==="function"?R():R;R=Array.isArray(R)?R:[R];R=XT(R).flat();if(D!=="children"){D=NJe(D);for(var N=_.S(R),Z=N.next();!Z.done;Z=N.next())Z=Z.value,Z instanceof Element&&Z.setAttribute("slot",D)}z.push(R)}}z.length===0?M=[]:(M=XT(_.T("div",null,z)),M=Array.from(M.childNodes));return M};
CQ3=function(M,z,J){var R={};_.mt(function(){var D={},N;for(N in z)if(z.hasOwnProperty(N)){var Z=void 0,B=void 0;if(!(((Z=J.slotProps)==null?0:Z.includes(N))||N==="children"||((B=J.callbackProps)==null?0:B.includes(N))||N==="ref")&&(Z=_.YE(z[N]),R[N]!==Z)){R[N]=Z;B=void 0;var O=(B=M.hostElement)!=null?B:M;i73.has(N)&&(O[N]=Z);D[N]=Z}}X8(function(){if(M.setProperties)M.setProperties(D);else for(var X=_.S(Object.entries(D)),l=X.next();!l.done;l=X.next()){var e=_.S(l.value);l=e.next().value;e=e.next().value;
M[l]=e}})})};
r5G=function(M,z,J,R){var D=A5G(J,R.slotProps),N=(0,_.OV)(M);D=_.S(D);for(var Z=D.next();!Z.done;Z=D.next())N.appendChild(Z.value);CQ3(z,J,R);R=_.S(R.callbackProps||[]);D=R.next();for(N={};!D.done;N={kebabEventName:void 0,eventListener:void 0},D=R.next())Z=D=D.value,String(D).substring(0,2)==="on"&&J[Z]?(N.kebabEventName=NJe(String(D).substring(2)),N.eventListener=J[Z],M.addEventListener(N.kebabEventName,N.eventListener),_.pq(function(l){return function(){M.removeEventListener(l.kebabEventName,l.eventListener)}}(N))):
z[Z]=J[Z];
if(J.ref){J=_.S(b7b(J.ref));var B=J.next().value,O=J.next().value,X=z.attached.bind(z);z.attached=function(){B(M);X()};
_.pq(function(){O()})}};
b7b=function(M){if(typeof M==="function"){var z;return[function(J){z=M(J)},
function(){var J;(J=z)==null||J()}]}if(!M.onRender||!M.onUnmount)throw Error("Rg");
return[M.onRender,M.onUnmount]};
R5H=function(M,z,J,R,D){R=R===void 0?{}:R;var N=Mo0,Z=!1;N?(Z=!0,Mo0=void 0):(z5o=z,N=document.createElement(z),z5o=void 0);var B=N;B.usePatchedLifecycles=!0;B.lifecycleIsConnected=!1;N.loggingStatus={};var O=Jjo(M,z,N,R,D);_.pq(function(){B.lifecycleIsConnected&&(B.lifecycleIsConnected=!1,O.disconnectedCallback())});
Z||(_.U("sink_wrapper_disable_runtime_shadycss")&&(N.__noInsertionPoint=!0),r5G(N,O,J,R));return N};
Jjo=function(M,z,J,R,D){D=D===void 0?Y2w:D;DiG[z]!=null||(DiG[z]=D(M,z,R==null?void 0:R.getTemplate,R));var N=DiG[z],Z=N.ctor;D=N.getInitialMethods;var B=N.getPropsToForwardBeforeReady;M=N.getPropsToForwardBeforeRegister;R=N.shouldForwardProp;var O=N.observedAttributes,X=N.shouldLog,l=Z(J,{beforeReady:function(){var e=l;e._takeAttributes?e._takeAttributes():e.setPropertiesFromInitialAttributeValues&&e.setPropertiesFromInitialAttributeValues();e=_.S(B(J.polymerController));for(var Q=e.next();!Q.done;Q=
e.next()){var v=_.S(Q.value);Q=v.next().value;v=v.next().value;sg8(J,Q,v);X(z)&&!zm(Q)&&y5p(J.polymerController,Q)}J.polymerController=Cjo(l,z)}});
J.polymerController=l;J.polymerController.observedAttributes=O;N=_.S(l.getExtraMethodsToForward());for(Z=N.next();!Z.done;Z=N.next())O=_.S(Z.value),Z=O.next().value,O=O.next().value,nmn(J,Z,O);D=_.S(D());for(N=D.next();!N.done;N=D.next())N=N.value,R(N)&&nmn(J,N),X(z)&&!zm(N)&&hFH(l,N);M=_.S(M());for(R=M.next();!R.done;R=M.next())D=_.S(R.value),R=D.next().value,D=D.next().value,sg8(J,R,D);return l};
PI3=function(M,z){return Nf===z?(M.isInert=!0,Nf="",!0):Neo===z?(M.isInert=!0,Neo="",!0):!1};
SWn=function(M){var z=P5;P5=M;return z};
k1e=function(M){if(S5.has(M))Neo=M;else if(Zf.has(M)&&P5&&ZLR(P5)===M){var z;(z=P5)._numRenders!=null||(z._numRenders=0);P5._numRenders++;if(P5._numRenders>1)throw Error("Sg");return P5}};
Bew=function(M){S5.has(ZLR(M))?Neo=ZLR(M):Zf.has(ZLR(M))&&P5!==M&&(M._isInert=!0)};
ZLR=function(M){var z;return(z=M==null?void 0:M.tagName.toLowerCase())!=null?z:""};
OLp=function(M,z){if(M.componentType===Gk)throw Error("Tg");Zf.add(z);var J=function(){var R=HTMLElement.call(this)||this;R.is=z;if(z5o===z)return R.isInert=!0,R;R.createElement();return R};
_.w(J,HTMLElement);J.prototype.createElement=function(){if(!this.isInert){Mo0=this;var R=_.S(_.lKR(function(){return _.T(M,null)})).next().value;
Mo0=void 0;bzp(this);return R}};
customElements.define(z,J)};
IAn=function(M,z,J,R,D){M.prototype.is=z;(R==null?0:R.useSink)?Te8(M,z,J,R,D):(J=Y2w(M,z,J,R),H7H(J,z));return M};
Te8=function(M,z,J,R,D){EmG();var N=_.Mf(function(Z){return R5H(M,z,Z,Object.assign({},R,{getTemplate:J}),D)},"a");
N.debugName=z+" (CoW wrapped)";OLp(N,z);return N};
XB8=function(M){return!oOG.has(M)};
QMp=function(M,z,J,R){function D(){if(!e){for(var Q=new Set(lAp),v=_.S(N.behaviors),x=v.next();!x.done;x=v.next()){x=x.value;for(var m=_.S(Object.getOwnPropertyNames(x)),y=m.next();!y.done;y=m.next()){y=y.value;var H=void 0,q=(H=Object.getOwnPropertyDescriptor(x,y))==null?void 0:H.value;q&&q instanceof Function&&(!X[y]||_.U("polymer_forward_method_killswitch"))&&Q.add(y)}}v=_.S(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(x=v.next();!x.done;x=v.next())m=_.S(x.value),x=m.next().value,
m=m.next().value,m.value instanceof Function&&Q.add(x);e=Q}return e}
var N=bUp({is:z,disableElementRegistration:!1,getTemplate:J,providers:R==null?void 0:R.providers,reactivityMode:R==null?void 0:R.reactivityMode},M);if((R==null?0:R.allowedProps)||(R==null?0:R.allowedPropsFromBehaviors)){var Z,B;N.allowedProps=[].concat(_.Yj((Z=R.allowedProps)!=null?Z:[]),_.Yj((B=R.allowedPropsFromBehaviors)!=null?B:[]))}var O=VGn(N,M);z=O.observedAttributes;var X={};J=_.S(N.reactiveSchemas);for(R=J.next();!R.done;R=J.next())if(R=R.value,R.type==="signal")X[R.propertyKey]={readOnly:R.readOnly},
R.readOnly&&(X[GuY(R.propertyKey)]={readOnly:!0});else if(R.type==="compute"||R.type==="computeWithMethod"||R.type==="redux")X[R.propertyKey]={readOnly:!0};var l=N.reactiveSchemas.length,e;return{ctor:function(Q,v){Q=new O(Q);Q.beforeReady=v.beforeReady;return Q},
props:X,observedAttributes:z,getInitialMethods:D,getPropsToForwardBeforeRegister:function(){for(var Q=[],v=new Set,x=_.S(e53),m=x.next();!m.done;m=x.next())m=m.value,Q.push([m,m!=="observers"&&m!=="properties"]),v.add(m);x=_.S(Object.keys(X));for(m=x.next();!m.done;m=x.next())m=m.value,Q.push([m,X[m].readOnly]),v.add(m);x=D();m=_.S(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var y=m.next();!y.done;y=m.next())y=y.value,!XB8(y)||x.has(y)||v.has(y)||(Q.push([y,!1]),v.add(y));Q.push(["allowedProps",
!0]);return Q},
getPropsToForwardBeforeReady:function(Q){var v=[];Q=_.S(Object.keys(Q));for(var x=Q.next();!x.done;x=Q.next()){x=x.value;var m=D();XB8(x)&&!m.has(x)&&v.push([x,!1])}Q=_.S(N.reactiveSchemas.slice(l));for(x=Q.next();!x.done;x=Q.next())x=x.value,x.type!=="compute"&&x.type!=="computeWithMethod"&&x.type!=="redux"&&x.type!=="signal"||v.push([x.propertyKey,x.type==="signal"?x.readOnly:!0]);return v},
shouldForwardProp:XB8,shouldLog:xz}};
_.d=function(M,z,J,R){var D,N,Z=(N=(D=R)==null?void 0:D.mode)!=null?N:0;R!=null||(R={});var B;(B=R).reactivityMode!=null||(B.reactivityMode=0);Z===1&&_.ZR("creator_poly_si_disable_list").includes(z)&&(Z=2);return Z===1?IAn(M,z,J,Object.assign({},R,{useSink:!0}),QMp):IAn(M,z,J,Object.assign({},R,{useSink:Z===2}))};
_.kS=function(){return function(M,z,J,R){var D,N,Z=(N=(D=R)==null?void 0:D.mode)!=null?N:2;R!=null||(R={});var B;(B=R).reactivityMode!=null||(B.reactivityMode=0);if(Z===0)throw Error("Ug`"+Z);return Te8(M,z,J,R,Z===1?QMp:void 0)}};
_.B5=function(M){return _.U("creator_poly_si_killswitch")?!1:_.U("force_all_poly_si_batches")&&(M==="poly_si_all_on_test_check"||M==="creator_poly_si_batch_050"?0:M)||document.documentElement.hasAttribute("use-signals")?!0:!M||_.U(M+"_holdback_enabled")&&_.U("kevlar_polysi_holdback")?!1:_.U(M)};
OU=function(M){return M?M.icon?M.icon.iconType.toLowerCase():M.customThumbnail?"member":"":""};
Ui8=function(M){if(!M)return"";M=_.S(M);for(var z=M.next();!z.done;z=M.next())if((z=z.value)&&z.liveChatAuthorBadgeRenderer&&(z=OU(z.liveChatAuthorBadgeRenderer))&&z!=="verified")return z;return""};
vOo=function(M,z){if(!M)return null;var J;return((J=M.find(function(R){return R&&R.liveChatAuthorBadgeRenderer?OU(R.liveChatAuthorBadgeRenderer)===z:!1}))==null?void 0:J.liveChatAuthorBadgeRenderer)||null};
_.pBG=function(M){var z=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;M=G1w(M);z=G1w(z);var J=wBG(M.hex);z=wBG(z.hex);var R=z[0]/255;var D=z[1]/255,N=z[2]/255,Z=Math.max(R,D,N),B=Math.min(R,D,N),O=0,X=0,l=.5*(Z+B);Z!=B&&(Z==R?O=60*(D-N)/(Z-B):Z==D?O=60*(N-R)/(Z-B)+120:Z==N&&(O=60*(R-D)/(Z-B)+240),X=0<l&&l<=.5?(Z-B)/(2*l):(Z-B)/(2-2*l));R=[Math.round(O+360)%360,X,l];J=xi0(J,z);for(M=toY(M.hex);J<4.5;){M=R[2]>=.5?M.darker((4.5-J)/2):M.brighter((4.5-J)/2);J=M.toString();
D=jMn(J);if(!D.length)throw Error("Qd`"+J);J=D;J=xi0(J,z)}return M.hex()};
xi0=function(M,z){M=_.Zmn(M);z=_.Zmn(z);return(Math.max(M,z)+.05)/(Math.min(M,z)+.05)};
_.Tm=function(M){return"#"+("000000"+(M&16777215).toString(16)).slice(-6)};
_.FJ8=function(M){for(var z=0,J=0;J<M.length;J++)z=M.charCodeAt(J)+((z<<5)-z);M="#";for(J=0;J<3;J++)M+=("00"+(z>>J*8&255).toString(16)).slice(-2);return M};
YW3=function(M){M=(M||"").split(":");M.length===1&&M.unshift("yt-icons");M[1]=M[1].toLowerCase();return M};
yjH=function(M,z){var J=(z=z===void 0?!1:z)?mic:gO3,R=z?sMo:nO0;M.getIconNames().forEach(function(D){D=z?D:D.substring(D.indexOf(":")+1);M.name==="yt-icons"?h5H.add(D):D.includes("-filled")?J.add(D):R.add(D)})};
IE=function(M,z,J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;var D,N,Z;return _.k(function(B){if(B.nextAddress==1)return B.yield(HL8,2);if(R)return B.return(h5H.has(M));D=J?mic:gO3;N=J?sMo:nO0;return z?(Z=M.includes("-filled")?M:M.concat("-filled"),B.return(D.has(Z))):B.return(N.has(M))})};
_.KJG=function(M){if(cjG(M))return M;var z=M=M.toLowerCase();(M=dip.get(M))&&(z=M);return z};
_.oE=function(M){if(cjG(M))return M.toString();var z=$iG.get(M);if(z)return z;z=M.toLowerCase();var J="yt-icons",R=z.replace(/_/g,"-");switch(M){case "MY_CHANNEL":z="account_circle";break;case "ADD_TO_LIBRARY":z="add";break;case "ALERT_WARN_RED":z="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":z="person_music";break;case "BLOCK_USER":z="block";break;case "CAPTIONS":z="closed_caption";break;case "CLOSED_CAPTION":J="av";z="closed-caption";break;case "COLLECTION":J="maps";z="layers";break;case "CONTACT":J=
"icons";z="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":J="ytcp-icons";z=R.split("creator-studio-")[1];break;case "DISMISSAL":z="close";break;case "DO_NOT_DISTURB":z="block";break;case "DOGFOOD":J="icons";z="pets";break;case "DRAFT":z="paper_corner_folded";break;
case "EMPTY_LIKE":z="like_outline";break;case "EXIT_APP":z="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":z=R;break;case "GAMES":J="ytg";z="my-games";break;case "GO_TO_PAGE":z="arrow-forward";break;case "GROUP":J="social";break;case "HIDE":z="not_interested";break;case "INPUT_COMPONENT":J="icons";z="settings-input-component";break;case "KIDS_BLOCK":z="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":J="ytg";z="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":J=
"ytg";z="membership-post-purchase";break;case "MULTIVIEW":z="screen_multi_view";break;case "MY_LOCATION":J="maps";z=R;break;case "NOTIFICATIONS_INBOX":z="NOTIFICATIONS";break;case "NEXT":z="chevron_right";break;case "OFFLINE":z="power-settings-new";break;case "PAUSE":J="miniplayer";break;case "PAYMENT":J="icons";break;case "PHONE_DOWNLOAD":z="phone_download";break;case "PREMIUM_STANDALONE":J="yt-logos";z="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":J="yt-logos";z="premium_standalone_cairo";
break;case "QUESTION_ANSWER":z="question_answer";break;case "REDEEM":J="icons";z="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":z="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":z="library_add";break;case "SCHOOL":J="yt-sys-icons";z="creator_academy";break;case "SETTINGS_LIGHT":z="settings_applications";break;case "SETTINGS_MATERIAL":z="settings";break;case "SEARCH_HISTORY":z="watch_history";break;case "SHOPPING_BAG":z="bag";break;case "SOCIAL":case "PEOPLE":J=
"yt-icons";z="people";break;case "STAFF_PICK":J="ytg";z="spotlight";break;case "START_DVR":z="add";break;case "STOP_DVR":J="av";z="stop";break;case "TAB_LIKED":z="like";break;case "TAB_INBOX":z="mail";break;case "TERMS_OF_SERVICE":J="icons";z="description";break;case "TRENDING":z="fire";break;case "UNBLOCK_USER":z="remove";break;case "UNPLUGGED_DARK_THEME":J="image";z="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":z="live";break;case "UNPLUGGED_SPORTS":J="ytu";z="visibility-off";break;
case "VIDEOS":J="av";z="play-circle-filled";break;case "YOUTUBE":J="yt-logos";z="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":J="yt-logos-ext";z="yt-logo-red-updated";break;case "YOUTUBE_LOGO":J="yt-logos-ext";z="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":J="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":J="shorts";z=R;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":J="yt-sys-icons";z="youtube_improve_tv";break;case "OUTLINE_BAG":J=
"yt-sys-icons";z="bag";break;case "QUEUE_PLAY_LAST":J="yt-sys-icons";z="list_queue_last";break;case "SLASH_CIRCLE_LEFT":z="slash_circle_left";break;case "SPEED_1_POINT_2X":z="1_point_2x";break;case "SPEED_1_POINT_5X":z="1_point_5x";break;case "SPEED_1_POINT_8X":z="1_point_8x";break;case "SPEED_POINT_2X":z="point_2x";break;case "SPEED_POINT_5X":z="point_5x";break;case "SPEED_POINT_8X":z="point_8x";break;case "SPEED_1X":z="1x";break;case "SPEED_2X":z="2x";break;case "TAB_BOOKMARK":z="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":J="yt-sys-icons";z="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":J="yt-sys-icons";z="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":J="yt-sys-icons",z="tic_tac_toe"}z=J+":"+z;$iG.set(M,z);return z};
cjG=function(M){var z;_.U("kevlar_use_wil_icons")?z=!!_.JF().resolve(_.XH).resolveIcon({iconName:M.toString()}):z=!1;return z};
_.e5=function(M,z,J,R){J=J===void 0?{}:J;R=R===void 0?!1:R;J===null&&(J={});var D=_.ZR("kevlar_command_handler_command_banlist");D=_.S(D);for(var N=D.next();!N.done;N=D.next())if(N=M?M.hasOwnProperty(N.value):void 0,N)return!1;D=_.G(M.commandMetadata,_.X9);return R&&D!=null&&D.url?!1:!z.disableCommandHandlerOverride&&_.l5.instance?(R=_.l5.instance,J.form||(J.form={element:z}),J.form.element||(J.form.element=z),!J.clickedVisualElement&&z.visualElement&&(J.clickedVisualElement=z.visualElement),R.resolveCommand(M,
J),!0):!1};
uoY=function(M,z){M=Q1(M);for(var J=_.S(M.visibilityMonitorKeys||[]),R=J.next();!R.done;R=J.next())z.unobserveByKey(R.value);M.visibilityMonitorKeys=void 0};
Vow=function(M,z){if(_.y5()){if(_.U("kevlar_vimio_use_shared_monitor"))qWp(M,z.data);else if(!qWp(M,z.data))return;var J=z.data,R=WJw(J);if(_.U("enable_client_ve_spec_logging"))uoY(M,z.observer);else{var D=Q1(M);D.trackedParams&&D.trackedParams!==R&&uoY(M,z.observer)}D=Q1(M);!J||D.data&&D.data===J||(D.data=J);aA8(M,z);D.trackedParams=R}};
aA8=function(M,z){var J=z.observer;if(!J&&_.U("web_skip_missing_vimio_observer")){var R,D;_.yA(new _.xN("VisibilityObserver is not defined.",M.tagName,M.trackedParams,(R=z.data)==null?void 0:R.trackingParams,(D=z.data)==null?void 0:D.loggingDirectives))}else{var N=z.layer,Z=z.visibilityCallback||function(){},B=z.prescanCallback,O=Q1(M);
R=[];z.showOption&&R.push(J.observe(M,function(){z.skipLogging&&z.skipLogging()||_.UU().reportShown(O,void 0,N);Z(!0)},z.showOption));
z.hideOption&&R.push(J.observe(M,function(){_.UU().reportHidden(O,void 0,N);Z(!1)},z.hideOption));
z.prescanOption&&B&&R.push(J.observe(M,function(){B()},z.prescanOption));
O.visibilityMonitorKeys=R}};
qWp=function(M,z){M=Q1(M);if(M.visualElement&&!z)return!0;if(!z)return!1;var J=!1;if(_.U("enable_client_ve_spec_logging")){var R,D;J=!!((R=z.loggingDirectives)==null?0:(D=R.clientVeSpec)==null?0:D.uiType)}R=WJw(z);if(!R&&!J)return!1;_.U("mweb_component_visibility_logging")&&(M.veContainer||(M.veContainer={}),M.veContainer.trackingParams=R);if(M.trackedParams&&M.trackedParams===R)return!1;var N;if(_.U("enable_client_ve_spec_logging")&&((N=M.visualElement)==null?0:N.isClientVe())){var Z;N=(Z=M.visualElement)==
null?void 0:Z.getAsJspb();var B,O,X,l;if(_.R2(N,2)===((B=z.loggingDirectives)==null?void 0:(O=B.clientVeSpec)==null?void 0:O.uiType)&&_.R2(N,3,-1)===((X=z.loggingDirectives)==null?void 0:(l=X.clientVeSpec)==null?void 0:l.elementIndex))return!1}if(_.U("enable_client_ve_spec_logging")){var e,Q;!M.visualElement&&((e=z.loggingDirectives)==null?0:(Q=e.clientVeSpec)==null?0:Q.uiType)&&(B=z.loggingDirectives.clientVeSpec,z=B.uiType,Z=B.elementIndex,B=B.clientYoutubeData,M.visualElement=_.v5(_.Gm(),{veType:z,
elementIndex:Z,clientYouTubeData:B}))}return!0};
WJw=function(M){if(M==null?0:M.rendererContext){var z=_.G(M.rendererContext,_.wv);if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams}return(M==null?0:M.loggingDirectives)?M.loggingDirectives.trackingParams:M==null?void 0:M.trackingParams};
Q1=function(M){var z;return(z=M.polymerController)!=null?z:M};
Aj0=function(M){_.UU();if(_.ui(xS().JSC$12476_elementShouldLogGesture).bind(xS())(M,4)){EOn(M);var z=fAp(M);LJ0.set(M,z)}};
EOn=function(M){LJ0.has(M)&&(LJ0.get(M).cancel("untrack hover element"),LJ0.delete(M))};
fAp=function(M){var z,J=[],R=!1,D=new _.If(function(N,Z){th(M,"mouseenter",_.ui(function(){var B,O,X;return _.k(function(l){if(l.nextAddress==1)return z=(0,_.zU)(),B=iLG(M),J.push(B),O=CIY(M,function(){R=!0;Z(Error("Vg"))}),l.yield(B,2);
if(l.nextAddress!=3)return O&&j5(O),X=bLw(M),J.push(X),l.yield(X,3);N();_.UI(l)})}))});
D.then(function(){var N=(0,_.zU)()-z;N=Math.round(N);if(!(500>N||6E5<=N)){var Z=M.getScreenLayer?M.getScreenLayer():void 0;Z=_.y5(Z)||"";var B=rjH(_.UU(),M);_.LY(Z,M.visualElement?M.visualElement:_.pe(B),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:N}})}Aj0(M)},function(){FH&&(FH(),FH=null);
R&&(EOn(M),Aj0(M))});
return D};
iLG=function(M){var z;return(new _.If(function(J,R){FH=function(){R(Error("Wg"))};
z=_.no.debounce(_.ui(function(){j5(D);J()}),1,100);
var D=_.YS(M,"mousemove",z)})).thenCatch(function(){var J=_.no.cancelDebouncedJobMap.get(z);
J&&_.no.cancelJob(J)})};
bLw=function(M){var z;return(new _.If(function(J,R){FH=function(){R(Error("Xg"))};
z=th(M,"mouseleave",_.ui(function(){J()}))})).thenCatch(function(){j5(z)})};
CIY=function(M,z){return th(M,"mouseleave",_.ui(z))};
z3p=function(M){M18&&_.mK.cancel(M18);M18=_.mK.run(function(){_.Pv(M,"yt-visibility-refresh");M18=0})};
J28=function(M){M=Number(M);return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
Dt3=function(M){if(!M)return!1;if(_.G(M,_.R38))return!0;var z;if(M=(z=_.G(M,_.TV))==null?void 0:z.commands)for(z=_.S(M),M=z.next();!M.done;M=z.next())if(_.G(M.value,_.R38))return!0;return!1};
N93=function(M){var z=!0;z=z===void 0?!0:z;if(!M.useSignals&&!M.experimentalPropertiesChanged||_.U("experimental_templating_behavior_nopatch_killswitch")){var J=M._propertiesChanged;M._propertiesChanged=function(R,D,N){z?M.debounceRender():M.doRender();J&&J.call(M,R,D,N)}}};
PX8=function(M,z){if(M.useSignals||M.experimentalPropertiesChanged)if(_.U("experimental_templating_behavior_nopatch_killswitch"))M.experimentalPropertiesChanged=function(){};
else return;var J=new Set,R=[M].concat(_.Yj(M.behaviors));R=_.S(R);for(var D=R.next();!D.done;D=R.next()){D=D.value;for(var N in D.properties)J.has(N)||(M._addPropertyEffect(N,"function",z),J.add(N))}};
SsY=function(){var M=Polymer.Element,z=M._prepareTemplate;M._prepareTemplate=function(){z.call(this);var J=this.prototype;if(J.experimentalTemplatingInUse&&J.experimentalTemplatingInUse()&&J.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.nc(Error("Yg"));else{J=this.template.content.childNodes;for(var R=J.length-1;R>=0;R--){var D=J[R];D.nodeName!=="STYLE"&&D.nodeName!=="LINK"&&D.nodeName!=="SCRIPT"&&D.nodeName!=="#comment"&&D.remove()}}}};
Z6H=function(M){var z=!0;z=z===void 0?!0:z;SsY();var J=M.ready;M.ready=function(){this._template=null;J.call(this)};
PX8(M,z?M.debounceRender:M.doRender)};
B98=function(M,z,J){if(J===null||J===void 0)return J;var R=RJ3(M.tagName.toLowerCase(),z,function(){throw Error("Ob");});
if(R===null)return J;R=kZH[R];var D;if((D=R.isUnwrappable)==null?0:D.call(R,J)){if(R.unwrap)return R.unwrap(J);throw Error("ah");}return R.filterString?R.filterString(M.tagName,z,String(J)):J};
O6G=function(M,z,J){var R=z[z.length-1]!=="$",D=B98(M,z,J);if(R)if(typeof D==="function"&&z.startsWith("reactiveon")&&z===z.toLowerCase()){var N=LW;TX0(M,z.slice(8),function(Z){gf(N,function(){D(Z)})})}else M[z]=D;
else J=D==null?null:String(D),y8(M,z.slice(0,-1),J)};
sU=function(M){T98.length===0&&requestAnimationFrame(function(){setTimeout(function(){var z=T98.slice();T98.length=0;z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;try{J()}catch(R){_.gv(R)}}})});
T98.push(M)};
IO8=function(M){if(M){var z=M.component;if(z){var J;z==null||(J=z.events)==null||J.publish("DISCONNECTED");var R;z==null||(R=z.onDisconnected)==null||R.call(z)}var D,N;(D=M.__spec)==null||(N=D.didUnmount)==null||N.call(D);for(z=0;z<M.childNodes.length;z++)IO8(M.childNodes[z])}};
ocp=function(M,z,J){var R=z&&z.key,D=EZ;D[0]=M;D[1]=R;D[2]=void 0;for(var N in z)z.hasOwnProperty(N)&&(M=z[N],R=fq,R.push(N),R.push(M));z=EZ;a:{if(N=EZ[2])for(M=0;M<N.length;M+=2)if(N[M]==="nonce"){N=N[M+1];break a}N=""}N=jOe(z[0],z[1],N);M=cl(N);R=z[2];if(!M.staticsApplied&&(M.staticsApplied=!0,R&&R.length))if((D=M._attrsArr)&&D.length){for(D=0;D<R.length;D+=2)ne[R[D]]=D+1;D=M._attrsArr||(M._attrsArr=O43(0));for(var Z=0,B=0;B<D.length;B+=2){var O=D[B],X=D[B+1],l=ne[O];l?R[l]===X&&delete ne[O]:(D[Z]=
O,D[Z+1]=X,Z+=2)}nq(D,Z);for(var e in ne)eJn(N,e,R[ne[e]],rP),delete ne[e]}else for(e=0;e<R.length;e+=2)eJn(N,R[e],R[e+1],rP);hJp(N,M,rP);nq(z,0);J&&J(df);pNp()};
_.hh=function(M,z,J){J===void 0?delete M[z.name]:M[z.name]=J};
_.y1=function(M){var z={androidIncludeFontPadding:!1},J=0,R=[],D=[],N=[];if(M.simpleText)return z.content=M.simpleText,z;if(M.runs===void 0)return z.content="",z;M=_.S(M.runs);for(var Z=M.next();!Z.done;Z=M.next()){Z=Z.value;var B=Z.text,O=void 0,X=(O=B)==null?void 0:O.length;if(B&&X){R.push(B);if(Z.bold||Z.italics||Z.strikethrough||Z.underline||Z.textColor!=null&&Z.textColor!==0||Z.deemphasize){B=D;O=B.push;var l={startIndex:J,length:X};Z.bold&&(l.weightLabel="FONT_WEIGHT_MEDIUM");Z.italics&&(l.italic=
!0);Z.strikethrough&&(l.strikethrough="LINE_STYLE_SINGLE");Z.underline&&(l.underline="LINE_STYLE_SINGLE");Z.textColor!=null&&Z.textColor!==0?document.documentElement.hasAttribute("dark")?l.fontColor=Z.darkModeTextColor||Z.textColor:l.fontColor=Z.textColor:Z.deemphasize&&(document.documentElement.hasAttribute("dark")?l.fontColor=parseInt("ff"+XLw("#aaa").substring(1),16):l.fontColor=parseInt("ff"+XLw("#606060").substring(1),16));O.call(B,l)}Z.navigationEndpoint&&(B=N,O=B.push,l={startIndex:J,length:X,
onTap:{innertubeCommand:Z.navigationEndpoint}},Z.loggingDirectives&&_.hh(l,lO0,Z.loggingDirectives),O.call(B,l));J+=X}}z.content=R.join("");z.styleRuns=D.length?D:void 0;z.commandRuns=N.length?N:void 0;return z};
Qx0=function(M){if(M==null||!M.runs)return!0;M=_.S(M.runs);for(var z=M.next();!z.done;z=M.next())if(z=z.value,z.bracket||z.errorUnderline||z.deemphasize||_.G(z,H5)||_.G(z,e3R))return!1;return!0};
Ut0=function(M,z){return function(J){var R=z.unit;if(R!==J)throw Error("dh`"+M+"`"+R+"`"+J);return z}};
c5=function(M){if(!((M==null?0:M.value)&&(M==null?0:M.unit)))return"";switch(M.unit){case "DIMENSION_UNIT_FRACTION":var z="%";break;default:z="px"}M=M.value;z==="%"&&(M*=100);return""+M+z};
vcw=function(M){try{return M()}catch(z){_.yA(z)}};
_.$S=function(M){var z=_.G(M,_.dv);if(z)return z;if((z=_.G(M,GZG))&&z.commands)return wLp(z.commands);if((z=_.G(M,xt0))&&z.commands)return wLp(z.commands);if((M=_.G(M,t1p))&&M.identifier&&M.command&&(jxw||(jxw=[]),!jxw.includes(M.identifier)))return jxw.push(M.identifier),_.G(M.command,_.dv)};
wLp=function(M){if(M.length!==0){var z=[];M=_.S(M);for(var J=M.next();!J.done;J=M.next())(J=_.$S(J.value))&&z.push(J);return{commandExecutorCommand:{commands:z}}}};
_.qf=function(M){var z=M.defaultTarget,J=M.elementConfig,R=M.elementsCommand,D=M.skipOnClick,N=M.forceNewState,Z=M.additionalCommandArgs,B=M.innertubeCommand||_.$S(R);if(B){M={};var O=pLH(B);R=O.navigatingCommand;O=O.href;R&&O?(M.href$=O,F5e(M,R,O,z),_.U("web_atagconfig_pointerdown")&&Ys0(M,R),N&&(M["force-new-state$"]=!0)):(M.role$="button",M.href$="javascript:void(0);");_.G(B,mtG)&&(M["aria-haspopup$"]=!0);D||(M.onclick=function(X){var l={};if(gcp(X)){var e=(Z==null?void 0:Z.clickedVisualElement)||
(Z==null?void 0:Z.getClickedVisualElement)&&Z.getClickedVisualElement();e&&(l={clickedVisualElement:e});l=Object.assign({},{form:{element:X.target,event:X,createScreenConfig:l}},Z);X.preventDefault();_.u5(B,l)}});
return Object.assign({},J,M)}};
sxR=function(M){if(M.length){if(M.length===1)return M[0];var z={};_.hh(z,_.TV,{commands:M});return z}};
W5=function(M){return M&&M.href$!=="javascript:void(0);"};
pLH=function(M){var z,J=((z=_.G(M,_.TV))==null?void 0:z.commands)||[M];M=_.S(J);for(z=M.next();!z.done;z=M.next()){z=z.value;var R=void 0,D=void 0;J=(D=_.G((R=z)==null?void 0:R.commandMetadata,_.X9))==null?void 0:D.url;_.U("web_remove_web_navigation_endpoint_data")||(R=void 0,J=J||((R=_.G(z,ncH))==null?void 0:R.url));if(J&&J!=="/service_ajax"){if(R=_.sw(J,h3H))return M=_.Yq(R),{navigatingCommand:z,href:M};_.yA(new _.xN("AttributedString URL could not be sanitized",J))}}return{}};
gcp=function(M){return M.button!==void 0?M.button===0&&!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey):!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey)};
F5e=function(M,z,J,R){J=!r3(J);var D,N,Z;if((D=_.G(z,_.Gh))!=null&&D.nofollow||(N=_.G(z,_.Au))!=null&&N.nofollow||(Z=_.G(z,_.af))!=null&&Z.nofollow||J)M.rel$="nofollow";var B;z=((B=_.G(z,_.af))==null?void 0:B.target)==="TARGET_NEW_WINDOW"?"_blank":R===void 0?"":R;M.target$=z};
Ys0=function(M,z){z.clickTrackingParams&&(M.params={itct:z.clickTrackingParams});M.onpointerdown=function(J){_.y28(J)};
M._data=z};
_.H6p=function(M){(M.loggingUrls||[]).forEach(function(z){aH(z.baseUrl,z.attributionSrcMode)})};
_.y28=function(M){var z=M.currentTarget;M=vcw(function(){return z.href});
var J=z.params;M&&_.rM(M,J||{},8,!0)};
_.aE=function(M,z){(M=_.$S(M))&&_.u5(M,z)};
_.u5=function(M,z){Yfe(function(J){z?J.resolveCommand(M,z):J.resolveCommand(M)})};
$t0=function(M,z){var J=["yt-core-attributed-string__link"];z!=null&&z.noLinkColor||((z==null?0:z.isOverlay)?J.push("yt-core-attributed-string__link--overlay-call-to-action-color"):J.push("yt-core-attributed-string__link--call-to-action-color"),(z==null?0:z.linkInheritColor)&&J.push("yt-core-attributed-string--link-inherit-color"));J={className:J.join(" "),tabindex$:"0"};var R=M.onTap||M.onLongPress;if(!R)return J;var D=c2p(M);D&&(J["aria-label$"]=D);z=_.qf({elementsCommand:R,elementConfig:J,skipOnClick:!(z==
null||!z.skipOnClick),forceNewState:!0});M.onLongPress&&(R=new dtc(function(){var N=_.$S(M.onLongPress);N&&_.JF().resolve(_.Rb).resolveCommand(N)}),z&&K5p(R,z));
return z||J};
c2p=function(M){var z,J;return(z=M.onTapOptions)==null?void 0:(J=z.accessibilityInfo)==null?void 0:J.accessibilityLabel};
ug0=function(M){var z=M;M<=16777215&&(z+=parseInt("ff000000",16));return _.qG(z)};
qsp=function(M){var z=M.isDarkTheme;var J=M.extension;M=M.runColor;var R=void 0;if(J=J==null?void 0:J.colorMap){z=z?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";J=_.S(J);for(var D=J.next();!D.done;D=J.next())if(D=D.value,z===D.key){R=D.value;break}}R==null&&M&&(R=M);if(R)return ug0(R)};
V1=function(M){var z=M.config;var J=M.image;var R=M.imageConfig;var D=M.imageWrapperConfig;var N=M.run;var Z=M.tag;var B=M.textLength;var O=M.startIndex===void 0?0:M.startIndex;M=M.length;O===void 0&&(O=0);N={run:N,startIndex:O,endIndex:M!==void 0?O+M:B,tag:Z};J&&(N.image=J);R&&(N.imageConfig=R);D&&(N.imageWrapperConfig=D);z&&(N.config=z);return N};
aOc=function(M,z){var J=[];J.push("yt-core-attributed-string");(z==null?0:z.className)&&J.push(z==null?void 0:z.className);(z==null?0:z.ellipsisTruncate)?J.push("yt-core-attributed-string--ellipsis-truncate"):(z==null?0:z.noWrap)?J.push("yt-core-attributed-string--white-space-no-wrap"):(z==null?0:z.noPreWrap)||J.push("yt-core-attributed-string--white-space-pre-wrap");(z==null?0:z.linkInheritColor)&&J.push("yt-core-attributed-string--link-inherit-color");M.alignment&&J.push(W5c(M.alignment));M.lineBreakMode&&
J.push("yt-core-attributed-string--word-wrapping");return J.join(" ")};
V1p=function(M){if(M.weight)return M.weight;switch(M.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Ec0=function(M){switch(M){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
W5c=function(M){switch(M){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
Le=function(M,z,J){var R=z;M.content&&J&&(J=M.content.indexOf("\n"),J!==-1&&(R=Math.min(z,J)));if(!M.content||M.content.length<=R)z=M;else if(M.attachmentRuns||M.commandRuns||M.decorationRuns||M.styleRuns||M.paragraphStyleRuns){z=EU(M.content,R);J=R;var D=M.attachmentRuns;if(D){var N=[];D=_.S(D);for(var Z=D.next();!Z.done;Z=D.next())Z=Object.assign({},Z.value),Z.startIndex===void 0||Z.startIndex>=J||(Z.length||(Z.length=0),Z.length+Z.startIndex>J&&(Z.length=J-Z.startIndex),N.push(Z));J=N}else J=void 0;
N=fOo(R,M.commandRuns);D=R;var B=M.decorationRuns;if(B){Z=[];B=_.S(B);for(var O=B.next();!O.done;O=B.next()){O=O.value;var X=_.G(O.textDecorator,fe);if(X&&X.startIndex!==void 0&&!(X.startIndex>=D)){O=Object.assign({},O,{textDecorator:{highlightTextDecorator:Object.assign({},X)}});X=_.G(O.textDecorator,fe);if(!X.length||X.length+X.startIndex>D)X.length=D-X.startIndex;Z.push(O)}}D=Z}else D=void 0;Z=fOo(R,M.styleRuns);if(B=M.paragraphStyleRuns)for(M=[],B=_.S(B),O=B.next();!O.done;O=B.next()){var l=O.value;
O=Object.assign({},l);if(!(O.startIndex===void 0||O.startIndex>=R)){if(!O.length||O.length+O.startIndex>R)O.length=R-O.startIndex;X=[];var e=void 0,Q=void 0;if((e=l)==null?0:(Q=e.listGroup)==null?0:Q.listItems)for(l=_.S(l.listGroup.listItems),e=l.next();!e.done;e=l.next())if(e=Object.assign({},e.value),!(e.startIndex===void 0||e.startIndex>=R)){if(!e.length||e.length+e.startIndex>R)e.length=R-e.startIndex;X.push(e)}X.length>0&&(O.listGroup||(O.listGroup={}),O.listGroup=Object.assign({},O.listGroup,
{listItems:X}));M.push(O)}}else M=void 0;z={content:z,attachmentRuns:J,commandRuns:N,decorationRuns:D,styleRuns:Z,paragraphStyleRuns:M}}else z=Object.assign({},M,{content:EU(M.content,R)});return z};
fOo=function(M,z){if(z){var J=[];z=_.S(z);for(var R=z.next();!R.done;R=z.next())if(R=Object.assign({},R.value),!(R.startIndex===void 0||R.startIndex>=M)){if(!R.length||R.length+R.startIndex>M)R.length=M-R.startIndex;J.push(R)}return J}};
EU=function(M,z){var J=z,R;if(R=J>0)R=M.charCodeAt(J-1),R=R>=55296&&R<=56319;R&&(J=M.charCodeAt(J),R=J>=56320&&J<=57343);R&&--z;return M.substring(0,z)};
CXn=function(M,z,J){J=J===void 0?L5w:J;if(M){var R=_.JF().resolve(zS);R||_.U("mweb_no_observer_killswitch")?Vow(M,{data:z,observer:R,visibilityCallback:J,hideOption:A2R,showOption:i6n,layer:M.layer}):_.yA(new _.xN("Warning: monitorVisibility called with null observer",M.tagName,z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams))}else _.yA(new _.xN("Warning: monitorVisibility called with null element",z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams,z==null?void 0:
z.rendererContext))};
DTo=function(M,z){var J=[],R=M.content.length,D,N=(D=_.JF().resolve(_.zw(_.Ah)))==null?void 0:D();if(M.paragraphStyleRuns){D=_.S(M.paragraphStyleRuns);for(var Z=D.next();!Z.done;Z=D.next()){var B=J.push,O=B.apply;var X=void 0;Z=Z.value;if((X=Z.listGroup)!=null&&X.listItems){X=[];b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var l="ul";break b;default:l="span"}X.push(V1({run:Z,textLength:R,tag:l,config:{className:"yt-core-attributed-string__list-group"},startIndex:Z.startIndex,length:Z.length}));
l=_.S(Z.listGroup.listItems);for(var e=l.next();!e.done;e=l.next()){e=e.value;b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var Q="li";break b;default:Q="span"}X.push(V1({run:Z,textLength:R,tag:Q,startIndex:e.startIndex,length:e.length}))}Z=X}else Z=[];O.call(B,J,_.Yj(Z))}}if(M.styleRuns&&(z==null||!z.noStyleRuns))for(D=_.S(M.styleRuns),B=D.next();!B.done;B=D.next()){B=B.value;O=qsp({extension:_.G(B.styleRunExtensions,b6Y),isDarkTheme:N===void 0?!1:N,runColor:B.fontColor});X=[];O&&X.push("yt-core-attributed-string--link-inherit-color");
B.italic&&X.push("yt-core-attributed-string--italicized");B.underline&&B.strikethrough?X.push("yt-core-attributed-string--underline-strikethrough",Ec0(B.underline)):B.underline?X.push("yt-core-attributed-string--underlined",Ec0(B.underline)):B.strikethrough&&X.push("yt-core-attributed-string--strikethrough",Ec0(B.strikethrough));if(B.baselineOffset){a:switch(B.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Z="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Z=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Z="yt-core-attributed-string--baseline-offset-unknown"}X.push(Z)}Z=X.join(" ");X=B;l={};if(X.weight||X.weightLabel)l.fontWeight=V1p(X).toString();O&&(l.color=O);J.push(V1({run:B,textLength:R,tag:"span",config:{className:Z,style:l},startIndex:B.startIndex,length:B.length}))}if(M.decorationRuns)for(D=_.S(M.decorationRuns),B=D.next();!B.done;B=D.next())B=B.value,O={},B.textDecorator&&(l=B.textDecorator,Z=N===void 0?!1:N,e=[],X=
_.G(l,fe),l=_.G(l,r2G),X?(l=e,e=l.concat,Q=[],(Z=qsp({extension:_.G(X.highlightTextDecoratorExtensions,M7p),isDarkTheme:Z,runColor:X.backgroundColor}))&&Q.push("background-color: "+Z+";"),X.backgroundCornerRadius!==void 0&&Q.push("border-radius: "+X.backgroundCornerRadius+"px;"),X.leftPadding!==void 0&&Q.push("padding-left: "+X.leftPadding+"px;"),X.rightPadding!==void 0&&Q.push("padding-right: "+X.rightPadding+"px;"),X.topPadding!==void 0&&Q.push("padding-top: "+X.topPadding+"px;"),X.bottomPadding!==
void 0&&Q.push("padding-bottom: "+X.bottomPadding+"px;"),e=e.call(l,Q)):l&&(X=e,e=X.concat,Z=Z?"#2ba640":"#107516",Z=l.color?ug0(l.color):Z,Z=["padding: 2px;","border-top: solid "+Z+" 2px;","border-bottom: solid "+Z+" 2px;","background: linear-gradient(135deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px);"],e=e.call(X,Z)),Z=e.join(" "),O.style$=Z,Z=B.textDecorator,X=[],l=_.G(Z,r2G),_.G(Z,fe)?X.push("yt-core-attributed-string--highlight-text-decorator"):
l&&X.push("yt-core-attributed-string--bracket-text-decorator"),Z=X.join(" "),O.className=Z,O.dir="auto"),Z=_.G(B.textDecorator,fe),X=_.G(B.textDecorator,r2G),l=_.G(B.textDecorator,fe),e=_.G(B.textDecorator,r2G),J.push(V1({run:B,textLength:R,tag:"span",config:O,startIndex:(Z==null?void 0:Z.startIndex)||(X==null?void 0:X.startIndex)||0,length:(l==null?void 0:l.length)||(e==null?void 0:e.length)||0}));if(M.commandRuns&&(z==null||!z.noEndpoints))for(N=_.S(M.commandRuns),D=N.next();!D.done;D=N.next())D=
D.value,B=$t0(D,z),J.push(V1({run:D,textLength:R,tag:"a",config:B,startIndex:D.startIndex,length:D.length}));if(M.attachmentRuns)for(M=_.S(M.attachmentRuns),N=M.next();!N.done;N=M.next()){N=N.value;O=B=void 0;D={className:"yt-core-attributed-string--inline-block-mod"};if((O=N.element)==null?0:O.properties){O=(B=N.element)==null?void 0:B.properties;B=[];O=_.G(O,zeG);if(O==null?0:O.margin)O=O.margin,O.left&&B.push("margin-left: "+c5(O.left)+";"),O.right&&B.push("margin-right: "+c5(O.right)+";"),O.top&&
B.push("margin-top: "+c5(O.top)+";"),O.bottom&&B.push("margin-bottom: "+c5(O.bottom)+";");B=B.length!==0?B.join(" "):void 0;D.style$=B}Z=void 0;B={alt:"",preserveHeight:!0,preserveWidth:!0};O=["yt-core-attributed-string__image-element"];if(N.alignment){a:switch(N.alignment){case "ALIGNMENT_BASELINE":X="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":X="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:X=
"yt-core-attributed-string__image-element--image-alignment-bottom"}O.push(X)}if((Z=N.element)==null?0:Z.properties)Z=[],X=_.G(N.element.properties,zeG),(X==null?0:X.height)&&Z.push("height: "+c5(X.height)+";"),(X==null?0:X.width)&&Z.push("width: "+c5(X.width)+";"),Z=Z.length!==0?Z.join(" "):void 0,B.style$=Z,X=void 0,Z=((X=_.G(N.element.properties,JDp))==null?void 0:X.label)||"",B.alt=Z;B.className=O.join(" ");O=void 0;l=X=void 0;Z=((l=N.element)==null?0:l.type)?(X=_.G(N.element.type,Ren))==null?
void 0:X.image:void 0;J.push(V1({run:N,textLength:R,tag:"img",image:Z,imageConfig:B,imageWrapperConfig:D,startIndex:N.startIndex,length:(O=N.length)!=null?O:0}))}if(z==null?0:z.headerRuns)for(z=_.S(z.headerRuns),M=z.next();!M.done;M=z.next())if(M=M.value,M.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(M.headerMapping)){a:{switch(M.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":N=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":N="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":N="yt-core-attributed-string--heading-3";break a}N=void 0}J.push(V1({run:M,textLength:R,tag:"span",config:N?{className:N}:void 0,startIndex:M.startIndex,length:M.length}))}return J};
_.i5=function(M){return(M==null?void 0:M.content)!==void 0};
Nhc=function(M){return _.i5(M)?M:_.y1(M)};
POp=function(M){return M.image!==void 0&&M.imageConfig!==void 0};
SHb=function(M,z){if(z==null?0:z.userInput)for(M=_.S(M),z=M.next();!z.done;z=M.next())if(z=z.value,z.tag!=="a"&&z.tag!=="li"){var J=void 0;(J=z).config||(J.config={});z.config.dir=z.tag==="ul"?_.JF().resolve(_.Ce):"auto"}};
Z28=function(M){return function(z){var J=M.run;(J.onTap!==void 0||J.onLongPress!==void 0)&&_.G(J,lO0)&&CXn(z,{loggingDirectives:_.G(J,lO0)})}};
kRw=function(M){return function(z){for(var J in M)(rP[J]||rP[Hl["default"]])(z,J,M[J])}};
I_8=function(M,z){Bhn(z);var J={data:null,start:0,end:M.length,parts:[]};z=_.S(z);for(var R=z.next();!R.done;R=z.next())R=R.value,O2p(J,R.startIndex,R.endIndex,R);The(M,J);return J};
O2p=function(M,z,J,R){for(var D=_.S(M.parts),N=D.next();!N.done;N=D.next()){N=N.value;if(typeof N==="string")throw Error("fh");if(N.start<=z&&J<=N.end){O2p(N,z,J,R);return}}M.parts.push({data:R,parts:[],start:z,end:J})};
The=function(M,z){for(var J=z.parts.length;J>=0;J--){var R=z.parts[J],D=z.parts[J-1],N=J===z.parts.length?z.end:R.start;D=J===0?z.start:D.end;N!==D&&z.parts.splice(J,0,M.slice(D,N));R&&The(M,R)}};
Bhn=function(M){M.sort(function(z,J){if(z.startIndex<J.startIndex)return-1;if(J.startIndex<z.startIndex)return 1;z=z.endIndex-z.startIndex;J=J.endIndex-J.startIndex;return z>J?-1:J>z?1:0})};
_.oHY=function(M){var z=M.thumbnails;if(z){M={sources:[]};z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R={};R.url=J.url;R.width=J.width;R.height=J.height;M.sources.push(R)}return M}};
XGp=function(M,z,J,R){if(!z)return M.length>=1?M[M.length-1]:null;if(R)for(var D=_.S(M),N=D.next();!N.done;N=D.next()){N=N.value;var Z=void 0,B=(Z=N.url)==null?void 0:Z.indexOf(R);if(B!==void 0&&B>=0)return N}R=_.S(M);for(D=R.next();!D.done;D=R.next())if(D=D.value,D.width&&D.height&&(J&&D.width>=z||!J&&D.height>=z))return D;for(z=M.length-1;z>=0;z--)if(J&&M[z].width||!J&&M[z].height)return M[z];return M[0]};
_.l_Y=function(M){var z;return(M=(z=M.sources)==null?void 0:z[0])?M.width/M.height:0};
_.ee3=function(M){if(M.sources){M=_.S(M.sources);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=void 0;if((J=z.clientResource)==null?0:J.imageName)return z}}};
Qm0=function(M){var z;if((z=M.clientResource)!=null&&z.imageColor)return _.qG(M.clientResource.imageColor)};
_.vH8=function(M,z,J,R,D,N,Z){if(!z||z.length===0||z[0].clientResource)return null;if(J&&z[0].url)return z[0].url;R===void 0&&(R=!0);if(R){var B;M=UT8*(D||(M==null?void 0:(B=M.getBoundingClientRect())==null?void 0:B.width)||0)}else{var O;M=UT8*(N||(M==null?void 0:(O=M.getBoundingClientRect())==null?void 0:O.height)||0)}z=XGp(z,M,R,Z);return(z==null?0:z.url)?z.url:(z==null?0:z.imageData)?z.imageData:null};
GR3=function(M,z,J){J=J?[J]:[];M.opacity&&J.push("opacity: "+M.opacity+";");z&&M.placeholderColor?(M=_.qG(M.placeholderColor),J.push("background-color: "+M+";")):J.push("background-color: transparent;");return J.join(" ")};
wGc=function(M,z,J,R,D){var N=["yt-core-image"];z&&N.push(z);J||N.push("yt-core-image--fill-parent-height");R||N.push("yt-core-image--fill-parent-width");switch(M.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":N.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":N.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":N.push("yt-core-image--content-mode-center");break;default:N.push("yt-core-image--content-mode-scale-to-fill")}M.flipForRtlLayout&&
N.push("yt-core-image--flip-rtl");switch(D){case "TOP_START":var Z;N.push(((Z=document.body)==null?void 0:Z.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return N.join(" ")};
t7w=function(M){var z;if(M==null?0:(z=M.clientResource)==null?0:z.imageName){var J;M=(J=M.clientResource)==null?void 0:J.imageName;a:{switch(M){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":J="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":J="yt-logos-ext:yt-logo-updated";break a}J=void 0}return J||xTR.get(M)||M}};
Ff3=function(M){return _.U("mweb_wiz_skip_render")?jmn(M):pGc(M)};
jmn=function(M){return function(z){var J=jOe("wink-root");F6n();pNp();if3(J,_.T(M,z))}};
pGc=function(M){var z=z===void 0?!1:z;return function(J){if(!z||!_.U("mweb_skip_keto_to_c3_if_no_data")||J.data!==void 0){var R=z4(!1);try{var D=J.children;_.U("mweb_render_outside_patch_killswitch")||df?D?bW(_.T(M,J,D)):bW(_.T(M,J)):_.yA(new _.xN("ketoToC3 called outside of a patch",{tagName:M.TAG_NAME}))}finally{z4(R)}}}};
YHb=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
gHp=function(M,z){M.onViewportEntered=z;mT3.observe(M)};
smG=function(){var M={rootMargin:"10%",threshold:.01};_.U("mweb_enable_set_io_root_to_null_safari")?M.root=null:_.U("mweb_enable_set_io_root_to_body_safari")&&(M.root=document.body);return new IntersectionObserver(function(z,J){z.filter(function(R){return R.intersectionRect.height>0}).forEach(function(R){R=R.target;
if(!_.U("mweb_enable_only_update_image_when_connected")||R.isConnected!==!1){var D;(D=R.onViewportEntered)==null||D.call(R);J.unobserve(R)}})},M)};
nHG=function(M,z,J,R,D){function N(){if(R){var B=R.loadedClass,O=R.notifyOnUnloaded;B&&_.b5(M,B);O&&M.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Z(){var B=J(z,M);B&&M.getAttribute("src")!==B&&(_.U("mweb_enable_only_update_image_when_connected")&&M.isConnected===!1||B===M.src||(M.src=B),N())}
D=D===void 0?!0:D;M.removeAttribute("src");N();z&&(D?gHp(M,Z):Z())};
he3=function(M,z,J){if(!z)return!1;z=J(z,M);J=M.getAttribute("src");return z&&z===J&&M.complete};
yDp=function(M,z){for(var J in z)J==="className"?M.className=z[J]:(rP[J]||rP[Hl.default])(M,J,z[J])};
H2R=function(M,z,J,R){Ff3(_.rv)({contentMode:z.contentMode,loadedClass:z.loadedClass,isPreloaded:z.isPreloaded,notifyOnLoaded:z.notifyOnLoaded,notifyOnUnloaded:z.notifyOnUnloaded,preferredThumbnail:z.preferredThumbnail,preserveHeight:z.preserveHeight,preserveWidth:z.preserveWidth,objectPosition:z.objectPosition,targetWidth:z.targetWidth,targetHeight:z.targetHeight,shouldShowPlaceholder:z.shouldShowPlaceholder,useWidth:z.useWidth,isToggled:z.isToggled,alt:z.alt,className:z.className,onerror:z.onerror,
onload:z.onload,style$:z.style$,color:z.color,width:z.width,height:z.height,"aria-hidden$":z["aria-hidden$"],draggable:z.draggable,"data-disabled$":z["data-disabled$"],data:M,callback:J,renderLazy:R===void 0?!0:R,hideOn404:!1})};
dTG=function(M,z,J){J=J===void 0?!1:J;var R=M.sources!==void 0?M:_.oHY(M);if(R){var D=z.onload;z.onload=function(O){var X=O.target;J&&X.naturalWidth===120||_.M7(X,"yt-core-image--loaded");z.notifyOnLoaded&&X.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));D==null||D(O)};
z.targetWidth&&z.preserveWidth&&(z.width=z.targetWidth);z.targetHeight&&z.preserveHeight&&(z.height=z.targetHeight);var N=_.ee3(R),Z=N&&t7w(N);if(Z)return(M=Qm0(N))&&(z.color=M),{type:"icon",iconName:Z,config:Object.assign({},z,z.alt?{}:{"aria-hidden$":"true"},{"aria-label$":z.alt,role:"img"})};if(M.sources===void 0){z.alt=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label||z.alt;z.style$=GR3(M,z.shouldShowPlaceholder,z.style$);var B;z.isPreloaded=!((B=_.G(M,
cD8))==null||!B.isPreloaded)}z.contentMode&&!R.contentMode&&(R.contentMode=z.contentMode);z.className=wGc(R,z.className,z.preserveHeight,z.preserveWidth,z.objectPosition);z.loadedClass="yt-core-image--loaded";return{type:"image",image:R,config:z}}};
_.zL=function(){var M=_.H4.apply(0,arguments);return _.iW(Kf0,function(z){var J=M.map(function(R){return R==null?void 0:R(z)});
return function(){return void J.forEach(function(R){return void(R==null?void 0:R())})}})};
JM=function(M,z){var J=z==null?void 0:z.initial;return _.o4(function(){_.YE(!0);return J=M(J)},{equals:z==null?void 0:z.isEqual},"rSlKsc")};
$T8=function(M,z){if(M===z)return!0;if(M===void 0||z===void 0)return!1;var J,R,D,N,Z,B,O,X;return M.content===z.content&&((J=M.styleRuns)==null?void 0:J.length)===((R=z.styleRuns)==null?void 0:R.length)&&((D=M.commandRuns)==null?void 0:D.length)===((N=z.commandRuns)==null?void 0:N.length)&&((Z=M.attachmentRuns)==null?void 0:Z.length)===((B=z.attachmentRuns)==null?void 0:B.length)&&((O=M.decorationRuns)==null?void 0:O.length)===((X=z.decorationRuns)==null?void 0:X.length)};
Wfw=function(M,z){if(M){var J=Nhc(M);if(J!=null&&J.content)if(_.U("attr_string_reactive"))Ff3(uzG)({text:M,config:z});else{var R=!(z==null||!z.ariaLabel)||!(J.commandRuns&&J.commandRuns.length!==0||J.paragraphStyleRuns&&J.paragraphStyleRuns.length!==0);M=R?z==null?void 0:z.ariaLabel:null;R=R?"text":null;ocp("span",{className:aOc(J,z),dir$:(z==null?0:z.userInput)?"auto":void 0,"aria-label$":M,role$:R},function(){if(J.styleRuns||J.commandRuns||J.attachmentRuns||J.decorationRuns||J.paragraphStyleRuns){var D=
DTo(J,z);SHb(D,z);D=I_8(J.content,D);D=_.S(D.parts);for(var N=D.next();!N.done;N=D.next())qHc(N.value)}else y1n(J.content)})}}};
qHc=function(M){typeof M==="string"?y1n(M):POp(M.data)?ocp("span",M.data.imageWrapperConfig,function(){H2R(M.data.image,M.data.imageConfig)}):ocp(M.data.tag,M.data.config,function(z){Z28(M.data)(z);
z=_.S(M.parts);for(var J=z.next();!J.done;J=z.next())qHc(J.value)})};
V7w=function(M){return M.parts.map(a_H)};
a_H=function(M){if(typeof M==="string")return M;M=POp(M.data)?_.T("span",{el:_.zL(kRw(M.data.imageWrapperConfig))},_.T(_.rv,Object.assign({},{data:M.data.image},M.data.imageConfig))):_.T(M.data.tag,{el:_.zL(Z28(M.data),kRw(M.data.config))},M.parts.map(a_H));return XT(M)};
EHn=function(M,z){return M===z?!0:M===void 0||z===void 0?!1:M.noStyleRuns===z.noStyleRuns&&M.noLinkColor===z.noLinkColor&&M.noEndpoints===z.noEndpoints&&M.headerRuns===z.headerRuns&&M.isOverlay===z.isOverlay&&M.linkInheritColor===z.linkInheritColor&&M.userInput===z.userInput};
f_G=function(M){return function(){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x;return{ariaLabel:(z=M.ariaLabel)==null?void 0:z.call(M),className:(J=M.className)==null?void 0:J.call(M),ellipsisTruncate:(R=M.ellipsisTruncate)==null?void 0:R.call(M),isOverlay:(D=M.isOverlay)==null?void 0:D.call(M),linkInheritColor:(N=M.linkInheritColor)==null?void 0:N.call(M),noEndpoints:(Z=M.noEndpoints)==null?void 0:Z.call(M),noStyleRuns:(B=M.noStyleRuns)==null?void 0:B.call(M),noLinkColor:(O=M.noLinkColor)==null?void 0:O.call(M),
noPreWrap:(X=M.noPreWrap)==null?void 0:X.call(M),noWrap:(l=M.noWrap)==null?void 0:l.call(M),skipOnClick:(e=M.skipOnClick)==null?void 0:e.call(M),stopPropagation:(Q=M.stopPropagation)==null?void 0:Q.call(M),userInput:(v=M.userInput)==null?void 0:v.call(M),headerRuns:(x=M.headerRuns)==null?void 0:x.call(M)}}};
LfG=function(M){return M.value===""||M.value==="true"?!0:M.value==="false"?!1:isNaN(Number(M.value))?M.value:Number(M.value)};
Rl=function(M,z){M=new AD3(M,z);_.nc(M);throw M;};
i2n=function(M,z,J){var R=SWn(M);M._numRenders=0;try{var D=_.lKR(function(){return _.T(z,Object.assign({},J))})}catch(Z){var N=function(B){B.args||(B.args=[]);
B.args.push("Error in web component wrapper");B.args.push(M.tagName.toLowerCase());return B};
_.hL(Z instanceof Error?N(Z):new AD3("Wiz rendering error",M.tagName.toLowerCase()));throw Z;}finally{SWn(R)}return D};
_.N7=function(M,z,J){function R(l){var e={};l=_.S(l);for(var Q=l.next();!Q.done;Q=l.next()){Q=Q.value;var v=void 0,x=void 0,m=void 0,y=_.UK((m=(x=(v=Q).getAttribute)==null?void 0:x.call(v,"slot"))!=null?m:"children");if(v=e[y])v.push(Q);else if(y in N||y==="children")e[y]=[Q]}l=_.S(Object.keys(e));y=l.next();for(Q={};!y.done;Q={content$jscomp$56:void 0},y=l.next())y=y.value,y!=="children"&&(Q.content$jscomp$56=e[y],e[y]=function(H){return function(){return H.content$jscomp$56}}(Q));
return e}
J=J===void 0?{}:J;M.componentType!==Gk||Rl("Components must be marked reactive to be used from web component wrapper.",z);S5.has(z)&&Rl("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",z);var D,N=(D=J.props)!=null?D:{};Zf.add(z);var Z=COH();D=function(){var l=Z.apply(this,arguments)||this;l.rawProps={};l.queuingRender=!1;l.dispose=function(){};
l.isWebComponentWrapper=!0;l.isReparenting=!1;l.hasRendered=!1;return l};
_.w(D,Z);D.prototype.render=function(){this.hasRendered=!0;for(var l=_.S([].concat(_.Yj(this.attributes))),e=l.next();!e.done;e=l.next())e=e.value,e.name!=="slot"&&e.name!=="hidden"&&this.removeAttribute(e.name);l=Object.assign({},this.componentProps,this.slotProps);e=_.S(i2n(this,M,l));l=e.next().value;e=e.next().value;!(l[0]instanceof Element)||l.length>1?Rl("Wrapped Wiz components must return a single root element.",z):(l=l[0].tagName.toLowerCase(),l!==z&&Rl("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(l+" !== '"+z),z),this.dispose=e)};
D.prototype.setUpProps=function(){for(var l=this.rawProps,e=this.attributes,Q=_.S(Object.keys(N)),v=Q.next();!v.done;v=Q.next()){v=v.value;var x=void 0;((x=this)==null?0:x[v])&&this[v]!==b2e&&l[v]===void 0&&(l[v]=this[v],(x=Object.getOwnPropertyDescriptor(this.constructor.prototype,v))&&Object.defineProperty(this,v,x))}Q=_.S(e);for(v=Q.next();!v.done;v=Q.next()){x=v.value;v=_.UK(x.name);var m=v==="class"&&!e.getNamedItem("class-name");if(v in N||m)x=LfG(x),v!=="class"||l.className?l[v]=x:l.className=
x}e={};for(var y in N)N[y]!==_.Dv&&N[y]!==rDY&&(l[y]instanceof Function&&Rl("Function props must be configured as STATIC, not SIGNAL.",z),v=_.S(_.kE(l[y],void 0,"Ri8MSe")),Q=v.next().value,v=v.next().value,e[y]=v,l[y]=Q);l=_.S([l,e]);this.componentProps=l.next().value;this.setters=l.next().value;this.slotProps=R(this.childNodes)};
D.prototype.connectedCallback=function(){Nf===z&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in N&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
D.prototype.disconnectedCallback=function(){if(!this._isInert){var l;a:{if(_.MA0)for(l=this;l;){if(_.zkp.has(l)){l=!0;break a}l=l.parentElement}l=!1}if(l)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){l=_.S([].concat(_.Yj(this.attributes)));for(var e=l.next();!e.done;e=l.next()){e=e.value;var Q=void 0;e.name==="slot"||e.name==="hidden"&&((Q=J.unsafeExternallySettableAttributes)==null?0:Q.has("hidden"))||this.removeAttribute(e.name)}}this.innerText="";bzp(this)}}};
D.prototype._setPendingPropertyOrPath=function(){};
D.prototype.notifyPath=function(){};
_.rX.Object.defineProperties(D.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var B=_.S(Object.keys(N)),O=B.next(),X={};!O.done;X={prop$jscomp$104:void 0},O=B.next())X.prop$jscomp$104=O.value,O=void 0,((O=J.legacyPolymer)==null?0:O.forwardHostProps)&&i73.has(X.prop$jscomp$104)||Object.defineProperty(D.prototype,X.prop$jscomp$104,{set:function(l){return function(e){var Q=this;this._isInert||(this.setters?X8(function(){var v,x;return void((x=(v=Q.setters)[l.prop$jscomp$104])==null?void 0:x.call(v,e))}):(this.rawProps[l.prop$jscomp$104]=e,this.queuingRender&&l.prop$jscomp$104===
"data"&&e!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(X),
get:JY8.has(X.prop$jscomp$104)?void 0:function(){return b2e}});
customElements.define(z,D)};
_.RkY=function(M,z){return(M=_.PS(M,z))?_.Yq(_.hr(M)):null};
_.Sh=function(M){if(M=_.PS(M,Number.MAX_VALUE,void 0,"width"))return _.hr(M)};
_.PS=function(M,z,J,R){R=R===void 0?"width":R;if(!M||!M.length)return null;if(_.U("kevlar_tuner_should_always_use_device_pixel_ratio")){var D=window.devicePixelRatio;_.U("kevlar_tuner_should_clamp_device_pixel_ratio")?D=Math.min(D,_.NC("kevlar_tuner_clamp_device_pixel_ratio")):_.U("kevlar_tuner_should_use_thumbnail_factor")&&(D=_.NC("kevlar_tuner_thumbnail_factor"));D1p=D}else D1p||(D1p=window.devicePixelRatio);D=D1p;_.U("kevlar_tuner_should_always_use_device_pixel_ratio")?z*=D:D>1&&(z*=D);if(_.U("kevlar_tuner_min_thumbnail_quality"))return M[0].url||
null;D=M.length;if(_.U("kevlar_tuner_max_thumbnail_quality"))return M[D-1].url||null;if(J)for(var N=0;N<D;N++)if(M[N].url.indexOf(J)>=0)return M[N].url||null;for(J=0;J<D;J++)if(M[J][R]>=z)return M[J].url||null;for(z=D-1;z>0;z--)if(M[z][R])return M[z].url||null;return M[0].url||null};
Sow=function(){Zv.size?setTimeout(function(){kn(Nt0)},0):Pxw=0};
Nt0=function(){var M=(0,_.zU)(),z=null,J=!1;Zv.forEach(function(D){D.loaded=!0;D.loadTime=M;D.pendingPaint=!1;var N=ZPH.get(D);N&&N.resolve(M);z=D;J||!D.ftlEligible&&D.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(J=!0)});
var R;((R=z)==null?0:R.markDirty)&&z.markDirty();Zv.clear();Pxw=0;J&&kYH(M)};
Btb=function(M){Zv.add(M);M.pendingPaint=!0;Pxw||(Pxw=_.BS(_.no,Sow))};
OPo=function(M){M.loaded=!1;M.loadTime=Infinity;var z=ZPH.get(M);z&&(z.reject(Error("lh")),ZPH.delete(M));M.pendingPaint&&(Zv.delete(M),M.pendingPaint=!1)};
_.Tte=function(M){var z=M.indexOf(":");return z===-1?{originalName:M}:{originalName:M.substring(0,z),datasyncId:M.substring(z+1)}};
_.ovp=function(){return _.k(function(M){if(I6Y!==void 0)return M.return(I6Y);I6Y=new Promise(function(z){var J;return _.k(function(R){switch(R.nextAddress){case 1:return _.Io(R,2),R.yield(_.ON.open("test-only"),4);case 4:return R.yield(_.ON.delete("test-only"),5);case 5:_.ab(R,3);break;case 2:if(J=_.Qa(R),J instanceof Error&&J.name==="SecurityError")return z(!1),R.return();case 3:z("caches"in window),_.UI(R)}})});
return M.return(I6Y)})};
ekp=function(){return _.k(function(M){if(M.nextAddress==1)return M.yield(_.ovp(),2);if(!M.yieldResult)return M.return(void 0);XVc||(XVc=new l63);return M.return(XVc)})};
QBR=function(M){var z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return N.yield(ekp(),2);case 2:z=N.yieldResult;if(!z)throw Error("nh");return N.yield(z.open("yt-player-local-img"),3);case 3:return J=N.yieldResult,N.yield(J.match(M),4);case 4:R=N.yieldResult;if(!R)throw Error("oh");return N.yield(R.blob(),5);case 5:return D=N.yieldResult,N.return(D)}})};
U1b=function(M,z){for(var J in M)if(M.hasOwnProperty(J)&&z[J])return J;return null};
vve=function(M){return"stamp"+M.replace("-","_")+"_"};
GYc=function(M){var z=M.match(/\[\[([\w\.]+)\]\]/);if(z&&z.length>1)return z[1];_.nc(Error("qh`"+M));return null};
wVY=function(M){return M===void 0?_.cW("REUSE_COMPONENTS",!1):M||!1};
jBe=function(M,z,J){J&&(z.is?(x1p.has(z)&&(M=x1p.get(z),J=M.listener,delete z[M.property],J.type==="element"&&z.removeEventListener(J.eventName,J.handler),x1p.delete(z)),tA3(z)):z.__proto__==HTMLElement.prototype&&(z=new _.xN("Rendererstamper removed a non custom element","Stamper: "+M+" element: "+(z&&z.nodeName)),_.yA(z)))};
pV0=function(M,z,J,R){var D=z.node?z.node:z;_.SN(J).parentNode===D&&(z.removeChild(J),jBe(M,J,R));if(M=TL.get(J))TL.delete(J),_.no.cancelJob(M);J.hidden=!1};
FLp=function(M,z,J,R){if(z&&z.children&&(J=z.children[J]))if(_.cW("DEFERRED_DETACH"))for(;J&&!TL.has(J);){var D=M,N=z,Z=J,B=R;Z.hidden=!0;D=_.x4(_.no,pV0.bind(null,D,N,Z,B),0);TL.set(Z,D);J=J.nextElementSibling}else for(;(Z=z.lastElementChild)&&(z.removeChild(Z),jBe(M,Z,R),Z!=J););};
Yo3=function(M){var z=_.AL("__slot-el");_.mF(function(){for(var J=_.S(M.slotContent),R=J.next();!R.done;R=J.next())z.value.appendChild(R.value)});
return _.T("__slot-el",{el:z,skip:!0})};
_.Il=function(M,z,J){J=J===void 0?m1p:J;S5.add(z);var R;(R=J).propNames!=null||(R.propNames=[]);var D=new Set(J.propNames),N=COH();R=function(){var X=N.call(this)||this;X.props={};X.isUpdating=!1;X.hasAttached=!1;X.isInert=!1;X.updateQueued=!1;X.initialClasses=[];PI3(X,z);return X};
_.w(R,N);R.prototype.forwardKebabCaseProp=function(X,l){X=_.UK(X);if(D.has(X)||X==="children")this.props[X]=l};
R.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var X=_.S(this.initialClasses),l=X.next();!l.done;l=X.next())(l=l.value)&&this.classList.add(l);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
R.prototype.handleSlottedContent=function(){for(var X=new Map,l=_.S(this.children),e=l.next();!e.done;e=l.next()){e=e.value;var Q=void 0,v=(Q=e.getAttribute("slot"))!=null?Q:"children";(Q=X.get(v))?Q.push(e):X.set(v,[e]);if(!e.getAttribute("key")){var x=void 0,m=void 0;e.setAttribute("key",v+"_"+((m=(x=Q)==null?void 0:x.length)!=null?m:0))}}X=_.S(X);for(l=X.next();!l.done;l=X.next())e=_.S(l.value),l=e.next().value,e=e.next().value,this.forwardKebabCaseProp(l,_.T(Yo3,{slotContent:e}))};
R.prototype.connectedCallback=function(){var X=this;if(!PI3(this,z)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var l=_.S(this.attributes),e=l.next();!e.done;e=l.next())e=e.value,this.forwardKebabCaseProp(e.name,LfG(e));this.handleSlottedContent();J.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){X.afterFirstPatch()});
this.hasAttached=!0}};
R.prototype.attributeChangedCallback=function(X,l,e){this.isInert||this.isUpdating||this.isConnected||X!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Yj(e.split(" ")))};
R.prototype.disconnectedCallback=function(){hMb(this)};
R.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var X,l;if3(this,_.T(M,Object.assign({},this.props,{idomKey:(l=(X=this.__incrementalDOMData)==null?void 0:X.key)!=null?l:z})),!0)}catch(Q){var e=Q instanceof Error?Q:new _.xN("Wiz rendering error");e.args||(e.args=[]);e.args.push("Error in deprecated web component wrapper");e.args.push(z.toLowerCase());_.nc(e);throw Q;}finally{this.updateQueued=this.isUpdating=!1}}};
R.prototype.enqueueUpdate=function(){var X=this;return _.k(function(l){if(J.synchronous)return X.update(),l.return();if(X.updateQueued)return l.return();X.updateQueued=!0;return l.return(Promise.resolve().then(function(){X.update()}))})};
R.prototype.notifyPath=function(){J.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.rX.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Z=_.S(J.propNames),B=Z.next(),O={};!B.done;O={prop$jscomp$106:void 0},B=Z.next())O.prop$jscomp$106=B.value,Object.defineProperty(R.prototype,O.prop$jscomp$106,{set:function(X){return function(l){this.isInert||l===this.props[X.prop$jscomp$106]||(this.props[X.prop$jscomp$106]=l,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(O)});
customElements.define(z,R)};
sBG=function(M){var z;return(z=gv8[M])!=null?z:"EVENT_SPAN_TYPE_UNKNOWN"};
nvo=function(M){var z=M.nodeName;if(M.id)return z+="#"+M.id;if(M.classList)for(var J=_.S(M.classList),R=J.next();!R.done;R=J.next())z+="."+R.value;M.parentElement&&(z=nvo(M.parentElement)+" > "+z);return z};
hko=function(M){return function(z){var J=sBG(z.type);return J==="EVENT_SPAN_TYPE_UNKNOWN"?M(z):KTb("event",{type:J,nodepath:z.target instanceof Element?nvo(z.target):void 0},function(){return M(z)})}};
_.ol=function(M){M&&yTo("event")&&(M=hko(M));return ECG(function(z){var J,R=(J=M)==null?void 0:J(z);return typeof R==="boolean"?R:!0})};
XY=function(M){return function(){return M()?M():void 0}};
d1o=function(M){var z=_.AL("animated-rolling-character"),J=sR(),R=Cu(M.character)||Cu(M.previousCharacter);rub(function(){if(M.marginMultiplier){var D;(D=J.value)==null||D.cancel();R?(D=M.previousCharacter?Number(M.previousCharacter)+10:M.rollUp?0:30,M.shouldAnimate||(D-=yYc(M,D))):(D=M.rollUp?0:2,M.shouldAnimate||(D-=M.rollUp?-1:1));z.value.style.marginTop="-"+D*M.marginMultiplier+"px";M.shouldAnimate?J.value=HP8(z.value,M,D,R):z.value.style.display=M.character?"":"none"}});
return _.T("animated-rolling-character",{el:z,class:"animated-rolling-character-wiz"},eXY(R,function(){for(var D=[],N=1;N<30;N++)D.push(_.T("div",null,N%10));return _.T(_.MH,null,_.T("div",null,"\u00a0"),D,_.T("div",null,"\u00a0"))},function(){return cYb(M.character)}))};
cYb=function(M){return _.T(_.MH,null,_.T("div",null,"\u00a0"),_.T(_.MH,null,eXY(!M||_.ko(M),function(){return _.T("div",null,"\u00a0")},function(){return _.T("div",null,M)})),_.T("div",null,"\u00a0"))};
HP8=function(M,z,J,R){J=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(R?yYc(z,J):z.rollUp?-1:1)*z.marginMultiplier+"px)"}],KLY),document.timeline);z.character?(M.style.display="",J.onfinish=null):J.onfinish=function(){M.style.display="none"};
J.play();return J};
yYc=function(M,z){var J=Number(M.character)+10;if(M.previousCharacter)if(M.character){var R=Number(M.character),D=Number(M.previousCharacter);M=M.rollUp?D<R?J:J+10:D<R?J-10:J}else M=M.rollUp?30:0;else M=M.character==="0"?J:M.rollUp?J-10:J+10;return z-M};
_.lP=function(M){return function(z){var J={},R;for(R in z){var D=void 0,N=void 0;((D=void 0)==null?0:(N=D.callbacks)==null?0:N[R])||(J[R]=z[R])}return _.T(XXn,null,function(){for(var Z in J)z[Z]=_.YE(J[Z]);z.disableReactiveLogging=!0;return _.T(M,Object.assign({},z))})}};
qoo=function(M,z,J,R,D,N,Z){J=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(N?$13(z,J,R,D):R?-1:1)*Z+"px)"}],uRR),document.timeline);z?(M.style.display="",J.onfinish=null):J.onfinish=function(){M.style.display="none"};
J.play();return J};
$13=function(M,z,J,R){var D=Number(M)+10;z?M?(M=Number(M),z=Number(z),J=J?z<M?D:D+10:z<M?D-10:D):J=J?30:0:J=M==="0"?D:J?D-10:D+10;return R-J};
a68=function(M){var z=sR(),J=sR();_.Yy(function(){z.value=M.numberText;J.value=M.numberValue},[M.numberText]);
var R=M.fontSizeMultiplier?M.heightPx*M.fontSizeMultiplier:M.heightPx,D=ZY3(function(){if(M.numberText){var Z=M.numberText;var B=M.forceRollUp||!J.value||!M.numberValue||J.value<M.numberValue;var O=!!M.shouldAnimate,X=z.value,l=[],e=0,Q=0,v=(X?X.replace(/\D/g,"").length:0)-(Z?Z.replace(/\D/g,"").length:0);X=X?X.split(/(\d)/).filter(Boolean):[];for(Z=Z.split(/(\d)/).filter(Boolean);v<0;){var x=Z[Q];l.push({character:x,rollUp:B,marginMultiplier:R,shouldAnimate:O});Q++;Cu(x)&&v++}for(;e<v;)x=X[e],l.push({previousCharacter:x,
rollUp:B,marginMultiplier:R,shouldAnimate:O}),e++,Cu(x)||v++;for(;Q<Z.length;)v=Z[Q],x=X[e],Cu(v)===Cu(x)?(Q++,e++):Cu(v)?(e++,v=void 0):Cu(x)&&(Q++,x=void 0),l.push({character:v,previousCharacter:x,rollUp:B,marginMultiplier:R,shouldAnimate:O});B=l}else B=[];return B},[M.numberText]),N=M.numberText?["height: "+R+"px;",
"line-height: "+M.heightPx+"px;"].join(" "):"";return _.T("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:N,dir:"ltr","aria-hidden":"true"},D.map(function(Z){return _.T(WLR,Object.assign({},Z))}))};
VAw=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Ev3=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.eh=function(M){var z=JM(function(J){J=J?ZZ(J[0]):void 0;return _.kE(M(J),void 0,"AwTxXe")},{isEqual:function(J,R){return ZZ(J[0])===ZZ(R[0])}});
return[function(){return z()[0]()},
function(J){return void z()[1](J)}]};
_.Qe=function(){for(var M=_.H4.apply(0,arguments),z=!0,J=_.S(M),R=J.next();!R.done;R=J.next())if(typeof R.value!=="string"){z=!1;break}return z?M.join(" ").trim()||void 0:function(){for(var D="",N=_.S(M),Z=N.next();!Z.done;Z=N.next())if(Z=Z.value,typeof Z==="function"&&(Z=Z()),Z)if(typeof Z==="string")D+=" "+Z;else for(var B in Z)if(Z.hasOwnProperty(B)){var O=Z[B];typeof O==="function"&&(O=O());O&&(D+=" "+B)}D=D.trim()||void 0;return _.YE(D)}};
_.UN=function(M){return function(){var z="",J;for(J in M){for(var R=M[J];typeof R==="function";)R=R();R!==void 0&&R!==null&&(z+="; "+J+": "+R)}return z.length>0?_.YE(z.slice(2)):_.YE()}};
f6n=function(M){switch(M){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
bPw=function(M,z,J,R,D,N,Z){var B=LLo(M),O=B.disabled,X=B.iconPosition,l=B.style,e=B.focused,Q=function(){return!!m()&&X()==="icon-only"},v=function(){return!!m()&&X()==="icon-only-40"},x=function(){return!!m()&&X()==="icon-with-label"},m=function(){return!!z||!(R==null||!R())};
return{type:function(){return l()==="call-to-action-inverse"?"text":l()==="overlay-dark"&&M().type!=="filled"&&M().type!=="tonal"?"tonal":M().type},
shouldFocus:function(){return(e()||(N==null?void 0:N()))&&!O()},
hasIconLeading:function(){return!!m()&&X()==="leading"},
hasIconTrailing:function(){return!!m()&&X()==="trailing"},
hasIconLeadingTrailing:function(){return!!m()&&!!(J||D!=null&&D())&&X()==="leading-trailing"},
hasIconOnly:Q,hasIconOnly40:v,hasIconWithLabel:x,iconButton:function(){return Q()||v()||x()},
visiblyDisabled:function(){return(O()?"disabled":M().state)==="disabled"||O()},
overrideSmallSizeIcon:function(){return!M().ignoreIconSizeOverride&&AYG(M(),m())},
iconToRender:z?z:function(){return _.T(_.vS,{icon:R,size:function(){return iPw(M(),!0,M().ignoreIconSizeOverride)},
active:function(){return M().toggled},
iconFilter:function(){return Cx0(M())},
animateIcon:Z})},
secondaryIconToRender:J?J:function(){return _.T(_.vS,{icon:D,size:function(){return iPw(M(),!0,M().ignoreIconSizeOverride)},
active:function(){return M().toggled},
iconFilter:function(){return Cx0(M())}})}}};
LLo=function(M){return{size:function(){return M().size},
style:function(){return M().style},
focused:function(){return M().focused},
disabled:function(){return M().disabled},
onTap:function(z){var J,R;return(R=(J=M()).onTap)==null?void 0:R.call(J,z)},
alignByText:function(){return M().alignByText},
aTagConfig:function(){return M().aTagConfig},
customColors:function(){return M().customColors},
segmentedPosition:function(){return M().segmentedPosition},
toggled:function(){return M().toggled},
toggleable:function(){return M().toggleable},
accessibilityLabel:function(){return M().accessibilityLabel},
onToggle:function(z){var J,R;return(R=(J=M()).onToggle)==null?void 0:R.call(J,z)},
iconPosition:function(){return M().iconPosition},
oneOffCustomTextWrap:function(){return M().oneOffCustomTextWrap},
disableTextEllipsis:function(){return M().disableTextEllipsis},
disableBackdropFilter:function(){return M().disableBackdropFilter},
tooltipText:function(){return M().tooltipText},
ariaHidden:function(){return M().ariaHidden},
tabIndex:function(){return M().tabIndex},
buttonText:function(){return M().buttonText},
formattedButtonText:function(){return M().formattedButtonText},
animatedTextProps:function(){return M().animatedTextProps}}};
AYG=function(M,z){z=(M.iconPosition==="icon-only"||M.iconPosition==="icon-only-40"||M.iconPosition==="icon-with-label")&&z;return!M.segmentedPosition&&z&&M.size==="S"};
iPw=function(M,z,J){switch(M.size){case "XS":return 16;case "S":return!J&&AYG(M,z)?24:16;default:return 24}};
rYR=function(M){switch(M){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
MDH=function(M){switch(M){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
zZH=function(M){switch(M){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
Cx0=function(M){if(M.style==="overlay-dark"&&M.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
GL=function(M){return M&&M.endsWith("px")?Number(M.slice(0,-2)):0};
DUe=function(M){var z=z===void 0?{}:z;M=_.S(_.eh(M));var J=M.next().value;return[function(R){var D=_.o4(function(){var B,O,X,l;return{text:(B=J())!=null?B:"",location:(O=z.location)!=null?O:"bottom",offset:(X=z.offset)!=null?X:16,delay:(l=z.delay)!=null?l:1}},void 0,"MgTrkc");
_.jP(function(){var B=D();ZZ(function(){_.no.addJob(function(){w4.notify(R,B)},4)})},"WlsgZc");
var N=function(){Jz3(R,D())},Z=function(){RZn()};
R.addEventListener("mouseenter",N);R.addEventListener("focus",N);R.addEventListener("mouseleave",Z);R.addEventListener("blur",Z);R.addEventListener("tap",Z);_.pq(function(){R.removeEventListener("mouseenter",N);R.removeEventListener("mouseleave",Z);R.removeEventListener("focus",N);R.removeEventListener("blur",Z);R.removeEventListener("tap",Z);RZn()})},
M.next().value]};
NCp=function(M,z){if(!LW){var J;M_8(function(){return J=IKo(M,z)});
return J}M.parent=_.xn();return IKo(M,z)};
_.xn=function(){var M=_.im(LW||void 0,BFp);return _.GUc(M)?void 0:M};
tM=function(M,z){_.u5(M,Object.assign({},z,{forceClickLogging:!0}))};
SX8=function(M,z){var J=_.$S(M==null?void 0:M.onTap),R={};J&&(R.getClickedVisualElement=function(){var D;return Pre(M,J,z==null?void 0:(D=z.value)==null?void 0:D.visualElement)});
R=_.qf({elementsCommand:M.onTap,forceNewState:!0,additionalCommandArgs:R});return W5(R)?R:void 0};
ZAn=function(M,z,J,R){tM(M,Object.assign({},{form:{element:z,event:J}},R))};
kf8=function(M,z,J,R,D){var N=void 0;return function(Z){var B=_.$S(J?M==null?void 0:M.onDisabledTap:M==null?void 0:M.onTap);if(B){var O;N=(O=N)!=null?O:z==null?void 0:z.value;if(B)if(_.U("web_button_vm_click_client_ve_killswitch"))ZAn(B,N,Z);else{var X;O=Pre(M,B,(X=N)==null?void 0:X.visualElement);if(D){ZAn(B,D,Z,{clickedVisualElement:O,form:{element:D}});return}ZAn(B,N,Z,{clickedVisualElement:O})}}R&&R(Z)}};
Pre=function(M,z,J){z=z==null?void 0:z.clickTrackingParams;var R,D;M=M==null?void 0:(R=M.loggingDirectives)==null?void 0:(D=R.clientVeSpec)==null?void 0:D.uiType;if(J&&M&&!z)return J};
BCc=function(M){switch(M){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
OAH=function(M){switch(M){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
TCR=function(M){switch(M){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
Itb=function(M){switch(M){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
oap=function(M,z){return _.Is(M.entities,"engagementToolbarStateEntityPayload",z)};
lt8=function(M){(M=_.pe(M))&&_.XZG(M)};
_.XZG=function(M){var z=_.y5();z&&_.an(z,M)};
eZp=function(M,z,J){_.S9(M,"yt-open-popup-action",[z,J||M])};
Qpp=function(M,z){var J=_.nh(M,"endpoint"),R=_.nh(M,"action");return(J=R?R:J)&&z&&(J=z.navigationEndpointPopupMap[J])&&(M=_.qH(J,M),(J=_.nh(M,"renderer"))&&z.supportedPopups.hasOwnProperty(J))?{openPopupAction:{popupType:z.popupTypeMap[J],popup:M}}:null};
UU8=function(M,z,J,R){if(R){var D;J=J==null?void 0:(D=J.data)==null?void 0:D.contents;(D=J instanceof Array&&J.length?J[0]:J)&&(J=_.nh(D,"renderer"))&&R.supportedPopups.hasOwnProperty(J)&&(z.stopPropagation(),eZp(M,{openPopupAction:{popupType:R.popupTypeMap[J],popup:D}}))}};
wZ3=function(M,z,J,R){R=R===void 0?!1:R;var D=vao(z);if(D){D.href&&VO(D.href);var N=z.button;N=N!==void 0?N===0&&!jh(z):!jh(z);D.data&&N&&Gfp(M,D,z,J,R)}};
Gfp=function(M,z,J,R,D){D=D===void 0?!1:D;var N=_.NC("pbj_navigate_limit",-1)===0;xUH(z);_.JF().resolve(_.zw(Wb));var Z=z.data;if(Object.keys(Z).length!==0)if(!_.U("unplugged_web_disable_actions_for_cec_endpoint")&&_.G(Z,_.TV))_.U("endpoint_behavior_command_executor_fix_killswitch")||(J.preventDefault(),J.stopPropagation()),_.Bv(M,[Z],M);else if(R=Qpp(Z,R))Z.loggingUrls&&Z.loggingUrls.forEach(function(O){O.baseUrl&&_.WI(O.baseUrl)}),J.preventDefault(),J.stopPropagation(),eZp(M,R,z);
else{var B=tD0(0,z.data,J);if(M=z.getForm)M=M(),B.tempData=B.tempData||{},B.tempData=Object.assign({},B.tempData,M);M=_.CX(J);if(R=M.find(function(O){return!!O.visualElement}))B.createScreenConfig=B.createScreenConfig||{},B.createScreenConfig.clickedVisualElement=R.visualElement;
if(!N)if(J.preventDefault(),J.stopPropagation(),_.G(Z,_.jpe)&&!D&&_.l5.instance)_.l5.instance.resolveCommand(Z,B);else if(_.U("kevlar_command_handler_formatted_string")&&!D&&_.l5.instance&&pZ8(Z))D=M.find(function(O){return!!O.is})||J.target,J={form:Object.assign({},B,{event:J,
element:D,originatingNode:z})},_.l5.instance.resolveCommand(Z,J);else{Z=_.CX(J);J=[];for(D=0;D<Z.length;D++)(N=Z[D].is)&&J.push(N);Y33({parents:J.join(","),text:z.innerText},function(){_.Pv(z,"yt-navigate",B)})}}};
FZc=function(M){if(M=vao(M))xUH(M),UAn(M.href)};
vao=function(M){M=_.CX(M);for(var z,J=0;J<M.length;J++)if(z=M[J],z.tagName==="A"&&z.classList.contains("yt-simple-endpoint")){if(!z.data)break;return z}return null};
jh=function(M){return M.shiftKey||M.altKey||M.metaKey||M.ctrlKey};
YX0=function(M,z){var J={itct:z.clickTrackingParams};_.U("kevlar_client_side_screens")&&(!_.G(z,_.je)||_.U("kevlar_exclude_endpoint_killswitch"))&&(J.endpoint=JSON.stringify(z));_.U("enable_unknown_lact_fix_on_html5")&&_.JF().resolve(_.zw(_.pn))&&(J.lact=_.Rf());lnp(J);_.rM(M,J)};
xUH=function(M){M.href&&Object.keys(M.data).length!==0&&YX0(M.href,M.data)};
pZ8=function(M){for(var z=_.S(mU8),J=z.next();!J.done;J=z.next())if(M[J.value])return!1;return!0};
_.gao=function(M,z){return _.Is(M.entities,"markersEngagementPanelSyncEntity",z)};
spp=function(M,z){return _.Is(M.entities,"fantasyWinProbabilityEntity",z)};
naH=function(M,z){return _.Is(M.entities,"fantasyTeamEntity",z)};
hZR=function(M,z){return _.Is(M.entities,"fantasyPlayerEntity",z)};
yz8=function(M,z){return _.Is(M.entities,"booleanEntity",z)};
HAp=function(M,z){return _.Is(M.entities,"qrCodeEntity",z)};
czG=function(M){return _.Is(M.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
dUR=function(){if(FY)return FY;if(window.lottie)return FY=Promise.resolve(window.lottie);var M=_.ho(_.HW("LOTTIE_URL"));return M?FY=new Promise(function(z,J){var R=document.createElement("script");R.addEventListener("load",function(){z(lottie)});
R.addEventListener("error",function(D){var N="Lottie library failed to load.";D?D.message&&(N+=" Original description: "+D.message,_.Hb(D,N)):D=Error(N);_.yA(D);J(D)});
R.setAttribute("async","");_.is(R,M);document.head.appendChild(R)}):Promise.reject(Error("rh"))};
KZ8=function(){return FY?FY:dUR()};
$U0=function(M){if(M)switch(M){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.U("kevlar_use_wil_icons"))return M=(M=czG(_.rA().getState()))&&M.animationLightUrl&&M.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:M.animationLightUrl,pathDarkTheme:M.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,M?M:Yn.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Yn.get("LIKE_DELHI_PLAYER")}};
uto=function(M){var z=$U0(M);if(z)return z;switch(M){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Yn.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Yn.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Yn.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Yn.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Yn.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Yn.get("NOTIFICATION_BELL")}};
qXw=function(M,z){if(!M.closest)return!1;z=!!$U0(z);return _.HW("ID_TOKEN")&&z?!!M.closest("segmented-like-dislike-button-view-model")||!!M.closest("yt-player-quick-action-buttons"):!1};
atp=function(M,z){if(!M||WZ0)z=!1;else{var J;if(!(J=qXw(M,z)))if(M.closest)if(J=!_.HW("ID_TOKEN"),M=M.closest("ytd-subscription-notification-toggle-button-renderer-next"),J||!M)J=!1;else{var R;J=((R=M.data)==null?void 0:R.targetId)==="notification-bell"&&z!=="EXPAND_MORE"}else J=!1;z=J}return z};
VD0=function(M){var z,J;return _.k(function(R){switch(R.nextAddress){case 1:return _.Io(R,2),R.yield(fetch(M),4);case 4:return z=R.yieldResult,R.yield(z.json(),5);case 5:return R.return(R.yieldResult);case 2:J=_.Qa(R),_.yA(J),_.UI(R)}})};
Eap=function(M,z){var J,R,D;return _.k(function(N){if(N.nextAddress==1)return(J=z?M.pathDarkTheme:M.path)?N.yield(Promise.all([VD0(J),dUR()]),2):N.return();R=N.yieldResult;D=R[0];mN.set(J,D);_.UI(N)})};
LZ8=function(M,z,J,R){function D(Z,B){if(z.value===B&&M!=null&&M.value){for(;M.value.firstChild;)M.value.removeChild(M.value.firstChild);M.value.classList.add("yt-spec-icon-shape");Z(M.value,R)}}
J=_.ftY(_.JF().resolve(_.XH),J);if(typeof J==="function")z.value=null,D(J,null);else{var N=new _.If(J.then,J);z.value=N;N.then(function(Z){D(Z,N)})}};
iA8=function(M,z){var J=document.createElement("div"),R=_.ph(J,function(){return _.T(_.I,{cond:M,then:function(D){return _.T(Azw,{data:D,options:z})}})});
return[J,R]};
_.g4=function(M,z){if(z){var J={};Cr8.forEach(function(R){R=bA3(z,R,"--yt-lightsource-");Object.assign(J,R)});
rz8.forEach(function(R){R=bA3(z,R,"--yt-basic-");Object.assign(J,R)});
_.Tp(M,J)}};
bA3=function(M,z,J){var R={};R[J+_.Q5(z)]=M&&M[z]?_.qG(M[z]):"";return R};
_.nn=function(M,z,J){sN[M]||(sN[M]={});sN[M][z]=J};
_.hM=function(M){sN[M]||(sN[M]={});return sN[M]};
M$Y=function(M){if(!M)return{};var z=M.foregroundTitleColor,J=M.backgroundColor;M=M.borderColor;var R="text";M?R="outline":J&&(R="filled");return{type:R,customColors:{color:z?_.qG(z):void 0,backgroundColor:J?_.qG(J):void 0,borderColor:M?_.qG(M):void 0}}};
N68=function(M){var z=M.renderer;var J=M.element;var R=M.commandController;var D=M.onTapCallback;var N=M.skipCommandHandling;var Z=M.overrides;var B=M.forceIcon;var O=M.forceModernIconButton;var X=M.forceDisabled;var l=M.isSubscribe===void 0?!1:M.isSubscribe;var e=M.isPressed===void 0?!1:M.isPressed;var Q=M.useButtonSize===void 0?!1:M.useButtonSize;M=zQw(z);l&&(M.style="mono",M.type="filled");B=!z.icon||!B&&z.text?z.icon?z.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:O?"icon-only":"icon-only-40";B==="icon-only-40"&&(M.type="text");var v;O=Object;l=O.assign;Q=J03(z,Q);e=!!z.isSelected||!_.U("web_propagate_is_pressed_killswitch")&&!!e;var x=z.isSelected!==void 0;X=X===void 0?z.isDisabled:X;var m=z.text?_.y1(z.text):void 0;var y,H,q,b=((y=z.accessibilityData)==null?void 0:(H=y.accessibilityData)==null?void 0:H.label)||((q=z.accessibility)==null?void 0:q.label);y=b?b:_.CD(z.text);J=RQp(z,J,R,D,N);R=Dwp(z);R!=null&&R.length?(R=_.qf({innertubeCommand:sxR(R),
forceNewState:!0}),R=W5(R)?R:void 0):R=void 0;return l.call(O,{},M,Q,{iconPosition:B},Z,{focused:!1,toggled:e,toggleable:x,disabled:X,formattedButtonText:m,accessibilityLabel:y,onTap:J,aTagConfig:R},M$Y((v=z.colorData)==null?void 0:v.basicColorPaletteData),{oneOffCustomTextWrap:z.oneOffCustomTextWrap})};
RQp=function(M,z,J,R,D){return function(N){var Z=Dwp(M);R(Z,N);if(!D){Z=_.S(Z);for(var B=Z.next();!B.done;B=Z.next())tM(B.value,{form:{element:z,event:N},commandController:J})}}};
Dwp=function(M){var z=[];M.command&&z.push(M.command);M.serviceEndpoint&&z.push(M.serviceEndpoint);M.navigationEndpoint&&z.push(M.navigationEndpoint);return z};
J03=function(M,z){if(z)switch(M.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(M.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
zQw=function(M){switch(M.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_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"}}};
PR8=function(M,z){return typeof M!=="object"||M===null?!1:Object.keys(z).every(function(J){return J in M})};
SuG=function(M,z,J){return TdH(J,function(R,D){return function(N){var Z=_.H4.apply(1,arguments);return PR8(N,M)?D.apply(null,[N[z]].concat(_.Yj(Z))):D.apply(null,[N].concat(_.Yj(Z)))}})};
_.ye=function(M){return M!=null&&M.watch?M.watch.isTheaterMode:!1};
_.HS=function(M){return M!=null&&M.watch?M.watch.isWatchFullscreen:!1};
_.cS=function(M){M=_.Z1H(M);return _.U("web_watch_enable_single_column_grid_view")?M:!1};
_.Z1H=function(M){return M.watch.isWatchNarrowWidth};
_.kIp=function(M){return M.watch.openEngagementPanels};
_.d4=function(M){return _.o4(function(){S28()();return Brn(M)},{debugName:"d8B62c"},"wfRQAb")};
Kn=function(M,z){return _.Is(M.entities,"likeStatusEntity",z)};
B6n=function(M,z){return _.Is(M.entities,"likeCountEntity",z)};
_.$n=function(M,z){return _.Is(M.entities,"stringEntity",z)};
O1e=function(M,z){if(!M)return!1;var J,R=(J=_.G(M,_.on))==null?void 0:J.signal;if(R&&z.signalEndpointMap)return!!z.signalEndpointMap[R];var D;if((J=(D=_.G(M,_.uP))==null?void 0:D.request)&&z.continuationEndpointMap)return!!z.continuationEndpointMap[J];for(var N in M)if(z.commandEndpointMap[N])return!0;return!1};
T6c=function(M,z){if(z.streamingEndpointMap)for(var J in M)if(z.streamingEndpointMap[J]&&(M=z.streamingEndpointMap[J]))return M()};
ITp=function(M,z){var J,R=(J=_.G(M,_.on))==null?void 0:J.signal;if(R&&z.signalEndpointMap&&(J=z.signalEndpointMap[R]))return J();var D;if((J=(D=_.G(M,_.uP))==null?void 0:D.request)&&z.continuationEndpointMap&&(D=z.continuationEndpointMap[J]))return D();for(var N in M)if(z.commandEndpointMap[N]&&(M=z.commandEndpointMap[N]))return M()};
odY=function(M){var z={"Content-Type":"application/json"};_.HW("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=_.HW("EOM_VISITOR_DATA"):_.HW("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=_.HW("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=_.HW("LOGGED_IN",!1);_.HW("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=_.HW("DEBUG_SETTINGS_METADATA"));M!=="cors"&&((M=_.HW("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=M),(M=_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]=
M),(M=_.HW("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=M),(M=_.HW("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=M),_.cW("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(M=_.HW("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=M));return z};
Xk8=function(M,z){z.watchNextResponse||z.reelItemWatchResponse?z.watchNextResponse?M.content=z.watchNextResponse:M.content=z.reelItemWatchResponse:z.playerResponse?M.player=z.playerResponse:z.reelWatchSequenceResponse&&(M.reelSequence=z.reelWatchSequenceResponse)};
_.q7=function(M){if(!M)return null;for(var z=[],J=0;J<M.textSegments.length;J++){var R=M.textSegments[J];R.text?z.push(R):R.emojiId&&z.push({emoji_id:R.emojiId})}return{text_segments:z}};
vd8=function(M,z,J,R,D,N,Z){N=N===void 0?[]:N;var B=new _.WS;B.endpoint=J;if(!J)return _.hL(new _.xN("handle undefined endpoint",z.tagName)),B;var O=d6R(J);O.length&&(_.Bv(M,O,z,R),B.actions=O);J.loggingUrls&&J.loggingUrls.forEach(function(l){l.baseUrl&&aH(l.baseUrl,l.attributionSrcMode)});
O=!_.U("web_skip_impression_click_killswitch")&&R&&R.impression;if(J.clickTrackingParams&&!lTH(J)&&!eQH(z)&&!O&&(O=_.Gm(),!_.al(O,z))){var X=z.getScreenLayer&&z.getScreenLayer();X?O.clickCommand(J,null,X):O.clickCommand(J,null)}O=!1;for(X=0;X<N.length;X++)if((0,N[X])(z,J,R)){O=!0;break}!O&&QGY(J)&&(B.ajaxPromise=Uw8(M,z,J,R,D,Z));return B};
eQH=function(M){var z;return(M=(z=M.data)==null?void 0:z.navigationEndpoint)&&!!M.clickTrackingParams};
lTH=function(M){var z=_.G(M,_.on);if(z&&(z=z.signal)&&GI3.indexOf(z)>=0)return!0;for(var J in M)if(wkp.indexOf(J)>=0)return!0;return!1};
QGY=function(M){var z;if(((z=_.G(M,_.on))==null?void 0:z.signal)==="CLIENT_SIGNAL")return!1;for(var J in M)if(xwo.indexOf(J)>=0)return!1;M=Object.keys(M);return M.length===1&&M[0]==="loggingUrls"?!1:!0};
sGe=function(M,z,J,R,D,N,Z){var B=_.Ve.instance;if(B&&_.EN(B,R))var O=_.fn(B,R,D).then(function(l){return(l==null?0:l.data)?l:{data:l}});
else O=M.requestDataForServiceEndpoint(R,D),_.G(R,t$8)||_.G(R,jGY)||_.G(R,_.pkn)||_.G(R,FM8)||_.yA(new _.xN("No RequestBuilder for endpoint",R));var X=_.Ln();X.promise.thenCatch(function(){var l=_.nh(R,"action")||_.nh(R,"command")||_.nh(R,"endpoint");l&&(l=R[l],l.hasOwnProperty("onFailureAction")?_.Bv(z,[l.onFailureAction],J):l.hasOwnProperty("onFailureCommand")&&_.Bv(z,l.onFailureCommand,J));O.cancel("Resolver promise rejected")});
O.then(function(l){if(l){var e=l.error;if(e){if(N&&N.onServerError)N.onServerError(R,l);X.reject(new _.xN("Response error",R,e))}else if(l=l.data)if(e=l.error){if(N&&N.onServerError)N.onServerError(R,l);X.reject(new _.xN("Returned error",R,e))}else{Yun(z,J,l,R);mwR(l);if(e=c_Y(l))for(var Q=_.S(e),v=Q.next();!v.done;v=Q.next()){v=v.value;var x=_.JF().resolve(_.zw(gdp))||AM;if(!_.Ve.instance||!x.some(function(y){return!!_.G(R,y)})||_.U("kevlar_response_processor_allowlist_killswitch")){var m=x=void 0;
((m=_.G((x=v)==null?void 0:x.commandMetadata,_.X9))==null?0:m.sendPost)?_.kQ(z,[v]):_.Bv(z,[v],J)}}(Q=_.G(l==null?void 0:l.frameworkUpdates,iP))&&Z&&Z(Q);if(N&&N.onSuccess)N.onSuccess(R,l);X.resolve(new _.Cn(l,e))}}else X.reject(new _.xN("Invalid service endpoint provided",R))},function(l){X.reject(l)});
return X.promise};
mwR=function(M){var z;(M=(z=_.G(M==null?void 0:M.onResponseReceivedCommand,_.nd0))==null?void 0:z.continuationItems)&&(M==null?void 0:M.length)===1&&_.G(M[0],hQG)&&_.hd("so_r",void 0,"search_overview_answer")};
Uw8=function(M,z,J,R,D,N){var Z;return(Z=z.getNetworkManager&&z.getNetworkManager()?z.getNetworkManager():_.JF().resolve(_.zw(_.HP)))?sGe(Z,M,z,J,R,D,N):_.gv("No network manager.")};
Yun=function(M,z,J,R){if(J=J.trackingParams||J.loggingDirectives&&J.loggingDirectives.trackingParams){var D;(_.G(R,y0n)||_.G(R,H13)||_.G(R,c08))&&R.clickTrackingParams?D=_.pe(R.clickTrackingParams):_.U("web_graft_to_parent_command")&&R.clickTrackingParams&&(D=_.pe(R.clickTrackingParams));var N;R=(N=z.getScreenLayer)==null?void 0:N.call(z);z=_.Gm().graftServerVe(J,D,R);_.ZL(M,"yt-store-grafted-ve-action",[z])}};
_.dwp=function(M){var z=new Image;return new _.If(function(J,R){z.addEventListener("load",function(){J()});
z.addEventListener("error",function(){R()});
z.src=M})};
KM8=function(M){return!!M};
$wH=function(M){return!!M};
uiH=function(M,z,J){var R=M.rowIndex;R!==void 0&&_.ZL(M.hostElement,"yt-section-reactive-dismissal",[R,z,J])};
_.bP=function(M,z,J){M=_.S(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===z)break;for(var D=_.S(J),N=D.next();!N.done;N=D.next())if(N=N.value,R.tagName===N||!_.U("web_event_button_role_check_killswitch")&&R.role==="button"&&N==="BUTTON")return!0}return!1};
_.r4=function(M,z,J){M=_.S(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===z)break;for(var D=_.S(J),N=D.next();!N.done;N=D.next())if(R.id===N.value)return!0}return!1};
quH=function(M){switch(M){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
WMY=function(M,z){if(!M&&!z)return"medium";M=Math.max(M||0,z||0);return M>=256?"large":M>=96?"medium":"small"};
aTo=function(M){switch(M){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.J_=function(){var M=_.JF().resolve(_.zw(_.M6));return M?(M=M.getCurrentPage())?_.z_(M):null:null};
_.R9=function(){var M=_.J_();if(!M){var z=_.JF().resolve(_.zw(_.M6)),J=z?typeof z:"no page manager";z=z?z.getCurrentPage():null;J=new _.xN("Player is missing when requested.",J,z?z.tagName:"no page");_.nc(J)}return M};
_.z_=function(M){return M&&M.getPlayer?M.getPlayer():null};
V$H=function(M,z){M={args:{raw_player_response:M}};z&&(M.args=Object.assign({},M.args,z));return M};
Ede=function(M){if(M.args){if(M.args.raw_player_response)return M.args.raw_player_response;if(M.args.player_response)return JSON.parse(M.args.player_response)}};
_.fTp=function(M,z){var J={url:"/watch?v="+M.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};M.playlistId&&(J.url+="&list="+M.playlistId);M.playerParams&&(J.url+="&pp="+M.playerParams);M={watchEndpoint:M,commandMetadata:{webCommandMetadata:J}};z&&(M.clickTrackingParams=z);return M};
A0H=function(){return LM8||!!_.qH("yt.player.Application")};
CRe=function(){return i1e||!!document.querySelector("link#player-css")};
r0o=function(){function M(){LM8=!0;b18.resolve()}
var z,J;return _.k(function(R){b18||(b18=new _.Iz,A0H()?M():(z=document.createElement("script"),z.addEventListener("load",M),J=_.jJ(_.HW("PLAYER_JS_URL")),_.is(z,J),document.head.appendChild(z)));return R.return(b18.promise)})};
zop=function(){function M(){i1e=!0;Mk0.resolve()}
if(!Mk0)if(Mk0=new _.Iz,CRe())M();else{var z=document.createElement("link");z.id="player-css";z.addEventListener("load",M);var J=_.jJ(_.HW("PLAYER_CSS_URL"));_.ri(z,J,"stylesheet");document.head.appendChild(z)}return Mk0.promise};
J7b=function(){return A0H()&&CRe()?Promise.resolve([]):Promise.all([r0o(),zop()])};
Row=function(M,z,J){var R={args:{}};M&&(R.args.raw_player_response=M);z&&(R.args.raw_watch_next_response=z);J&&(R.args=Object.assign({},R.args,J));return R};
S98=function(M,z,J){var R=!1;R=R===void 0?!0:R;M=typeof M==="string"?_.DU(document,M):M;var D=Ddw+"_"+_.fp(M),N=N18[D];if(N&&R)return PgG(z,J)?N.api.loadVideoByPlayerVars(z.args||null):N.loadNewVideoConfig(z),N.api;N=new N6(M,D,z,J,void 0);N18[D]=N;N.addOnDisposeCallback(function(){delete N18[N.getId()]});
return N.api};
PgG=function(M,z){return z&&z.serializedExperimentFlags?z.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):M&&M.args&&M.args.fflags?M.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Z8c=function(){var M=new _.Iz;M.resolved=!1;var z=M.resolve;M.resolve=function(J){M.resolved=!0;z(J)};
return M};
B1o=function(M){var z={};kJb().install((z.document_disposed={callback:M},z))};
Pn=function(M,z){if(!M&&Math.random()<=_.NC("kevlar_unified_player_logging_threshold")){M=Error("th`"+(z?z:"Unspecified error"));if(_.U("kevlar_unified_player_throw_errors"))throw M;_.yA(M)}};
_.O80=function(){var M=_.qH("ytDebugData.callbacks");M||(M={},_.b9("ytDebugData.callbacks",M));return M};
I4w=function(M,z){var J=_.O80();if(_.U("web_dd_iu")||T1Y.includes(M))J[M]=z};
oMn=function(){return _.k(function(M){return M.return({isLeader:_.JE8(_.rA().getState()),c:_.HW("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
X$o=function(){var M;_.k(function(z){if(z.nextAddress==1)return I4w("APP_STATE",oMn),z.yield(_.JF().resolve(_.SF),2);M=z.yieldResult;I4w("PI",function(){return _.k(function(J){return J.return(M.getVideoStats())})});
_.UI(z)})};
l4H=function(M){var z=_.bS(_.aT(_.R3.location.href));M=_.bS(_.aT(M));return _.U("kevlar_clear_non_displayable_url_params")?z==ZU(M):ZU(z)==ZU(M)};
ZU=function(M){var z=_.eoc(M);M=M.slice(0);var J=["frags"];_.U("kevlar_hide_pp_url_param")&&J.push("pp");_.U("kevlar_hide_time_continue_url_param")&&J.push("time_continue");J=_.S(J);for(var R=J.next();!R.done;R=J.next())R=R.value,M=_.Ms(_.bS(M),R);return _.bS(M)+(z?"#"+z:"")};
kC=function(M,z){z=Number(z)*1E3;var J=Math.round((0,_.zU)()),R=J.toString();M={innertubeResponse:M,serverDateTimestampMs:R,lastModifiedTimestampMs:R,expireTimestampMs:(J+z).toString()};if(z=_.HW("INNERTUBE_CONTEXT_CLIENT_NAME"))M.clientName=z;return M};
Ud3=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Qt8};
_.vMw=function(){var M=_.hu(),z=_.y5();z&&M&&_.Ef(z,[M],!0)};
w$8=function(M){return M&&GJb.some(function(z){return M.includes(z)})};
Y9w=function(M){var z=_.G(M,_.af);if(!z)return!1;var J=z.url,R=z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!J)return _.nc(Error("yh")),!1;if(z.target==="TARGET_NEW_WINDOW"){var D={};_.U("resolve_url_parent_tracking_params")&&(!_.Ch(J)||bi(window.location.href,J))&&(D={endpoint:M,itct:M.clickTrackingParams});lnp(D);M=null;try{if(R)return M=_.tbY(J,"_blank",D,void 0,R),xdn(_.JF().resolve(tkc),M,J),!0}catch(Q){_.nc(Q)}_.rM(J,D);z={target:"_blank",noopener:_.U("set_window_noopener_ks")&&
!z.allowOpener};M=window;R=Fq(J)?J:_.hr(typeof J.href!="undefined"?J.href:String(J));D=self.crossOriginIsolated!==void 0;var N="strict-origin-when-cross-origin";window.Request&&(N=(new Request("/")).referrerPolicy);var Z=z.noreferrer;if(D&&Z&&N==="unsafe-url")throw Error("oe");N=Z&&!D;Z=z.target||J.target;var B=[],O=[],X=!1;for(e in z){var l=z[e];switch(e){case "width":case "height":case "top":case "left":B.push(e+"="+l);break;case "target":break;case "noopener":case "noreferrer":l?O.push(e):(X=!0,
O.push(e+"=false"));break;case "attributionsrc":B.push(e+(l?"="+l:""));break;default:B.push(e+"="+(l?1:0))}}var e=Z!==void 0&&!["_blank","_self","_top","_parent",""].includes(Z);e=pp()&&e;jtb&&D&&B.length===0&&O.length>0&&!e&&!X?(O.length===2&&(O=["noreferrer"]),_.VZ(M,R,Z,O[0]),M=p$p()):(e=B.join(","),_.gR()&&M.navigator&&M.navigator.standalone&&Z&&Z!="_self"?(e=_.lm("A"),_.K3(e,R),e.target=Z,N&&(e.rel="noreferrer"),((z=z.attributionsrc)||z==="")&&e.setAttribute("attributionsrc",z),z=document.createEvent("MouseEvent"),
z.initMouseEvent("click",!0,!0,M,1),e.dispatchEvent(z),M=p$p()):N?(M=_.VZ(M,"",Z,e),z=_.Yq(R),M&&(M.opener=null,z===""&&(z="javascript:''"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Bn(z)+'">',z=us(z),(R=M.document)&&R.write&&(R.write(qE(z)),R.close()))):((M=_.VZ(M,R,Z,e))&&z.noopener&&(M.opener=null),M&&z.noreferrer&&(M.opener=null)));xdn(_.JF().resolve(tkc),M,J);return!0}z=_.Ib(J);z=w$8(z)||J==="https://studio.youtube.com/";R=!(!_.Ch(J)||bi(window.location.href,
J));e=J.indexOf("disable_polymer=1")>=0;if(R||e||z)VO(J),gE(),_.EA(J,void 0,void 0,window.top,Fsn);else return _.yA(new _.xN("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",M)),!1;return!0};
_.stG=function(M,z){z=z===void 0?0:z;if(!(_.G(M,md8)||_.G(M,gMG)||_.G(M,_.af)&&_.G(M,_.af).url))return!1;var J,R=(J=_.G(M,_.af))==null?void 0:J.url;J=R?{externalLinkData:{url:R}}:null;return _.Gm().clickCommand(M,J,z)};
nM8=function(M,z){return _.Is(M.entities,"subscriptionStateEntity",z)};
ho8=function(M,z){return _.Is(M.entities,"subscriptionNotificationStateEntity",z)};
y7e=function(M,z){return _.Is(M.entities,"upcomingEventReminderStateEntity",z)};
H8R=function(M,z){return _.Is(M.entities,"engagementToolbarSurfaceEntityPayload",z)};
c7R=function(M,z){return _.Is(M.entities,"triStateButtonStateEntityPayload",z)};
ddw=function(M,z){return _.Is(M.entities,"commerceCartCheckoutButtonEntity",z)};
_.Ks8=function(M,z){return _.Is(M.entities,"playlistLoopStateEntity",z)};
$do=function(M,z){return _.Is(M.entities,"commandEntity",z)};
q9c=function(M,z,J,R,D){D=D===void 0?{}:D;return function(N){var Z,B;var O=((Z=M.loggingDirectives)==null?0:(B=Z.clientVeSpec)==null?0:B.uiType)?_.O3(M.loggingDirectives.clientVeSpec.uiType):void 0;D.clickedVisualElement||(D.clickedVisualElement=O);O=usw(M,z);J(O,N);O=_.S(O);for(Z=O.next();!Z.done;Z=O.next()){Z=Z.value;B=R;var X=N,l=D;l.form?l.form.event=X:l.form={element:B,event:X};tM(Z,l)}}};
usw=function(M,z){var J=[];z?(M.toggledCommand&&J.push(M.toggledCommand),M.toggledServiceEndpoint&&J.push(M.toggledServiceEndpoint)):(M.defaultCommand&&J.push(M.defaultCommand),M.defaultServiceEndpoint&&J.push(M.defaultServiceEndpoint),M.defaultNavigationEndpoint&&J.push(M.defaultNavigationEndpoint));return J};
Wsw=function(M,z){var J=M.toggledStyle||M.style,R;switch((R=z?J:M.style)==null?void 0:R.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"}}};
_.T_=function(){return _.k(function(M){return M.nextAddress==1?M.yield(_.JF().resolve(_.SF),2):M.return(_.JF().resolve(a4H)())})};
_.I9=function(){return _.JF().resolve(a4H)()};
_.o9=function(){return g3(function(){return{lottieEl:void 0}})};
Vk8=function(M,z){return M.startsWith(z.uniqueId)};
EM0=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(_.T_(),2);z=R.yieldResult;if((J=z)==null||!J.addEventListener)return Xa(),R.return();z.addEventListener("onCueRangeEnter",M);_.UI(R)})};
f4o=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(_.T_(),2);z=R.yieldResult;if((J=z)==null||!J.removeEventListener)return Xa(),R.return();z.removeEventListener("onCueRangeEnter",M);_.UI(R)})};
Lsn=function(M){var z,J,R,D,N;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.T_(),2);z=Z.yieldResult;if((J=z)==null||!J.addCueRange)return Xa(),Z.return();R=_.S(M.timings);for(D=R.next();!D.done;D=R.next())N=D.value,z.addCueRange(M.uniqueId+"-"+N,N/1E3,(N+100)/1E3);_.UI(Z)})};
A7G=function(M){var z,J,R,D,N;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.T_(),2);z=Z.yieldResult;if((J=z)==null||!J.removeCueRange)return Xa(),Z.return();R=_.S(M.timings);for(D=R.next();!D.done;D=R.next())N=D.value,z.removeCueRange(M.uniqueId+"-"+N);_.UI(Z)})};
i8p=function(){var M,z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.T_(),2);M=R.yieldResult;if((z=M)==null||!z.getPlayerState)return Xa(),R.return();J=M.getPlayerState();return R.return(J===2)})};
Xa=function(){_.yA(new _.xN("Smartimation player does not exist or is corrupted"))};
Cgp=function(){try{var M;return(M=window.CSS)!=null&&M.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(z){return _.yA(new _.xN("Smartimation CSS.supports threw an error")),!1}};
D2Y=function(M,z,J,R,D){var N=M.playlistId?b88:r7n;z=z();J=J();D=!!M.videoId&&D()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.xf(z))return MdH({data:M,actionType:N,disabled:D},J);if(M.videoId&&R())return zK8({data:M,actionType:N,disabled:D});switch(z){case "TRANSFER_STATE_UNKNOWN":return zK8({data:M,actionType:N,disabled:D});case "TRANSFER_STATE_FAILED":return M.videoId?Jae({data:M,actionType:N,disabled:D}):RK8({data:M,actionType:N,disabled:D});case "TRANSFER_STATE_COMPLETE":return RK8({data:M,
actionType:N,disabled:D});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return MdH({data:M,actionType:N,disabled:D},J);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return M.videoId?Jae({data:M,actionType:N,disabled:D}):zK8({data:M,actionType:N,disabled:D});default:return zK8({data:M,actionType:N,disabled:D})}};
Nkw=function(M,z){var J=M.onTapCommand,R=_.$S(J);if(M.videoId&&_.G(R,_.lE))return _.G(R,_.lE).action=z,J;M.playlistId&&_.G(R,_.Q9)&&(_.G(R,_.Q9).action=z);return J};
zK8=function(M){var z=M.data;var J=M.actionType;M=M.disabled;return{text:PKo,iconType:"OFFLINE_DOWNLOAD",onTap:Nkw(z,J.ACTION_ADD),disabled:M}};
MdH=function(M,z){var J=M.data;var R=M.actionType;M=M.disabled;var D="OFFLINE_DOWNLOAD";z>=0&&z<=.1?D="OFFLINE_DOWNLOADING_ZERO":z>.1&&z<=.3?D="OFFLINE_DOWNLOADING_TWENTY":z>.3&&z<=.5?D="OFFLINE_DOWNLOADING_FORTY":z>.5&&z<=.7?D="OFFLINE_DOWNLOADING_SIXTY":z>.7&&z<1?D="OFFLINE_DOWNLOADING_EIGHTY":z===1&&(D="OFFLINE_PIN");return{text:SJY,iconType:D,onTap:Nkw(J,R.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
RK8=function(M){var z=M.data;var J=M.actionType;M=M.disabled;return{text:ZJb,iconType:"OFFLINE_PIN",onTap:Nkw(z,J.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
Jae=function(M){var z=M.data;var J=M.actionType;M=M.disabled;return{text:kbp,iconType:"OFFLINE_DOWNLOAD",onTap:Nkw(z,J.ACTION_RETRY),disabled:M}};
Ir8=function(M){var z=Bk8;OJo.push(M);Tk8||(z(function(){for(var J=_.S(OJo),R=J.next();!R.done;R=J.next())R=R.value,R();OJo.length=0;Tk8=!1}),Tk8=!0)};
Bk8=function(M){Promise.resolve().then(M)};
oWo=function(M){M=_.S(Zrw(M));var z=M.next().value,J=M.next().value,R=!1;_.mF(function(){return function(){R=!0}});
return[z,function(D){Ir8(function(){R&&!_.U("cow_prevent_state_setter_after_cleanup_killswitch")||J(D)})}]};
_.U3=function(M,z){var J=S28();return _.o4(function(){J();return Brn(M,[_.YE(z)||""])},{debugName:"LUZslf"},"qYSKAc")};
XE8=function(M){var z=_.U3(_.KD,function(){return M().videoId}),J=_.U3(_.$f,function(){return M().playlistId});
return function(){return M().videoId?z:M().playlistId?J:_.S(_.kE("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
lro=function(M){var z=_.U3(ud,function(){return M().videoId}),J=_.U3(_.zyc,function(){return M().playlistId});
return function(){return M().videoId?z:M().playlistId?J:_.S(_.kE(0,void 0,"K4tgOc")).next().value}};
eK0=function(M){var z=_.U3(_.B_3,function(){return M().videoId});
return function(){return M().videoId?z:_.S(_.kE(!1,void 0,"Oaxwcf")).next().value}};
Qdw=function(M){var z=_.U3(Dn0,function(){return M().videoId});
return function(){return M().videoId?z:_.S(_.kE("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
U2b=function(){return{}};
vn=function(){return _.JF().resolve(_.zw(vWc))||{}};
Gbe=function(M,z){z=z===void 0?{shouldPersist:!0}:z;return{useUpdatableData:function(J,R){var D=[],N=_.S(_.eh(function(){var X=J();if(R!=null&&R.length&&D){var l=D.length>0;for(var e=!1,Q=0;Q<R.length;Q++){var v=R[Q]();l&&v!==D[Q]&&(e=!0);D[Q]=v}l=e}else l=!1;if(l)_.G_.remove(O());else if(l=_.G_.get(O()))return l;return X})),Z=N.next().value,B=N.next().value,O=_.o4(function(){return M(J())},void 0,"VFraLb");
_.jP(function(){if(O()!=null){wZ.set(O(),[Z,B,!1]);var X=O();_.pq(function(){wZ.delete(X)})}},"Fdafud");
return[Z,function(X){B(X);z.shouldPersist&&_.G_.set(O(),X)}]},
getData:function(J){var R;return(R=wZ.get(M(J)))==null?void 0:R[0]()},
updateData:function(J,R){J=M(J);var D=wZ.get(J);if(!D)return!1;var N=_.S(D);D=N.next().value;N=N.next().value;R=R(D());N(R);z.shouldPersist&&_.G_.set(J,R);return!0},
useUpdatableDataIdom:function(J,R){var D=M(J),N=_.G_.get(D),Z=_.S(oWo(N!=null?N:J)),B=Z.next().value,O=Z.next().value,X=sR(N!=null?N:J);_.Yy(function(){if(D!=null)return wZ.set(D,[function(){return X.value},
function(l){O(l);X.value=l},
wZ.has(D)]),_.no.addJob(function(){_.xC(_.no,function(){var l=wZ.get(D);l&&(l[2]=!1)},0)},8),function(){var l;
((l=wZ.get(D))==null?0:l[2])||wZ.delete(D)}},[D]);
_.Yy(function(){B!==J&&(O(J),X.value=J)},R?[].concat(_.Yj(R),[D]):[D]);
return[B,O]}}};
wE0=function(M){return typeof M==="function"};
x28=function(M){var z=_.S(_.kE(!0,void 0,"bKtO6d")),J=z.next().value;z.next();return function(){var R=XT(M.children());return _.T(_.I,{cond:J,then:function(){return R},
else:M.fallback})}()};
_.t_=function(M){var z=tdH(M),J=z.data,R=z.mapping,D=z.wrapper;z=z.pendingFallback;var N=function(){return jdG(_.YE(J))},Z=function(){var B=N(),O=[];
B=_.S(B);for(var X=B.next();!X.done;X=B.next()){var l=void 0;X=X.value;var e=void 0;for(l in X)if(!(!X).hasOwnProperty(l)){e=l;break}(l=e)&&O.push(l)}return O};
return M.data?_.T(x28,{fallback:z},function(){return _.T(_.G4,{each:Z},function(B,O){var X=D?function(e){return D(function(){return R[B](e,O)},l,O)}:function(e){return R[B](e,O)};
X.debugName||(X.debugName=String(B));if(!R[String(B)])return document.createComment("");X.componentType!==Gk&&pE3(String(B));var l=FUH(N,B,O);return _.T(X,{data:l})})}):_.T(_.MH,null)};
tdH=function(M){var z=M.targetId||YJ8(M.children);if(!M.data||!z||_.U("mweb_new_replaceables_killswitch"))return Object.assign({},M,{mapping:M.children,wrapper:void 0});var J="stamper-"+m2b++,R=function(){var B;return(B=typeof M.targetId==="function"?M.targetId(J):M.targetId)!=null?B:J};
z=_.S(gWp(function(){var B=jdG(M.data());B.targetId=R;return B})).next().value;
var D=Object.assign({},vn().replaceableMapping,M.children);if(M.replacementWrapper){var N=D.notificationTextRenderer,Z=D.notificationMultiActionRenderer;N&&(D.notificationTextRenderer=function(B,O){return M.replacementWrapper(N({data:B.data},O))});
Z&&(D.notificationMultiActionRenderer=function(B,O){return M.replacementWrapper(Z({data:B.data},O))})}return Object.assign({},M,{data:z,
mapping:D,wrapper:function(B,O,X){return NCp({targetId:R,stamperIndex:X},B)}})};
FUH=function(M,z,J){var R;return _.o4(function(){var D=M()[J()];if(D)R=D[z];else return _.yA(new _.xN("Stamper failed to find "+String(z)+" at index "+J()+" of data array of length "+(M().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),R;return D[z]},void 0,"wgRPHd")};
YJ8=function(M){M=_.S(Object.keys(M));for(var z=M.next();!z.done;z=M.next())if(z=z.value,sde.includes(z)||nWo.includes(z)||hKR.includes(z))return!0;return!1};
jdG=function(M){return M?Array.isArray(M)?M:[M]:[]};
pE3=function(M){if(_.U("web_enable_renderer_logger")){var z;(z=_.JF().resolve(_.zw(yaH)))!=null&&z.loggingEnabled&&!z.ids.has(M)&&z.ids.add(M)}};
_.jF=function(){for(var M=[],z=_.S(_.H4.apply(0,arguments)),J=z.next();!J.done;J=z.next())if(J=J.value)if(typeof J==="string")M.push(J);else{J=_.S(Object.entries(J));for(var R=J.next();!R.done;R=J.next()){var D=_.S(R.value);R=D.next().value;(D=D.next().value)&&M.push(R)}}return M.join(" ")};
HJY=function(){var M,z;return(z=(M=_.JF().resolve(_.zw(_.Ah)))==null?void 0:M())!=null?z:!1};
d2n=function(M,z){M=M===void 0?cap:M;switch(z.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},M,{isOpen:z.payload});default:return M}};
$2e=function(M,z){M=M===void 0?KU3:M;switch(z.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},M,{isAllowed:z.payload});default:return M}};
qJo=function(M,z){M=M===void 0?u6w:M;switch(z.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{errorMessage:z.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{title:z.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},M,{privacy:z.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},M,{isDisabled:z.payload});default:return M}};
arG=function(M,z){M=M===void 0?WUY:M;switch(z.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},M,{isOpen:z.payload});default:return M}};
EWY=function(M,z){M=M===void 0?Vdp:M;switch(z.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},M,{isFullscreen:z.payload});case "SET_NAVIGATION_BUTTON":var J=z.payload.targetId,R=Object.assign({},M.navigationButtons);R[J]=z.payload.button;return Object.assign({},M,{navigationButtons:R});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},M,{topPanelId:z.payload});case "SET_SECONDARY_HEADER":return J=z.payload.panelId,R=Object.assign({},M.secondaryHeader),R[J]=z.payload.secondaryHeader,
Object.assign({},M,{secondaryHeader:R});default:return M}};
iJ3=function(){return lS(Object.assign({},{voiceSearch:iZG,engagementPanel:EWY,bottomSheet:d2n,cinematicSetting:$2e,shorts:ysG,drawerLayout:arG,createPlaylist:qJo,locationCollection:fr3,reportChannel:LUR,reportForm:Aao},HEH))};
CKp=function(M,z){_.no.addLowPriorityJob(function(){var J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return _.Io(N,2),N.yield(dUR(),4);case 4:return N.yield(fetch(M),5);case 5:return J=N.yieldResult,N.yield(J.json(),6);case 6:R=N.yieldResult;mN.set(M,R);requestAnimationFrame(function(){z(R)});
_.ab(N,0);break;case 2:D=_.Qa(N),_.yA(D),_.UI(N)}})})};
bJH=function(M){var z={animationConfig:{},listeners:{}},J=function(){M(!0)};
z.listeners.data_failed=J;z.listeners.error=J;z.listeners.data_ready=function(){M(!1)};
return z};
zze=function(M){var z=M.model;var J=M.subscribed;var R=M.isOverlay;var D=M.element;var N=M.commandController;var Z=M.notificationState;if(J){var B,O;var X=(z==null?void 0:(B=z.buttonStyle)==null?void 0:B.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:z==null?void 0:(O=z.unsubscribeButtonContent)==null?void 0:O.buttonText}else{var l;X=z==null?void 0:(l=z.subscribeButtonContent)==null?void 0:l.buttonText}a:{var e;switch(z==null?void 0:(e=z.buttonStyle)==
null?void 0:e.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":B="S";break a;default:B="M"}}a:if(R)R="overlay";else switch(z.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":R="overlay";break a;default:R="mono"}a:if(J)var Q="tonal";else switch((Q=z.buttonStyle)==
null?void 0:Q.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Q="tonal";break a;default:Q="filled"}return{style:R,type:Q,state:z.disableSubscribeButton?"disabled":"active",size:B,focused:M.focused,toggled:J,accessibilityLabel:rap(z,J,Z),buttonText:X,iconPosition:z.disableNotificationBell?"none":"leading-trailing",onTap:MyG(z,J,D,N),disableTextEllipsis:!!M.disableTextEllipsis}};
MyG=function(M,z,J,R){return function(D){if(z){var N;var Z=M.disableNotificationBell?_.$S(M==null?void 0:(N=M.unsubscribeButtonContent)==null?void 0:N.onTapCommand):_.$S(M==null?void 0:M.onShowSubscriptionOptions)}else{var B;Z=_.$S(M==null?void 0:(B=M.subscribeButtonContent)==null?void 0:B.onTapCommand)}Z&&tM(Z,{form:{element:J==null?void 0:J.value},commandController:R});D.stopPropagation()}};
rap=function(M,z,J){if(z){if(M==null?0:M.disableNotificationBell){var R;return M==null?void 0:(R=M.unsubscribeButtonContent)==null?void 0:R.accessibilityText}switch(J){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var D;return M==null?void 0:(D=M.bellAccessibilityData)==null?void 0:D.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var N;return M==null?void 0:(N=M.bellAccessibilityData)==null?void 0:N.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Z;return M==null?void 0:(Z=
M.bellAccessibilityData)==null?void 0:Z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var B;return M==null?void 0:(B=M.bellAccessibilityData)==null?void 0:B.disabledLabel;default:var O;return M==null?void 0:(O=M.unsubscribeButtonContent)==null?void 0:O.accessibilityText}}else{var X;return M==null?void 0:(X=M.subscribeButtonContent)==null?void 0:X.accessibilityText}};
J8H=function(M){if(M){switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M}};
Rz8=function(M,z,J){J.subscribed!==z&&((J=J.key)&&_.Cd(_.pf("subscriptionStateEntity",J,{key:J,subscribed:z})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:z})),z||_.S9(M,"yt-unsubscribe-action"))};
NwH=function(M){M=_.G(_.$S(M),_.Fa);var z,J,R,D;return(D=_.G(M==null?void 0:(z=M.panelLoadingStrategy)==null?void 0:(J=z.inlineContent)==null?void 0:(R=J.sheetViewModel)==null?void 0:R.content,DZ3))==null?void 0:D.listItems};
Pk3=function(M,z){if(M.onShowSubscriptionOptions&&z&&(M=NwH(M.onShowSubscriptionOptions),M!=null&&M.length)){var J=J8H(z);M.forEach(function(R){R=_.G(R,_.YC);var D,N,Z,B,O=R==null?void 0:(D=R.leadingImage)==null?void 0:(N=D.sources)==null?void 0:(Z=N[0])==null?void 0:(B=Z.clientResource)==null?void 0:B.imageName;R&&O&&(R.isSelected=O===J)})}};
S08=function(M,z,J,R){z&&J?M.style.width=J+"px":!z&&R&&(M.style.width=R+"px")};
Zg0=function(M,z,J){var R;(R=M.lottieEl)==null||R.goToAndPlay(0);var D;(D=z.lottieEl)==null||D.goToAndPlay(0);_.mn(_.no,function(){var N;(N=J.lottieEl)==null||N.goToAndPlay(0)},300)};
_.gZ=function(M){Object.keys(M);var z=function(J,R){var D=z.mapping||M;if(!J)return _.T(_.MH,null);if(Array.isArray(J)&&(J=kDb(D,z,J),Array.isArray(J))){if(!J.length)return _.T(_.MH,null);if(J.length>1){for(var N=!1,Z=!1,B=[],O={},X=0;X<J.length;O={data$jscomp$1936:void 0},X++)if(O.data$jscomp$1936=J[X],O.data$jscomp$1936){var l=Bw3(O.data$jscomp$1936,D),e=l.mappingEntry;l=l.rendererName;e&&l&&(e&&(!wE0(e)&&Ogo(e)&&(Z=!0),!wE0(e)&&e.asyncId||(N=!0)),B.push(Twb(O.data$jscomp$1936,e,l,z,R)))}return Z&&
!N?_.T(_.MH,null,Ibp()):_.T(_.MH,null,B)}J=J[0]}if(!J)return _.T(_.MH,null);J=kDb(D,z,[J])[0];if(!J)return _.T(_.MH,null);N=Bw3(J,D);D=N.mappingEntry;N=N.rendererName;return D&&N?_.T(_.MH,null,Twb(J,D,N,z,R)):_.T(_.MH,null)};
z.mapping=M;return z};
_.oJp=function(M){var z=void 0,J;for(J in M)if(M.hasOwnProperty(J)){z=J;break}return z};
kDb=function(M,z,J){var R,D=(R=vn().preProcessOptions)==null?void 0:R.idomOptions;if(!D)return J;vn();return D.preProcessPropsIdom(M,J,z.triggerRerender)};
Bw3=function(M,z){return(M=_.oJp(M))?{mappingEntry:z[M],rendererName:M}:{mappingEntry:void 0,rendererName:void 0}};
Twb=function(M,z,J,R,D){if(!z)return _.T(_.MH,null);var N={};D&&D[J]&&(N=Object.assign({},D[J]));M[J]!==void 0&&(N.data=M[J]);if(wE0(z))return z.debugName||(z.debugName=J),_.T(z,N);z.asyncId&&(R.pendingIdsMap=R.pendingIdsMap||{},R.pendingIdsMap[J]=z.asyncId);return z.templateFn?z.templateFn(N):Ogo(z)?Ibp():_.T(_.MH,null)};
Ogo=function(M){var z;return(z=M.showPlaceholder)!=null?z:vn().defaultShowPlaceholder};
Ibp=function(){var M=vn().placeholder;return M()};
XDb=function(M){M=_.G(M,_.s3);return(M==null?void 0:M.iconName)&&!(M==null?0:M.title)};
UZ3=function(M,z,J){var R;return _.T(_.MH,null,M==null?void 0:(R=M.actions)==null?void 0:R.map(function(D){return _.T("div",{class:function(){var N={"yt-flexible-actions-view-model-wiz__action":!0};N["yt-flexible-actions-view-model-wiz__action--row-action"]=z;N["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;var Z;(Z=XDb(D))||(Z=_.G(D,lbw),Z=!!Z&&XDb(Z.button));if(Z)Z=!0;else if(Z=_.G(D,_.nf),(Z==null?0:Z.isToggled)&&XDb(Z==null?void 0:Z.toggledButtonViewModel)||(Z==null||
!Z.isToggled)&&XDb(Z==null?void 0:Z.defaultButtonViewModel))Z=!0;else{var B;Z=((B=_.G(D,ez8))==null?0:B.playlistId)?!0:!1}N=(N["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Z,N["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=J,N);return _.jF(N)}},Q7o([D],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!z}}))}))};
vJ3=function(M){var z=M.layout===1,J,R=((J=M.data)==null?void 0:J.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";J={};R=(J["yt-flexible-actions-view-model-wiz"]=!0,J["yt-flexible-actions-view-model-wiz--inline"]=!z,J["yt-flexible-actions-view-model-wiz--scrollable"]=R,J);var D,N;return _.T("yt-flexible-actions-view-model",{class:_.jF(M.className,R)},(D=M.data)==null?void 0:(N=D.actionsRows)==null?void 0:N.map(function(Z){if(z){var B;return _.T("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
UZ3(Z,z,!((B=M.data)==null||!B.respectActionIntrinsicWidth)))}return UZ3(Z,z,!1)}))};
GD8=function(M){return!(M==null||!M.iconName||(M==null?0:M.title))};
wDb=function(M,z,J,R){J&&_.no.cancelJob(J);J=_.no.addLowPriorityJob(function(){R(void 0)},5E3);
R(J);z&&M!==(z.likeStatus==="LIKE")&&z.key&&_.Cd(_.pf("likeStatusEntity",z.key,{key:z.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
_.xZH=function(M,z){return _.Is(M.entities,"accountLinkStatusEntity",z)};
tyo=function(M,z){return _.Is(M.entities,"hatsSurveyEntity",z)};
j7H=function(M,z){return _.Is(M.entities,"hatsSurveyStateEntity",z)};
pDH=function(M,z){return _.Is(M.entities,"quantityIncrementerEntity",z)};
Fr0=function(M){switch(M){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":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;default:return 0}};
Y0p=function(M){switch(M){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
mZ8=function(M){switch(M){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.s7R=function(M){var z=_.NC("web_generic_client_event_wait_period ",0);z||(z=3E5);var J=gJc.get(M);!_.U("enable_web_client_experiment_event_timeout_killswitch")&&J&&(0,_.zU)()-J<z||(gJc.set(M,(0,_.zU)()),_.gP("genericClientExperimentEvent",{eventType:M}))};
nJe=function(M){switch(M){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
hzH=function(M){if(!M)return"";var z,J=(z=_.JF().resolve(_.zw(_.Ah)))==null?void 0:z(),R;if(!J&&((R=M.vibrantColorPalette)==null?0:R.iconInactiveColor))return WP(M.vibrantColorPalette.iconInactiveColor,"1");var D;return J&&((D=M.darkColorPalette)==null?0:D.iconInactiveColor)?WP(M.darkColorPalette.iconInactiveColor,"1"):M.color?WP(M.color,"1"):M.sampledThumbnailColor?(M=M.sampledThumbnailColor,"rgba("+M.red+","+M.green+","+M.blue+");"):""};
_.h_=function(M,z){if(!M.includes("DATE_PLACEHOLDER"))return M;var J=new Date(0);J.setUTCSeconds(z);return M.replace("DATE_PLACEHOLDER",y88(J))};
HgY=function(M,z,J){return function(R){var D=M.command;D&&(tM(D,{form:{element:J}}),z([D],R))}};
dZc=function(M,z,J,R,D){return function(N){var Z=c8w(M,z);Z&&tM(Z,{form:{element:J},commandController:R});D&&N.stopPropagation()}};
c8w=function(M,z){if(M.signInEndpoint&&!_.U("web_subscribe_sign_in_endpoint_killswitch"))return M.signInEndpoint;if(z){if(M.serviceEndpoints)return M.serviceEndpoints[1];if(M.onUnsubscribeEndpoints)return M.onUnsubscribeEndpoints[0]}else{if(M.serviceEndpoints)return M.serviceEndpoints[0];if(M.onSubscribeEndpoints)return M.onSubscribeEndpoints[0]}};
Kr8=function(M,z){var J,R,D,N;z=z&&((J=M.unsubscribeAccessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)||((D=M.subscribeAccessibility)==null?void 0:(N=D.accessibilityData)==null?void 0:N.label);return M.longSubscriberCountText?[z,_.CD(M.longSubscriberCountText)].filter(function(Z){return Z}).join(" "):z};
y9=function(M,z){return z||(M==null?0:M.isChannelDelegate)?"disabled":"active"};
$Z0=function(M,z){var J;switch((J=M.style)==null?void 0:J.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:y9(M)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:y9(M)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:y9(M,!0)};case "OVERLAY":return z?{style:"overlay",type:"tonal",state:y9(M)}:{style:"overlay",type:"filled",state:y9(M)};default:return z?{style:"mono",type:"tonal",state:y9(M)}:{style:"mono",type:"filled",state:y9(M)}}};
uDG=function(M){switch(M){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
q08=function(M){switch(M){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Wrn=function(M,z){var J=M.map(function(R){return R.toString()});
return _.ol(function(R){if(J.includes(R.key)){z&&R.preventDefault();var D;(D=R.currentTarget)==null||D.click()}})};
_.abw=function(){return Wrn(["Enter"])};
_.Vyp=function(){return Wrn(["Enter"," "],!0)};
_.Hn=function(M){if(M.composedPath)return M.composedPath();if(!M.__composedPath){for(var z=[],J=M.target;J;)z.push(J),J=J.parentNode;z.push(window);M.__composedPath=z}return M.__composedPath};
_.cn=function(M,z,J){M=_.S(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===z)break;for(var D=_.S(J),N=D.next();!N.done;N=D.next())if(N=N.value,R.tagName===N||R.role==="button"&&N==="BUTTON")return!0}return!1};
fb8=function(M,z){var J,R=(J=z.observer)!=null?J:_.JF().resolve(zS);if(M){J=EJ0(M);var D=[];z.showOption&&D.push(R.observe(M,function(){z.visibilityCallback(!0,M)},z.showOption));
z.hideOption&&D.push(R.observe(M,function(){z.visibilityCallback(!1,M)},z.hideOption));
z.prescanOption&&z.prescanCallback&&D.push(R.observe(M,function(){z.prescanCallback()},z.prescanOption));
var N;J.visibilityMonitorKeys=((N=J.visibilityMonitorKeys)!=null?N:[]).concat(D)}};
EJ0=function(M){var z;return(z=M.polymerController)!=null?z:M};
_.$C=function(M){return!!_.dZ(M)};
_.uE=function(M,z,J,R,D){return function(N){var Z=_.xn();_.jP(function(){if(N){_.Lrc(N,M(),D);var B=_.A8p(N,M(),z,J,R,Z);_.pq(B)}},"nr377e")}};
_.Lrc=function(M,z,J){var R=igp(z),D=CkG(z);z=R&&bgb;var N=D&&r8p;(R||D)&&fb8(M,{visibilityCallback:function(Z){var B=_.JF().resolve(_.Rb);Z&&R?B.resolveCommand(R,{form:{element:J?M:void 0},disableClickTracking:!0}):!Z&&D&&B.resolveCommand(D,{form:{element:J?M:void 0},disableClickTracking:!0})},
showOption:z,hideOption:N})};
_.A8p=function(M,z,J,R,D,N){var Z=new Map;if(z=_.dZ(z)){var B;M=(R==null?void 0:(B=R.onTap)==null?void 0:B.value)||M;J=M88(z,M,J==null?void 0:J.onTap,D,N);M.addEventListener("click",J);Z.set("click",J)}return function(){for(var O=_.S(Z),X=O.next();!X.done;X=O.next()){var l=_.S(X.value);X=l.next().value;l=l.next().value;M.removeEventListener(X,l)}}};
_.dZ=function(M){var z;return(M=(z=_.G(M,zHe))==null?void 0:z.onTap)&&_.$S(M)};
igp=function(M){var z;return(M=(z=_.G(M,zHe))==null?void 0:z.onVisible)&&_.$S(M)};
CkG=function(M){var z;return(M=(z=_.G(M,zHe))==null?void 0:z.onHidden)&&_.$S(M)};
M88=function(M,z,J,R,D){var N=function(B){_.JF().resolve(_.Rb).resolveCommand(M,B)},Z=function(B){R&&_.cn(_.Hn(B),z,R)||N(B.target?{form:{element:B.target,
sourceData:M,mutationContext:D}}:void 0)};
J&&(Z=function(B){J(B,N)});
return Z};
JtH=function(M){switch(M){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
RHe=function(M){var z=M.numAvatarsInCluster;switch(M.clusterSize){case "small":return z===2?22:18;case "40":return z===2?24:22;default:return z===2?24:20}};
D_8=function(M,z){return function(J){var R=Object.keys(z);_.jP(function(){if(M!=null&&M()){for(var D=_.S(R),N=D.next();!N.done;N=D.next())N=N.value,J.addEventListener(N,z[N]);_.pq(function(){for(var Z=_.S(R),B=Z.next();!B.done;B=Z.next())B=B.value,J.removeEventListener(B,z[B])})}},"bXZGfe")}};
NDw=function(M){switch(RHe(M)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
P6w=function(M){switch(M){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
Srw=function(M){switch(RHe(M)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
ZTp=function(M){switch(M){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
kv0=function(M){switch(M){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
BDH=function(M){return M==="medium"||M==="48"||M==="large"||M==="extra-large"||M==="extra-extra-large"||M==="giant"};
OT8=function(M){return!!((M==null?0:M.includes(3))||(M==null?0:M.includes(5)))};
Ije=function(M){return{size:TDc(M.data.avatarImageSize),onTap:M.onTap,decorations:M.decorations||[],badgeText:M.badgeText,accessibilityText:M.accessibilityText,avatarButtonCustomClassName:M.avatarButtonCustomClassName,clusterLayoutConfig:M.clusterLayoutConfig}};
TDc=function(M){switch(M){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
oZn=function(M){switch(M){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
X1b=function(M){switch(M){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
ljn=function(M){var z=M.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",J,R=M.avatars&&M.avatars.length>0?(J=_.G(M.avatars[0],_.q6))==null?void 0:J.avatarImageSize:"AVATAR_SIZE_UNKNOWN";J=oZn(R)||0;if(z){var D,N=(D=M.avatarClusterSize)!=null?D:"AVATAR_SIZE_M";z=oZn(N);var Z,B,O=Math.min((B=(Z=M.avatars)==null?void 0:Z.length)!=null?B:0,4),X;return{avatars:((X=M.avatars)==null?void 0:X.slice(0,4))||[],avatarSizeInPx:J,avatarStackStyle:{width:z+"px",height:z+"px",position:"relative"},avatarStyle:function(e){var Q=
RHe({clusterSize:TDc(N),numAvatarsInCluster:O,avatarIndex:e});var v=oZn(N);O===3&&e===2?(v=(v-Q)/2,v=(_.HW("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*v):v=void 0;return{position:"absolute",top:O===2&&e===1||O===3&&e===2||O===4&&e>=2?"0":void 0,bottom:O===2&&e===0||O>2&&e<2?"0":void 0,left:O===2&&e===1||O>2&&(e===1||e===3)?"0":void 0,right:O<=3&&e===0||O===4&&(e===0||e===2)?"0":void 0,transform:v?"translateX("+v+"px)":void 0,width:Q+"px",height:Q+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(e){return{clusterSize:TDc(M.avatarClusterSize),numAvatarsInCluster:O,avatarIndex:e}},
avatarButtonCustomClassName:void 0}}var l;return{avatars:((l=M.avatars)==null?void 0:l.slice())||[],avatarSizeInPx:J,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:X1b(R),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
eHn=function(M,z,J){return function(){tM(M,{form:{element:z},commandController:J})}};
Q6w=function(M){switch(M){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
U_G=function(M){switch(M){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
vZ0=function(M){var z=M.data;M=M.hidden===void 0?!1:M.hidden;var J={};M={class:_.jF("yt-page-indicator-view-model",(J["yt-page-indicator-view-model__indicator--hidden"]=!z.indicatorCount,J)),hidden:M};if(z.indicatorCount){J=[];for(var R=0;R<z.indicatorCount;R++){var D={};D=_.jF("yt-page-indicator-view-model__indicator",(D["yt-page-indicator-view-model__indicator--selected"]=z.selectedIndex===R,D));J.push(_.T("div",{class:D}))}z=_.T(_.MH,null,J)}else z=_.T(_.MH,null);return _.T("yt-page-indicator-view-model",
M,z)};
Gvp=function(M){if("accessibilityText"in M)return M.accessibilityText||"";if("title"in M){var z,J,R;return((z=M.title)==null?void 0:(J=z.accessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)||""}if("accessibility"in M){var D,N;return((D=M.accessibility)==null?void 0:(N=D.accessibilityData)==null?void 0:N.label)||""}return""};
w1w=function(M){return"inlinePlayerData"in M};
Wn=function(M){return new x_3(M)};
t8n=function(M){var z=M.data;M=_.ol(function(){var D=_.G(z.onTap,_.dv);D&&_.JF().resolve(_.Rb).resolveCommand(D);return!1});
var J={sources:[{url:z.thumbnailUrl,width:120,height:90}]},R=z.rating&&z.ratingA11yLabel&&z.reviewsCount&&z.reviewsCountA11yLabel;return _.T("place-data-view-model",null,z.placeName&&z.placeCategory?_.T("div",{class:"yt-spec-place-data-view-model-shape","on:click":M},_.T(_.rv,{data:J,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.T(_.a9,{className:"yt-spec-place-data-view-model-shape__place-link",command:z.onTap},_.T("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:z.placeName},z.placeName)),_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata"},R?_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.T("span",{class:"score",title:z.ratingA11yLabel},z.rating),_.T("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.T(_.vS,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.T("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:z.reviewsCountA11yLabel},z.reviewsCount)):_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.T("span",{class:"category",title:z.placeCategory},z.placeCategory)))):null)};
j6G=function(M){return function(z){M&&(M.thumbnailElRef=z.thumbnailElRef,M.thumbnail=z.thumbnail,M.thumbnailOverlays=z.thumbnailOverlays,M.thumbnailSize=z.thumbnailSize)}};
p1b=function(M){var z;return(z=M.sharedUi)==null?void 0:z.animatedThumbnailEnabled};
FD8=function(M){var z;return(z=M.sharedUi)==null?void 0:z.inlinePreviewEnabled};
_.YrR=function(M){var z;return(z=M.sharedUi)==null?void 0:z.currentPageSubType};
m_e=function(M){switch(M){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
s6o=function(M){var z=_.S(_.kE(!1,void 0,"RIOonf")),J=z.next().value,R=z.next().value;_.mF(function(){var D=M==null?void 0:M();if(D){var N=_.JF().resolve(_.zw(gZR));if(N){var Z={triggeringElement:D,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
N.registerElement(Z);_.pq(function(){_.V9(N,Z)})}}});
return J};
nZn=function(M,z,J){J?J(z):_.aE(z,M.target?{form:{element:M.target}}:void 0)};
_.E3=function(M,z,J){return function(R){_.jP(function(){var D=new Map,N,Z=(N=M())==null?void 0:N.onTap;Z&&(N=function(B){a:{var O=B.composedPath();O=_.S(O);for(var X=O.next();!X.done;X=O.next()){X=X.value;if(X===R)break;if(X.className.indexOf("HostIsClickableAdComponent")>=0||X.tagName==="A".toString()||X.tagName==="BUTTON".toString()){O=!0;break a}}O=!1}O||nZn(B,Z,z)},(J==null?0:J())||_.U("enable_web_home_top_landscape_image_layout_level_click")?(R.addEventListener("tap",N),D.set("tap",N)):(R.addEventListener("click",
N),D.set("click",N)));
_.pq(function(){for(var B=_.S(D),O=B.next();!O.done;O=B.next()){var X=_.S(O.value);O=X.next().value;X=X.next().value;R.removeEventListener(O,X)}})},"NMyqj")}};
hHw=function(M,z){var J,R=(J=M.interaction)==null?void 0:J.onTap;if(M=_.qf({elementsCommand:R,forceNewState:!0,skipOnClick:!0}))return M.onclick=function(D){gcp(D)&&(D.preventDefault(),R&&nZn(D,R,z))},W5(M)?M:void 0};
ytn=function(M){switch(M){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
HTY=function(M){switch(M){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
ctY=function(M){switch(M){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.d_0=function(M){return _.U("rich_grid_enable_dynamic_offset")&&M?Math.max(Math.round((M-_.NC("rich_grid_dynamic_offset_anchor_width",1300))/100*_.NC("rich_grid_dynamic_offset_offset_per_100",10)),_.NC("rich_grid_dynamic_offset_lower_bound",-60)):0};
KDc=function(M,z){switch(z){case 4:return 16;case 1:return M<528?16:M<1024?32:48;case 2:return(M>=528?16:8)/2;case 3:return(M<528?16:M<1024?32:48)+(M>=528?16:8)/2;default:return 0}};
$_0=function(M){var z=M.originalContainerWidth;var J=M.sizing;var R=M.standardUnit;if(M.isCompactList&&z<528)return 1;switch(J){case "STANDARD":return R;case "COMPACT":return R+1;case "EXTRA_COMPACT":return _.U("web_responsive_extra_compact_2x")?R*2:_.U("web_responsive_current")?R===1?2:R%2===0?R/2*3:R+2:R<4?R*2:Math.ceil(R*3/2);case "MINI":return R>1?R*2:3;default:return R}};
qr8=function(M){var z=M.containerWidth;var J=M.peek;var R=M.gutter;var D=M.numItems;M=M.ignoreMaxWidthLimit;z=J?Math.max((z-J-R*D)/D,0):Math.max((z-R*(D-1))/D,0);return M?z:Math.min(z,uWR)};
_.ff=function(M){var z=M.containerWidth;var J=M.hasPeek;var R=M.sizing;var D=M.marginSettings;var N=M.isCompactList;var Z=M.enableFullBleedForSingleCol;var B=M.standardUnitMinWidth;R=R||"STANDARD";J=!!J;M=z>=528?16:8;var O=J?z>=528?48:24:0;D=KDc(z,D);var X=Math.max(z-D*2,0);B=_.U("kevlar_disable_min_width_override")?void 0:B;B=Math.min(Math.max(Math.floor((X-O+M)/((B!=null?B:WD3)+_.d_0(z)+M)),1),6);var l=(Z=!!Z&&B===1)||B===1&&R!=="STANDARD";J=J||l?X:Math.min(X,(uWR+M)*B-M);R=$_0({originalContainerWidth:z,
sizing:R,standardUnit:B,isCompactList:N});return{itemWidth:qr8({containerWidth:J,peek:O,gutter:M,numItems:R,ignoreMaxWidthLimit:l}),gutter:M,maxContainerWidth:J,numItems:R,margin:Z?0:D,contentMargin:KDc(z,1),typographyBump:qr8({containerWidth:J,peek:O,gutter:M,numItems:B,ignoreMaxWidthLimit:l})>400&&!(N&&z<528),standardUnit:B}};
aj0=function(M){switch(M){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.V8w=function(M){if(M){var z;if((z=M.responsiveContainerConfiguration)==null?0:z.responsiveSize)return aj0(M.responsiveContainerConfiguration.responsiveSize);if(M.layoutSizing)switch(M.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
EZH=function(M){if(M.fullbleed)return 1;switch(M.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
iTG=function(M,z,J,R,D,N,Z,B){a:if(M===4&&R==="LOCKUP_CONTENT_TYPE_SOURCE")var O=1;else switch(M){case 3:O=1;break a;default:O=0}a:switch(M){case 4:N=!!(N&&N<100);break a;default:N=!1}a:switch(M){case 3:case 4:var X=R==="LOCKUP_CONTENT_TYPE_CHANNEL"||R==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:X=!1}a:switch(M){case 5:var l=!0;break a;case 4:l=!1;break a;default:l=!1}return{isOverlay:l,isCard:fjn(R,Z),sizing:z!=null?z:"STANDARD",typographyBump:J!=null?J:!1,isTiny:N,isCentered:X,isCollection:LDY(R),
arrangement:O,addMarginForFullbleed:M===1&&R!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:At0(R,D,B),disableRounding:M===5||fjn(R,Z)||M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:LDY(R)?2:0,useLegacyTypography:!(B==null||!B.useLegacyTypography),useRichGridLegacyTypography:!(B==null||!B.useRichGridLegacyTypography)&&!_.U("web_enable_typography_bump"),compactMetadata:O===0&&R==="LOCKUP_CONTENT_TYPE_VIDEO"}};
LDY=function(M){switch(M){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
fjn=function(M,z){if(z&&M==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(M){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
At0=function(M,z,J){if(z&&(J==null||!J.alwaysRespectPodcastShowAspectRatio||M!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(M){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
C6p=function(M){switch(M){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
bT8=function(M){switch(M){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
rtp=function(M){switch(M){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.Lf=function(M){if(M){var z;return((z=_.JF().resolve(_.zw(_.Ah)))==null?0:z())?M.darkThemeImage:M.image}};
J4R=function(M,z,J,R,D,N){if(D&&N&&z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:D,height:N};if(!J)return{};D=J.size;J=J.allowFullWidth;if(z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&J)return{fullWidth:!0};if(D===void 0)return{};switch(M){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:D,height:D};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:D,height:1/Mwn*D};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:D*
z68,height:D};default:return(R==null?0:R.height)&&(R==null?0:R.width)?R.width/R.height>1?{maxWidth:D*z68}:{maxWidth:D}:{maxWidth:D}}};
R6G=function(M){var z;return M&&((z=_.Lf(M.themedImage))!=null?z:M.image)};
DFG=function(M){var z;return M==null?void 0:(z=M.sources)==null?void 0:z[0]};
NIH=function(M){switch(M){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.Pbp=function(M){if(M)return"content-id-"+M};
SdR=function(M){switch(M.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
Zle=function(M){var z=_.YrR(_.ia().getState())||"";return M?M+z:""};
kl8=function(M){switch(M){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Ol0=function(M){var z=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],J=_.S(_.kE(void 0,void 0,"JrqNsb")),R=J.next().value,D=J.next().value,N=_.S(_.kE(void 0,void 0,"rWytse"));J=N.next().value;var Z=N.next().value;N=_.S(_.kE(void 0,void 0,"DHRqxe"));var B=N.next().value,O=N.next().value;return{touchFeedbackEvents:{pointerUpEvent:R,pointerDownEvent:J,pointerLeaveEvent:B},touchFeedbackOnPointerUp:_.ol(function(X){BIH(_.Hn(X),z)||(D(X),Z(void 0),O(void 0))}),
touchFeedbackOnPointerDown:_.ol(function(X){M==null||M(X);BIH(_.Hn(X),z)||(Z(X),D(void 0),O(void 0))}),
touchFeedbackOnPointerLeave:_.ol(function(X){BIH(_.Hn(X),z)||(O(X),Z(void 0),D(void 0))})}};
BIH=function(M,z){z=z===void 0?[]:z;z=[].concat(_.Yj(z),["BUTTON".toString()]);M=_.S(M);for(var J=M.next();!J.done;J=M.next()){J=J.value;for(var R=_.S(z),D=R.next();!D.done;D=R.next())if(J.tagName===D.value)return!0}return!1};
TIn=function(M){switch(M){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
Igc=function(M){return M.scrollHeight-M.offsetHeight>1};
oRp=function(M,z){var J;return Le(M,((J=M.content)==null?void 0:J.length)||0,!z)};
e6b=function(M,z,J,R,D,N){if(!z||X_w){var Z;return Le(M,((Z=M.content)==null?void 0:Z.length)||0,!0)}z=R.value;if(!J.value||!z||!M.content)return M;J=0;R=M.content.length;Z=0;lg8||(lg8=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var B=lg8;for(D=D*N*B;J<=R;)N=Math.floor(J+(R-J)/2),B=Le(M,N)||M,z.firstChild&&(z.firstChild.textContent=B.content),z.scrollHeight>D?R=N-1:(Z=N,J=N+1);return Le(M,Z)};
QKG=function(M,z){var J,R;return(((J=M.content)==null?void 0:J.length)||0)>(((R=z.content)==null?void 0:R.length)||0)};
UFn=function(M,z,J,R,D,N){var Z=_.AL("truncated-text-content"),B=_.AL("truncated-text-content"),O=_.AL("button"),X=_.AL("button"),l=_.AL("button"),e=_.JF().resolve(_.Ce),Q=_.S(_.eh(function(){return oRp(M(),D())})),v=Q.next().value,x=Q.next().value;
Q=_.S(_.eh(function(){return QKG(M(),v())}));
var m=Q.next().value,y=Q.next().value,H=null;_.jP(function(){function q(){if(Z.value&&O.value&&l.value){var E=N()?M():e6b(M(),D(),Z,B,z(),J());x(E);requestAnimationFrame(function(){if(Z.value&&O.value&&l.value){var L=Igc(Z.value)||QKG(M(),E);y(L);if(!R()){var z8=Igc(Z.value),O8=J(),I3=Z.value,vY=O.value,te=l.value,wR=e==="rtl";if(I3&&vY){var qb=vY.offsetLeft;wR&&(qb=I3.offsetWidth-vY.offsetWidth-vY.offsetLeft);if(L){L=vY.offsetWidth;vY=I3.offsetWidth;var cY=z8?vY-L-70:qb-70;O8="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
O8+"rem,\n      #000 "+O8+"rem,\n      #000 100%), linear-gradient(\n      to "+((wR?"left":"right")+",\n      #000 0px,\n      #000 "+cY+"px,\n      transparent "+(z8?vY-L:cY+70)+"px)");I3.style.setProperty("-webkit-mask-image",O8);I3.style.setProperty("mask-image",O8)}else I3.style.setProperty("-webkit-mask-image",""),I3.style.setProperty("mask-image","");z8?wR?(te.style.setProperty("left","0"),te.style.setProperty("right","unset")):(te.style.setProperty("left",""),te.style.setProperty("right",
"0")):wR?(te.style.setProperty("left","unset"),te.style.setProperty("right",qb+"px")):(te.style.setProperty("left",qb+"px"),te.style.setProperty("right","unset"))}}}})}}
var b,V;(b=H)==null||(V=b.stop)==null||V.call(b);b=new _.A_(q,17);q();H=b},"sZ7lhf");
_.mF(function(){x(oRp(M(),D()));y(QKG(M(),v()));var q=function(){lg8=void 0;var V,E;(V=H)==null||(E=V.fire)==null||E.call(V)};
if(window.ResizeObserver){var b=new ResizeObserver(q);b.observe(Z.value);_.pq(function(){var V,E;(V=H)==null||(E=V.stop)==null||E.call(V);b.disconnect()})}else window.addEventListener("resize",q),_.pq(function(){var V,E;
(V=H)==null||(E=V.stop)==null||E.call(V);window.removeEventListener("resize",q)})});
return{isTruncated:m,displayText:v,contentRef:Z,hiddenRef:B,placeholderTruncationTextRef:O,hiddenTruncationTextRef:X,truncationTextRef:l}};
vR8=function(M){return{content:M!=null?M:""}};
Glp=function(M){return _.$S(M.onTap)||_.dZ(M.rendererContext)};
w_0=function(M){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:M.overflowMenuA11yLabel,onTap:function(z){z.preventDefault();z.stopPropagation();if(M.overflowMenuOnTap){var J=_.qf({elementsCommand:M.overflowMenuOnTap,forceNewState:!0});if(J==null?0:J.onclick)J.onclick(z)}}}};
_.iE=function(M,z,J,R,D){R=R===void 0?{}:R;if(!D||Math.random()<5E-4){z=z||null;J=J||null;M=M instanceof Error?M:new _.xN(M);if(M.args)for(var N=_.S(M.args),Z=N.next();!Z.done;Z=N.next())Z=Z.value,Z instanceof Object&&(R=Object.assign({},Z,R));R.category="H5 Ads Control Flow";z&&(R.slot=z?"slot:  "+z.slotType:"");J&&(R.layout=J?"layout:  "+J.layoutType:"",R.layoutId=J.layoutId);D&&(R.known_error_aggressively_sampled=!0);M.args=[R];_.yA(M)}};
_.xFG=function(M,z){_.S9(M,"yt-open-popup-action",[_.zh(z),M])};
_.Cf=function(M,z){_.xFG(M,_.id(z))};
jKc=function(M){if(!M)return"";if(tw0[M])return tw0[M];bE||(bE=_.lm("A"));bE.href!==M&&_.K3(bE,M);var z=bE.pathname;tw0[M]=z.startsWith("/")?z:"/"+z;return tw0[M]};
p_R=function(){var M=jKc(window.location.href);if(M==="/")return"home";if(M.startsWith("/results"))return"search";if(M.startsWith("/watch"))return"watch";if(M.startsWith("/shorts"))return"shorts";if(M.startsWith("/hashtag"))return"hashtag";if(M.startsWith("/create_channel"))return"create_channel";if(M.startsWith("/@")||M.startsWith("/user/")||M.startsWith("/channel/"))return"channel";if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/sponsor_channel"))return"sponsorship";if(M.startsWith("/select_site"))return"settings";
if(M.startsWith("/locate"))return"locate";if(M.startsWith("/redeem"))return"redeem";if(M.startsWith("/musicpremium")||M.startsWith("/premium")||M.startsWith("/red"))return"premium";if(M.startsWith("/paid_memberships"))return"paid_memberships";if(M.startsWith("/oops"))return"oops";if(M.startsWith("/clip"))return"clip";var z;return(rZ==null?void 0:(z=rZ.response)==null?void 0:z.page)==="404"?"404":M.startsWith("/feed/history")?"history":M.startsWith("/feed/library")?"library":M.startsWith("/feed/subscriptions")?
"subscriptions":M.startsWith("/feed/trending")?"trending":M.startsWith("/feed/news_destination")?"news":M.startsWith("/playlist")?"playlist":M.startsWith("/minor_moment")?"minor_moment":M.startsWith("/playable/")||M.match("^/playables/(?!saved).")?"mini_app":M.startsWith("/playables")?"playables":M.startsWith("/create/live/join")?"open_in_app":M.startsWith("/feed/explore")?"explore":"browse"};
_.gR8=function(){var M=rZ==null?void 0:rZ.response,z=M==null?void 0:M.endpoint;if(!z)return(M==null?void 0:M.page)==="watch"?"watch":p_R();var J;M=(J=_.G(z==null?void 0:z.commandMetadata,_.X9))==null?void 0:J.webPageType;J=!1;if(M&&!FOp.includes(M))switch(M){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var R;return((R=_.G(z==null?void 0:z.commandMetadata,_.X9))==null?0:R.url)&&jKc(_.G(z.commandMetadata,_.X9).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var D;return(z=(D=_.G(z,_.Gh))==null?void 0:D.browseId)?Yd8[z]||"browse":"browse";default:J=!0}if(_.G(z,_.M9)||_.G(z,mFR))return"sponsorship";D=jKc(window.location.href);if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/create_channel"))return"create_channel";
if(_.G(z,_.af)&&D.startsWith("/shorts"))return"shorts";if(_.G(z,_.af)&&D.startsWith("/watch"))return"watch";J&&(z=new _.xN("Unsupported mWeb page type",{pathname:D,webPageType:M}),_.nc(z));return"browse"};
zy=function(M,z,J,R){return M&&z?M!==J||z!==R?(_.iE(Error("Hh"),void 0,void 0,{"stored-slot":M,"stored-layout":z,"latest-slot":J,"latest-layout":R}),!1):!0:!1};
sKe=function(M,z,J){return M({targetId:z},function(R){return J.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},R,{header:J.continuationItems?J.continuationItems[0]:void 0}):Object.assign({},R,{contents:J.continuationItems?J.continuationItems:[]})})};
nRp=function(M,z,J,R){if(z=z.trackingParams){var D,N=(D=J.getScreenLayer)==null?void 0:D.call(J);J=_.y5(N);D=_.hu(N);if(J&&D){var Z=_.pe(z);_.U("combine_ve_grafts")?M.graftServerVe(z,D,N):_.qs(J,D,Z);R==null||R(Z)}}};
y4o=function(M){var z;return((z=h6G.get(M))==null?void 0:z.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
dFH=function(M,z){var J={type:z.slotType,controlFlowManagerLayer:Hl3.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(J.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(J.slotPhysicalPosition=z.slotPhysicalPosition);if(M){J.debugData={slotId:z.slotId};if(M=z.slotEntryTrigger)J.debugData.slotEntryTriggerData=c4p(M);M=z.slotFulfillmentTriggers;J.debugData.fulfillmentTriggerData=[];M=_.S(M);for(var R=M.next();!R.done;R=M.next())J.debugData.fulfillmentTriggerData.push(c4p(R.value));
z=z.slotExpirationTriggers;J.debugData.expirationTriggerData=[];z=_.S(z);for(M=z.next();!M.done;M=z.next())J.debugData.expirationTriggerData.push(c4p(M.value))}return J};
c4p=function(M,z){var J={type:M.triggerType};z!=null&&(J.category=z);M.triggeringSlotId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return J};
KOY=function(M,z,J,R){z={opportunityType:z};M&&(R||J)&&(R=_.sa(R||[],function(D){return dFH(M,D)}),z.debugData=Object.assign({},J&&J.length>0?{associatedSlotId:J}:{},R.length>0?{slots:R}:{}));
return z};
$Fo=function(M){return Jk(M.opportunityAdapterMap).concat(Jk(M.triggerAdapterMap)).concat(Jk(M.fulfillmentAdapterFactoryMap)).concat(Jk(M.slotAdapterFactoryMap)).concat(Jk(M.layoutRenderingAdapterFactoryMap))};
Jk=function(M){var z=[];M=_.S(M.values());for(var J=M.next();!J.done;J=M.next())J=J.value,J.isAdsControlFlowEventListener&&z.push(J);return z};
DK=function(M){var z=M.slotId,J=M.slotType,R=M.slotPhysicalPosition;return z===void 0?new RZ("Cannot construct a slot due to the missing id.",{adSlotMetadata:M}):J===void 0?new RZ("Cannot construct a slot due to the missing type.",{adSlotMetadata:M}):R===void 0?new RZ("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:M}):{slotId:z,slotType:J,slotPhysicalPosition:R,managerLayer:"external",adSlotLoggingData:M.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new uUb}};
qd3=function(M){var z=M.layoutId,J=M.layoutType;return z===void 0?new N9("Cannot construct a layout due to the missing id.",{adLayoutMetadata:M}):J===void 0?new N9("Cannot construct a layout due to the missing type.",{adLayoutMetadata:M}):{layoutId:z,layoutType:J,managerLayer:"external",adLayoutLoggingData:M.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new uUb,interactionLoggingAdsClientData:{}}};
WO0=function(M){if(M.querySelector("img")){var z=M.querySelector("img");z.addEventListener("error",function(){QBR(z.src).then(function(J){(J=_.yZ(J).toString())?z.src=J:z.removeAttribute("src")}).catch(function(){z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
S4=function(M,z){if(z&&(ago(z.viewableCommand)||ago(z.endOfSessionCommand))){var J=Vw0(z==null?void 0:z.viewableCommand);z=Vw0(z==null?void 0:z.endOfSessionCommand);if(!PX){var R=_.NC("custom_active_view_tos_timeout_ms");PX=R>0&&R!==36E5?new ERw(fgY(),R):new ERw(fgY())}LOp(PX,M);A4G(PX,M,J,z)}};
ZK=function(M){PX&&LOp(PX,M)};
fgY=function(){var M=_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
ago=function(M){M=_.$S(M);return!(M==null||!M.loggingUrls)&&M.loggingUrls.length>0};
Vw0=function(M){if(!M)return[];var z=[],J,R;((R=(J=_.$S(M))==null?void 0:J.loggingUrls)!=null?R:[]).forEach(function(D){D.baseUrl&&z.push(D.baseUrl)});
return z};
ile=function(M){if(_.U("stop_av_measurement_on_detach"))return function(){ZK(M)}};
Cbp=function(M){return function(){_.U("stop_av_measurement_on_detach")&&ZK(M)}};
blY=function(M){if(_.U("stop_av_measurement_on_detach"))return function(){ZK(M)}};
r4o=function(M){return M.shorts.isDesktopSmallWidth};
_.Mrb=function(M){return M.shorts.isShortsActive};
_.zxw=function(M){return M.shorts.isWatchWhileMode};
_.k8=function(M){return M.shorts.isFullscreen};
_.BX=function(M){return M.shorts.isShortsPipActive};
RxH=function(M){var z,J;if(M=(z=_.G(M.reelsAdCardButtoned,Jyb))==null?void 0:(J=z.animatedRenderingConfig)==null?void 0:J.easeOutSeconds)return M+"s"};
N7w=function(M,z,J){return _.k(function(R){return R.return(new Promise(function(D){var N=new Image;N.onload=function(){D(new Dun(M,z,J,N.naturalWidth,N.naturalHeight))};
N.src=J.toString()}))})};
Ppc=function(M,z){return Math.round(M/1E-5)===Math.round(z/1E-5)};
St0=function(M,z){return Math.round(M/1E-5)===Math.round(z/1E-5)};
ZGY=function(M,z){return M.year===z.year&&M.month===z.month&&M.day===z.day};
k9e=function(M,z){return M.year!==z.year?M.year<z.year:M.month!==z.month?M.month<z.month:M.day<z.day};
OGG=function(M){return M.day===B78(M.year,M.month)?M.month===11?{year:M.year+1,month:0,day:1}:{year:M.year,month:M.month+1,day:1}:{year:M.year,month:M.month,day:M.day+1}};
T78=function(){var M=new Date,z={year:M.getFullYear(),month:M.getMonth(),day:M.getDate()};return{start:z,end:{year:M.getFullYear()+2,month:M.getMonth(),day:M.getDate()},selectedDate:OGG(z)}};
Ie8=function(M){return(new LD(2)).format(new Date(M.year,M.month,M.day))};
ouo=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
XTo=function(M,z){M=(M+(Number(z.utcOffsetSec)+(new Date(M*1E3)).getTimezoneOffset()*60))*1E3;z=ouo(new Date(M));return{date:z,secondsSinceMidnight:Math.floor((M-(new Date(z.year,z.month,z.day)).getTime())/1E3)}};
lew=function(M,z){z=z.months.findIndex(function(J){return J.year===M.year&&J.month===M.month});
return z>=0?z:void 0};
exG=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENTBOX")return!0}catch(z){return!1}return exG(M.parentNode)};
Om=function(M){return M?!(M.tagName!=="A"||!M.href||!M.classList.contains("yt-simple-endpoint")):!1};
QF8=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
Uun=function(M,z,J){if(!M)return null;var R=Om(M);if(R&&J)return z=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(R&&!J)return document.createTextNode("");if(QF8(M))return J=M.alt,M=M.dataset.emojiId,!M&&z&&(z=_.Ty(z,J))&&z.isCustomEmoji&&(M=z.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(J);R=M.cloneNode(!1);for(var D=0;D<M.childNodes.length;++D){var N=Uun(M.childNodes[D],z,J);N&&R.appendChild(N)}return R};
IZ=function(M){return M?Om(M)?M:IZ(M.lastChild):null};
vu0=function(M){return M?Om(M)?M:vu0(M.firstChild):null};
G98=function(M){if(!M)return null;for(var z=M.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=IZ(z))?M=z:M=(M=M.parentNode)?IZ(M.previousElementSibling):null;return M};
wTG=function(M){if(!M)return null;for(var z=M.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=vu0(z))?z:wTG(M.parentNode)};
xub=function(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();if(!exG(J.parentNode))return null;z=z.JSC$11258_getStartOffset();if(J.nodeType===Node.TEXT_NODE){var R=_.cj(J,Om);if(R){if(M&&z===0||!M&&z===J.length)return R}else{if(M&&z===J.length)return!J||J.nodeName==="BR"||J.nextElementSibling&&_.XB(J.nextElementSibling,"display")==="block"?null:vu0(J.nextElementSibling);if(!M&&z===0)return J?IZ(J.previousElementSibling):null}}if(J.nodeType===Node.ELEMENT_NODE)if(M){if(0<=z&&z<J.childNodes.length)return vu0(J.childNodes[z])}else if(0<
z&&z<=J.childNodes.length)return IZ(J.childNodes[z-1]);return null};
tr3=function(M,z,J){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(J){var R=G98(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,z)))return R}else if((R=wTG(M))&&!/\S\s+/.test(M.wholeText.substr(z,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?J?G98(M.childNodes[z]):wTG(M.childNodes[z]):tr3(M.parentNode,z,J)};
jF0=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var z="";for(M=M.firstChild;M;M=M.nextSibling)z+=jF0(M);return z;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
lf=function(M,z){return M.year===z.year&&M.month===z.month&&M.day===z.day};
e4=function(M,z){return M.year!==z.year?M.year<z.year:M.month!==z.month?M.month<z.month:M.day<z.day};
pTn=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
FXo=function(M){var z=Unn;z=z===void 0?Unn:z;z(new Date(M.year,M.month,M.day))};
QL=function(M){return pTn(new Date(Number(M.seconds)*1E3))};
YtR=function(M){return M.year!==void 0&&M.month!==void 0&&M.day!==void 0};
mu3=function(M){return M.start!==void 0&&M.end!==void 0};
gu3=function(M){return mu3(M)?M.start:M};
sF0=function(M){return mu3(M)?M.end:void 0};
hx8=function(M,z){for(var J=[],R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var D=J,N=D.push,Z=R.getFullYear(),B=R.getMonth(),O=M,X=z,l=void 0,e=[],Q=Object.freeze({extraCssClass:"invisible"}),v=new Date(Z,B),x=pTn(v);v=v.getDay();for(var m=pTn(new Date);x.month===B;){v!==nuc&&l||(l=Array.from({length:7}).fill(Q),e.push(l));var y={date:{year:Z,month:B,day:x.day},extraCssClass:"",debugClass:""};y.extraCssClass=X(y.date,
x,m,O).trim();l[(v-nuc+7)%7]=y;x=x.day===B78(x.year,x.month)?x.month===11?{year:x.year+1,month:0,day:1}:{year:x.year,month:x.month+1,day:1}:{year:x.year,month:x.month,day:x.day+1};v=(v+1)%7}N.call(D,{weeks:e,monthLabel:Um.SHORTMONTHS[B]+" "+Z,year:Z,month:B,monthLabelExtraCssClass:e[0][2]===Q?"shift-down-label":""});R.setMonth(R.getMonth()+1)}return J};
yyG=function(M,z){z=z.months.findIndex(function(J){return J.year===M.year&&J.month===M.month});
return z>=0?z:void 0};
cyY=function(M,z){a:{var J=J===void 0?[2,3]:J;J=_.S(J);for(var R=J.next();!R.done;R=J.next()){var D=new Date;if((new HGp(R.value)).parse(z,D,{validate:!0})){D.setHours(0,0,0,0);z=D;break a}}z=null}if(!z)return{isValid:!1,value:void 0};z=pTn(z);J=M.end;return e4(z,M.start)||e4(J,z)?{isValid:!1,value:void 0}:{isValid:!0,value:z}};
qt8=function(M){var z=duG;z=z===void 0?KXY:z;var J=M.columnsToShow||[],R=$un(M.columnDimensions,M.columnsToShow,M.leftFloatingColumns,z);return J.map(function(D,N){var Z=M.columns[D];if(Z===void 0)throw Error("Nh");var B=R?R[N]:"";var O=M.getCustomTooltip?M.getCustomTooltip(D,Z.headerTooltipParagraphs):Z.headerTooltipParagraphs;var X=uAp(M,D);return{type:D,index:N,style:B,classes:X,headerName:Z.headerName||"",headerIcon:Z.headerIcon,headerTooltipParagraphs:O||[],headerTooltipHelpContext:Z.headerTooltipHelpContext,
sortOrders:Z.sortOrders||[],selectionState:Z.isSelectionCheckbox?M.selectionState:void 0}})};
uAp=function(M,z){var J=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],R=M.columns[z];if(R===void 0)return"";var D=J.includes("DEFAULTS")&&R.cssClass?[R.cssClass]:[];if(J.includes("SORTING")){R.sortOrders&&R.sortOrders.length&&D.push("sortable");if(M.sorting&&M.sorting.columnType===z)a:switch(M.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var N="column-sorted";break a;default:N=""}else N="";N&&D.push(N)}J.includes("FLOATING")&&(z=M.columnsToShow.indexOf(z),M.leftFloatingColumns&&z<M.leftFloatingColumns&&
D.push("floating-column"),M.leftFloatingColumns&&z===M.leftFloatingColumns-1&&D.push("last-floating-column"));J.includes("RIGHT_ALIGN")&&R.rightAlignHeader&&D.push("right-align");return D.filter(function(Z){return Z}).join(" ")};
$un=function(M,z,J,R){J=J===void 0?0:J;R=R===void 0?KXY:R;if(M){var D=[],N=0;WXn(M,z,R).forEach(function(Z,B){var O="min-width:"+Z.minWidth+"px;padding-left:"+Z.paddingLeft+"px;padding-right:"+Z.paddingRight+"px;flex:"+Z.flexGrow+" 0 "+Z.minWidth+"px;";Z.maxWidth!==Infinity&&(O=[O,"max-width:"+Z.maxWidth+"px;"].join(""));N>0&&B<J&&(O=[O,"left:"+N+"px;"].join(""));D.push(O);N+=Z.minWidth+Z.paddingLeft+Z.paddingRight});
return D}};
WXn=function(M,z,J){J=J===void 0?KXY:J;return z.map(function(R,D){R=M&&M[R]||{};var N=D===0?J.paddingLeftFirstColumn:J.padding;R.paddingLeft!==void 0&&(N=R.paddingLeft);D=D===z.length-1?J.paddingRightLastColumn:J.padding;R.paddingRight!==void 0&&(D=R.paddingRight);return{paddingLeft:N,paddingRight:D,minWidth:R.minWidth!==void 0?R.minWidth:J.minWidth,maxWidth:R.maxWidth!==void 0?R.maxWidth:J.maxWidth,flexGrow:R.flexGrow!==void 0?R.flexGrow:J.flexGrow}})};
aen=function(M){var z=M.reduce(function(R,D){var N=D.columnId,Z={};D.headerText&&(Z.headerName=_.CD(D.headerText));D.rightAlignHeader&&(Z.rightAlignHeader=D.rightAlignHeader);var B;if((B=D.headerIcon)==null?0:B.iconType)Z.headerIcon=_.oE(D.headerIcon.iconType);R[N]=Z;return R},{}),J=M.filter(function(R){return!R.hideColumn}).map(function(R){return R.columnId});
M=M.filter(function(R){return!!R.dimensions}).reduce(function(R,D){R[D.columnId]=D.dimensions;
return R},{});
return{columns:z,columnsToShow:J,columnDimensions:M}};
_.Vrw=function(M){return M?M.simpleText?M.simpleText:M.runs?M.runs.map(function(z){return z.text}).join(""):"":""};
iGH=function(M){var z=M.data;var J=M.onTap;var R=M.isSelected;var D=M.onFocusIn;if(!z)return{};M=Eup(z);R===void 0&&(R=z==null?void 0:z.isSelected);var N;return{text:fe8(z,M),startIcon:(N=z.icon)==null?void 0:N.iconType,state:R?0:2,type:0,onTap:LXR(z,J),accessibilityLabel:AyY(z,M),onFocusIn:function(){return D==null?void 0:D()}}};
fe8=function(M,z){if(!z)return M.text?_.Vrw(M.text):void 0};
LXR=function(M,z){return function(J){z==null||z(J,M)}};
Eup=function(M){M=M.style&&M.style.styleType;return!X_w&&M==="STYLE_EXPLORE_LAUNCHER_CHIP"};
AyY=function(M,z){if(z){var J,R,D;return(D=(J=M.accessibilityData)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)!=null?D:fe8(M,!1)}};
vX=function(M){return{signalAction:{signal:M}}};
ry3=function(){return _.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Cp0:_.bG3};
M2w=function(M,z){M=M===void 0?"SOFT_RELOAD_PAGE":M;z=z===void 0?49504:z;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.JN(_.e9("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:z}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:M}}]}}}};
zN8=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.JN(_.e9("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:ry3()}};
JqY=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:ry3()}};
RN8=function(M,z){var J=_.JN(_.e9("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),R=_.JN(_.e9("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),D={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.JN(_.e9("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};D.serviceEndpoint=M?M:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[vX("SOFT_RELOAD_PAGE")]}};return{title:J,bodyText:R,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:D},
style:{value:z!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
NKG=function(M){M=M===void 0?{}:M;return{title:_.JN(M.localizedZeroStateTitleText===void 0?"":M.localizedZeroStateTitleText),bodyText:_.JN(M.localizedZeroStateMessage===void 0?"":M.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.JN(M.localizedZeroStateButtonText===void 0?"":M.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[DYR]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
S6p=function(M){M=M===void 0?{}:M;return{title:_.JN(M.localizedOptInBannerTitleText===void 0?"":M.localizedOptInBannerTitleText),titleLength:19,subtitle:_.JN(M.localizedOptInMessage===void 0?"":M.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.JN(_.e9("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:_.JN(_.e9("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:[P88]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
BK3=function(M,z){var J=z=z===void 0?{}:z;z=J.offlineTitleText===void 0?"":J.offlineTitleText;var R=J.offlineDescriptionText===void 0?"":J.offlineDescriptionText,D=J.formattedSupplementalText,N=J.actionButtonText===void 0?"":J.actionButtonText,Z=J.titleText===void 0?"":J.titleText;J=J.descriptionText===void 0?"":J.descriptionText;var B={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.JN(N),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};M||(Z=z,J=R,B={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.JN(N),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.JN(Z),titleLength:Z.length,overrideTitleMaxFontSize:30,subtitle:_.JN(J),supplementalText:D,primaryButton:{buttonRenderer:B},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[Zbn]},darkTileImage:{thumbnails:[koR]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.I9o=function(M,z,J,R,D,N,Z,B,O,X,l){D=D===void 0?!1:D;N=N===void 0?!1:N;Z=Z===void 0?0:Z;B=B===void 0?-Infinity:B;O=O===void 0?!1:O;X=X===void 0?!1:X;l=l===void 0?!1:l;var e=[],Q=_.JN(_.e9("SMART_DOWNLOADS",void 0,"Smart downloads")),v=_.JN(Obc(Z,B,M.length));B=Z=void 0;X?Z={statementBannerRenderer:BK3(l,R)}:D?M.length>0?B=TK8(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.U("kevlar_manual_downloads_above"),Q,v):O?B={alertBannerViewModel:{heading:{content:J.localizedOptInBannerTitleText===
void 0?"":J.localizedOptInBannerTitleText},body:{content:J.localizedPromptMessage===void 0?"":J.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.e9("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.e9("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:_.n98}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:N&&(B={backgroundPromoRenderer:{bodyText:_.JN(_.e9("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"}}}):
N&&(B={alertBannerViewModel:{heading:{content:J.localizedOptInBannerTitleText===void 0?"":J.localizedOptInBannerTitleText},body:{content:J.localizedOptInMessage===void 0?"":J.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.e9("TURN_ON",void 0,"Turn on"),accessibilityText:_.e9("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}}}}}});J=_.JN(_.e9("YOUR_DOWNLOADS",void 0,"Your downloads"));R=void 0;z.length>0?(R=void 0,_.U("kevlar_display_downloads_numbers")&&(R=_.JN(_.QC("VIDEO_COUNT",z.length))),R=TK8(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,J,R)):D||M.length||
X||(R={backgroundPromoRenderer:{bodyText:_.JN(_.e9("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}}}});Z?e.push({richSectionRenderer:{content:Z}}):B&&!_.U("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
R&&e.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:51721}}}});B&&_.U("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(z.length>0||D&&M.length>0&&!X)&&e.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.JN(_.e9("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:e}};
_.Xr3=function(M){return oUH(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.l9b=function(M){return oUH(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
oUH=function(M,z){var J=[];M=TK8(M,z,!0);J.push({richSectionRenderer:{content:M}});return{contents:J}};
TK8=function(M,z,J,R,D){J=J===void 0?!1:J;var N="RESPONSIVE_SIZE_STANDARD";_.U("kevlar_modern_downloads_compact")?N="RESPONSIVE_SIZE_COMPACT":_.U("kevlar_modern_downloads_extra_compact")&&(N="RESPONSIVE_SIZE_EXTRA_COMPACT");M={isExpanded:J,contents:Gy(M),entitySelectorType:z,responsiveContainerConfiguration:{responsiveSize:N}};R&&(M.title=R);D&&(M.subtitle=D);J||(_.U("kevlar_smart_downloads_show_more_button")?(M.showMoreButton={buttonRenderer:{accessibility:{label:_.e9("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.JN(_.e9("SHOW_MORE",void 0,"Show more"))}},M.showLessButton={buttonRenderer:{accessibility:{label:_.e9("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.JN(_.e9("SHOW_LESS",void 0,"Show less"))}}):(M.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.e9("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},M.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.e9("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},M.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.e9("VIEW_ALL",void 0,"View all"),accessibilityText:_.e9("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:_.Mv("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:M}};
Gy=function(M){var z=[];M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,X2R(J)){var R=z,D=R.push;var N=void 0;if(J==null?0:(N=J.videoEntity)==null?0:N.videoId){N=qv(_.rA().getState(),J.videoEntity.videoId);var Z=_.rA().getState();var B=_.Tr(J.videoEntity.videoId,"mainVideoEntity");Z=!!_.Yf(Z.entities)[B];Z={videoId:J.videoEntity.videoId,title:Rs(J.videoEntity.title),shortBylineText:Rs(J.channelEntity.title),thumbnail:J.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Z&&_.U("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:E73(J.videoEntity.videoId,N,J.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.e9("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};J.videoEntity.lengthSeconds&&(Z.thumbnailOverlays=K_o(J.videoEntity.lengthSeconds,N));Z.isWatched=N>0;_.U("kevlar_modern_downloads_page")&&(Z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:J.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.e9("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Z.badges=void 0);J=Z}else J={};D.call(R,{richItemRenderer:{content:{videoRenderer:J},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(o9H(J)){R=z;D=R.push;var O=B=N=void 0,X=void 0,l=void 0,e=void 0,Q=void 0,v=void 0,x=void 0,m=void 0,y=void 0,H=void 0;Z=J.mainPlaylistEntity.playlistId;var q=J==null?void 0:(H=J.mainPlaylistEntity)==null?void 0:(y=H.thumbnailStyleData)==null?void 0:(m=y[0])==null?void 0:(x=m.value)==null?void 0:(v=x.collageThumbnail)==
null?void 0:v.coverThumbnail;if(Z&&q){v=fpe(Z);!_.U("enable_offline_playlist_page")&&(J==null?0:(Q=J.mainPlaylistEntity)==null?0:Q.videos)&&(Q=J==null?void 0:(e=J.mainPlaylistEntity)==null?void 0:(l=e.videos)==null?void 0:l[0],l=_.kf(Q).entityId,l=JSON.parse(l).videoId,l!==void 0&&(e=qv(_.rA().getState(),l),v=_.zr(l,Z,void 0,void 0,e)));l=[];if(J==null?0:(X=J.mainPlaylistEntity)==null?0:(O=X.videos)==null?0:O.length)l=[QQe(),Object.assign({},(B=eyH(J==null?void 0:J.mainPlaylistEntity.videos.length))!=
null?B:{})];J={playlistId:Z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:q}},navigationEndpoint:v,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:l,title:Rs(J.mainPlaylistEntity.title),shortBylineText:Rs(J==null?void 0:(N=J.channelEntity)==null?void 0:N.title),badges:[{metadataBadgeRenderer:{label:_.e9("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.U("kevlar_modern_downloads_page")&&(J.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:eNp,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.e9("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},J.badges=void 0)}else J=void 0;D.call(R,{richItemRenderer:{content:{playlistRenderer:J},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return z};
Obc=function(M,z,J){M=M?Q18(M):"";z!==void 0&&isFinite(z)?z===0?z=_.e9("UPDATING",void 0,"Updating..."):(z=dnw(new Date(z),new Date),z=_.e9("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var R="";M&&z&&(R=" \u2022 ");if(J&&_.U("kevlar_display_downloads_numbers")){J=_.QC("VIDEO_COUNT",J);if(M||z)R=" \u2022 ";return J+R+M+R+z}return M+R+z};
UYn=function(M){return Pnc(M.entities).length};
_.vUc=function(M,z){var J=aj0(M.responsiveSize),R;M=!((R=M.responsiveMap)==null||!R.some(function(D){return D.containerSize==="CONTAINER_SIZE_NARROW"&&D.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:z,sizing:J,enableFullBleedForSingleCol:!1,isCompactList:J==="COMPACT"&&M}};
Go0=function(M,z){return _.Is(M.entities,"votingEntity",z)};
wrw=function(M){if(M){var z;return((z=_.JF().resolve(_.zw(_.Ah)))==null?0:z())?M.darkTheme:M.lightTheme}};
xY8=function(M,z){if(M.simpleText)return Object.assign({},M,{simpleText:EU(M.simpleText,z)});if(!M.runs)return M;for(var J=Object.assign({},M,{runs:[]}),R=0,D=_.S(M.runs),N=D.next();!N.done;N=D.next())if(N=N.value,N.text)if(R+N.text.length<=z)J.runs.push(N),R+=N.text.length;else return J.runs.push(Object.assign({},N,{text:EU(N.text,z-R)})),J;return M};
t2n=function(M,z){return _.Is(M.entities,"chipBarStateEntity",z)};
j1e=function(M,z){return _.Is(M.entities,"chipEntity",z)};
FlG=function(M,z,J,R){return function(){var D=prp.has(M.displayType)&&M.selected,N=D&&M.deselectCommand?M.deselectCommand:M.tapCommand;!N||D&&R||_.aE(N,{form:{element:z==null?void 0:z.value}});J==null||J()}};
Y6o=function(M){switch(M){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
mY8=function(M,z){return{triggeringElement:M,onDwellTriggeredFn:function(){var J={triggeringElement:M,loadVideoPreviewEventData:z},R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:J}))},
onDwellEndFn:function(){var J=document.querySelector(".video-preview");J&&J.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
gUR=function(M,z){var J=_.JF().resolve(_.zw(gZR)),R=function(){var D=z();return J&&D?mY8(M.value,D):null};
_.jP(function(){var D=R();J&&D&&Promise.resolve().then(function(){J.registerElement(D)});
_.pq(function(){J&&D&&Promise.resolve().then(function(){_.V9(J,D)})})},"csPUge")};
nU8=function(M){var z=M.dataset.resizeObserverId;if(z)return z;z=""+s1R++;return M.dataset.resizeObserverId=z};
hNp=function(M,z){var J=nU8(M);wF.has(J)||wF.set(J,new Set);wF.get(J).add(z);x8.has(J)&&z(Object.assign({},{target:M},x8.get(J)))};
yqc=function(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=nU8(z.target),R=Object.assign({},{target:z.target},x8.get(J));if(R!=null&&R.contentRect?R.contentRect.width!==z.contentRect.width||R.contentRect.height!==z.contentRect.height:1)for(x8.set(J,{borderBoxSize:z.borderBoxSize,contentBoxSize:z.contentBoxSize,contentRect:z.contentRect,devicePixelContentBoxSize:z.devicePixelContentBoxSize}),J=_.S(wF.get(J)||[]),R=J.next();!R.done;R=J.next())R=R.value,R(z)}};
cqG=function(){return tk?tk:tk=new Hbw(yqc)};
dY0=function(M,z){var J=nU8(M);wF.has(J)&&(wF.get(J).delete(z),wF.get(J).size===0&&(wF.delete(J),x8.delete(J),tk.unobserve(M),delete M.dataset.resizeObserverId));wF.size===0&&tk&&(tk.disconnect(),tk=void 0)};
$YH=function(M,z){var J=_.JF().resolve(zS);return Kle.map(function(R){return J.observe(M,z,R)})};
uN8=function(M){var z=_.JF().resolve(zS);M.forEach(function(J){z.unobserveByKey(J)})};
_.a9R=function(M,z){var J=Object.assign({},q6G,z);z=_.S(pb0());var R=z.next().value,D=z.next().value,N=function(Z){var B=Z.contentRect.height;if((Z=Z.contentRect.width)||B||J.canHaveZeroSize)R.width()===Z&&R.height()===B||D(R,{height:B,width:Z})};
_.mF(function(){var Z=M instanceof HTMLElement?M:M.value,B=Wlp(N,J.throttleMs),O=[];J.useVisibilityObserver&&(O=$YH(Z,function(X,l){requestAnimationFrame(function(){l==="visible"?(hNp(Z,B),cqG().observe(Z)):dY0(Z,B)})}));
O.length||(hNp(Z,B),cqG().observe(Z));_.pq(function(){O.length&&(uN8(O),O.length=0);dY0(Z,B)})});
return R};
EUw=function(M,z,J,R,D){M=z?M.switchOffCommand:M.switchOnCommand;if(R&&D)V2G(M,J,D);else{var N,Z;(N=_.qf({elementsCommand:M}))==null||(Z=N.onclick)==null||Z.call(N,J)}};
V2G=function(M,z,J){M=_.qf({elementsCommand:M,additionalCommandArgs:{commandController:{onSuccess:function(){J(!1)},
onServerError:function(){J(!1)}}}});
if(M==null?0:M.onclick)M.onclick(z),J(!0)};
Llo=function(M){if(M)return _.G(M,f9e)};
rqY=function(M,z,J){if(z)return[Aqc];switch(M){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[j4];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return J?[j4]:[ibp,j4];case "TRANSFER_STATE_PAUSED_BY_USER":return[C88,j4];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[bbY,j4];default:return[Aqc]}};
MVn=function(M,z,J,R){return rqY(M,z,R).map(function(D){var N=D.text,Z=D.iconType,B=D.videoAction;D=D.playlistAction;N=N?{content:N}:void 0;Z=Z&&{sources:[{clientResource:{imageName:Z}}]};var O=(0,_.gu.unsafeClone)(J);if(O){var X=_.G(O,_.lE),l=_.G(O,_.Q9);X&&B?X.action=B:l&&D&&(l.action=D)}return{title:N,leadingImage:Z,rendererContext:O&&{commandContext:{onTap:{innertubeCommand:O}}}}})};
zae=function(M){M=_.dZ(M.rendererContext);var z;return(z=_.G(M,_.Q9))==null?void 0:z.playlistId};
JRc=function(M){var z;return(z=M.listItems)==null?void 0:z.some(function(J){var R;return _.$C((R=_.G(J,_.YC))==null?void 0:R.rendererContext)})};
NOo=function(M){var z;return(z=M.listItems)==null?void 0:z.some(function(J){var R,D,N=(D=(R=_.G(J,Raw))==null?void 0:R.defaultListItem)!=null?D:J;J=_.G(N,_.YC);return!!_.G(J==null?void 0:J.leadingAccessory,DQ0)})};
Z$e=function(M){var z=M.element;var J=M.veType;var R=M.storedVisualElement===void 0?null:M.storedVisualElement;var D=M.elementIndex===void 0?0:M.elementIndex;M=M.clientYouTubeData;var N=_.y5();N!==PBw&&(Sin.clear(),PBw=N);if(z.visualElement&&Sin.has(z.visualElement))return null;if(R&&Sin.has(R))return z.visualElement=R,null;J=_.v5(_.Gm(),{veType:J,elementIndex:D,clientYouTubeData:M});if(!J)return null;z.visualElement=J;Sin.add(J);return J};
_.pr=function(M,z,J,R){J=J===void 0?null:J;R=R===void 0?L5w:R;var D=D===void 0?null:D;sU(function(){if(z){J instanceof Function&&(J=J());var N=Z$e({element:z,veType:M,storedVisualElement:J,clientYouTubeData:void 0});N&&(CXn(z,D),R(N))}})};
FB=function(M,z){if(M){switch(z){case 0:M=M.primaryTitleColor;break;case 1:M=M.secondaryTitleColor;break;case 2:M=M.surgeColor;break;case 3:M=M.section2Color;break;case 4:M=M.section3Color;break;default:return}if(M)return _.u7(M)}};
Y8=function(M,z){if(M){switch(z){case 0:M=M.primaryTitleColor;break;case 1:M=M.secondaryTitleColor;break;case 2:M=M.surgeColor;break;case 3:M=M.section2Color;break;case 4:M=M.section3Color;break;default:return}if(M)return _.u7(M)}};
k7R=function(M){return M?_.qG(M):""};
BOR=function(M){return(M==null?void 0:M.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
O$b=function(M,z){var J;return"linear-gradient(to bottom, "+((J=z==null?void 0:z.map(function(R){var D=M?R.darkThemeColor:R.lightThemeColor;return D?_.qG(D)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"}))==null?void 0:J.join(", "))+")"};
TO8=function(M,z,J,R,D){if(!((R==null?0:R.height)&&(R==null?0:R.width)))return{size:0};var N=R.width;R=R.height;if(D)return z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&N>R?{size:312/z68}:z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(J!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||M!==1&&M!==2||z!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&z!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&z!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||R===N)switch(M){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||R>N)switch(M){case 1:case 3:return{size:240*Mwn};default:return{size:360*Mwn}}switch(M){case 1:case 2:return{size:1/z68*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.IYe=function(M){if(!("matchMedia"in window))return _.WW(Error("Oh")),function(){return!1};
var z=window.matchMedia(M);M=_.S(_.kE(z.matches,void 0,"jLJc8e"));var J=M.next().value,R=M.next().value,D=function(N){R(N.matches)};
z.addEventListener?(z.addEventListener("change",D),_.pq(function(){z.removeEventListener("change",D)})):z.addListener&&(z.addListener(D),_.pq(function(){z.removeListener(D)}));
return J};
oL3=function(M){return M==="IMAGE_BANNER_STYLE_INSET"||M==="IMAGE_BANNER_STYLE_UNKNOWN"};
Xzn=function(){if(!("matchMedia"in window))return _.WW(Error("Oh")),function(){return 0};
var M=g3(function(){return window.matchMedia("(max-width: 527.9px)")}),z=g3(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),J=g3(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),R=g3(function(){return window.matchMedia("(min-width: 1024px)")}),D=_.S(_.kE(M.matches,void 0,"og9kEc")),N=D.next().value,Z=D.next().value;
D=_.S(_.kE(z.matches,void 0,"ybDWCb"));var B=D.next().value,O=D.next().value;D=_.S(_.kE(J.matches,void 0,"o0Gfh"));var X=D.next().value,l=D.next().value;D=_.S(_.kE(R.matches,void 0,"yqUUgd"));var e=D.next().value,Q=D.next().value,v=g3(function(){return function(H){Z(H.matches)}}),x=g3(function(){return function(H){O(H.matches)}}),m=g3(function(){return function(H){l(H.matches)}}),y=g3(function(){return function(H){Q(H.matches)}});
_.mF(function(){M.addEventListener?(M.addEventListener("change",v),z.addEventListener("change",x),J.addEventListener("change",m),R.addEventListener("change",y)):M.addListener&&(M.addListener(v),z.addListener(x),J.addListener(m),R.addListener(y));_.pq(function(){M.removeEventListener?(M.removeEventListener("change",v),z.removeEventListener("change",x),J.removeEventListener("change",m),R.removeEventListener("change",y)):M.removeListener&&(M.removeListener(v),z.removeListener(x),J.removeListener(m),
R.removeListener(y))})});
return function(){return N()?1:B()?2:X()?3:e()?4:0}};
lYn=function(M){var z=0;M=_.S([M.title,M.metadata,M.actions,M.description,M.attribution]);for(var J=M.next();!J.done;J=M.next())J.value&&z++;return z};
eap=function(M){return M===1||M===2?1:0};
UQb=function(M){var z,J=((z=_.JF().resolve(_.zw(_.Ah)))==null?0:z())&&M.data.darkThemeImage?M.data.darkThemeImage:M.data.image;z=_.T("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.T("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},J?_.T(_.rv,{data:J,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Q0w(M.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));J=_.T(_.m3,{text:M.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var R=M.data;if(R.bodyText){var D=[];R=_.S(R.bodyText);for(var N=R.next();!N.done;N=R.next())D.push(_.T(_.m3,{text:N.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else D=_.T(_.MH,null);return _.T("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},z,J,D,Q0w(M.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.T(_.m3,{text:M.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.T(_.m3,{text:M.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
G7p=function(M){M=(new vLw).parse(M);return(new oT).render(M).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(z){var J=z.split(":").map(Number),R=0,D=0;if(J.length===3)J=_.S(J),R=J.next().value,D=J.next().value,J=J.next().value;else if(J.length===2)J=_.S(J),D=J.next().value,J=J.next().value;else if(J.length===1)J=_.S(J).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(R*3600+D*60+J)+'" role="button">'+z+"</span>"})};
wzR=function(M){M=_.S(M.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var z=M.next(),J={};!z.done;J={clickHandler$jscomp$4:void 0},z=M.next()){z=z.value;J.clickHandler$jscomp$4=function(D){D=Number(D.target.getAttribute("data-time"));if(isNaN(D))throw Error("Qh");var N;(N=_.I9())==null||N.seekTo(D,!0)};
var R=function(D){return function(N){N.key!=="Enter"&&N.key!=="Space"||(0,D.clickHandler$jscomp$4)(N)}}(J);
z.setAttribute("tabindex","0");z.removeEventListener("click",J.clickHandler$jscomp$4);z.removeEventListener("keydown",R);z.addEventListener("click",J.clickHandler$jscomp$4);z.addEventListener("keydown",R)}};
xQ8=function(){return _.T("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.T(gF,{percentWidth:100}),_.T(gF,{animationDelay:200}),_.T(gF,{animationDelay:400}),_.T(gF,{animationDelay:600}),_.T(gF,{animationDelay:800,percentWidth:60}),_.T("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.T(gF,{percentWidth:100}),_.T(gF,{animationDelay:200}),_.T(gF,{animationDelay:400}),_.T(gF,{animationDelay:600,percentWidth:50}))};
gF=function(M){return _.T("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(M.percentWidth===void 0?100:M.percentWidth)+"%"},_.T("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(M.animationDelay===void 0?0:M.animationDelay)+"ms"}))};
tV0=function(){var M=_.S(_.kE(function(){return""},void 0,"v2wS5e")),z=M.next().value;
return[function(){return z()()},
M.next().value]};
j0G=function(M,z){M=M?Q18(M):"";z!==void 0&&isFinite(z)?z===0?z=_.e9("UPDATING",void 0,"Updating..."):(z=dnw(new Date(z),new Date),z=_.e9("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var J="";M&&z&&(J=" \u2022 ");return _.JN(M+J+z)};
YiH=function(M,z,J,R,D,N){z=z===void 0?0:z;var Z=pzn[z],B=Z.title,O=Z.iconType,X=Z.topButtonRenderer,l=Z.sectionClientVE;Z=Z.videoClientVE;var e;if(z!==1||M.length){J=[];M=_.S(M);for(R=M.next();!R.done;R=M.next()){var Q=R.value;if(X2R(Q))J.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Q.videoEntity.videoId,title:Rs(Q.videoEntity.title),shortBylineText:Rs(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.e9("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}}}});else if(o9H(Q)){R=J;var v=R.push;var x=void 0,m=void 0,y=void 0,H=void 0,q=void 0,b=void 0,V=void 0,E=void 0,L=Q.mainPlaylistEntity.playlistId,z8=Q==null?void 0:(E=Q.mainPlaylistEntity)==null?void 0:(V=E.thumbnailStyleData)==null?void 0:(b=V[0])==null?void 0:(q=b.value)==null?void 0:(H=q.collageThumbnail)==null?void 0:H.coverThumbnail;H=fpe(L);if(!_.U("enable_offline_playlist_page")&&
(Q==null?0:(y=Q.mainPlaylistEntity)==null?0:y.videos)){b:{y=Q==null?void 0:(m=Q.mainPlaylistEntity)==null?void 0:m.videos;m=_.rA().getState().entities;if(y!=null&&y.length&&m)for(y=_.S(y),q=y.next();!q.done;q=y.next())if(q=_.kf(q.value).entityId,(q=JSON.parse(q).videoId)&&DJ8(m,q)==="TRANSFER_STATE_COMPLETE"){m=q;break b}m=""}m!==void 0&&(H=qv(_.rA().getState(),m),H=_.zr(m,L,void 0,void 0,H))}m=ATY(_.e9("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),fpe(L));Q=L&&z8&&m?{playlistId:L,navigationEndpoint:H,
viewPlaylistText:m,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:z8}},title:Rs(Q.mainPlaylistEntity.title),shortBylineText:Rs(Q==null?void 0:(x=Q.channelEntity)==null?void 0:x.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:FIc,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.e9("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}:
void 0;v.call(R,{gridPlaylistRenderer:Q})}}Z={gridRenderer:{items:J}};z===1&&(e=j0G(D,N))}else if(R){var O8=_.JN((v=J==null?void 0:J.localizedPromptMessage)!=null?v:"");Z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.JN(_.e9("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.n98}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.JN(_.e9("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};e=j0G(D,N)}else O8=_.JN(_.e9("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Z={};return{contents:[{shelfRenderer:{title:B,titleAnnotation:e,icon:{iconType:O},subtitle:O8,content:Z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:X}]}}}}],loggingDirectives:{clientVeSpec:{uiType:l}}}};
mQw=function(M,z,J,R,D,N,Z,B,O,X,l){J=J===void 0?{}:J;R=R===void 0?{}:R;D=D===void 0?!1:D;N=N===void 0?!1:N;Z=Z===void 0?!1:Z;B=B===void 0?!1:B;O=O===void 0?!1:O;X=X===void 0?0:X;l=l===void 0?-Infinity:l;if(!(z.length||M.length||D||B))return N?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:NKG(J)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.JN(_.e9("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 e=[];M.length&&e.push(YiH(M,0));B?e.push({contents:[{statementBannerRenderer:BK3(O,R)}]}):D?e.push(YiH(z,1,J,Z,X,l)):N&&e.push({contents:[{statementBannerRenderer:S6p(J)}]});(D&&z.length||M.length)&&e.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.JN(_.e9("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 e.map(function(Q){return{itemSectionRenderer:Q}})};
sm=function(M,z){if(typeof M!=="object")return null;M=_.S(Object.entries(M));for(var J=M.next();!J.done;J=M.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;if(J===z)return J;if(R=sm(R,z))return J+"."+R}return null};
nr=function(M){var z=M.content;return(M=M.styleRuns)&&z?{runs:M.map(function(J){var R={text:z.slice(J.startIndex,J.startIndex+J.length)};J.fontColor&&(R.textColor=J.fontColor);return R})}:{simpleText:z}};
nLe=function(M,z,J,R){var D=gLY;R&&(M.quantity=R);if(!M.quantity||!M.maxQuantity)return{};R=M.minusButton;var N=M.plusButton,Z,B,O,X;return{value:M.quantity,maxValue:M.maxQuantity,onChangeCallback:function(l){D(M,l)},
minusLabel:(Z=_.G(R,s0R))==null?void 0:Z.label,minimumReachedLabel:(B=_.G(R,s0R))==null?void 0:B.limitReachedLabel,plusLabel:(O=_.G(N,s0R))==null?void 0:O.label,maximumReachedLabel:(X=_.G(N,s0R))==null?void 0:X.limitReachedLabel,disabled:z,onRemoveCommand:J}};
gLY=function(M,z){var J=M.quantityIncrementerEntityKey;if(J){var R={};R.quantity=z;_.Cd(_.hk("quantityIncrementerEntity",J,R));M.onChangeCommand&&_.aE(M.onChangeCommand)}};
H$n=function(M,z){(M=ha8(M))&&(z?yRc.push({command:M,sourceData:{},commandContext:void 0}):_.JF().resolve(_.Rb).resolveCommand(M))};
ha8=function(M){return _.G(M,_.dv)};
cR8=function(){var M=window.performance.timeOrigin+window.performance.now(),z=(new _.yL).setSeconds(M/1E9);return _.Ai(z,2,_.bJ(M%1E9),0)};
KIc=function(M,z){var J;M=(J=_.G(_.G(M,_.dv),dQY))==null?void 0:J.methodName;var R,D;(J=window.youtubewebview||((R=window.webkit)==null?void 0:(D=R.messageHandlers)==null?void 0:D.youtubewebview))&&M&&(R=new HX,M=_.G$(R,1,M),M=_.YG(M.JSC$12301_serializeBinary()),z=_.YG(z),J.postMessage(M+","+z))};
cX=function(M,z){var J=_.G(_.G(M,_.dv),dQY);J&&(z&&(J.serializedAdditionalMetadata=_.YG(z)),H$n(M,!0))};
$QG=function(M){switch(M){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
uv0=function(){return!!_.HW("ID_TOKEN")};
aYG=function(M){return M instanceof Error&&M.cause instanceof qiG&&M.cause.rpcErrorCode!==void 0?!WI0.includes(M.cause.rpcErrorCode):!0};
ELn=function(){return _.Ag(VVn,{authuser:""+(_.HW("SESSION_INDEX")||0)})};
dF=function(M,z,J,R){J=J===void 0?"MINI_APP_SDK_API_UNSPECIFIED":J;R=R===void 0?"":R;var D=new _.xN;J={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:R,sdkApi:J};M instanceof Error&&(D.message=M.message,D.name=M.name,M.cause instanceof qiG&&M.cause.rpcErrorCode!==void 0&&(J.rpcErrorCode=M.cause.rpcErrorCode));var N;(N=z.onError)==null||N.call(z,{loggingError:D,metadata:J})};
LI3=function(M,z,J,R){switch(M){case "MINI_APP_SOURCE_GAMESNACKS":return new Kr(z,J,R);default:return new fYn(z,J,R)}};
AR0=function(M){switch(M){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
i$w=function(M){switch(M){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
CBw=function(M){switch(M){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
b$3=function(){return Math.floor(Math.random()*4)+1};
rRe=function(M,z,J,R){M=_.S(Object.entries(M));for(var D=M.next(),N={};!D.done;N={message$jscomp$990:void 0},D=M.next()){var Z=_.S(D.value);D=Z.next().value;Z=Z.next().value;N.message$jscomp$990=Z;z.push(setTimeout(function(B){return function(){R(!1);J(B.message$jscomp$990.text)}}(N),N.message$jscomp$990.delayMs));
Number(D)>0&&z.push(setTimeout(function(){R(!0)},N.message$jscomp$990.delayMs-400))}};
Mvw=function(M,z){var J=J===void 0?L5w:J;_.U("mweb_fix_monitor_visibility_after_render")?M&&sU(function(){CXn(M,z,J)}):sU(function(){CXn(M,z,J)})};
Jl3=function(M){var z=M.data;var J=M.uniqueId;M=M.overrides;var R,D=((R=z.timedAnimationData)==null?void 0:R.animationTiming)||[];return _.T("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.T($8,{settings:{uniqueId:J,timings:D,experimentEnabled:D.length>0,enabled:D.length>0}},zPp(z.buttonRenderer,{buttonRenderer:{buttonOverrides:M}})))};
Pe0=function(M){RPe||(RPe=Dlp(new _.as(1,void 0,void 0,NzR),0));var z=RPe.format(Math.floor(M));z=_.WA==="be"||_.WA==="bg"||_.WA==="es"||_.WA==="et"||_.WA==="hu"||_.WA==="ka"||_.WA==="lv"||_.WA==="pl"||_.WA==="pt-PT"||_.WA==="sq"?z.replace(new RegExp("^(\\d)"+NzR.GROUP_SEP.replace(".","\\.")+"(\\d+("+NzR.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):z;return M>=1E3&&M<=9999&&z[1]==="."&&(_.WA==="sl"||_.WA==="it")?z.replace(".",""):z};
SpH=function(M,z){ocp("ytd-button-renderer",{data:M,className:z?z.className:"",overrides:z==null?void 0:z.buttonOverrides},F6n)};
Bze=function(M,z,J,R){if(M)return R=R||M.likeStatus,z?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="LIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:J},defaultText:R==="LIKE"?M.likeCountWithUnlikeText:M.likeCountText,toggledText:R==="LIKE"?M.likeCountText:M.likeCountWithLikeText,defaultNavigationEndpoint:ZIY(M,"LIKE"),defaultServiceEndpoint:kKG(M,"LIKE"),toggledServiceEndpoint:kKG(M,"INDIFFERENT"),defaultTooltip:_.CD(M.likeCountTooltipText),toggledTooltip:_.CD(M.likeCountTooltipText),
targetId:M.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="DISLIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:J},defaultText:R==="DISLIKE"?M.dislikeCountWithUndislikeText:M.dislikeCountText,toggledText:R==="DISLIKE"?M.dislikeCountText:M.dislikeCountWithDislikeText,defaultNavigationEndpoint:ZIY(M,"DISLIKE"),defaultServiceEndpoint:kKG(M,"DISLIKE"),toggledServiceEndpoint:kKG(M,"INDIFFERENT"),defaultTooltip:_.CD(M.dislikeCountTooltipText),
toggledTooltip:_.CD(M.dislikeCountTooltipText)}};
ZIY=function(M,z){if(z==="LIKE")return M.likeCommand;if(z==="DISLIKE")return M.dislikeNavigationEndpoint};
kKG=function(M,z){var J;return(J=M.serviceEndpoints)==null?void 0:J.find(function(R){var D;return((D=_.G(R,_.uf))==null?void 0:D.status)===z})};
_.I5o=function(M,z,J){return window.spf&&!_.U("web_disable_spfjs_client")?OIH(M,z,J):TzR(M,z)};
OIH=function(M,z,J){var R=null,D=(new _.If(function(N,Z){var B={};if(z){B.method=z.method;var O=z.postParams||{};V9e(M,z)&&(O[_.HW("XSRF_FIELD_NAME")]=_.HW("XSRF_TOKEN"));B.postData=_.Xh(O);z.type&&(B.type=z.type);O=z.headers}B.headers=KVH(M,O);_.U("debug_forward_web_query_parameters")&&(M=_.WVR(M,window.location.search));B.experimental_headers=B.headers;B.onError=function(X){X.err&&X.xhr&&(X.err.params={url:X.xhr.responseURL,response:X.xhr.responseText.substr(0,64)});Z(X.err)};
B.onPartDone=function(X){J&&J.call(null,X.part)};
B.onDone=function(X){var l=o38(X.response,"xsrf_token");bi(window.location.href,M)&&l&&_.yU("XSRF_TOKEN",l);if(l=o38(X.response,"service_worker_killswitch"))_.yU("SERVICE_WORKER_KILLSWITCH",l),YLH();N(X.response)};
R=spf.request(M,B)})).then(XQG);
D.thenCatch(function(N){var Z=N instanceof _.q9,B=N&&N.hasOwnProperty("params")&&N.params.response?N.params.response:"";N instanceof Error&&(B?Z?FnY(N):B===')]}\'\n{"reload":"now"}'?FnY(N):(l5p(N,M,B),ePb(N,B)?_.yA(N):_.nc(N)):FnY(N));R&&R.abort()});
return D};
XQG=function(M){if(M.type==="multipart"){var z=M.timing;M=M.parts.reduce(function(J,R){Object.assign(J,R);return J},{});
M.timing=M.timing||{};Object.assign(M.timing,z);M.type="reduced"}return M};
TzR=function(M,z){z=z===void 0?{}:z;var J=null,R=new _.If(function(D,N){z.onFinish=function(Z){if(Z.readyState===XMLHttpRequest.DONE)if(Z.status===200){if(Z.responseType!=="json"){var B=Z.response;B.substring(0,5)===")]}'\n"&&(B=B.substring(5));try{var O=JSON.parse(B)}catch(X){O=X}}else O=Z.response;O instanceof Error?N(O):(B=o38(O,"xsrf_token"),bi(window.location.href,M)&&B&&_.yU("XSRF_TOKEN",B),Z=Z.responseURL,window.performance&&window.performance.getEntriesByName?(B=window.performance.getEntriesByName(Z).pop())?
Z={responseStart:(0,_.zU)()-(B.responseEnd-B.responseStart)}:(Math.random()<.01&&(B=Error("bi"),B.params=Z,_.yA(B)),Z={responseStart:-1}):Z={responseStart:0},O.timing=O.timing||{},Object.assign(O.timing,Z),D(O))}else N(Error("ai`"+Z.status))};
(J=_.ob(M,z))||N(Error("ai`"+J.status))});
R.thenCatch(function(D){D instanceof Error&&(l5p(D,M),ePb(D)&&(D.level="WARNING"))});
_.U("cancel_pending_navs")&&R.thenCatch(function(){J.abort()});
return R};
o38=function(M,z){var J=M[z],R=M.parts;M.type==="multipart"&&R&&(J=(M=R.find(function(D){return z in D}))&&M[z]);
return J};
l5p=function(M,z,J){var R=M.message||"";z={original:R,url:z};if(J)if(R=R.match(/position:?\s*(\d+)/)){R=R&&Number(R[1])?Number(R[1]):0;var D=Math.max(R-25,0);z.position=R;z.response=J.substring(D,R+25)}else z.response=J.substring(0,50);_.Hb(M,z);try{M.message="JSON parse error"}catch(N){}};
ePb=function(M,z){M=M.message||"";M=!!(M.indexOf("<")>=0||M.indexOf("end of ")>=0||M.indexOf("Unterminated string")>=0||M.indexOf("Unexpected EOF"));if(!M&&z)for(var J=z.length,R=!1,D=0;D<J;D++)if(R&&z[D]==="\\")D++;else if(z[D]==='"')R=!R;else if(z[D]==="<"&&!R){M=!0;break}return M};
QDw=function(){return document.documentElement.hasAttribute("dark")};
_.Ul3=function(M,z){if(M!=="GFEEDBACK"&&M!=="GUIDED_HELP")_.$y(Error("ci`"+M));else{var J=_.JF().resolve(_.zw(_.M6));if(J&&(J=J.getCurrentPage())&&J.getServiceTrackingParams&&(J=J.getServiceTrackingParams()))for(var R=0,D;D=J[R++];)if(D.service===M){if(M=D.params)for(J=0;R=M[J++];)z[R.key]=R.value;break}}};
_.v3e=function(M){var z=_.J_();z&&(z=z.getPlayer())&&(z.pauseVideo(),M.playback_id=z.getVideoData().cpn,M.eid=z.getVideoData().eventId,Object.assign(M,z.getFeedbackProductData()))};
GKp=function(){var M={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.HW("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(M.enableAnonymousFeedback=!0);_.HW("SESSION_INDEX")&&(M.authuser=String(_.HW("SESSION_INDEX")));_.U("enable_pageid_for_feedback")&&_.HW("DELEGATED_SESSION_ID")&&(M.pageId=String(_.HW("DELEGATED_SESSION_ID")));return M};
_.WX=function(M){_.U("enable_ypc_spinners")&&_.S9(M,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},M])};
_.aZ=function(M){_.U("enable_ypc_spinners")&&_.S9(M,"yt-close-popup-action",["yt-loading-renderer"])};
wQR=function(M){return new Promise(function(z,J){_.u5({verifyCommand:{recaptchaToken:M.recaptchaResponse}},{commandController:{onSuccess:function(R,D){D||J("ChallengeService did not return a response.");var N;z({challengeCompleted:(N=D.verified)!=null?N:!1})},
onServerError:function(R,D){J(D)}}})})};
xl0=function(M,z,J,R){z({recaptchaResponse:R}).then(function(D){D.challengeCompleted?_.vJ()?(J(3),_.JF().resolve(_.Rb).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:M}})):J(2):J(4)},function(){J(4)})};
jDo=function(M,z,J){_.qI(_.Nx(tve,_.HW("HL")),function(){var R;(R=window.grecaptcha)==null||R.ready(function(){var D=window.grecaptcha;D?(J(D.render(M,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:xl0.bind(null,M,wQR,z)})),z(1)):z(4)})})};
pQH=function(M,z){return function(){switch(z()){case 0:return M().captchaLoadingMessage;case 1:return M().challengeReason;case 3:return M().captchaSuccessfulMessage;case 2:return M().captchaCookieSetFailureMessage;case 4:return M().captchaFailedMessage;default:return M().challengeReason}}()};
_.VL=function(){if(!FPY){var M=document.querySelector("#player.skeleton");M&&(_.eJ(M),FPY=!0)}};
_.mlb=function(){return Yp8=YP0()};
n3o=function(){return _.k(function(M){return g3p!==void 0?M.return():M.yield(sDe(),0)})};
sDe=function(){return _.k(function(M){if(M.nextAddress==1)return M.yield(g1c(),2);Yp8=M.yieldResult;g3p=_.no.addLowPriorityJob(sDe,5E3);_.UI(M)})};
KP8=function(M){var z=z===void 0?hPH:z;var J,R,D=(J=M.responseContext)==null?void 0:(R=J.mainAppWebResponseContext)==null?void 0:R.trackingParam;if(!D){z.increment("MISSING");var N,Z,B,O,X,l;_.yA(new _.xN("282054944_a",{uVg:!!((N=M.responseContext)==null?0:(Z=N.mainAppWebResponseContext)==null?0:Z.loggedOut),fWM:((B=M.responseContext)==null?void 0:B.mainAppWebResponseContext)===void 0,xPr:M.responseContext===void 0,cp:(O=M.playabilityStatus)==null?void 0:O.contextParams,sbg:(((X=M.streamingData)==
null?void 0:X.formats)||[]).length>0,zZx:(((l=M.streamingData)==null?void 0:l.adaptiveFormats)||[]).length>0,os:!!M.offlineState,cotn:M.cotn}));return 2}J="";try{J=yle(D)}catch(v){return z.increment("C_ERROR"),_.nc(v),2}try{var e=_.HIw(J);var Q=clH(e)}catch(v){return z.increment("P_ERROR"),_.nc(v),2}Q=_.zz(Q,dlY,1,_.JK());D=[];Q=_.S(Q);for(e=Q.next();!e.done;e=Q.next())R=e.value,e=R.getPath(),J=(0,_.gu.getValueByKeys)(M,e.split(".")),J=String(J===void 0||J===null?"":J),R=R.getValue()||"",N=/[+\-\/_]/g,
J.replace(N,"")!==R.replace(N,"")&&(z.increment("MISMATCH"),_.U("ab_mis_log_err")&&(J=new _.xN("282054944_p",{nGP:e,g:String(J),e:String(R)}),_.nc(J)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(e)||(e.match(/enforcementMessageViewModel/i)?D.push(3):D.push(2)));if(D.length>0)return Math.max.apply(Math,_.Yj(D));z.increment("SUCCESS");return 1};
qp3=function(M){var z=new Em;if(M.interpreterJavascript){var J=_.vzG(M.interpreterJavascript);J=NVc(J).toString();var R=new $lH;_.G$(R,6,J);_.or(z,1,R,m$)}else M.interpreterUrl&&(J=_.ho(M.interpreterUrl),J=_.xq(J).toString(),R=new _.uOo,_.G$(R,4,J),_.or(z,2,R,m$));M.interpreterHash&&_.fr(z,3,M.interpreterHash,m$);M.program&&_.fr(z,4,M.program,m$);M.globalName&&_.fr(z,5,M.globalName,m$);M.clientExperimentsStateBlob&&_.fr(z,7,M.clientExperimentsStateBlob,m$);return z};
Lr=function(M){var z={};M=_.S(M.split("&"));for(var J=M.next();!J.done;J=M.next())J=J.value.split("="),J.length===2&&(z[J[0]]=J[1]);return z};
WP3=function(M){return Number(M.t)||7200};
FFb=function(){if(_.U("bg_st_hr"))return"havuokmhhs-0";var M,z=((M=performance)==null?void 0:M.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)};
a5R=function(){return new Promise(function(M){var z=window;z.ntpevasrs!==void 0?M(new Ak(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(J){M(new Ak(J))}))})};
Vvp=function(M){var z=M.rif.bind(M);_.b9("yt.aba.att",z);M=M.s3i.bind(M);_.b9("yt.aba.att2",M)};
f5G=function(M){switch(_.Ib(M.input)){case _.MG(E3p):var z={};return z.encryptedVideoId=M.innerTubeRequest.externalVideoId,z}return{}};
iIp=function(M){switch(_.Ib(M.input)){case _.MG(E3p):if(_.U("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.MG(LPY):if(_.U("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.MG(Cr):if(_.U("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&M.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.MG(AlY):var z,J;if(_.U("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((J=_.G((z=M.config)==null?void 0:z.command,y0n))==null?0:J.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.bIp=function(M){var z;if(M.playlistVideoRenderer&&((z=M.playlistVideoRenderer)==null?0:z.engagementBar))return Cep(M.playlistVideoRenderer.engagementBar);if(_.G(M,bf)){var J;if(M=(J=_.G(M,bf))==null?void 0:J.engagementBar)return Cep(M)}return""};
Cep=function(M){if(!M)return"";M=_.G(M,_.rlo);if(M==null||!M.actions)return"";M=_.S(M.actions);for(M=M.next();!M.done;M=M.next()){M=_.G(M.value,_.MMR);var z=void 0;if((z=M)==null||!z.itemId)break;return M.itemId}return""};
_.zmR=function(M){var z;if(M.playlistVideoRenderer&&((z=M.playlistVideoRenderer)==null?0:z.videoId))return M.playlistVideoRenderer.videoId;if(_.G(M,bf)){var J,R;if(M=(J=_.G(M,bf))==null?void 0:(R=J.playlistItemData)==null?void 0:R.videoId)return M}return""};
_.JO8=function(M){var z;if(M.playlistVideoRenderer&&((z=M.playlistVideoRenderer)==null?0:z.voteCount))return M.playlistVideoRenderer.voteCount;if(_.G(M,bf)){var J,R;if(M=(J=_.G(M,bf))==null?void 0:(R=J.playlistItemData)==null?void 0:R.voteCount)return M}return 0};
_.rF=function(M,z){return _.Is(M.entities,"flowStateEntity",z)};
Dq3=function(M,z,J,R){var D=void 0;M=_.S(M[z.iconName]||[]);for(var N=M.next();!N.done;N=M.next()){N=N.value;var Z=z.iconSize;var B=z.iconStyle;Z=!Z||Z===N[2];var O=RmH[N[0]];R&&R!==N[1]||!Z||B&&B!==O?B=!1:D?(B=RmH[N[0]],B=!!z.iconStyle||B==="youtube_outline",Z=D.version<=N[1],B=(!!z.iconSize||N[2]===24)&&B&&Z):B=!0;B&&(D={name:z.iconName,style:RmH[N[0]],size:N[2],version:N[1],allowMirroring:!!N[3],url:J(z.iconName,N)})}return D};
N8Y=function(M,z,J,R){return M+(""+RmH[J[0]]+((R===void 0?0:R)?"_experimental":"")+"/"+z+"/v"+J[1]+"/")+(J[2]+"px.svg")};
Pu3=function(M){return _.HW("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":M};
STR=function(M,z){return N8Y("https://fonts.gstatic.com/s/i/",M,z)};
ZBH=function(M,z){return N8Y("https://fonts.gstatic.com/s/i/",M,z,!0)};
keG=function(M,z){return N8Y("https://www.gstatic.com/youtube/img/icons/web/",M,z)};
OB0=function(M){var z=M.enabled;var J=M.itemPlaybackModel;var R=M.thumbnailElRef;var D=M.containerElRef;var N=M.options;var Z;_.jP(function(){var B=D==null?void 0:D.value;var O,X=(O=R())==null?void 0:O.value;O=J();var l=N();if(z&&O&&B&&X&&(l==null?0:l.thumbnail)){var e={data:O,hostElement:B},Q,v,x=_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover")?[].concat(_.Yj((Q=l.thumbnailOverlays)!=null?Q:[]),_.Yj((v=O.overlays)!=null?v:[])):l.thumbnailOverlays||[],m,y;B={mediaRenderer:e,
lockupElement:B,thumbnailElement:X,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.$S((m=O.inlinePlayerData)==null?void 0:m.onVisible),navigationEndpoint:_.$S((y=O.inlinePlayerData)==null?void 0:y.onSelect),thumbnail:l.thumbnail,thumbnailOverlays:x,accessibilityText:l.accessibilityText||""},thumbnailSize:l.thumbnailSize,enableRounding:l.enableRounding}}}else B=void 0;if(m=B){var H;(H=Z)==null||M5(H);Z=Wn(m);var q,b;((q=J())==null?0:(b=q.inlinePlayerData)==null?0:b.forceImpAutoplay)&&
B8b(Z)}},"B33dEc");
_.pq(function(){var B;(B=Z)==null||M5(B)})};
T8n=function(M){M=atob(M);for(var z=[],J=0;J<M.length;J++)z.push(M.charCodeAt(J));return new Blob([new Uint8Array(z)],{type:"image/png"})};
o68=function(M,z,J,R){R=R===void 0?"INSERTION_POSITION_UNSPECIFIED":R;return M({targetId:z},function(D){var N,Z=(N=D.contents)!=null?N:[];N=J!=null?J:[];var B=I$8(Z);switch(R){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},D,{contents:[].concat(_.Yj(Z.slice(0,B)),_.Yj(N),_.Yj(Z.slice(B+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},D,{contents:[].concat(_.Yj(N),_.Yj(Z))});case "INSERTION_POSITION_LAST":return Object.assign({},D,{contents:[].concat(_.Yj(Z),_.Yj(N))});
default:return D}})};
l$p=function(M,z,J,R,D){D=D===void 0?"RELATIVE_INSERTION_POSITION_AFTER":D;return M({targetId:z},function(N){var Z,B=(Z=N.contents)!=null?Z:[];Z=Xie(B,J);if(Z<0)return N;Z=D==="RELATIVE_INSERTION_POSITION_BEFORE"?Z:Z+1;return Object.assign({},N,{contents:[].concat(_.Yj(B.slice(0,Z)),_.Yj(R),_.Yj(B.slice(Z)))})})};
I$8=function(M){var z=M.findIndex(function(J){return _.G(J,_.z0)});
return z>=0?z:M.length};
Xie=function(M,z){return M.findIndex(function(J){a:{J=_.S(Object.values(J));for(var R=J.next();!R.done;R=J.next())if((R=R.value)&&R.targetId){J=R.targetId;break a}J=""}return J===z})};
Qeb=function(M,z,J){return M({targetId:z},function(R){var D,N=(D=R.contents)!=null?D:[];return Object.assign({},R,{contents:emw(N,J)})})};
emw=function(M,z){return M.filter(function(J){var R=z.includes;a:{J=_.S(Object.values(J));for(var D=J.next();!D.done;D=J.next())if((D=D.value)&&D.targetId){J=D.targetId;break a}J=""}return!R.call(z,J||"")})};
_.Uqe=function(M,z){return{engagementPanelSectionListRenderer:{panelIdentifier:M,identifier:z,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
v6w=function(M,z){M=M.getAvailableAudioTracks();if(M.length)return M==null?void 0:M.find(function(J){var R;return(J==null?void 0:(R=J.getLanguageInfo())==null?void 0:R.getId())===z})};
_.wio=function(M){var z,J=(z=M.getOption("captions","tracklist",{includeAsr:!0}))!=null?z:[];return J=Geo(J,M)};
xqe=function(M){return M.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Geo=function(M,z){z=xqe(z);if(z==null||!z.length)return M;var J=z.filter(function(Z){return Z});
z=M.filter(function(Z){return Z.languageCode.startsWith("en")});
J=_.S(J);for(var R=J.next();!R.done;R=J.next())if(R=R.value,z.length){var D=z[0],N=Object.assign({},D);D.languageCode!==R.languageCode&&(N.displayName=D.languageName+" >> "+R.languageName,N.translationLanguage=R,M.push(N))}return M};
tMn=function(M,z,J){M=_.wio(M);if(M.length)return J?M.find(function(R){if(typeof(R==null?void 0:R.translationLanguage)==="object"){var D;return((D=R.translationLanguage)==null?void 0:D.languageCode)===z}return!1}):M==null?void 0:M.find(function(R){return R.languageCode===z})};
jeG=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
piY=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
F18=function(M){var z=piY(M);if(z==null?0:z.length)return z;M.loadModule("captions");return piY(M)};
YTp=function(M){var z=M.getOption("captions","track");if(z)return z;M.loadModule("captions");return M.getOption("captions","track")};
g6p=function(M){var z=F18(M);if(z!=null&&z.length){var J=YTp(M),R;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.e9("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(J==null?0:J.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Yj(z.map(function(D){return{listItemViewModel:{title:{content:D.displayName},
isSelected:D.displayName===(J==null?void 0:J.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:D.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.e9("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!J.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!J.translationLanguage&&{selectionText:{content:(J==null?void 0:(R=J.translationLanguage)==null?void 0:R.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[mqo(M)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
mqo=function(M){var z=xqe(M);if(z==null||!z.length)throw Error("Bi");var J=YTp(M);M=z.filter(function(R){return!R.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Yj(M.map(function(R){var D;return{listItemViewModel:{title:{content:R.languageName},isSelected:R.languageName===(J==null?void 0:(D=J.translationLanguage)==null?void 0:D.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
yOY=function(M){return new Promise(function(z,J){if(M===void 0)_.nc(Error("Fi"),"ERROR"),J(Error("Fi"));else{J=new _.sec;var R=_.n6n();J=J.init();var D=_.hmw(_.HW("YPC_MB_URL"),!0);Promise.all([J,D]).then(function(){var N=payments.business.integration.ClientTokenFactory.createClientToken(M,R);z(N)})}})};
dqp=function(M,z,J,R,D,N,Z){var B=_.Ln();J=J.replace(/-/g,"+").replace(/_/g,"/");var O=_.vv().get("hl"),X=_.Jx(_.i7),l=z==null?void 0:z.element;l&&_.WX(l);HB8(z,!0);_.cO8(X,J,B.resolve,function(){l&&_.aZ(l)},function(e){l&&_.aZ(l);
B.reject(e)},O,R?function(e){R&&_.fn(M,R,{backend_analytics:e})}:void 0,B.resolve,D,N,Z);
return B.promise};
HB8=function(M,z){!(M=M==null?void 0:M.element)||M.tagName!=="YT-BUTTON-RENDERER"&&M.tagName!=="YTD-BUTTON-RENDERER"||(M.disabled=z)};
K1p=function(){var M=_.e9("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.JN(M),actionButton:{buttonRenderer:JqY()}}},popupType:"TOAST"}};
$qp=function(){var M=_.e9("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.JN(M),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
uu8=function(M){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M}]}}};
Rh=function(M,z,J,R){var D;return _.k(function(N){if(N.nextAddress==1)return _.Io(N,2),N.yield(M,4);if(N.nextAddress!=2)return(D=_.jg(z.getState().entities).length>0)?N.return({title:_.JN(_.e9("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.JN(_.e9("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:zN8()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
N.return(RN8(J,R));_.Qa(N);return N.return(RN8(J,R))})};
qTw=function(M,z){return z?z==="PPSV"||Sbc(M,z):!1};
W1e=function(M){M.responseContext||(M.responseContext={});M.responseContext.maxAgeSeconds=0;return M};
N5=function(M){var z;return _.k(function(J){return J.nextAddress==1?J.yield(a$b(M,"service:topbar:fallback"),2):(z=J.yieldResult)&&_.Dz(z)?J.return(W1e(_.Dz(z))):J.return()})};
VMG=function(M){var z;return _.k(function(J){return J.nextAddress==1?J.yield(a$b(M,"service:downloads_settings:fallback"),2):(z=J.yieldResult)&&_.Dz(z)?J.return(z):J.return()})};
a$b=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)return M?R.yield(M.get(z),2):R.return();J=R.yieldResult;return!J||!_.Dz(J)||!isNaN(Number(J.data.expireTimestampMs))&&J.isExpired()?R.return():R.return(J)})};
E6e=function(M){var z=_.JF().resolve(Pf).getState().entities;return M.playlistId?qTw(z,M.playlistId):!1};
f$R=function(M,z){var J;if(z==null?0:(J=z.requestTemplate)==null?0:J.panelId)M.panelId=z.requestTemplate.panelId;var R;if(z==null?0:(R=z.requestTemplate)==null?0:R.params)M.params=z.requestTemplate.params};
AO0=function(){if(L18)return L18();var M=!_.U("idb_response_store_auth_killswitch"),z={};L18=Mc("yt-it-response-store",{objectStores:(z.ResponseStore={addedAtVersion:1},z),shared:!M,upgrade:function(J,R){R(1)&&(J=$_(J,"ResponseStore",{keyPath:["key","clientName"]}),uD(J,"byExpiration","expireTimestampMs"),uD(J,"byInterface","clientName"))},
version:1});return L18()};
iBw=function(M){return _.E7(AO0(),M)};
bBG=function(M,z){var J;return _.k(function(R){return R.nextAddress==1?R.yield(_.rQ(),2):(J=R.yieldResult)?R.return(new Cu8(M,z,J)):R.return()})};
rOn=function(M){var z=Object.keys(M)[0];if(z)return M.screenExit&&(z=z+";"+M.screenExit.screen),z};
MZc=function(M){var z=new Map;M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,J!=null&&(z.has(J.taskType)||z.set(J.taskType,[]),z.get(J.taskType).push(J));return z};
zC8=function(M){return!isNaN(M)&&M>0};
J6R=function(M){M=[].concat(_.Yj(M)).sort(function(J,R){return J-R});
var z=Math.floor(M.length/2);return M.length%2?M[z]:(M[z-1]+M[z])/2};
NUp=function(M,z){M=M===void 0?TZH:M;z=z===void 0?{}:z;_.b9("yt.logging.errors.log",_.nc);BZn();RCp(e$G(),z);window.onerror=M;Dg3=Ofp;window.addEventListener("unhandledrejection",function(J){if(J.reason instanceof Error){var R=J.reason;_.Hb(R,{source:"unhandledrejection"});R.name==="AbortError"&&(R.level="WARNING")}Ofp(J.reason);J.preventDefault()})};
_.Pzw=function(M){return M.a11y.ephemeralAction||null};
_.SGc=function(M){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8,I3,vY,te,wR,qb,cY,Pu,yV,Ik,rR,ea,ok,s$,pw,iJ,Nb;return _.k(function(MB){if(MB.nextAddress==1)return MB.yield(_.vA(M,{mode:"readonly",enableRetries:!0},function(vu){return Gr(vu,"playbackData").then(function(Tc){var Gt=Tc.map(function(ZV){return ZV.transfer}).filter(function(ZV){return!!ZV}),zc=Tc.map(function(ZV){return ZV.offlineVideoPolicy}).filter(function(ZV){return!!ZV}),My=Tc.filter(function(ZV){return!!ZV.key}).map(function(ZV){return _.Tr(_.kf(ZV.key).entityId,
"downloadStatusEntity")});
Gt=Gr(vu,"transfer",Gt);zc=Gr(vu,"offlineVideoPolicy",zc);My=Gr(vu,"downloadStatusEntity",My);var MN=Gt.then(function(ZV){ZV=ZV.reduce(function(Lv,em){(em==null?0:em.offlineVideoStreams)&&Lv.push.apply(Lv,_.Yj(em.offlineVideoStreams));return Lv},[]).filter(function(Lv){return!!Lv});
return Gr(vu,"offlineVideoStreams",ZV)});
return KK.all([Gt,zc,MN,My]).then(function(ZV){var Lv=_.S(ZV);ZV=Lv.next().value;var em=Lv.next().value;var FQ=Lv.next().value;Lv=Lv.next().value;return[Tc,ZV,em,FQ,Lv]})})}),2);
if(MB.nextAddress!=3)return z=MB.yieldResult,MB.yield(_.vA(M,{mode:"readonly",enableRetries:!0},function(vu){return Gr(vu,"mainDownloadsListEntity").then(function(Tc){var Gt,zc;return(zc=(Gt=Tc[0])==null?void 0:Gt.downloads)!=null?zc:[]})}),3);
J=MB.yieldResult;R=_.S(z);D=R.next().value;N=R.next().value;Z=R.next().value;B=R.next().value;O=R.next().value;X=D;l=N;e=Z;Q=B;v=O;x={};m={};y={};H={};q={};b=[];V=_.S(l);for(E=V.next();!E.done;E=V.next())(L=E.value)&&(x[L.key]=L);z8=_.S(e);for(O8=z8.next();!O8.done;O8=z8.next())(I3=O8.value)&&(m[I3.key]=I3);vY=_.S(v);for(te=vY.next();!te.done;te=vY.next())(wR=te.value)&&(y[wR.key]=wR);qb=_.S(Q);for(cY=qb.next();!cY.done;cY=qb.next())(Pu=cY.value)&&(H[Pu.key]=Pu);yV=_.S(J);for(Ik=yV.next();!Ik.done;Ik=
yV.next())rR=Ik.value,ea=void 0,q[(ea=rR.videoItem)!=null?ea:""]=!0,rR.videoItem&&(s$=ok=void 0,pw=(s$=(ok=_.kf(rR.videoItem))==null?void 0:ok.entityId)!=null?s$:"",b.push({externalVideoId:pw}));iJ=X.filter(function(vu){if(!vu||!vu.key||!vu.offlineVideoPolicy)return!1;vu=_.kf(vu.key).entityId;vu=_.Tr(vu,"downloadStatusEntity");var Tc;return!(vu&&((Tc=y[vu])==null?void 0:Tc.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Nb=iJ.map(function(vu){var Tc=x[vu.transfer],Gt=[];if(Tc==null?0:Tc.offlineVideoStreams)for(var zc=_.S(Tc.offlineVideoStreams),My=zc.next();!My.done;My=zc.next())(My=H[My.value])&&Gt.push(My);zc=m[vu.offlineVideoPolicy];My=q;var MN=vu==null?void 0:vu.playerResponseTimestamp,ZV=_.kf(zc.key).entityId;vu=_.Tr(ZV,"mainVideoEntity");if(zc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Lv="OFFLINE_VIDEO_STATE_DISABLED";zc.expirationTimestamp&&Number(zc.expirationTimestamp)<Date.now()/1E3&&(Lv="OFFLINE_VIDEO_STATE_EXPIRED")}else if(zc.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Lv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Tc==null?void 0:Tc.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Lv="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Lv="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Lv="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Lv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Lv="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Lv="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Lv="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Lv==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Tc==null?void 0:Tc.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Lv="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Lv="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Lv=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}ZV={id:ZV,videoState:Lv};if(Tc==null?0:Tc.cotn)ZV.cotn=Tc.cotn;if(Tc==null?0:Tc.maximumDownloadQuality)ZV.selectedVideoQuality=Tc==null?void 0:Tc.maximumDownloadQuality;if(Tc==null?0:Tc.lastProgressTimeMs)ZV.lastProgressTimeMs=Tc.lastProgressTimeMs;MN&&(ZV.playerResponseSavedTimeMs=String(Number(MN)*1E3));Tc=String;MN=0;Gt=_.S(Gt);for(Lv=Gt.next();!Lv.done;Lv=Gt.next())if(Lv=Lv.value,Lv.streamsProgress){Lv=_.S(Lv.streamsProgress);for(var em=Lv.next();!em.done;em=
Lv.next()){var FQ=void 0;MN+=Number((FQ=em.value.numBytesDownloaded)!=null?FQ:0)}}ZV.downloadedBytes=Tc(MN);ZV.selectedOfflineMode=My[vu]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";zc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(ZV.offlinePlaybackDisabledReason=zc.offlinePlaybackDisabledReason);return ZV});
return MB.return({offlineVideos:Nb,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:b}}})})};
Zjn=function(){var M;return _.k(function(z){return z.nextAddress==1?z.yield(_.eg(),2):(M=z.yieldResult)?z.return(_.SGc(M)):z.return({state:"PES Unavailable"})})};
Oje=function(){var M,z,J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(_.eg(),2);if(D.nextAddress!=3)return(M=D.yieldResult)?D.yield(k3R(M),3):D.return({state:"PES Unavailable"});z=D.yieldResult;J={};R=z.reduce(function(N,Z){N[Z.key]=Z;return N},J);
return D.return(BUR(R))})};
BUR=function(M){for(var z={},J=[],R=_.S(Object.keys(M)),D=R.next();!D.done;D=R.next()){var N=D.value;D=M[N];var Z=void 0;if(((Z=D)==null?void 0:Z.entityType)==="mainVideoEntity"){delete M[N];var B=D.data;D={};if(B){var O=void 0;Z=(O=B.videoId)!=null?O:"vid-"+N;N=M;D.video=B;delete D.video.formattedDescription;delete D.video.thumbnail;B.owner&&(O=N[B.owner],O==null?0:O.data)&&(delete N[O.key],D.video.owner=O.data,delete D.video.owner.avatar);if(B=B.downloadState)if(O=N[B],O==null?0:O.data)if(delete N[B],
B=O.data.playbackData)if(O=N[B],O!=null&&O.data){delete N[B];B=O.data;delete B.playerResponseJson;D.playbackData=B;if(B.transfer&&(O=N[B.transfer],O==null?0:O.data)){delete N[O.key];var X=O.data;D.transfer=X;O=[];X=_.S(X.offlineVideoStreams||[]);for(var l=X.next();!l.done;l=X.next())if(l=N[l.value])delete N[l.key],O.push(l.data);O&&(D.streams=O)}(B=B.offlineVideoPolicy)&&(B=N[B])&&B.data&&(delete N[B.key],D.offlineVideoPolicy=B.data)}z[Z]=D}}else D&&D.entityType==="offlineOrchestrationActionWrapperEntity"&&
D.data&&(delete M[D.key],Z=D.data,N=void 0,J.push({id:Z.rootActionId,type:((N=Z.actionProto)==null?void 0:N.actionType)||"",entity:D}))}z.wrapperEntities=J;Object.keys(M).length>0&&(z.unknownKeys=M);return z};
TUp=function(){var M,z,J,R,D,N,Z,B,O;return _.k(function(X){if(X.nextAddress==1)return M=!!(new _.dc("")).expiringStorage_,R=!!((z=_.R3.crypto)==null?0:(J=z.subtle)==null?0:J.importKey),D=!!_.R3.BroadcastChannel,N=!!_.R3.navigator.locks,X.yield(a8o(),2);Z=X.yieldResult;B=M&&R&&D&&N&&Z;O={isSupported:B};if(B)return X.return(O);O.missingBrowserFeatures=[];Z||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");M||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
R||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");D||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");N||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return X.return(O)})};
Iao=function(){var M;return!((M=S3?S3:null)==null||!M.window)};
_.Xdo=function(M){if(_.Yo()&&_.ooG("Chromium")>=120){var z=_.o$p().mediaSession;try{z.setActionHandler("enterpictureinpicture",function(){M()})}catch(J){}}};
law=function(M){for(var z=[],J=_.S(document.styleSheets),R=J.next(),D={};!R.done;D={node$jscomp$727:void 0},R=J.next())D.node$jscomp$727=R.value.ownerNode,D.node$jscomp$727&&(D.node$jscomp$727 instanceof HTMLStyleElement||D.node$jscomp$727 instanceof HTMLLinkElement)&&z.push(new Promise(function(N){return function(Z){var B=N.node$jscomp$727.cloneNode(!0);B.onload=function(){Z()};
B.onerror=function(){_.yA(Error("hj"));Z()};
M.document.head.appendChild(B)}}(D)));
return Promise.all(z)};
pd8=function(M){var z=[_.R$(eCp),_.R$(QCb),_.R$(Ugo)];v$n(window.document.documentElement,M.document.documentElement,[_.R$(G33),_.R$(wdc),_.R$(xgY),_.R$(tZ0),_.R$(jCn)]);v$n(window.document.body,M.document.body,z)};
v$n=function(M,z,J){M=_.S(M.attributes);for(var R=M.next();!R.done;R=M.next())if(R=R.value)try{_.bs(J,z,R.name,R.value)}catch(D){}};
YGo=function(M,z){M=new _.Zz(M.document.documentElement);M.start(Fb8,z);return M};
mgn=function(M){var z=M.document.documentElement;z.addEventListener("click",function(J){wZ3(z,J)});
z.addEventListener("touchstart",function(J){FZc(J)});
z.addEventListener("mousedown",function(J){FZc(J)})};
sCn=function(M,z,J,R){R=R===void 0?!1:R;z=new g$w(z||M,J||M);return{x:M.x+((R===void 0?0:R)?z.lengthX*-1:z.lengthX)*.2,y:M.y+((R===void 0?0:R)?z.lengthY*-1:z.lengthY)*.2}};
n$0=function(M){if(!M)return!1;var z=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",J,R,D,N=(D=(J=M.errorScreen)==null?void 0:J.playerLegacyDesktopYpcTrailerRenderer)!=null?D:(R=M.errorScreen)==null?void 0:R.ypcTrailerRenderer;return!!z||!!N};
_.hCG=function(M,z){if(!M)return!1;var J,R=(J=M.errorScreen)==null?void 0:J.playerLegacyDesktopYpcOfferRenderer,D;z=!!(z==null?0:(D=z.playerOverlayRenderer)==null?0:D.gatedActionsOverlayRenderer);return!!n$0(M)||!!R||!!z};
c6Y=function(M){return y6Y(M,0,"gclid",M.search(Hje))>=0||y6Y(M,0,"gad_source",M.search(Hje))>=0};
dg8=function(M){var z=[],J=0;return{clear:function(){J=z.length=0},
push:function(R){z[J]=R;J=(J+1)%M},
iterate:function(){return function D(){var N,Z,B,O;return _.kT(D,function(X){switch(X.nextAddress){case 1:_.lY(X,2),N=z.length,Z=0;case 4:if(!(Z<N)){X.jumpTo(2);break}B=J+Z;O=_.Oj;return X.yield(z[B%N],7);case 7:O(X.yieldResult);Z++;X.jumpTo(4);break;case 2:_.X4(X),_.eX(X,0)}})}()}}};
Kb8=function(M){M.eventsToIgnore||(M.eventsToIgnore=[]);var z=M.eventsToIgnore.map(sBG),J=new Set(z),R=dg8(M.bufferSize);return{flush:function(){var D=Array.from(R.iterate());R.clear();D=D.map(function(N){return{name:N.name,timestamp:N.startTime,attributes:N.attributes}});
return JSON.stringify(D)},
onSpanStart:function(D){D.name==="event"&&J.has(D.attributes.type)||R.push(D)}}};
$g3=function(M){M=Kb8(M);var z=M.flush;HH8({onSpanStart:M.onSpanStart});wno.subscribe("handleError",function(J){try{J.params.breadcrumbs=z()}catch(R){_.nc(R,"WARNING")}})};
u5p=function(M,z,J){var R=M.endTime;if(R==null)throw Error("jj");var D=M.name,N={};R-=M.startTime;var Z=M.startTime;N={webTracing:(N[D]=M.attributes,N)};J=_.ui(iRY)(D,R,Z,N,J,z);if(M.children)for(M=_.S(M.children),D=M.next();!D.done;D=M.next())u5p(D.value,z,J)};
aaG=function(){for(var M=II8.value,z={},J=_.S(M.enabledSpansArray),R=J.next();!R.done;R=J.next())z[R.value]=!0;(M.exportToCsi||M.exportBreadcrumbs)&&hOp({sessionId:lWp(),enabledSpans:z});M.exportBreadcrumbs&&$g3({eventsToIgnore:qGp,bufferSize:M.bufferSize});M.exportToCsi&&HH8(Wb0);if(M.exportToDevTools){var D=[];HH8({onSpanEnd:function(N){D.push(N)===1&&setTimeout(function(){var Z=D.map(cTo);D.length=0;window.postMessage({type:"telemetry",spans:Z},"*")},1E3)}})}};
VZe=function(M){return new Promise(function(z){window.setTimeout(z,M)})};
E$0=function(M){var z={bicf:function(N){M.ejQ=N},
blc:function(){return M.getLatestChallengeResponse()},
bcr:function(N){M.u2o.push(N)}},J=window;
J.ntpevasrs=z;if(J.ntpqfbel!==void 0)for(var R=_.S(J.ntpqfbel),D=R.next();!D.done;D=R.next())D=D.value,D(z);J.ntpqfbel=void 0};
fae=function(M){return _.k(function(z){if(z.nextAddress==1)return _.Io(z,2),z.yield(M.orE(),4);if(z.nextAddress!=2)return _.ab(z,0);_.Qa(z);_.UI(z)})};
Lb8=function(M){var z,J;(z=M.ytcsi)==null||(J=z.tick)==null||J.call(z,"pot_ist")};
A6H=function(M){if(M instanceof Error){var z=_.qH("yt.logging.errors.log");z&&z(M,"WARNING")}};
ij3=function(M){try{var z=JSON.parse(M);if(z.bgChallenge)return z}catch(J){}};
bjR=function(){var M=window,z={networkStatusManagerPromise:_.JF().resolve(new FVp(_.VS)),initialChallengeSli:_.U("wpo_att_sli")?new _.HCo("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};M=M===void 0?window:M;var J=M.ytAtR,R;z==null||(R=z.initialChallengeSli)==null||_.T0(R);if(J){if(J=ij3(J)){var D;z==null||(D=z.initialChallengeSli)==null||_.Ih(D,"SUCCESS");CzY(J,z)}M.ytAtR=void 0}else M.ytAtRC=function(N){if(N=ij3(N)){var Z;z==null||(Z=z.initialChallengeSli)==null||
_.Ih(Z,"SUCCESS");CzY(N,z);M.ytAtRC=void 0}}};
zGY=function(){if(r68)return r68;try{var M=_.lm("IFRAME");_.W4(M,_.Nx(MS0));M.sandbox.add("allow-same-origin");M.style.display="none";document.body.appendChild(M);return r68=M}catch(z){M=new _.xN("Failed to create sandbox iframe"),_.nc(M)}};
JI8=function(M){var z,J;return(J=M==null?void 0:(z=M.contentWindow)==null?void 0:z.fetch)!=null?J:window.fetch};
RGp=function(M){var z,J;return(J=M==null?void 0:(z=M.contentWindow)==null?void 0:z.JSON.parse)!=null?J:JSON.parse};
DW8=function(M){var z,J;return(J=M==null?void 0:(z=M.contentWindow)==null?void 0:z.Request)!=null?J:window.Request};
Nmp=function(M){var z,J;return(J=M==null?void 0:(z=M.contentWindow)==null?void 0:z.TextDecoder)!=null?J:window.TextDecoder};
PCo=function(){return function(M,z){_.HW("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[M]=z}};
SMw=function(){return function(M,z){var J={};J[M]=z;M=_.ui(_.L7e)(J);Object.keys(M).length>0&&_.sf(M)}};
BmH=function(){if(Hep()==="hidden")var M="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Hep()==="visible"&&(M="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Z_3=null);M&&kXY(M)};
kXY=function(M){if(M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(O_R===M)return;O_R=M}var z=9E4+Math.random()*2E3;if(M!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Rf()>z)&&Hep()==="visible"){z=-1;Z_3&&(z=Math.round((0,_.zU)()-Z_3));var J=String;var R=_.qH("_fact",window);R=R==null||R==-1?-1:Math.max(Date.now()-R,0);_.gP("foregroundHeartbeat",{firstActivityMs:J(R),clientDocumentNonce:e_8,index:String(TmR),lastEventDeltaMs:String(z),trigger:M});
_.b9("_fact",-1,window);TmR++;Z_3=(0,_.zU)()}};
_.IMo=function(){try{return!!self.sessionStorage}catch(M){return!1}};
oXn=function(){var M=navigator;return new Promise(function(z,J){var R;(R=M.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?M.webkitTemporaryStorage.queryUsageAndQuota(function(D,N){z({usage:D,quota:N})},function(D){J(D)}):J(Error("sj"))})};
XMe=function(M,z){var J={errorSeverity:z.errorSeverity.toString(),wizFeatureFlags:Object.entries(z.featureFlags).join("\n")};k_e(z,J);z=z.errorSeverity;z===3?_.nc(M,"ERROR",void 0,void 0,void 0,J):z===2&&_.nc(M,"WARNING",void 0,void 0,void 0,J);_.U("cow_if_errors_in_popup")&&z===3&&M.message.indexOf("<If>")!==-1&&window.alert(M.message)};
lMp=function(M,z){var J=i3.get(M)||{layerNode:z};J.layerNode=z;n7w(M,J);M.getScreenLayer=function(){return oh(J.layerNode)}};
eGG=function(M){var z;M=M.parentNode;for(var J;M&&((z=i3.get(M))==null||!z.isRenderer)&&!((J=M.polymerController)!=null?J:M).isRenderer_;)M=M.parentNode||M.host;if(z=M)return i3.get(z)};
Qc8=function(M){if(M){i3.delete(M);var z=_.JF().resolve(zS);uoY(M,z)}};
vXH=function(M,z,J){if(J===void 0?0:J){if(J=M.getAttribute("client-ve-type"),z.data&&!z.disableReactiveLogging||J)_.mt(function(){UWn(M,_.YE(z.data))}),_.pq(function(){return void Qc8(M)})}else typeof z.data!=="function"&&UWn(M,z.data)};
UWn=function(M,z){GXp++;wMw(M,z)&&_.no.addJob(function(){_.xC(_.no,function(){if(wMw(M,z)&&M.ownerDocument.documentElement===document.documentElement&&M){var J;if(M.getAttribute("layer")){var R=J=Number(M.getAttribute("layer")),D=i3.get(M);D?D.layerNode.layer=R:lMp(M,new xWb(R));(R=eGG(M))&&(D=i3.get(M))!=null&&(D.layerNode.parent=R.layerNode)}else if(J=i3.get(M))J=oh(J.layerNode);else{J=oh;R=new xWb;if(D=eGG(M))R.parent=D.layerNode;lMp(M,R);J=J(R)}J!=null||(J=0);R=M.getAttribute("client-ve-type");
D=Number(R);var N=!1;R=!1;var Z=i3.get(M),B;if((B=Z)&&!(B=Z[tSo]!==z)&&(B=D)){var O;B=((O=i3.get(M))==null?void 0:O.clientVeType)===void 0}B&&(Z[tSo]=z,N=R=Z.isRenderer=!0);i3.has(M)&&(i3.get(M).clientVeType=D);M.visualElement&&(R=!0);if(_.U("wiz_next_ld_fix_client_ve_spec")){var X;O=((X=_.G(z==null?void 0:z.rendererContext,_.wv))==null?void 0:X.loggingDirectives)||(z==null?void 0:z.loggingDirectives)}else O=z==null?void 0:z.loggingDirectives;O&&O.clientVeSpec&&(X=jce(_.UU(),M),X=_.pMG(_.Gm(),O,X||
void 0,J))&&(M.visualElement=X);!M.visualElement&&D&&N&&(M.veType=D,X=void 0,_.U("wiz_next_client_ve_parent_fix")&&(X=jce(_.UU(),M)),X=_.v5(_.Gm(),M,X,J),M.visualElement=X);R&&(X=_.JF().resolve(zS),Vow(M,{data:z,observer:X,layer:J,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
wMw=function(M,z){return(z==null?0:z.trackingParams)||(z==null?0:z.loggingDirectives)||_.G(z==null?void 0:z.rendererContext,_.wv)||M.getAttribute("client-ve-type")?!0:!1};
FCb=function(M,z,J){M.componentType!==Gk&&J instanceof HTMLElement&&z&&!_.U("cow_logging_in_component_wrapper")&&vXH(J,z,!0)};
hG8=function(){if(!YMG){YMG=!0;var M=Object.assign({},{enableLazyTsx:_.U("mweb_enable_wiz_lazy_tsx")||_.U("kevlar_enable_wiz_lazy_tsx")||_.U("creator_enable_wiz_lazy_tsx")||mWH,flushRenderEffectsDuringRender:!0},{handleError:XMe,enableComponentStacksInErrorMessages:!1});Object.assign(rS,M);psR=gXp;scH();sT8=k1e;YKH=Bew;_.U("ytwiz_enable_debug_component_props")&&(M=document.body.firstElementChild,window.ng||M.__ngContext__||(M.__ngContext__={},M.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
nX3))}};
scH=function(){_.U("cow_logging_in_component_wrapper")?(Qgb=function(M,z){z instanceof HTMLElement&&vXH(z,M,!0)},Xsb=function(){}):(Qgb=function(){},Xsb=FCb)};
yIR=function(M,z,J){z=z===void 0?{}:z;var R,D=(R=_.G(M.commandMetadata,_.X9))==null?void 0:R.url;R=z.form||{};!J||R.element||R.skipDefaultElement||(z.form=z.form||{},z.form.element=J);if(D&&D!=="/service_ajax")return{type:0,command:M,form:z.form};if(_.U("kevlar_service_command_check")){if(_.EN(_.JF().resolve(_.cP),M))return Object.assign({},{type:1,command:M},z)}else{var N;if((N=_.G(M.commandMetadata,_.X9))==null?0:N.apiUrl)return Object.assign({},{type:1,command:M},z)}return{type:2,command:M,form:z.form}};
H_p=function(M){if(M.form){var z=M.form,J=Object.assign({},z);z=z.element;J=(delete J.element,J);if(z)return[_.kQ(z,[M.command,J,M.commandController])]}return[]};
cIH=function(M){if(M.form){var z=M.form,J=Object.assign({},z);z=z.element;J=(delete J.element,J);z&&_.Bv(z,[M.command],z,J)}};
KCc=function(M,z,J){var R=new dW0(M,z),D=new XL(M,z,J);M={"/youtubei/v1/browse":new l2(M,z,J),"/youtubei/v1/player":R,"/youtubei/v1/navigation/resolve_url":new e3,"/youtubei/v1/next":D,"/youtubei/v1/guide":new Qq(J),"/youtubei/v1/search":new Uj(M,z,J),"/youtubei/v1/reel/reel_item_watch":new vf(M,z,J),"/youtubei/v1/get_watch":new G0(R,D)};M["/youtubei/v1/account/account_menu"]=new wy;M["/youtubei/v1/notification/get_notification_menu"]=new xT;return M};
mz=function(){var M=_.JF().resolve(tx);return Promise.resolve($Wc(M,_.R3.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
uX8=function(M){return M&&(M=_.gy(_.eoc(M)))?(new URLSearchParams(M)).get("service"):null};
hx=function(M,z){_.BS(_.sj(),function(){_.hd("adl")});
_.JF().resolve(qM0)(z);M=M.root;M.loadData&&M.loadData(z);(z==null?0:z.response)?_.Ih(K88(),"SUCCESS"):_.yA(new _.xN("Lifecycle: No response in data",_.cW("IS_SHELL_LOAD"),z?z.page:"NO_PAGE",z?z.endpoint:"NO_ENDPOINT"));M.polymerController.$["page-manager"].lazyPrepareCriticalPages((z==null?void 0:z.page)||"",z.endpoint);var J,R;((R=_.G(z==null?void 0:(J=z.endpoint)==null?void 0:J.commandMetadata,_.X9))==null?0:R.webPageType)&&_.rA().dispatch(_.na(_.G(z.endpoint.commandMetadata,_.X9).webPageType))};
WCc=function(){var M,z;return _.k(function(J){switch(J.nextAddress){case 1:M=window;if(!M.getDataPromise){J.jumpTo(2);break}_.Io(J,3);return J.yield(M.getDataPromise(),5);case 5:return J.return(J.yieldResult);case 3:return _.Qa(J),J.yield(mz(),6);case 6:return J.return(J.yieldResult);case 2:if(M.getInitialData)return z=M.getInitialData(),M.getInitialData=void 0,J.return(z);throw Error("uj`"+_.R3.location.href);}})};
VSn=function(){_.yU("CSI_SERVICE_NAME","youtube");_.sf({loadType:"cold"});_.U("kevlar_log_lcp")&&aMp(function(M){_.hd("lcp",M.value)})};
EXn=function(){var M=_.KW(document.location.href,"enable");M&&M.indexOf("scraper")>-1&&_.yU("ADD_SCRAPER_ATTRIBUTES",!0)};
CC0=function(M){var z=M.root;M=[fMc,LC8,_.yq];_.U("web_feedback_endpoint_autolog_allowlist_killswitch")&&M.push(_.Hf,AI0);i_8(function(J,R){return yIR(J,R,z)},function(J){if(!J.command)return[];
var R;((R=J.form)==null?0:R.element)?J.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},J.form,{endpoint:J.command})})):z.handleNavigate(J);return[]},M);
_.JF().addProvider({provide:_.Rb,useValue:_.l5.instance})};
rIc=function(){var M={},z={},J;for(J in b_3){var R=_.S(_.kE(b_3[J],void 0,"IAtZ7"));M[J]=R.next().value;z[J]=R.next().value}return[M,function(D){for(var N in D){var Z=void 0;(Z=z[N])==null||Z(D[N])}}]};
_.cf=function(M,z,J){z=z===void 0?!1:z;var R=_.gu.getValueByKeys(M,"contents","twoColumnWatchNextResults","results","results","contents"),D=_.gu.getValueByKeys(M,"contents","twoColumnWatchNextResults","playlist","playlist")||null;z&&(D=null);var N=z=null;if(D)z=_.gu.getValueByKeys(D,"titleText"),N=_.gu.unsafeClone(_.gu.getValueByKeys(D,"longBylineText")),R="",N&&(R=_.CD(N)),N=_.id(R);else if(R){R=_.S(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.videoPrimaryInfoRenderer&&(z=_.gu.getValueByKeys.apply(_.gu,
[Z].concat(_.Yj(ML8)))),Z.videoSecondaryInfoRenderer&&(N=_.gu.getValueByKeys.apply(_.gu,[Z].concat(_.Yj(zRo))))}else _.WW(Error("zj"));var B;M.currentVideoEndpoint?B=M.currentVideoEndpoint:_.WW(Error("Aj"));var O;J&&(O=_.gu.getValueByKeys(J,"playabilityStatus","miniplayer","miniplayerRenderer"));M={miniplayerTitle:z,miniplayerSubtitle:N,watchEndpoint:B,playlistData:D};O&&(M.miniplayerRenderer=O);return M};
Jf8=function(M){if(M)return _.y1(M)};
_.RRR=function(){return{isFullscreen:function(){throw Error("Bj");},
toggleFullscreen:function(){throw Error("Cj");},
exitFullscreen:function(){throw Error("Dj");},
isAutonavEnabled:function(){throw Error("Ej");},
setAutonavEnabled:function(){throw Error("Fj");},
isAutoplaySetExplicitly:function(){throw Error("Gj");}}};
De8=function(M){return M.videoDuration?M.numTaps>1&&M.tapDirection!==0?_.dy(M.draggedTime/M.videoDuration,0,1):_.dy((M.playedTime||0)/M.videoDuration,0,1):0};
NYo=function(M){return M.videoDuration?M.isDragging||M.numTaps>1&&M.tapDirection!==0?_.dy(M.draggedTime/M.videoDuration,0,1):_.dy((M.playedTime||0)/M.videoDuration,0,1):0};
SnH=function(M){var z,J,R;return _.G(M==null?void 0:(z=M.markersMap)==null?void 0:(J=z.find(function(D){return D.key==="HEATSEEKER"}))==null?void 0:(R=J.value)==null?void 0:R.heatmap,Py3)};
Z08=function(M){var z,J;return(J=(z=SnH(M))==null?void 0:z.heatMarkersDecorations)!=null?J:[]};
kq0=function(M){if(_.U("mweb_supported_chapters_killswitch"))return!0;var z;return!!(M==null?0:(z=M.markersMap)==null?0:z.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))};
_.BYb=function(M){var z=Object,J=z.assign,R;M={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(R=M==null?void 0:M.getPlayerState())!=null?R:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return J.call(z,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},M,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
O0e=function(M){return function(z){var J=M(),R,D=(R=J.playerApi)==null?void 0:R.getPlayerState();z&&z!==J.playerState&&(z===1||z===2)&&J.setState({playerState:D})}};
IlH=function(M){return function(z){var J=M(),R=J.playerApi;R&&(z==null?void 0:z.type)==="newdata"&&(TYe&&(clearTimeout(TYe),TYe=void 0),_.U("web_shorts_use_progress_state_for_gapless")?(z=R==null?void 0:R.getProgressState(z==null?void 0:z.playertype),z=z.seekableEnd-z.seekableStart):z=R==null?void 0:R.getDuration(z==null?void 0:z.playertype),J.setState({playedTime:0,videoDuration:z}))}};
owH=function(M){return function(z){var J=M(),R=J.playerApi;if(R){var D=R.getPresentingPlayerType();_.U("web_shorts_use_progress_state_for_gapless")?(R=R.getProgressState(D),R=R.seekableEnd-R.seekableStart):R=R.getDuration(D);J.setState({playedTime:z,videoDuration:R})}}};
llR=function(M){_.pr(112394,M,function(){return XO8},function(z){XO8=z})};
UeH=function(M,z){if(!M)return[];var J,R,D;M=((J=M.markersMap)==null?void 0:(R=J.find(function(N){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(N.key)}))==null?void 0:(D=R.value)==null?void 0:D.chapters)||[];
!eRY(M)||(z==null?0:z.ignoreStub)||(M=[QW0()].concat(_.Yj(M)));return M};
QW0=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
eRY=function(M){if(M.length===0)return!1;var z;return((z=_.G(M[0],Ka))==null?void 0:z.timeRangeStartMillis)!==0};
$T=function(M){return M?M.timeRangeStartMillis||0:0};
Gq0=function(M,z){if(M.isDragging&&z)return M=vw0(M,z),M===-1?QW0():UeH(z)[M]};
vw0=function(M,z){return M.isDragging&&z?UeH(z,{ignoreStub:!0}).findIndex(function(J,R,D){J=wOY(M);return xeR(J,D,R).scrubberHovering}):-1};
wOY=function(M){return Object.assign({},M,{videoDuration:M.videoDuration*1E3,playedTime:M.playedTime*1E3,draggedTime:M.draggedTime*1E3})};
xeR=function(M,z,J){var R=$T(_.G(z[J],Ka));z=$T(_.G(z[J+1],Ka))||M.videoDuration;J=M.isDragging;var D;if(D=M.isDragging)D=M.draggedTime,D=D!==null&&D>=R&&D<z;var N=M.playedTime;return N!==null&&N>=R&&N<z?{videoPosition:"active",isScrubbing:J,scrubberHovering:D}:M.playedTime<R?{videoPosition:"pending",isScrubbing:J,scrubberHovering:D}:{videoPosition:"seen",isScrubbing:J,scrubberHovering:D}};
tLG=function(M,z){return M.videoPosition==="seen"||(z===void 0?0:z)>0};
jWw=function(M,z,J){z=M/z.storyboardInterval;var R=UeH(J);if(!R.length)return-z*72;J=0;R=_.S(R);for(var D=R.next();!D.done;D=R.next())if($T(_.G(D.value,Ka))/1E3<M)J++;else break;return-(z*72)-J*56};
pOb=function(M){return M?M.width/M.columns:0};
FBp=function(M){return M.isHovering?M.hoveredTime:M.draggedTime};
Yn0=function(M,z){M=M.draggedTime*1E3;return M>=z.visibleTimeRangeStartMillis&&M<=z.visibleTimeRangeEndMillis};
_.mep=function(M){if(M===void 0||Number.isNaN(M))return"--:--";var z=Math.abs(Math.floor(M)),J=Math.floor(z/86400),R=Math.floor(z%86400/3600),D=Math.floor(z%3600/60);z=Math.floor(z%60);var N="";J>0&&(N+=J+":",R<10&&(N+="0"));if(J>0||R>0)N+=R+":",D<10&&(N+="0");N+=D+":";z<10&&(N+="0");N+=z;return M>=0?N:"-"+N};
gwp=function(M,z){return function(){var J=FBp(M());var R=z();var D=M().playerApi;if(D&&D.getNumberOfStoryboardLevels()!==0){var N=D.getStoryboardFrameIndex(J,1);N!==-1?R=D.getStoryboardFrame(N,1):(J=D.getStoryboardFrameIndex(J,0),D=D.getStoryboardFrame(J,0),R&&D&&(D.height*=3,D.width*=3),R=D)}else R=null;if(!R)return null;z()&&(R.width=90*R.columns,R.height=160*R.rows);return R}};
_.u2=function(M){if(!M||M.getVideoData)return M};
sW8=function(){var M;return{playerApi:(M=_.I9())!=null?M:void 0}};
nwR=function(M){var z;_.k(function(J){if(J.nextAddress==1)return J.yield(_.T_(),2);if(z=J.yieldResult)z.unMute(!0),z.setVolume(M,!0);_.UI(J)})};
hRH=function(M,z){M&&(M.value=""+z,M.style.setProperty("--gradient-percent",z+"%"))};
yfp=function(M){var z;return(z=M==null?void 0:M.value)!=null?z:0};
H0e=function(){var M;_.k(function(z){if(z.nextAddress==1)return z.yield(_.T_(),2);M=z.yieldResult;if(!M)return z.return();M.isMuted()?M.unMute(!0):M.mute(!0);_.UI(z)})};
cf3=function(M){var z=_.JF().resolve(_.q5).getPlayerElement();z&&M&&(M===1?z.pause():z.play())};
deG=function(M){_.ZL(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
KB0=function(M){_.ZL(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
u0p=function(M){return _.ph(M.document.body,function(){return _.T($ep,null)})};
qne=function(){var M=window.performance.getEntriesByType("navigation");return M?M.map(function(z){return z.type}).includes("reload"):!1};
i08=function(){Wf(Wf(Wf(Wf(Wf(Wf(Wf(_.JF().resolve(_.ah),_.WBH),_.alG),_.VL0),_.Ew8),_.flH),_.LBp),_.Afw)};
CyY=function(M,z){z=z===void 0?!1:z;var J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return z||!_.U("kevlar_shorts_seedless_retry_initial_load")||(J=window,R=!(!J.getDataPromise&&!J.getInitialData),R)?Z.yield(WCc(),2):(setTimeout(CyY.bind(window,M,!0),1E3),Z.return());if(Z.nextAddress!=3)return D=Z.yieldResult,Z.yield(b0G(D),3);N=Z.yieldResult;hx(M,N);_.UI(Z)})};
b0G=function(M){var z;if((z=M.response)==null||!z.replacementEndpoint)return _.Of(M);z=_.JF().resolve(tx);M=M.response;_.G(M.replacementEndpoint,_.je)&&M.sequenceContinuation&&(_.G(M.replacementEndpoint,_.je).sequenceParams=M.sequenceContinuation);return Vq(z,M.replacementEndpoint,{},_.R3.location.href,"shorts",function(){},function(){return!1})};
MTG=function(M){var z=_.JF().resolve(rfG);M.playerResponse&&z.handleResponse(M.playerResponse);M.response&&z.handleResponse(M.response)};
zE8=function(M){var z=_.rA(),J,R=_.G((J=M.response)==null?void 0:J.frameworkUpdates,iP),D;J=_.G((D=M.playerResponse)==null?void 0:D.frameworkUpdates,iP);var N;M=_.G((N=M.reelWatchSequenceResponse)==null?void 0:N.frameworkUpdates,iP);R&&_.Uh(R,z);J&&_.Uh(J,z);M&&_.Uh(M,z)};
JHR=function(M){var z;_.U("enable_redirect_linking_for_desktop_web_client")&&((z=window.location.hash)==null?0:z.includes("redirect_state"))&&M.url&&(M.url=M.url.toString()+window.location.hash)};
Na8=function(M){var z=_.JF(),J=z.resolve(tx);z=z.resolve(_.REe);M.endpoint&&(J=DMR(J,M.endpoint),J.content&&M.response&&_.Ej(z,M.response,J.content),J.player&&M.playerResponse&&_.Ej(z,M.playerResponse,J.player),J.reelSequence&&M.reelWatchSequenceResponse&&_.Ej(z,M.reelWatchSequenceResponse,J.reelSequence))};
fa=function(M,z){_.U("web_service_params_response_processor")&&MTG(z);zE8(z);var J;(z==null?0:z.url)&&((J=window.location.hash)==null?0:J.includes("redirect_state"))&&(JHR(z),(J=uX8(z.url))&&_.S9(M.root,"yt-initialize-third-party",[J,z]));Na8(z);J=_.JF();var R=J.resolve(PcR);z.playerResponse&&J.resolve(Sxb).handleResponse(z.playerResponse);if(z.playerResponse){J=void 0;if(_.U("ab_v_vid_sig")&&z.endpoint){var D,N=(D=_.G(z.endpoint,_.Au))!=null?D:_.G(z.endpoint,_.je);N&&(J=N.videoId)}ZiG(R,z.playerResponse,
J)}z.playerResponse&&Rup(z.playerResponse)&&_.U("web_enable_ab_rsp_cl")?n3o().then(function(){kHR(R,z.playerResponse);hx(M,z)}):hx(M,z)};
OiG=function(M){if(M=M.root.data){var z=_.JF().resolve(Bab);M.endpoint&&(M.response&&z.handleResponse(M.response,void 0,document.querySelector("ytd-app")),M.playerResponse&&z.handleResponse(M.playerResponse),M.reelWatchSequenceResponse&&z.handleResponse(M.reelWatchSequenceResponse))}};
TaG=function(M){var z,J,R,D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:z=window;if(!z.getDataPromise){B.jumpTo(2);break}_.Io(B,3);return B.yield(z.getDataPromise(),5);case 5:J=B.yieldResult;fa(M,J);_.ab(B,4);break;case 3:return _.Qa(B),B.yield(mz(),6);case 6:R=B.yieldResult,hx(M,R);case 4:return B.return();case 2:if(!_.U("sw_nav_preload_pbj")){B.jumpTo(7);break}z.fetchInitialData=function(){var O;return _.k(function(X){if(X.nextAddress==1)return X.yield(mz(),2);O=X.yieldResult;hx(M,O);
_.UI(X)})};
if(z.getInitialData){z.loadInitialData=function(O){fa(M,O)};
D=z.getInitialData();z.getInitialData=void 0;fa(M,D);B.jumpTo(8);break}z.fetchInitialData=void 0;return B.yield(mz(),9);case 9:N=B.yieldResult,hx(M,N);case 8:return B.return();case 7:z.getInitialData?(Z=z.getInitialData(),z.getInitialData=void 0,fa(M,Z)):z.loadInitialData=function(O){fa(M,O)},_.UI(B)}})};
Ii8=function(M){var z=0;return function(){return z<M.length?{done:!1,value:M[z++]}:{done:!0}}};
oPH=typeof Object.defineProperties=="function"?Object.defineProperty:function(M,z,J){if(M==Array.prototype||M==Object.prototype)return M;M[z]=J.value;return M};
Xxp=function(M){M=["object"==typeof globalThis&&globalThis,M,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var z=0;z<M.length;++z){var J=M[z];if(J&&J.Math==Math)return J}throw Error("a");};
_.rX=Xxp(this);La=function(M,z){if(z)a:{var J=_.rX;M=M.split(".");for(var R=0;R<M.length-1;R++){var D=M[R];if(!(D in J))break a;J=J[D]}M=M[M.length-1];R=J[M];z=z(R);z!=R&&z!=null&&oPH(J,M,{configurable:!0,writable:!0,value:z})}};
La("Symbol",function(M){if(M)return M;var z=function(N,Z){this.$jscomp$symbol$id_=N;oPH(this,"description",{configurable:!0,writable:!0,value:Z})};
z.prototype.toString=function(){return this.$jscomp$symbol$id_};
var J="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",R=0,D=function(N){if(this instanceof D)throw new TypeError("b");return new z(J+(N||"")+"_"+R++,N)};
return D});
La("Symbol.iterator",function(M){if(M)return M;M=Symbol("c");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),J=0;J<z.length;J++){var R=_.rX[z[J]];typeof R==="function"&&typeof R.prototype[M]!="function"&&oPH(R.prototype,M,{configurable:!0,writable:!0,value:function(){return liY(Ii8(this))}})}return M});
La("Symbol.asyncIterator",function(M){return M?M:Symbol("d")});
var liY=function(M){M={next:M};M[Symbol.iterator]=function(){return this};
return M},eEb=typeof Object.create=="function"?Object.create:function(M){var z=function(){};
z.prototype=M;return new z},QUY=function(){function M(){function J(){}
new J;Reflect.construct(J,[],function(){});
return new J instanceof J}
if(typeof Reflect!="undefined"&&Reflect.construct){if(M())return Reflect.construct;var z=Reflect.construct;return function(J,R,D){J=z(J,R);D&&Reflect.setPrototypeOf(J,D.prototype);return J}}return function(J,R,D){D===void 0&&(D=J);
D=eEb(D.prototype||Object.prototype);return Function.prototype.apply.call(J,D,R)||D}}(),UM8;
if(typeof Object.setPrototypeOf=="function")UM8=Object.setPrototypeOf;else{var vPH;a:{var GHp={a:!0},wxY={};try{wxY.__proto__=GHp;vPH=wxY.a;break a}catch(M){}vPH=!1}UM8=vPH?function(M,z){M.__proto__=z;if(M.__proto__!==z)throw new TypeError("e`"+M);return M}:null}Ax=UM8;
_.w=function(M,z){M.prototype=eEb(z.prototype);M.prototype.constructor=M;if(Ax)Ax(M,z);else for(var J in z)if(J!="prototype")if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(z,J);R&&Object.defineProperty(M,J,R)}else M[J]=z[J];M.superClass_=z.prototype};
_.S=function(M){var z=typeof Symbol!="undefined"&&Symbol.iterator&&M[Symbol.iterator];if(z)return z.call(M);if(typeof M.length=="number")return{next:Ii8(M)};throw Error("f`"+String(M));};
EC=function(M){for(var z,J=[];!(z=M.next()).done;)J.push(z.value);return J};
_.Yj=function(M){return M instanceof Array?M:EC(_.S(M))};
_.Ca=function(M){return i2(M,M)};
i2=function(M,z){M.raw=z;Object.freeze&&(Object.freeze(M),Object.freeze(z));return M};
b2=function(M,z){return Object.prototype.hasOwnProperty.call(M,z)};
xMp=typeof Object.assign=="function"?Object.assign:function(M,z){for(var J=1;J<arguments.length;J++){var R=arguments[J];if(R)for(var D in R)b2(R,D)&&(M[D]=R[D])}return M};
La("Object.assign",function(M){return M||xMp});
var ry=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},tT8=function(M){if(M.isRunning_)throw new TypeError("h");
M.isRunning_=!0};
ry.prototype.JSC$8695_next_=function(M){this.yieldResult=M};
var jUp=function(M,z){M.abruptCompletion_={exception:z,isException:!0};M.nextAddress=M.catchAddress_||M.finallyAddress_};
ry.prototype.return=function(M){this.abruptCompletion_={return:M};this.nextAddress=this.finallyAddress_};
ry.prototype.yield=function(M,z){this.nextAddress=z;return{value:M}};
ry.prototype.jumpTo=function(M){this.nextAddress=M};
_.UI=function(M){M.nextAddress=0};
_.Io=function(M,z,J){M.catchAddress_=z;J!=void 0&&(M.finallyAddress_=J)};
_.lY=function(M,z){M.catchAddress_=0;M.finallyAddress_=z||0};
_.ab=function(M,z,J){M.nextAddress=z;M.catchAddress_=J||0};
_.Qa=function(M,z){M.catchAddress_=z||0;z=M.abruptCompletion_.exception;M.abruptCompletion_=null;return z};
_.X4=function(M,z,J,R){R?M.finallyContexts_[R]=M.abruptCompletion_:M.finallyContexts_=[M.abruptCompletion_];M.catchAddress_=z||0;M.finallyAddress_=J||0};
_.eX=function(M,z,J){J=M.finallyContexts_.splice(J||0)[0];(J=M.abruptCompletion_=M.abruptCompletion_||J)?J.isException?M.nextAddress=M.catchAddress_||M.finallyAddress_:J.jumpTo!=void 0&&M.finallyAddress_<J.jumpTo?(M.nextAddress=J.jumpTo,M.abruptCompletion_=null):M.nextAddress=M.finallyAddress_:M.nextAddress=z};
pxb=function(M){this.JSC$8700_context_=new ry;this.program_=M};
YxR=function(M,z){tT8(M.JSC$8700_context_);var J=M.JSC$8700_context_.yieldAllIterator_;if(J)return FjH(M,"return"in J?J["return"]:function(R){return{value:R,done:!0}},z,M.JSC$8700_context_.return);
M.JSC$8700_context_.return(z);return M8(M)};
FjH=function(M,z,J,R){try{var D=z.call(M.JSC$8700_context_.yieldAllIterator_,J);if(!(D instanceof Object))throw new TypeError("g`"+D);if(!D.done)return M.JSC$8700_context_.isRunning_=!1,D;var N=D.value}catch(Z){return M.JSC$8700_context_.yieldAllIterator_=null,jUp(M.JSC$8700_context_,Z),M8(M)}M.JSC$8700_context_.yieldAllIterator_=null;R.call(M.JSC$8700_context_,N);return M8(M)};
M8=function(M){for(;M.JSC$8700_context_.nextAddress;)try{var z=M.program_(M.JSC$8700_context_);if(z)return M.JSC$8700_context_.isRunning_=!1,{value:z.value,done:!1}}catch(J){M.JSC$8700_context_.yieldResult=void 0,jUp(M.JSC$8700_context_,J)}M.JSC$8700_context_.isRunning_=!1;if(M.JSC$8700_context_.abruptCompletion_){z=M.JSC$8700_context_.abruptCompletion_;M.JSC$8700_context_.abruptCompletion_=null;if(z.isException)throw z.exception;return{value:z.return,done:!0}}return{value:void 0,done:!0}};
mMe=function(M){this.next=function(z){tT8(M.JSC$8700_context_);M.JSC$8700_context_.yieldAllIterator_?z=FjH(M,M.JSC$8700_context_.yieldAllIterator_.next,z,M.JSC$8700_context_.JSC$8695_next_):(M.JSC$8700_context_.JSC$8695_next_(z),z=M8(M));return z};
this.throw=function(z){tT8(M.JSC$8700_context_);M.JSC$8700_context_.yieldAllIterator_?z=FjH(M,M.JSC$8700_context_.yieldAllIterator_["throw"],z,M.JSC$8700_context_.JSC$8695_next_):(jUp(M.JSC$8700_context_,z),z=M8(M));return z};
this.return=function(z){return YxR(M,z)};
this[Symbol.iterator]=function(){return this}};
_.kT=function(M,z){z=new mMe(new pxb(z));Ax&&M.prototype&&Ax(z,M.prototype);return z};
gPG=function(M){function z(R){return M.next(R)}
function J(R){return M.throw(R)}
return new Promise(function(R,D){function N(Z){Z.done?R(Z.value):Promise.resolve(Z.value).then(z,J).then(N,D)}
N(M.next())})};
_.k=function(M){return gPG(new mMe(new pxb(M)))};
_.oo=function(M){var z=M[Symbol.asyncIterator];return z!==void 0?z.call(M):new sUw(_.S(M))};
sUw=function(M){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return M};
this.next=function(z){return Promise.resolve(M.next(z))};
this["throw"]=function(z){return new Promise(function(J,R){var D=M["throw"];D!==void 0?J(D.call(M,z)):(J=M["return"],J!==void 0&&J.call(M),R(new TypeError("i")))})};
M["return"]!==void 0&&(this["return"]=function(z){return Promise.resolve(M["return"](z))})};
_.H4=function(){for(var M=Number(this),z=[],J=M;J<arguments.length;J++)z[J-M]=arguments[J];return z};
_.Oj=function(M){return M};
La("globalThis",function(M){return M||_.rX});
La("Reflect",function(M){return M?M:{}});
La("Reflect.construct",function(){return QUY});
La("Reflect.setPrototypeOf",function(M){return M?M:Ax?function(z,J){try{return Ax(z,J),!0}catch(R){return!1}}:null});
La("Promise",function(M){function z(){this.batch_=null}
function J(Z){return Z instanceof D?Z:new D(function(B){B(Z)})}
if(M&&(typeof _.rX.PromiseRejectionEvent!=="undefined"||!_.rX.Promise||_.rX.Promise.toString().indexOf("[native code]")===-1))return M;z.prototype.asyncExecute=function(Z){if(this.batch_==null){this.batch_=[];var B=this;this.asyncExecuteFunction(function(){B.executeBatch_()})}this.batch_.push(Z)};
var R=_.rX.setTimeout;z.prototype.asyncExecuteFunction=function(Z){R(Z,0)};
z.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Z=this.batch_;this.batch_=[];for(var B=0;B<Z.length;++B){var O=Z[B];Z[B]=null;try{O()}catch(X){this.asyncThrow_(X)}}}this.batch_=null};
z.prototype.asyncThrow_=function(Z){this.asyncExecuteFunction(function(){throw Z;})};
var D=function(Z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var B=this.createResolveAndReject_();try{Z(B.resolve,B.reject)}catch(O){B.reject(O)}};
D.prototype.createResolveAndReject_=function(){function Z(X){return function(l){O||(O=!0,X.call(B,l))}}
var B=this,O=!1;return{resolve:Z(this.resolveTo_),reject:Z(this.JSC$8728_reject_)}};
D.prototype.resolveTo_=function(Z){if(Z===this)this.JSC$8728_reject_(new TypeError("m"));else if(Z instanceof D)this.settleSameAsPromise_(Z);else{a:switch(typeof Z){case "object":var B=Z!=null;break a;case "function":B=!0;break a;default:B=!1}B?this.resolveToNonPromiseObj_(Z):this.fulfill_(Z)}};
D.prototype.resolveToNonPromiseObj_=function(Z){var B=void 0;try{B=Z.then}catch(O){this.JSC$8728_reject_(O);return}typeof B=="function"?this.settleSameAsThenable_(B,Z):this.fulfill_(Z)};
D.prototype.JSC$8728_reject_=function(Z){this.settle_(2,Z)};
D.prototype.fulfill_=function(Z){this.settle_(1,Z)};
D.prototype.settle_=function(Z,B){if(this.state_!=0)throw Error("n`"+Z+"`"+B+"`"+this.state_);this.state_=Z;this.result_=B;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
D.prototype.scheduleUnhandledRejectionCheck_=function(){var Z=this;R(function(){if(Z.notifyUnhandledRejection_()){var B=_.rX.console;typeof B!=="undefined"&&B.error(Z.result_)}},1)};
D.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Z=_.rX.CustomEvent,B=_.rX.Event,O=_.rX.dispatchEvent;if(typeof O==="undefined")return!0;typeof Z==="function"?Z=new Z("unhandledrejection",{cancelable:!0}):typeof B==="function"?Z=new B("unhandledrejection",{cancelable:!0}):(Z=_.rX.document.createEvent("CustomEvent"),Z.initCustomEvent("unhandledrejection",!1,!0,Z));Z.promise=this;Z.reason=this.result_;return O(Z)};
D.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Z=0;Z<this.onSettledCallbacks_.length;++Z)N.asyncExecute(this.onSettledCallbacks_[Z]);this.onSettledCallbacks_=null}};
var N=new z;D.prototype.settleSameAsPromise_=function(Z){var B=this.createResolveAndReject_();Z.callWhenSettled_(B.resolve,B.reject)};
D.prototype.settleSameAsThenable_=function(Z,B){var O=this.createResolveAndReject_();try{Z.call(B,O.resolve,O.reject)}catch(X){O.reject(X)}};
D.prototype.then=function(Z,B){function O(Q,v){return typeof Q=="function"?function(x){try{X(Q(x))}catch(m){l(m)}}:v}
var X,l,e=new D(function(Q,v){X=Q;l=v});
this.callWhenSettled_(O(Z,X),O(B,l));return e};
D.prototype.catch=function(Z){return this.then(void 0,Z)};
D.prototype.callWhenSettled_=function(Z,B){function O(){switch(X.state_){case 1:Z(X.result_);break;case 2:B(X.result_);break;default:throw Error("o`"+X.state_);}}
var X=this;this.onSettledCallbacks_==null?N.asyncExecute(O):this.onSettledCallbacks_.push(O);this.isRejectionHandled_=!0};
D.resolve=J;D.reject=function(Z){return new D(function(B,O){O(Z)})};
D.race=function(Z){return new D(function(B,O){for(var X=_.S(Z),l=X.next();!l.done;l=X.next())J(l.value).callWhenSettled_(B,O)})};
D.all=function(Z){var B=_.S(Z),O=B.next();return O.done?J([]):new D(function(X,l){function e(x){return function(m){Q[x]=m;v--;v==0&&X(Q)}}
var Q=[],v=0;do Q.push(void 0),v++,J(O.value).callWhenSettled_(e(Q.length-1),l),O=B.next();while(!O.done)})};
return D});
var zj=function(M,z,J){if(M==null)throw new TypeError("p`"+J);if(z instanceof RegExp)throw new TypeError("q`"+J);return M+""};
La("String.prototype.startsWith",function(M){return M?M:function(z,J){var R=zj(this,z,"startsWith"),D=R.length,N=z.length;J=Math.max(0,Math.min(J|0,R.length));for(var Z=0;Z<N&&J<D;)if(R[J++]!=z[Z++])return!1;return Z>=N}});
La("Object.setPrototypeOf",function(M){return M||Ax});
La("Symbol.dispose",function(M){return M?M:Symbol("r")});
La("SuppressedError",function(M){function z(J,R,D){if(!(this instanceof z))return new z(J,R,D);D=Error(D);"stack"in D&&(this.stack=D.stack);this.message=D.message;this.error=J;this.suppressed=R}
if(M)return M;_.w(z,Error);z.prototype.name="SuppressedError";return z});
var nPp=function(M,z,J){M instanceof String&&(M=String(M));for(var R=M.length,D=0;D<R;D++){var N=M[D];if(z.call(J,N,D,M))return{i:D,v:N}}return{i:-1,v:void 0}};
La("Array.prototype.find",function(M){return M?M:function(z,J){return nPp(this,z,J).v}});
La("WeakMap",function(M){function z(){}
function J(O){var X=typeof O;return X==="object"&&O!==null||X==="function"}
function R(O){if(!b2(O,N)){var X=new z;oPH(O,N,{value:X})}}
function D(O){var X=Object[O];X&&(Object[O]=function(l){if(l instanceof z)return l;Object.isExtensible(l)&&R(l);return X(l)})}
if(function(){if(!M||!Object.seal)return!1;try{var O=Object.seal({}),X=Object.seal({}),l=new M([[O,2],[X,3]]);if(l.get(O)!=2||l.get(X)!=3)return!1;l.delete(O);l.set(X,4);return!l.has(O)&&l.get(X)==4}catch(e){return!1}}())return M;
var N="$jscomp_hidden_"+Math.random();D("freeze");D("preventExtensions");D("seal");var Z=0,B=function(O){this.JSC$8735_id_=(Z+=Math.random()+1).toString();if(O){O=_.S(O);for(var X;!(X=O.next()).done;)X=X.value,this.set(X[0],X[1])}};
B.prototype.set=function(O,X){if(!J(O))throw Error("s");R(O);if(!b2(O,N))throw Error("t`"+O);O[N][this.JSC$8735_id_]=X;return this};
B.prototype.get=function(O){return J(O)&&b2(O,N)?O[N][this.JSC$8735_id_]:void 0};
B.prototype.has=function(O){return J(O)&&b2(O,N)&&b2(O[N],this.JSC$8735_id_)};
B.prototype.delete=function(O){return J(O)&&b2(O,N)&&b2(O[N],this.JSC$8735_id_)?delete O[N][this.JSC$8735_id_]:!1};
return B});
La("Map",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var B=Object.seal({x:4}),O=new M(_.S([[B,"s"]]));if(O.get(B)!="s"||O.size!=1||O.get({x:4})||O.set({x:4},"t")!=O||O.size!=2)return!1;var X=O.entries(),l=X.next();if(l.done||l.value[0]!=B||l.value[1]!="s")return!1;l=X.next();return l.done||l.value[0].x!=4||l.value[1]!="t"||!X.next().done?!1:!0}catch(e){return!1}}())return M;
var z=new WeakMap,J=function(B){this[0]={};this[1]=N();this.size=0;if(B){B=_.S(B);for(var O;!(O=B.next()).done;)O=O.value,this.set(O[0],O[1])}};
J.prototype.set=function(B,O){B=B===0?0:B;var X=R(this,B);X.list||(X.list=this[0][X.id]=[]);X.entry?X.entry.value=O:(X.entry={next:this[1],previous:this[1].previous,head:this[1],key:B,value:O},X.list.push(X.entry),this[1].previous.next=X.entry,this[1].previous=X.entry,this.size++);return this};
J.prototype.delete=function(B){B=R(this,B);return B.entry&&B.list?(B.list.splice(B.index,1),B.list.length||delete this[0][B.id],B.entry.previous.next=B.entry.next,B.entry.next.previous=B.entry.previous,B.entry.head=null,this.size--,!0):!1};
J.prototype.clear=function(){this[0]={};this[1]=this[1].previous=N();this.size=0};
J.prototype.has=function(B){return!!R(this,B).entry};
J.prototype.get=function(B){return(B=R(this,B).entry)&&B.value};
J.prototype.entries=function(){return D(this,function(B){return[B.key,B.value]})};
J.prototype.keys=function(){return D(this,function(B){return B.key})};
J.prototype.values=function(){return D(this,function(B){return B.value})};
J.prototype.forEach=function(B,O){for(var X=this.entries(),l;!(l=X.next()).done;)l=l.value,B.call(O,l[1],l[0],this)};
J.prototype[Symbol.iterator]=J.prototype.entries;var R=function(B,O){var X=O&&typeof O;X=="object"||X=="function"?z.has(O)?X=z.get(O):(X=""+ ++Z,z.set(O,X)):X="p_"+O;var l=B[0][X];if(l&&b2(B[0],X))for(B=0;B<l.length;B++){var e=l[B];if(O!==O&&e.key!==e.key||O===e.key)return{id:X,list:l,index:B,entry:e}}return{id:X,list:l,index:-1,entry:void 0}},D=function(B,O){var X=B[1];
return liY(function(){if(X){for(;X.head!=B[1];)X=X.previous;for(;X.next!=X.head;)return X=X.next,{done:!1,value:O(X)};X=null}return{done:!0,value:void 0}})},N=function(){var B={};
return B.previous=B.next=B.head=B},Z=0;
return J});
La("Set",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),R=new M(_.S([J]));if(!R.has(J)||R.size!=1||R.add(J)!=R||R.size!=1||R.add({x:4})!=R||R.size!=2)return!1;var D=R.entries(),N=D.next();if(N.done||N.value[0]!=J||N.value[1]!=J)return!1;N=D.next();return N.done||N.value[0]==J||N.value[0].x!=4||N.value[1]!=N.value[0]?!1:D.next().done}catch(Z){return!1}}())return M;
var z=function(J){this.JSC$8749_map_=new Map;if(J){J=_.S(J);for(var R;!(R=J.next()).done;)this.add(R.value)}this.size=this.JSC$8749_map_.size};
z.prototype.add=function(J){J=J===0?0:J;this.JSC$8749_map_.set(J,J);this.size=this.JSC$8749_map_.size;return this};
z.prototype.delete=function(J){J=this.JSC$8749_map_.delete(J);this.size=this.JSC$8749_map_.size;return J};
z.prototype.clear=function(){this.JSC$8749_map_.clear();this.size=0};
z.prototype.has=function(J){return this.JSC$8749_map_.has(J)};
z.prototype.entries=function(){return this.JSC$8749_map_.entries()};
z.prototype.values=function(){return this.JSC$8749_map_.values()};
z.prototype.keys=z.prototype.values;z.prototype[Symbol.iterator]=z.prototype.values;z.prototype.forEach=function(J,R){var D=this;this.JSC$8749_map_.forEach(function(N){return J.call(R,N,N,D)})};
return z});
La("Math.log2",function(M){return M?M:function(z){return Math.log(z)/Math.LN2}});
La("Object.values",function(M){return M?M:function(z){var J=[],R;for(R in z)b2(z,R)&&J.push(z[R]);return J}});
La("Object.is",function(M){return M?M:function(z,J){return z===J?z!==0||1/z===1/J:z!==z&&J!==J}});
La("Array.prototype.includes",function(M){return M?M:function(z,J){var R=this;R instanceof String&&(R=String(R));var D=R.length;J=J||0;for(J<0&&(J=Math.max(J+D,0));J<D;J++){var N=R[J];if(N===z||Object.is(N,z))return!0}return!1}});
La("String.prototype.includes",function(M){return M?M:function(z,J){return zj(this,z,"includes").indexOf(z,J||0)!==-1}});
La("Array.from",function(M){return M?M:function(z,J,R){J=J!=null?J:function(B){return B};
var D=[],N=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(typeof N=="function"){z=N.call(z);for(var Z=0;!(N=z.next()).done;)D.push(J.call(R,N.value,Z++))}else for(N=z.length,Z=0;Z<N;Z++)D.push(J.call(R,z[Z],Z));return D}});
La("Object.entries",function(M){return M?M:function(z){var J=[],R;for(R in z)b2(z,R)&&J.push([R,z[R]]);return J}});
La("Number.isFinite",function(M){return M?M:function(z){return typeof z!=="number"?!1:!isNaN(z)&&z!==Infinity&&z!==-Infinity}});
La("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
La("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
La("Number.isInteger",function(M){return M?M:function(z){return Number.isFinite(z)?z===Math.floor(z):!1}});
La("Number.isSafeInteger",function(M){return M?M:function(z){return Number.isInteger(z)&&Math.abs(z)<=Number.MAX_SAFE_INTEGER}});
La("String.prototype.endsWith",function(M){return M?M:function(z,J){var R=zj(this,z,"endsWith");J===void 0&&(J=R.length);J=Math.max(0,Math.min(J|0,R.length));for(var D=z.length;D>0&&J>0;)if(R[--J]!=z[--D])return!1;return D<=0}});
var hEw=function(M,z){M instanceof String&&(M+="");var J=0,R=!1,D={next:function(){if(!R&&J<M.length){var N=J++;return{value:z(N,M[N]),done:!1}}R=!0;return{done:!0,value:void 0}}};
D[Symbol.iterator]=function(){return D};
return D};
La("Array.prototype.entries",function(M){return M?M:function(){return hEw(this,function(z,J){return[z,J]})}});
La("Math.trunc",function(M){return M?M:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var J=Math.floor(Math.abs(z));return z<0?-J:J}});
La("Number.isNaN",function(M){return M?M:function(z){return typeof z==="number"&&isNaN(z)}});
La("Array.prototype.keys",function(M){return M?M:function(){return hEw(this,function(z){return z})}});
La("Array.prototype.values",function(M){return M?M:function(){return hEw(this,function(z,J){return J})}});
La("Array.prototype.fill",function(M){return M?M:function(z,J,R){var D=this.length||0;J<0&&(J=Math.max(0,D+J));if(R==null||R>D)R=D;R=Number(R);R<0&&(R=Math.max(0,D+R));for(J=Number(J||0);J<R;J++)this[J]=z;return this}});
var Jv=function(M){return M?M:Array.prototype.fill};
La("Int8Array.prototype.fill",Jv);La("Uint8Array.prototype.fill",Jv);La("Uint8ClampedArray.prototype.fill",Jv);La("Int16Array.prototype.fill",Jv);La("Uint16Array.prototype.fill",Jv);La("Int32Array.prototype.fill",Jv);La("Uint32Array.prototype.fill",Jv);La("Float32Array.prototype.fill",Jv);La("Float64Array.prototype.fill",Jv);
La("Object.fromEntries",function(M){return M?M:function(z){var J={};if(!(Symbol.iterator in z))throw new TypeError("u`"+z);z=z[Symbol.iterator].call(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;if(Object(R)!==R)throw new TypeError("v");J[R[0]]=R[1]}return J}});
La("String.prototype.replaceAll",function(M){return M?M:function(z,J){if(z instanceof RegExp&&!z.global)throw new TypeError("w");return z instanceof RegExp?this.replace(z,J):this.replace(new RegExp(String(z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),J)}});
La("Object.getOwnPropertySymbols",function(M){return M?M:function(){return[]}});
La("String.prototype.repeat",function(M){return M?M:function(z){var J=zj(this,null,"repeat");if(z<0||z>1342177279)throw new RangeError("x");z|=0;for(var R="";z;)if(z&1&&(R+=J),z>>>=1)J+=J;return R}});
La("Array.prototype.findIndex",function(M){return M?M:function(z,J){return nPp(this,z,J).i}});
La("Array.prototype.flatMap",function(M){return M?M:function(z,J){var R=[];Array.prototype.forEach.call(this,function(D,N){D=z.call(J,D,N,this);Array.isArray(D)?R.push.apply(R,D):R.push(D)});
return R}});
La("String.prototype.codePointAt",function(M){return M?M:function(z){var J=zj(this,null,"codePointAt"),R=J.length;z=Number(z)||0;if(z>=0&&z<R){z|=0;var D=J.charCodeAt(z);if(D<55296||D>56319||z+1===R)return D;z=J.charCodeAt(z+1);return z<56320||z>57343?D:(D-55296)*1024+z+9216}}});
La("String.fromCodePoint",function(M){return M?M:function(z){for(var J="",R=0;R<arguments.length;R++){var D=Number(arguments[R]);if(D<0||D>1114111||D!==Math.floor(D))throw new RangeError("y`"+D);D<=65535?J+=String.fromCharCode(D):(D-=65536,J+=String.fromCharCode(D>>>10&1023|55296),J+=String.fromCharCode(D&1023|56320))}return J}});
La("String.prototype.trimLeft",function(M){function z(){return this.replace(/^[\s\xa0]+/,"")}
return M||z});
La("String.prototype.trimStart",function(M){return M||String.prototype.trimLeft});
La("String.prototype.padStart",function(M){return M?M:function(z,J){var R=zj(this,null,"padStart");z-=R.length;J=J!==void 0?String(J):" ";return(z>0&&J?J.repeat(Math.ceil(z/J.length)).substring(0,z):"")+R}});
La("Promise.prototype.finally",function(M){return M?M:function(z){return this.then(function(J){return Promise.resolve(z()).then(function(){return J})},function(J){return Promise.resolve(z()).then(function(){throw J;
})})}});
La("Math.imul",function(M){return M?M:function(z,J){z=Number(z);J=Number(J);var R=z&65535,D=J&65535;return R*D+((z>>>16&65535)*D+R*(J>>>16&65535)<<16>>>0)|0}});
La("Object.hasOwn",function(M){return M?M:function(z,J){return Object.prototype.hasOwnProperty.call(z,J)}});
La("Math.sign",function(M){return M?M:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}});
La("Array.prototype.flat",function(M){return M?M:function(z){z=z===void 0?1:z;var J=[];Array.prototype.forEach.call(this,function(R){Array.isArray(R)&&z>0?(R=Array.prototype.flat.call(R,z-1),J.push.apply(J,R)):J.push(R)});
return J}});
La("String.raw",function(M){return M?M:function(z,J){if(z==null)throw new TypeError("z");for(var R=z.raw,D=R.length,N="",Z=0;Z<D;++Z)N+=R[Z],Z+1<D&&Z+1<arguments.length&&(N+=String(arguments[Z+1]));return N}});
La("Reflect.ownKeys",function(M){return M?M:function(z){var J=[],R=Object.getOwnPropertyNames(z);z=Object.getOwnPropertySymbols(z);for(var D=0;D<R.length;D++)(R[D].substring(0,14)=="jscomp_symbol_"?z:J).push(R[D]);return J.concat(z)}});
La("Object.getOwnPropertyDescriptors",function(M){return M?M:function(z){for(var J={},R=Reflect.ownKeys(z),D=0;D<R.length;D++)J[R[D]]=Object.getOwnPropertyDescriptor(z,R[D]);return J}});
La("WeakSet",function(M){if(function(){if(!M||!Object.seal)return!1;try{var J=Object.seal({}),R=Object.seal({}),D=new M([J]);if(!D.has(J)||D.has(R))return!1;D.delete(J);D.add(R);return!D.has(J)&&D.has(R)}catch(N){return!1}}())return M;
var z=function(J){this.JSC$8756_map_=new WeakMap;if(J){J=_.S(J);for(var R;!(R=J.next()).done;)this.add(R.value)}};
z.prototype.add=function(J){this.JSC$8756_map_.set(J,!0);return this};
z.prototype.has=function(J){return this.JSC$8756_map_.has(J)};
z.prototype.delete=function(J){return this.JSC$8756_map_.delete(J)};
return z});
La("Promise.allSettled",function(M){function z(R){return{status:"fulfilled",value:R}}
function J(R){return{status:"rejected",reason:R}}
return M?M:function(R){var D=this;R=Array.from(R,function(N){return D.resolve(N).then(z,J)});
return D.all(R)}});
La("Number.parseInt",function(M){return M||parseInt});
_._DumpException=window._DumpException||function(M){throw M;};
window._DumpException=_._DumpException;var yHR=window.ytcsi;yHR&&typeof yHR.tick==="function"&&yHR.tick("rses_dpj");var Hi8,RJ,DP,N8,cHH,dMp,Kjb,$M8,wl,u1R;Hi8=Hi8||{};_.R3=this||self;_.b9=function(M,z,J){M=M.split(".");J=J||_.R3;for(var R;M.length&&(R=M.shift());)M.length||z===void 0?J[R]&&J[R]!==Object.prototype[R]?J=J[R]:J=J[R]={}:J[R]=z};
RJ=function(M,z){var J=_.qH("WIZ_global_data.oxN3nb");M=J&&J[M];return M!=null?M:z};
DP=_.R3._F_toggles_default_kevlar_base||[];N8=function(){};
N8.get=function(){return null};
_.qH=function(M,z){M=M.split(".");z=z||_.R3;for(var J=0;J<M.length;J++)if(z=z[M[J]],z==null)return null;return z};
_.P9=function(M){M.instance_=void 0;M.getInstance=function(){return M.instance_?M.instance_:M.instance_=new M}};
_.ak=function(M){var z=typeof M;return z!="object"?z:M?Array.isArray(M)?"array":z:"null"};
_.WY=function(M){var z=_.ak(M);return z=="array"||z=="object"&&typeof M.length=="number"};
_.E8=function(M){var z=typeof M;return z=="object"&&M!=null||z=="function"};
_.fp=function(M){return Object.prototype.hasOwnProperty.call(M,cHH)&&M[cHH]||(M[cHH]=++dMp)};
cHH="closure_uid_"+(Math.random()*1E9>>>0);dMp=0;Kjb=function(M,z,J){return M.call.apply(M.bind,arguments)};
$M8=function(M,z,J){if(!M)throw Error();if(arguments.length>2){var R=Array.prototype.slice.call(arguments,2);return function(){var D=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(D,R);return M.apply(z,D)}}return function(){return M.apply(z,arguments)}};
_.xF=function(M,z,J){_.xF=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Kjb:$M8;return _.xF.apply(null,arguments)};
_.Uf=function(M,z){var J=Array.prototype.slice.call(arguments,1);return function(){var R=J.slice();R.push.apply(R,arguments);return M.apply(this,R)}};
_.Ss=function(){return Date.now()};
wl=function(M){return M};
_.ZP=function(M,z){function J(){}
J.prototype=z.prototype;M.superClass_=z.prototype;M.prototype=new J;M.prototype.constructor=M;M.base=function(R,D,N){for(var Z=Array(arguments.length-2),B=2;B<arguments.length;B++)Z[B-2]=arguments[B];return z.prototype[D].apply(R,Z)}};
u1R=function(M){return M};var qxn,WjY;_.u=function(M,z,J,R){var D=arguments.length,N=D<3?z:R===null?R=Object.getOwnPropertyDescriptor(z,J):R,Z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")N=Reflect.decorate(M,z,J,R);else for(var B=M.length-1;B>=0;B--)if(Z=M[B])N=(D<3?Z(N):D>3?Z(z,J,N):Z(z,J))||N;D>3&&N&&Object.defineProperty(z,J,N)};
_.W=function(M,z){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(M,z)};
qxn=function(M,z){if(z!==null&&z!==void 0){if(typeof z!=="object"&&typeof z!=="function")throw new TypeError("A");if(J===void 0){if(!Symbol.dispose)throw new TypeError("C");var J=z[Symbol.dispose]}if(typeof J!=="function")throw new TypeError("D");M.stack.push({value:z,dispose:J,async:!1})}return z};
WjY=function(M){function z(N){M.error=M.hasError?new SuppressedError(N,M.error,"An error was suppressed during disposal."):N;M.hasError=!0}
function J(){for(;R=M.stack.pop();)try{if(!R.async&&D===1)return D=0,M.stack.push(R),Promise.resolve().then(J);if(R.dispose){var N=R.dispose.call(R.value);if(R.async)return D|=2,Promise.resolve(N).then(J,function(Z){z(Z);return J()})}else D|=1}catch(Z){z(Z)}if(D===1)return M.hasError?Promise.reject(M.error):Promise.resolve();
if(M.hasError)throw M.error;}
var R,D=0;J()};_.ZP(_.Mb,Error);_.Mb.prototype.name="CustomError";var ai0;var VT3=void 0,EP3,fiG=typeof TextDecoder!=="undefined",R0b,Jec=typeof String.prototype.isWellFormed==="function",z0b=typeof TextEncoder!=="undefined";var Ljp;_.Gz=function(M){for(var z=[],J=0,R=0;R<M.length;R++){var D=M.charCodeAt(R);D<128?z[J++]=D:(D<2048?z[J++]=D>>6|192:((D&64512)==55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)==56320?(D=65536+((D&1023)<<10)+(M.charCodeAt(++R)&1023),z[J++]=D>>18|240,z[J++]=D>>12&63|128):z[J++]=D>>12|224,z[J++]=D>>6&63|128),z[J++]=D&63|128)}return z};
Ljp=function(M){for(var z=[],J=0,R=0;J<M.length;){var D=M[J++];if(D<128)z[R++]=String.fromCharCode(D);else if(D>191&&D<224){var N=M[J++];z[R++]=String.fromCharCode((D&31)<<6|N&63)}else if(D>239&&D<365){N=M[J++];var Z=M[J++],B=M[J++];D=((D&7)<<18|(N&63)<<12|(Z&63)<<6|B&63)-65536;z[R++]=String.fromCharCode(55296+(D>>10));z[R++]=String.fromCharCode(56320+(D&1023))}else N=M[J++],Z=M[J++],z[R++]=String.fromCharCode((D&15)<<12|(N&63)<<6|Z&63)}return z.join("")};var o3=String.prototype.trim?function(M){return M.trim()}:function(M){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(M)[1]},AHw=/&/g,iiG=/</g,Ccn=/>/g,bip=/"/g,rHe=/'/g,Mib=/\x00/g,z7p=/[\x00&<>"']/;var kI=!!(DP[0]>>15&1),Jc8=!!(DP[0]&1024),R7p=!!(DP[0]>>16&1),DXo=!!(DP[0]&8),NTp=!!(DP[0]&2),PhH=!!(DP[0]&4),Sgo=!!(DP[0]&16),ZtY=!!(DP[0]&128);var k28=RJ(1,!0),QH=kI?R7p:RJ(610401301,!1),BTp=kI?DXo:RJ(772657768,!1),Otb=kI?NTp:RJ(513659523,!1),TTR=kI?Jc8||!PhH:RJ(568333945,k28),jtb=kI?Sgo:RJ(1331761403,!1),Xtp=kI?Jc8||!ZtY:RJ(748402147,k28);var U8,Ixo=_.R3.navigator;U8=Ixo?Ixo.userAgentData||null:null;var fo;_.HY=function(M,z){return Array.prototype.indexOf.call(M,z,void 0)};
_.VU=function(M,z,J){Array.prototype.forEach.call(M,z,J)};
_.B9=function(M,z,J){return Array.prototype.filter.call(M,z,J)};
_.sa=function(M,z,J){return Array.prototype.map.call(M,z,J)};
fo=function(M,z,J){return Array.prototype.some.call(M,z,J)};
_.P1G=function(M,z,J){return Array.prototype.every.call(M,z,J)};var OD=function(M){OD[" "](M);return M};
OD[" "]=function(){};
var wj0=function(M,z){try{return OD(M[z]),!0}catch(J){}return!1},XIY=function(M,z,J,R){R=R?R(z):z;
return Object.prototype.hasOwnProperty.call(M,R)?M[R]:M[R]=J(z)};var o0e,i9,XFp,lxH,QaG,UXY,Jnw,v0c,G2c,wFY,X_w,tiw,jac,mX8,g0n,sae;_.o$p=function(){return _.R3.navigator||null};
o0e=S8b();_.Tj=Zpp();i9=G8("Edge");XFp=i9||_.Tj;_.IJ=G8("Gecko")&&!(_.T8(_.lG(),"WebKit")&&!G8("Edge"))&&!(G8("Trident")||G8("MSIE"))&&!G8("Edge");_.oJ=_.T8(_.lG(),"WebKit")&&!G8("Edge");lxH=_.oJ&&G8("Mobile");_.e78=_.e03();QaG=_.Q3c();UXY=(mw()?U8.platform==="Linux":G8("Linux"))||_.Ubw();Jnw=_.XYn();v0c=lcR();G2c=G8("iPad");wFY=G8("iPod");_.xX3=_.gR();X_w=_.T8(_.lG(),"KaiOS");tiw=function(){var M=_.R3.document;return M?M.documentMode:void 0};
a:{var pFe="",Fyn=function(){var M=_.lG();if(_.IJ)return/rv:([^\);]+)(\)|;)/.exec(M);if(i9)return/Edge\/([\d\.]+)/.exec(M);if(_.Tj)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M);if(_.oJ)return/WebKit\/(\S+)/.exec(M);if(o0e)return/(?:Version)[ \/]?(\S+)/.exec(M)}();
Fyn&&(pFe=Fyn?Fyn[1]:"");if(_.Tj){var YgH=tiw();if(YgH!=null&&YgH>parseFloat(pFe)){jac=String(YgH);break a}}jac=pFe}mX8=jac;g0n={};_.XZ=function(M){return XIY(g0n,M,function(){return _.Xn(mX8,M)>=0})};
if(_.R3.document&&_.Tj){var n0G=tiw();sae=n0G?n0G:parseInt(mX8,10)||void 0}else sae=void 0;_.h7o=sae;var wAb,xvp,yco;_.lN=pp();wAb=lcR()||G8("iPod");xvp=G8("iPad");yco=_.Opb();_.es=_.Yo();_.cJ=_.BRb()&&!_.gR();var Htp,QE,u3G,ksb,dX0,ccY;Htp={};QE=null;u3G=_.IJ||_.oJ||typeof _.R3.btoa=="function";_.YG=function(M,z){z===void 0&&(z=0);ccY();z=Htp[z];for(var J=Array(Math.floor(M.length/3)),R=z[64]||"",D=0,N=0;D<M.length-2;D+=3){var Z=M[D],B=M[D+1],O=M[D+2],X=z[Z>>2];Z=z[(Z&3)<<4|B>>4];B=z[(B&15)<<2|O>>6];O=z[O&63];J[N++]=X+Z+B+O}X=0;O=R;switch(M.length-D){case 2:X=M[D+1],O=z[(X&15)<<2]||R;case 1:M=M[D],J[N]=z[M>>2]+z[(M&3)<<4|X>>4]+O+R}return J.join("")};
ksb=function(M){var z="";dX0(M,function(J){z+=String.fromCharCode(J)});
return z};
_.HIw=function(M){var z=[];dX0(M,function(J){z.push(J)});
return z};
_.Ae=function(M){var z=M.length,J=z*3/4;J%3?J=Math.floor(J):_.BY("=.",M[z-1])&&(J=_.BY("=.",M[z-2])?J-2:J-1);var R=new Uint8Array(J),D=0;dX0(M,function(N){R[D++]=N});
return D!==J?R.subarray(0,D):R};
dX0=function(M,z){function J(O){for(;R<M.length;){var X=M.charAt(R++),l=QE[X];if(l!=null)return l;if(!_.ko(X))throw Error("H`"+X);}return O}
ccY();for(var R=0;;){var D=J(-1),N=J(0),Z=J(64),B=J(64);if(B===64&&D===-1)break;z(D<<2|N>>4);Z!=64&&(z(N<<4&240|Z>>2),B!=64&&z(Z<<6&192|B))}};
ccY=function(){if(!QE){QE={};for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],J=0;J<5;J++){var R=M.concat(z[J].split(""));Htp[J]=R;for(var D=0;D<R.length;D++){var N=R[D];QE[N]===void 0&&(QE[N]=D)}}}};var Vp3=typeof Uint8Array!=="undefined",h0Y=!_.Tj&&typeof btoa==="function",yee=/[-_.]/g,s3p={"-":"+",_:"/",".":"="},tS={};var U$,$Xc;U$=function(M,z){if(z!==tS)throw Error("J");this.JSC$8786_value_=M;if(M!=null&&M.length===0)throw Error("I");};
_.ja=function(){return KyR||(KyR=new U$(null,tS))};
$Xc=function(M){return new Uint8Array(dNn(M)||0)};
U$.prototype.isEmpty=function(){return this.JSC$8786_value_==null};
U$.prototype.sizeBytes=function(){var M=dNn(this);return M?M.length:0};
var dNn=function(M){if(tS!==tS)throw Error("J");var z=M.JSC$8786_value_;z==null||Vp3&&z!=null&&z instanceof Uint8Array||(typeof z==="string"?z=Hpe(z):(_.ak(z),z=null));return z==null?z:M.JSC$8786_value_=z},KyR;var dbw=void 0;var DV=typeof Symbol==="function"&&typeof Symbol()==="symbol",uIn=zt("jas",void 0,!0),ySn=zt(void 0,"0di"),iw=zt(void 0,"1oa"),xG=zt(void 0,Symbol()),CJe=zt(void 0,"0ub"),rSn=zt(void 0,"0ubs"),eip=zt(void 0,"0ubsb"),ewp=zt(void 0,"0actk"),lw=zt("m_m","messagePrototypeMarker",!0),kcn=zt(void 0,"vps"),L$o=zt();var unp,$bY,qN,qg8;unp={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};$bY=Object.defineProperties;_.NB=DV?uIn:"internalArrayState";qg8=[];Sa(qg8,7);qN=Object.freeze(qg8);var U5={},O$={},WyH=function(M,z,J){this.iterable=M;this.mapper=z;this.thisArg=J};
WyH.prototype.next=function(){var M=this.iterable.next();M.done||(M.value=this.mapper.call(this.thisArg,M.value));return M};
WyH.prototype[Symbol.iterator]=function(){return this};
var axH=Object.freeze({}),m$={};_.Vi8=nv(function(M){return M!==null&&M!==void 0});var CG8=nv(function(M){return typeof M==="number"}),ipR=nv(function(M){return typeof M==="string"}),rew=nv(function(M){return typeof M==="boolean"}),E0n=nv(function(M){return M!=null&&typeof M==="object"&&typeof M.then==="function"}),Won=nv(function(M){return typeof M==="function"}),Ma=nv(function(M){return!!M&&(typeof M==="object"||typeof M==="function")});var bp0=typeof _.R3.BigInt==="function"&&typeof _.R3.BigInt(0)==="bigint";var Y$3=nv(function(M){return bp0?M>=fxn&&M<=Lye:M[0]==="-"?Ma8(M,AcY):Ma8(M,itG)}),AcY=Number.MIN_SAFE_INTEGER.toString(),fxn=bp0?BigInt(Number.MIN_SAFE_INTEGER):void 0,itG=Number.MAX_SAFE_INTEGER.toString(),Lye=bp0?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Chc=typeof Uint8Array.prototype.slice==="function",Hu=0,cu=0,vqp;var Rv,Pt,VV,Zs,OvH;Rv=typeof BigInt==="function"?BigInt.asIntN:void 0;_.kG=typeof BigInt==="function"?BigInt.asUintN:void 0;Pt=Number.isSafeInteger;VV=Number.isFinite;Zs=Math.trunc;OvH=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Blc={};var VaG={},btw=function(){try{var M=function(){return QUY(Map,[],this.constructor)};
_.w(M,Map);OD(new M);return!1}catch(z){return!0}}(),UD=function(){this.JSC$8806_map_=new Map};
_.P=UD.prototype;_.P.get=function(M){return this.JSC$8806_map_.get(M)};
_.P.set=function(M,z){this.JSC$8806_map_.set(M,z);this.size=this.JSC$8806_map_.size;return this};
_.P.delete=function(M){M=this.JSC$8806_map_.delete(M);this.size=this.JSC$8806_map_.size;return M};
_.P.clear=function(){this.JSC$8806_map_.clear();this.size=this.JSC$8806_map_.size};
_.P.has=function(M){return this.JSC$8806_map_.has(M)};
_.P.entries=function(){return this.JSC$8806_map_.entries()};
_.P.keys=function(){return this.JSC$8806_map_.keys()};
_.P.values=function(){return this.JSC$8806_map_.values()};
_.P.forEach=function(M,z){return this.JSC$8806_map_.forEach(M,z)};
UD.prototype[Symbol.iterator]=function(){return this.entries()};
var md=function(){if(btw)return Object.setPrototypeOf(UD.prototype,Map.prototype),Object.defineProperties(UD.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),UD;var M=function(){return QUY(Map,[],this.constructor)};
_.w(M,Map);return M}(),vt=function(M,z,J,R){J=J===void 0?$Be:J;
R=R===void 0?$Be:R;var D=md.call(this)||this;D.arrayState=M[_.NB]|0;D.valueCtor=z;D.keyToApi=J;D.valueToApi=D.valueCtor?q$o:R;for(var N=0;N<M.length;N++){var Z=M[N],B=J(Z[0],!1,!0),O=Z[1];z?O===void 0&&(O=null):O=R(Z[1],!1,!0,void 0,void 0,D.arrayState);md.prototype.set.call(D,B,O)}return D};
_.w(vt,md);var rco=function(M){if(M.arrayState&2)throw Error("N");};
_.P=vt.prototype;_.P.clear=function(){rco(this);md.prototype.clear.call(this)};
_.P.delete=function(M){rco(this);return md.prototype.delete.call(this,this.keyToApi(M,!0,!1))};
_.P.entries=function(){if(this.valueCtor){var M=md.prototype.keys.call(this);M=new WyH(M,W$H,this)}else M=md.prototype.entries.call(this);return M};
_.P.values=function(){if(this.valueCtor){var M=md.prototype.keys.call(this);M=new WyH(M,vt.prototype.get,this)}else M=md.prototype.values.call(this);return M};
_.P.forEach=function(M,z){this.valueCtor?md.prototype.forEach.call(this,function(J,R,D){M.call(z,D.get(R),R,D)}):md.prototype.forEach.call(this,M,z)};
_.P.set=function(M,z){rco(this);M=this.keyToApi(M,!0,!1);return M==null?this:z==null?(md.prototype.delete.call(this,M),this):md.prototype.set.call(this,M,this.valueToApi(z,!0,!0,this.valueCtor,!1,this.arrayState))};
_.P.has=function(M){return md.prototype.has.call(this,this.keyToApi(M,!1,!1))};
_.P.get=function(M){M=this.keyToApi(M,!1,!1);var z=md.prototype.get.call(this,M);if(z!==void 0){var J=this.valueCtor;return J?(J=this.valueToApi(z,!1,!0,J,this.callToMutableOnAccess,this.arrayState),J!==z&&md.prototype.set.call(this,M,J),J):z}};
vt.prototype[Symbol.iterator]=function(){return this.entries()};
vt.prototype.toJSON=void 0;var aV0;var Rwb=function(){},zw0=function(M,z){for(var J in M)!isNaN(J)&&z(M,+J,M[J])},DNc=function(M){var z=new Rwb;
zw0(M,function(J,R,D){z[R]=$p(D)});
z.reviveUnknownFields=M.reviveUnknownFields;return z},ASG={reviveIntoImmutable:!0};var JiY;var OwR,Tle;var MjY,fw,of,UB,z9n,FZ,eI,JWb,R9p,sD,DRY,ny,H9,c9;MjY=_.hS(0);_.v9={};_.Gj=function(M,z,J,R,D){z=fw(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z,J,D);if(z!==null||R&&M.noLegacyNull!==O$)return z};
fw=function(M,z,J,R){if(z===-1)return null;var D=z+(J?0:-1),N=M.length-1;if(!(N<1+(J?0:-1))){if(D>=N){var Z=M[N];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object){J=Z[z];var B=!0}else if(D===N)J=Z;else return}else J=M[D];if(R&&J!=null){R=R(J);if(R==null)return R;if(!Object.is(R,J))return B?Z[z]=R:M[D]=R,R}return J}};
_.PI=function(M,z,J,R){dl(M);var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$G(D,D[_.NB]|0,z,J,R);return M};
_.wo=function(M,z,J){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nGw(M,M[_.NB]|0,z,J)!==void 0};
_.xI=function(M,z,J,R){var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nGw(D,D[_.NB]|0,z,UB(M,R,J))!==void 0};
_.JK=function(M){return M===axH?2:4};
_.tv=function(M,z){M=_.Gj(M,z,void 0,void 0,pto);return M==null?_.ja():M};
of=function(M,z,J,R){dl(M);var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=D[_.NB]|0;if(R==null){var Z=mNR(D);if(gGR(Z,D,N,J)===z)Z.set(J,0);else return M}else N=svo(D,N,J,z);$G(D,N,z,R);return M};
_.js=function(M,z,J,R){var D=M[_.NB]|0,N=gg(D);D=svo(M,D,J,z,N);$G(M,D,z,R,N)};
UB=function(M,z,J){return _.py(M,z)===J?J:-1};
_.py=function(M,z){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gGR(mNR(M),M,void 0,z,void 0)};
z9n=function(M,z,J){var R=M[_.NB]|0,D=gg(R),N=fw(M,J,D);if(N!=null&&N[lw]===U5){if(!Tt(N))return ct(N),N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(N)&&(Z=N);if(Z){var B=Z[_.NB]|0;B&2&&(Z=hi(Z,B))}Z=oG8(Z,z,!0);Z!==N&&$G(M,R,J,Z,D);return Z};
_.DG=function(M,z,J,R){var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=D[_.NB]|0;z=nGw(D,N,z,J,R);if(z==null)return z;N=D[_.NB]|0;if(!Tt(M,N)){var Z=uQn(z);Z!==z&&(ct(M)&&(D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=D[_.NB]|0),z=Z,N=$G(D,N,J,z,R),Kw(D,N))}return z};
_.zz=function(M,z,J,R){var D=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return hw8(M,D,D[_.NB]|0,z,J,R,!1,!0)};
_.or=function(M,z,J,R){J=yip(J);_.PI(M,z,J,R);J&&!Tt(J)&&Kw(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
_.Xq=function(M,z,J,R){R=yip(R);of(M,z,J,R);R&&!Tt(R)&&Kw(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
FZ=function(M,z,J){dl(M);var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=R[_.NB]|0;if(J==null)return $G(R,D,z),M;for(var N=J===qN?7:J[_.NB]|0,Z=N,B=E5(N),O=B||Object.isFrozen(J),X=!0,l=!0,e=0;e<J.length;e++){var Q=J[e];B||(Q=Tt(Q),X&&(X=!Q),l&&(l=Q))}B||(N=X?13:5,N=l?N&-4097:N|4096);O&&N===Z||(J=$p(J),Z=0,N=Wt(N,D));N!==Z&&Sa(J,N);D=$G(R,D,z,J);2&N||!(4096&N||16&N)||Kw(R,D);return M};
eI=function(M,z,J,R){cip(M,z,J,R);return M};
JWb=function(M,z,J){cip(M,z,YI,void 0,J,1,!0);return M};
_.me=function(M,z,J){M=_.Gj(M,z,void 0,J);z=typeof M;M=M==null?M:z==="bigint"?_.hS((0,_.kG)(64,M)):_.E$(M)?z==="string"?_.F$G(M):_.jkn(M):void 0;return M};
_.go=function(M,z){var J=J===void 0?!1:J;var R;return(R=_.BgR(_.Gj(M,z)))!=null?R:J};
_.R2=function(M,z,J){J=J===void 0?0:J;var R;return(R=_.rg(_.Gj(M,z)))!=null?R:J};
R9p=function(M,z){var J=J===void 0?0:J;M=_.IV8(_.Gj(M,z));return M!=null?M:J};
sD=function(M,z,J){J=J===void 0?MjY:J;var R;return(R=_.sk8(_.Gj(M,z)))!=null?R:J};
DRY=function(M){var z=z===void 0?MjY:z;var J;return(J=_.me(M,23))!=null?J:z};
ny=function(M,z){var J=J===void 0?0:J;var R;return(R=_.Gj(M,z,void 0,void 0,_.Zvn))!=null?R:J};
_.hv=function(M,z,J,R){J=J===void 0?"":J;var D;return(D=_.ov(_.Gj(M,z,R)))!=null?D:J};
_.yE=function(M,z){var J=J===void 0?0:J;var R;return(R=_.Cv(_.Gj(M,z)))!=null?R:J};
H9=function(M,z){var J=J===void 0?"0":J;M=gp8(_.Gj(M,z),!0);return M!=null?M:J};
c9=function(M,z,J){return _.hv(M,UB(M,J,z))};
_.Ky=function(M,z,J,R){return _.DG(M,z,UB(M,R,J),void 0)};
_.o2=function(M,z){return _.ov(_.Gj(M,z,void 0,_.v9))};
_.SJ=function(M,z,J){return _.PI(M,z,ktp(J))};
_.gM=function(M,z,J){return _.Ai(M,z,ktp(J),!1)};
_.$I=function(M,z,J){return _.PI(M,z,_.bJ(J))};
_.GF=function(M,z,J){return _.PI(M,z,NN(J))};
_.G$=function(M,z,J){return _.PI(M,z,O5(J))};
_.fr=function(M,z,J,R){return _.Ai(M,z,O5(J),"",R)};
_.Nc=function(M,z,J){return _.PI(M,z,J==null?J:_.fv(J))};
_.uN=function(M,z,J){return _.Ai(M,z,J==null?J:_.fv(J),0)};var Cw=function(M,z,J){this.buffer=M;if(J&&!z)throw Error();this.JSC$8818_isImmutable=z};var Nne=function(M,z,J,R){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8821_start_=0;this.init(M,z,J,R)},q8,SY8,ZVe,Bno,Ps0,Pqn;
_.P=Nne.prototype;_.P.init=function(M,z,J,R){var D=R===void 0?{}:R;R=D.aliasBytesFields===void 0?!1:D.aliasBytesFields;D=D.treatNewDataAsImmutable===void 0?!1:D.treatNewDataAsImmutable;this.aliasBytesFields=R;this.treatNewDataAsImmutable=D;M&&(M=Kdo(M,this.treatNewDataAsImmutable),this.bytes_=M.buffer,this.bytesAreImmutable_=M.JSC$8818_isImmutable,this.JSC$8821_start_=z||0,this.end_=J!==void 0?this.JSC$8821_start_+J:this.bytes_.length,this.cursor_=this.JSC$8821_start_)};
_.P.free=function(){this.clear();Pqn.length<100&&Pqn.push(this)};
_.P.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8821_start_=0;this.aliasBytesFields=!1};
_.P.reset=function(){this.cursor_=this.JSC$8821_start_};
_.P.atEnd=function(){return this.cursor_==this.end_};
_.W9=function(M,z){var J=0,R=0,D=0,N=M.bytes_,Z=M.cursor_;do{var B=N[Z++];J|=(B&127)<<D;D+=7}while(D<32&&B&128);if(D>32)for(R|=(B&127)>>4,D=3;D<32&&B&128;D+=7)B=N[Z++],R|=(B&127)<<D;q8(M,Z);if(!(B&128))return z(J>>>0,R>>>0);throw Error();};
q8=function(M,z){M.cursor_=z;if(z>M.end_)throw Error();};
_.aJ=function(M){var z=M.bytes_,J=M.cursor_,R=z[J++],D=R&127;if(R&128&&(R=z[J++],D|=(R&127)<<7,R&128&&(R=z[J++],D|=(R&127)<<14,R&128&&(R=z[J++],D|=(R&127)<<21,R&128&&(R=z[J++],D|=R<<28,R&128&&z[J++]&128&&z[J++]&128&&z[J++]&128&&z[J++]&128&&z[J++]&128)))))throw Error();q8(M,J);return D};
_.VE=function(M){var z=M.bytes_,J=M.cursor_,R=z[J],D=z[J+1],N=z[J+2];z=z[J+3];q8(M,M.cursor_+4);return(R<<0|D<<8|N<<16|z<<24)>>>0};
SY8=function(M){var z=_.VE(M);M=_.VE(M);return R28(z,M)};
ZVe=function(M){var z=_.VE(M),J=_.VE(M);M=(J>>31)*2+1;var R=J>>>20&2047;z=4294967296*(J&1048575)+z;return R==2047?z?NaN:M*Infinity:R==0?M*4.9E-324*z:M*Math.pow(2,R-1075)*(z+4503599627370496)};
_.kBn=function(M){for(var z=0,J=M.cursor_,R=J+10,D=M.bytes_;J<R;){var N=D[J++];z|=N;if((N&128)===0)return q8(M,J),!!(z&127)}throw Error();};
Bno=function(M,z){if(z<0)throw Error();var J=M.cursor_;z=J+z;if(z>M.end_)throw Error();M.cursor_=z;return J};
Ps0=function(M,z){if(z==0)return _.ja();var J=Bno(M,z);M.aliasBytesFields&&M.bytesAreImmutable_?J=M.bytes_.subarray(J,J+z):(M=M.bytes_,z=J+z,J=J===z?new Uint8Array(0):Chc?M.slice(J,z):new Uint8Array(M.subarray(J,z)));return J.length==0?_.ja():new U$(J,tS)};
Pqn=[];var Tnb=function(M,z,J,R){if(Pqn.length){var D=Pqn.pop();D.init(M,z,J,R);M=D}else M=new Nne(M,z,J,R);this.decoder_=M;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;OVG(this,R)},OVG=function(M,z){z=z===void 0?{}:z;
M.discardUnknownFields=z.discardUnknownFields===void 0?!1:z.discardUnknownFields},kAR=function(M,z,J,R){if(IHe.length){var D=IHe.pop();
OVG(D,R);D.decoder_.init(M,z,J,R);return D}return new Tnb(M,z,J,R)},Rip,Niw,oAp,IHe;
Tnb.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;IHe.length<100&&IHe.push(this)};
Tnb.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Rip=function(M){if(M.decoder_.atEnd())return!1;M.fieldCursor_=M.decoder_.cursor_;var z=_.aJ(M.decoder_)>>>0,J=z>>>3;z&=7;if(!(z>=0&&z<=5))throw Error();if(J<1)throw Error();M.nextField_=J;M.nextWireType_=z;return!0};
Niw=function(M){switch(M.nextWireType_){case 0:M.nextWireType_!=0?Niw(M):_.kBn(M.decoder_);break;case 1:M=M.decoder_;q8(M,M.cursor_+8);break;case 2:if(M.nextWireType_!=2)Niw(M);else{var z=_.aJ(M.decoder_)>>>0;M=M.decoder_;q8(M,M.cursor_+z)}break;case 5:M=M.decoder_;q8(M,M.cursor_+4);break;case 3:z=M.nextField_;do{if(!Rip(M))throw Error();if(M.nextWireType_==4){if(M.nextField_!=z)throw Error();break}Niw(M)}while(1);break;default:throw Error();}};
oAp=function(M,z,J){var R=M.decoder_.end_,D=_.aJ(M.decoder_)>>>0;D=M.decoder_.cursor_+D;var N=D-R;N<=0&&(M.decoder_.end_=D,J(z,M,void 0,void 0,void 0),N=D-M.decoder_.cursor_);if(N)throw Error();M.decoder_.cursor_=D;M.decoder_.end_=R};
_.X7w=function(M){var z=_.aJ(M.decoder_)>>>0;M=M.decoder_;var J=Bno(M,z);M=M.bytes_;if(fiG){var R=M,D;(D=EP3)||(D=EP3=new TextDecoder("utf-8",{fatal:!0}));z=J+z;R=J===0&&z===R.length?R:R.subarray(J,z);try{var N=D.decode(R)}catch(X){if(VT3===void 0){try{D.decode(new Uint8Array([128]))}catch(l){}try{D.decode(new Uint8Array([97])),VT3=!0}catch(l){VT3=!1}}!VT3&&(EP3=void 0);throw X;}}else{N=J;z=N+z;J=[];for(var Z=null,B,O;N<z;)B=M[N++],B<128?J.push(B):B<224?N>=z?Je():(O=M[N++],B<194||(O&192)!==128?(N--,
Je()):J.push((B&31)<<6|O&63)):B<240?N>=z-1?Je():(O=M[N++],(O&192)!==128||B===224&&O<160||B===237&&O>=160||((D=M[N++])&192)!==128?(N--,Je()):J.push((B&15)<<12|(O&63)<<6|D&63)):B<=244?N>=z-2?Je():(O=M[N++],(O&192)!==128||(B<<28)+(O-144)>>30!==0||((D=M[N++])&192)!==128||((R=M[N++])&192)!==128?(N--,Je()):(B=(B&7)<<18|(O&63)<<12|(D&63)<<6|R&63,B-=65536,J.push((B>>10&1023)+55296,(B&1023)+56320))):Je(),J.length>=8192&&(Z=Mp3(Z,J),J.length=0);N=Mp3(Z,J)}return N};
_.lHn=function(M){var z=_.aJ(M.decoder_)>>>0;return Ps0(M.decoder_,z)};
_.e9p=function(M,z,J){var R=_.aJ(M.decoder_)>>>0;for(R=M.decoder_.cursor_+R;M.decoder_.cursor_<R;)J.push(z(M.decoder_))};
IHe=[];var QAp=function(M,z){this.JSC$8828_lo=M>>>0;this.JSC$8828_hi=z>>>0},vAH=function(M){if(!M)return URY||(URY=new QAp(0,0));
if(!/^\d+$/.test(M))return null;S$n(M);return new QAp(Hu,cu)},URY,tqp=function(M,z){this.JSC$8830_lo=M>>>0;
this.JSC$8830_hi=z>>>0},w4R=function(M){if(!M)return GB8||(GB8=new tqp(0,0));
if(!/^-?\d+$/.test(M))return null;S$n(M);return new tqp(Hu,cu)},GB8;var ED=function(){this.JSC$8832_buffer_=[]},xE8,w7R;
ED.prototype.length=function(){return this.JSC$8832_buffer_.length};
ED.prototype.end=function(){var M=this.JSC$8832_buffer_;this.JSC$8832_buffer_=[];return M};
xE8=function(M,z,J){for(;J>0||z>127;)M.JSC$8832_buffer_.push(z&127|128),z=(z>>>7|J<<25)>>>0,J>>>=7;M.JSC$8832_buffer_.push(z)};
w7R=function(M,z){for(;z>127;)M.JSC$8832_buffer_.push(z&127|128),z>>>=7;M.JSC$8832_buffer_.push(z)};
_.jro=function(M,z){if(z>=0)w7R(M,z);else{for(var J=0;J<9;J++)M.JSC$8832_buffer_.push(z&127|128),z>>=7;M.JSC$8832_buffer_.push(1)}};
ED.prototype.writeUint8=function(M){this.JSC$8832_buffer_.push(M>>>0&255)};
_.Sq=function(M,z){M.JSC$8832_buffer_.push(z>>>0&255);M.JSC$8832_buffer_.push(z>>>8&255);M.JSC$8832_buffer_.push(z>>>16&255);M.JSC$8832_buffer_.push(z>>>24&255)};
ED.prototype.writeInt8=function(M){this.JSC$8832_buffer_.push(M>>>0&255)};var xRw,Jr,FA8,gqY;xRw=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new ED};
Jr=function(M,z){z.length!==0&&(M.blocks_.push(z),M.totalLength_+=z.length)};
_.Wde=function(M,z){_.P4(M,z,2);z=M.encoder_.end();Jr(M,z);z.push(M.totalLength_);return z};
_.asY=function(M,z){var J=z.pop();for(J=M.totalLength_+M.encoder_.length()-J;J>127;)z.push(J&127|128),J>>>=7,M.totalLength_++;z.push(J);M.totalLength_++};
_.P4=function(M,z,J){w7R(M.encoder_,z*8+J)};
FA8=function(M,z,J){if(J!=null){switch(typeof J){case "string":vAH(J)}_.P4(M,z,1);switch(typeof J){case "number":M=M.encoder_;z20(J);_.Sq(M,Hu);_.Sq(M,cu);break;case "bigint":J=BigInt.asUintN(64,J);J=new QAp(Number(J&BigInt(4294967295)),Number(J>>BigInt(32)));M=M.encoder_;z=J.JSC$8828_hi;_.Sq(M,J.JSC$8828_lo);_.Sq(M,z);break;default:J=vAH(J),M=M.encoder_,z=J.JSC$8828_hi,_.Sq(M,J.JSC$8828_lo),_.Sq(M,z)}}};
gqY=function(M,z,J){_.P4(M,z,2);w7R(M.encoder_,J.length);Jr(M,M.encoder_.end());Jr(M,J)};var $NH,p7o,FkH,gAb,sAc;$NH=bw();_.tjp=bw();_.jAw=bw();p7o=bw();FkH=bw();_.YYR=bw();_.fy=bw();_.mRR=bw();gAb=bw();sAc=bw();_.nAG=bw();_.h9o=bw();_.zA=function(M,z,J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,z,J)};
_.zA.prototype.toJSON=function(){return s5(this)};
_.zA.prototype.serialize=function(M){return JSON.stringify(s5(this,M))};
var KAb=function(M,z){if(z==null||z=="")return new M;z=JSON.parse(z);if(!Array.isArray(z))throw Error("V");return new M(ac3(z))};
_.zA.prototype.getExtension=function(M){bvH(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M.fieldIndex);ivc(this,M.fieldIndex);return M.ctor?M.isRepeated?M.getExtensionFn(this,M.ctor,M.fieldIndex,_.JK(),M.JSC$8843_hasMessageId):M.getExtensionFn(this,M.ctor,M.fieldIndex,M.JSC$8843_hasMessageId):M.isRepeated?M.getExtensionFn(this,M.fieldIndex,_.JK(),M.JSC$8843_hasMessageId):M.getExtensionFn(this,M.fieldIndex,M.defaultValue,M.JSC$8843_hasMessageId)};
_.zA.prototype.clone=function(){var M=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=M[_.NB]|0;return wt8(this,M,z)?Gc3(this,M,!0):new this.constructor(hi(M,z,!1))};
_.zA.prototype[lw]=U5;_.zA.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var rl=function(M,z,J){this.$$binaryReaderFn=M;this.$$binaryWriterFn=z;M=wl($NH);this.$$isMsg=!!M&&J===M||!1},AiR=ul3(function(M,z,J,R,D){if(M.nextWireType_!==2)return!1;
oAp(M,z9n(z,R,J),D);return!0},Vmp),iww=ul3(function(M,z,J,R,D){if(M.nextWireType_!==2)return!1;
oAp(M,z9n(z,R,J),D);return!0},Vmp),O30=Symbol(),ri8=Symbol(),Jr8=Symbol(),oqc=Symbol(),Swn=Symbol(),EG3,fs8;var H33,yW0,HVG,cWH,dRH,Kke,$Re,urH,qYw,Wkp,aHp,EA3,fH8,AWn,iVo;H33=function(M,z){var J=new xRw;X4Y(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J,ME(O30,BiR,Tio,z));Jr(J,J.encoder_.end());M=new Uint8Array(J.totalLength_);z=J.blocks_;for(var R=z.length,D=0,N=0;N<R;N++){var Z=z[N];M.set(Z,D);D+=Z.length}J.blocks_=[M];return M};
yW0=_.Dd(function(M,z,J){if(M.nextWireType_!==1)return!1;_.NE(z,J,ZVe(M.decoder_));return!0},GAw,sAc);
HVG=_.Dd(function(M,z,J,R){if(M.nextWireType_!==1)return!1;_.js(z,J,R,ZVe(M.decoder_));return!0},GAw,sAc);
cWH=_.Dd(function(M,z,J,R){if(M.nextWireType_!==5)return!1;var D=_.VE(M.decoder_);M=(D>>31)*2+1;var N=D>>>23&255;D&=8388607;_.js(z,J,R,N==255?D?NaN:M*Infinity:N==0?M*1.401298464324817E-45*D:M*Math.pow(2,N-150)*(D+8388608));return!0},function(M,z,J){z=_.Zvn(z);
z!=null&&(_.P4(M,J,5),M=M.encoder_,J=vqp||(vqp=new DataView(new ArrayBuffer(8))),J.setFloat32(0,+z,!0),cu=0,Hu=J.getUint32(0,!0),_.Sq(M,Hu))},gAb);
_.Ly=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;_.NE(z,J,_.W9(M.decoder_,DBb));return!0},_.kq,_.fy);
dRH=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;M=_.W9(M.decoder_,DBb);_.NE(z,J,M===0?void 0:M);return!0},_.kq,_.fy);
Kke=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;_.js(z,J,R,_.W9(M.decoder_,DBb));return!0},_.kq,_.fy);
_.Av=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;_.NE(z,J,_.aJ(M.decoder_));return!0},p4e,p7o);
$Re=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;M=_.aJ(M.decoder_);_.NE(z,J,M===0?void 0:M);return!0},p4e,p7o);
urH=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;_.js(z,J,R,_.aJ(M.decoder_));return!0},p4e,p7o);
qYw=_.Dd(function(M,z,J){if(M.nextWireType_!==1)return!1;_.NE(z,J,SY8(M.decoder_));return!0},_.Ywb,_.mRR);
Wkp=_.UE8(function(M,z,J){if(M.nextWireType_!==1&&M.nextWireType_!==2)return!1;z=_.Y5Y(z,z[_.NB]|0,J);M.nextWireType_==2?_.e9p(M,SY8,z):z.push(SY8(M.decoder_));return!0},function(M,z,J){z=_.Qrn(h2w,z,!1);
if(z!=null)for(var R=0;R<z.length;R++)FA8(M,J,z[R])},_.mRR);
_.iN=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;_.NE(z,J,_.kBn(M.decoder_));return!0},_.mE8,_.tjp);
aHp=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;_.js(z,J,R,_.kBn(M.decoder_));return!0},_.mE8,_.tjp);
_.Cy=_.Dd(function(M,z,J){if(M.nextWireType_!==2)return!1;_.NE(z,J,_.X7w(M));return!0},_.sro,_.jAw);
_.Vjp=_.Dd(function(M,z,J,R){if(M.nextWireType_!==2)return!1;_.js(z,J,R,_.X7w(M));return!0},_.sro,_.jAw);
EA3=_.UE8(function(M,z,J){if(M.nextWireType_!==2)return!1;M=_.X7w(M);_.Y5Y(z,z[_.NB]|0,J).push(M);return!0},function(M,z,J){z=_.Qrn(_.ov,z,!0);
if(z!=null)for(var R=0;R<z.length;R++){var D=M,N=J,Z=z[R];Z!=null&&gqY(D,N,DbH(Z))}},_.jAw);
fH8=void 0;fH8=fH8===void 0?$NH:fH8;_.ro=new rl(function(M,z,J,R,D){if(M.nextWireType_!==2)return!1;R=oG8(void 0,R,!0);_.Y5Y(z,z[_.NB]|0,J).push(R);oAp(M,R,D);return!0},function(M,z,J,R,D){if(Array.isArray(z))for(var N=0;N<z.length;N++)nq0(M,z[N],J,R,D)},fH8);
_.Mo=ul3(function(M,z,J,R,D,N){if(M.nextWireType_!==2)return!1;var Z=z[_.NB]|0;svo(z,Z,N,J,gg(Z));z=z9n(z,R,J);oAp(M,z,D);return!0},nq0);
_.Lk3=_.Dd(function(M,z,J){if(M.nextWireType_!==2)return!1;_.NE(z,J,_.lHn(M));return!0},_.hiR,_.nAG);
AWn=_.Dd(function(M,z,J,R){if(M.nextWireType_!==2)return!1;_.js(z,J,R,_.lHn(M));return!0},_.hiR,_.nAG);
iVo=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;_.js(z,J,R,_.aJ(M.decoder_)>>>0);return!0},function(M,z,J){z=_.IV8(z);
z!=null&&z!=null&&(_.P4(M,J,0),w7R(M.encoder_,z))},FkH);
_.zE=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;_.NE(z,J,_.aJ(M.decoder_));return!0},_.yrn,_.h9o);var rWw=function(){var M=Cqn,z=bVb;this.fieldIndex=175237375;this.ctor=z;this.isRepeated=0;this.getExtensionFn=_.DG;this.defaultValue=void 0;this.JSC$8843_hasMessageId=M.messageId!=null?m$:void 0};
rWw.prototype.register=function(){OD(this)};var MQ8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(MQ8,_.zA);var zpe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(zpe,_.zA);var qwp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(qwp,_.zA);var JZR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(JZR,_.zA);var Rpp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Rpp,_.zA);var DrY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DrY,_.zA);var NWn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(NWn,_.zA);NWn.prototype.getData=function(){return _.tv(this,2)};var Ptw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ptw,_.zA);var Sl0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Sl0,_.zA);Sl0.prototype.getStyle=function(){return _.DG(this,MQ8,1)};var Ir=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ir,_.zA);Ir.prototype.getPayloadCase=function(){return _.py(this,QZ)};
Ir.prototype.getStyle=function(){return _.Ky(this,Sl0,6,QZ)};
var Z53=function(){var M=new Ir,z=new Rpp;return _.Xq(M,7,QZ,z)},k68=function(){var M=new Ir,z=new DrY;
return _.Xq(M,8,QZ,z)},QZ=[1,
2,3,4,5,6,7,8];var BWH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(BWH,_.zA);var O5p=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(O5p,_.zA);var TWo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(TWo,_.zA);var IwG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(IwG,_.zA);var ogo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(ogo,_.zA);var Xqo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Xqo,_.zA);var lwY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(lwY,_.zA);var epY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(epY,_.zA);epY.prototype.getData=function(){return _.tv(this,2)};var Qio=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Qio,_.zA);var uqp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(uqp,_.zA);uqp.prototype.getPayloadCase=function(){return _.py(this,Jw)};
var Jw=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var RN=function(M,z){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=z===void 0?2:z};
_.w(RN,Error);var Ur8=Promise;var vg8=function(M){this.channelPromise=M};
vg8.prototype.send=function(M,z,J){this.channelPromise.then(function(R){R.send(M,z,J)})};var G6o=function(M,z){this.data=M;this.channel=z};
G6o.prototype.reply=function(M,z,J){this.channel.send(M,z,J)};var wqG=function(M){this.JSC$8909_port_=M};
wqG.prototype.send=function(M,z,J){J=J===void 0?[]:J;var R=new MessageChannel;xrp(R.port1,z);this.JSC$8909_port_.postMessage(M,[R.port2].concat(J))};
var tQe=function(M,z){xrp(M,z);return new wqG(M)},xrp=function(M,z){z&&(M.onmessage=function(J){z(new G6o(J.data,tQe(J.ports[0])))})};var jip=function(M){this.verifier_=M};
jip.prototype.verify=function(M){return this.verifier_(M)};
var pqp=function(M){var z=Object.create(null);(typeof M==="string"?[M]:M).forEach(function(J){if(J==="null")throw Error("X");z[J]=!0});
return function(J){return z[J]===!0}};_.Fu0=function(){if(!_.R3.addEventListener||!Object.defineProperty)return!1;var M=!1,z=Object.defineProperty({},"passive",{get:function(){M=!0}});
try{var J=function(){};
_.R3.addEventListener("test",J,z);_.R3.removeEventListener("test",J,z)}catch(R){}return M}();var Yl8;_.Dk=function(M){var z=M.destination;var J=M.iframe;var R=M.origin;var D=M.channelName===void 0?"ZNWN1d":M.channelName;var N=M.onMessage===void 0?void 0:M.onMessage;M=M.onEstablished===void 0?void 0:M.onEstablished;return Yl8({destination:z,getSource:function(){return J.contentWindow},
originVerifier:R instanceof jip?R:typeof R==="function"?new jip(R):new jip(pqp(R)),channelName:D,onMessage:N,onEstablished:M})};
Yl8=function(M){var z=M.destination;var J=M.getSource;var R=M.originVerifier;var D=M.token===void 0?void 0:M.token;var N=M.channelName;var Z=M.onMessage===void 0?void 0:M.onMessage;var B=M.onEstablished===void 0?void 0:M.onEstablished;return new vg8(new Ur8(function(O,X){var l=function(e){e.source&&e.source===J()&&R.verify(e.origin)&&(e.data.n||e.data)===N&&(z.removeEventListener("message",l,!1),D&&e.data.t!==D?X(Error("Y`"+N+"`"+D+"`"+e.data.t)):(O(tQe(e.ports[0],Z)),B&&B(e)))};
z.addEventListener("message",l,!1)}))};var mrH=function(M){try{M()}catch(z){Dc(z)}};var siR=function(M){var z=this;var J=M.getMessageType;var R=M.onUnregisteredMessage===void 0?function(){}:M.onUnregisteredMessage;
var D=M.onBeforeRegisteredMessage===void 0?function(){}:M.onBeforeRegisteredMessage;
M=M.onAfterRegisteredMessage===void 0?function(){}:M.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=J;this.onUnregisteredMessage_=R;this.onBeforeRegisteredMessage_=D;this.onAfterRegisteredMessage_=M;this.onMessage=function(N){return ggc(z,N)}};
siR.prototype.register=function(M,z){this.registry_.set(M,z);return this};
var ggc=function(M,z){var J=M.getMessageType_(z.data),R=M.registry_.get(J);R?(mrH(function(){return M.onBeforeRegisteredMessage_(z,J)}),mrH(function(){return R(z)}),mrH(function(){return M.onAfterRegisteredMessage_(z,J)})):mrH(function(){return M.onUnregisteredMessage_(z,J)})};var ngn=function(M){this.JSC$8926_channel_=M},yZn,H5G;
ngn.prototype.send=function(M,z,J){this.JSC$8926_channel_.send(s5(M),z,J)};
_.hpw=function(M,z){return function(J){var R=new M(J.data);return z(new G6o(R,J.channel))}};
yZn=function(M){return function(z){return M(new G6o(z.data,new ngn(z.channel)))}};
H5G=function(M,z){return yZn(_.hpw(M,z))};var cZw=function(M,z,J,R){this.registry=M;this.delegate=z;this.receiveMessageConstructor=J;this.createInitMessage=R;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},$Ep=function(M){var z=new siR({getMessageType:M.getPayloadCase});
return new cZw(z,new ngn(_.Dk({iframe:M.child,destination:window,origin:M.origin,channelName:M.channelName,onMessage:H5G(M.receiveMessageConstructor,z.onMessage)})),M.receiveMessageConstructor,M.createInitMessage)},dr0=function(M,z){M.createInitMessage=z};
cZw.prototype.send=function(M){if(!this.initialised)throw new RN("Attempted to send a message before initialisation.");this.delegate.send(M)};
var KuH=function(M,z){return _.k(function(J){if(!M.initialised)throw new RN("Attempted to send a message before initialisation.");return J.return(new Promise(function(R){M.delegate.send(z,H5G(M.receiveMessageConstructor,R))}))})};
cZw.prototype.init=function(){var M=this;return _.k(function(z){if(M.initialised)throw new RN("Attempted to initialise twice. The SDK can only be initialised once.");if(M.createInitMessage!==void 0){var J=M.delegate,R=J.send,D=M.createInitMessage;var N=new zpe;var Z=[].concat(_.Yj(M.features));N=_.Lw(N,1,Z,_.fv);R.call(J,D.call(M,N))}M.initialised=!0;_.UI(z)})};
var No=function(M,z){if(M.initialised)throw new RN('Attempted to set up API "'+z+'" after initialisation. All APIs must be set up before initialising the SDK.');M.features.add(z);return M.registry};
_.rX.Object.defineProperties(cZw.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var $r0=function(M){this.channel=M;this.registered=!1};
$r0.prototype.update=function(M){if(this.channel.isInitialised){if(!this.registered)throw new RN("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var z=new Ir;var J=new JZR;J=_.SJ(J,1,M);z=_.Xq(z,2,QZ,J);this.channel.send(z)}else this.register();this.JSC$8940_audioEnabled=M};
$r0.prototype.register=function(){No(this.channel,1);this.registered=!0};
$r0.prototype.isAudioEnabled=function(){return this.JSC$8940_audioEnabled};var uVR=function(M){this.channel=M};
_.P=uVR.prototype;_.P.onFirstFrameReady=function(M){No(this.channel,2).register(11,function(z){z=_.Ky(z.data,BWH,11,Jw);if(!z)throw new RN("Unexpectedly nonexistent GameFirstFrameReadyEvent");M(_.hv(z,1))})};
_.P.onReady=function(M){No(this.channel,2).register(4,function(z){z=_.Ky(z.data,TWo,4,Jw);if(!z)throw new RN("Unexpectedly nonexistent GameReadyEvent");M(_.hv(z,1))})};
_.P.onLevelComplete=function(M){No(this.channel,2).register(5,function(z){z=_.Ky(z.data,IwG,5,Jw);if(!z)throw new RN("Unexpectedly nonexistent LevelCompleteEvent");M(_.hv(z,1),_.R2(z,2))})};
_.P.onGameOver=function(M){No(this.channel,2).register(6,function(z){z=_.Ky(z.data,O5p,6,Jw);if(!z)throw new RN("Unexpectedly nonexistent GameOverEvent");M(_.hv(z,1))})};
_.P.pause=function(){var M=this;if(!this.channel.isInitialised)return No(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new RN("Using unregistered Game Feature: pause.");var z=Z53();return new Promise(function(J){return _.k(function(R){if(R.nextAddress==1)return R.yield(KuH(M.channel,z),2);J();_.UI(R)})})};
_.P.resume=function(){var M=this;if(!this.channel.isInitialised)return No(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new RN("Using unregistered Game Feature: resume.");var z=k68();return new Promise(function(J){return _.k(function(R){if(R.nextAddress==1)return R.yield(KuH(M.channel,z),2);J();_.UI(R)})})};var qln=function(M){this.channel=M};
qln.prototype.onReady=function(M){No(this.channel,5).register(8,function(z){if(!_.Ky(z.data,ogo,8,Jw))throw new RN("Unexpectedly nonexistent PageReadyEvent");M()})};var WuY=function(M){this.channel=M};
WuY.prototype.onChange=function(M){No(this.channel,3).register(7,function(z){z=_.Ky(z.data,Xqo,7,Jw);if(!z)throw new RN("Unexpectedly nonexistent ScoreEvent");M(_.hv(z,1),_.R2(z,2))})};var aww={load:function(){throw new RN("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new RN("Storage used, but storage.onSave() listener not set!");}},VQY=function(M){this.channel=M;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Eg8=function(M){No(M.channel,4).register(2,aww.load).register(3,aww.save);
M.initialSetupDone=!0};
VQY.prototype.onLoad=function(M){this.initialSetupDone||Eg8(this);this.loadRegistered||(this.loadRegistered=!0,No(this.channel,4).register(2,function(z){var J,R,D;return _.k(function(N){if(N.nextAddress==1){J=_.Ky(z.data,lwY,2,Jw);if(!J)throw new RN("Unexpectedly nonexistent StorageLoad");R=_.hv(J,1);return N.yield(M(R),2)}D=N.yieldResult;var Z=z.reply,B=new Ir;var O=new NWn;O=_.G$(O,1,R);O=_.PI(O,2,_.pv(D,!1));B=_.Xq(B,3,QZ,O);Z.call(z,B);_.UI(N)})}))};
VQY.prototype.onSave=function(M){this.initialSetupDone||Eg8(this);this.saveRegistered||(this.saveRegistered=!0,No(this.channel,4).register(3,function(z){var J,R,D;return _.k(function(N){if(N.nextAddress==1){J=_.Ky(z.data,epY,3,Jw);if(!J)throw new RN("Unexpectedly nonexistent StorageSave");R=_.hv(J,1);D=$Xc(J.getData());return N.yield(M(R,D),2)}var Z=z.reply,B=new Ir;var O=new Ptw;O=_.G$(O,1,R);B=_.Xq(B,4,QZ,O);Z.call(z,B);_.UI(N)})}))};var fwH=function(M){this.channel=M};
fwH.prototype.update=function(M){if(!this.channel.features.has(6))throw new RN("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var z=new Ir,J=new Sl0;M=_.or(J,1,M);z=_.Xq(z,6,QZ,M);this.channel.send(z)};
fwH.prototype.register=function(){No(this.channel,6)};var Luc=function(M){this.channel=M;this.userActivityLoggingIntervalMs=0};
Luc.prototype.onUserActivity=function(M,z){this.userActivityLoggingIntervalMs=z;No(this.channel,7).register(9,function(J){if(!_.Ky(J.data,Qio,9,Jw))throw new RN("Unexpectedly nonexistent ClickEvent");M()})};var AZY=function(M){var z=this;this.channel=M;this.init=this.channel.init.bind(this.channel);this.page=new qln(this.channel);this.game=new uVR(this.channel);this.audio=new $r0(this.channel);this.score=new WuY(this.channel);this.storage=new VQY(this.channel);this.style=new fwH(this.channel);this.userActivity=new Luc(this.channel);dr0(this.channel,function(J){var R=new qwp;J=_.or(R,1,J);J=_.$I(J,3,z.userActivity.userActivityLoggingIntervalMs);R=z.audio.isAudioEnabled();R!==void 0&&_.SJ(J,2,R);R=new Ir;
return _.Xq(R,5,QZ,J)})};var i5n=function(){this.timedFunctionContext=0};
i5n.prototype.timeExecution=function(M,z){var J=this;return function(){var R=_.H4.apply(0,arguments);J.timedFunctionContext=M;return z.apply(null,_.Yj(R))}};var CtH=function(){var M={};this.priorityTasks=(M[3]=[],M[2]=[],M[1]=[],M);this.isFlushing=!1},I$=function(M,z,J){var R=b5p(M,J);
M.priorityTasks[J].push(z);R&&M.priorityTasks[J].length===1&&M.flush()},b5p=function(M,z){return Object.keys(M.priorityTasks).map(function(J){return Number(J)}).filter(function(J){return!isNaN(J)&&J>z}).every(function(J){return M.priorityTasks[J].length===0})};
CtH.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(M){return M.length>0});)rZn(this,3),rZn(this,2),rZn(this,1)}catch(M){throw Object.values(this.priorityTasks).forEach(function(z){return void z.splice(0,z.length)}),M;
}finally{this.isFlushing=!1}}};
var rZn=function(M,z){for(;b5p(M,z)&&M.priorityTasks[z].length>0;)M.priorityTasks[z][0](),M.priorityTasks[z].shift()};
_.rX.Object.defineProperties(CtH.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(M){return M.length>0})}}});var Ar8={};var Mpk=globalThis.trustedTypes,adc=Mpk,Eqn;var GA=function(M){this.privateDoNotAccessOrElseWrappedResourceUrl=M};
GA.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var z0B,JeV,R0B,DbV,NRV,PGJ,S8B,Zpv;z0B=_.Ca([""]);JeV=i2(["\x00"],["\\0"]);R0B=i2(["\n"],["\\n"]);DbV=i2(["\x00"],["\\u0000"]);NRV=_.Ca([""]);PGJ=i2(["\x00"],["\\0"]);S8B=i2(["\n"],["\\n"]);Zpv=i2(["\x00"],["\\u0000"]);_.k8B=LAY(function(M){return M(z0B)})||LAY(function(M){return M(JeV)})||LAY(function(M){return M(R0B)})||LAY(function(M){return M(DbV)});
_.BRB=_.tr(NRV)&&_.tr(PGJ)&&_.tr(S8B)&&_.tr(Zpv);var n3;_.jq=function(M,z){this.privateDoNotAccessOrElseWrappedUrl=z};
_.jq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.OpB=p3("about:blank");n3=p3("about:invalid#zClosurez");var i3Y=function(M){this.isValid=M},TRv=new i3Y(function(M){return/^[^:]*([/?#]|$)/.test(M)}),IcS=mA("data"),ooJ=mA("http"),XYQ=mA("https"),lcg=mA("ftp"),e0k=mA("mailto"),Q3V=mA("intent"),Ub$=mA("vnd.youtube"),Cs3=[IcS,
ooJ,XYQ,e0k,lcg,TRv],rrY=v4(function(){return typeof URL==="function"}),voV=["data:",
"http:","https:","mailto:","ftp:"],znp=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var $q=function(M){this.privateDoNotAccessOrElseWrappedHtml=M};
$q.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Tce=v4(function(){return new $q(Mpk?Mpk.emptyHTML:"")});var G8Q={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"},Rne=function(M,z){var J=Error.call(this,M+" cannot be used with intent "+G8Q[z]);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.type=M;this.intent=z;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.w(Rne,Error);_.f3=function(M){this.privateDoNotAccessOrElseWrappedScript=M};
_.f3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var SIY=function(M){this.privateDoNotAccessOrElseWrappedAttributePrefix=M};
SIY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var ZS8="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var zT=function(M){this.privateDoNotAccessOrElseWrappedStyleSheet=M};
zT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var lUR=function(M){var z=_.qH("window.location.href");M==null&&(M='Unknown Error of type "null/undefined"');if(typeof M==="string")return{message:M,name:"Unknown error",lineNumber:"Not available",fileName:z,stack:"Not available"};var J=!1;try{var R=M.lineNumber||M.line||"Not available"}catch(Z){R="Not available",J=!0}try{var D=M.fileName||M.filename||M.sourceURL||_.R3.$googDebugFname||z}catch(Z){D="Not available",J=!0}z=wYu(M);if(!(!J&&M.lineNumber&&M.fileName&&M.stack&&M.message&&M.name)){J=M.message;
if(J==null){if(M.constructor&&M.constructor instanceof Function){if(M.constructor.name)J=M.constructor.name;else if(J=M.constructor,PK[J])J=PK[J];else{J=String(J);if(!PK[J]){var N=/function\s+([^\(]+)/m.exec(J);PK[J]=N?N[1]:"[Anonymous]"}J=PK[J]}J='Unknown Error of type "'+J+'"'}else J="Unknown Error of unknown type";typeof M.toString==="function"&&Object.prototype.toString!==M.toString&&(J+=": "+M.toString())}return{message:J,name:M.name||"UnknownError",lineNumber:R,fileName:D,stack:z||"Not available"}}return{message:M.message,
name:M.name,lineNumber:M.lineNumber,fileName:M.fileName,stack:z}},wYu=function(M,z){z||(z={});
z[xbV(M)]=!0;var J=M.stack||"",R=M.cause;R&&!z[xbV(R)]&&(J+="\nCaused by: ",R.stack&&R.stack.indexOf(R.toString())==0||(J+=typeof R==="string"?R:R.message+"\n"),J+=wYu(R,z));M=M.errors;if(Array.isArray(M)){R=1;var D;for(D=0;D<M.length&&!(R>4);D++)z[xbV(M[D])]||(J+="\nInner error "+R++ +": ",M[D].stack&&M[D].stack.indexOf(M[D].toString())==0||(J+=typeof M[D]==="string"?M[D]:M[D].message+"\n"),J+=wYu(M[D],z));D<M.length&&(J+="\n... "+(M.length-D)+" more inner errors")}return J},xbV=function(M){var z=
"";
typeof M.toString==="function"&&(z=""+M);return z+M.stack},PK={};var tpt,MC,Bn,pYu,Fwa,j3g,$F,Ws,mb2;tpt=function(M,z){for(var J=M.split("%s"),R="",D=Array.prototype.slice.call(arguments,1);D.length&&J.length>1;)R+=J.shift()+D.shift();return R+J.join("%s")};
_.aX=function(M){return encodeURIComponent(String(M))};
MC=function(M){return decodeURIComponent(M.replace(/\+/g," "))};
Bn=function(M){z7p.test(M)&&(M.indexOf("&")!=-1&&(M=M.replace(AHw,"&amp;")),M.indexOf("<")!=-1&&(M=M.replace(iiG,"&lt;")),M.indexOf(">")!=-1&&(M=M.replace(Ccn,"&gt;")),M.indexOf('"')!=-1&&(M=M.replace(bip,"&quot;")),M.indexOf("'")!=-1&&(M=M.replace(rHe,"&#39;")),M.indexOf("\x00")!=-1&&(M=M.replace(Mib,"&#0;")));return M};
pYu=function(M){var z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var J=_.R3.document.createElement("div");return M.replace(j3g,function(R,D){var N=z[R];if(N)return N;D.charAt(0)=="#"&&(D=Number("0"+D.slice(1)),isNaN(D)||(N=String.fromCharCode(D)));N||(_.C3(J,us(R+" ")),N=J.firstChild.nodeValue.slice(0,-1));return z[R]=N})};
Fwa=function(M){return M.replace(/&([^;]+);/g,function(z,J){switch(J){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return J.charAt(0)!="#"||(J=Number("0"+J.slice(1)),isNaN(J))?z:String.fromCharCode(J)}})};
j3g=/&([^;\s<&]+);?/g;_.KiH=function(M){return String(M).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Y8p=String.prototype.repeat?function(M,z){return M.repeat(z)}:function(M,z){return Array(z+1).join(M)};
_.S6=function(M,z){if(!Number.isFinite(M))return String(M);M=String(M);var J=M.indexOf(".");J===-1&&(J=M.length);var R=M[0]==="-"?"-":"";R&&(M=M.substring(1));return R+(0,_.Y8p)("0",Math.max(0,z-J))+M};
$F=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Ss()).toString(36)};
Ws=function(M){for(var z=0,J=0;J<M.length;++J)z=31*z+M.charCodeAt(J)>>>0;return z};
_.UK=function(M){return String(M).replace(/\-([a-z])/g,function(z,J){return J.toUpperCase()})};
_.Q5=function(M){return String(M).replace(/([A-Z])/g,"-$1").toLowerCase()};
mb2=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,J,R){return J+R.toUpperCase()})};var goQ=function(){this.names=new Map};
goQ.prototype.getName=function(M){var z=this.names.get(M);if(z)return z;var J;z=(J=M.description)!=null?J:$F();this.names.set(M,z);return z};var s3v=function(M){var z=Error.call(this,M?M.length+" errors occurred during unsubscription:\n"+M.map(function(J,R){return R+1+") "+J.toString()}).join("\n  "):"");
this.message=z.message;"stack"in z&&(this.stack=z.stack);this.errors=M;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.w(s3v,Error);var Ro=function(M){this.initialTeardown=M;this.closed=!1;this._teardowns=this._parentage=null};
_.P=Ro.prototype;
_.P.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this._parentage;if(Array.isArray(M))for(var z=_.S(M),J=z.next();!J.done;J=z.next())J.value.remove(this);else M==null||M.remove(this);z=this.initialTeardown;if(JG(z))try{z()}catch(N){var R=N instanceof s3v?N.errors:[N]}var D=this._teardowns;if(D)for(this._teardowns=null,z=_.S(D),J=z.next();!J.done;J=z.next()){J=J.value;try{JG(J)?J():J.unsubscribe()}catch(N){J=void 0,R=(J=R)!=null?J:[],N instanceof s3v?R=[].concat(_.Yj(R),_.Yj(N.errors)):
R.push(N)}}if(R)throw new s3v(R);}};
_.P.add=function(M){if(M&&M!==this)if(this.closed)JG(M)?M():M.unsubscribe();else{if(M instanceof Ro){if(M.closed||M._hasParent(this))return;M._addParent(this)}var z;(this._teardowns=(z=this._teardowns)!=null?z:[]).push(M)}};
_.P._hasParent=function(M){var z=this._parentage;return z===M||Array.isArray(z)&&z.includes(M)};
_.P._addParent=function(M){var z=this._parentage;this._parentage=Array.isArray(z)?(z.push(M),z):z?[z,M]:M};
_.P._removeParent=function(M){var z=this._parentage;z===M?this._parentage=null:Array.isArray(z)&&OS8(z,M)};
_.P.remove=function(M){var z=this._teardowns;z&&OS8(z,M);M instanceof Ro&&M._removeParent(this)};
var nog=new Ro;nog.closed=!0;Ro.JSC$9036_EMPTY=nog;var IDn=function(){setTimeout.apply(null,_.Yj(_.H4.apply(0,arguments)))};var Zk=function(M){Ro.call(this);this.JSC$9041_isStopped=!1;this.destination=M instanceof Zk?M:new ki(!M||JG(M)?{next:M!=null?M:void 0}:M);TVn(M)&&M.add(this)};
_.w(Zk,Ro);Zk.JSC$9036_EMPTY=Ro.JSC$9036_EMPTY;Zk.create=function(M,z,J){return new BK(M,z,J)};
_.P=Zk.prototype;_.P.next=function(M){this.JSC$9041_isStopped||this._next(M)};
_.P.error=function(M){this.JSC$9041_isStopped||(this.JSC$9041_isStopped=!0,this._error(M))};
_.P.complete=function(){this.JSC$9041_isStopped||(this.JSC$9041_isStopped=!0,this._complete())};
_.P.unsubscribe=function(){this.closed||(this.JSC$9041_isStopped=!0,Ro.prototype.unsubscribe.call(this))};
_.P._next=function(M){this.destination.next(M)};
_.P._error=function(M){this.destination.error(M);this.unsubscribe()};
_.P._complete=function(){this.destination.complete();this.unsubscribe()};
var ki=function(M){this.partialObserver=M};
ki.prototype.next=function(M){var z=this.partialObserver;if(z.next)try{z.next(M)}catch(J){Ny(J)}};
ki.prototype.error=function(M){var z=this.partialObserver;if(z.error)try{z.error(M)}catch(J){Ny(J)}else Ny(M)};
ki.prototype.complete=function(){var M=this.partialObserver;if(M.complete)try{M.complete()}catch(z){Ny(z)}};
var BK=function(M,z,J){Zk.call(this);var R;JG(M)||!M?R={next:M!=null?M:void 0,error:z!=null?z:void 0,complete:J!=null?J:void 0}:R=M;this.destination=new ki(R)};
_.w(BK,Zk);BK.JSC$9036_EMPTY=Zk.JSC$9036_EMPTY;BK.create=Zk.create;var kj=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ZD=function(M){M&&(this._subscribe=M)};
_.P=ZD.prototype;_.P.lift=function(M){var z=new ZD;z.source=this;z.operator=M;return z};
_.P.subscribe=function(M,z,J){M=M&&M instanceof Zk||M&&JG(M.next)&&JG(M.error)&&JG(M.complete)&&TVn(M)?M:new BK(M,z,J);z=this.operator;J=this.source;M.add(z?z.call(M,J):J?this._subscribe(M):this._trySubscribe(M));return M};
_.P._trySubscribe=function(M){try{return this._subscribe(M)}catch(z){M.error(z)}};
_.P.forEach=function(M,z){var J=this;z=Xyp(z);return new z(function(R,D){var N=J.subscribe(function(Z){try{M(Z)}catch(B){D(B),N==null||N.unsubscribe()}},D,R)})};
_.P._subscribe=function(M){var z;return(z=this.source)==null?void 0:z.subscribe(M)};
ZD.prototype[kj]=function(){return this};
ZD.prototype.pipe=function(){var M=_.H4.apply(0,arguments);return M.length?oj8(M)(this):this};
ZD.create=function(M){return new ZD(M)};var h0u=function(){var M=Error.call(this,"object unsubscribed");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.w(h0u,Error);var Zo=function(){this.observers=[];this.hasError=this.JSC$9057_isStopped=this.closed=!1;this.thrownError=null};
_.w(Zo,ZD);_.P=Zo.prototype;_.P.lift=function(M){var z=new Oc(this,this);z.operator=M;return z};
_.P._throwIfClosed=function(){if(this.closed)throw new h0u;};
_.P.next=function(M){this._throwIfClosed();if(!this.JSC$9057_isStopped){var z=this.observers.slice();z=_.S(z);for(var J=z.next();!J.done;J=z.next())J.value.next(M)}};
_.P.error=function(M){this._throwIfClosed();if(!this.JSC$9057_isStopped){this.hasError=this.JSC$9057_isStopped=!0;this.thrownError=M;for(var z=this.observers;z.length;)z.shift().error(M)}};
_.P.complete=function(){this._throwIfClosed();if(!this.JSC$9057_isStopped){this.JSC$9057_isStopped=!0;for(var M=this.observers;M.length;)M.shift().complete()}};
_.P.unsubscribe=function(){this.JSC$9057_isStopped=this.closed=!0;this.observers=null};
_.P._trySubscribe=function(M){this._throwIfClosed();return ZD.prototype._trySubscribe.call(this,M)};
_.P._subscribe=function(M){this._throwIfClosed();this._checkFinalizedStatuses(M);return this._innerSubscribe(M)};
_.P._innerSubscribe=function(M){var z=this,J=this.JSC$9057_isStopped,R=this.observers;return this.hasError||J?Ro.JSC$9036_EMPTY:(R.push(M),new Ro(function(){return OS8(z.observers,M)}))};
_.P._checkFinalizedStatuses=function(M){var z=this.thrownError,J=this.JSC$9057_isStopped;this.hasError?M.error(z):J&&M.complete()};
Zo.create=function(M,z){return new Oc(M,z)};
var Oc=function(M,z){Zo.call(this);this.destination=M;this.source=z};
_.w(Oc,Zo);Oc.create=Zo.create;Oc.prototype.next=function(M){var z,J;(z=this.destination)==null||(J=z.next)==null||J.call(z,M)};
Oc.prototype.error=function(M){var z,J;(z=this.destination)==null||(J=z.error)==null||J.call(z,M)};
Oc.prototype.complete=function(){var M,z;(M=this.destination)==null||(z=M.complete)==null||z.call(M)};
Oc.prototype._subscribe=function(M){var z,J;return(J=(z=this.source)==null?void 0:z.subscribe(M))!=null?J:Ro.JSC$9036_EMPTY};var uv=function(M){Zo.call(this);this._value=M};
_.w(uv,Zo);uv.create=Zo.create;uv.prototype._subscribe=function(M){var z=Zo.prototype._subscribe.call(this,M);!z.closed&&M.next(this._value);return z};
uv.prototype.getValue=function(){var M=this.thrownError,z=this._value;if(this.hasError)throw M;this._throwIfClosed();return z};
uv.prototype.next=function(M){Zo.prototype.next.call(this,this._value=M)};
_.rX.Object.defineProperties(uv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var hG=new ZD(function(M){return M.complete()});var Uy8=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var tXp=function(M){return M&&typeof M.length==="number"&&typeof M!=="function"};var yeS={now:function(){return(yeS.delegate||Date).now()},
delegate:void 0};var CS=function(M,z,J){M=M===void 0?Infinity:M;z=z===void 0?Infinity:z;J=J===void 0?yeS:J;Zo.call(this);this.bufferSize=M;this.windowTime=z;this.timestampProvider=J;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=z===Infinity;this.bufferSize=Math.max(1,M);this.windowTime=Math.max(1,z)};
_.w(CS,Zo);CS.create=Zo.create;CS.prototype.next=function(M){var z=this.buffer,J=this.infiniteTimeWindow,R=this.timestampProvider,D=this.windowTime;this.JSC$9057_isStopped||(z.push(M),!J&&z.push(R.now()+D));HpS(this);Zo.prototype.next.call(this,M)};
CS.prototype._subscribe=function(M){this._throwIfClosed();HpS(this);for(var z=this._innerSubscribe(M),J=this.infiniteTimeWindow,R=this.buffer.slice(),D=0;D<R.length&&!M.closed;D+=J?1:2)M.next(R[D]);this._checkFinalizedStatuses(M);return z};
var HpS=function(M){var z=M.bufferSize,J=M.timestampProvider,R=M.buffer;M=M.infiniteTimeWindow;var D=(M?1:2)*z;z<Infinity&&D<R.length&&R.splice(0,R.length-D);if(!M){z=J.now();J=0;for(M=1;M<R.length&&R[M]<=z;M+=2)J=M;J&&R.splice(0,J+1)}};var db$=function(M,z){z=z===void 0?cet:z;this.schedulerActionCtor=M;this.now=z};
db$.prototype.schedule=function(M,z,J){z=z===void 0?0:z;return(new this.schedulerActionCtor(this,M)).schedule(J,z)};
var cet=yeS.now;var loH=function(){var M=Error.call(this,"no elements in sequence");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.w(loH,Error);var jX=function(M,z,J,R,D){Zk.call(this,M);this.onUnsubscribe=D;z&&(this._next=function(N){try{z(N)}catch(Z){this.destination.error(Z)}});
J&&(this._error=function(N){try{J(N)}catch(Z){this.destination.error(Z)}this.unsubscribe()});
R&&(this._complete=function(){try{R()}catch(N){this.destination.error(N)}this.unsubscribe()})};
_.w(jX,Zk);jX.JSC$9036_EMPTY=Zk.JSC$9036_EMPTY;jX.create=Zk.create;jX.prototype.unsubscribe=function(){var M;this.closed||(M=this.onUnsubscribe)!=null&&M.call(this);Zk.prototype.unsubscribe.call(this)};var AG=function(M,z){this.source=M;this.subjectFactory=z;this._subject=null;this._refCount=0;this._connection=null};
_.w(AG,ZD);AG.create=ZD.create;AG.prototype._subscribe=function(M){return Kw$(this).subscribe(M)};
var Kw$=function(M){var z=M._subject;if(!z||z.JSC$9057_isStopped)M._subject=M.subjectFactory();return M._subject};
AG.prototype._teardown=function(){this._refCount=0;var M=this._connection;this._subject=this._connection=null;M==null||M.unsubscribe()};
AG.prototype.connect=function(){var M=this,z=this._connection;if(!z){z=this._connection=new Ro;var J=Kw$(this);z.add(this.source.subscribe(new jX(J,void 0,function(R){M._teardown();J.error(R)},function(){M._teardown();
J.complete()},function(){return M._teardown()})));
z.closed&&(this._connection=null,z=Ro.JSC$9036_EMPTY)}return z};var cG0=Array.isArray;var KWp=Array.isArray,$bu=Object,$yw=$bu.getPrototypeOf,u48=$bu.prototype,qI8=$bu.keys;var gV=function(M,z,J){Zk.call(this,M);this._next=z;this.shouldComplete=J};
_.w(gV,Zk);gV.JSC$9036_EMPTY=Zk.JSC$9036_EMPTY;gV.create=Zk.create;gV.prototype._complete=function(){this.shouldComplete()?Zk.prototype._complete.call(this):this.unsubscribe()};var CYe=["addListener","removeListener"],iSe=["addEventListener","removeEventListener"],rGo=["on","off"];var TE=function(){Ro.call(this)};
_.w(TE,Ro);TE.JSC$9036_EMPTY=Ro.JSC$9036_EMPTY;TE.prototype.schedule=function(){return this};var una=function(M,z){return setInterval.apply(null,[M,z].concat(_.Yj(_.H4.apply(2,arguments))))};var IN=function(M,z){Ro.call(this);this.scheduler=M;this.work=z;this.pending=!1};
_.w(IN,TE);IN.JSC$9036_EMPTY=TE.JSC$9036_EMPTY;IN.prototype.schedule=function(M,z){z=z===void 0?0:z;if(this.closed)return this;this.state=M;M=this.id;var J=this.scheduler;M!=null&&(this.id=q8k(this,M,z));this.pending=!0;this.delay=z;this.id=this.id||this.requestAsyncId(J,this.id,z);return this};
IN.prototype.requestAsyncId=function(M,z,J){J=J===void 0?0:J;return una(M.flush.bind(M,this),J)};
var q8k=function(M,z,J){J=J===void 0?0:J;if(J!=null&&M.delay===J&&M.pending===!1)return z;clearInterval(z)};
IN.prototype.execute=function(M,z){if(this.closed)return Error("ha");this.pending=!1;if(M=this._execute(M,z))return M;this.pending===!1&&this.id!=null&&(this.id=q8k(this,this.id,null))};
IN.prototype._execute=function(M){var z=!1;try{this.work(M)}catch(R){z=!0;var J=!!R&&R||Error(R)}if(z)return this.unsubscribe(),J};
IN.prototype.unsubscribe=function(){if(!this.closed){var M=this.id,z=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;OS8(z,this);M!=null&&(this.id=q8k(this,M,null));this.delay=null;TE.prototype.unsubscribe.call(this)}};var WwV=function(M,z){z=z===void 0?cet:z;db$.call(this,M,z);this.actions=[];this.active=!1;this.scheduled=void 0};
_.w(WwV,db$);WwV.prototype.flush=function(M){var z=this.actions;if(this.active)z.push(M);else{var J;this.active=!0;do if(J=M.execute(M.state,M.delay))break;while(M=z.shift());this.active=!1;if(J){for(;M=z.shift();)M.unsubscribe();throw J;}}};var jU=new ZD(DD);var MUb=Array.isArray;var oN=function(M,z){IN.call(this,M,z);this.scheduler=M;this.work=z};
_.w(oN,IN);oN.JSC$9036_EMPTY=IN.JSC$9036_EMPTY;oN.prototype.schedule=function(M,z){z=z===void 0?0:z;if(z>0)return IN.prototype.schedule.call(this,M,z);this.delay=z;this.state=M;this.scheduler.flush(this);return this};
oN.prototype.execute=function(M,z){return z>0||this.closed?IN.prototype.execute.call(this,M,z):this._execute(M,z)};
oN.prototype.requestAsyncId=function(M,z,J){J=J===void 0?0:J;return J!=null&&J>0||J==null&&this.delay>0?IN.prototype.requestAsyncId.call(this,M,z,J):M.flush(this)};var ack=function(){WwV.apply(this,arguments)};
_.w(ack,WwV);var yG3=new ack(oN);var Vpk=function(){this.performanceMonitor=new i5n;this.queue=new CtH;this.internalSymbol=Symbol();this.debugNames=new goQ};
Vpk.prototype.getOnBackgrounded=function(){return jU};
_.rX.Object.defineProperties(Vpk.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Xd=function(M,z){z=Error.call(this,z?M+": "+z:String(M));this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=M;this.__proto__=Xd.prototype;this.name=String(M)};
_.w(Xd,Error);var pO=function(M){Xd.call(this,1E3,'sfr:"'+M+'"');this.measurementStrategyFailureReason=M;this.__proto__=pO.prototype};
_.w(pO,Xd);var ma=function(){Xd.call(this,1003);this.__proto__=ma.prototype};
_.w(ma,Xd);var e6=function(){Xd.call(this,1009);this.__proto__=e6.prototype};
_.w(e6,Xd);var EoB=function(){Xd.call(this,1011);this.__proto__=EoB.prototype};
_.w(EoB,Xd);var fcv=function(){Xd.call(this,1007);this.__proto__=ma.prototype};
_.w(fcv,Xd);var xr=function(M){Xd.call(this,1004,String(M));this.inputObservableIndex=M;this.__proto__=xr.prototype};
_.w(xr,Xd);var s28=function(M){Xd.call(this,1010,M);this.__proto__=nFw.prototype};
_.w(s28,Xd);var nFw=function(M){Xd.call(this,1005,M);this.__proto__=nFw.prototype};
_.w(nFw,Xd);var Lwu=function(M){var z=_.H4.apply(1,arguments),J=this;this.orderedFactories=[];this.orderedFactories.push(M);z.forEach(function(R){J.orderedFactories.push(R)})};
Lwu.prototype.isSupported=function(M){return this.orderedFactories.some(function(z){return z.isSupported(M)})};
Lwu.prototype.makeBeacon=function(M,z){for(var J=0;J<this.orderedFactories.length;J++)if(this.orderedFactories[J].isSupported(z))return this.orderedFactories[J].makeBeacon(M,z);throw new e6;};var vEn=Symbol("ia"),Aev=Symbol("ja"),KS=function(M,z){this.value=M;this.timeline=z},cy=function(M,z){if(z.timeline!==M.timeline)throw new fcv;
return M.value-z.value};
_.P=KS.prototype;_.P.equals=function(M){return cy(this,M)===0};
_.P.maximum=function(M){if(M.timeline!==this.timeline)throw new fcv;return this.value>=M.value?this:M};
_.P.round=function(){return new KS(Math.round(this.value),this.timeline)};
_.P.add=function(M){return new KS(this.value+M,this.timeline)};
_.P.toString=function(){return String(this.value)};var QD=function(M,z){this.context=M;this.JSC$9163_pinger=z};
QD.prototype.isSupported=function(M){return this.JSC$9163_pinger.isSupported(M)};
QD.prototype.makeBeacon=function(M,z){if(!this.isSupported(z))throw new e6;return new Uc(this.context,this.JSC$9163_pinger,z!=null?z:void 0,M)};
var Uc=function(M,z,J,R){var D=this;this.JSC$9169_pinger=z;this.properties=J;this.url=R;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var N;this.method=(N=J==null?void 0:J.beaconMethod)!=null?N:"GET";this.backgroundedSubscription=M.getOnBackgrounded().subscribe(function(){D.sendNow()})};
Uc.prototype.deactivate=function(){this.internalIsPending=!1};
Uc.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9169_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var M,z;this.JSC$9169_pinger.pingWithHeadersAndBody((M=this.properties)!=null?M:{},this.customHeaders,(z=this.body)!=null?z:"",this.url)}else this.JSC$9169_pinger.ping(this.url);this.internalIsPending=!1}catch(J){}else this.internalIsPending=!1};
Uc.prototype.setHeader=function(M,z){this.customHeaders.set(M,z)};
_.rX.Object.defineProperties(Uc.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var CGt=function(){for(var M=_.S(_.H4.apply(0,arguments)),z=M.next();!z.done;z=M.next())if(z=z.value,z.available()){this.timeProvider=z;return}this.timeProvider=new ipg};
_.P=CGt.prototype;_.P.available=function(){return this.timeProvider.available()};
_.P.now=function(){return this.timeProvider.now()};
_.P.setTimeout=function(M,z){return this.timeProvider.setTimeout(M,z)};
_.P.clearTimeout=function(M){this.timeProvider.clearTimeout(M)};
_.P.interval=function(M,z){var J=this.intervalObservable(M).subscribe(z);return function(){return void J.unsubscribe()}};
_.P.intervalObservable=function(M){return this.timeProvider.intervalObservable(M)};
_.rX.Object.defineProperties(CGt.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var ipg=function(){this.timeline=Symbol()};
_.P=ipg.prototype;_.P.available=function(){return!1};
_.P.now=function(){return new KS(0,this.timeline)};
_.P.setTimeout=function(){return 0};
_.P.clearTimeout=function(){};
_.P.interval=function(){return function(){}};
_.P.intervalObservable=function(){return jU};var vK=function(M,z){this.intrinsicFunctionNamespace=M;this.performanceMonitor=z};
_.P=vK.prototype;_.P.setTimeout=function(M,z){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,M),z)};
_.P.clearTimeout=function(M){this.intrinsicFunctionNamespace.clearTimeout(M)};
_.P.interval=function(M,z){var J=this.intervalObservable(M).subscribe(z);return function(){return void J.unsubscribe()}};
_.P.intervalObservable=function(M){var z=this;return new ZD(function(J){var R=0,D=z.intrinsicFunctionNamespace.setInterval(function(){J.next(R++)},M);
return function(){z.intrinsicFunctionNamespace.clearInterval(D)}})};
_.P.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var bp2=function(M,z){vK.call(this,M,z);this.timeline=Aev};
_.w(bp2,vK);bp2.prototype.now=function(){return new KS(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
bp2.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&vK.prototype.available.call(this)};var re$=function(M,z){vK.call(this,M,z);this.timeline=vEn};
_.w(re$,vK);re$.prototype.now=function(){return new KS(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
re$.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&vK.prototype.available.call(this)};var z22=function(M){this.context=M;if(Ma$===void 0)a:{var z,J,R=(z=M.global)==null?void 0:(J=z.document)==null?void 0:J.createElement("meta");if(R)try{R.httpEquiv="origin-trial";R.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";M.global.document.head.append(R);Ma$=R;break a}catch(D){}Ma$=void 0}},
Ma$;
z22.prototype.isSupported=function(M){return BuH(this.context)!==void 0&&!(M==null||!M.endOfSession)&&!GE(this.context)&&!(M==null?0:M.attributionEnabled)&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
z22.prototype.makeBeacon=function(M,z){if(!this.isSupported(z))throw new e6;return new wp(this.context,M,z)};
var wp=function(M,z,J){this.context=M;this.properties=J;this.JSC$9196_urlWithoutToken=z;var R;this.beaconMethod=(R=J==null?void 0:J.beaconMethod)!=null?R:"GET";M=BuH(this.context);if(M===void 0)throw Error();this.fetchLater=M;JSg(this,R2$(this))},JSg=function(M,z){M.beaconResult&&M.beaconResult.activated||(M.beaconAbort=new AbortController,M.beaconResult=M.fetchLater(z,{method:M.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:M.beaconAbort.signal,activateAfter:96E4}))},R2$=function(M){M=M.JSC$9196_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"flapi=1"};
wp.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
wp.prototype.sendNow=function(){};
wp.prototype.setHeader=function(){};
_.rX.Object.defineProperties(wp.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9196_urlWithoutToken},
set:function(M){this.JSC$9196_urlWithoutToken=M;M=R2$(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);JSg(this,M)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var DBB=function(M){this.context=M};
DBB.prototype.isSupported=function(){return!GE(this.context)&&!!this.context.global.fetch};
DBB.prototype.ping=function(){var M=this;return ya.apply(null,_.Yj(_.H4.apply(0,arguments).map(function(z){return TT(M.context.global.fetch(z,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(F4(function(J){return J.status===200}))}))).pipe(eD8(function(z){return z}),UxH())};
DBB.prototype.pingWithHeadersAndBody=function(M,z,J){for(var R=_.H4.apply(3,arguments),D=this,N=new Headers,Z=_.S(z.entries()),B=Z.next();!B.done;B=Z.next()){var O=_.S(B.value);B=O.next().value;O=O.next().value;N.set(B,O)}var X,l=(X=M.keepAlive)!=null?X:!1;ya.apply(null,_.Yj(R.map(function(e){return TT(D.context.global.fetch(e,Object.assign({},{method:String(M.beaconMethod),cache:"no-cache"},l?{keepalive:!0}:{},{mode:"no-cors",headers:N,body:J}))).pipe(F4(function(Q){return Q.status===200}))}))).pipe(eD8(function(e){return e}),
UxH())};var Ng$,Wlp;_.xi=function(){};
_.yH=function(M){return M};
Ng$=function(M){var z=z||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,z))}};
_.tw=function(M){var z=!1,J;return function(){z||(J=M(),z=!0);return J}};
_.j6=function(M,z){var J=0;return function(R){_.R3.clearTimeout(J);var D=arguments;J=_.R3.setTimeout(function(){M.apply(void 0,D)},z)}};
Wlp=function(M,z){var J=0,R=!1,D=[],N=function(){J=0;R&&(R=!1,Z())},Z=function(){J=_.R3.setTimeout(N,z);
var B=D;D=[];M.apply(void 0,B)};
return function(B){D=arguments;J?R=!0:Z()}};var S$Q=function(){return QH&&U8?U8.mobile:!PJ2()&&(G8("iPod")||G8("iPhone")||G8("Android")||G8("IEMobile"))},PJ2=function(){return QH&&U8?!U8.mobile&&(G8("iPad")||G8("Android")||G8("Silk")):G8("iPad")||G8("Android")&&!G8("Mobile")||G8("Silk")};var ZvQ;_.gu={};ZvQ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.gu.add=function(M,z,J){if(M!==null&&z in M)throw Error("la`"+z);M[z]=J};
_.gu.clear=function(M){for(var z in M)delete M[z]};
_.gu.clone=function(M){var z={},J;for(J in M)z[J]=M[J];return z};
_.gu.contains=function(M,z){return j$G(M,z)};
_.gu.containsKey=function(M,z){return M!==null&&z in M};
_.gu.containsValue=j$G;_.gu.create=Yap;_.gu.createImmutableView=function(M){var z=M;Object.isFrozen&&!Object.isFrozen(M)&&(z=Object.create(M),Object.freeze(z));return z};
_.gu.createSet=mxH;_.gu.equals=function(M,z){for(var J in M)if(!(J in z)||M[J]!==z[J])return!1;for(var R in z)if(!(R in M))return!1;return!0};
_.gu.every=function(M,z,J){for(var R in M)if(!z.call(J,M[R],R,M))return!1;return!0};
_.gu.extend=function(M,z){for(var J,R,D=1;D<arguments.length;D++){R=arguments[D];for(J in R)M[J]=R[J];for(var N=0;N<ZvQ.length;N++)J=ZvQ[N],Object.prototype.hasOwnProperty.call(R,J)&&(M[J]=R[J])}};
_.gu.filter=function(M,z,J){var R={},D;for(D in M)z.call(J,M[D],D,M)&&(R[D]=M[D]);return R};
_.gu.findKey=pjY;_.gu.findValue=function(M,z,J){return(z=pjY(M,z,J))&&M[z]};
_.gu.forEach=function(M,z,J){for(var R in M)z.call(J,M[R],R,M)};
_.gu.get=function(M,z,J){return M!==null&&z in M?M[z]:J};
_.gu.getAllPropertyNames=function(M,z,J){if(!M)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return tUn(M);for(var R={};M&&(M!==Object.prototype||z)&&(M!==Function.prototype||J);){for(var D=Object.getOwnPropertyNames(M),N=0;N<D.length;N++)R[D[N]]=!0;M=Object.getPrototypeOf(M)}return tUn(R)};
_.gu.getAnyKey=function(M){for(var z in M)return z};
_.gu.getAnyValue=function(M){for(var z in M)return M[z]};
_.gu.getCount=function(M){var z=0,J;for(J in M)z++;return z};
_.gu.getKeys=tUn;_.gu.getSuperClass=function(M){return(M=Object.getPrototypeOf(M.prototype))&&M.constructor};
_.gu.getValueByKeys=function(M,z){var J=_.WY(z),R=J?z:arguments;for(J=J?0:1;J<R.length;J++){if(M==null)return;M=M[R[J]]}return M};
_.gu.getValues=function(M){var z=[],J=0,R;for(R in M)z[J++]=M[R];return z};
_.gu.isEmpty=function(M){for(var z in M)return!1;return!0};
_.gu.isImmutableView=function(M){return!!Object.isFrozen&&Object.isFrozen(M)};
_.gu.map=function(M,z,J){var R={},D;for(D in M)R[D]=z.call(J,M[D],D,M);return R};
_.gu.remove=function(M,z){var J;(J=z in M)&&delete M[z];return J};
_.gu.set=function(M,z,J){M[z]=J};
_.gu.setIfUndefined=function(M,z,J){return z in M?M[z]:M[z]=J};
_.gu.setWithReturnValueIfNotSet=function(M,z,J){if(z in M)return M[z];J=J();return M[z]=J};
_.gu.some=function(M,z,J){for(var R in M)if(z.call(J,M[R],R,M))return!0;return!1};
_.gu.transpose=function(M){var z={},J;for(J in M)z[M[J]]=J;return z};
_.gu.unsafeClone=Fa0;var pQ=function(M,z,J,R,D){this.allowedElements=M;this.elementPolicies=z;this.allowedGlobalAttributes=J;this.globalAttributePolicies=R;this.globallyAllowedAttributePrefixes=D},kta=function(M,z,J){J=M.elementPolicies.get(J);
return(J==null?0:J.has(z))?J.get(z):M.allowedGlobalAttributes.has(z)?{policyAction:1}:(J=M.globalAttributePolicies.get(z))?J:M.globallyAllowedAttributePrefixes&&[].concat(_.Yj(M.globallyAllowedAttributePrefixes)).some(function(R){return z.indexOf(R)===0})?{policyAction:1}:{policyAction:0}};var Bgg="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(" "),
OvV=[["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}]])]],TgS="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(" "),
IV$=[["dir",{policyAction:3,conditions:v4(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:v4(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:v4(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:v4(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],opa=new pQ(new Set(Bgg),new Map(OvV),new Set(TgS),new Map(IV$)),XuV=new pQ(new Set(Bgg.concat(["BUTTON",
"INPUT"])),new Map(OvV),new Set(v4(function(){return TgS.concat(["class","id","name"])})),new Map(v4(function(){return IV$.concat([["style",
{policyAction:1}]])})));var lV$,e2J,UBt;lV$=function(M,z,J,R,D){this.JSC$9256_sanitizerTable=M;this.styleElementSanitizer=z;this.styleAttributeSanitizer=J;this.JSC$9256_resourceUrlPolicy=R;this.JSC$9256_navigationUrlPolicy=D;this.changes=[]};
_.Qkt=function(M,z){var J=document.implementation.createHTMLDocument("");M=e2J(M,z,J);J=J.body;J.appendChild(M);J=(new XMLSerializer).serializeToString(J);J=J.slice(J.indexOf(">")+1,J.lastIndexOf("</"));return us(J)};
e2J=function(M,z,J){z=nr3(z,J);z=document.createTreeWalker(z,5,function(B){if(B.nodeType===3)B=1;else if(yAc(B))if(B=hDc(B),B===null)B=2;else{var O=M.JSC$9256_sanitizerTable;B=B!=="FORM"&&(O.allowedElements.has(B)||O.elementPolicies.has(B))?1:2}else B=2;return B});
for(var R=z.nextNode(),D=J.createDocumentFragment(),N=D;R!==null;){var Z=void 0;if(R.nodeType===3)M.styleElementSanitizer&&N.nodeName==="STYLE"?(R=M.styleElementSanitizer(R.data),Z=M.createTextNode(R)):Z=M.createTextNode(R.data);else if(yAc(R))Z=UBt(M,R,J);else throw Error("Z");N.appendChild(Z);if(R=z.firstChild())N=Z;else for(;!(R=z.nextSibling())&&(R=z.parentNode());)N=N.parentNode}return D};
lV$.prototype.createTextNode=function(M){return document.createTextNode(M)};
UBt=function(M,z,J){var R,D=hDc(z);J=J.createElement(D);z=z.attributes;for(var N=_.S(z),Z=N.next();!Z.done;Z=N.next()){var B=Z.value;Z=B.name;B=B.value;var O=kta(M.JSC$9256_sanitizerTable,Z,D);a:{if(R=O.conditions){R=_.S(R);for(var X=R.next();!X.done;X=R.next()){var l=_.S(X.value);X=l.next().value;l=l.next().value;var e=void 0;if((X=(e=z.getNamedItem(X))==null?void 0:e.value)&&!l.has(X)){R=!1;break a}}}R=!0}if(R)switch(O.policyAction){case 1:Do(J,Z,B);break;case 2:throw Error();case 3:Do(J,Z,B.toLowerCase());
break;case 4:M.styleAttributeSanitizer?(B=M.styleAttributeSanitizer(B),Do(J,Z,B)):Do(J,Z,B);break;case 5:M.JSC$9256_resourceUrlPolicy?(O={type:2,attributeName:Z,elementName:D},B=s$o(B),(B=M.JSC$9256_resourceUrlPolicy(B,O))&&Do(J,Z,B.toString())):Do(J,Z,B);break;case 6:if(M.JSC$9256_resourceUrlPolicy){O={type:2,attributeName:Z,elementName:D};R=[];B=_.S(B.split(","));for(X=B.next();!X.done;X=B.next())l=_.S(X.value.trim().split(/\s+/,2)),X=l.next().value,l=l.next().value,R.push({url:X,descriptor:l});
B={parts:[]};R=_.S(R);for(X=R.next();!X.done;X=R.next())X=X.value,l=s$o(X.url),(l=M.JSC$9256_resourceUrlPolicy(l,O))&&B.parts.push({url:l.toString(),descriptor:X.descriptor});Do(J,Z,HOR(B))}else Do(J,Z,B);break;case 7:O=B;if(M.JSC$9256_navigationUrlPolicy){O={type:2,attributeName:Z,elementName:D};B=s$o(B);B=M.JSC$9256_navigationUrlPolicy(B,O);if(B===null)break;O=B.toString()}B=O;O=_.MXw(B);O=O!==void 0&&voV.indexOf(O.toLowerCase())!==-1?B:"about:invalid#zClosurez";Do(J,Z,O)}}return J};
_.vpV=v4(function(){return new lV$(opa)});
_.GtB=v4(function(){return new lV$(XuV)});var wuJ=function(){this.calledBuild=!1;this.JSC$9268_sanitizerTable=opa},xBQ=function(){wuJ.apply(this,arguments)};
_.w(xBQ,wuJ);xBQ.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new lV$(this.JSC$9268_sanitizerTable,void 0,void 0,this.JSC$9268_resourceUrlPolicy,this.JSC$9268_navigationUrlPolicy)};var tak=/[^#]*/;var puV=function(M){var z=jkQ;if(z)for(var J in z)Object.prototype.hasOwnProperty.call(z,J)&&M(z[J],J,z)},F$J=function(){var M=[];
puV(function(z){M.push(z)});
return M},jkQ={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"},Y$k=_.tw(function(){return F$J()}),gp$=function(){var M=mBt("IFRAME"),
z={};
_.VU(Y$k(),function(J){M.sandbox&&M.sandbox.supports&&M.sandbox.supports(J)&&(z[J]=!0)});
return z},mBt=function(M,z){z=z===void 0?document:z;
return z.createElement(String(M).toLowerCase())};var Fd;_.dy=function(M,z,J){return Math.min(Math.max(M,z),J)};
Fd=function(M,z,J){return M+J*(z-M)};_.nO=function(M,z){this.x=M!==void 0?M:0;this.y=z!==void 0?z:0};
_.P=_.nO.prototype;_.P.clone=function(){return new _.nO(this.x,this.y)};
_.P.equals=function(M){return M instanceof _.nO&&(this==M?!0:this&&M?this.x==M.x&&this.y==M.y:!1)};
_.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.P.translate=function(M,z){M instanceof _.nO?(this.x+=M.x,this.y+=M.y):(this.x+=Number(M),typeof z==="number"&&(this.y+=z));return this};
_.P.scale=function(M,z){this.x*=M;this.y*=typeof z==="number"?z:M;return this};_.eU=function(M,z){this.width=M;this.height=z};
_.P=_.eU.prototype;_.P.clone=function(){return new _.eU(this.width,this.height)};
_.P.area=function(){return this.width*this.height};
_.P.aspectRatio=function(){return this.width/this.height};
_.P.isEmpty=function(){return!this.area()};
_.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.scale=function(M,z){this.width*=M;this.height*=typeof z==="number"?z:M;return this};var Kc=function(M,z){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=M===U63&&z||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=sk$};
Kc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var npp=function(M){return M instanceof Kc&&M.constructor===Kc&&M.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===sk$?M.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},sk$={},U63={};
new Kc(U63,"");var vj,Qs,mc,h2$,cSp,HvV,hA,K$V,uQQ,$BS,hw,q$p,ASJ,L$p,fV2,ivV,CJS,bvV,rSQ,KKp,Mmk,Jiu,RwB,zw2,Yi;vj=function(M){return M?new Yi(_.yW(M)):ai0||(ai0=new Yi)};
_.DU=function(M,z){return typeof z==="string"?M.getElementById(z):z};
Qs=function(M,z){return(z||document).getElementsByTagName(String(M))};
_.ySQ=function(M){return h2$("yt-formatted-string","paper-input-input",M)};
mc=function(M,z,J,R){M=R||M;return(z=z&&z!="*"?String(z).toUpperCase():"")||J?M.querySelectorAll(z+(J?"."+J:"")):M.getElementsByTagName("*")};
h2$=function(M,z,J){var R=document,D=M&&M!="*"?String(M).toUpperCase():"";return D||z?(J||R).querySelector(D+(z?"."+z:"")):mc(R,M,z,J)[0]||null};
cSp=function(M,z){_.gu.forEach(z,function(J,R){R=="style"?M.style.cssText=J:R=="class"?M.className=J:R=="for"?M.htmlFor=J:HvV.hasOwnProperty(R)?M.setAttribute(HvV[R],J):_.PY(R,"aria-")||_.PY(R,"data-")?M.setAttribute(R,J):M[R]=J})};
HvV={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"};_.QW=function(M){M=(M||window).document;M=M.compatMode=="CSS1Compat"?M.documentElement:M.body;return new _.eU(M.clientWidth,M.clientHeight)};
_.dBQ=function(M){var z=_.gp(M);M=M.defaultView;return new _.nO(M.pageXOffset||z.scrollLeft,M.pageYOffset||z.scrollTop)};
_.gp=function(M){return M.scrollingElement?M.scrollingElement:_.oJ||M.compatMode!="CSS1Compat"?M.body||M.documentElement:M.documentElement};
hA=function(M){return M?M.defaultView:window};
_.sc=function(M,z,J){return K$V(document,arguments)};
K$V=function(M,z){var J=z[1],R=$BS(M,String(z[0]));J&&(typeof J==="string"?R.className=J:Array.isArray(J)?R.className=J.join(" "):cSp(R,J));z.length>2&&uQQ(M,R,z,2);return R};
uQQ=function(M,z,J,R){function D(B){B&&z.appendChild(typeof B==="string"?M.createTextNode(B):B)}
for(;R<J.length;R++){var N=J[R];if(!_.WY(N)||_.E8(N)&&N.nodeType>0)D(N);else{a:{if(N&&typeof N.length=="number"){if(_.E8(N)){var Z=typeof N.item=="function"||typeof N.item=="string";break a}if(typeof N==="function"){Z=typeof N.item=="function";break a}}Z=!1}_.VU(Z?_.uG(N):N,D)}}};
_.lm=function(M){return $BS(document,M)};
$BS=function(M,z){z=String(z);M.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return M.createElement(z)};
_.nQ=function(){return document.createTextNode("\n")};
hw=function(M){if(M.nodeType!=1)return!1;switch(M.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
q$p=function(M,z){uQQ(_.yW(M),M,arguments,1)};
_.yD=function(M){for(var z;z=M.firstChild;)M.removeChild(z)};
_.HK=function(M,z){z.parentNode&&z.parentNode.insertBefore(M,z)};
_.cK=function(M,z){z.parentNode&&z.parentNode.insertBefore(M,z.nextSibling)};
_.eJ=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null};
_.W$V=function(M,z){var J=z.parentNode;J&&J.replaceChild(M,z)};
_.aV2=function(M){var z,J=M.parentNode;if(J&&J.nodeType!=11)if(M.removeNode)M.removeNode(!1);else{for(;z=M.firstChild;)J.insertBefore(z,M);_.eJ(M)}};
_.dp=function(M){return M.children!=void 0?M.children:Array.prototype.filter.call(M.childNodes,function(z){return z.nodeType==1})};
_.Ep2=function(M){return M.nextElementSibling!==void 0?M.nextElementSibling:_.VaJ(M.nextSibling,!0)};
_.VaJ=function(M,z){for(;M&&M.nodeType!=1;)M=z?M.nextSibling:M.previousSibling;return M};
_.iD=function(M){return _.E8(M)&&M.nodeType==1};
_.dS=function(M,z){if(!M||!z)return!1;if(M.contains&&z.nodeType==1)return M==z||M.contains(z);if(typeof M.compareDocumentPosition!="undefined")return M==z||!!(M.compareDocumentPosition(z)&16);for(;z&&M!=z;)z=z.parentNode;return z==M};
ASJ=function(M,z){if(M==z)return 0;if(M.compareDocumentPosition)return M.compareDocumentPosition(z)&2?1:-1;if("sourceIndex"in M||M.parentNode&&"sourceIndex"in M.parentNode){var J=M.nodeType==1,R=z.nodeType==1;if(J&&R)return M.sourceIndex-z.sourceIndex;var D=M.parentNode,N=z.parentNode;return D==N?fV2(M,z):!J&&_.dS(D,z)?-1*L$p(M,z):!R&&_.dS(N,M)?L$p(z,M):(J?M.sourceIndex:D.sourceIndex)-(R?z.sourceIndex:N.sourceIndex)}R=_.yW(M);J=R.createRange();J.selectNode(M);J.collapse(!0);M=R.createRange();M.selectNode(z);
M.collapse(!0);return J.compareBoundaryPoints(_.R3.Range.START_TO_END,M)};
L$p=function(M,z){var J=M.parentNode;if(J==z)return-1;for(;z.parentNode!=J;)z=z.parentNode;return fV2(z,M)};
fV2=function(M,z){for(;z=z.previousSibling;)if(z==M)return-1;return 1};
ivV=function(M){var z,J=arguments.length;if(!J)return null;if(J==1)return arguments[0];var R=[],D=Infinity;for(z=0;z<J;z++){for(var N=[],Z=arguments[z];Z;)N.unshift(Z),Z=Z.parentNode;R.push(N);D=Math.min(D,N.length)}N=null;for(z=0;z<D;z++){Z=R[0][z];for(var B=1;B<J;B++)if(Z!=R[B][z])return N;N=Z}return N};
_.yW=function(M){return M.nodeType==9?M:M.ownerDocument||M.document};
CJS=function(M){return M.contentDocument||M.contentWindow.document};
_.KQ=function(M,z){if("textContent"in M)M.textContent=z;else if(M.nodeType==3)M.data=String(z);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(z)}else _.yD(M),M.appendChild(_.yW(M).createTextNode(String(z)))};
bvV={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};rSQ={IMG:" ",BR:"\n"};KKp=function(M){var z;M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?z=!M.disabled&&(!M.hasAttribute("tabindex")||Mmk(M)):z=M.hasAttribute("tabindex")&&Mmk(M);return z};
Mmk=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768};
Jiu=function(M){var z=[];zw2(M,z,!0);M=z.join("");M=M.replace(/ \xAD /g," ").replace(/\xAD/g,"");M=M.replace(/\u200B/g,"");M=M.replace(/ +/g," ");M!=" "&&(M=M.replace(/^\s*/,""));return M};
RwB=function(M){var z=[];zw2(M,z,!1);return z.join("")};
zw2=function(M,z,J){if(!(M.nodeName in bvV))if(M.nodeType==3)J?z.push(String(M.nodeValue).replace(/(\r\n|\r|\n)/g,"")):z.push(M.nodeValue);else if(M.nodeName in rSQ)z.push(rSQ[M.nodeName]);else for(M=M.firstChild;M;)zw2(M,z,J),M=M.nextSibling};
_.DNV=function(M,z,J){if(!z&&!J)return null;var R=z?String(z).toUpperCase():null;return _.cj(M,function(D){return(!R||D.nodeName==R)&&(!J||typeof D.className==="string"&&_.Kp(D.className.split(/\s+/),J))},!0)};
_.cj=function(M,z,J){M&&!J&&(M=M.parentNode);for(J=0;M;){if(z(M))return M;M=M.parentNode;J++}return null};
Yi=function(M){this.JSC$9293_document_=M||_.R3.document||document};
_.P=Yi.prototype;_.P.getElement=function(M){return _.DU(this.JSC$9293_document_,M)};
_.P.$=Yi.prototype.getElement;_.P.getElementsByTagName=function(M,z){return(z||this.JSC$9293_document_).getElementsByTagName(String(M))};
_.P.getElementsByTagNameAndClass=function(M,z,J){return mc(this.JSC$9293_document_,M,z,J)};
_.P.$$=Yi.prototype.getElementsByTagNameAndClass;_.P.setProperties=cSp;_.P.JSC$9295_createDom=function(M,z,J){return K$V(this.JSC$9293_document_,arguments)};
_.P.createElement=function(M){return $BS(this.JSC$9293_document_,M)};
_.P.createTextNode=function(M){return this.JSC$9293_document_.createTextNode(String(M))};
_.P.getWindow=function(){return this.JSC$9293_document_.defaultView};
var Ua=function(M){return _.dBQ(M.JSC$9293_document_)};
_.P=Yi.prototype;_.P.appendChild=function(M,z){M.appendChild(z)};
_.P.append=q$p;_.P.canHaveChildren=hw;_.P.removeNode=_.eJ;_.P.getChildren=_.dp;_.P.contains=_.dS;_.P=SU.prototype;_.P.getWidth=function(){return this.right-this.left};
_.P.getHeight=function(){return this.bottom-this.top};
_.P.clone=function(){return new SU(this.top,this.right,this.bottom,this.left)};
_.P.contains=function(M){return this&&M?M instanceof SU?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1};
_.P.expand=function(M,z,J,R){_.E8(M)?(this.top-=M.top,this.right+=M.right,this.bottom+=M.bottom,this.left-=M.left):(this.top-=M,this.right+=Number(z),this.bottom+=Number(J),this.left-=Number(R));return this};
_.P.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.P.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.P.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.P.translate=function(M,z){M instanceof _.nO?(this.left+=M.x,this.right+=M.x,this.top+=M.y,this.bottom+=M.y):(this.left+=M,this.right+=M,typeof z==="number"&&(this.top+=z,this.bottom+=z));return this};
_.P.scale=function(M,z){z=typeof z==="number"?z:M;this.left*=M;this.right*=M;this.top*=z;this.bottom*=z;return this};var $i=function(M,z,J,R){this.left=M;this.top=z;this.width=J;this.height=R};
_.P=$i.prototype;_.P.clone=function(){return new $i(this.left,this.top,this.width,this.height)};
_.P.boundingRect=function(M){var z=Math.max(this.left+this.width,M.left+M.width),J=Math.max(this.top+this.height,M.top+M.height);this.left=Math.min(this.left,M.left);this.top=Math.min(this.top,M.top);this.width=z-this.left;this.height=J-this.top};
_.P.contains=function(M){return M instanceof _.nO?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height};
_.P.distance=function(M){var z=M.x<this.left?this.left-M.x:Math.max(M.x-(this.left+this.width),0);M=M.y<this.top?this.top-M.y:Math.max(M.y-(this.top+this.height),0);return Math.sqrt(z*z+M*M)};
_.P.getSize=function(){return new _.eU(this.width,this.height)};
_.P.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.translate=function(M,z){M instanceof _.nO?(this.left+=M.x,this.top+=M.y):(this.left+=M,typeof z==="number"&&(this.top+=z));return this};
_.P.scale=function(M,z){z=typeof z==="number"?z:M;this.left*=M;this.width*=M;this.top*=z;this.height*=z;return this};var PwJ,WK,Zqw,qo,BlV,kcQ,Owg,mo3,TlS,oG$;_.uo=function(M,z,J){if(typeof z==="string")(z=_.NlQ(M,z))&&(M.style[z]=J);else for(var R in z){J=M;var D=z[R],N=_.NlQ(J,R);N&&(J.style[N]=D)}};
PwJ={};_.NlQ=function(M,z){var J=PwJ[z];if(!J){var R=_.UK(z);J=R;M.style[R]===void 0&&(R=(_.oJ?"Webkit":_.IJ?"Moz":null)+mb2(R),M.style[R]!==void 0&&(J=R));PwJ[z]=J}return J};
_.XB=function(M,z){var J=_.yW(M);return J.defaultView&&J.defaultView.getComputedStyle&&(M=J.defaultView.getComputedStyle(M,null))?M[z]||M.getPropertyValue(z)||"":""};
_.c6=function(M,z){return _.XB(M,z)||(M.currentStyle?M.currentStyle[z]:null)||M.style&&M.style[z]};
_.S5p=function(M){return _.c6(M,"position")};
WK=function(M,z,J){if(z instanceof _.nO){var R=z.x;z=z.y}else R=z,z=J;M.style.left=qo(R,!1);M.style.top=qo(z,!1)};
Zqw=function(M){try{return M.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}};
_.Hj=function(M){var z=_.yW(M),J=new _.nO(0,0);if(M==(z?_.yW(z):document).documentElement)return J;M=Zqw(M);z=Ua(vj(z));J.x=M.left+z.x;J.y=M.top+z.y;return J};
_.Zwt=function(M,z,J){if(z instanceof _.eU)J=z.height,z=z.width;else if(J==void 0)throw Error("oa");M.style.width=qo(z,!0);M.style.height=qo(J,!0)};
qo=function(M,z){typeof M=="number"&&(M=(z?Math.round(M):M)+"px");return M};
BlV=function(M){return kcQ(M)};
kcQ=function(M){var z=Owg;if(_.c6(M,"display")!="none")return z(M);var J=M.style,R=J.display,D=J.visibility,N=J.position;J.visibility="hidden";J.position="absolute";J.display="inline";M=z(M);J.display=R;J.position=N;J.visibility=D;return M};
Owg=function(M){var z=M.offsetWidth,J=M.offsetHeight,R=_.oJ&&!z&&!J;return(z===void 0||R)&&M.getBoundingClientRect?(M=Zqw(M),new _.eU(M.right-M.left,M.bottom-M.top)):new _.eU(z,J)};
mo3=function(M){var z=_.Hj(M);M=kcQ(M);return new $i(z.x,z.y,M.width,M.height)};
TlS=function(M,z){M=M.style;"opacity"in M?M.opacity=z:"MozOpacity"in M?M.MozOpacity=z:"filter"in M&&(M.filter=z===""?"":"alpha(opacity="+Number(z)*100+")")};
_.a2=function(M,z){M.style.display=z?"":"none"};
_.Isg=function(M){return"rtl"==_.c6(M,"direction")};
oG$=function(M){var z=_.XB(M,"marginLeft"),J=_.XB(M,"marginRight"),R=_.XB(M,"marginTop");M=_.XB(M,"marginBottom");return new SU(parseFloat(R),parseFloat(J),parseFloat(M),parseFloat(z))};
_.Xta=function(M){var z=_.XB(M,"borderLeftWidth"),J=_.XB(M,"borderRightWidth"),R=_.XB(M,"borderTopWidth");M=_.XB(M,"borderBottomWidth");return new SU(parseFloat(R),parseFloat(J),parseFloat(M),parseFloat(z))};var aN=function(M){this.context=M};
aN.prototype.isSupported=function(M){return(M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="POST"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive)?!1:!GE(this.context)};
aN.prototype.ping=function(){var M=this;return GT(_.H4.apply(0,arguments).map(function(z){try{var J=M.context.global,R=!1;R=R===void 0?!1:R;J.google_image_requests||(J.google_image_requests=[]);var D=mBt("IMG",J.document);R&&(D.attributionSrc="");D.src=z;J.google_image_requests.push(D);return!0}catch(N){return!1}}).every(function(z){return z}))};
aN.prototype.pingWithHeadersAndBody=function(M,z,J){this.ping.apply(this,_.Yj(_.H4.apply(3,arguments)))};var lsv=function(M){this.context=M};
lsv.prototype.isSupported=function(M){return ewv&&!GE(this.context)&&dxb(this.context)!==void 0&&!(M==null?0:M.attributionEnabled)&&(M==null?void 0:M.beaconMethod)!=="POST"&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
lsv.prototype.makeBeacon=function(M,z){if(!this.isSupported(z))throw new e6;return new VD(this.context,M)};
var ewv=!1,VD=function(M,z){this.context=M;this.JSC$9314_urlWithoutToken=z;M=dxb(this.context);if(M===void 0)throw Error();this.wrappedBeacon=new M(QvS(this),{})},QvS=function(M){M=M.JSC$9314_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"pbapi=1"};
VD.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
VD.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
VD.prototype.setHeader=function(){};
_.rX.Object.defineProperties(VD.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9314_urlWithoutToken},
set:function(M){this.JSC$9314_urlWithoutToken=M;this.wrappedBeacon.setURL(QvS(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(M){if(M!=="GET")throw new e6;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var UNQ=function(M){this.context=M};
UNQ.prototype.isSupported=function(M){if((M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="GET"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive))return!1;var z;return!GE(this.context)&&((z=this.context.global.navigator)==null?void 0:z.sendBeacon)!==void 0};
UNQ.prototype.ping=function(){var M=this;return GT(_.H4.apply(0,arguments).map(function(z){var J;return(J=M.context.global.navigator)==null?void 0:J.sendBeacon(z)}).every(function(z){return z}))};
UNQ.prototype.pingWithHeadersAndBody=function(M,z,J){this.ping.apply(this,_.Yj(_.H4.apply(3,arguments)))};var X3=function(M){this.value=M},LO=function(M,z){return GT(M.value).pipe(T$(z))},iv=new X3(!1),vy0=new X3(!0);var du=function(M){this.value=M;this.releasedSubject=new Zo};
du.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.rX.Object.defineProperties(du.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9327_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var CvG=["FRAME","IMG","IFRAME"],VUw=/^[01](px)?$/,iOc=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},AAw=function(){var M=new iOc;
M.crossDomainLoadedDefault=!0;M.pendingImagesBlockLoad=!0;return M};var vGa=function(M,z){var J=D$R(M);if(J)if(J.onCreativeLoad)J.onCreativeLoad(z);else{var R=z?[z]:[],D=function(N){for(var Z=0;Z<R.length;++Z)try{R[Z](1,N)}catch(B){}R={push:function(B){B(1,N)}}};
J.onCreativeLoad=function(N){R.push(N)};
J.setAttribute("data-creative-load-listener","");J.addEventListener("creativeLoad",function(N){D(N.detail)});
_.R3.addEventListener("message",function(N){RB8(J,D,N)})}};var Ec=function(M,z){var J=this;this.global=M;this.parentContext=z;this.JSC$9338_onVisibilityChange=this.document?ya(GT(!0),nS(this.document,"visibilitychange")).pipe(qy(this.parentContext.performanceMonitor,748),F4(function(){return J.getVisibilityState()}),fS()):GT("visible");
this.document?nS(this.document,"DOMContentLoaded").pipe(qy(this.parentContext.performanceMonitor,739),EI(1)):GT(Wa8("DOMContentLoaded"))},UH0=function(M){return M.document!==null&&M.document.visibilityState!==void 0};
Ec.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Ec.prototype.querySelector=function(M){return this.document?this.document.querySelector(M):null};
Ec.prototype.querySelectorAll=function(M){return this.document?_.uG(this.document.querySelectorAll(M)):[]};
Ec.prototype.elementFromPoint=function(M,z){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;M=this.document.elementFromPoint(M,z);return M===null?null:new du(M)};
var Zhp=function(M,z,J){J=J===void 0?!1:J;if(z.ref===void 0||!M.document)return GT(z).pipe(qy(M.parentContext.performanceMonitor,749));var R=new CS(1),D=function(){R.next(z)};
J||vGa(z.ref,D);bO3(z.ref,D);return R.pipe(qy(M.parentContext.performanceMonitor,749),EI(1))};
_.rX.Object.defineProperties(Ec.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return wj0(this.global,"document")?this.global.document||null:null}}});var NS0=_.Ca(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Pmp=_.Ca(["./reach_worklet.js"]),SCp=_.Ca(["./reach_worklet.js"]),Gck=_.Ca(["./reach_worklet.html"]),wtt=_.Ca(["./reach_worklet.js"]),xNv=_.Ca(["./reach_worklet.js"]);_.Nx(Gck);_.Nx(wtt);_.Nx(xNv);var qx={left:0,top:0,width:0,height:0};var tm2,jv2,ptp,Fdu,bi,mNg,gGg,svp,y6Y,Hje,yiv,Hwt;tm2=function(M,z,J,R,D,N,Z){var B="";M&&(B+=M+":");J&&(B+="//",z&&(B+=z+"@"),B+=J,R&&(B+=":"+R));D&&(B+=D);N&&(B+="?"+N);Z&&(B+="#"+Z);return B};
jv2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.ii=function(M){return M.match(jv2)};
_.gy=function(M,z){return M?z?decodeURI(M):decodeURIComponent(M):M};
ptp=function(M){M=_.ii(M)[1]||null;!M&&_.R3.self&&_.R3.self.location&&(M=_.R3.self.location.protocol.slice(0,-1));return M?M.toLowerCase():""};
_.Ch=function(M){return _.gy(_.ii(M)[3]||null,!0)};
_.Ib=function(M){return _.gy(_.ii(M)[5]||null,!0)};
_.eoc=function(M){var z=M.indexOf("#");return z<0?null:M.slice(z+1)};
Fdu=function(M){M=_.ii(M);return tm2(M[1],M[2],M[3],M[4])};
_.Y5u=function(M){M=_.ii(M);return tm2(M[1],null,M[3],M[4])};
_.aT=function(M){M=_.ii(M);return tm2(null,null,null,null,M[5],M[6],M[7])};
_.bS=function(M){var z=M.indexOf("#");return z<0?M:M.slice(0,z)};
bi=function(M,z){M=_.ii(M);z=_.ii(z);return M[3]==z[3]&&M[1]==z[1]&&M[4]==z[4]};
mNg=function(M,z){if(M){M=M.split("&");for(var J=0;J<M.length;J++){var R=M[J].indexOf("="),D=null;if(R>=0){var N=M[J].substring(0,R);D=M[J].substring(R+1)}else N=M[J];z(N,D?MC(D):"")}}};
gGg=function(M){var z=M.indexOf("#");z<0&&(z=M.length);var J=M.indexOf("?");if(J<0||J>z){J=z;var R=""}else R=M.substring(J+1,z);return[M.slice(0,J),R,M.slice(z)]};
svp=function(M,z){return z?M?M+"&"+z:z:M};
_.nG$=function(M,z){if(!z)return M;M=gGg(M);M[1]=svp(M[1],z);return M[0]+(M[1]?"?"+M[1]:"")+M[2]};
_.hw$=function(M,z,J){if(Array.isArray(z))for(var R=0;R<z.length;R++)_.hw$(M,String(z[R]),J);else z!=null&&J.push(M+(z===""?"":"="+_.aX(z)))};
_.Xh=function(M){var z=[],J;for(J in M)_.hw$(J,M[J],z);return z.join("&")};
_.Ag=function(M,z){z=_.Xh(z);return _.nG$(M,z)};
_.fQ=function(M,z,J){J=J!=null?"="+_.aX(J):"";return _.nG$(M,z+J)};
y6Y=function(M,z,J,R){for(var D=J.length;(z=M.indexOf(J,z))>=0&&z<R;){var N=M.charCodeAt(z-1);if(N==38||N==63)if(N=M.charCodeAt(z+D),!N||N==61||N==38||N==35)return z;z+=D+1}return-1};
Hje=/#|$/;_.KW=function(M,z){var J=M.search(Hje),R=y6Y(M,0,z,J);if(R<0)return null;var D=M.indexOf("&",R);if(D<0||D>J)D=J;R+=z.length+1;return MC(M.slice(R,D!==-1?D:0))};
yiv=/[?&]($|#)/;_.Ms=function(M,z){for(var J=M.search(Hje),R=0,D,N=[];(D=y6Y(M,R,z,J))>=0;)N.push(M.substring(R,D)),R=Math.min(M.indexOf("&",D)+1||J,J);N.push(M.slice(R));return N.join("").replace(yiv,"$1")};
_.$4=function(M,z,J){return _.fQ(_.Ms(M,z),z,J)};
Hwt=function(M){var z=gGg(window.location.href),J=z[1],R=[];J&&J.split("&").forEach(function(D){var N=D.indexOf("=");N=N>=0?D.slice(0,N):D;M.hasOwnProperty(N)||R.push(D)});
z[1]=svp(R.join("&"),_.Xh(M));return z[0]+(z[1]?"?"+z[1]:"")+z[2]};var Fq0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Fq0,_.zA);Fq0.prototype.getVersion=function(){return _.hv(this,2)};var p60=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(p60,_.zA);var vF0=function(M,z){return _.G$(M,2,z)},j2Y=function(M,z){return _.G$(M,3,z)};
p60.prototype.getModel=function(){return _.hv(this,4)};
var w6p=function(M,z){return _.G$(M,4,z)},U$p=function(M,z){return _.G$(M,5,z)},tJw=function(M,z){return _.G$(M,9,z)},Q2e=function(M,z){return FZ(M,10,z)},eBp=function(M,z){return _.SJ(M,11,z)},Gzn=function(M,z){return _.G$(M,1,z)},x$Y=function(M,z){return _.SJ(M,7,z)};var X60="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var AA=function(M,z,J,R){M=M===void 0?window:M;z=z===void 0?null:z;J=J===void 0?new i5n:J;R=R===void 0?ZWw():R;Vpk.call(this);var D=this;this.global=M;this.debugChannel=z;this.performanceMonitor=J;this.onPageHide=AGn(function(){return nS(D.global,"pagehide")}).pipe(qy(this.performanceMonitor,941));
this.onLoad=AGn(function(){return nS(D.global,"load")}).pipe(qy(this.performanceMonitor,738),EI(1));
this.onResize=AGn(function(){return nS(D.global,"resize")}).pipe(qy(this.performanceMonitor,741));
this.onMessage=AGn(function(){return nS(D.global,"message")}).pipe(qy(this.performanceMonitor,740));
this.document=new Ec(this.global,this);this.timeProvider=new CGt(new re$(this.intrinsicFunctionNamespace,this.performanceMonitor),new bp2(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Lwu(new z22(this),new lsv(this),new QD(this,new DBB(this)),new QD(this,new UNQ(this)),new QD(this,new aN(this)))};
_.w(AA,Vpk);var GE=function(M){var z=M.global;return!!M.global.HTMLFencedFrameElement&&!!z.fence&&typeof z.fence.reportEvent==="function"};
_.P=AA.prototype;_.P.reportFencedFrameEvent=function(M){GE(this)&&this.global.fence.reportEvent(M)};
_.P.getOnBackgrounded=function(){return this.onPageHide.pipe(qy(this.performanceMonitor,942),T$(this.queue),F4(function(){}))};
_.P.postMessage=function(M,z,J){J=J===void 0?[]:J;this.global.postMessage(M,z,J)};
_.P.getWidth=function(){return xxH(this.global)?this.global.width:0};
_.P.getHeight=function(){return xxH(this.global)?this.global.height:0};
_.P.isMobile=function(){return PJ2()||S$Q()};
var KO=function(M,z){try{var J=TS8(z,M.global,M.isMobile());return{left:J.left,top:J.top,width:J.getWidth(),height:J.getHeight()}}catch(R){return qx}};
AA.prototype.validate=function(){var M=this.beaconFactory.isSupported()||GE(this);return this.global&&this.timeProvider.available()&&M};
var $xn=function(M){return(M=m$w(M.global))?TT(M):null};
_.rX.Object.defineProperties(AA.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(M){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!xxH(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}}});_.cia=!_.Tj&&!_.BRb();var G4w=function(M){return M};var xH0=function(M){return M.pipe(Hy(function(z){var J=z.endOfSessionReason;var R;return((R=z.viewable)==null?void 0:R.extrapolateToNow().value)||J!=void 0}),EI(1),ao())};var cK0=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},d$w=function(M){var z=M.sequenceNumber.toString(10).padStart(2,"0");
z=""+M.startTime+z;M.sequenceNumber<99&&M.sequenceNumber++;return z};var QXw=SX(JA(function(M){return M.endOfSessionReason===void 0}),F4(function(M){return Object.assign({},M,{timestamps:tA(M)})}),Hy(function(M){var z=M.viewable;
M=M.timestamps;var J;return(J=z==null?void 0:z.extrapolateUsingTimestampMap(M).value)!=null?J:!1}),F4(function(M){var z=M.beaconFactory;
var J=M.timestampedExposureHistory;var R=M.timeOnScreen;var D=M.binaryContext;M=M.timestamps;if(z===void 0||J===void 0||R===void 0||D===void 0)return!1;if(R.extrapolateUsingTimestampMap(M).value.every(function(N){return N>=0}))return!0;
J=J.map(function(N){return N.timestamp+":"+N.value}).join(",");
R=KqR({bin:D,tos:R},M);z.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+R+("&eh="+J)).sendNow();return!0}),JA(function(M){return!M}),ao());var u_p=function(M){return{id:M.pingId,mcvt:M.maxConsecutiveViewTime,p:M.creativePosition,asp:M.adSpeedPosition,tm:M.totalMeasurementTime,tu:M.totalUnviewedTime,mtos:M.maxTimeOnScreen,tos:M.timeOnScreen,v:M.binaryVersion,bin:M.binaryContext,avms:M.measurementStrategy,bs:M.browserSize,mc:M.maximumExposure,"if":M.crossDomainIframeState,vu:M.delayedImpressionJsState,app:M.inApp,mse:M.mraidError,mtop:M.mraidSituation,itpl:M.injectedTemplateId,adk:M.adKey,exk:M.awbidKey,rs:M.requestSource,la:M.isLargeAd,
cr:M.isContentRecommendationAd,uach:M.userAgentClientHints,vs:M.viewState,r:M.reasonCode,pay:M.hasCpmavUrl,co:M.clientPingOrderCounter,rst:M.adRenderStartTime,rpt:M.adRenderPeriodTime,isd:M.initialScrollDepth,lsd:M.loadedScrollDepth,context:M.errorContext,msg:M.errorMessage,stack:M.errorStack,name:M.errorName,ec:M.hasElementChanged,sfr:M.strategyFailureReasons,met:M.creativeSearchResult,wmsd:M.webMeasurementStartDiagnostic,pv:M.pageVisible,epv:M.eosPageVisible,pbe:M.inStatefulBeaconExperiment,fle:M.inFetchLaterBeaconExperiment,
vae:M.inViewableAttributionExperiment,spb:M.supportsPendingBeacon,sfl:M.supportsFetchLater,ffslot:M.isFencedFrameSlotTurtlex,reach:M.sharedStorageReachMode,io2:M.v2VisibilityBitVector,rxdbg:M.rxDebugger,omida:M.omidAppId,omidp:M.omidPartner,omidpv:M.omidPartnerVersion,omidor:M.omidOcclusionReasons,omidv:M.omidVersion,omids:M.omidSessionType,omidam:M.omidAccessMode,omidct:M.omidCreativeType,omidia:M.omidInApp,omiddc:M.omidDeviceCategory,omidlat:M.omidLastActivity,omiddit:M.omidDeviceIdleTime,qid:M.errorEscapedQueryId}};var wWH=function(M){var z=[];return M.pipe(F4(function(J){var R=J.beaconFactory,D=J.fetchBeaconFactory,N=J.timeOnScreen,Z=J.timeOnScreenUrlPrefixes,B=J.payloadMapper,O=J.timeOnScreenPingId,X=J.timeOnScreenReason,l=J.urlSerializer,e=J.viewable,Q=J.hasImpressionFired,v=J.inStatefulBeaconExperiment,x=J.supportsPendingBeacon,m=J.supportsFetchLater,y=J.turtlexReportEventData;if(!J.geometryMeasurable||!Q||J.maxTimeOnScreen===void 0||N===void 0||Z===void 0||B===void 0||O===void 0||l===void 0||R===void 0)return!1;
if(J.isTurtlex){if(X===void 0)return!1;Z=J.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-time-on-screen",eventData:y!=null?y:"",destination:["buyer"]});return!0}if(!(v||m||X))return!1;y=tA(J);var H;e=(H=e==null?void 0:e.extrapolateUsingTimestampMap(y).value)!=null?H:!1;H=l(Object.assign({},J,{pingId:O,viewState:e?4:3,reasonCode:X!=null?X:"u",payloadMapper:B,urlPrefixes:Z}),y);if(v){for(;z.length>Z.length;)J=void 0,(J=z.shift())==null||J.deactivate();H.forEach(function(b,V){V>=z.length?
z.push(R.makeBeacon(b)):z[V].url=b});
return x&&D&&X!==void 0?(H.forEach(function(b){D.makeBeacon(b).sendNow()}),!0):X!==void 0}if(x&&D&&X!==void 0)return H.forEach(function(b){D.makeBeacon(b).sendNow()}),!0;
if(m&&D){for(;z.length>Z.length;)x=void 0,(x=z.shift())==null||x.deactivate();var q=l(Object.assign({},J,{pingId:O,viewState:e?4:3,reasonCode:X!=null?X:"u",payloadMapper:B,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),y)[0];H.forEach(function(b,V){V>=z.length?z.push(R.makeBeacon(q,{endOfSession:!0})):z[V].url=q});
return X!==void 0?(H.forEach(function(b){D.makeBeacon(b).sendNow()}),!0):X!==void 0}return X!==void 0?(H.forEach(function(b){R.makeBeacon(b).sendNow()}),!0):!1}),JA(function(J){return!J}),ao())};var tfb=SX(Hy(function(M){return M.immediateUrlPrefixes!==void 0&&M.payloadMapper!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),Hy(function(M){return AKR(M)!==null}),f00(function(M){return M.activeViewUnmeasurableEvent},function(M){return M.emit}),F4(function(M){if(M.isTurtlex){var z=M.reportFencedFrameEvent;
if(z){var J;z({eventType:"active-view-unmeasurable",eventData:(J=M.turtlexReportEventData)!=null?J:"",destination:["buyer"]})}}else{J=void 0;var R=AKR(M);if(R==="x"){var D,N=(D=M.geometricMeasurementErrors)!=null?D:M.contextValidationErrors;N&&(z=N.stack,J=N.message)}M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:2,reasonCode:R,errorMessage:J,errorStack:z}),tA(M)).forEach(function(Z){M.beaconFactory.makeBeacon(Z).sendNow()})}}),
EI(1),ao());var iWw=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var eLn=SX(Hy(function(M){return M.payloadMapper!==void 0&&M.immediateUrlPrefixes!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),F4(function(M){return Object.assign({},M,{timestamps:tA(M)})}),Hy(function(M){var z=M.viewable;
var J=M.hasImpressionFired;M=M.timestamps;var R;return!!J&&((R=z==null?void 0:z.extrapolateUsingTimestampMap(M).value)!=null?R:!1)}),f00(function(M){return M.activeViewViewableEvent},function(M){return M.emit}),F4(function(M){var z=M.beaconFactory,J=M.turtlexReportEventData;
if(M.isTurtlex){var R=M.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-viewable",eventData:J!=null?J:"",destination:["buyer"]});return!0}J=M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:4,reasonCode:"v"}),M.timestamps);(R=M.cpmavUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(D){z.makeBeacon(D).sendNow()});
(R=M.viewableRelayUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(D){z.makeBeacon(D).sendNow()});
J.forEach(function(D){z.makeBeacon(D,{attributionEnabled:M.isViewableAttributionEnabled}).sendNow()});
return!0}),JA(function(M){return!M}),ao());var u88=F4(function(M){return[M.value.topWindowViewportExternalGeometry.width,M.value.topWindowViewportExternalGeometry.height]});var $r=function(M,z){this.callback=M;this.options=z;this.intersectionObserverV2=this.intersectionObserverV1=null},wl0=function(M,z){z?M.intersectionObserverV2||(z=Object.assign({},M.options,{delay:100,
trackVisibility:!0}),M.intersectionObserverV2=new IntersectionObserver(M.callback,z)):M.intersectionObserverV1||(M.intersectionObserverV1=new IntersectionObserver(M.callback,M.options))},dNQ=function(M,z){M=z?M.intersectionObserverV2:M.intersectionObserverV1;
if(!M)throw new EoB;return M};
$r.prototype.observe=function(M,z){dNQ(this,M).observe(z)};
$r.prototype.unobserve=function(M,z){dNQ(this,M).unobserve(z)};
$r.prototype.disconnect=function(M){dNQ(this,M).disconnect()};
$r.prototype.takeRecords=function(M){return dNQ(this,M).takeRecords()};var Bfo={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:qx,topWindowViewportExternalGeometry:qx,measurementRequests:new Zo,elementGeometrySourceName:"ns",elementGeometry:qx,intersectionGeometry:qx,viewportLocalAppOffset:{x:0,y:0}};var map=Wj(SX(F4(function(M){var z;return(z=M.exposureOverride)!=null?z:tPp(M)}),F4(function(M){return isFinite(M)?M:0}))),cP8=Wj(SX(F4(function(M){var z;
return(z=M.exposureOverride)!=null?z:tPp(M)}),F4(function(M){return isFinite(M)?M:-1})));var LQ=function(M,z){this.a=M;this.b=z;if(M.clock.timeline!==z.clock.timeline)throw Error();};
LQ.prototype.equivalentTo=function(M){return M instanceof LQ?this.a.equivalentTo(M.a)&&this.b.equivalentTo(M.b):!1};
LQ.prototype.extrapolateToTime=function(M){var z=this.a.extrapolateToTime(M).value,J=this.b.extrapolateToTime(M).value;return{timestamp:M,value:[z,J]}};
_.rX.Object.defineProperties(LQ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var M=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),z=this.a.lastMeasurement.timestamp.equals(M)?this.a.lastMeasurement.value:this.a.extrapolateToTime(M).value,J=this.b.lastMeasurement.timestamp.equals(M)?this.b.lastMeasurement.value:this.b.extrapolateToTime(M).value;return{timestamp:M,value:[z,J]}}}});var Aw=function(M,z){this.input=M;this.mapFunction=z;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Aw.prototype.equivalentTo=function(M){return M instanceof Aw?this.input.equivalentTo(M.input)&&this.mapFunction===M.mapFunction:!1};
Aw.prototype.extrapolateToTime=function(M){M=this.input.extrapolateToTime(M);return{timestamp:M.timestamp,value:this.mapFunction(M.value)}};
_.rX.Object.defineProperties(Aw.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var io=function(){};
io.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
io.prototype.extrapolateUsingTimestampMap=function(M){var z=this.clock.timeline,J,R=(J=M.get(z))!=null?J:this.clock.now();M.set(z,R);return this.extrapolateToTime(R)};
io.prototype.map=function(M){return new Kdp(this,M)};
io.prototype.joinWith=function(M){return new $NV(this,M)};
var $NV=function(){LQ.apply(this,arguments);this.map=io.prototype.map;this.joinWith=io.prototype.joinWith;this.extrapolateToNow=io.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=io.prototype.extrapolateUsingTimestampMap};
_.w($NV,LQ);var Kdp=function(){Aw.apply(this,arguments);this.map=io.prototype.map;this.joinWith=io.prototype.joinWith;this.extrapolateToNow=io.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=io.prototype.extrapolateUsingTimestampMap};
_.w(Kdp,Aw);var Ea=function(M,z){this.lastMeasurement=z;this.extrapolateToNow=io.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=io.prototype.extrapolateUsingTimestampMap;this.map=io.prototype.map;this.joinWith=io.prototype.joinWith;this.clock=M};
Ea.prototype.equivalentTo=function(M){return M.active};
Ea.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.rX.Object.defineProperties(Ea.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var $aR=F4(function(M){if(M.value.viewportGeometrySourceName==="omid"){if(M.value.elementGeometrySourceName==="nio")return"omio";if(M.value.elementGeometrySourceName==="geo")return"omgeo"}return M.value.elementGeometrySourceName==="geo"||M.value.elementGeometrySourceName==="nio"?M.value.viewportGeometrySourceName:M.value.elementGeometrySourceName});var plb=SX(Hy(function(M){return!isNaN(M)}),rV(function(M,z){return isNaN(M)?z:Math.min(M,z)},NaN),fS());var gE8=Wj(SX(F4(function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.exposedViewportLocalGeometry.width*M.exposedViewportLocalGeometry.height)}),F4(function(M){return isFinite(M)?Math.min(1,M):0})));var KtG=SX(Wj(F4(function(M){M=M.exposureOverride?M.elementGeometry.width*M.elementGeometry.height*M.exposureOverride/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height):M.intersectionGeometry.width*M.intersectionGeometry.height/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height);return isFinite(M)?M:0})));var aZG=function(M,z){var J=this;this.timeProvider=M;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=z.pipe(fS()).subscribe(function(R){EEY(J);J.measurementRequestObserver=R})},fZ8=function(M,z){EEY(M);
M.lastMeasurementRequest=M.timeProvider.setTimeout(function(){var J;return void((J=M.measurementRequestObserver)==null?void 0:J.next())},z)},EEY=function(M){M.lastMeasurementRequest!==null&&M.timeProvider.clearTimeout(M.lastMeasurementRequest);
M.lastMeasurementRequest=null};
aZG.prototype.dispose=function(){EEY(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var ulk=function(){};var oyn=function(M,z){this.context=M;this.strategies=z};
_.w(oyn,ulk);oyn.prototype.buildGeometrySource=function(M,z){var J=this.strategies.map(function(N){return N.buildGeometrySource(M,z)}),R=bqp(J.map(function(N){return N.geometrySource})),D=R.capturedErrors.pipe(q5V());
return{geometrySource:R.chain.pipe(T$(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:D,strategyErrors:R.capturedErrors}].concat(_.Yj(J.map(function(N){return N.additionalOutputs}))))}};
var q5V=function(){return rV(function(M,z){z instanceof pO?M.push(z.measurementStrategyFailureReason):M.push(-1);return M},[])};var lNG=function(M,z){this.context=M;this.poller=z};
_.w(lNG,ulk);lNG.prototype.buildGeometrySource=function(M,z){var J=rPn(zLY(this.context,this.poller),OqG(this.context,z.requestSource));return{geometrySource:C0G(M.measurableCreative.pipe(J),z.inApp),additionalOutputs:{}}};var XWH=function(M,z,J){J=J===void 0?eSH(M,z):J;this.context=M;this.intersectionObserverStrategy=J};
_.w(XWH,ulk);XWH.prototype.buildGeometrySource=function(M,z){var J=this.intersectionObserverStrategy(z.useV2);return{geometrySource:C0G(M.measurableCreative.pipe(J,Q4R(this.context)),z.inApp),additionalOutputs:{}}};var WdS=function(M,z,J){var R=R===void 0?Symbol():R;this.element=M;this.immediateUrls=z;this.timeOnScreenUrls=J;this.symbol=R};var WtR=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Pic=Object.freeze([1,.75,WtR.exposureThreshold,WtR.largeAdExposureThreshold,0]);var ERw=function(M,z){z=z===void 0?36E5:z;var J=J===void 0?!0:J;this.creatives=new Zo;this.elementsToUnregister=new Zo;this.elementMap=new Map;var R=new AA(window,null);R.beaconFactory=new QD(R,new aN(R));INw(R,this.creatives,this.elementsToUnregister,M,z,J).subscribe()},A4G=function(M,z,J,R){if(!M.elementMap.has(z)){var D=new du(z);
M.elementMap.set(z,D);M.creatives.next(new WdS(D,J,R))}},LOp=function(M,z){M.elementsToUnregister.next(z);
var J=M.elementMap.get(z);J!==void 0&&(J.release(),M.elementMap.delete(z))};var oSn=function(M){var z=M.url;M=M.uaDataValues;this.JSC$9443_url_=z;this.uaDataValues_=M;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var J=/[?&]([^&=]+)=([^&]*)/g;M=J.exec(z);)this.urlParamValues_[M[1]]=M[2]},X5n=function(M){M=M.uaDataValues_;
if(!M)return"";var z=CO("uap",M.platform)+CO("uapv",M.platformVersion)+CO("uafv",M.uaFullVersion)+CO("uaa",M.architecture)+CO("uam",M.model)+CO("uab",M.bitness);M.fullVersionList&&(z+="&uafvl="+encodeURIComponent(M.fullVersionList.map(function(J){return encodeURIComponent(J.brand)+";"+encodeURIComponent(J.version)}).join("|")));
M.wow64!=null&&(z+="&uaw="+Number(M.wow64));return z.slice(1)};var asu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(asu,_.zA);asu.prototype.getId=function(){return _.hv(this,1)};var CQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(CQ,_.zA);CQ.prototype.getSeconds=function(){return sD(this,1)};
CQ.prototype.setSeconds=function(M){return _.Ai(this,1,NN(M),"0")};_.yL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(_.yL,_.zA);_.yL.prototype.getSeconds=function(){return sD(this,1)};
_.yL.prototype.setSeconds=function(M){return _.Ai(this,1,NN(M),"0")};
_.Vmv=function(M){var z=Number(H9(M,1));M=_.R2(M,2);return new Date(z*1E3+M/1E6)};var bo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(bo,_.zA);bo.prototype.getUrl=function(){return _.hv(this,1)};
bo.prototype.setUrl=function(M){return _.fr(this,1,M)};
bo.prototype.getHeight=function(){return _.R2(this,2)};
bo.prototype.getWidth=function(){return _.R2(this,3)};var rp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(rp,_.zA);rp.prototype.getAspectRatio=function(){return ny(this,1)};
rp.prototype.getDuration=function(){return _.DG(this,CQ,2)};var EGk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(EGk,_.zA);var fs$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(fs$,_.zA);var LdJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(LdJ,_.zA);var Aig=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Aig,_.zA);var iw$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(iw$,_.zA);var Cwa=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Cwa,_.zA);var bwk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(bwk,_.zA);var rit=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(rit,_.zA);var Mq2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Mq2,_.zA);var Mk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Mk,_.zA);var zQ=[2,4,5,6,7];var zik=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(zik,_.zA);var YI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(YI,_.zA);_.P=YI.prototype;_.P.getId=function(){return _.DG(this,asu,1)};
_.P.getName=function(){return _.hv(this,2)};
_.P.setDescription=function(M){return _.fr(this,3,M)};
_.P.getUrl=function(){return _.hv(this,8)};
_.P.setUrl=function(M){return _.fr(this,8,M)};
var JQ=function(M){return _.zz(M,bo,10,_.JK())};
YI.prototype.getOwner=function(M){var z=_.av(this,40,_.ov,3,!0);Eob(z,M);return z[M]};
YI.prototype.getVersion=function(){return sD(this,45)};
var Ry=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ry,_.zA);_.Jr$=[0,dRH,$Re];_.Ria=[0,dRH,$Re];var DEJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DEJ,_.zA);var DC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DC,_.zA);DC.prototype.getStatus=function(){return _.yE(this,1)};
DC.prototype.removeItem=function(M){return JWb(this,2,M)};var Ni$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ni$,_.zA);Ni$.prototype.getName=function(){return _.hv(this,8)};var Nk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Nk,_.zA);Nk.prototype.getCommand=function(){return _.yE(this,1)};
Nk.prototype.getSource=function(){return _.DG(this,Ni$,2)};
Nk.prototype.setVisible=function(M){return _.gM(this,5,M)};
Nk.prototype.removeItem=function(M){return JWb(this,7,M)};var Ps2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ps2,_.zA);Ps2.prototype.getCommand=function(){return _.yE(this,1)};
Ps2.prototype.removeItem=function(M){return JWb(this,4,M)};
var SwQ=_.TA(Ps2);var PR=function(M,z,J){J=J===void 0?Error():J;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=M;z+=":";J instanceof Error?(this.message=z+J.message,this.stack=J.stack||""):(this.message=z+String(J),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(PR,Error);_.wS=function(){this.JSC$9501_disposed_=this.JSC$9501_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.wS.prototype.JSC$9501_disposed_=!1;_.wS.prototype.isDisposed=function(){return this.JSC$9501_disposed_};
_.wS.prototype.dispose=function(){this.JSC$9501_disposed_||(this.JSC$9501_disposed_=!0,this.disposeInternal())};
_.wS.prototype[Symbol.dispose]=function(){this.dispose()};
_.OC=function(M,z){M.addOnDisposeCallback(_.Uf(_.bv,z))};
_.wS.prototype.addOnDisposeCallback=function(M,z){this.JSC$9501_disposed_?z!==void 0?M.call(z):M():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),z&&(M=M.bind(z)),this.onDisposeCallbacks_.push(M))};
_.wS.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var SB=function(M){_.wS.call(this);this.wpc=M};
_.w(SB,_.wS);SB.prototype.orE=function(){return this.wpc.f()};
SB.prototype.rFS=function(M){return this.wpc.c(M)};
SB.prototype.zv=function(M){return this.wpc.m(mHc(M))};
SB.prototype.xN0=function(M){return this.wpc.mws(mHc(M))};
var M$=function(M){_.wS.call(this);var z=this;this.vm=M;this.jVy="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.euh=void 0;this.bCN=this.vm.p;this.vqi=this.rfx.bind(this);this.addOnDisposeCallback(function(){return void Z3S(z)})};
_.w(M$,_.wS);var kAg=function(M){var z;return _.k(function(J){if(J.nextAddress==1){if(!M.vm.wpc)throw new PR(30,"NWA");return M.tv8?J.return(M.tv8):J.yield(M.vm.wpc(),2)}z=J.yieldResult;M.tv8=new SB(z);return J.return(M.tv8)})};
M$.prototype.snapshot=function(M){return this.vm.s(Object.assign({},M.u0&&{c:M.u0},M.svO&&{s:M.svO},M.lgk!==void 0&&{p:M.lgk}))};
M$.prototype.rfx=function(M){this.vm.e(M)};
M$.prototype.xWN=function(M,z){return this.vm.c(M,z,!1)};
var Z3S=function(M){M.euh!==void 0&&(M.jVy.forEach(function(z){var J;(J=M.euh)==null||J.removeEventListener(z,M.vqi)}),M.euh=void 0)};
M$.prototype.dz8=function(){return this.vm.l()};var ZC=function(){_.wS.apply(this,arguments);this.utR=1};
_.w(ZC,_.wS);ZC.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.utR++;return this};
ZC.prototype.dispose=function(){--this.utR||_.wS.prototype.dispose.call(this)};var Big=function(M){this.ryT=M;M.addNewEventMetric("/client_streamz/bg/frs",_.P6("mk"))};
Big.prototype.record=function(M,z){this.ryT.record("/client_streamz/bg/frs",M,z)};
var O32=function(M){this.qzc=M;M.addNewEventMetric("/client_streamz/bg/wrl",_.P6("mn"),N$("ac"),N$("sc"),_.P6("rk"),_.P6("mk"))};
O32.prototype.record=function(M,z,J,R,D,N){this.qzc.record("/client_streamz/bg/wrl",M,z,J,R,D,N)};
var Tip=function(M){this.gDF=M;M.addNewCounter("/client_streamz/bg/ec",_.P6("en"),_.P6("mk"))};
Tip.prototype.increment=function(M,z){this.gDF.JSC$9754_incrementCounter("/client_streamz/bg/ec",M,z)};
var Idp=function(M){this.lQc=M;M.addNewEventMetric("/client_streamz/bg/el",_.P6("en"),_.P6("mk"))};
Idp.prototype.record=function(M,z,J){this.lQc.record("/client_streamz/bg/el",M,z,J)};
var oqV=function(M){this.mI1=M;M.addNewCounter("/client_streamz/bg/cec",N$("ec"),_.P6("mk"))};
oqV.prototype.increment=function(M,z){this.mI1.JSC$9754_incrementCounter("/client_streamz/bg/cec",M,z)};
var X4u=function(M){this.tb5=M;M.addNewCounter("/client_streamz/bg/po/csc",N$("cs"),_.P6("mk"))};
X4u.prototype.increment=function(M,z){this.tb5.JSC$9754_incrementCounter("/client_streamz/bg/po/csc",M,z)};
var ldt=function(M){this.b2w=M;M.addNewCounter("/client_streamz/bg/po/ctav",_.P6("av"),_.P6("mk"))};
ldt.prototype.increment=function(M,z){this.b2w.JSC$9754_incrementCounter("/client_streamz/bg/po/ctav",M,z)};
var eiv=function(M){this.elb=M;M.addNewCounter("/client_streamz/bg/po/cwsc",_.P6("su"),_.P6("mk"))};
eiv.prototype.increment=function(M,z){this.elb.JSC$9754_incrementCounter("/client_streamz/bg/po/cwsc",M,z)};var DCn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DCn,_.zA);var RVw=function(M,z){return _.Lw(M,3,z,Tge)};var QrQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(QrQ,_.zA);var UE$=[1,2,3];var vqv=[0,UE$,_.Vjp,urH,aHp];var GA$=[0,_.ro,[0,yW0,_.Ly]];var w4g=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(w4g,_.zA);var xE$=[1,2,3];var tqv=[0,xE$,Kke,HVG,_.Mo,GA$];var jrp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(jrp,_.zA);var p4S=[0,_.ro,vqv,tqv];var FA$=[0,_.Cy];var YwB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(YwB,_.zA);var mE$=[0,_.Cy,-1,_.iN];var gqu=[0,_.Cy,-1,_.Av,_.iN];var srp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(srp,_.zA);var nq2=[1,2,3];var hig=[0,nq2,_.Mo,mE$,_.Mo,gqu,_.Mo,FA$];var yrQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(yrQ,_.zA);yrQ.prototype.JSC$9574_serializeBinary=crn([0,_.Cy,hig,EA3,_.ro,p4S,qYw,Wkp]);var H3k=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(H3k,_.zA);var KAB=function(M){var z=new yrQ;z=_.G$(z,1,M.JSC$9690_metricName);var J=crQ(M);z=_.Lw(z,3,J,_.Bt);J=[];for(var R=[],D=_.S(M.cellMap.keys()),N=D.next();!N.done;N=D.next())R.push(N.value.split(","));for(D=0;D<R.length;D++){N=R[D];for(var Z=M.cellType,B=M.getCells(N)||[],O=[],X=0;X<B.length;X++){var l=B[X],e=l&&l.cellValue;l=new w4g;switch(Z){case 3:e=Number(e);Number.isFinite(e)&&of(l,1,xE$,NN(e));break;case 2:of(l,2,xE$,_.Wu(Number(e)))}O.push(l)}Z=O;for(B=0;B<Z.length;B++){O=Z[B];X=new jrp;O=_.or(X,
2,O);X=[];l=dEp(M);for(e=0;e<l.length;e++){var Q=l[e],v=N[e],x=new QrQ;switch(Q){case 3:of(x,1,UE$,O5(String(v)));break;case 2:Q=Number(v);Number.isFinite(Q)&&of(x,2,UE$,_.bJ(Q));break;case 1:of(x,3,UE$,ktp(v==="true"))}X.push(x)}FZ(O,1,X);J.push(O)}}FZ(z,4,J);return z};var $Ev=function(M){if(!M)return"";if(/^about:(?:blank|srcdoc)$/.test(M))return window.origin||"";M.indexOf("blob:")===0&&(M=M.substring(5));M=M.split("#")[0].split("?")[0];M=M.toLowerCase();M.indexOf("//")==0&&(M=window.location.protocol+M);/^[\w\-]*:\/\//.test(M)||(M=window.location.href);var z=M.substring(M.indexOf("://")+3),J=z.indexOf("/");J!=-1&&(z=z.substring(0,J));J=M.substring(0,M.indexOf("://"));if(!J)throw Error("qa`"+M);if(J!=="http"&&J!=="https"&&J!=="chrome-extension"&&J!=="moz-extension"&&
J!=="file"&&J!=="android-app"&&J!=="chrome-search"&&J!=="chrome-untrusted"&&J!=="chrome"&&J!=="app"&&J!=="devtools")throw Error("ra`"+J);M="";var R=z.indexOf(":");if(R!=-1){var D=z.substring(R+1);z=z.substring(0,R);if(J==="http"&&D!=="80"||J==="https"&&D!=="443")M=":"+D}return J+"://"+z+M};var qwv=function(M,z,J){var R=String(_.R3.location.href);return R&&M&&z?[z,uqv($Ev(R),M,J||null)].join(" "):null},uqv=function(M,z,J){var R=[],D=[];
if((Array.isArray(J)?2:1)==1)return D=[z,M],_.VU(R,function(B){D.push(B)}),WAt(D.join(" "));
var N=[],Z=[];_.VU(J,function(B){Z.push(B.key);N.push(B.value)});
J=Math.floor((new Date).getTime()/1E3);D=N.length==0?[J,z,M]:[N.join(":"),J,z,M];_.VU(R,function(B){D.push(B)});
M=WAt(D.join(" "));M=[J,M];Z.length==0||M.push(Z.join(""));return M.join("_")},WAt=function(M){var z=dHH();
z.update(M);return z.digestString().toLowerCase()};var ks=function(M){this.JSC$9585_document_=M||{cookie:""}},adV;
_.P=ks.prototype;_.P.isEnabled=function(){if(!_.R3.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.P.set=function(M,z,J){var R=!1;if(typeof J==="object"){var D=J.sameSite;R=J.secure||!1;var N=J.domain||void 0;var Z=J.path||void 0;var B=J.maxAge}if(/[;=\s]/.test(M))throw Error("sa`"+M);if(/[;\r\n]/.test(z))throw Error("ta`"+z);B===void 0&&(B=-1);J=N?";domain="+N:"";Z=Z?";path="+Z:"";R=R?";secure":"";B=B<0?"":B==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+B*1E3)).toUTCString();this.JSC$9585_document_.cookie=M+"="+z+J+Z+B+R+(D!=null?";samesite="+D:"")};
_.P.get=function(M,z){for(var J=M+"=",R=(this.JSC$9585_document_.cookie||"").split(";"),D=0,N;D<R.length;D++){N=o3(R[D]);if(N.lastIndexOf(J,0)==0)return N.slice(J.length);if(N==M)return""}return z};
_.P.remove=function(M,z,J){var R=this.containsKey(M);this.set(M,"",{maxAge:0,path:z,domain:J});return R};
_.P.getKeys=function(){return adV(this).keys};
_.P.getValues=function(){return adV(this).values};
_.P.isEmpty=function(){return!this.JSC$9585_document_.cookie};
_.P.getCount=function(){return this.JSC$9585_document_.cookie?(this.JSC$9585_document_.cookie||"").split(";").length:0};
_.P.containsKey=function(M){return this.get(M)!==void 0};
_.P.containsValue=function(M){for(var z=adV(this).values,J=0;J<z.length;J++)if(z[J]==M)return!0;return!1};
_.P.clear=function(){for(var M=adV(this).keys,z=M.length-1;z>=0;z--)this.remove(M[z])};
adV=function(M){M=(M.JSC$9585_document_.cookie||"").split(";");for(var z=[],J=[],R,D,N=0;N<M.length;N++)D=o3(M[N]),R=D.indexOf("="),R==-1?(z.push(""),J.push(D)):(z.push(D.substring(0,R)),J.push(D.substring(R+1)));return{keys:z,values:J}};
_.Qy=new ks(typeof document=="undefined"?null:document);var zTH,Vq2;zTH=function(){var M=_.R3.__SAPISID||_.R3.__APISID||_.R3.__3PSAPISID||_.R3.__1PSAPISID||_.R3.__OVERRIDE_SID;if(M)return!0;typeof document!=="undefined"&&(M=new ks(document),M=M.get("SAPISID")||M.get("APISID")||M.get("__Secure-3PAPISID")||M.get("__Secure-1PAPISID"));return!!M};
Vq2=function(M,z,J,R){(M=_.R3[M])||typeof document==="undefined"||(M=(new ks(document)).get(z));return M?qwv(M,J,R):null};
_.aE8=function(M){var z=$Ev(_.R3==null?void 0:_.R3.location.href),J=[];if(zTH()){z=z.indexOf("https:")==0||z.indexOf("chrome-extension:")==0||z.indexOf("chrome-untrusted://new-tab-page")==0||z.indexOf("moz-extension:")==0;var R=z?_.R3.__SAPISID:_.R3.__APISID;R||typeof document==="undefined"||(R=new ks(document),R=R.get(z?"SAPISID":"APISID")||R.get("__Secure-3PAPISID"));(R=R?qwv(R,z?"SAPISIDHASH":"APISIDHASH",M):null)&&J.push(R);z&&((z=Vq2("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",M))&&J.push(z),
(M=Vq2("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",M))&&J.push(M))}return J.length==0?null:J.join(" ")};var EqQ=function(){this.minSize=1024};
EqQ.prototype.compress=function(M){var z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return z=new CompressionStream("gzip"),J=(new Response(z.readable)).arrayBuffer(),R=z.writable.getWriter(),N.yield(R.write((new TextEncoder).encode(M)),2);case 2:return N.yield(R.close(),3);case 3:return D=Uint8Array,N.yield(J,4);case 4:return N.return(new D(N.yieldResult))}})};
EqQ.prototype.isSupported=function(M){return M<this.minSize?!1:typeof CompressionStream!=="undefined"};var fdt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(fdt,_.zA);var BR=function(M,z){this.intervalMs=M;this.callback=z;this.enabled=!1;this.nowFn=function(){return _.Ss()};
this.lastTimeMs=this.nowFn()};
BR.prototype.setInterval=function(M){this.intervalMs=M;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
BR.prototype.start=function(){var M=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){M.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
BR.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
BR.prototype.tick=function(){var M=this;if(this.enabled){var z=Math.max(this.nowFn()-this.lastTimeMs,0);z<this.intervalMs*.8?this.timer=setTimeout(function(){M.tick()},this.intervalMs-z):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var LAu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(LAu,_.zA);var Art=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Art,_.zA);var i3u=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(i3u,_.zA);i3u.prototype.getTransmissionType=function(){return _.yE(this,1)};var qRR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(qRR,_.zA);qRR.prototype.getVersion=function(){return _.hv(this,2)};var Oe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Oe,_.zA);var uTe=function(M){FZ(WFw,1,M)};
Oe.prototype.getModel=function(){return _.hv(this,6)};
var Csk=_.TA(Oe);var b32=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(b32,_.zA);var KFR=["platform","platformVersion","architecture","model","uaFullVersion"],WFw=new Oe,$Hp=null;var TQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(TQ,_.zA);var rru=function(M){return _.Nc(M,1,1)};var MX$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,4)};
_.w(MX$,_.zA);_.Iy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,36)};
_.w(_.Iy,_.zA);_.Iy.prototype.getExperimentIds=function(){return _.DG(this,fdt,16)};var znv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,19)};
_.w(znv,_.zA);znv.prototype.setLogSource=function(M){return _.Nc(this,2,M)};
znv.prototype.setScheduler=function(M){return _.Nc(this,10,M)};var RnS=function(M,z){this.isServiceWorkerScope=z=z===void 0?!1:z;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new znv;Number.isInteger(M)&&this.logRequest.setLogSource(M);z||(this.locale=document.documentElement.getAttribute("lang"));JGJ(this,new TQ)};
RnS.prototype.setLogSource=function(M){this.logRequest.setLogSource(M);return this};
var JGJ=function(M,z){_.or(M.logRequest,1,z);_.yE(z,1)||rru(z);M.isServiceWorkerScope||(z=oy(M),_.hv(z,5)||_.G$(z,5,M.locale));M.uach&&(z=oy(M),_.DG(z,Oe,9)||_.or(z,9,M.uach))},DyS=function(M,z){M.transmissionType=z},NVV=function(M){var z=z===void 0?KFR:z;
var J=M.isServiceWorkerScope?void 0:hA();J?aNY(J,z).then(function(R){M.uach=Csk(R!=null?R:"[]");R=oy(M);_.or(R,9,M.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},oy=function(M){var z=_.DG(M.logRequest,TQ,1);
z||(z=new TQ,JGJ(M,z));M=z;z=_.DG(M,b32,11);z||(z=new b32,_.or(M,11,z));return z};
RnS.prototype.build=function(M,z,J,R,D,N){z=z===void 0?0:z;J=J===void 0?0:J;R=R===void 0?null:R;D=D===void 0?0:D;N=N===void 0?0:N;if(!this.isServiceWorkerScope){var Z=oy(this);var B=new i3u;B=_.Nc(B,1,this.transmissionType);B=_.SJ(B,2,this.isFinal);J=_.$I(B,3,J>0?J:void 0);J=_.$I(J,4,D>0?D:void 0);J=_.$I(J,5,N>0?N:void 0);D=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=D[_.NB]|0;J=Tt(J,N)?J:wt8(J,D,N)?Gc3(J,D):new J.constructor(hi(D,N,!0));_.or(Z,10,J)}Z=this.logRequest.clone();J=Date.now().toString();
Z=_.PI(Z,4,NN(J));M=M.slice();M=FZ(Z,3,M);R&&(Z=new LAu,R=_.$I(Z,13,R),Z=new Art,R=_.or(Z,2,R),Z=new MX$,R=_.or(Z,1,R),R=_.Nc(R,2,9),_.or(M,18,R));z&&_.GF(M,14,z);return M};Z0.prototype.currBackoffCount_=0;Z0.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Z0.prototype.getValue=function(){return this.currValue_};
var PYa=function(M){M.currBaseValue_=Math.min(M.maxValue_,M.currBaseValue_*M.backoffFactor_);M.currValue_=Math.min(M.maxValue_,M.currBaseValue_+(M.randomFactor_?Math.round(M.randomFactor_*(Math.random()-.5)*2*M.currBaseValue_):0));M.currBackoffCount_++};var Cqn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,8)};
_.w(Cqn,_.zA);var SIu=_.TA(Cqn);var bVb=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(bVb,_.zA);var Xp;Xp=new rWw;var lH=function(M){_.wS.call(this);var z=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9663_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$9663_sendBeaconApiEnabled=!1;this.logSource=M.logSource;this.getAuthHeaderValue=
M.getAuthHeaderValue||function(){};
this.logRequestBuilder=new RnS(M.logSource,M.isServiceWorkerScope);this.network=M.network||null;this.productID=M.productID||null;this.bufferSize=1E3;this.clearcutUrl=M.urlOverride||null;this.sessionIndex=M.sessionIndex||null;this.disableAutomaticFlush=M.disableAutomaticFlush||!1;this.withCredentials=!M.disableWithCredentials;this.isServiceWorkerScope=M.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!hA()&&!!hA().navigator&&hA().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(ZSt())).searchParams&&!!(new URL(ZSt())).searchParams.set;var J=rru(new TQ);JGJ(this.logRequestBuilder,J);this.flushBackoff=new Z0(1E4,3E5,.1);M=kTt(this,M.backgroundJobDeferrer);this.JSC$9663_flushTimer=new BR(this.flushBackoff.getValue(),M);this.backupTimer=new BR(6E5,M);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){BVa(z);
var R;(R=z.metalogService)==null||R.flush()}}),document.addEventListener("pagehide",function(){BVa(z);
var R;(R=z.metalogService)==null||R.flush()}))};
_.w(lH,_.wS);var kTt=function(M,z){return M.isBrowserSupported?z?function(){z().then(function(){M.flush()})}:function(){M.flush()}:function(){}};
lH.prototype.disposeInternal=function(){BVa(this);this.JSC$9663_flushTimer.stop();this.backupTimer.stop();_.wS.prototype.disposeInternal.call(this)};
var OS$=function(M){M.clearcutUrl||(M.clearcutUrl=ZSt());try{return(new URL(M.clearcutUrl)).toString()}catch(z){return(new URL(M.clearcutUrl,hA().location.origin)).toString()}};
lH.prototype.dispatch=function(M){if(M instanceof _.Iy)this.log(M);else try{var z=new _.Iy,J=M.serialize();var R=_.G$(z,8,J);this.log(R)}catch(D){eB(this,4,1)}};
var eB=function(M,z,J){M.metalogService&&M.metalogService.increment(z,J)};
lH.prototype.log=function(M){eB(this,2,1);if(this.isBrowserSupported){M=M.clone();var z=this.sequencePosition++;M=_.GF(M,21,z);this.componentId&&_.G$(M,26,this.componentId);z=M;if(gp8(_.Gj(z,1))==null){var J=Date.now();J=Number.isFinite(J)?J.toString():"0";_.PI(z,1,NN(J))}_.mB8(_.Gj(z,15))!=null||_.GF(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(J=this.experimentIds.clone(),_.or(z,16,J));eB(this,1,1);z=this.pendingEvents.length-this.bufferSize+1;z>0&&(this.pendingEvents.splice(0,z),
this.numLogsDroppedSinceLastFlush+=z,eB(this,3,z));this.pendingEvents.push(M);this.disableAutomaticFlush||this.JSC$9663_flushTimer.enabled||this.JSC$9663_flushTimer.start()}};
lH.prototype.flush=function(M,z){var J=this;if(this.pendingEvents.length===0)M&&M();else if(this.JSC$9663_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,TVQ(this);else{var R=Date.now();if(this.noFlushUntilMs>R&&this.startWaitingMs<R)z&&z("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?DyS(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var D=this.pendingEvents.length,
N=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Z=this.getAuthHeaderValue();if(Z&&this.lastFailedAuth===Z)z&&z("stale-auth-token");else{this.pendingEvents=[];this.JSC$9663_flushTimer.enabled&&this.JSC$9663_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;R=N.serialize();var B;this.JSC$9663_compressor&&this.JSC$9663_compressor.isSupported(R.length)&&
(B=this.JSC$9663_compressor.compress(R));var O=IDQ(this,R,Z),X=function(Q){J.flushBackoff.reset();J.JSC$9663_flushTimer.setInterval(J.flushBackoff.getValue());if(Q){var v=null;try{var x=JSON.stringify(JSON.parse(Q.replace(")]}'\n","")));v=SIu(x)}catch(m){}v&&(Q=Number(sD(v,1,_.hS("-1"))),Q>0&&(J.startWaitingMs=Date.now(),J.noFlushUntilMs=J.startWaitingMs+Q),bvH(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Xp.fieldIndex),ivc(v,Xp.fieldIndex),v=Xp.ctor?Xp.getExtensionFn(v,Xp.ctor,Xp.fieldIndex,
Xp.JSC$8843_hasMessageId):Xp.getExtensionFn(v,Xp.fieldIndex,null,Xp.JSC$8843_hasMessageId),v=v===null?void 0:v)&&(v=_.R2(v,1,-1),v!==-1&&(J.flushBackoff=new Z0(v<1?1:v,3E5,.1),J.JSC$9663_flushTimer.setInterval(J.flushBackoff.getValue())))}M&&M();J.numRetriesSinceLastSuccessfulFlush=0},l=function(Q,v){var x=_.zz(N,_.Iy,3,_.JK());
var m=Number(sD(N,14));PYa(J.flushBackoff);J.JSC$9663_flushTimer.setInterval(J.flushBackoff.getValue());Q===401&&Z&&(J.lastFailedAuth=Z);m&&(J.numLogsDroppedSinceLastFlush+=m);v===void 0&&(v=J.isRetryable(Q));v&&(J.pendingEvents=x.concat(J.pendingEvents),J.disableAutomaticFlush||J.JSC$9663_flushTimer.enabled||J.JSC$9663_flushTimer.start());eB(J,7,1);z&&z("net-send-failed",Q);++J.numRetriesSinceLastSuccessfulFlush},e=function(){J.network&&J.network.send(O,X,l)};
B?B.then(function(Q){eB(J,5,D);O.requestHeaders["Content-Encoding"]="gzip";O.requestHeaders["Content-Type"]="application/binary";O.body=Q;O.bodyType=2;e()},function(){eB(J,6,D);
e()}):e()}}}};
var IDQ=function(M,z,J){J=J===void 0?null:J;var R=R===void 0?M.withCredentials:R;var D={},N=new URL(OS$(M));J&&(D.Authorization=J);M.sessionIndex&&(D["X-Goog-AuthUser"]=M.sessionIndex,N.searchParams.set("authuser",M.sessionIndex));M.pageId&&(Object.defineProperty(D,"X-Goog-PageId",{value:M.pageId}),N.searchParams.set("pageId",M.pageId));return{url:N.toString(),body:z,bodyType:1,requestHeaders:D,requestType:"POST",withCredentials:R,timeoutMillis:M.timeoutMillis}},BVa=function(M){M.logRequestBuilder.isFinal=
!0;
M.flush();M.logRequestBuilder.isFinal=!1},TVQ=function(M){oj$(M,function(z,J){z=new URL(z);
z.searchParams.set("format","json");var R=!1;try{R=hA().navigator.sendBeacon(z.toString(),J.serialize())}catch(D){}R||(M.isSendBeaconSupported=!1);return R})},oj$=function(M,z){if(M.pendingEvents.length!==0){var J=new URL(OS$(M));
J.searchParams.delete("format");var R=M.getAuthHeaderValue();R&&J.searchParams.set("auth",R);J.searchParams.set("authuser",M.sessionIndex||"0");for(R=0;R<10&&M.pendingEvents.length;++R){var D=M.pendingEvents.slice(0,32),N=M.logRequestBuilder.build(D,M.numLogsDroppedSinceLastFlush,M.numRetriesSinceLastSuccessfulFlush,M.productID,M.persistedLogRecoveredCount,M.persistedLogExpiredCount);if(!z(J.toString(),N)){++M.numRetriesSinceLastSuccessfulFlush;break}M.numLogsDroppedSinceLastFlush=0;M.numRetriesSinceLastSuccessfulFlush=
0;M.persistedLogRecoveredCount=0;M.persistedLogExpiredCount=0;M.pendingEvents=M.pendingEvents.slice(D.length)}M.JSC$9663_flushTimer.enabled&&M.JSC$9663_flushTimer.stop()}};
lH.prototype.isRetryable=function(M){return 500<=M&&M<600||M===401||M===0};
var ZSt=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Xya=function(){this.abortSupported=typeof AbortController!=="undefined"};
Xya.prototype.send=function(M,z,J){var R=this,D,N,Z,B,O,X,l,e,Q,v;return _.k(function(x){switch(x.nextAddress){case 1:return N=(D=R.abortSupported?new AbortController:void 0)?setTimeout(function(){D.abort()},M.timeoutMillis):void 0,_.Io(x,2,3),Z=Object.assign({},{method:M.requestType,
headers:Object.assign({},M.requestHeaders)},M.body&&{body:M.body},M.withCredentials&&{credentials:"include"},{signal:M.timeoutMillis&&D?D.signal:null}),x.yield(fetch(M.url,Z),5);case 5:B=x.yieldResult;if(B.status!==200){(O=J)==null||O(B.status);x.jumpTo(3);break}if((X=z)==null){x.jumpTo(7);break}return x.yield(B.text(),8);case 8:X(x.yieldResult);case 7:case 3:_.X4(x);clearTimeout(N);_.eX(x,0);break;case 2:l=_.Qa(x);switch((e=l)==null?void 0:e.name){case "AbortError":(Q=J)==null||Q(408);break;default:(v=
J)==null||v(400)}x.jumpTo(3)}})};
Xya.prototype.getTransmissionType=function(){return 4};_.B6=function(M,z){z=z===void 0?"0":z;_.wS.call(this);this.logSource=M;this.sessionIndex=z;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9681_clearExperimentIds=this.productID=null;this.JSC$9681_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.w(_.B6,_.wS);var Mze=function(M,z){M.buildLabel=z;return M},rgp=function(M,z){M.network=z;
return M},JFY=function(M,z){M.JSC$9681_clearExperimentIds=z},bhc=function(M){M.JSC$9681_sendBeaconApiEnabled=!0;
return M};
_.B6.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.B6.prototype.build=function(){this.network||(this.network=new Xya);var M=new lH({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.aE8,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.OC(this,M);if(this.buildLabel){var z=this.buildLabel,J=
oy(M.logRequestBuilder);_.G$(J,7,z)}M.JSC$9663_compressor=new EqQ;this.componentId&&(M.componentId=this.componentId);this.productID&&(M.productID=this.productID);this.pageId&&(M.pageId=this.pageId);this.JSC$9681_clearExperimentIds&&((J=this.JSC$9681_clearExperimentIds)?(M.experimentIds||(M.experimentIds=new fdt),z=M.experimentIds,J=J.serialize(),_.G$(z,4,J)):M.experimentIds&&_.PI(M.experimentIds,4));this.JSC$9681_sendBeaconApiEnabled&&(M.JSC$9663_sendBeaconApiEnabled=M.isSendBeaconSupported);NVV(M.logRequestBuilder);
this.bufferSize&&(M.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(M);return M};var NQe=function(M,z,J,R,D,N,Z){M=M===void 0?-1:M;z=z===void 0?"":z;J=J===void 0?"":J;R=R===void 0?!1:R;D=D===void 0?"":D;_.wS.call(this);this.logSource=M;this.componentId=z;N?z=N:(M=new _.B6(M,"0"),M.componentId=z,_.OC(this,M),J!==""&&(M.destinationUrl=J),R&&(M.serviceWorkerScopeEnabled=!0),D&&Mze(M,D),Z&&rgp(M,Z),z=M.build());this.JSC$9685_transport=z};
_.w(NQe,_.wS);NQe.prototype.flush=function(M){M=M||[];if(M.length){for(var z=new H3k,J=[],R=0;R<M.length;R++){var D=M[R],N=KAB(D);J.push(N);D.clear()}FZ(z,1,J);this.JSC$9685_transport.dispatch(z);this.JSC$9685_transport.flush()}};var lDJ=function(M){this.cellValue=M};var QB=function(M,z,J){this.JSC$9690_metricName=M;this.cellType=z;this.fields=J||[];this.cellMap=new Map},dEp=function(M){return M.fields.map(function(z){return z.fieldType})},crQ=function(M){return M.fields.map(function(z){return z.fieldName})};
_.P=QB.prototype;_.P.addCell=function(M){var z=_.H4.apply(1,arguments),J=this.getCells(z);J?J.push(new lDJ(M)):this.JSC$9690_setCell(M,z)};
_.P.JSC$9690_setCell=function(M){var z=this.JSC$9690_getKey(_.H4.apply(1,arguments));this.cellMap.set(z,[new lDJ(M)])};
_.P.getCells=function(){var M=this.JSC$9690_getKey(_.H4.apply(0,arguments));return this.cellMap.has(M)?this.cellMap.get(M):void 0};
_.P.getCell=function(){var M=this.getCells(_.H4.apply(0,arguments));return M&&M.length?M[0]:void 0};
_.P.clear=function(){this.cellMap.clear()};
_.P.JSC$9690_getKey=function(){var M=_.H4.apply(0,arguments);return M?M.join(","):"key"};var enS=function(M,z){QB.call(this,M,3,z)};
_.w(enS,QB);enS.prototype.JSC$9693_incrementCounterBy=function(M){var z=_.H4.apply(1,arguments),J=0,R=this.getCell(z);R&&(J=R.cellValue);this.JSC$9690_setCell(J+M,z)};var Qo2=function(M,z){QB.call(this,M,2,z)};
_.w(Qo2,QB);Qo2.prototype.record=function(M){this.addCell(M,_.H4.apply(1,arguments))};_.Ue=function(M){this.id=M};
_.Ue.prototype.toString=function(){return this.id};_.vR=function(M,z){this.type=M instanceof _.Ue?String(M):M;this.currentTarget=this.target=z;this.defaultPrevented=this.propagationStopped_=!1};
_.vR.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.vR.prototype.preventDefault=function(){this.defaultPrevented=!0};_.GQ=function(M,z){_.vR.call(this,M?M.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;M&&this.init(M,z)};
_.ZP(_.GQ,_.vR);
_.GQ.prototype.init=function(M,z){var J=this.type=M.type,R=M.changedTouches&&M.changedTouches.length?M.changedTouches[0]:null;this.target=M.target||M.srcElement;this.currentTarget=z;z=M.relatedTarget;z||(J=="mouseover"?z=M.fromElement:J=="mouseout"&&(z=M.toElement));this.relatedTarget=z;R?(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0):(this.offsetX=_.oJ||M.offsetX!==void 0?M.offsetX:M.layerX,
this.offsetY=_.oJ||M.offsetY!==void 0?M.offsetY:M.layerY,this.clientX=M.clientX!==void 0?M.clientX:M.pageX,this.clientY=M.clientY!==void 0?M.clientY:M.pageY,this.screenX=M.screenX||0,this.screenY=M.screenY||0);this.button=M.button;this.keyCode=M.keyCode||0;this.key=M.key||"";this.charCode=M.charCode||(J=="keypress"?M.keyCode:0);this.ctrlKey=M.ctrlKey;this.altKey=M.altKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pointerId=M.pointerId||0;this.pointerType=M.pointerType;this.state=M.state;
this.timeStamp=M.timeStamp;this.event_=M;M.defaultPrevented&&_.GQ.superClass_.preventDefault.call(this)};
_.GQ.prototype.stopPropagation=function(){_.GQ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.GQ.prototype.preventDefault=function(){_.GQ.superClass_.preventDefault.call(this);var M=this.event_;M.preventDefault?M.preventDefault():M.returnValue=!1};var Uyt="closure_listenable_"+(Math.random()*1E6|0),ws=function(M){return!(!M||!M[Uyt])};var vj$=0;var GT$=function(M,z,J,R,D){this.listener=M;this.proxy=null;this.src=z;this.type=J;this.capture=!!R;this.handler=D;this.key=++vj$;this.removed=this.callOnce=!1},wyQ=function(M){M.removed=!0;
M.listener=null;M.proxy=null;M.src=null;M.handler=null};kF.prototype.add=function(M,z,J,R,D){var N=M.toString();M=this.listeners[N];M||(M=this.listeners[N]=[],this.typeCount_++);var Z=xyk(M,z,R,D);Z>-1?(z=M[Z],J||(z.callOnce=!1)):(z=new GT$(z,this.src,N,!!R,D),z.callOnce=J,M.push(z));return z};
kF.prototype.remove=function(M,z,J,R){M=M.toString();if(!(M in this.listeners))return!1;var D=this.listeners[M];z=xyk(D,z,J,R);return z>-1?(wyQ(D[z]),_.xbH(D,z),D.length==0&&(delete this.listeners[M],this.typeCount_--),!0):!1};
var tXa=function(M,z){var J=z.type;if(!(J in M.listeners))return!1;var R=_.$o(M.listeners[J],z);R&&(wyQ(z),M.listeners[J].length==0&&(delete M.listeners[J],M.typeCount_--));return R};
kF.prototype.removeAll=function(M){M=M&&M.toString();var z=0,J;for(J in this.listeners)if(!M||J==M){for(var R=this.listeners[J],D=0;D<R.length;D++)++z,wyQ(R[D]);delete this.listeners[J];this.typeCount_--}return z};
kF.prototype.getListener=function(M,z,J,R){M=this.listeners[M.toString()];var D=-1;M&&(D=xyk(M,z,J,R));return D>-1?M[D]:null};
kF.prototype.hasListener=function(M,z){var J=M!==void 0,R=J?M.toString():"",D=z!==void 0;return _.gu.some(this.listeners,function(N){for(var Z=0;Z<N.length;++Z)if(!(J&&N[Z].type!=R||D&&N[Z].capture!=z))return!0;return!1})};
var xyk=function(M,z,J,R){for(var D=0;D<M.length;++D){var N=M[D];if(!N.removed&&N.listener==z&&N.capture==!!J&&N.handler==R)return D}return-1};var joS,pyv,FWu,my2,gjV,th,j5,hna,sot,njV,xs,yGk,YIV;joS="closure_lm_"+(Math.random()*1E6|0);pyv={};FWu=0;_.YS=function(M,z,J,R,D){if(R&&R.once)return th(M,z,J,R,D);if(Array.isArray(z)){for(var N=0;N<z.length;N++)_.YS(M,z[N],J,R,D);return null}J=YIV(J);return ws(M)?M.listen(z,J,_.E8(R)?!!R.capture:!!R,D):my2(M,z,J,!1,R,D)};
my2=function(M,z,J,R,D,N){if(!z)throw Error("va");var Z=_.E8(D)?!!D.capture:!!D,B=xs(M);B||(M[joS]=B=new kF(M));J=B.add(z,J,R,Z,N);if(J.proxy)return J;R=gjV();J.proxy=R;R.src=M;R.listener=J;if(M.addEventListener)_.Fu0||(D=Z),D===void 0&&(D=!1),M.addEventListener(z.toString(),R,D);else if(M.attachEvent)M.attachEvent(sot(z.toString()),R);else if(M.addListener&&M.removeListener)M.addListener(R);else throw Error("wa");FWu++;return J};
gjV=function(){var M=njV,z=function(J){return M.call(z.src,z.listener,J)};
return z};
th=function(M,z,J,R,D){if(Array.isArray(z)){for(var N=0;N<z.length;N++)th(M,z[N],J,R,D);return null}J=YIV(J);return ws(M)?M.listenOnce(z,J,_.E8(R)?!!R.capture:!!R,D):my2(M,z,J,!0,R,D)};
_.tQ=function(M,z,J,R,D){if(Array.isArray(z))for(var N=0;N<z.length;N++)_.tQ(M,z[N],J,R,D);else R=_.E8(R)?!!R.capture:!!R,J=YIV(J),ws(M)?M.unlisten(z,J,R,D):M&&(M=xs(M))&&(z=M.getListener(z,J,R,D))&&j5(z)};
j5=function(M){if(typeof M==="number"||!M||M.removed)return!1;var z=M.src;if(ws(z))return tXa(z.eventTargetListeners_,M);var J=M.type,R=M.proxy;z.removeEventListener?z.removeEventListener(J,R,M.capture):z.detachEvent?z.detachEvent(sot(J),R):z.addListener&&z.removeListener&&z.removeListener(R);FWu--;(J=xs(z))?(tXa(J,M),J.typeCount_==0&&(J.src=null,z[joS]=null)):wyQ(M);return!0};
hna=function(M,z,J,R,D){J=YIV(J);R=!!R;return ws(M)?M.getListener(z,J,R,D):M?(M=xs(M))?M.getListener(z,J,R,D):null:null};
sot=function(M){return M in pyv?pyv[M]:pyv[M]="on"+M};
njV=function(M,z){if(M.removed)M=!0;else{z=new _.GQ(z,this);var J=M.listener,R=M.handler||M.src;M.callOnce&&j5(M);M=J.call(R,z)}return M};
xs=function(M){M=M[joS];return M instanceof kF?M:null};
yGk="__closure_events_fn_"+(Math.random()*1E9>>>0);YIV=function(M){if(typeof M==="function")return M;M[yGk]||(M[yGk]=function(z){return M.handleEvent(z)});
return M[yGk]};_.jB=function(){_.wS.call(this);this.eventTargetListeners_=new kF(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.ZP(_.jB,_.wS);_.jB.prototype[Uyt]=!0;_.P=_.jB.prototype;_.P.setParentEventTarget=function(M){this.parentEventTarget_=M};
_.P.addEventListener=function(M,z,J,R){_.YS(this,M,z,J,R)};
_.P.removeEventListener=function(M,z,J,R){_.tQ(this,M,z,J,R)};
_.P.dispatchEvent=function(M){var z,J=this.parentEventTarget_;if(J)for(z=[];J;J=J.parentEventTarget_)z.push(J);J=this.actualEventTarget_;var R=M.type||M;if(typeof M==="string")M=new _.vR(M,J);else if(M instanceof _.vR)M.target=M.target||J;else{var D=M;M=new _.vR(R,J);_.gu.extend(M,D)}D=!0;var N;if(z)for(N=z.length-1;!M.propagationStopped_&&N>=0;N--){var Z=M.currentTarget=z[N];D=HSk(Z,R,!0,M)&&D}M.propagationStopped_||(Z=M.currentTarget=J,D=HSk(Z,R,!0,M)&&D,M.propagationStopped_||(D=HSk(Z,R,!1,M)&&
D));if(z)for(N=0;!M.propagationStopped_&&N<z.length;N++)Z=M.currentTarget=z[N],D=HSk(Z,R,!1,M)&&D;return D};
_.P.disposeInternal=function(){_.jB.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.P.listen=function(M,z,J,R){return this.eventTargetListeners_.add(String(M),z,!1,J,R)};
_.P.listenOnce=function(M,z,J,R){return this.eventTargetListeners_.add(String(M),z,!0,J,R)};
_.P.unlisten=function(M,z,J,R){return this.eventTargetListeners_.remove(String(M),z,J,R)};
_.P.removeAllListeners=function(M){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(M):0};
var HSk=function(M,z,J,R){z=M.eventTargetListeners_.listeners[String(z)];if(!z)return!0;z=z.concat();for(var D=!0,N=0;N<z.length;++N){var Z=z[N];if(Z&&!Z.removed&&Z.capture==J){var B=Z.listener,O=Z.handler||Z.src;Z.callOnce&&tXa(M.eventTargetListeners_,Z);D=B.call(O,R)!==!1&&D}}return D&&!R.defaultPrevented};
_.jB.prototype.getListener=function(M,z,J,R){return this.eventTargetListeners_.getListener(String(M),z,J,R)};
_.jB.prototype.hasListener=function(M,z){return this.eventTargetListeners_.hasListener(M!==void 0?String(M):void 0,z)};var ps=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(M){return M&&AsyncContext.Snapshot.wrap(M)}:function(M){return M};var cG2=function(M,z){this.create_=M;this.reset_=z;this.occupants_=0;this.JSC$9725_head_=null};
cG2.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var M=this.JSC$9725_head_;this.JSC$9725_head_=M.next;M.next=null}else M=this.create_();return M};
cG2.prototype.put=function(M){this.reset_(M);this.occupants_<100&&(this.occupants_++,M.next=this.JSC$9725_head_,this.JSC$9725_head_=M)};var dyB=function(){this.workTail_=this.workHead_=null};
dyB.prototype.add=function(M,z){var J=Eyo.get();J.set(M,z);this.workTail_?this.workTail_.next=J:this.workHead_=J;this.workTail_=J};
dyB.prototype.remove=function(){var M=null;this.workHead_&&(M=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),M.next=null);return M};
var Eyo=new cG2(function(){return new KWa},function(M){return M.reset()}),KWa=function(){this.next=this.scope=this.fn=null};
KWa.prototype.set=function(M,z){this.fn=M;this.scope=z;this.next=null};
KWa.prototype.reset=function(){this.next=this.scope=this.fn=null};var $y$,fNo,Vfe,u4t;fNo=!1;Vfe=new dyB;_.Fp=function(M,z){$y$||u4t();fNo||($y$(),fNo=!0);Vfe.add(M,z)};
u4t=function(){var M=Promise.resolve(void 0);$y$=function(){M.then(LFb)}};var qI$=function(M){M.prototype.$goog_Thenable=!0},WWg=function(M){if(!M)return!1;
try{return!!M.$goog_Thenable}catch(z){return!1}};var aDa,VXp,Eju,LWp,AGQ,iSS,MUB,RDV,Sa2,Nuk,Dg3;_.If=function(M,z){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(M!=_.xi)try{var J=this;M.call(z,function(R){J.resolve_(2,R)},function(R){J.resolve_(3,R)})}catch(R){this.resolve_(3,R)}};
aDa=function(){this.next=this.context=this.JSC$9736_onRejected=this.JSC$9736_onFulfilled=this.child=null;this.always=!1};
aDa.prototype.reset=function(){this.context=this.JSC$9736_onRejected=this.JSC$9736_onFulfilled=this.child=null;this.always=!1};
VXp=new cG2(function(){return new aDa},function(M){M.reset()});
Eju=function(M,z,J){var R=VXp.get();R.JSC$9736_onFulfilled=M;R.JSC$9736_onRejected=z;R.context=J;return R};
_.Of=function(M){if(M instanceof _.If)return M;var z=new _.If(_.xi);z.resolve_(2,M);return z};
_.gv=function(M){return new _.If(function(z,J){J(M)})};
LWp=function(M,z,J){fD$(M,z,J,null)||_.Fp(_.Uf(z,M))};
_.Ys=function(M){return new _.If(function(z,J){var R=M.length,D=[];if(R)for(var N=function(X,l){R--;D[X]=l;R==0&&z(D)},Z=function(X){J(X)},B,O=0;O<M.length;O++)B=M[O],LWp(B,_.Uf(N,O),Z);
else z(D)})};
AGQ=function(M){return new _.If(function(z){var J=M.length,R=[];if(J)for(var D=function(B,O,X){J--;R[B]=O?{fulfilled:!0,value:X}:{fulfilled:!1,reason:X};J==0&&z(R)},N,Z=0;Z<M.length;Z++)N=M[Z],LWp(N,_.Uf(D,Z,!0),_.Uf(D,Z,!1));
else z(R)})};
iSS=function(M){return new _.If(function(z,J){var R=M.length,D=[];if(R)for(var N=function(X){z(X)},Z=function(X,l){R--;
D[X]=l;R==0&&J(D)},B,O=0;O<M.length;O++)B=M[O],LWp(B,N,_.Uf(Z,O));
else z(void 0)})};
_.Ln=function(){var M,z,J=new _.If(function(R,D){M=R;z=D});
return new CYS(J,M,z)};
_.If.prototype.then=function(M,z,J){return bS$(this,ps(typeof M==="function"?M:null),ps(typeof z==="function"?z:null),J)};
qI$(_.If);MUB=function(M,z,J,R){rGp(M,Eju(z||_.xi,J||null,R))};
_.mi=function(M,z){z=ps(z);z=Eju(z,z);z.always=!0;rGp(M,z);return M};
_.If.prototype.finally=function(M){var z=this;M=ps(M);return new _.If(function(J,R){MUB(z,function(D){M();J(D)},function(D){M();
R(D)})})};
_.If.prototype.thenCatch=function(M,z){return bS$(this,null,ps(M),z)};
_.If.prototype.catch=_.If.prototype.thenCatch;_.If.prototype.cancel=function(M){if(this.state_==0){var z=new _.q9(M);_.Fp(function(){zDu(this,z)},this)}};
var zDu=function(M,z){if(M.state_==0)if(M.parent_){var J=M.parent_;if(J.callbackEntries_){for(var R=0,D=null,N=null,Z=J.callbackEntries_;Z&&(Z.always||(R++,Z.child==M&&(D=Z),!(D&&R>1)));Z=Z.next)D||(N=Z);D&&(J.state_==0&&R==1?zDu(J,z):(N?(R=N,R.next==J.callbackEntriesTail_&&(J.callbackEntriesTail_=R),R.next=R.next.next):JA$(J),RDV(J,D,3,z)))}M.parent_=null}else M.resolve_(3,z)},rGp=function(M,z){M.callbackEntries_||M.state_!=2&&M.state_!=3||Dx$(M);
M.callbackEntriesTail_?M.callbackEntriesTail_.next=z:M.callbackEntries_=z;M.callbackEntriesTail_=z},bS$=function(M,z,J,R){var D=Eju(null,null,null);
D.child=new _.If(function(N,Z){D.JSC$9736_onFulfilled=z?function(B){try{var O=z.call(R,B);N(O)}catch(X){Z(X)}}:N;
D.JSC$9736_onRejected=J?function(B){try{var O=J.call(R,B);O===void 0&&B instanceof _.q9?Z(B):N(O)}catch(X){Z(X)}}:Z});
D.child.parent_=M;rGp(M,D);return D.child};
_.If.prototype.unblockAndFulfill_=function(M){this.state_=0;this.resolve_(2,M)};
_.If.prototype.unblockAndReject_=function(M){this.state_=0;this.resolve_(3,M)};
_.If.prototype.resolve_=function(M,z){this.state_==0&&(this===z&&(M=3,z=new TypeError("xa")),this.state_=1,fD$(z,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=z,this.state_=M,this.parent_=null,Dx$(this),M!=3||z instanceof _.q9||Nuk(this,z)))};
var fD$=function(M,z,J,R){if(M instanceof _.If)return MUB(M,z,J,R),!0;if(WWg(M))return M.then(z,J,R),!0;if(_.E8(M))try{var D=M.then;if(typeof D==="function")return Pv2(M,D,z,J,R),!0}catch(N){return J.call(R,N),!0}return!1},Pv2=function(M,z,J,R,D){var N=!1,Z=function(O){N||(N=!0,J.call(D,O))},B=function(O){N||(N=!0,R.call(D,O))};
try{z.call(M,Z,B)}catch(O){B(O)}},Dx$=function(M){M.executing_||(M.executing_=!0,_.Fp(M.executeCallbacks_,M))},JA$=function(M){var z=null;
M.callbackEntries_&&(z=M.callbackEntries_,M.callbackEntries_=z.next,z.next=null);M.callbackEntries_||(M.callbackEntriesTail_=null);return z};
_.If.prototype.executeCallbacks_=function(){for(var M;M=JA$(this);)RDV(this,M,this.state_,this.result_);this.executing_=!1};
RDV=function(M,z,J,R){if(J==3&&z.JSC$9736_onRejected&&!z.always)for(;M&&M.hadUnhandledRejection_;M=M.parent_)M.hadUnhandledRejection_=!1;if(z.child)z.child.parent_=null,Sa2(z,J,R);else try{z.always?z.JSC$9736_onFulfilled.call(z.context):Sa2(z,J,R)}catch(D){Dg3.call(null,D)}VXp.put(z)};
Sa2=function(M,z,J){z==2?M.JSC$9736_onFulfilled.call(M.context,J):M.JSC$9736_onRejected&&M.JSC$9736_onRejected.call(M.context,J)};
Nuk=function(M,z){M.hadUnhandledRejection_=!0;_.Fp(function(){M.hadUnhandledRejection_&&Dg3.call(null,z)})};
Dg3=Dc;_.q9=function(M){_.Mb.call(this,M)};
_.ZP(_.q9,_.Mb);_.q9.prototype.name="cancel";var CYS=function(M,z,J){this.promise=M;this.resolve=z;this.reject=J};var gs;_.NI=function(M,z){_.jB.call(this);this.JSC$9748_interval_=M||1;this.timerObject_=z||_.R3;this.boundTick_=(0,_.xF)(this.tick_,this);this.last_=_.Ss()};
_.ZP(_.NI,_.jB);_.P=_.NI.prototype;_.P.enabled=!1;_.P.JSC$9750_timer_=null;_.P.setInterval=function(M){this.JSC$9748_interval_=M;this.JSC$9750_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9750_timer_&&this.stop()};
_.P.tick_=function(){if(this.enabled){var M=_.Ss()-this.last_;M>0&&M<this.JSC$9748_interval_*.8?this.JSC$9750_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9748_interval_-M):(this.JSC$9750_timer_&&(this.timerObject_.clearTimeout(this.JSC$9750_timer_),this.JSC$9750_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.P.start=function(){this.enabled=!0;this.JSC$9750_timer_||(this.JSC$9750_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9748_interval_),this.last_=_.Ss())};
_.P.stop=function(){this.enabled=!1;this.JSC$9750_timer_&&(this.timerObject_.clearTimeout(this.JSC$9750_timer_),this.JSC$9750_timer_=null)};
_.P.disposeInternal=function(){_.NI.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
gs=function(M,z,J){if(typeof M==="function")J&&(M=(0,_.xF)(M,J));else if(M&&typeof M.handleEvent=="function")M=(0,_.xF)(M.handleEvent,M);else throw Error("ya");return Number(z)>2147483647?-1:_.R3.setTimeout(M,z||0)};
_.ZOV=function(M){var z=null;return(new _.If(function(J,R){z=gs(function(){J(void 0)},M);
z==-1&&R(Error("za"))})).thenCatch(function(J){_.R3.clearTimeout(z);
throw J;})};var Tz=function(M){_.wS.call(this);this.streamzLogger=M;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9754_flushTimer=new _.NI(this.flushInterval);this.JSC$9754_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.OC(this,this.JSC$9754_flushTimer)};
_.w(Tz,_.wS);Tz.prototype.sendIsolatedPayload=function(M){this.shouldSendIsolatedPayload=M;this.invocationLimit=1};
var k$t=function(M){M.JSC$9754_flushTimer.enabled||M.JSC$9754_flushTimer.start();M.invocationCount++;M.invocationCount>=M.invocationLimit&&M.snapshotAndFlush()};
Tz.prototype.snapshotAndFlush=function(){var M=this.metricMap.values();M=[].concat(_.Yj(M)).filter(function(z){return z.cellMap.size});
M.length&&this.streamzLogger.flush(M,this.shouldSendIsolatedPayload);BuV(M);this.invocationCount=0;this.JSC$9754_flushTimer.enabled&&this.JSC$9754_flushTimer.stop()};
Tz.prototype.addNewCounter=function(M){var z=_.H4.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new enS(M,z))};
Tz.prototype.addNewEventMetric=function(M){var z=_.H4.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new Qo2(M,z))};
var OOv=function(M,z){return M.disabledMetrics.has(z)?void 0:M.metricMap.get(z)};
Tz.prototype.JSC$9754_incrementCounter=function(M){this.JSC$9754_incrementCounterBy(M,1,_.H4.apply(1,arguments))};
Tz.prototype.JSC$9754_incrementCounterBy=function(M,z){var J=_.H4.apply(2,arguments),R=OOv(this,M);R&&R instanceof enS&&(R.JSC$9693_incrementCounterBy(z,J),k$t(this))};
Tz.prototype.record=function(M,z){var J=_.H4.apply(2,arguments),R=OOv(this,M);R&&R instanceof Qo2&&(R.record(z,J),k$t(this))};
var BuV=function(M){for(var z=0;z<M.length;z++)M[z].clear()};_.se=function(M,z,J){J=J===void 0?{}:J;z=Error.call(this,z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=M;this.metadata=J;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(_.se,Error);_.se.prototype.toString=function(){var M="RpcError("+(ih3(this.code)||String(this.code))+")";this.message&&(M+=": "+this.message);return M};_.TuV=_.R3.JSON.parse;_.ns=_.R3.JSON.stringify;_.m4=_.R3.JSON.parse;_.Iot=function(M){switch(M){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var org=function(M){switch(M){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var XjJ,loV=function(){};
_.ZP(loV,_.Ci8);loV.prototype.createInstance=function(){return new XMLHttpRequest};
XjJ=new loV;_.hQ=function(M){_.jB.call(this);this.headers=new Map;this.JSC$9763_xmlHttpFactory_=M||null;this.JSC$9763_active_=!1;this.JSC$9763_xhr_=null;this.JSC$9763_lastUri_="";this.JSC$9763_lastErrorCode_=0;this.JSC$9763_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9763_timeoutId_=null;this.responseType_="";this.JSC$9763_withCredentials_=!1};
_.ZP(_.hQ,_.jB);var eDt=/^https?$/i,Q$p=["POST","PUT"],UxV=[],DhG=function(M,z,J,R,D,N,Z){var B=new _.hQ;UxV.push(B);z&&B.listen("complete",z);B.listenOnce("ready",B.cleanupSend_);N&&(B.timeoutInterval_=Math.max(0,N));Z&&(B.JSC$9763_withCredentials_=Z);B.send(M,J,R,D)};
_.hQ.prototype.cleanupSend_=function(){this.dispose();_.$o(UxV,this)};
_.hQ.prototype.send=function(M,z,J,R){if(this.JSC$9763_xhr_)throw Error("Aa`"+this.JSC$9763_lastUri_+"`"+M);z=z?z.toUpperCase():"GET";this.JSC$9763_lastUri_=M;this.JSC$9763_lastError_="";this.JSC$9763_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9763_active_=!0;this.JSC$9763_xhr_=this.createXhr();this.JSC$9763_xhr_.onreadystatechange=ps((0,_.xF)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9763_xhr_.open(z,String(M),!0),this.inOpen_=!1}catch(Z){vr$(this,Z);return}M=J||"";J=new Map(this.headers);
if(R)if(Object.getPrototypeOf(R)===Object.prototype)for(var D in R)J.set(D,R[D]);else if(typeof R.keys==="function"&&typeof R.get==="function"){D=_.S(R.keys());for(var N=D.next();!N.done;N=D.next())N=N.value,J.set(N,R.get(N))}else throw Error("Ba`"+String(R));R=Array.from(J.keys()).find(function(Z){return"content-type"==Z.toLowerCase()});
D=_.R3.FormData&&M instanceof _.R3.FormData;!_.Kp(Q$p,z)||R||D||J.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");z=_.S(J);for(R=z.next();!R.done;R=z.next())J=_.S(R.value),R=J.next().value,J=J.next().value,this.JSC$9763_xhr_.setRequestHeader(R,J);this.responseType_&&(this.JSC$9763_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9763_xhr_&&this.JSC$9763_xhr_.withCredentials!==this.JSC$9763_withCredentials_&&(this.JSC$9763_xhr_.withCredentials=this.JSC$9763_withCredentials_);
try{this.JSC$9763_timeoutId_&&(clearTimeout(this.JSC$9763_timeoutId_),this.JSC$9763_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9763_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9763_xhr_.send(M),this.inSend_=!1}catch(Z){vr$(this,Z)}};
_.hQ.prototype.createXhr=function(){return this.JSC$9763_xmlHttpFactory_?this.JSC$9763_xmlHttpFactory_.createInstance():XjJ.createInstance()};
_.hQ.prototype.timeout_=function(){typeof Hi8!="undefined"&&this.JSC$9763_xhr_&&(this.JSC$9763_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9763_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var vr$=function(M,z){M.JSC$9763_active_=!1;M.JSC$9763_xhr_&&(M.inAbort_=!0,M.JSC$9763_xhr_.abort(),M.inAbort_=!1);M.JSC$9763_lastError_=z;M.JSC$9763_lastErrorCode_=5;G$V(M);wj2(M)},G$V=function(M){M.errorDispatched_||(M.errorDispatched_=!0,M.dispatchEvent("complete"),M.dispatchEvent("error"))};
_.hQ.prototype.abort=function(M){this.JSC$9763_xhr_&&this.JSC$9763_active_&&(this.JSC$9763_active_=!1,this.inAbort_=!0,this.JSC$9763_xhr_.abort(),this.inAbort_=!1,this.JSC$9763_lastErrorCode_=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),wj2(this))};
_.hQ.prototype.disposeInternal=function(){this.JSC$9763_xhr_&&(this.JSC$9763_active_&&(this.JSC$9763_active_=!1,this.inAbort_=!0,this.JSC$9763_xhr_.abort(),this.inAbort_=!1),wj2(this,!0));_.hQ.superClass_.disposeInternal.call(this)};
_.hQ.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)xxV(this);else this.onReadyStateChangeEntryPoint_()};
_.hQ.prototype.onReadyStateChangeEntryPoint_=function(){xxV(this)};
var xxV=function(M){if(M.JSC$9763_active_&&typeof Hi8!="undefined")if(M.inSend_&&_.yB(M)==4)setTimeout(M.onReadyStateChange_.bind(M),0);else if(M.dispatchEvent("readystatechange"),M.isComplete()){M.JSC$9763_active_=!1;try{if(M.isSuccess())M.dispatchEvent("complete"),M.dispatchEvent("success");else{M.JSC$9763_lastErrorCode_=6;try{var z=_.yB(M)>2?M.JSC$9763_xhr_.statusText:""}catch(J){z=""}M.JSC$9763_lastError_=z+" ["+M.getStatus()+"]";G$V(M)}}finally{wj2(M)}}},wj2=function(M,z){if(M.JSC$9763_xhr_){M.JSC$9763_timeoutId_&&
(clearTimeout(M.JSC$9763_timeoutId_),M.JSC$9763_timeoutId_=null);
var J=M.JSC$9763_xhr_;M.JSC$9763_xhr_=null;z||M.dispatchEvent("ready");try{J.onreadystatechange=null}catch(R){}}};
_.hQ.prototype.isActive=function(){return!!this.JSC$9763_xhr_};
_.hQ.prototype.isComplete=function(){return _.yB(this)==4};
_.hQ.prototype.isSuccess=function(){var M=this.getStatus(),z;if(!(z=org(M))){if(M=M===0)M=ptp(String(this.JSC$9763_lastUri_)),M=!eDt.test(M);z=M}return z};
_.yB=function(M){return M.JSC$9763_xhr_?M.JSC$9763_xhr_.readyState:0};
_.P=_.hQ.prototype;_.P.getStatus=function(){try{return _.yB(this)>2?this.JSC$9763_xhr_.status:-1}catch(M){return-1}};
_.P.getResponseText=function(){try{return this.JSC$9763_xhr_?this.JSC$9763_xhr_.responseText:""}catch(M){return""}};
_.P.getResponse=function(){try{if(!this.JSC$9763_xhr_)return null;if("response"in this.JSC$9763_xhr_)return this.JSC$9763_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9763_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9763_xhr_)return this.JSC$9763_xhr_.mozResponseArrayBuffer}return null}catch(M){return null}};
_.P.getAllResponseHeaders=function(){return this.JSC$9763_xhr_&&_.yB(this)>=2?this.JSC$9763_xhr_.getAllResponseHeaders()||"":""};
_.P.getLastError=function(){return typeof this.JSC$9763_lastError_==="string"?this.JSC$9763_lastError_:String(this.JSC$9763_lastError_)};var zVb=function(){};
zVb.prototype.send=function(M,z,J){z=z===void 0?function(){}:z;
J=J===void 0?function(){}:J;
DhG(M.url,function(R){R=R.target;R.isSuccess()?z(R.getResponseText()):J(R.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)};
zVb.prototype.getTransmissionType=function(){return 1};var tUQ=function(M,z){this.oD1=M;this.event=z;this.startTime=I2()},S7H;
tUQ.prototype.done=function(){this.oD1.cV(this.event,I2()-this.startTime)};
var HR=function(){ZC.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.w(HR,ZC);_.cR=function(M,z,J){var R=I2();z=z();M.cV(J,I2()-R);return z};
S7H=function(){HR.apply(this,arguments)};
_.w(S7H,HR);_.P=S7H.prototype;_.P.eW2=function(){};
_.P.jV=function(){};
_.P.cV=function(){};
_.P.logError=function(){};
_.P.yS=function(){};
_.P.kAR=function(){};
_.P.z42=function(){};
_.P.sd8=function(){};
var j$J=function(M){HR.call(this);var z=this;this.s9=M;this.TEST_ONLY={zrj:function(){return z.s9},
getExperimentIds:function(){return z.s9.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void z.s9.dispose()})};
_.w(j$J,HR);_.P=j$J.prototype;_.P.update=function(M){this.s9.dispose();this.s9=M};
_.P.jV=function(M){this.s9.jV(M)};
_.P.cV=function(M,z){this.s9.cV(M,z)};
_.P.logError=function(M){this.s9.logError(M)};
_.P.yS=function(){this.s9.yS()};
_.P.kAR=function(M){this.s9.kAR(M)};
_.P.z42=function(M){this.s9.z42(M)};
_.P.sd8=function(M){this.s9.sd8(M)};
_.P.eW2=function(M){this.s9.eW2(M)};
var pju=function(M,z){_.wS.call(this);var J=this;this.callback=M;this.uRB=z;this.qtk=-z;this.addOnDisposeCallback(function(){return void clearTimeout(J.timer)})};
_.w(pju,_.wS);var Fa2=function(M){if(M.timer===void 0){var z=Math.max(0,M.qtk+M.uRB-I2());M.timer=setTimeout(function(){try{M.callback()}finally{M.qtk=I2(),M.timer=void 0}},z)}},Yaa=function(M,z){HR.call(this);
this.metrics=M;this.lR=z};
_.w(Yaa,HR);_.P=Yaa.prototype;_.P.eW2=function(M){this.metrics.dBj.record(M,this.lR)};
_.P.jV=function(M){this.metrics.eventCount.increment(M,this.lR)};
_.P.cV=function(M,z){this.metrics.lhB.record(z,M,this.lR)};
_.P.logError=function(M){this.metrics.errorCount.increment(M,this.lR)};
_.P.kAR=function(M){this.metrics.dzv.increment(M,this.lR)};
_.P.z42=function(M){this.metrics.aM8.increment(M,this.lR)};
_.P.sd8=function(M){this.metrics.kVj.increment(M,this.lR)};
var ZKY=function(M,z){z=z===void 0?[]:z;var J={lR:M.lR||"_",cCr:M.cCr||[],a0Q:M.a0Q|0,destinationUrl:M.destinationUrl,q1y:M.q1y||function(){},
psR:M.psR||function(N,Z){return P9p(N,Z,J.q1y,J.destinationUrl)}},R=J.psR("51",J.cCr.concat(z));
Yaa.call(this,{dBj:new Big(R),errorCount:new oqV(R),eventCount:new Tip(R),lhB:new Idp(R),ySj:new O32(R),dzv:new X4u(R),aM8:new ldt(R),kVj:new eiv(R)},J.lR);var D=this;this.TEST_ONLY={getExperimentIds:function(){return D.options.cCr.concat(D.rNF).sort(function(N,Z){return N-Z})}};
this.options=J;this.service=R;this.uN1=!M.psR;this.flushDebouncer=new pju(function(){return void D.service.snapshotAndFlush()},J.a0Q);
this.addOnDisposeCallback(function(){D.flushDebouncer.dispose();D.uN1&&D.service.dispose()});
(this.rNF=z.slice()).sort(_.Fwp)};
_.w(ZKY,Yaa);ZKY.prototype.yS=function(){Fa2(this.flushDebouncer)};var $lH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w($lH,_.zA);_.uOo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(_.uOo,_.zA);var Em=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,0,Em.messageId)};
_.w(Em,_.zA);var mxV=_.dEo(Em);Em.messageId="bfkj";var hLY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(hLY,_.zA);var grk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(grk,_.zA);var s$p=_.TA(grk);_.Iz=function(){var M=this;this.promise=new Promise(function(z,J){M.resolve=z;M.reject=J})};_.ds=function(M){_.wS.call(this);var z=this;this.fyF=Math.floor(Math.random()*200);this.fKN=new grk;if("challenge"in M&&mxV(M.challenge)){var J=_.hv(M.challenge,4,void 0,m$);var R=_.hv(M.challenge,5,void 0,m$);_.hv(M.challenge,7,void 0,m$)&&(this.fKN=s$p(_.hv(M.challenge,7,void 0,m$)))}else J=M.program,R=M.globalName;this.addOnDisposeCallback(function(){var x,m,y;return _.k(function(H){if(H.nextAddress==1)return H.yield(z.kI0,2);x=H.yieldResult;m=x.hD3;(y=m)==null||y();_.UI(H)})});
this.qu=kw8(M.wmR||{},this.fKN);_.OC(this,this.qu);var D=new _.Iz;this.kI0=D.promise;this.qu.jV("t");var N=this.qu.share(),Z=new tUQ(N,"t"),B=function(x,m,y,H){if(!z.qu.isDisposed()){var q="k";m?q="h":y&&(q="u");q!=="k"?H!==0&&(z.qu.jV(q),z.qu.cV(q,x)):z.fyF<=0?(z.qu.jV(q),z.qu.cV(q,x),z.fyF=Math.floor(Math.random()*200)):z.fyF--}},O=function(x,m,y,H){Promise.resolve().then(function(){Z.done();
N.yS();N.dispose();D.resolve({hXL:x,hD3:m,cLa:y,l96:H})})};
if(!_.R3[R])throw this.qu.logError(25),Error("Ca");if(!_.R3[R].a)throw this.qu.logError(26),Error("Da");try{var X=_.R3[R].a;R=[];for(var l=[],e=yg8(this.fKN),Q=0;Q<e.length;Q++)R.push(e[Q]),l.push(1);var v=Hh8(this.fKN);for(e=0;e<v.length;e++)R.push(v[e]),l.push(2);this.rRv=_.S(X(J,O,!0,M.c65,B,[R,l],_.hv(this.fKN,5))).next().value;this.bCN=D.promise.then(function(){})}catch(x){throw this.qu.logError(28),x;
}};
_.w(_.ds,_.wS);_.ds.prototype.snapshot=function(M){if(this.isDisposed())throw Error("Ea");this.qu.jV("n");var z=this.qu.share();return this.kI0.then(function(J){var R=J.hXL;return new Promise(function(D){var N=new tUQ(z,"n");R(function(Z){N.done();z.eW2(Z.length);z.yS();z.dispose();D(Z)},[M.u0,
M.svO,M.m5b,M.lgk])})})};
_.ds.prototype.rfx=function(M){this.kI0.then(function(z){var J;(J=z.cLa)==null||J(M)})};
_.ds.prototype.xWN=function(M,z){return this.kI0.then(function(J){var R;return(R=J.l96)==null?void 0:R(M,z,!1)})};
_.ds.prototype.dz8=function(){return this.qu.share()};var nrk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(nrk,_.zA);var i4p=_.dEo(nrk);var hDV=function(){this.promises={};this.saQ=null},yAV=function(){hDV.instance||(hDV.instance=new hDV);
return hDV.instance},cAa=function(M,z){return HOg(M,_.DG(z,$lH,1,m$),_.DG(z,_.uOo,2,m$),_.hv(z,3,void 0,m$))},HOg=function(M,z,J,R){if(!z&&!J)return Promise.resolve();
if(!R)return oNb(z,J);var D;(D=M.promises)[R]||(D[R]=new Promise(function(N,Z){oNb(z,J).then(function(){M.saQ=R;N()},function(B){delete M.promises[R];
Z(B)})}));
return M.promises[R]};var dxB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(dxB,_.zA);var Kap=function(M,z){return _.fr(M,1,z)},$xQ=function(M,z){return _.fr(M,2,z)};var Ks=function(M){_.wS.call(this);var z=this;this.options=M;this.gGR=new _.Iz;this.bCN=this.gGR.promise;this.wQR=new _.Iz;this.ciF=1;this.qdw=new _.Iz;this.fdf=[];this.at0=M.at0||function(){};
this.h2r=new j$J(kw8(M.wmR||{}));u3J(this,M.sC,M.mPR,M.oYM,M.mAP,Object.assign({},qaa,M.jB8||{}));this.addOnDisposeCallback(function(){return void Wa$(z)})};
_.w(Ks,_.wS);Ks.prototype.snapshot=function(M){var z=this;return _.k(function(J){switch(J.nextAddress){case 1:if(z.isDisposed())throw Error("Ea");if(z.h0||z.zuM){J.jumpTo(2);break}return J.yield(z.wQR.promise,2);case 2:if(!z.h0){J.jumpTo(4);break}return J.yield(z.h0.snapshot(M),5);case 5:return J.return(J.yieldResult);case 4:throw z.zuM;}})};
var aoa=function(M){var z;return _.k(function(J){if(M.isDisposed())throw Error("Ea");(z=M.fU)!=null&&(z.endTimeMs=0,z.resolver(1));return J.yield(M.qdw.promise,0)})},Wa$=function(M){M.zuM=Error("Ga");
M.wQR.resolve();cgn(M.gGR.promise);M.gGR.reject(Error("Ga"));M.h2r.dispose();Promise.all(M.fdf).then(function(){var J;return _.k(function(R){(J=M.h0)==null||J.dispose();M.h0=void 0;_.UI(R)})});
M.fdf=[];var z;(z=M.fU)!=null&&(z.endTimeMs=0,z.resolver(1));cgn(M.qdw.promise);M.qdw.reject(Error("Ga"))};
Ks.prototype.rfx=function(M){var z,J;(z=this.h0)==null||(J=z.rfx)==null||J.call(z,M)};
Ks.prototype.xWN=function(M,z){var J,R,D;return(D=(J=this.h0)==null?void 0:(R=J.xWN)==null?void 0:R.call(J,M,z))!=null?D:Promise.resolve()};
var VU$=function(M,z){var J=M.at0;M.at0=function(){J();z()}},ErS=function(M,z){M.isDisposed()||(M.h0=z,M.h2r.update(z.dz8()),M.wQR.resolve(),M.gGR.resolve(void 0),M.at0())};
Ks.prototype.handleError=function(M){if(!this.isDisposed()){this.zuM=M;this.wQR.resolve();var z,J;(J=(z=this.options).y8H)==null||J.call(z,M)}};
var foS=function(M,z){z&&(Promise.all(M.fdf).then(function(){return void z.dispose()}),M.fdf=[])},$s=function(M,z){M.ciF=z;
var J,R;(R=(J=M.options).g0j)==null||R.call(J,z)},LaJ=function(M){M.isDisposed()||(M.qdw.resolve(),M.qdw=new _.Iz)},u3J=function(M,z,J,R,D,N){R=R===void 0?yAV():R;
D=D===void 0?Promise.resolve(void 0):D;var Z,B,O,X,l,e,Q,v,x,m,y,H;_.k(function(q){switch(q.nextAddress){case 1:return q.yield(0,3);case 3:B=null;if(!Z){q.jumpTo(6);break}$s(M,7);_.Io(q,7);return q.yield(UC(Z.snapshot({}),N.xOw,function(){return Promise.resolve("E:CTO")}),9);
case 9:B=q.yieldResult;_.ab(q,6);break;case 7:_.Qa(q),B="E:UCE";case 6:O=void 0,X=Z?N.x18:N.nEL,l=new Z0(X,N.vEc,N.u0i,N.wzB),e=1;case 10:if(!(e<=N.maxAttempts)){q.jumpTo(12);break}if(e===1){q.jumpTo(13);break}$s(M,0);M.fU=new AA$(l.getValue(),N.ep5,N.duF);return q.yield(M.fU.promise,14);case 14:Q=q.yieldResult,M.fU=void 0,Q===1?(e=1,l.reset()):PYa(l);case 13:_.Io(q,15);v=void 0;if(J){v=J;q.jumpTo(17);break}$s(M,5);x=R.saQ;return q.yield(UC(iOV(z,x,B),N.uxT,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:v=q.yieldResult;case 17:return $s(M,3),q.yield(UC(cAa(R,v),N.we8,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return $s(M,8),q.yield(D,20);case 20:return m=new _.ds({challenge:v,wmR:M.options.wmR,c65:M.options.c65}),q.yield(UC(m.bCN,N.g6u,function(){return Promise.reject(Error("Ja"))}),21);
case 21:O=m;q.jumpTo(12);break;case 15:y=_.Qa(q),M.handleError(y),LaJ(M);case 11:e++;q.jumpTo(10);break;case 12:if(M.isDisposed()){q.jumpTo(5);break}O&&(J=void 0,foS(M,Z),Z=O,ErS(M,O),LaJ(M));$s(M,2);M.fU=new AA$(N.rzL,N.ep5,N.duF);return q.yield(M.fU.promise,22);case 22:M.fU=void 0;if(M.isDisposed()){q.jumpTo(5);break}q.jumpTo(3);break;case 5:(H=Z)==null||H.dispose(),_.UI(q)}})};
Ks.prototype.dz8=function(){return this.h2r.share()};
var qaa={rzL:432E5,ep5:3E5,duF:10,xOw:1E4,uxT:3E4,we8:3E4,g6u:6E4,nEL:1E3,x18:6E4,vEc:6E5,u0i:.25,wzB:2,maxAttempts:10},AA$=function(M,z,J){var R=this;this.endTimeMs=Date.now()+M;this.promise=new Promise(function(N){R.resolver=N});
var D=function(){var N=R.endTimeMs-Date.now();N<=J?R.resolver(0):setTimeout(D,Math.min(N,z))};
D()};var CvJ,yFY=(CvJ=Math.imul)!=null?CvJ:function(M,z){return M*z|0},v6=[196,
200,224,18],uH=function(M,z,J){J=J===void 0?[]:J;this.maxItems=M;this.ls=z===void 0?0:z;this.b9=J},bOk=function(M){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!z)return new uH(M);var J=z.split(",");if(J.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uH(M);z=J.slice(1);z.length===1&&z[0]===""&&(z=[]);J=Number(J[0]);return isNaN(J)||J<0||J>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uH(M)):new uH(M,J,z)};
uH.prototype.serialize=function(){return String(this.ls)+","+this.b9.join()};
uH.prototype.insert=function(M,z){var J=void 0;if(this.b9[this.ls]!==M){var R=this.b9.indexOf(M);R!==-1?(this.b9.splice(R,1),R<this.ls&&this.ls--,this.b9.splice(this.ls,0,M)):(J=this.b9[this.ls],this.b9[this.ls]=M)}this.ls=(this.ls+1)%this.maxItems;M=XJe("iU5q-!O9@$",this.serialize());J&&M&&z(J);return M};
var rAt=function(M,z){this.o8x=z;try{var J=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){J=!1}J&&(this.index=bOk(M))},MJB=function(M,z,J,R,D){var N=M.index?_.cR(M.o8x,function(){return Kop(M.index,cFY(z),J,R,D)},"W"):"u";
M.o8x.sd8(N)},zBv=function(M,z,J){var R=_.S(M.index?_.cR(M.o8x,function(){return $Ce(cFY(z),J)},"R"):["u"]),D=R.next().value;
R=R.next().value;M.o8x.z42(D);return R};var JKV={toString:function(M){var z=[],J=0;M-=-2147483648;z[J++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(M%52);for(M=Math.floor(M/52);M>0;)z[J++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return z.join("")}};var NS2=function(M){M=RBt(M);for(var z=2654435769,J=2654435769,R=314159265,D=M.length,N=D,Z=0,B=function(){z-=J;z-=R;z^=R>>>13;J-=R;J-=z;J^=z<<8;R-=z;R-=J;R^=J>>>13;z-=J;z-=R;z^=R>>>12;J-=R;J-=z;J^=z<<16;R-=z;R-=J;R^=J>>>5;z-=J;z-=R;z^=R>>>3;J-=R;J-=z;J^=z<<10;R-=z;R-=J;R^=J>>>15};N>=12;N-=12,Z+=12)z+=D$g(M,Z),J+=D$g(M,Z+4),R+=D$g(M,Z+8),B();
R+=D;switch(N){case 11:R+=M[Z+10]<<24;case 10:R+=M[Z+9]<<16;case 9:R+=M[Z+8]<<8;case 8:J+=M[Z+7]<<24;case 7:J+=M[Z+6]<<16;case 6:J+=M[Z+5]<<8;case 5:J+=M[Z+4];case 4:z+=M[Z+3]<<24;case 3:z+=M[Z+2]<<16;case 2:z+=M[Z+1]<<8;case 1:z+=M[Z]}B();return JKV.toString(R)},RBt=function(M){for(var z=[],J=0;J<M.length;J++)z.push(M.charCodeAt(J));
return z},D$g=function(M,z){return M[z]+(M[z+1]<<8)+(M[z+2]<<16)+(M[z+3]<<24)};var qk=function(M){_.wS.call(this);this.pQ=M;this.iXR=new _.Iz};
_.w(qk,_.wS);var Pma=function(M,z){var J=setTimeout(function(){M.iXR.resolve()},z);
M.addOnDisposeCallback(function(){return void clearTimeout(J)})};
qk.prototype.xN0=function(M,z){var J=this.zv(M);z==null||z(J);return _.cR(this.pQ,function(){return _.YG(J,2)},this.ca0)};
var SCa=function(M,z,J,R){return _.cR(M.pQ,function(){return J?M.xN0(z,R):M.zv(z,R)},M.nOE)},ZW$=function(M,z,J,R){qk.call(this,M);
this.gL5=z;this.moT=J;this.nOE="m";this.ca0="x";this.l58=0;Pma(this,R)};
_.w(ZW$,qk);ZW$.prototype.zv=function(M,z){var J=this;this.pQ.jV(this.nOE);++this.l58>=this.moT&&this.iXR.resolve();var R=M();M=_.cR(this.pQ,function(){return J.gL5(R)},"C");
if(M===void 0)throw new PR(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new PR(18,"ODM:Invalid");z==null||z(M);return M};
var kzS=function(M,z,J){qk.call(this,M);this.xh1=z;this.nOE="f";this.ca0="z";Pma(this,J)};
_.w(kzS,qk);kzS.prototype.zv=function(){return this.xh1};
var BSV=function(M,z,J){qk.call(this,M);this.tcw=z;this.nOE="w";this.ca0="z";Pma(this,J)};
_.w(BSV,qk);BSV.prototype.zv=function(){var M=this;return _.cR(this.pQ,function(){return _.Ae(M.tcw)},"d")};
BSV.prototype.xN0=function(){return this.tcw};
var OWv=function(M,z){qk.call(this,M);this.error=z;this.nOE="e";this.ca0="y"};
_.w(OWv,qk);var TS$=function(M,z){var J=(z(M.error.message)+":"+z(M.error.stack)).substring(0,2048);z=J.length+1;J=uhn(J);var R=new Uint8Array(4+J.length);R.set([42,z&127|128,z>>7,M.error.code]);R.set(J,4);return R};
OWv.prototype.zv=function(){if(this.i3o)return this.i3o;this.i3o=TS$(this,function(M){return"_"+NS2(M)});
return TS$(this,function(M){return M})};
var I0a=function(M,z,J){qk.call(this,M);this.yN8=z;this.clientState=J;this.nOE="S";this.ca0="q"};
_.w(I0a,qk);I0a.prototype.zv=function(){var M=Math.floor(Date.now()/1E3),z=[Math.random()*255,Math.random()*255],J=z.concat([this.yN8&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+J.length);M[0]=34;M[1]=J.length;M.set(J,2);J=M.subarray(2);for(var R=z=z.length;R<J.length;++R)J[R]^=J[R%z];this.pQ.kAR(this.clientState);return M};var oFu={qkB:3E4,iv3:2E4},WR=function(M){_.wS.call(this);var z=this;this.k18=new _.Iz;this.dNB=0;this.kq=void 0;this.state=2;this.vm=M.vm;this.sC=M.sC;this.jB8=Object.assign({},oFu,M.jB8||{});this.uR=M.vm.dz8();var J;this.onError=(J=M.onError)!=null?J:function(){};
this.jxR=M.jxR||!1;if(X62(M)){var R=this.vm;this.b2Q=function(){return aoa(R).catch(function(Z){Z=z.reportError(new PR(z.s3?20:32,"TRG:Disposed",Z));z.kq=Z;var B;(B=z.s3)==null||B.dispose();z.s3=void 0;z.k18.reject(Z)})};
VU$(R,function(){return void l0Q(z)});
R.ciF===2&&l0Q(this)}else this.b2Q=M.xkC,l0Q(this);var D=this.uR.share();D.jV("o");var N=new tUQ(D,"o");this.k18.promise.then(function(){N.done();D.yS();D.dispose()},function(){return void D.dispose()});
this.addOnDisposeCallback(function(){z.s3?(z.s3.dispose(),z.s3=void 0):z.kq?z.uR.yS():(z.kq=z.reportError(new PR(32,"TNP:Disposed")),z.uR.yS(),z.k18.reject(z.kq))});
_.OC(this,this.uR)};
_.w(WR,_.wS);WR.prototype.orE=function(){return this.k18.promise};
var eBv=function(M,z){if(!(z instanceof PR))if(z instanceof _.se){var J=Error(z.toString());J.stack=z.stack;z=new PR(11,"EBH:Error",J)}else z=new PR(12,"BSO:Unknown",z);return M.reportError(z)},l0Q=function(M){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m;
return _.k(function(y){switch(y.nextAddress){case 1:z=void 0;M.dNB++;J=new _.Iz;M.vm instanceof Ks&&M.vm.fdf.push(J.promise);if(!M.jxR){y.jumpTo(2);break}R=new _.Iz;setTimeout(function(){return void R.resolve()});
return y.yield(R.promise,2);case 2:return D=M.uR.share(),_.Io(y,4,5),M.state=5,N={},Z=[],y.yield(UC(M.vm.snapshot({u0:N,m5b:Z}),M.jB8.iv3,function(){return Promise.reject(new PR(15,"MDA:Timeout"))}),7);
case 7:B=y.yieldResult;if(M.isDisposed())throw new PR(M.s3?20:32,"MDA:Disposed");O=Z[0];M.state=6;return y.yield(UC(Q2S(M.sC,B),M.jB8.qkB,function(){return Promise.reject(new PR(10,"BWB:Timeout"))}),8);
case 8:X=y.yieldResult;if(M.isDisposed())throw new PR(M.s3?20:32,"BWB:Disposed");M.state=7;z=_.cR(D,function(){var q=U$a(M,X,J,O);q.iXR.promise.then(function(){return void M.b2Q()});
return q},"i");
case 5:_.X4(y);D.dispose();_.eX(y,6);break;case 4:l=_.Qa(y);(e=z)==null||e.dispose();if(!M.kq){Q=eBv(M,l);J.resolve();var H;if(H=M.vm instanceof Ks&&M.dNB<2)a:if(l instanceof PR)H=l.code!==32&&l.code!==20&&l.code!==10;else{if(l instanceof _.se)switch(l.code){case 2:case 13:case 14:case 4:break;default:H=!1;break a}H=!0}if(H)return v=(1+Math.random()*.25)*(M.s3?6E4:1E3),x=setTimeout(function(){return void M.b2Q()},v),M.addOnDisposeCallback(function(){return void clearTimeout(x)}),y.return();
M.kq=Q}D.logError(M.s3?13:14);M.k18.reject(M.kq);return y.return();case 6:M.state=8,M.dNB=0,(m=M.s3)==null||m.dispose(),M.s3=z,M.k18.resolve(),_.UI(y)}})},U$a=function(M,z,J,R){var D=R9p(z,2)*1E3;
if(D<=0)throw new PR(31,"TTM:Invalid");if(_.hv(z,4))return new BSV(M.uR,_.hv(z,4),D);if(!R9p(z,3))return new kzS(M.uR,$Xc(_.tv(z,1)),D);if(!R)throw new PR(4,"PMD:Undefined");R=R($Xc(_.tv(z,1)));if(!(R instanceof Function))throw new PR(16,"APF:Failed");M.wNR=Math.floor((Date.now()+D)/1E3);M=new ZW$(M.uR,R,R9p(z,3),D);M.addOnDisposeCallback(function(){return void J.resolve()});
return M};
WR.prototype.zv=function(M){return vF2(this,Object.assign({},M),!1)};
WR.prototype.xN0=function(M){return vF2(this,Object.assign({},M),!0)};
WR.prototype.rFS=function(M){if(M>150)return!1;try{return this.cache=new rAt(M,this.uR),!0}catch(z){return this.reportError(new PR(22,"GBJ:init",z)),!1}};
WR.prototype.reportError=function(M){this.uR.logError(M.code);this.onError(M);return M};
var GzQ=function(M,z){z=z instanceof PR?z:new PR(5,"TVD:error",z);return M.reportError(z)},vF2=function(M,z,J){try{if(M.isDisposed())throw new PR(21,"BNT:disposed");
if(!M.s3&&M.kq)throw M.kq;var R,D;return(D=(R=w6v(M,z,J))!=null?R:x$u(M,z,J))!=null?D:tJ$(M,z,J)}catch(N){if(!z.fxB)throw GzQ(M,N);return j2u(M,J,N)}},w6v=function(M,z,J){var R;
return(R=M.s3)==null?void 0:SCa(R,function(){return p62(M,z)},J,function(D){var N;
if(M.s3 instanceof ZW$&&((N=z.pD)==null?0:N.ug1))try{var Z;(Z=M.cache)==null||MJB(Z,p62(M,z),D,z.pD.rrm,M.wNR-120)}catch(B){M.reportError(new PR(24,"ELX:write",B))}})},x$u=function(M,z,J){var R;
if((R=z.pD)!=null&&R.c4F)try{var D,N=(D=M.cache)==null?void 0:zBv(D,p62(M,z),z.pD.rrm);return N?J?_.cR(M.uR,function(){return _.YG(N,2)},"a"):N:void 0}catch(Z){M.reportError(new PR(23,"RXO:read",Z))}},tJ$=function(M,z,J){var R={stack:[],
error:void 0,hasError:!1};try{if(!z.pMM)throw new PR(29,"SDF:notready");return SCa(qxn(R,new I0a(M.uR,0,M.state)),function(){return p62(M,z)},J)}catch(D){R.error=D,R.hasError=!0}finally{WjY(R)}},j2u=function(M,z,J){var R={stack:[],
error:void 0,hasError:!1};try{var D=GzQ(M,J);return SCa(qxn(R,new OWv(M.uR,D)),function(){return[]},z)}catch(N){R.error=N,R.hasError=!0}finally{WjY(R)}},p62=function(M,z){return z.rs2?z.rs2:z.u0?_.cR(M.uR,function(){return z.rs2=uhn(z.u0)},"c"):[]},X62=function(M){return nv(function(z){if(!Ma(z))return!1;
for(var J=_.S(Object.entries(M)),R=J.next();!R.done;R=J.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;if(!(R in z)){if(D.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!D(z[R]))return!1}return!0})}({vm:function(M){return nv(function(z){return z instanceof M})}(Ks)},"");var Fq2=function(){var M=_.kV();this.JSC$9881_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D0("cookie_enabled"),D0("cookie_3p_enabled"),_.P6("browser"))};
Fq2.prototype.increment=function(M,z,J){this.JSC$9881_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",M,z,J)};
var GP0=function(){var M=_.kV();this.JSC$9905_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",N$("tick"),D0("from_st_cookie"))};
GP0.prototype.increment=function(M,z){this.JSC$9905_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",M,z)};
var YC$=function(){var M=_.kV();this.JSC$9911_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.P6("status"))};
YC$.prototype.increment=function(M){this.JSC$9911_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",M)};
var m$$=function(){var M=_.kV();this.JSC$9914_streamzService=M;M.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.P6("stage"),D0("is_using_ytd_player"),D0("has_expandable_tiles"))};
m$$.prototype.increment=function(M,z,J){this.JSC$9914_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",M,z,J)};
var gFV=function(){var M=_.kV();this.JSC$9917_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/response_signature",_.P6("check_status"))};
gFV.prototype.increment=function(M){this.JSC$9917_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/web/response_signature",M)};
var s2$=function(){var M=_.kV();this.JSC$9920_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.P6("sig"),N$("de"))};
s2$.prototype.increment=function(M,z){this.JSC$9920_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/web/e_sig_log",M,z)};
var nF$=function(){var M=_.kV();this.JSC$9923_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.P6("sig"),N$("de"))};
nF$.prototype.increment=function(M,z){this.JSC$9923_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/web/e_sig_en",M,z)};
_.hB$=function(){var M=_.kV();this.JSC$9926_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.P6("action"))};
_.hB$.prototype.increment=function(M){this.JSC$9926_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/web/enforcement_intent",M)};var ay=window;var yKk=(new Date).getTime();_.gu.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.gu.createSet("action","cite","data","formaction","href","manifest","poster","src");var HWv=function(M){this.servicePromise_=M;M.then((0,_.xF)(function(){},this),function(){},this)},cK2=function(M,z,J){M.servicePromise_.then(function(R){var D=R[z];
if(!D)throw Error("Ka`"+z);return D.apply(R,J)})},$$p=function(M,z,J){for(var R=Array(arguments.length-2),D=2;D<arguments.length;D++)R[D-2]=arguments[D];
D=d$$(M,z).then(function(N){return N.apply(null,R)},function(N){N=Error("La`"+z+"`"+M,{cause:N});
delete Kqg[z];return _.gv(N)});
return new HWv(D)},Kqg={},d$$=function(M,z){var J=Kqg[z];
if(J)return J;J=(J=_.qH(z))?_.Of(J):(new _.If(function(R,D){var N=(new Yi(document)).createElement("SCRIPT");N.async=!0;_.is(N,_.wi(npp(M)));N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||R()};
N.onerror=function(Z){D(Error("Ma`"+z+"`"+M,{cause:Z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(N)})).then(function(){var R=_.qH(z);
if(!R)throw Error("Na`"+z+"`"+M);return R});
return Kqg[z]=J};var u_v={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},WqJ=function(){var M=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=q78(function(){return _.k(function(z){if(z.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?z.return(Promise.resolve()):z.yield(qCg(M),2);M.rsaForList.length>
0&&document.addEventListener("click",M.requestAccessForHelpPanel);_.UI(z)})});
this.requestAccessForHelpPanel=function(){if(!(M.rsaForPromises.length>0)){for(var z=_.S(M.rsaForList),J=z.next();!J.done;J=z.next()){J=J.value;try{M.rsaForPromises.push(document.requestStorageAccessFor(J))}catch(R){}}Promise.all(M.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){M.reset()})}}};
WqJ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var qCg=function(M){var z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:z=_.S(Object.values(u_v)),J=z.next();case 2:if(J.done){N.jumpTo(0);break}R=J.value;_.Io(N,5);return N.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:R}),7);case 7:D=N.yieldResult;D.state!=="granted"&&M.rsaForList.push(R);_.ab(N,3);break;case 5:_.Qa(N);N.jumpTo(0);break;case 3:J=z.next(),N.jumpTo(2)}})};(new WqJ).initialize();var a0$=function(M){this.JSC$9940_loader_=M};
a0$.prototype.startHelp=function(M){cK2(this.JSC$9940_loader_,"startHelp",arguments)};
a0$.prototype.JSC$9942_loadChatSupport=function(M){cK2(this.JSC$9940_loader_,"loadChatSupport",arguments)};
var EFt=function(M,z){z=z||{};M=$$p(VJB,"help.service.Lazy.create",M,{apiKey:z.apiKey||z.apiKey,asxUiUri:z.asxUiUri||z.asxUiUri,environment:z.environment||z.environment,flow:z.flow||z.flow,frdProductData:z.frdProductData||z.frdProductData,frdProductDataSerializedJspb:z.frdProductDataSerializedJspb||z.frdProductDataSerializedJspb,helpCenterPath:z.helpCenterPath||z.helpCenterPath,locale:z.locale||z.locale||"en-US".replace(/-/g,"_"),nonce:z.nonce||z.nonce,productData:z.productData||z.productData,receiverUri:z.receiverUri||
z.receiverUri,renderApiUri:z.renderApiUri||z.renderApiUri,theme:z.theme||z.theme,window:z.window||z.window});return new a0$(M)},VJB=new Kc(U63,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var f02=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(f02,_.zA);var Lqk=_.TA(f02);_.AKg=new function(M,z,J,R){this.configType=M;this.flagName=J;this.defaultValue=R;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 CmB=function(){this.retriever=_.JF().resolve(iW$)};aRw(Node);aRw(Element);var bWu=aRw(HTMLElement);aRw(SVGElement);var rKg,MP$,Ls,zSp;rKg=function(M){return typeof M.className=="string"?M.className:M.getAttribute&&M.getAttribute("class")||""};
MP$=function(M){return M.classList?M.classList:rKg(M).match(/\S+/g)||[]};
_.VB=function(M,z){typeof M.className=="string"?M.className=z:M.setAttribute&&M.setAttribute("class",z)};
_.Ee=function(M,z){return M.classList?M.classList.contains(z):_.Kp(MP$(M),z)};
_.M7=function(M,z){if(M.classList)M.classList.add(z);else if(!_.Ee(M,z)){var J=rKg(M);_.VB(M,J+(J.length>0?" "+z:z))}};
Ls=function(M,z){if(M.classList)Array.prototype.forEach.call(z,function(D){_.M7(M,D)});
else{var J={};Array.prototype.forEach.call(MP$(M),function(D){J[D]=!0});
Array.prototype.forEach.call(z,function(D){J[D]=!0});
z="";for(var R in J)z+=z.length>0?" "+R:R;_.VB(M,z)}};
_.b5=function(M,z){M.classList?M.classList.remove(z):_.Ee(M,z)&&_.VB(M,Array.prototype.filter.call(MP$(M),function(J){return J!=z}).join(" "))};
zSp=function(M,z){M.classList?Array.prototype.forEach.call(z,function(J){_.b5(M,J)}):_.VB(M,Array.prototype.filter.call(MP$(M),function(J){return!_.Kp(z,J)}).join(" "))};var JP2=function(M){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=M.document},NfS=function(M,z){RSk(M);
var J=document.createElement("div"),R;(R=z.parentNode)==null||R.insertBefore(J,z);J.tabIndex=0;J.id="fc-focus-trap-pre-div";J=document.createElement("div");var D;(D=z.parentNode)==null||D.insertBefore(J,z.nextSibling);J.tabIndex=0;J.id="fc-focus-trap-post-div";var N=Dag(M,z),Z=Dag(M,z,!0);N&&Z&&(M.focusChangeHandler=function(){var B=M.document.activeElement;if(B)if(_.dS(z,B))M.previouslyFocusedElement=B;else if(B===M.document.activeElement)switch(M.previouslyFocusedElement){case N:Z.focus();M.previouslyFocusedElement=
Z;break;default:N.focus(),M.previouslyFocusedElement=N}},M.document.addEventListener("focus",M.focusChangeHandler,!0),M.document.addEventListener("focusin",M.focusChangeHandler))},RSk=function(M){M.focusChangeHandler&&(document.removeEventListener("focus",M.focusChangeHandler,!0),document.removeEventListener("focusin",M.focusChangeHandler),M.focusChangeHandler=null);
var z;(z=document.getElementById("fc-focus-trap-pre-div"))==null||z.remove();var J;(J=document.getElementById("fc-focus-trap-post-div"))==null||J.remove()},P0v=function(M,z,J,R,D){J=J===void 0?!0:J;
var N;D=(N=D===void 0?null:D)!=null?N:Dag(M,z,R===void 0?!1:R);D!==null&&(D.focus(),J&&NfS(M,z))};
JP2.prototype.disableButton=function(M,z){z=z===void 0?null:z;M.disabled=!0;z&&_.M7(M,z)};
var Dag=function(M,z,J){J=J===void 0?!1:J;if(KKp(z)&&!J)return z;var R=J?[].slice.call(z.children,0).reverse():z.children;R=_.S(R);for(var D=R.next();!D.done;D=R.next())if(D=D.value,bWu(D)&&(D=Dag(M,D,J)))return D;return KKp(z)&&J?z:null};var SZ$=function(M){this.originalBodyOverflow="";this.JSC$9966_domHelper=vj(M)};
SZ$.prototype.enableScrolling=function(){this.JSC$9966_domHelper.JSC$9293_document_.body.style.overflow=this.originalBodyOverflow};_.ZP(_.tK,_.wS);_.P=_.tK.prototype;_.P.JSC$9969_id_=0;_.P.disposeInternal=function(){_.tK.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9967_listener_;delete this.handler_};
_.P.start=function(M){this.stop();this.JSC$9969_id_=gs(this.callback_,M!==void 0?M:this.JSC$9967_interval_)};
_.P.stop=function(){this.isActive()&&_.R3.clearTimeout(this.JSC$9969_id_);this.JSC$9969_id_=0};
_.P.fire=function(){this.stop();this.JSC$9969_doAction_()};
_.P.isActive=function(){return this.JSC$9969_id_!=0};
_.P.JSC$9969_doAction_=function(){this.JSC$9969_id_=0;this.JSC$9967_listener_&&this.JSC$9967_listener_.call(this.handler_)};_.Ps=function(M){_.wS.call(this);this.handler_=M;this.JSC$9970_keys_={}};
_.ZP(_.Ps,_.wS);var Zq$=[];_.Ps.prototype.listen=function(M,z,J,R){Array.isArray(z)||(z&&(Zq$[0]=z.toString()),z=Zq$);for(var D=0;D<z.length;D++){var N=_.YS(M,z[D],J||this.handleEvent,R||!1,this.handler_||this);if(!N)break;this.JSC$9970_keys_[N.key]=N}return this};
_.Ps.prototype.listenOnce=function(M,z,J,R){return kk$(this,M,z,J,R)};
var kk$=function(M,z,J,R,D,N){if(Array.isArray(J))for(var Z=0;Z<J.length;Z++)kk$(M,z,J[Z],R,D,N);else{z=th(z,J,R||M.handleEvent,D,N||M.handler_||M);if(!z)return M;M.JSC$9970_keys_[z.key]=z}return M};
_.Ps.prototype.unlisten=function(M,z,J,R,D){if(Array.isArray(z))for(var N=0;N<z.length;N++)this.unlisten(M,z[N],J,R,D);else if(M=hna(M,z,J||this.handleEvent,_.E8(R)?!!R.capture:!!R,D||this.handler_||this))j5(M),delete this.JSC$9970_keys_[M.key];return this};
_.Ps.prototype.removeAll=function(){_.gu.forEach(this.JSC$9970_keys_,function(M,z){this.JSC$9970_keys_.hasOwnProperty(z)&&j5(M)},this);
this.JSC$9970_keys_={}};
_.Ps.prototype.disposeInternal=function(){_.Ps.superClass_.disposeInternal.call(this);this.removeAll()};
_.Ps.prototype.handleEvent=function(){throw Error("Oa");};var AQ=function(){_.wS.call(this);this.services_={}};
_.ZP(AQ,_.wS);AQ.prototype.connect=function(M){M&&M()};
AQ.prototype.isConnected=function(){return!0};
AQ.prototype.registerService=function(M,z,J){this.services_[M]={callback:z,objectPayload:!!J}};
AQ.prototype.getService=function(M,z){var J=this.services_[M];return J?J:this.defaultService_?{callback:_.Uf(this.defaultService_,M),objectPayload:_.E8(z)}:null};
var Bfp=function(M,z){if(z&&typeof M==="string")try{return JSON.parse(M)}catch(J){return null}else if(!z&&typeof M!=="string")return(0,_.ns)(M);return M};
AQ.prototype.disposeInternal=function(){AQ.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 iH=function(M,z){this.sequence_=[];this.onCancelFunction_=M;this.defaultScope_=z||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};
iH.prototype.cancel=function(M){if(this.fired_)this.result_ instanceof iH&&this.result_.cancel();else{if(this.parent_){var z=this.parent_;delete this.parent_;M?z.cancel(M):(z.branches_--,z.branches_<=0&&z.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Cs(this))}};
iH.prototype.continue_=function(M,z){this.blocked_=!1;OqJ(this,M,z)};
var OqJ=function(M,z,J){M.fired_=!0;M.result_=J;M.hadError_=!z;Tfk(M)},oES=function(M){if(M.fired_){if(!M.silentlyCanceled_)throw new IZt(M);
M.silentlyCanceled_=!1}};
iH.prototype.callback=function(M){oES(this);OqJ(this,!0,M)};
iH.prototype.errback=function(M){oES(this);OqJ(this,!1,M)};
var Xl$=function(M,z,J){bH(M,z,null,J)};
iH.prototype.finally=function(M){var z=this;return lZS(new Promise(function(J,R){bH(z,function(D){M();J(D)},function(D){M();
R(D)})}))};
var bH=function(M,z,J,R){var D=M.fired_;D||(z===J?z=J=ps(z):(z=ps(z),J=ps(J)));M.sequence_.push([z,J,R]);D&&Tfk(M)};
iH.prototype.then=function(M,z,J){var R,D,N=new _.If(function(Z,B){D=Z;R=B});
bH(this,D,function(Z){Z instanceof Cs?N.cancel():R(Z);return eSV},this);
return N.then(M,z,J)};
qI$(iH);var Q4g=function(M,z){z instanceof iH?Xl$(M,(0,_.xF)(z.branch,z)):Xl$(M,function(){return z})};
iH.prototype.branch=function(M){var z=new iH;bH(this,z.callback,z.errback,z);M&&(z.parent_=this,this.branches_++);return z};
iH.prototype.isError=function(M){return M instanceof Error};
var UaQ=function(M){return fo(M.sequence_,function(z){return typeof z[1]==="function"})},eSV={},Tfk=function(M){if(M.unhandledErrorId_&&M.fired_&&UaQ(M)){var z=M.unhandledErrorId_,J=vEQ[z];
J&&(_.R3.clearTimeout(J.JSC$9987_id_),delete vEQ[z]);M.unhandledErrorId_=0}M.parent_&&(M.parent_.branches_--,delete M.parent_);z=M.result_;for(var R=J=!1;M.sequence_.length&&!M.blocked_;){var D=M.sequence_.shift(),N=D[0],Z=D[1];D=D[2];if(N=M.hadError_?Z:N)try{var B=N.call(D||M.defaultScope_,z);B===eSV&&(B=void 0);B!==void 0&&(M.hadError_=M.hadError_&&(B==z||M.isError(B)),M.result_=z=B);if(WWg(z)||typeof _.R3.Promise==="function"&&z instanceof _.R3.Promise)R=!0,M.blocked_=!0}catch(O){z=O,M.hadError_=
!0,UaQ(M)||(J=!0)}}M.result_=z;R&&(B=(0,_.xF)(M.continue_,M,!0),R=(0,_.xF)(M.continue_,M,!1),z instanceof iH?(bH(z,B,R),z.blocking_=!0):z.then(B,R));J&&(z=new GkB(z),vEQ[z.JSC$9987_id_]=z,M.unhandledErrorId_=z.JSC$9987_id_)},lZS=function(M){var z=new iH;
M.then(function(J){z.callback(J)},function(J){z.errback(J)});
return z},IZt=function(){_.Mb.call(this)};
_.ZP(IZt,_.Mb);IZt.prototype.message="Deferred has already fired";IZt.prototype.name="AlreadyCalledError";var Cs=function(){_.Mb.call(this)};
_.ZP(Cs,_.Mb);Cs.prototype.message="Deferred was canceled";Cs.prototype.name="CanceledError";var GkB=function(M){this.JSC$9987_id_=_.R3.setTimeout((0,_.xF)(this.throwError,this),0);this.JSC$9987_error_=M};
GkB.prototype.throwError=function(){delete vEQ[this.JSC$9987_id_];throw this.JSC$9987_error_;};
var vEQ={};var wl2={1:"NativeMessagingTransport"},xaS=["pu","lru","pru","lpu","ppu"],j4u=function(){for(var M=10,z=tPa,J=z.length,R="";M-- >0;)R+=z.charAt(Math.floor(Math.random()*J));return R},tPa="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var rs=function(M){_.wS.call(this);this.JSC$9990_domHelper_=M||vj()};
_.ZP(rs,_.wS);rs.prototype.transportType=0;rs.prototype.getWindow=function(){return this.JSC$9990_domHelper_.getWindow()};
rs.prototype.getName=function(){return wl2[String(this.transportType)]||""};var MD=function(M,z,J,R,D){rs.call(this,J);this.JSC$9993_channel_=M;this.protocolVersion_=D||2;this.peerHostname_=z||"*";this.JSC$9993_eventHandler_=new _.Ps(this);this.maybeAttemptToConnectTimer_=new _.NI(100,this.getWindow());this.oneSidedHandshake_=!!R;this.setupAckReceived_=new iH;this.setupAckSent_=new iH;this.JSC$9993_connected_=new iH;this.endpointId_=j4u();this.peerEndpointId_=null;this.oneSidedHandshake_?plB(this.JSC$9993_channel_)==1?Q4g(this.JSC$9993_connected_,this.setupAckReceived_):
Q4g(this.JSC$9993_connected_,this.setupAckSent_):(Q4g(this.JSC$9993_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Q4g(this.JSC$9993_connected_,this.setupAckSent_));Xl$(this.JSC$9993_connected_,this.notifyConnected_,this);this.JSC$9993_connected_.callback(!0);this.JSC$9993_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.ZP(MD,rs);MD.prototype.peerProtocolVersion_=null;MD.prototype.initialized_=!1;MD.prototype.transportType=1;var FtQ={};MD.prototype.sendTimerId_=0;
var gE$=function(M){var z=M.event_.data;if(typeof z!=="string")return!1;var J=z.indexOf("|"),R=z.indexOf(":");if(J==-1||R==-1)return!1;var D=z.substring(0,J);J=z.substring(J+1,R);z=z.substring(R+1);if(R=z5[D])return R.xpcDeliver(J,z,M.event_.origin),!0;R=YZV(z)[0];for(var N in z5){var Z=z5[N];if(plB(Z)==1&&!Z.isConnected()&&J=="tp"&&(R=="SETUP"||R=="SETUP_NTPV2")&&maa(Z,M.event_.origin))return delete z5[Z.name],Z.name=D,z5[D]=Z,Z.xpcDeliver(J,z),!0}return!1},s4v=function(M){M.protocolVersion_!=2||
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||M.send("tp","SETUP_NTPV2,"+M.endpointId_);
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||M.send("tp","SETUP")},nE$=function(M,z){if(M.protocolVersion_!=2||M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||z!=2){if(M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||z!=1)return;
M.send("tp","SETUP_ACK")}else M.send("tp","SETUP_ACK_NTPV2");M.setupAckSent_.fired_||M.setupAckSent_.callback(!0)},hSV=function(M,z){z>M.peerProtocolVersion_&&(M.peerProtocolVersion_=z);
M.peerProtocolVersion_==1&&(M.setupAckSent_.fired_||M.oneSidedHandshake_||M.setupAckSent_.callback(!0),M.peerEndpointId_=null)};
_.P=MD.prototype;_.P.connect=function(){var M=this.getWindow(),z=_.fp(M),J=FtQ[z];typeof J!=="number"&&(J=0);J==0&&_.YS(M.postMessage?M:M.document,"message",gE$,!1,MD);FtQ[z]=J+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.P.maybeAttemptToConnect_=function(){var M=plB(this.JSC$9993_channel_)==0;this.oneSidedHandshake_&&M||this.JSC$9993_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),s4v(this))};
_.P.send=function(M,z){var J=this.JSC$9993_channel_.peerWindowObject_;J&&(this.send=function(R,D){var N=this,Z=this.JSC$9993_channel_.name;this.sendTimerId_=gs(function(){N.sendTimerId_=0;try{var B=J.postMessage?J:J.document;B.postMessage&&B.postMessage(Z+"|"+R+":"+D,N.peerHostname_)}catch(O){}},0)},this.send(M,z))};
_.P.notifyConnected_=function(){var M=this.JSC$9993_channel_,z=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;M.isConnected()||M.connectionDelay_&&M.connectionDelay_.isActive()||(M.state_=2,_.bv(M.connectionDelay_),z!==void 0?(M.connectionDelay_=new _.tK(M.connectCb_,z),M.connectionDelay_.start()):(M.connectionDelay_=null,M.connectCb_()))};
_.P.disposeInternal=function(){if(this.initialized_){var M=this.getWindow(),z=_.fp(M),J=FtQ[z];FtQ[z]=J-1;J==1&&_.tQ(M.postMessage?M:M.document,"message",gE$,!1,MD)}this.sendTimerId_&&(_.R3.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.bv(this.JSC$9993_eventHandler_);delete this.JSC$9993_eventHandler_;_.bv(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9993_connected_.cancel();delete this.JSC$9993_connected_;delete this.send;MD.superClass_.disposeInternal.call(this)};
var YZV=function(M){M=M.split(",");M[1]=M[1]||null;return M};var HqQ;_.Jb=function(M){if(M.getValues&&typeof M.getValues=="function")return M.getValues();if(typeof Map!=="undefined"&&M instanceof Map||typeof Set!=="undefined"&&M instanceof Set)return Array.from(M.values());if(typeof M==="string")return M.split("");if(_.WY(M)){for(var z=[],J=M.length,R=0;R<J;R++)z.push(M[R]);return z}return _.gu.getValues(M)};
_.yPV=function(M){if(M.getKeys&&typeof M.getKeys=="function")return M.getKeys();if(!M.getValues||typeof M.getValues!="function"){if(typeof Map!=="undefined"&&M instanceof Map)return Array.from(M.keys());if(!(typeof Set!=="undefined"&&M instanceof Set)){if(_.WY(M)||typeof M==="string"){var z=[];M=M.length;for(var J=0;J<M;J++)z.push(J);return z}return _.gu.getKeys(M)}}};
HqQ=function(M,z,J){if(M.forEach&&typeof M.forEach=="function")M.forEach(z,J);else if(_.WY(M)||typeof M==="string")Array.prototype.forEach.call(M,z,J);else for(var R=_.yPV(M),D=_.Jb(M),N=D.length,Z=0;Z<N;Z++)z.call(J,D[Z],R&&R[Z],M)};var jjG,ke,Ok,Wtg,cPt,KtJ,dav,qZv,$ag;
_.iS=function(M,z){this.JSC$9998_domain_=this.userInfo_=this.scheme_="";this.JSC$9998_port_=null;this.fragment_=this.JSC$9998_path_="";this.JSC$9998_ignoreCase_=!1;var J;M instanceof _.iS?(this.JSC$9998_ignoreCase_=z!==void 0?z:M.JSC$9998_ignoreCase_,_.RI(this,M.scheme_),this.userInfo_=M.userInfo_,_.DF(this,M.JSC$9998_domain_),_.ND(this,M.JSC$9998_port_),_.P3(this,M.getPath()),_.SH(this,M.JSC$9998_queryData_.clone()),_.ZF(this,M.fragment_)):M&&(J=_.ii(String(M)))?(this.JSC$9998_ignoreCase_=!!z,_.RI(this,
J[1]||"",!0),this.userInfo_=ke(J[2]||""),_.DF(this,J[3]||"",!0),_.ND(this,J[4]),_.P3(this,J[5]||"",!0),_.SH(this,J[6]||"",!0),_.ZF(this,J[7]||"",!0)):(this.JSC$9998_ignoreCase_=!!z,this.JSC$9998_queryData_=new _.B3(null,this.JSC$9998_ignoreCase_))};
_.iS.prototype.toString=function(){var M=[],z=this.scheme_;z&&M.push(Ok(z,cPt,!0),":");var J=this.JSC$9998_domain_;if(J||z=="file")M.push("//"),(z=this.userInfo_)&&M.push(Ok(z,cPt,!0),"@"),M.push(_.aX(J).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),J=this.JSC$9998_port_,J!=null&&M.push(":",String(J));if(J=this.getPath())this.JSC$9998_domain_&&J.charAt(0)!="/"&&M.push("/"),M.push(Ok(J,J.charAt(0)=="/"?dav:KtJ,!0));(J=this.JSC$9998_queryData_.toString())&&M.push("?",J);(J=this.fragment_)&&M.push("#",Ok(J,
$ag));return M.join("")};
_.iS.prototype.resolve=function(M){var z=this.clone(),J=!!M.scheme_;J?_.RI(z,M.scheme_):J=!!M.userInfo_;J?z.userInfo_=M.userInfo_:J=!!M.JSC$9998_domain_;J?_.DF(z,M.JSC$9998_domain_):J=M.JSC$9998_port_!=null;var R=M.getPath();if(J)_.ND(z,M.JSC$9998_port_);else if(J=!!M.JSC$9998_path_){if(R.charAt(0)!="/")if(this.JSC$9998_domain_&&!this.JSC$9998_path_)R="/"+R;else{var D=z.getPath().lastIndexOf("/");D!=-1&&(R=z.getPath().slice(0,D+1)+R)}D=R;if(D==".."||D==".")R="";else if(_.BY(D,"./")||_.BY(D,"/.")){R=
_.PY(D,"/");D=D.split("/");for(var N=[],Z=0;Z<D.length;){var B=D[Z++];B=="."?R&&Z==D.length&&N.push(""):B==".."?((N.length>1||N.length==1&&N[0]!="")&&N.pop(),R&&Z==D.length&&N.push("")):(N.push(B),R=!0)}R=N.join("/")}else R=D}J?_.P3(z,R):J=M.JSC$9998_queryData_.toString()!=="";J?_.SH(z,M.JSC$9998_queryData_.clone()):J=!!M.fragment_;J&&_.ZF(z,M.fragment_);return z};
_.iS.prototype.clone=function(){return new _.iS(this)};
_.RI=function(M,z,J){M.scheme_=J?ke(z,!0):z;M.scheme_&&(M.scheme_=M.scheme_.replace(/:$/,""));return M};
_.DF=function(M,z,J){M.JSC$9998_domain_=J?ke(z,!0):z;return M};
_.ND=function(M,z){if(z){z=Number(z);if(isNaN(z)||z<0)throw Error("Pa`"+z);M.JSC$9998_port_=z}else M.JSC$9998_port_=null;return M};
_.iS.prototype.getPath=function(){return this.JSC$9998_path_};
_.P3=function(M,z,J){M.JSC$9998_path_=J?ke(z,!0):z;return M};
_.SH=function(M,z,J){z instanceof _.B3?(M.JSC$9998_queryData_=z,u8t(M.JSC$9998_queryData_,M.JSC$9998_ignoreCase_)):(J||(z=Ok(z,qZv)),M.JSC$9998_queryData_=new _.B3(z,M.JSC$9998_ignoreCase_));return M};
_.W6=function(M,z,J){M.JSC$9998_queryData_.set(z,J);return M};
_.q$=function(M,z){return M.JSC$9998_queryData_.get(z)};
_.ZF=function(M,z,J){M.fragment_=J?ke(z):z;return M};
_.T5=function(M){_.W6(M,"zx",$F());return M};
_.um=function(M,z){return M instanceof _.iS?M.clone():new _.iS(M,z)};
jjG=function(M,z){M instanceof _.iS||(M=_.um(M));z instanceof _.iS||(z=_.um(z));return M.resolve(z)};
ke=function(M,z){return M?z?decodeURI(M.replace(/%25/g,"%2525")):decodeURIComponent(M):""};
Ok=function(M,z,J){return typeof M==="string"?(M=encodeURI(M).replace(z,Wtg),J&&(M=M.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M):null};
Wtg=function(M){M=M.charCodeAt(0);return"%"+(M>>4&15).toString(16)+(M&15).toString(16)};
cPt=/[#\/\?@]/g;KtJ=/[#\?:]/g;dav=/[#\?]/g;qZv=/[#\?@]/g;$ag=/#/g;_.B3=function(M,z){this.count_=this.keyMap_=null;this.encodedQuery_=M||null;this.JSC$9999_ignoreCase_=!!z};
_.II=function(M){M.keyMap_||(M.keyMap_=new Map,M.count_=0,M.encodedQuery_&&mNg(M.encodedQuery_,function(z,J){M.add(MC(z),J)}))};
_.P=_.B3.prototype;_.P.getCount=function(){_.II(this);return this.count_};
_.P.add=function(M,z){_.II(this);this.encodedQuery_=null;M=oI(this,M);var J=this.keyMap_.get(M);J||this.keyMap_.set(M,J=[]);J.push(z);this.count_+=1;return this};
_.P.remove=function(M){_.II(this);M=oI(this,M);return this.keyMap_.has(M)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(M).length,this.keyMap_.delete(M)):!1};
_.P.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.P.isEmpty=function(){_.II(this);return this.count_==0};
_.P.containsKey=function(M){_.II(this);M=oI(this,M);return this.keyMap_.has(M)};
_.P.containsValue=function(M){var z=this.getValues();return _.Kp(z,M)};
_.P.forEach=function(M,z){_.II(this);this.keyMap_.forEach(function(J,R){J.forEach(function(D){M.call(z,D,R,this)},this)},this)};
_.P.getKeys=function(){_.II(this);for(var M=Array.from(this.keyMap_.values()),z=Array.from(this.keyMap_.keys()),J=[],R=0;R<z.length;R++)for(var D=M[R],N=0;N<D.length;N++)J.push(z[R]);return J};
_.P.getValues=function(M){_.II(this);var z=[];if(typeof M==="string")this.containsKey(M)&&(z=z.concat(this.keyMap_.get(oI(this,M))));else{M=Array.from(this.keyMap_.values());for(var J=0;J<M.length;J++)z=z.concat(M[J])}return z};
_.P.set=function(M,z){_.II(this);this.encodedQuery_=null;M=oI(this,M);this.containsKey(M)&&(this.count_-=this.keyMap_.get(M).length);this.keyMap_.set(M,[z]);this.count_+=1;return this};
_.P.get=function(M,z){if(!M)return z;M=this.getValues(M);return M.length>0?String(M[0]):z};
_.aZJ=function(M,z,J){M.remove(z);J.length>0&&(M.encodedQuery_=null,M.keyMap_.set(oI(M,z),_.uG(J)),M.count_+=J.length)};
_.B3.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var M=[],z=Array.from(this.keyMap_.keys()),J=0;J<z.length;J++){var R=z[J],D=_.aX(R);R=this.getValues(R);for(var N=0;N<R.length;N++){var Z=D;R[N]!==""&&(Z+="="+_.aX(R[N]));M.push(Z)}}return this.encodedQuery_=M.join("&")};
_.B3.prototype.clone=function(){var M=new _.B3;M.encodedQuery_=this.encodedQuery_;this.keyMap_&&(M.keyMap_=new Map(this.keyMap_),M.count_=this.count_);return M};
var oI=function(M,z){z=String(z);M.JSC$9999_ignoreCase_&&(z=z.toLowerCase());return z},u8t=function(M,z){z&&!M.JSC$9999_ignoreCase_&&(_.II(M),M.encodedQuery_=null,M.keyMap_.forEach(function(J,R){var D=R.toLowerCase();
R!=D&&(this.remove(R),_.aZJ(this,D,J))},M));
M.JSC$9999_ignoreCase_=z};
_.B3.prototype.extend=function(M){for(var z=0;z<arguments.length;z++)HqQ(arguments[z],function(J,R){this.add(R,J)},this)};var X$=function(M,z){AQ.call(this);for(var J=0,R;R=xaS[J];J++)if(R in M&&!/^https?:\/\//.test(M[R]))throw Error("Ra`"+M[R]+"`"+R);this.cfg_=M;this.name=this.cfg_.cn||j4u();this.JSC$9994_domHelper_=z||vj();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Ps(this);M.lpu=M.lpu||Fdu(this.JSC$9994_domHelper_.getWindow().location.href)+"/robots.txt";M.ppu=M.ppu||Fdu(M.pu||"")+"/robots.txt";z5[this.name]=this;hna(window,"unload",VPa)||th(window,"unload",VPa)};
_.ZP(X$,AQ);var EEu=RegExp("^%*tp$"),fZt=RegExp("^%+tp$");_.P=X$.prototype;_.P.connectionDelay_=null;_.P.peerWindowDeferred_=null;_.P.transport_=null;_.P.state_=1;_.P.isConnected=function(){return this.state_==2};
_.P.peerWindowObject_=null;_.P.iframeElement_=null;_.P.connect=function(M){this.connectCb_=M||_.xi;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Xl$(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.P.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9994_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var M=this.iframeElement_.contentWindow;M||(M=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=M}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$9994_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new MD(this,this.cfg_.ph,this.JSC$9994_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.P.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.bv(this.transport_);this.connectCb_=this.transport_=null;_.bv(this.connectionDelay_);this.connectionDelay_=null};
_.P.send=function(M,z){if(this.isConnected()){try{var J=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(D){J=!1}if(J){_.E8(z)&&(z=(0,_.ns)(z));J=this.transport_;var R=J.send;EEu.test(M)&&(M="%"+M);M=M.replace(/[%:|]/g,encodeURIComponent);R.call(J,M,z)}else this.close()}};
_.P.xpcDeliver=function(M,z,J){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.xF)(this.xpcDeliver,this,M,z,J));else if(maa(this,J)&&!this.isDisposed()&&this.state_!=3)if(M&&M!="tp")this.isConnected()&&(M=M.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),M=fZt.test(M)?M.substring(1):M,M=this.getService(M,z))&&(z=Bfp(z,M.objectPayload),z!=null&&M.callback(z));else switch(M=this.transport_,J=YZV(z),z=J[1],J[0]){case "SETUP_ACK":hSV(M,1);M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":M.protocolVersion_==2&&(hSV(M,2),M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0));break;case "SETUP":hSV(M,1);nE$(M,1);break;case "SETUP_NTPV2":M.protocolVersion_==2&&(J=M.peerProtocolVersion_,hSV(M,2),nE$(M,2),J!=1&&M.peerEndpointId_==null||M.peerEndpointId_==z||s4v(M),M.peerEndpointId_=z)}};
var plB=function(M){var z=M.cfg_.role;return typeof z==="number"?z:window.parent==M.peerWindowObject_?1:0},maa=function(M,z){var J=M.cfg_.ph;
return _.ko(z==null?"":String(z))||_.ko(J==null?"":String(J))||z==M.cfg_.ph};
X$.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete z5[this.name];_.bv(this.peerLoadHandler_);delete this.peerLoadHandler_;X$.superClass_.disposeInternal.call(this)};
var VPa=function(){for(var M in z5)_.bv(z5[M])},z5={};var APp=function(M,z){this.JSC$10008_win=M;this.allowAdsHttpEndpoint=z;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10008_domHelper=vj(M);this.scrollManager=new SZ$(M);this.accessibilityManager=new JP2(M);Lt$(this)},Lt$=function(M){var z=function(){M.allowAdsPopup&&M.allowAdsPopup.style.setProperty("display","none","important");
M.wallElement.style.setProperty("display","","important");RSk(M.accessibilityManager);P0v(M.accessibilityManager,M.wallElement.querySelector(".fc-dialog-container"),!1,!1,M.wallElement.querySelector(".fc-button-whitelist"));M.scrollManager.enableScrolling()};
M.allowAdsPopup=M.JSC$10008_domHelper.JSC$9295_createDom("DIV",{"class":"fc-whitelist-root"});M.allowAdsPopup.style.setProperty("display","none","important");M.JSC$10008_domHelper.appendChild(M.JSC$10008_domHelper.JSC$9293_document_.body,M.allowAdsPopup);var J=M.JSC$10008_domHelper.JSC$9295_createDom("DIV",{"class":"fc-dialog-overlay"});M.JSC$10008_domHelper.appendChild(M.allowAdsPopup,J);var R=M.JSC$10008_domHelper.JSC$9295_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:z});M.JSC$10008_domHelper.appendChild(M.allowAdsPopup,
R);J=M.JSC$10008_domHelper.JSC$9295_createDom("IFRAME");J.className="fc-whitelist-dialog";J.frameBorder="0";J.id="fc-whitelist-iframe";J.tabIndex="0";_.W4(J,M.allowAdsHttpEndpoint);M.JSC$10008_domHelper.appendChild(R,J);R={};R.pu=_.xq(M.allowAdsHttpEndpoint).toString();R.tp=1;R.cn="fc-whitelist-channel";R.ifrid=J.id;R.osh=!0;M.allowAdsCrossPageChannel=new X$(R);M.allowAdsCrossPageChannel.registerService("close",z);M.allowAdsCrossPageChannel.registerService("refresh",function(){M.JSC$10008_win.location.reload()});
M.allowAdsCrossPageChannel.registerService("resize",function(D){if(D){var N=M.allowAdsPopup.querySelector(".fc-whitelist-dialog");D.width&&N.style.setProperty("width",D.width,"important");D.height&&N.style.setProperty("height",D.height,"important")}},!0);
M.allowAdsCrossPageChannel.connect()};
APp.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10008_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var eH=window,QY=document,iqv=eH.location,C0J=function(){},bqa=/\[native code\]/,Uk=function(M,z,J){return M[z]=M[z]||J},rPQ=function(M){M=M.sort();
for(var z=[],J=void 0,R=0;R<M.length;R++){var D=M[R];D!=J&&z.push(D);J=D}return z},v3=function(){var M;
if((M=Object.create)&&bqa.test(M))M=M(null);else{M={};for(var z in M)M[z]=void 0}return M},G5=Uk(eH,"gapi",{});var wq={};wq=Uk(eH,"___jsl",v3());Uk(wq,"I",0);Uk(wq,"hel",10);var MfB=function(){var M=iqv.href;if(wq.dpo)var z=wq.h;else{z=wq.h;var J=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),R=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(M=M&&(J.exec(M)||R.exec(M)))try{z=decodeURIComponent(M[2])}catch(D){}}return z},zLu=function(M){var z=Uk(wq,"PQ",[]);
wq.PQ=[];var J=z.length;if(J===0)M();else for(var R=0,D=function(){++R===J&&M()},N=0;N<J;N++)z[N](D)},Jg$=function(M){return Uk(Uk(wq,"H",v3()),M,v3())};var xe=function(M){this.JSC$10010_obj_=M};
xe.prototype.value=function(){return this.JSC$10010_obj_};
xe.prototype.getWidth=function(){return this.JSC$10010_obj_.width};
xe.prototype.getHeight=function(){return this.JSC$10010_obj_.height};
xe.prototype.getStyle=function(){return this.JSC$10010_obj_.style};var RLv=function(M){this.JSC$10013_obj_=M||{}};
_.P=RLv.prototype;_.P.value=function(){return this.JSC$10013_obj_};
_.P.setUrl=function(M){this.JSC$10013_obj_.url=M;return this};
_.P.getUrl=function(){return this.JSC$10013_obj_.url};
_.P.getStyle=function(){return this.JSC$10013_obj_.style};
_.P.getId=function(){return this.JSC$10013_obj_.id};
_.P.getContext=function(){return this.JSC$10013_obj_.context};
var DHv=function(M){M.JSC$10013_obj_.attributes=M.JSC$10013_obj_.attributes||{};return new xe(M.JSC$10013_obj_.attributes)};var N3k=function(){RLv.apply(this,arguments)};
_.w(N3k,RLv);var PiV=Uk(wq,"perf",v3());Uk(PiV,"g",v3());var SRv=Uk(PiV,"i",v3());Uk(PiV,"r",[]);v3();v3();var k4p=function(M,z,J){z&&z.length>0&&(z=Zhv(z),J&&J.length>0&&(z+="___"+Zhv(J)),z.length>28&&(z=z.substr(0,28)+(z.length-28)),J=z,z=Uk(SRv,"_p",v3()),Uk(z,J,v3())[M]=(new Date).getTime(),z=PiV.r,typeof z==="function"?z(M,"_p",J):z.push([M,"_p",J]))},Zhv=function(M){return M.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var B3J=v3(),Ohg=[],tb=function(M){throw Error("Ua`"+M);};
Ohg.push(["jsl",function(M){for(var z in M)if(Object.prototype.hasOwnProperty.call(M,z)){var J=M[z];typeof J=="object"?wq[z]=Uk(wq,z,[]).concat(J):Uk(wq,z,J)}if(z=M.u)M=Uk(wq,"us",[]),M.push(z),(z=/^https:(.*)$/.exec(z))&&M.push("http:"+z[1])}]);
var T3Q=/^(\/[a-zA-Z0-9_\-]+)+$/,IN$=[/\/amp\//,/\/amp$/,/^\/amp$/],oyQ=/^[a-zA-Z0-9\-_\.,!]+$/,XWV=/^gapi\.loaded_[0-9]+$/,lNJ=/^[a-zA-Z0-9,._-]+$/,vy2=function(M,z,J,R,D){var N=M.split(";"),Z=N.shift(),B=B3J[Z],O=null;B?O=B(N,z,J,R):tb("no hint processor for: "+Z);O||tb("failed to generate load url");z=O;J=z.match(eLQ);(R=z.match(QX$))&&R.length===1&&UH2.test(z)&&J&&J.length===1||tb("failed sanity: "+M);try{M="?";if(D&&D.length>0){pYY(D);var X=D.join(",");O=O+"?le="+X;M="&"}if(wq.rol){var l=wq.ol;
l&&l.length&&(O=""+O+M+"ol="+l.length)}}catch(e){}return O},xH2=function(M,z,J,R){M=G4$(M);
XWV.test(J)||tb("invalid_callback");z=wWV(z);R=R&&R.length?wWV(R):null;var D=function(N){return encodeURIComponent(N).replace(/%2C/g,",")};
return[encodeURIComponent(M.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",D(M.version),"/m=",D(z),R?"/exm="+D(R):"","/rt=j/sv=1/d=1/ed=1",M.activeMods?"/am="+D(M.activeMods):"",M.resourceSig?"/rs="+D(M.resourceSig):"",M.zcms?"/t="+D(M.zcms):"","/cb=",D(J)].join("")},G4$=function(M){M.charAt(0)!=="/"&&tb("relative path");
for(var z=M.substring(1).split("/"),J=[];z.length;){M=z.shift();if(!M.length||M.indexOf(".")==0)tb("empty/relative directory");else if(M.indexOf("=")>0){z.unshift(M);break}J.push(M)}M={};for(var R=0,D=z.length;R<D;++R){var N=z[R].split("="),Z=decodeURIComponent(N[0]),B=decodeURIComponent(N[1]);N.length==2&&Z&&B&&(M[Z]=M[Z]||B)}z="/"+J.join("/");T3Q.test(z)||tb("invalid_prefix");J=0;for(R=IN$.length;J<R;++J)IN$[J].test(z)&&tb("invalid_prefix");J=tfB(M,"k",!0);R=tfB(M,"am");D=tfB(M,"rs");M=tfB(M,"t");
return{pathPrefix:z,version:J,activeMods:R,resourceSig:D,zcms:M}},wWV=function(M){for(var z=[],J=0,R=M.length;J<R;++J){var D=M[J].replace(/\./g,"_").replace(/-/g,"_");
lNJ.test(D)&&z.push(D)}return z.join(",")},tfB=function(M,z,J){M=M[z];
!M&&J&&tb("missing: "+z);if(M){if(oyQ.test(M))return M;tb("invalid: "+z)}return null},UH2=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,QX$=/\/cb=/g,eLQ=/\/\//g;
B3J.m=function(M,z,J,R){(M=M[0])||tb("missing_hint");return"https://apis.google.com"+xH2(M,z,J,R)};
var jXk=decodeURI("%73cript"),pW2=/^[-+_0-9\/A-Za-z]+={0,2}$/,FFB=function(M,z){for(var J=[],R=0;R<M.length;++R){var D=M[R],N;if(N=D){a:{for(N=0;N<z.length;N++)if(z[N]===D)break a;N=-1}N=N<0}N&&J.push(D)}return J},YR$=function(){var M=wq.nonce;
return M!==void 0?M&&M===String(M)&&M.match(pW2)?M:wq.nonce=null:QY.querySelector?(M=QY.querySelector("script[nonce]"))?(M=M.nonce||M.getAttribute("nonce")||"",M&&M===String(M)&&M.match(pW2)?wq.nonce=M:wq.nonce=null):null:null},sX$=function(M){if(QY.readyState!="loading")mHV(M);
else{var z=YR$(),J="";z!==null&&(J=' nonce="'+z+'"');M="<"+jXk+' src="'+encodeURI(M)+'"'+J+"></"+jXk+">";QY.write(gyV?gyV.createHTML(M):M)}},mHV=function(M){var z=QY.createElement(jXk);
z.setAttribute("src",gyV?gyV.createScriptURL(M):M);M=YR$();M!==null&&z.setAttribute("nonce",M);z.async="true";(M=QY.getElementsByTagName(jXk)[0])?M.parentNode.insertBefore(z,M):(QY.head||QY.body||QY.documentElement).appendChild(z)},hLu=function(M,z,J){ny$(function(){var R=z===MfB()?Uk(G5,"_",v3()):v3();
R=Uk(Jg$(z),"_",R);M(R)},J)},X0p=function(M,z){var J=z||{};
typeof z=="function"&&(J={},J.callback=z);var R=(z=J)&&z._c;if(R)for(var D=0;D<Ohg.length;D++){var N=Ohg[D][0],Z=Ohg[D][1];Z&&Object.prototype.hasOwnProperty.call(R,N)&&Z(R[N],M,z)}z=[];M?z=M.split(":"):J.features&&(z=J.features);if(!(M=J.h)&&(M=MfB(),!M))throw Error("Va");yg$(z||[],J,M)},yg$=function(M,z,J){M=rPQ(M)||[];
var R=z.callback,D=z.config,N=z.timeout,Z=z.ontimeout,B=z.onerror,O=void 0;typeof B=="function"&&(O=B);var X=null,l=!1;if(N&&!Z||!N&&Z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";B=Uk(Jg$(J),"r",[]).sort();var e=Uk(Jg$(J),"L",[]).sort(),Q=wq.le||[],v=[].concat(B),x=function(b,V){if(l)return 0;eH.clearTimeout(X);e.push.apply(e,m);var E=((G5||{}).config||{}).update;E?E(D):D&&Uk(wq,"cu",[]).push(D);if(V){k4p("me0",b,v);try{hLu(V,J,O)}finally{k4p("me1",b,v)}}return 1};
N>0&&(X=eH.setTimeout(function(){l=!0;Z()},N));
var m=FFB(M,e);if(m.length){m=FFB(M,B);var y=Uk(wq,"CP",[]),H=y.length;y[H]=function(b){if(!b)return 0;k4p("ml1",m,v);var V=function(L){y[H]=null;x(m,b)&&zLu(function(){R&&R();L()})},E=function(){var L=y[H+1];
L&&L()};
H>0&&y[H-1]?y[H]=function(){V(E)}:V(E)};
if(m.length){var q="loaded_"+wq.I++;G5[q]=function(b){y[H](b);G5[q]=null};
M=vy2(J,m,"gapi."+q,B,Q);B.push.apply(B,m);k4p("ml0",m,v);z.sync||eH.___gapisync?sX$(M):mHV(M)}else y[H](C0J)}else x(m)&&R&&R()},Hh$;
var cgQ=null,dHV=_.R3.trustedTypes;if(dHV&&dHV.createPolicy){try{cgQ=dHV.createPolicy("goog#gapi",{createHTML:u1R,createScript:u1R,createScriptURL:u1R})}catch(M){_.R3.console&&_.R3.console.error(M.message)}Hh$=cgQ}else Hh$=cgQ;var gyV=Hh$,ny$=function(M,z){if(wq.hee&&wq.hel>0)try{return M()}catch(J){z&&z(J),wq.hel--,X0p("debug_error",function(){try{window.___jsl.hefn(J)}catch(R){throw J;}})}else try{return M()}catch(J){throw z&&z(J),J;
}},KFg=G5.load;
KFg&&Uk(wq,"ol",[]).push(KFg);G5.load=function(M,z){return ny$(function(){return X0p(M,z)})};var AFY;var uTS=function(M,z){var J=J||[];this.serviceId_=M;this.moduleId_=z||null;this.dependencies_=[];$Hv(this,J)};
uTS.prototype.toString=function(){return this.serviceId_};
uTS.prototype.getModuleId=function(){return this.moduleId_};
var $Hv=function(M,z){var J=!1;J=J===void 0?!1:J;M.dependencies_=M.dependencies_.concat(z);if(J){if(!M.moduleId_)throw Error("Wa`"+M.serviceId_);z.map(function(R){return R.getModuleId()}).forEach(function(R){iKp(function(D){D.addExtraEdge(M.moduleId_,R)})})}};var z48=new uTS("MpJwZc","MpJwZc");var R4b=new _.Ue("a"),Jd8=function(M,z,J){_.vR.call(this,M,z);this.node=z;this.kind=J};
_.w(Jd8,_.vR);var qRg=function(){this.JSC$10026_keys_={};this.urlPrefix_="";this.JSC$10026_queryData_={}};
qRg.prototype.toString=function(){var M=this.urlPrefix_+WF$(this),z=_.Xh(this.JSC$10026_queryData_),J="";z!=""&&(J="?"+z);return M+J};
var aNu=function(M){M=jH(M,"md");return!!M&&M!=="0"},WF$=function(M){var z=[],J=(0,_.xF)(function(R){this.JSC$10026_keys_[R]!==void 0&&z.push(R+"="+this.JSC$10026_keys_[R])},M);
aNu(M)?(J("md"),J("k"),J("ck"),J("am"),J("rs"),J("gssmodulesetproto"),J("slk"),J("dti")):(J("sdch"),J("k"),J("ck"),J("am"),J("rt"),"d"in M.JSC$10026_keys_||pF(M,"d","0"),J("d"),J("exm"),J("excm"),(M.JSC$10026_keys_.excm||M.JSC$10026_keys_.exm)&&z.push("ed=1"),J("im"),J("dg"),J("sm"),jH(M,"br")!="1"&&jH(M,"br")!="0"||J("br"),J("br-d"),jH(M,"rb")=="1"&&J("rb"),jH(M,"zs")!=="0"&&J("zs"),VfS(M)!==""&&J("wt"),J("gssmodulesetproto"),J("ujg"),J("sp"),J("rs"),J("cb"),J("ee"),J("slk"),J("dti"),J("m"));return z.join("/")},
jH=function(M,z){return M.JSC$10026_keys_[z]?M.JSC$10026_keys_[z]:null},pF=function(M,z,J){J?M.JSC$10026_keys_[z]=J:delete M.JSC$10026_keys_[z]},Eyp=function(M,z){M.urlPrefix_=z},fNp=function(M,z){z&&z.length>0?(z.sort(),pF(M,"exm",z.join(","))):pF(M,"exm",null)},LFB=function(M,z){z&&z.length>0?(z.sort(),pF(M,"excm",z.join(","))):pF(M,"excm",null)},Agk=function(M){return(M=jH(M,"m"))?M.split(","):[]},VfS=function(M){switch(jH(M,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},ihk=function(M,z){var J=Object.keys(z).filter(function(R){return!!Object.keys(z[R]).length}).map(function(R){var D=Object.keys(z[R]);
D.length>1&&D.sort();return R+":"+D.join(",")});
J.sort();pF(M,"ee",J.join(";"))},qyH=function(M){var z=jH(M,"ee");
if(!z)return{};M={};z=_.S(z.split(";"));for(var J=z.next();!J.done;J=z.next()){var R=_.S(J.value.split(":"));J=R.next().value;R=R.next().value;M[J]={};R=_.S(R.split(","));for(var D=R.next();!D.done;D=R.next())M[J][D.value]=!0}return M},Cit=function(M){delete M.JSC$10026_keys_.m;
delete M.JSC$10026_keys_.exm;delete M.JSC$10026_keys_.ed};
qRg.prototype.clone=function(){var M=new qRg;M.JSC$10026_keys_=Object.assign({},this.JSC$10026_keys_);M.urlPrefix_=this.urlPrefix_;M.JSC$10026_queryData_=Object.assign({},this.JSC$10026_queryData_);return M};
var W28=function(M,z){z=z===void 0?!0:z;var J=bhV(M),R=new qRg,D=_.ii(J)[5];_.gu.forEach(rga,function(Z){var B=D.match("/"+Z+"=([^/]+)");B&&pF(R,Z,B[1])});
var N="";N=M.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Eyp(R,M.substr(0,M.indexOf(N)+N.length));if(!z)return R;(M=_.ii(J)[6]||null)&&mNg(M,function(Z,B){R.JSC$10026_queryData_[Z]=B});
return R},K2p=function(M){M=_.Ib(bhV(M));
return M===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(M)?/\/k=/.test(M):!1},bhV=function(M){return M.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?M.substr(65):M},rga={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},MzS=RegExp("^loaded_(g|h)?[_\\d]+$");_.F$=function(M){this.JSC$10038_id_=M;this.opts={}};
_.F$.prototype.JSC$10040_setLabel=function(M){this.label_=M||void 0;return this};
_.F$.prototype.addUploadMetadata=function(M,z){var J=this.opts.data||{};J[M]=z;this.opts.data=J;return this};
var zVB=function(M){var z=_.gu.filter(M.opts,function(J){return J!==null});
z=_.gu.isEmpty(z)?null:z;M=[M.JSC$10038_id_,M.label_,z];z=G8n(M);return M=M.slice(0,z+1)};
_.F$.prototype.toString=function(){var M=zVB(this);return"("+_.sa(M,function(z){return JSON.stringify(z)}).join(",")+")"};
_.F$.prototype.getId=function(){return this.JSC$10038_id_};
_.F$.prototype.getOptions=function(){return _.gu.clone(this.opts)};var Ye=function(){_.F$.call(this,"image-search")};
_.w(Ye,_.F$);Ye.prototype.setSize=function(M){this.opts.imgsz=M;return this};
Ye.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
Ye.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};var mv=function(){_.F$.call(this,"maps")};
_.w(mv,_.F$);mv.prototype.setZoom=function(M){this.opts.zoom=M;return this};
mv.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
mv.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};_.gq=function(){_.F$.call(this,"photos")};
_.w(_.gq,_.F$);_.gq.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
_.gq.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};var sk=function(){_.F$.call(this,"url")};
_.w(sk,_.F$);var JFu=function(){var M=new sk;M.opts.type="video";M.opts.site="youtube.com";return M};
sk.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
sk.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};var nF=function(){_.F$.call(this,"video-search")};
_.w(nF,_.F$);var RV$=function(){var M=new nF;M.opts.site="youtube.com";return M};
nF.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
nF.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};var DCQ=function(){_.F$.call(this,"web")};
_.w(DCQ,_.F$);DCQ.prototype.JSC$10040_setLabel=function(M){_.F$.prototype.JSC$10040_setLabel.call(this,M);return this};
DCQ.prototype.addUploadMetadata=function(M,z){_.F$.prototype.addUploadMetadata.call(this,M,z);return this};var hb=function(){this.items_=[];this.opts={}},NQS=function(M){switch(M){case "image-search":return new Ye;
case "maps":return new mv;case "photos":return new _.gq;case "url":return new sk;case "video-search":return new nF;case "web":return new DCQ}return new _.F$(M)};
hb.prototype.addView=function(M){this.items_.push(typeof M==="string"?NQS(M):M);return this};
var P9a=function(M){return"("+_.sa(M.items_,function(z){return z.toString()}).join(",")+")"};
hb.prototype.toString=function(){return P9a(this)};
hb.prototype.getViews=function(M,z){z=z===void 0?[]:z;for(var J=this.items_,R=0;R<J.length;R++){var D=J[R];D instanceof hb?D.getViews(M,z):D.getId()==M&&z.push(D)}return z};
hb.prototype.getOptions=function(){return _.gu.clone(this.opts)};var hK=function(M){this.basePickerUrl_=M||"https://docs.google.com/picker";this.nav_=new hb};
hK.prototype.nav_=null;hK.prototype.addView=function(M){this.nav_.addView(M);return this};
hK.prototype.getBaseUrl=function(){return this.basePickerUrl_};
hK.prototype.getViews=function(M){return this.nav_.getViews(M)};
_.S7V=function(M,z){M.callback_=z;return M};var ZKu=new Map;ZKu.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ZKu.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ZKu.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var kw$=new Set;kw$.add("application/vnd.google-apps.kix");kw$.add("application/vnd.google-apps.ritz");kw$.add("application/vnd.google-apps.punch");var Gwa=function(M,z,J){var R=J&&_.hv(J,1);J=BQ$(J);var D=M[0].getId();switch(_.yE(D,2)){case 13:return OKv(M,z,R,J);case 3:return TQ2(M,z,R,J);case 10:return IRV(M,z,R,J);case 27:return IRV(M,z,R,J);case 12:return oNB(M,z);case 2:return XJS(M,z,R,J);case 5:return lRk(M,z,R,J);case 9:return eVa(M,z,R,J);case 6:return Qb$(M,z,R,J);case 25:return UCv(M,z,R,J);case 1:return _.wo(M[0],EGk,26)?vNv(M,z,R,J):IRV(M,z,R,J);default:return{}}},Qb$=function(M,z,J,R){M=M.map(function(D){return{id:D.getId().getId(),
serviceId:"youtube",name:D.getName(),description:_.hv(D,3),type:yY(D),lastEditedUtc:_.Vmv(_.DG(D,_.yL,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:D.getUrl(),embedUrl:_.hv(D,13),thumbnails:H3(JQ(D))}});
return{action:z,docs:M,viewToken:R,view:J||"youtube",v2Translated:!0}},XJS=function(M,z,J,R){var D=M.map(function(N){var Z=N.getId().getId(),B=_.hv(N,7),O=N.getName(),X=yY(N),l=_.Vmv(_.DG(N,_.yL,12)).getTime(),e=N.getUrl(),Q=Number(DRY(N)),v=_.hv(N,3),x=_.hv(N,11),m=H3(JQ(N));
var y=_.DG(N,Ry,21);y=_.go(y,1);var H=_.DG(N,Ry,21);H=_.hv(H,10);var q=_.hv(N,13);var b=_.DG(N,Ry,21);b=_.go(b,9);var V=_.DG(N,Ry,21);V=_.hv(V,11);Z={id:Z,serviceId:"docs",mimeType:B,name:O,type:X,lastEditedUtc:l,url:e,sizeBytes:Q,description:v,iconUrl:x,thumbnails:m,isShared:y,downloadUrl:H,embedUrl:q,copyable:b,resourceKey:V};B=_.DG(N,Ry,21);_.go(B,12)&&(Z.uploadState="success",Z.isNew=!0);B=_.DG(N,Ry,21);_.wo(B,rp,3)&&(N=_.DG(N,Ry,21),N=_.DG(N,rp,3),_.wo(N,CQ,2)&&(B=sC(N.getDuration().getSeconds()),
O=N.getDuration(),O=_.R2(O,2),Z.duration=B+O/1E9),Z.aspectRatio=N.getAspectRatio());return Z});
return{action:z,docs:D,viewToken:R,view:J||"all",extraUserInputs:wJJ(M),v2Translated:!0}},lRk=function(M,z,J,R){M=M.map(function(D){var N=_.DG(D,zik,15);
N=_.DG(N,bo,1);eI(D,10,bo,N);return{id:D.getId().getId(),serviceId:"web",mimeType:_.hv(D,7),name:D.getName(),type:yY(D),url:D.getUrl(),description:_.hv(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(D))}});
return{action:z,docs:M,viewToken:R,view:J||"image-search",v2Translated:!0}},eVa=function(M,z,J,R){M=M.map(function(D){return{serviceId:"url",
name:JQ(D)[0].getUrl().split("/").pop(),type:yY(D),mimeType:_.hv(D,7),url:D.getUrl(),description:_.hv(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(D))}});
return{action:z,docs:M,viewToken:R,view:J||"url",v2Translated:!0}},vNv=function(M,z,J,R){M=M.map(function(D){return{id:D.getId().getId(),
serviceId:"picasa",name:D.getName(),type:yY(D),description:_.hv(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(D))}});
return{action:z,docs:M,viewToken:R,view:J||"webcam",v2Translated:!0}},IRV=function(M,z,J,R){return{action:z,
docs:M.map(xCJ),viewToken:R,view:tzv(J||"upload",M),extraUserInputs:wJJ(M),v2Translated:!0}},tzv=function(M,z){return z.some(function(J){var R;
return((R=_.DG(J,Mk,30))==null?void 0:_.yE(R,3))===9})?M+"/gmailphotos":M},TQ2=function(M,z,J,R){var D=M.map(function(N){var Z={id:N.getId().getId(),
serviceId:"picasa",mimeType:_.hv(N,7),name:N.getName(),type:yY(N),lastEditedUtc:_.Vmv(_.DG(N,_.yL,12)).getTime(),url:N.getUrl(),sizeBytes:Number(DRY(N)),description:_.hv(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(N)),mediaKey:N.getId().getId(),parentId:_.hv(N,4)},B,O=(B=_.DG(N,Aig,18))==null?void 0:_.DG(B,LdJ,3);O&&(Z.latitude=ny(O,1),Z.longitude=ny(O,2));var X;N=(X=_.DG(N,Aig,18))==null?void 0:sD(X,6);X=N!=null?sC(N):void 0;X&&(Z.version=
X);return Z});
return{action:z,docs:D,viewToken:R,view:J||"photos",extraUserInputs:wJJ(M),v2Translated:!0}},OKv=function(M,z,J,R){M=M.map(function(D){return{id:D.getId().getId(),
serviceId:"et",name:JQ(D)[0].getUrl().split("/").pop(),description:_.hv(D,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(D),"etjpg")}});
return{action:z,docs:M,viewToken:R,view:J||"et",v2Translated:!0}},UCv=function(M,z,J,R){M=M.map(function(D){var N=D.getId().getId(),Z=R["2"];
return{id:N,serviceId:Z.type!=="gmail_themes"&&Z.parent==="6226252643674576769"?"picasa":"static_themes",name:D.getName(),mimeType:_.hv(D,7),type:yY(D),description:_.hv(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:D.getUrl(),embedUrl:D.getUrl(),thumbnails:H3(JQ(D))}});
return{action:z,docs:M,viewToken:R,view:J||"photos",v2Translated:!0}},oNB=function(M,z){M=M.map(function(J){var R=_.DG(J,fs$,27);
R=_.av(R,1,_.ov,_.JK())[0];return{id:J.getId().getId(),serviceId:"contacts",mimeType:_.hv(J,7),name:J.getName(),description:_.hv(J,3),url:"mailto:"+R,thumbnail:[{url:_.hv(J,11)}],email:R}});
return{action:z,docs:M,view:"contacts",v2Translated:!0}},BQ$=function(M){if(!M)return{};
var z=_.hv(M,3);z=z&&JSON.parse(z)||{};return{0:_.hv(M,1),1:_.hv(M,2),2:z}},H3=function(M,z){z=z===void 0?"":z;
if(!M.length)return null;z=="etjpg"&&(M=M.filter(function(J){return J.getUrl().includes("w1200-h300")}));
return M.map(function(J){return{url:J.getUrl(),height:J.getHeight(),width:J.getWidth(),type:z}})},wJJ=function(M){return{isAttachment:M.some(function(z){return _.go(z,31)})}},xCJ=function(M){var z,J={id:(z=M.getId())==null?void 0:z.getId(),
serviceId:jbp(M),mimeType:_.hv(M,7),name:M.getName(),type:yY(M),sizeBytes:Number(DRY(M)),description:_.hv(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:H3(JQ(M)),isNew:!0};if(z=_.DG(M,Mk,30)){J.dataUrl=_.hv(z,1)||null;a:{var R=_.DG(M,Mk,30);switch(_.yE(R,3)){case 9:R=_.Ky(R,rit,2,zQ);R={remoteRefs:R&&_.hv(R,1)};break a;case 10:case 15:R=_.Ky(R,bwk,4,zQ);var D=JQ(M);R={photo_id:R&&_.hv(R,1),media_key:M.getId().getId(),media_type:_.yE(M,6)===1?1:2,image_url:D&&
D[0].getUrl(),width:D&&String(D[0].getWidth()),height:D&&String(D[0].getHeight())};break a}R=null}J.uploadMetadata=R;J.uploadId=_.hv(z,9)||null;J.uploadState=pJt(z)||null}(R=z&&_.Ky(z,bwk,4,zQ))&&(J.id=_.hv(R,1));(R=z&&_.Ky(z,Mq2,5,zQ))&&(J.contentId=_.hv(R,1));(R=z&&_.Ky(z,iw$,7,zQ))&&(J.contentId=_.hv(R,1));(R=z&&_.Ky(z,Cwa,6,zQ))&&(J.contentId=_.hv(R,1));(z==null?void 0:_.yE(z,3))===1&&(J.mediaKey=M.getId().getId());return J},jbp=function(M){var z;
switch(((z=_.DG(M,Mk,30))==null?void 0:_.yE(z,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},yY=function(M){switch(_.yE(M,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.hv(M,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},pJt=function(M){switch(M==null?void 0:_.yE(M,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var gNg,FoJ,Y7B,mCB;_.sbg=function(M,z){var J=z||{};z=J.document||document;var R=_.xq(M).toString(),D=(new Yi(z)).createElement("SCRIPT"),N={script_:D,timeout_:void 0},Z=new iH(FoJ,N),B=null,O=J.timeout!=null?J.timeout:5E3;O>0&&(B=window.setTimeout(function(){Y7B(D,!0);Z.errback(new mCB(1,"Timeout reached for loading script "+R))},O),N.timeout_=B);
D.onload=D.onreadystatechange=function(){D.readyState&&D.readyState!="loaded"&&D.readyState!="complete"||(Y7B(D,J.cleanupWhenDone||!1,B),Z.callback(null))};
D.onerror=function(){Y7B(D,!0,B);Z.errback(new mCB(0,"Error while loading script "+R))};
N=J.attributes||{};_.gu.extend(N,{type:"text/javascript",charset:"UTF-8"});cSp(D,N);_.is(D,M);gNg(z).appendChild(D);return Z};
gNg=function(M){var z=Qs("HEAD",M);return z&&z.length!==0?z[0]:M.documentElement};
FoJ=function(){if(this&&this.script_){var M=this.script_;M&&M.tagName=="SCRIPT"&&Y7B(M,!0,this.timeout_)}};
Y7B=function(M,z,J){J!=null&&_.R3.clearTimeout(J);M.onload=function(){};
M.onerror=function(){};
M.onreadystatechange=function(){};
z&&window.setTimeout(function(){_.eJ(M)},0)};
mCB=function(M,z){var J="Jsloader error (code #"+M+")";z&&(J+=": "+z);_.Mb.call(this,J);this.code=M};
_.ZP(mCB,_.Mb);var nNp=_.Ca(["https://apis.google.com/js/api.js"]),hVk=_.Nx(nNp),dCk=function(M,z){var J=!1,R=yFu(M,z).then(function(N){J=!0;return N}),D=_.ZOV(5E3).then(function(){return J?yFu(M,z):HKS(z).then(function(N){return cFu(N,M)})});
return iSS([R,D])},yFu=function(M,z){return Koa(z).then(function(J){return cFu(J,M)})},cFu=function(M,z){var J=_.PY(z,"gapi.")?z.slice(5):z;
return M[J]?_.Of(M[J]):new _.If(function(R,D){var N=gs(function(){D(Error("Ya"))},3E4);
M.load(z,{callback:function(){_.R3.clearTimeout(N);R(M[J])},
onerror:function(Z){_.R3.clearTimeout(N);D(Z)}})})},Koa=function(M){return M.gapi&&M.gapi.load?_.Of(M.gapi):HKS(M)},HKS=function(M){return _.sbg(hVk,{document:M.document}).then(function(){return M.gapi})},$CS=function(){};
$CS.prototype.load=function(M,z){z=z===void 0?window:z;var J=Date.now();return dCk(M,z).then(function(R){var D=Date.now();return{library:R,loadStartMs:J,loadEndMs:D}},function(R){throw R instanceof Error?R:Error(String(R));
})};var Zon=function(){_.wS.call(this);this.gapiLoader_=new $CS;this.origin_=null;this.gapiPickerIframeResolver_=_.Ln();this.gapiIframesResolver_=_.Ln();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.w(Zon,_.wS);var uhQ=function(M,z){var J=_.qH("gapi.iframes",z);return J?(M=Date.now(),_.Of({library:J,loadStartMs:M,loadEndMs:M})):M.gapiLoader_.load("gapi.iframes",z)},q7t=function(M,z,J,R,D,N){var Z=!1;
Z=Z===void 0?!1:Z;uhQ(M,hA(z.ownerDocument)).then(function(B){var O=B.library;M.gapiIframesResolver_.resolve(O);B=M.gapiPickerIframeResolver_;var X=B.resolve,l=Z;l=l===void 0?!1:l;var e={};e["host-message-handler"]=J;M.hostMessageHandlerInternal_=e;var Q=_.um(R);Q=_.um(Q);Q=_.ND(_.DF(_.RI(new _.iS,Q.scheme_),Q.JSC$9998_domain_),Q.JSC$9998_port_).toString();M.origin_=Q;Q=(new N3k).setUrl(R);Q.JSC$10013_obj_.where=z;Q.JSC$10013_obj_.allowPost=l;Q.JSC$10013_obj_.messageHandlers=e;l=_.qH("makeWhiteListIframesFilter",
O)([M.origin_]);Q.JSC$10013_obj_.messageHandlersFilter=l;D!=null&&(Q.JSC$10013_obj_.id=D);N!=null&&(Q.JSC$10013_obj_.rpctoken=N);l=DHv(Q);l.JSC$10010_obj_.style={display:"block","min-width":"100%",width:"1px"};l.JSC$10010_obj_.height="100%";DHv(Q).value().allow="camera 'src' "+M.origin_;O=O.getContext().openChild(Q.value());X.call(B,O)},function(B){M.gapiIframesResolver_.reject(B);
M.gapiPickerIframeResolver_.reject(B)});
return M.gapiPickerIframeResolver_.promise},WoQ=function(M,z){return _.Ys([M.gapiIframesResolver_.promise,
M.gapiPickerIframeResolver_.promise]).then(function(J){var R=_.S(J);J=R.next().value;return(R=R.next().value)?R.send("picker-message-handler",z,void 0,_.qH("makeWhiteListIframesFilter",J)([M.origin_])):_.gv(Error("Za"))})};
Zon.prototype.disposeInternal=function(){aR$(this);_.wS.prototype.disposeInternal.call(this)};
var aR$=function(M){M.gapiPickerIframeResolver_.promise.then(function(z){z&&(z.unregister("host-message-handler"),delete M.hostMessageHandlerInternal_["host-message-handler"])})};var Vz$=function(){this.JSC$10100_nextId=0};var fRp=function(M,z){switch(M.action){case "select-contacts":M=ENJ(M.contacts);break;case "visibility":M=M.visible;var J=new Nk;M=_.uN(J,1,7).setVisible(M);J={};J["iframe-command"]=M.serialize();M=J;break;default:M=null}return M?WoQ(z,M):_.Of()},ENJ=function(M){if(!M||M.length==0)return null;
var z=new Nk;_.uN(z,1,11);var J=new Vz$;M.forEach(function(R){if(R.email){var D=new YI;D=_.fr(D,2,R.name?R.name:R.email);var N=new fs$;R=_.Hw8(N,1,_.Bt,R.email,_.ov);R=_.or(D,27,R);D=new asu;N=":"+(J.JSC$10100_nextId++).toString(36);D=_.fr(D,1,N);D=_.uN(D,2,12);R=_.or(R,1,D)}else R=null;R&&eI(z,7,YI,R)});
M={};M["iframe-command"]=z.serialize();return M};_.Lo$=function(){if(QaG){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(_.lG()))?M[1]:"0"}return _.e78?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(_.lG()))?M[0].replace(/_/g,"."):"10"):Jnw?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(_.lG()))?M[1]:""):v0c||G2c||wFY?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(_.lG()))?M[1].replace(/_/g,"."):""):""}();var c3;c3=function(M){return(M=M.exec(_.lG()))?M[1]:""};
_.AFu=function(){if(_.lN)return c3(/Firefox\/([0-9.]+)/);if(_.Tj||i9||o0e)return mX8;if(_.es){if(_.gR()||_.e03()){var M=c3(/CriOS\/([0-9.]+)/);if(M)return M}return c3(/Chrome\/([0-9.]+)/)}if(_.cJ&&!_.gR())return c3(/Version\/([0-9.]+)/);if(wAb||xvp){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.lG()))return M[1]+"."+M[2]}else if(yco)return(M=c3(/Android\s+([0-9.]+)/))?M:c3(/Version\/([0-9.]+)/);return""}();var iKa=function(){};
_.P9(iKa);iKa.prototype.nextId_=0;_.dq=function(M){return":"+(M.nextId_++).toString(36)};var KF=function(M){_.jB.call(this);this.JSC$10108_dom_=M||vj();this.JSC$10108_id_=null;this.inDocument_=!1;this.JSC$10108_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.ZP(KF,_.jB);KF.prototype.idGenerator_=iKa.getInstance();KF.prototype.getId=function(){return this.JSC$10108_id_||(this.JSC$10108_id_=_.dq(this.idGenerator_))};
KF.prototype.getElement=function(){return this.JSC$10108_element_};
var $e=function(M){M.googUiComponentHandler_||(M.googUiComponentHandler_=new _.Ps(M));return M.googUiComponentHandler_},C9J=function(M,z){if(M==z)throw Error("$a");
var J;if(J=z&&M.parent_&&M.JSC$10108_id_){J=M.parent_;var R=M.JSC$10108_id_;J=J.childIndex_&&R?_.gu.get(J.childIndex_,R)||null:null}if(J&&M.parent_!=z)throw Error("$a");M.parent_=z;KF.superClass_.setParentEventTarget.call(M,z)};
KF.prototype.setParentEventTarget=function(M){if(this.parent_&&this.parent_!=M)throw Error("ab");KF.superClass_.setParentEventTarget.call(this,M)};
KF.prototype.JSC$10110_createDom=function(){this.JSC$10108_element_=this.JSC$10108_dom_.createElement("DIV")};
KF.prototype.render=function(M){bKu(this,M)};
var bKu=function(M,z,J){if(M.inDocument_)throw Error("bb");M.JSC$10108_element_||M.JSC$10110_createDom();z?z.insertBefore(M.JSC$10108_element_,J||null):M.JSC$10108_dom_.JSC$9293_document_.body.appendChild(M.JSC$10108_element_);M.parent_&&!M.parent_.inDocument_||M.enterDocument()};
_.P=KF.prototype;_.P.decorate=function(M){if(this.inDocument_)throw Error("bb");if(M&&this.canDecorate(M)){this.wasDecorated_=!0;var z=_.yW(M);this.JSC$10108_dom_&&this.JSC$10108_dom_.JSC$9293_document_==z||(this.JSC$10108_dom_=vj(M));this.decorateInternal(M);this.enterDocument()}else throw Error("cb");};
_.P.canDecorate=function(){return!0};
_.P.decorateInternal=function(M){this.JSC$10108_element_=M};
_.P.enterDocument=function(){this.inDocument_=!0;rFv(this,function(M){!M.inDocument_&&M.getElement()&&M.enterDocument()})};
_.P.exitDocument=function(){rFv(this,function(M){M.inDocument_&&M.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.P.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);rFv(this,function(M){M.dispose()});
!this.wasDecorated_&&this.JSC$10108_element_&&_.eJ(this.JSC$10108_element_);this.parent_=this.model_=this.JSC$10108_element_=this.childIndex_=this.children_=null;KF.superClass_.disposeInternal.call(this)};
_.P.getModel=function(){return this.model_};
_.P.addChild=function(M,z){var J=this.children_?this.children_.length:0;if(M.inDocument_&&(z||!this.inDocument_))throw Error("bb");if(J<0||J>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);M.parent_==this?(_.gu.set(this.childIndex_,M.getId(),M),_.$o(this.children_,M)):_.gu.add(this.childIndex_,M.getId(),M);C9J(M,this);_.j3R(this.children_,J,0,M);M.inDocument_&&this.inDocument_&&M.parent_==this?(z=this.getContentElement(),
(z.childNodes[J]||null)!=M.getElement()&&(M.getElement().parentElement==z&&z.removeChild(M.getElement()),J=z.childNodes[J]||null,z.insertBefore(M.getElement(),J))):z?(this.JSC$10108_element_||this.JSC$10110_createDom(),J=this.children_?this.children_[J+1]||null:null,bKu(M,this.getContentElement(),J?J.JSC$10108_element_:null)):this.inDocument_&&!M.inDocument_&&M.JSC$10108_element_&&M.JSC$10108_element_.parentNode&&M.JSC$10108_element_.parentNode.nodeType==1&&M.enterDocument()};
_.P.getContentElement=function(){return this.JSC$10108_element_};
var rFv=function(M,z){M.children_&&M.children_.forEach(z,void 0)};
KF.prototype.removeChild=function(M,z){if(M){var J=typeof M==="string"?M:M.getId();M=this.childIndex_&&J?_.gu.get(this.childIndex_,J)||null:null;J&&M&&(_.gu.remove(this.childIndex_,J),_.$o(this.children_,M),z&&(M.exitDocument(),M.JSC$10108_element_&&_.eJ(M.JSC$10108_element_)),C9J(M,null))}if(!M)throw Error("eb");return M};_.ZP(rFp,bKY);_.ZP(MW8,bKY);var MW$;_.gu.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var zXQ=function(M,z){z?M.setAttribute("role",z):M.removeAttribute("role")},uF=function(M,z,J){Array.isArray(J)&&(J=J.join(" "));
var R="aria-"+z;J===""||J==void 0?(MW$||(J={},MW$=(J.atomic=!1,J.autocomplete="none",J.dropeffect="none",J.haspopup=!1,J.live="off",J.multiline=!1,J.multiselectable=!1,J.orientation="vertical",J.readonly=!1,J.relevant="additions text",J.required=!1,J.sort="none",J.busy=!1,J.disabled=!1,J.hidden=!1,J.invalid="false",J)),J=MW$,z in J?M.setAttribute(R,J[z]):M.removeAttribute(R)):M.setAttribute(R,J)};var JoV;_.qD=function(M,z,J){_.jB.call(this);this.target=M;this.handle=z||M;this.limits=J||new $i(NaN,NaN,NaN,NaN);this.JSC$10113_document_=_.yW(M);this.JSC$10113_eventHandler_=new _.Ps(this);_.OC(this,this.JSC$10113_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;_.YS(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=JoV};
_.ZP(_.qD,_.jB);JoV=_.R3.document&&_.R3.document.documentElement&&!!_.R3.document.documentElement.setCapture&&!!_.R3.document.releaseCapture;_.RXg=function(M,z){M.hysteresisDistanceSquared_=Math.pow(z,2)};
_.P=_.qD.prototype;_.P.setEnabled=function(M){this.enabled_=M};
_.P.disposeInternal=function(){_.qD.superClass_.disposeInternal.call(this);_.tQ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10113_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10113_document_.releaseCapture();this.handle=this.target=null};
_.P.startDrag=function(M){var z=M.type=="mousedown";if(!this.enabled_||this.dragging_||z&&(M.event_.button!=0||_.e78&&M.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new W3("start",this,M.clientX,M.clientY,M)))this.dragging_=!0,z&&M.preventDefault();else return;else z&&M.preventDefault();z=this.JSC$10113_document_;var J=z.documentElement,R=!this.useSetCapture_;this.JSC$10113_eventHandler_.listen(z,["touchmove","mousemove"],this.handleMove_,
{capture:R,passive:!1});this.JSC$10113_eventHandler_.listen(z,["touchend","mouseup"],this.endDrag,R);this.useSetCapture_?(J.setCapture(!1),this.JSC$10113_eventHandler_.listen(J,"losecapture",this.endDrag)):this.JSC$10113_eventHandler_.listen(hA(z),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10113_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,R);this.clientX=this.startX=M.clientX;this.clientY=this.startY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Ua(vj(this.JSC$10113_document_))}};
_.P.endDrag=function(M,z){this.JSC$10113_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10113_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new W3("end",this,M.clientX,M.clientY,M,DcV(this,this.deltaX),Nc2(this,this.deltaY),z||M.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.P.handleMove_=function(M){if(this.enabled_){var z=M.clientX-this.clientX,J=M.clientY-this.clientY;this.clientX=M.clientX;this.clientY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;if(!this.dragging_){var R=this.startX-this.clientX,D=this.startY-this.clientY;if(R*R+D*D>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new W3("start",this,M.clientX,M.clientY,M)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(M);return}}J=PDB(this,z,J);z=J.x;J=J.y;this.dragging_&&this.dispatchEvent(new W3("beforedrag",
this,M.clientX,M.clientY,M,z,J))&&(Syg(this,M,z,J),M.preventDefault())}};
var PDB=function(M,z,J){var R=Ua(vj(M.JSC$10113_document_));z+=R.x-M.pageScroll.x;J+=R.y-M.pageScroll.y;M.pageScroll=R;M.deltaX+=z;M.deltaY+=J;return new _.nO(DcV(M,M.deltaX),Nc2(M,M.deltaY))};
_.qD.prototype.onScroll_=function(M){var z=PDB(this,0,0);M.clientX=this.clientX;M.clientY=this.clientY;Syg(this,M,z.x,z.y)};
var Syg=function(M,z,J,R){M.target.style.left=J+"px";M.target.style.top=R+"px";M.dispatchEvent(new W3("drag",M,z.clientX,z.clientY,z,J,R))},DcV=function(M,z){var J=M.limits;
M=isNaN(J.left)?null:J.left;J=isNaN(J.width)?0:J.width;return Math.min(M!=null?M+J:Infinity,Math.max(M!=null?M:-Infinity,z))},Nc2=function(M,z){var J=M.limits;
M=isNaN(J.top)?null:J.top;J=isNaN(J.height)?0:J.height;return Math.min(M!=null?M+J:Infinity,Math.max(M!=null?M:-Infinity,z))};
_.qD.prototype.isDragging=function(){return this.dragging_};
var W3=function(M,z,J,R,D,N,Z){_.vR.call(this,M);this.clientX=J;this.clientY=R;this.browserEvent=D;this.left=N!==void 0?N:z.deltaX;this.top=Z!==void 0?Z:z.deltaY};
_.ZP(W3,_.vR);var aI=function(M){this.JSC$10120_map_=new Map;var z=arguments.length;if(z>1){if(z%2)throw Error("ka");for(var J=0;J<z;J+=2)this.set(arguments[J],arguments[J+1])}else M&&this.addAll(M)};
_.P=aI.prototype;_.P.getCount=function(){return this.JSC$10120_map_.size};
_.P.getValues=function(){return Array.from(this.JSC$10120_map_.values())};
_.P.getKeys=function(){return Array.from(this.JSC$10120_map_.keys())};
_.P.containsKey=function(M){return this.JSC$10120_map_.has(M)};
_.P.containsValue=function(M){return this.getValues().some(function(z){return z==M})};
_.P.equals=function(M,z){var J=this;z=z===void 0?function(R,D){return R===D}:z;
return this===M?!0:this.JSC$10120_map_.size!=M.getCount()?!1:this.getKeys().every(function(R){return z(J.JSC$10120_map_.get(R),M.get(R))})};
_.P.isEmpty=function(){return this.JSC$10120_map_.size==0};
_.P.clear=function(){this.JSC$10120_map_.clear()};
_.P.remove=function(M){return this.JSC$10120_map_.delete(M)};
_.P.get=function(M,z){return this.JSC$10120_map_.has(M)?this.JSC$10120_map_.get(M):z};
_.P.set=function(M,z){this.JSC$10120_map_.set(M,z);return this};
_.P.addAll=function(M){if(M instanceof aI){M=_.S(M.JSC$10120_map_);for(var z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;this.JSC$10120_map_.set(z,J)}}else if(M)for(M=_.S(Object.entries(M)),z=M.next();!z.done;z=M.next())J=_.S(z.value),z=J.next().value,J=J.next().value,this.JSC$10120_map_.set(z,J)};
_.P.forEach=function(M,z){var J=this;z=z===void 0?this:z;this.JSC$10120_map_.forEach(function(R,D){return M.call(z,R,D,J)})};
_.P.clone=function(){return new aI(this)};(function(){for(var M=["ms","moz","webkit","o"],z,J=0;z=M[J]&&!_.R3.requestAnimationFrame;++J)_.R3.requestAnimationFrame=_.R3[z+"RequestAnimationFrame"],_.R3.cancelAnimationFrame=_.R3[z+"CancelAnimationFrame"]||_.R3[z+"CancelRequestAnimationFrame"];if(!_.R3.requestAnimationFrame){var R=0;_.R3.requestAnimationFrame=function(D){var N=(new Date).getTime(),Z=Math.max(0,16-(N-R));R=N+Z;return _.R3.setTimeout(function(){D(N+Z)},Z)};
_.R3.cancelAnimationFrame||(_.R3.cancelAnimationFrame=function(D){clearTimeout(D)})}})();
var ZoQ=[[],[]],kUS=0,BcV=!1,Ook=0,IG$=function(M,z){var J=Ook++,R={measureTask:{id:J,fn:M.measure,context:z},mutateTask:{id:J,fn:M.mutate,context:z},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(R.args||(R.args=[]),R.args.length=0,R.args.push.apply(R.args,arguments),R.args.push(R.state)):R.args&&R.args.length!=0?(R.args[0]=R.state,R.args.length=1):R.args=[R.state];R.isScheduled||(R.isScheduled=!0,ZoQ[kUS].push(R));BcV||(BcV=!0,window.requestAnimationFrame(TcS))}},TcS=
function(){BcV=!1;
var M=ZoQ[kUS],z=M.length;kUS=(kUS+1)%2;for(var J,R=0;R<z;++R){J=M[R];var D=J.measureTask;J.isScheduled=!1;D.fn&&D.fn.apply(D.context,J.args)}for(R=0;R<z;++R)J=M[R],D=J.mutateTask,J.isScheduled=!1,D.fn&&D.fn.apply(D.context,J.args),J.state={};M.length=0};var o_Q=_.Ca(["about:blank"]),XIu=_.Ca(["javascript:undefined"]),lG$=_.Nx(o_Q);_.xq(lG$);var eXu=_.Nx(XIu);_.xq(eXu);var VY=function(M){_.jB.call(this);this.JSC$10126_element_=M;this.listenKeyIn_=_.YS(this.JSC$10126_element_,"focus",this,!0);this.listenKeyOut_=_.YS(this.JSC$10126_element_,"blur",this,!0)};
_.ZP(VY,_.jB);VY.prototype.handleEvent=function(M){var z=new _.GQ(M.event_);z.type=M.type=="focusin"||M.type=="focus"?"focusin":"focusout";this.dispatchEvent(z)};
VY.prototype.disposeInternal=function(){VY.superClass_.disposeInternal.call(this);j5(this.listenKeyIn_);j5(this.listenKeyOut_);delete this.JSC$10126_element_};var QHQ=function(M,z){this.JSC$10129_element_=M;this.JSC$10129_dom_=z};var Ek=function(M,z){KF.call(this,z);this.useIframeMask_=!!M;this.lastFocus_=null;this.resizeBackgroundTask_=IG$({mutate:this.resizeBackground_},this);IG$({mutate:this.updateModalAndBackground_},this)};
_.ZP(Ek,KF);_.P=Ek.prototype;_.P.focusHandler_=null;_.P.visible_=!1;_.P.bgEl_=null;_.P.bgIframeEl_=null;_.P.tabCatcherElement_=null;_.P.backwardTabWrapInProgress_=!1;_.P.getCssClass=function(){return"goog-modalpopup"};
_.P.getBackgroundElement=function(){return this.bgEl_};
_.P.JSC$10110_createDom=function(){Ek.superClass_.JSC$10110_createDom.call(this);var M=this.getElement(),z=o3(this.getCssClass()).split(" ");Ls(M,z);M.tabIndex=0;_.a2(M,!1);UcS(this);v_V(this)};
var UcS=function(M){if(M.useIframeMask_&&!M.bgIframeEl_){var z=M.JSC$10108_dom_.JSC$9295_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.W4(z,lG$);M.bgIframeEl_=z;M.bgIframeEl_.className=M.getCssClass()+"-bg";_.a2(M.bgIframeEl_,!1);TlS(M.bgIframeEl_,0)}M.bgEl_||(M.bgEl_=M.JSC$10108_dom_.JSC$9295_createDom("DIV",M.getCssClass()+"-bg"),_.a2(M.bgEl_,!1))},v_V=function(M){M.tabCatcherElement_||(M.tabCatcherElement_=M.JSC$10108_dom_.createElement("SPAN"),_.a2(M.tabCatcherElement_,
!1),M.tabCatcherElement_.tabIndex=0,M.tabCatcherElement_.style.position="absolute")};
_.P=Ek.prototype;_.P.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.P.canDecorate=function(M){return!!M&&M.tagName=="DIV"};
_.P.decorateInternal=function(M){Ek.superClass_.decorateInternal.call(this,M);M=o3(this.getCssClass()).split(" ");Ls(this.getElement(),M);UcS(this);v_V(this);this.getElement().tabIndex=0;_.a2(this.getElement(),!1)};
_.P.enterDocument=function(){this.bgIframeEl_&&_.HK(this.bgIframeEl_,this.getElement());_.HK(this.bgEl_,this.getElement());Ek.superClass_.enterDocument.call(this);_.cK(this.tabCatcherElement_,this.getElement());this.focusHandler_=new VY(this.JSC$10108_dom_.JSC$9293_document_);$e(this).listen(this.focusHandler_,"focusin",this.onFocus);GUV(this,!1)};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.bv(this.focusHandler_);Ek.superClass_.exitDocument.call(this);_.eJ(this.bgIframeEl_);_.eJ(this.bgEl_);_.eJ(this.tabCatcherElement_)};
_.P.setVisible=function(M){if(M!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&GUV(this,M),M){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10108_dom_.JSC$9293_document_.activeElement}catch(D){}this.updateModalAndBackground_();$e(this).listen(this.JSC$10108_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10108_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);wIV(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)th(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){$e(this).unlisten(this.JSC$10108_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10108_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)th(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var z=this.JSC$10108_dom_,J=z.JSC$9293_document_.body,R=z.JSC$9293_document_.activeElement||J;if(!this.lastFocus_||this.lastFocus_==J){this.lastFocus_=null;break a}(R==J||z.contains(this.getElement(),R))&&this.lastFocus_.focus()}catch(D){}this.lastFocus_=
null}}};
var GUV=function(M,z){M.modalAriaVisibilityHelper_||(M.modalAriaVisibilityHelper_=new QHQ(M.JSC$10108_element_,M.JSC$10108_dom_));M=M.modalAriaVisibilityHelper_;if(z){M.hiddenElements_||(M.hiddenElements_=[]);z=M.JSC$10129_dom_.getChildren(M.JSC$10129_dom_.JSC$9293_document_.body);for(var J=0;J<z.length;J++){var R=z[J],D;if(D=R!=M.JSC$10129_element_)D=R.getAttribute("aria-hidden"),D=!(D==null||D==void 0?0:String(D));D&&(uF(R,"hidden",!0),M.hiddenElements_.push(R))}}else if(M.hiddenElements_){for(z=
0;z<M.hiddenElements_.length;z++)M.hiddenElements_[z].removeAttribute("aria-hidden");M.hiddenElements_=null}};
Ek.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var wIV=function(M,z){M.bgIframeEl_&&_.a2(M.bgIframeEl_,z);M.bgEl_&&_.a2(M.bgEl_,z);_.a2(M.getElement(),z);_.a2(M.tabCatcherElement_,z)};
_.P=Ek.prototype;_.P.onShow=function(){this.dispatchEvent("show")};
_.P.onHide=function(){wIV(this,!1);this.dispatchEvent("hide")};
_.P.isVisible=function(){return this.visible_};
_.P.focus=function(){this.focusElement_()};
_.P.resizeBackground_=function(){this.bgIframeEl_&&_.a2(this.bgIframeEl_,!1);this.bgEl_&&_.a2(this.bgEl_,!1);var M=this.JSC$10108_dom_.JSC$9293_document_;var z=_.QW(hA(this.JSC$10108_dom_.JSC$9293_document_)||window);var J=Math.max(z.width,Math.max(M.body.scrollWidth,M.documentElement.scrollWidth));M=Math.max(z.height,Math.max(M.body.scrollHeight,M.documentElement.scrollHeight));this.bgIframeEl_&&(_.a2(this.bgIframeEl_,!0),_.Zwt(this.bgIframeEl_,J,M));this.bgEl_&&(_.a2(this.bgEl_,!0),_.Zwt(this.bgEl_,
J,M))};
_.P.reposition=function(){var M;if(_.S5p(this.getElement())=="fixed")var z=M=0;else z=Ua(this.JSC$10108_dom_),M=z.x,z=z.y;var J=BlV(this.getElement());var R=_.QW(hA(this.JSC$10108_dom_.JSC$9293_document_)||window);M=Math.max(M+R.width/2-J.width/2,0);z=Math.max(z+R.height/2-J.height/2,0);WK(this.getElement(),M,z);WK(this.tabCatcherElement_,M,z)};
_.P.onFocus=function(M){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():M.target==this.tabCatcherElement_&&gs(this.focusElement_,0,this)};
_.P.focusElement_=function(){try{this.getElement().focus()}catch(M){}};
_.P.disposeInternal=function(){_.bv(this.popupShowTransition_);this.popupShowTransition_=null;_.bv(this.popupHideTransition_);this.popupHideTransition_=null;_.bv(this.bgShowTransition_);this.bgShowTransition_=null;_.bv(this.bgHideTransition_);this.bgHideTransition_=null;Ek.superClass_.disposeInternal.call(this)};var nW=function(M,z,J){Ek.call(this,z,J);this.JSC$10139_class_=M||"modal-dialog";this.buttons_=(new fF).addButton(xct,!0).addButton(tW$,!1,!0)};
_.ZP(nW,Ek);_.P=nW.prototype;_.P.escapeToCancel_=!0;_.P.hasTitleCloseButton_=!0;_.P.modal_=!0;_.P.draggable_=!0;_.P.backgroundElementOpacity_=.5;_.P.title_="";_.P.JSC$10141_dragger_=null;_.P.JSC$10141_disposeOnHide_=!1;_.P.titleEl_=null;_.P.titleTextEl_=null;_.P.titleTextId_=null;_.P.titleCloseEl_=null;_.P.contentEl_=null;_.P.buttonEl_=null;_.P.getCssClass=function(){return this.JSC$10139_class_};
_.P.setTitle=function(M){this.title_=M;this.titleTextEl_&&_.KQ(this.titleTextEl_,M)};
_.P.getTitle=function(){return this.title_};
_.P.getContent=function(){return""};
_.P.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var jHS=function(M){M.getElement()||M.render();return M.getElement()};
nW.prototype.getBackgroundElement=function(){this.getElement()||this.render();return nW.superClass_.getBackgroundElement.call(this)};
var pIp=function(M,z){M.backgroundElementOpacity_=z;M.getElement()&&(z=M.getBackgroundElement())&&TlS(z,M.backgroundElementOpacity_)};
nW.prototype.setDraggable=function(M){this.draggable_=M;F2u(this,M&&this.inDocument_)};
nW.prototype.handleDrag=function(){};
var F2u=function(M,z){var J=o3(M.JSC$10139_class_+"-title-draggable").split(" ");M.getElement()&&(z?Ls(M.titleEl_,J):zSp(M.titleEl_,J));z&&!M.JSC$10141_dragger_?(z=new _.qD(M.getElement(),M.titleEl_),M.JSC$10141_dragger_=z,Ls(M.titleEl_,J),_.YS(M.JSC$10141_dragger_,"start",M.setDraggerLimits_,!1,M),_.YS(M.JSC$10141_dragger_,"drag",M.handleDrag,!1,M)):!z&&M.JSC$10141_dragger_&&(M.JSC$10141_dragger_.dispose(),M.JSC$10141_dragger_=null)};
_.P=nW.prototype;
_.P.JSC$10110_createDom=function(){nW.superClass_.JSC$10110_createDom.call(this);var M=this.getElement(),z=this.JSC$10108_dom_;this.titleTextId_=this.getId();var J=this.getId()+".contentEl";this.titleEl_=z.JSC$9295_createDom("DIV",this.JSC$10139_class_+"-title",this.titleTextEl_=z.JSC$9295_createDom("SPAN",{className:this.JSC$10139_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=z.JSC$9295_createDom("SPAN",this.JSC$10139_class_+"-title-close"));q$p(M,this.titleEl_,this.contentEl_=
z.JSC$9295_createDom("DIV",{className:this.JSC$10139_class_+"-content",id:J}),this.buttonEl_=z.JSC$9295_createDom("DIV",this.JSC$10139_class_+"-buttons"));zXQ(this.titleTextEl_,"heading");zXQ(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;uF(this.titleCloseEl_,"label","Close");zXQ(M,"dialog");uF(M,"labelledby",this.titleTextId_||"");_.a2(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(M=this.buttons_,M.JSC$10142_element_=this.buttonEl_,M.render());_.a2(this.buttonEl_,!!this.buttons_);
pIp(this,this.backgroundElementOpacity_)};
_.P.decorateInternal=function(M){nW.superClass_.decorateInternal.call(this,M);M=this.getElement();var z=this.JSC$10139_class_+"-content";this.contentEl_=mc(document,null,z,M)[0];this.contentEl_||(this.contentEl_=this.JSC$10108_dom_.JSC$9295_createDom("DIV",z),M.appendChild(this.contentEl_));z=this.JSC$10139_class_+"-title";var J=this.JSC$10139_class_+"-title-text",R=this.JSC$10139_class_+"-title-close";(this.titleEl_=mc(document,null,z,M)[0])?(this.titleTextEl_=mc(document,null,J,this.titleEl_)[0],
this.titleCloseEl_=mc(document,null,R,this.titleEl_)[0]):(this.titleEl_=this.JSC$10108_dom_.JSC$9295_createDom("DIV",z),M.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Jiu(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.sc("SPAN",{className:J,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;uF(M,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10108_dom_.JSC$9295_createDom("SPAN",R),this.titleEl_.appendChild(this.titleCloseEl_));_.a2(this.titleCloseEl_,this.hasTitleCloseButton_);z=this.JSC$10139_class_+"-buttons";(this.buttonEl_=mc(document,null,z,M)[0])?(this.buttons_=new fF(this.JSC$10108_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10108_dom_.JSC$9295_createDom("DIV",z),M.appendChild(this.buttonEl_),this.buttons_&&(M=this.buttons_,M.JSC$10142_element_=this.buttonEl_,M.render()),_.a2(this.buttonEl_,
!!this.buttons_));pIp(this,this.backgroundElementOpacity_)};
_.P.enterDocument=function(){nW.superClass_.enterDocument.call(this);$e(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);$e(this).listen(this.buttonEl_,"click",this.onButtonClick_);F2u(this,this.draggable_);$e(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var M=this.getElement();zXQ(M,"dialog");this.titleTextEl_.id!==""&&uF(M,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){M=this.JSC$10108_dom_;
var z=this.getBackgroundElement();M.removeNode(this.bgIframeEl_);M.removeNode(z)}this.isVisible()&&GUV(this,!1)}};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);F2u(this,!1);nW.superClass_.exitDocument.call(this)};
_.P.setVisible=function(M){M!=this.isVisible()&&(this.inDocument_||this.render(),nW.superClass_.setVisible.call(this,M))};
_.P.onShow=function(){nW.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.P.onHide=function(){nW.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10141_disposeOnHide_&&this.dispose()};
_.P.setDraggerLimits_=function(){var M=this.JSC$10108_dom_.JSC$9293_document_,z=_.QW(hA(M)||window),J=Math.max(M.body.scrollWidth,z.width);M=Math.max(M.body.scrollHeight,z.height);var R=BlV(this.getElement());_.S5p(this.getElement())=="fixed"?this.JSC$10141_dragger_.limits=new $i(0,0,Math.max(0,z.width-R.width),Math.max(0,z.height-R.height)):this.JSC$10141_dragger_.limits=new $i(0,0,J-R.width,M-R.height)};
_.P.onTitleCloseClick_=function(){YyB(this)};
var YyB=function(M){if(M.hasTitleCloseButton_){var z=M.buttons_,J=z&&z.cancelButton_;J?(z=z.get(J),M.dispatchEvent(new LF(J,z))&&M.setVisible(!1)):M.setVisible(!1)}},mcg=function(M){M.hasTitleCloseButton_=!1;
M.titleCloseEl_&&_.a2(M.titleCloseEl_,M.hasTitleCloseButton_)};
nW.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;nW.superClass_.disposeInternal.call(this)};
nW.prototype.onButtonClick_=function(M){a:{for(M=M.target;M!=null&&M!=this.buttonEl_;){if(M.tagName=="BUTTON")break a;M=M.parentNode}M=null}if(M&&!M.disabled){M=M.name;var z=this.buttons_.get(M);this.dispatchEvent(new LF(M,z))&&this.setVisible(!1)}};
nW.prototype.onKey_=function(M){var z=!1,J=!1,R=this.buttons_,D=M.target;if(M.type=="keydown")if(this.escapeToCancel_&&M.keyCode==27){var N=R&&R.cancelButton_;D=D.tagName=="SELECT"&&!D.disabled;N&&!D?(J=!0,z=R.get(N),z=this.dispatchEvent(new LF(N,z))):D||(z=!0)}else{if(M.keyCode==9&&M.shiftKey&&D==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(l){}gs(this.resetBackwardTabWrap_,0,this)}}else if(M.keyCode==13){if(D.tagName=="BUTTON"&&!D.disabled)N=D.name;
else if(D==this.titleCloseEl_)YyB(this);else if(R){var Z=R.defaultButton_,B;if(B=Z)a:{B=Qs("BUTTON",R.JSC$10142_element_);for(var O,X=0;O=B[X];X++)if(O.name==Z||O.id==Z){B=O;break a}B=null}D=(D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="A")&&!D.disabled;!B||B.disabled||D||(N=Z)}N&&R&&(J=!0,z=this.dispatchEvent(new LF(N,String(R.get(N)))))}else D!=this.titleCloseEl_||M.keyCode!=32&&M.key!=" "||YyB(this);if(z||J)M.stopPropagation(),M.preventDefault();z&&this.setVisible(!1)};
var LF=function(M,z){this.type="dialogselect";this.key=M;this.caption=z};
_.ZP(LF,_.vR);var fF=function(M){aI.call(this);M||vj();this.cancelButton_=this.JSC$10142_element_=this.defaultButton_=null};
_.ZP(fF,aI);_.P=fF.prototype;_.P.clear=function(){aI.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.P.set=function(M,z,J,R){aI.prototype.set.call(this,M,z);J&&(this.defaultButton_=M);R&&(this.cancelButton_=M);return this};
_.P.addButton=function(M,z,J){return this.set(M.key,M.caption,z,J)};
_.P.render=function(){if(this.JSC$10142_element_){_.C3(this.JSC$10142_element_,Tce);var M=vj(this.JSC$10142_element_);this.forEach(function(z,J){z=M.JSC$9295_createDom("BUTTON",{name:J},z);J==this.defaultButton_&&(z.className="goog-buttonset-default");this.JSC$10142_element_.appendChild(z)},this)}};
_.P.decorate=function(M){if(M&&M.nodeType==1){this.JSC$10142_element_=M;M=Qs("BUTTON",this.JSC$10142_element_);for(var z,J,R,D=0;z=M[D];D++)if(J=z.name||z.id,R=Jiu(z)||z.value,J){var N=D==0;this.set(J,R,N,z.name=="cancel");N&&_.M7(z,"goog-buttonset-default")}}};
_.P.getElement=function(){return this.JSC$10142_element_};
var xct={key:"ok",caption:"OK"},tW$={key:"cancel",caption:"Cancel"},g_Q={key:"yes",caption:"Yes"},sHQ={key:"no",caption:"No"},n_V={key:"save",caption:"Save"},hX$={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new fF).addButton(xct,!0,!0),(new fF).addButton(xct,!0).addButton(tW$,!1,!0),(new fF).addButton(g_Q,!0).addButton(sHQ,!1,!0),(new fF).addButton(g_Q).addButton(sHQ,!0).addButton(tW$,!1,!0),(new fF).addButton(hX$).addButton(n_V).addButton(tW$,!0,!0));_.ZP(zXn,nW);_.ZP(Joc,hK);var yov=_.Ca(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Ho$=_.Ca(["//apis.google.com/js/rpc.js"]),Oo3=_.Nx(yov),Bcc=_.Nx(Ho$),Dcc=null;var H6=function(M,z){_.jB.call(this);this.JSC$10151_element_=M;M=_.iD(this.JSC$10151_element_)?this.JSC$10151_element_:this.JSC$10151_element_?this.JSC$10151_element_.body:null;this.isRtl_=!!M&&_.Isg(M);this.listenKey_=_.YS(this.JSC$10151_element_,_.IJ?"DOMMouseScroll":"mousewheel",this,z)};
_.ZP(H6,_.jB);H6.prototype.handleEvent=function(M){var z=0,J=0,R=M.event_;R.type=="mousewheel"?(M=cou(-R.wheelDelta),R.wheelDeltaX!==void 0?(z=cou(-R.wheelDeltaX),J=cou(-R.wheelDeltaY)):J=M):(M=R.detail,M>100?M=3:M<-100&&(M=-3),R.axis!==void 0&&R.axis===R.HORIZONTAL_AXIS?z=M:J=M);typeof this.maxDeltaX_==="number"&&(z=_.dy(z,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(J=_.dy(J,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(z=-z);z=new dcv(M,R,z,J);this.dispatchEvent(z)};
var cou=function(M){return _.oJ&&(_.e78||UXY)&&M%40!=0?M:M/40};
H6.prototype.disposeInternal=function(){H6.superClass_.disposeInternal.call(this);j5(this.listenKey_);this.listenKey_=null};
var dcv=function(M,z,J,R){_.GQ.call(this,z);this.type="mousewheel";this.detail=M;this.deltaX=J;this.deltaY=R};
_.ZP(dcv,_.GQ);_.Jx=function(M){var z="instance_";if(M.instance_&&M.hasOwnProperty(z))return M.instance_;z=new M;return M.instance_=z};var kUe;var K2a=_.Ca(["https://about:blank"]),$cJ=_.Ca(['javascript:""']),uJg=_.Ca(["about:blank"]);_.ZP(Vs,zXn);_.P=Vs.prototype;_.P.JSC$10159_url_="";_.P.JSC$10159_iframe_=null;_.P.iframeLoaded_=!1;_.P.loadedFired_=!1;_.P.callback_=function(){};
_.P.enterDocument=function(){Vs.superClass_.enterDocument.call(this);SyR(this.getBackgroundElement(),$e(this))};
_.P.render=function(M){var z=this;Vs.superClass_.render.call(this,M);this.useGapi_?uhQ(this.iframeManager_,window).then(function(){return qyV(z)}).then(null,function(){z.callback_({action:"error"})}):W2$(this)};
var qyV=function(M){var z=M.JSC$10108_dom_.JSC$9295_createDom("div",["picker-dialog-content","picker-frame"]);_.a2(z,!1);M.getContentElement().appendChild(z);return q7t(M.iframeManager_,z,function(J){var R=SwQ(J["iframe-command"]);switch(R.getCommand()){case 1:J=M.callback_;R=_.DG(R,DC,2);var D="";switch(R.getStatus()){case 2:D="cancel";break;case 1:D="picked";break;case 3:D="error"}var N=_.zz(R,YI,2,_.JK(axH));R=N.length===0?{action:D}:Gwa(N,D,_.DG(R,DEJ,7));J.call(M,R);M.setVisible(!1);break;case 4:mcg(M);
M.callback_({action:"loaded"});break;case 7:case 8:J=M.callback_;a:{D=R.getCommand();N=_.DG(R,DC,2);switch(D){case 7:D="uploadScheduled";break;case 8:D="uploadStateChange";break;default:R={};break a}R=_.zz(N,YI,2,_.JK(axH));if(R.length===0)R={action:D};else{var Z=_.DG(N,DEJ,7);N=Z&&_.hv(Z,1);Z=BQ$(Z);R=IRV(R,D,N,Z)}}J.call(M,R)}},M.JSC$10159_url_,M.targetId_,M.rpcToken_).then(function(J){M.JSC$10159_iframe_=J.getIframeEl();
aGV(M);_.a2(M.JSC$10159_iframe_.parentElement,!0);_.M7(M.getElement(),"picker-dialog");VWJ(M);return J})},W2$=function(M){M.JSC$10159_iframe_=M.JSC$10108_dom_.JSC$9295_createDom("IFRAME",{id:M.targetId_,
name:M.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.W4(M.JSC$10159_iframe_,E_a(M));_.M7(M.getElement(),"picker-dialog");M.getContentElement().appendChild(M.JSC$10159_iframe_);$e(M).listen(M.JSC$10159_iframe_,"load",function(){return void aGV(M)});
M.JSC$10159_iframe_.src=M.JSC$10159_url_;VWJ(M)},L22=function(M){fG$(M,(0,_.xF)(function(z){z.setAuthToken(this.targetId_,this.rpcToken_)},M))},VWJ=function(M){var z=_.q$(_.um(M.JSC$10159_url_),"title");
z&&M.setTitle(z)},E_a=function(M){return _.ooG("Internet Explorer")>=7&&_.PY(M.JSC$10159_url_,"https")?_.Nx(K2a):_.Tj?_.Nx($cJ):_.Nx(uJg)},aGV=function(M){L22(M);
M.iframeLoaded_=!0;M.JSC$10159_iframe_.tabIndex=0;M.isVisible()&&M.focus()};
Vs.prototype.handleKeydown_=function(M){M.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),M.stopPropagation(),M.preventDefault())};
var fG$=function(M,z){var J=M.JSC$10157_gadgetsDomHelper_;Nc0(function(){z(J.getWindow().gadgets.rpc)},J)};
Vs.prototype.setUrl=function(M){M=_.W6(new _.iS(M),"rpcService",this.targetId_);_.W6(M,"rpctoken",this.rpcToken_);_.ZF(M,"rpctoken="+this.rpcToken_);_.RI(M,"https");this.JSC$10159_url_=M.toString();this.JSC$10159_iframe_&&(this.JSC$10159_iframe_.src=this.JSC$10159_url_)};
var Aov=function(M,z){M.callback_=z;fG$(M,(0,_.xF)(function(J){J.register(this.targetId_,(0,_.xF)(this.handlePickerAction_,this))},M))};
Vs.prototype.handlePickerAction_=function(M){var z=M.action;z=="loaded"&&(this.loadedFired_=!0,io2(this,new MW8(this.isVisible())),CDg(this),mcg(this),$e(this).unlisten(this.JSC$10108_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10159_iframe_.tabIndex=0);z!="picked"&&z!="cancel"||this.setVisible(!1);this.callback_(M)};
var CDg=function(M){M.JSC$10159_appId_&&io2(M,new rFp(M.JSC$10159_appId_,window.location.protocol+"//"+window.location.host))};
Vs.prototype.setRelayUrl=function(M){fG$(this,(0,_.xF)(function(z){z.setRelayUrl(this.targetId_,M)},this))};
var io2=function(M,z){M.useGapi_&&fRp(z,M.iframeManager_).then(null,function(){M.callback_({action:"error"})});
fG$(M,(0,_.xF)(function(J){J.call(this.targetId_,"picker",null,z)},M))};
Vs.prototype.resizePicker_=function(){var M=hA(this.JSC$10108_dom_.JSC$9293_document_)||window;if(_.q$(_.um(this.JSC$10159_url_),"ignoreLimits")=="true")M=new _.eU(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.q$(_.um(this.JSC$10159_url_),"shadeDialog")=="true"){var z=jHS(this);z=oG$(z);var J=_.QW(M);M=J.width-80;J=J.height-40;z&&(M-=z.left?z.left:0,M-=z.right?z.right:0,J-=z.top?z.top:0,J-=z.bottom?z.bottom:0);M=new _.eU(M>0?M:0,J>0?J:0)}else(z=this.preferredDialogWidth_)?(z=Math.max(320,
Math.min(1051,z)),(J=this.preferredDialogHeight_)||(J=_.QW(M).height*.85),J=Math.max(480,Math.min(650,J))):(z=_.QW(M),J=z.width*.618,J=J<z.height?Math.round(Math.max(480,Math.min(650,J*.85))):Math.round(Math.max(480,Math.min(650,z.height*.85))),z=Math.round(J/.618)),M=_.QW(M),z=Math.min(z,Math.max(M.width,320)),J=Math.min(J,Math.max(M.height,480)),M=new _.eU(z,J);_.Zwt(this.getContentElement(),M);this.reposition()};
Vs.prototype.reposition=function(){if(_.q$(_.um(this.JSC$10159_url_),"shadeDialog")=="true"){var M=BlV(this.getElement()),z=_.QW(this.JSC$10108_dom_.getWindow());M=Math.floor(z.width/2-M.width/2);z=jHS(this);if(z=oG$(z)){var J=z.left?z.left:0;J+=z.right?z.right:0;M=Math.floor(M-J/2)}M=M>0?M:0;z=Ua(this.JSC$10108_dom_).y;WK(this.getElement(),M,z)}else Vs.superClass_.reposition.call(this)};
Vs.prototype.setVisible=function(M){if(M!=this.isVisible()&&this.autoSizeDialog_){var z=this.JSC$10108_dom_.getWindow();M?(this.resizePicker_(),$e(this).listen(z,"resize",this.resizePicker_),this.iframeLoaded_||$e(this).listen(z,"keydown",this.handleKeydown_)):($e(this).unlisten(z,"resize",this.resizePicker_),this.iframeLoaded_||$e(this).unlisten(z,"keydown",this.handleKeydown_))}Vs.superClass_.setVisible.call(this,M);io2(this,new MW8(M))};
Vs.prototype.focus=function(){Vs.superClass_.focus.call(this);if(this.JSC$10159_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10159_iframe_.focus()}catch(M){}};var yO=function(M,z){z=z===void 0?Vs:z;hK.call(this,M);this.pickerConstructor=z;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(M=window.location.origin)||(M=window.location.protocol+"//"+window.location.host);M&&this.urlParamMap_.set("origin",M);this.postProcessors_=[]};
_.w(yO,Joc);yO.prototype.JSC$10164_disposeOnHide_=!1;
yO.prototype.build=function(){this.JSC$10065_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10065_appId_);this.getRelayUrl()||this.setRelayUrl(_.P3(_.ZF(_.SH(_.um(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var M=new this.pickerConstructor(boQ(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);M.JSC$10141_disposeOnHide_=this.JSC$10164_disposeOnHide_;
M.JSC$10159_appId_=this.JSC$10065_appId_;M.loadedFired_&&CDg(M);Aov(M,this.callback_);return M};
var rog=function(M){M.urlParamMap_.set("multiselectEnabled","true");return M};
_.P=yO.prototype;_.P.getHeight=function(){return this.dialogHeight_};
_.P.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.P.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.P.getTitle=function(){return this.urlParamMap_.get("title")};
_.P.getWidth=function(){return this.dialogWidth_};
var MIJ=function(M){M.JSC$10164_disposeOnHide_=void 0;return M};
yO.prototype.setRelayUrl=function(M){this.urlParamMap_.set("parent",M);return this};
var zAp=function(M,z){M.urlParamMap_.set("selectButtonLabel",z);return M};
yO.prototype.setSize=function(M,z){this.dialogWidth_=M;this.dialogHeight_=z;return this};
yO.prototype.setTitle=function(M){this.urlParamMap_.set("title",M);return this};
var boQ=function(M){M.postProcessors_.length&&M.urlParamMap_.set("pp",JSON.stringify(M.postProcessors_));M.urlParamMap_.set("nav",P9a(M.nav_));var z=new _.iS(M.getBaseUrl());M.urlParamMap_.forEach(function(J,R){_.W6(z,R,J)});
return z};var Dpt=function(M,z){M.name!==void 0?(this.name=M.name,this.code=JL$[M.name]):(this.code=M=M.code,this.name=RA$(M));_.Mb.call(this,tpt("%s %s",this.name,z))};
_.ZP(Dpt,_.Mb);var RA$=function(M){var z=_.gu.findKey(JL$,function(J){return M==J});
if(z===void 0)throw Error("hb`"+M);return z},Ab={},JL$=(Ab.AbortError=3,Ab.EncodingError=5,Ab.InvalidModificationError=9,Ab.InvalidStateError=7,Ab.NotFoundError=1,Ab.NotReadableError=4,Ab.NoModificationAllowedError=6,Ab.PathExistsError=12,Ab.QuotaExceededError=10,Ab.SecurityError=2,Ab.SyntaxError=8,Ab.TypeMismatchError=11,Ab);var NPp=function(M,z){_.vR.call(this,M.type,z);this.event_=M};
_.ZP(NPp,_.vR);var PWV=function(M,z,J){J===void 0&&(J=M.size);return M.slice?M.slice(z,J):null};var o_n=new WeakMap,IG8=function(M,z){M=[M];for(var J=z.length-1;J>=0;--J)M.push(typeof z[J],z[J]);return M.join("\v")};_.lG8(function(){if(!_.R3.Blob)return!1;var M=new Uint8Array(100);try{var z=new Blob([M])}catch(J){return!1}return z.size!=100?!1:!0});
var SBp=_.lG8(function(){if(!_.R3.Blob)return!1;var M=new Uint8Array(100);try{var z=new Blob([M])}catch(J){return!1}return PWV(z,0,1)===null?!1:!0});_.R3.U3bHHf!=null||(_.R3.U3bHHf=0);_.R3.U3bHHf++;_.Zcg=new WeakMap;_.kF$=new WeakMap;var QHn={};var LW=void 0;var v_c=Symbol("pb");var hX8=CW("WizInjectionContext_Dispatcher");var rf=Symbol("qb");var oX,vW;oX=function(){this.afterRenderCallbacks=null};
_.L4Y=Symbol("rb");vW=function(M){this.props=M;this.__unmounted=!1};
vW.prototype.didPatch=function(){};
vW.prototype.didMount=function(){};
vW.prototype.didUnmount=function(){};
vW.prototype.didUpdate=function(){};_.Yyb=CW("WizInjectionContext_RootElement");var g_n=CW("WizInjectionContext_AppContext"),mcR=CW("WizInjectionContext_ModelRootElement"),sHn=CW("WizInjectionContext_RendererData"),n_H=CW("WizInjectionContext_InjectingConstructor"),F2Y=CW("WizInjectionContext_AsyncDeps"),yop={};var uJR=!1;var VWG={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Otb,enableLazyTsx:TTR,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:BTp,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var rS=Object.assign({},{attributes:{},handleError:function(M){throw M;}},VWG);var BP$=Symbol("vb"),l0=Symbol("wb"),yLc=Symbol("xb"),n4p=Symbol("yb"),qBe=nv(function(M){return Ma(M)&&BP$ in M});var bon=Symbol("zb"),iF={},io0=(iF[bon]=!0,iF.debugName="[component]",iF.getComponentStack=function(){for(var M=[],z=this;z;)roR(z)&&M.push(z.debugName),z=z.parent;return M},iF.registerSignal=function(){},iF.registerEffect=function(){},iF);var zk=null,R4=!1,RAw=1,SP=Symbol("Ab"),I4={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 CF=Symbol("Bb"),bF=Symbol("Cb"),Pl=Symbol("Db"),Oc8=Object.assign({},I4,{value:CF,dirty:!0,error:null,equal:MIG,kind:"computed",producerMustRecompute:function(M){return M.value===CF||M.value===bF},
producerRecomputeValue:function(M){if(M.value===bF)throw Error("Z");var z=M.value;M.value=bF;var J=ZcR(M),R=!1;try{var D=M.computation();JP(null);R=z!==CF&&z!==Pl&&D!==Pl&&M.equal(z,D)}catch(N){D=Pl,M.error=N}finally{BPw(M,J)}R?M.value=z:(M.value=D,M.version++)}});var Xbn=function(){throw Error();};var eAY=null,Ihw=Object.assign({},I4,{equal:MIG,value:void 0,kind:"signal"});Object.assign({},I4,{value:CF,dirty:!0,error:null,equal:MIG,kind:"linkedSignal",producerMustRecompute:function(M){return M.value===CF||M.value===bF},
producerRecomputeValue:function(M){if(M.value===bF)throw Error("Z");var z=M.value;M.value=bF;var J=ZcR(M);try{var R=M.source();var D=M.computation(R,z===CF||z===Pl?void 0:{source:M.sourceValue,value:z});M.sourceValue=R}catch(N){D=Pl,M.error=N}finally{BPw(M,J)}z!==CF&&D!==Pl&&M.equal(z,D)?M.value=z:(M.value=D,M.version++)}});Object.assign({},I4,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(M){M.schedule!==null&&M.schedule(M.ref)},
hasRun:!1,cleanupFn:function(){}});var UpY=Symbol("Eb"),Bl=Symbol("Fb");var OZ=Array.isArray;var YBb;var Oct={},g4H=Fhb(Object.assign({},{consumerAllowSignalWrites:!0},Oct)),li=Fhb(Object.assign({},{consumerAllowSignalWrites:!0},Oct));var eP=0,Q8=!1,rq=function(){this.queue=new Set};
rq.prototype.remove=function(M){this.queue.delete(M)};
rq.prototype.clear=function(){this.queue.clear()};
var TPa=function(){rq.apply(this,arguments)};
_.w(TPa,rq);TPa.prototype.schedule=function(M){this.queue.add(M)};
TPa.prototype.flush=function(){if(this.queue.size){Q8=!0;try{for(var M=_.S(this.queue),z=M.next();!z.done;z=M.next()){var J=z.value;this.queue.delete(J);try{J.run()}catch(R){Ih$(R)}}}finally{Q8=!1}}};
var o4$=new TPa,Mh=function(){rq.apply(this,arguments)};
_.w(Mh,rq);var XbQ=function(){Mh.apply(this,arguments)};
_.w(XbQ,Mh);XbQ.prototype.schedule=function(M){M.hasRun?this.queue.add(M):M.run()};
XbQ.prototype.flush=function(){if(this.queue.size)if(rS.flushRenderEffectsDuringRender){var M=this.queue;this.queue=new Set;WhY(M)}else WhY(this.queue)};
var sfo=new XbQ,lhg=function(){Mh.apply(this,arguments)};
_.w(lhg,Mh);lhg.prototype.schedule=function(M){var z=this;return _.k(function(J){if(J.nextAddress==1)return M.hasRun?J.jumpTo(2):J.yield(Promise.resolve(),3);if(J.nextAddress!=2)return M.run(),J.return();z.queue.add(M);_.UI(J)})};
lhg.prototype.flush=function(){var M=this;return _.k(function(z){if(z.nextAddress==1)return M.queue.size?z.yield(Promise.resolve(),2):z.return();WhY(M.queue);_.UI(z)})};
var Hcp=new lhg,eAu=function(){Mh.apply(this,arguments)};
_.w(eAu,Mh);eAu.prototype.schedule=function(M){this.queue.add(M)};
eAu.prototype.flush=function(){this.queue.size&&WhY(this.queue)};
var hAb=new eAu,$pG=[sfo,o4$,hAb,Hcp],QfV=[sfo,hAb,Hcp],dpH=[];eAY=function(){uSp();for(var M=_.S(dpH),z=M.next();!z.done;z=M.next())z=z.value,z()};
var Ih$=Dc;var Gk=Symbol("Kb");var vl=null,E48,fhY=null,Lhp;var za={},Upu=Object.assign({},I4,(za[BP$]=!0,za.effectType=l0,za.isResettableContext=!0,za.hasRun=!1,za.effectFn=null,za.consumerIsAlwaysLive=!0,za.consumerAllowSignalWrites=!0,za.consumerMarkedDirty=cLb,za.kind="effect",za.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(R4)throw Error("Lb");this.dirty=!1;if(!this.hasRun||Dp8(this)){this.hasRun=!0;pIo(this);var M=_.AK(this),z=ZcR(this);fGw("effectRun",this.debugName);try{tP(this.effectFn,this.componentStack,this)}catch(J){throw rS.enableContextBasedComponentStacks&&
xE(J),J;}finally{L20("effectRun",this.debugName),BPw(this,z),_.AK(M)}}}},za.componentStack=void 0,za.debugName="[effect]",za[Symbol.dispose]=function(){if(DZ(this))for(var M=this.producers;M!==void 0;)M=kF8(M);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;M=_.S(QfV);for(var z=M.next();!z.done;z=M.next())z.value.remove(this);jHe(this)},za));var CWe=Object.assign({},Upu,{effectType:yLc});var bcw=Symbol("Mb");var rL8=Object.assign({},Upu,{effectType:l0});var H4p=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 J1Y={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},zJ8=
{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}]}},gsw={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},NXn=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],DSb={"*":{async:1,dir:0,loading:2,target:3}};var v4J=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,J$={},SFc=(J$[1]=null,J$[2]=function(M,z){return z instanceof $q?qE(z):n3.toString()},J$[3]=function(M,z){return Fq(z)?_.Yq(z):v4J.test(String(z))?String(z):n3.toString()},J$[4]=function(M,z){return z instanceof GA?_.xq(z):n3.toString()},J$[5]=function(M,z){return String(z)},J$[7]=null,J$[8]=null,J$[10]=null,J$);var r_H=Symbol("Pb");var Q18=function(M){var z=GFk,J=M,R="",D="",N=1;M<0&&(M=-M);if(M===Infinity)M=(Infinity*Math.sign(J)).toString();else{for(var Z=0;Z<wb$.length;Z++){var B=wb$[Z];N=z[B];if(M>=N||N<=1&&M>.1*N){R=B;break}}R?(R+="B",D=" "):N=1;M=Math.round(J/N*10)/10+D+R}return M},wb$="Y Z E P T G M K  m u n".split(" "),GFk={"":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};_.xp$=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 Sf={};RegExp.prototype.hasOwnProperty("sticky");var dSp=function(M){M=String(M);for(var z=function(R,D,N){for(var Z=Math.min(D.length-N,R.length),B=0;B<Z;B++){var O=D[N+B];if(R[B]!==("A"<=O&&O<="Z"?O.toLowerCase():O))return!1}return!0},J=0;(J=M.indexOf("<",J))!=-1;){if(z("\x3c/script",M,J)||z("\x3c!--",M,J))return"zSoyz";
J+=1}return M};var Hl={default:"__default"};var I3R=Object.prototype.hasOwnProperty;BXp.prototype=Object.create(null);var rP=l3o();var Lq=null;var YFp=function(M){this.created=[];this.deleted=[];this.node=M};var mSb=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var M=this,z=M;M;)z=M,M=M.parentNode;return z};var QOG=function(M,z){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=M;this.key=z;this.text=void 0};var qa=null,Wl=null,df=null,V8=null,xSp=[],wNo=v23,EZ=[],fq=[],bfG=function(M){return g2H(function(z,J,R){df=Wl=z;Wl=null;J(R);GS8(null);Wl=df;df=df.parentNode;return z},M)}(),CE0=function(M){return g2H(function(z,J,R){var D={nextSibling:z};
Wl=D;J(R);df&&GS8(z.nextSibling);return D===Wl?null:Wl},M)}();var AP=[],n28=0;var i0=new BXp;var ne=new BXp;var tIv=l3o(),uKe=tIv[Hl.default],$S3=tIv.style,c13=["focusin","focusout"],a38="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var psR=function(){},Xsb=function(){},sT8=function(){},YKH=function(){};var b0=Symbol("Wb");var A1c,L60=f38;var BW=Symbol("Xb");var gln=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(" ")),
mI8=new Set(["a","font","script","style","title"]);var ky={setUp:Zup,tearDown:Zup,log:Zup,logNodeRange:Zup,graft:function(M,z){z()}};var ef={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var QU=null,UR=function(M,z){vW.call(this,M);var J=this;this.functionComponent=z;this.hooks=[];this.hookCounter=0;this.disposeEffects=F8(function(R){J.effectContext=R;_.pq(function(){UIY(J,J.el)})},rS.alwaysTrackContexts||!!LW)};
_.w(UR,vW);UR.prototype.render=function(M){var z=QU;QU=this;this.hookCounter=0;var J=JP(li),R=_.AK(this.effectContext);try{return fGw("render",this.componentName),this.functionComponent(M)}finally{L20("render",this.componentName),_.AK(R),JP(J),QU=z}};
_.rX.Object.defineProperties(UR.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return aho(this.functionComponent)}}});var nlc=Symbol("kc"),tnR=function(M,z,J){this.afterRenderCallbacks=null;this.kind=M;this.props=z;this.children=J};
_.w(tnR,oX);tnR.prototype.render=function(){var M=xIY(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var z=_.S(this.afterRenderCallbacks),J=z.next();!J.done;J=z.next())J=J.value,M=J(M);return M};
tnR.prototype.getChildren=function(){return this.children};var yue=[];Xbn=function(M){throw Error("ob`"+M.debugName);};
(function(){var M=Lq;Lq=function(z){M==null||M(z);Hu8(z)}})();var jf$=new WeakMap,pb2=0;var FhB=void 0,YBB={},mpV=new WeakMap,nX3={getComponent:function(M){if(M.hasAttribute("ng-version"))return YBB;if(!M.__wizComponent)return null;M=M.__wizComponent;mpV.set(M.propsAndState,M);return M.propsAndState},
getDirectiveMetadata:function(M){if(M===YBB)return{framework:"wiz",name:"<Root>",props:{}};M=mpV.get(M);if(!M)throw Error("lc");return{framework:"wiz",name:M.name,props:Object.fromEntries(Object.keys(M.props).map(function(z){return[z,z]}))}},
"\u0275setProfiler":function(M){var z;(z=FhB)==null||z();FhB=Kho(function(){M(2)})},
getInjector:function(M){return M.__wizComponent},
"\u0275getSignalGraph":function(M){var z;M=(z=M.effects)!=null?z:[];var J=cuG(M),R=Array.from(J.keys());z=[];M=[];for(var D=new Map,N=0;N<R.length;N++)D.set(R[N],N);J=_.S(J.entries());for(R=J.next();!R.done;R=J.next()){N=_.S(R.value);R=N.next().value;var Z=N.next().value;N=R;R=D.get(N);var B=jf$.get(N);B||(B=pb2.toString(),jf$.set(N,B),pb2++);var O=void 0,X=((O=N.debugName)!=null?O:"").replace(/@.+/,"");if(N.kind==="computed"){O=N.computation;var l=void 0;z.push({label:X,value:N.value,kind:N.kind,
epoch:N.version,debuggableFn:(l=O.userFn)!=null?l:O,id:B})}else if(N.kind==="signal")z.push({label:X,value:N.value,kind:N.kind,epoch:N.version,debuggableFn:N.debugFn,id:B});else if(N.kind==="effect"){l=void 0;O=(l=N.effectFn)!=null?l:void 0;var e=l=void 0;z.push({label:X,kind:N.kind,epoch:N.version,debuggableFn:(e=(l=O)==null?void 0:l.userFn)!=null?e:O,id:B})}else z.push({label:X,kind:N.kind,epoch:N.version,id:B});N=_.S(Z);for(Z=N.next();!Z.done;Z=N.next())M.push({consumer:R,producer:D.get(Z.value)})}return{nodes:z,
edges:M}},
isSignal:function(M){return typeof M==="function"&&M[SP]!==void 0}};Object.assign({},Upu,{effectType:l0,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var M=this.elementRef;var z;M.element!=null||(M.element=(z=M.document.getElementById(M.value))!=null?z:void 0);M=M.element;for(z=this.attributes;z;){var J=z.signal();J!==z.prevValue&&(z.prevValue=J,z.namespace===1?M[z.name]=J:H4p.has(z.name)?y8(M,z.name,J?"":null):y8(M,z.name,J));z=z.next}}});Object.assign({},Upu,{effectType:l0,hasRun:!0});_.I.debugName="RlDudd";var dIG={nonNullableCondIsNull:function(){return Error("pc")}};var aQw=function(){this.map=new Map};
aQw.prototype.push=function(M,z){var J=this.map;J.has(M)&&(this.multi||(this.multi=new Map),this.multi.set(z,J.get(M)));J.set(M,z)};
aQw.prototype.pop=function(M){var z=this.map,J=z.get(M),R;J!==void 0&&((R=this.multi)==null?0:R.has(J))?(z.set(M,this.multi.get(J)),this.multi.delete(J)):z.delete(M);return J};_.G4.debugName="nsTGHd";_.w3.debugName="tbhMcf";_.xy.debugName="zyMFzb";_.tg.debugName="vI1rtf";_.iu8={OUT_OF_ORDER_HOOK_CALL:function(M){return Error("qc`"+M)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(M,z){return Error("uc`"+((z===void 0?0:z)?"IDOM":"Reactive")+"`"+(jf(M)?M.description:M))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(M,z){return Error("vc`"+(jf(M)?M.description:M)+"`"+z)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(M){return Error("wc`"+(jf(M)?M.description:M))},
USE_ELEMENT_NOT_ASSIGNED:function(M){return Error("xc`"+(jf(M)?M.description:M))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(M){return Error("yc`"+(jf(M)?M.description:M))}};A1c=jTw;var DsH=Symbol("zc");eMR({beforeRender:function(M){var z=_.AK(M.effectContext);try{var J;((J=M.__syncEffects)==null?0:J.length)&&P3c(M.__syncEffects)}finally{_.AK(z)}},
didPatch:function(M){var z=_.AK(M.effectContext);try{var J;((J=M.__syncEffects)==null?0:J.length)&&P3c(M.__syncEffects)}finally{_.AK(z)}},
didUnmount:function(M){var z;((z=M.hooks)==null?0:z.length)&&M.hooks.forEach(NER)}});var g4V,sfp,n4v;g4V=_.R3.window;_.hg=(g4V==null?void 0:(sfp=g4V.yt)==null?void 0:sfp.config_)||(g4V==null?void 0:(n4v=g4V.ytcfg)==null?void 0:n4v.data_)||{};_.b9("yt.config_",_.hg);var hAB={},BE8=[];_.xN=function(M){var z=_.H4.apply(1,arguments);var J=Error.call(this,M);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.args=[].concat(_.Yj(z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(_.xN,Error);var otp=function(M,z,J){this.actionName=M;this.optionalAction=z===void 0?!1:z;this.args=J===void 0?null:J;this.returnValue=[]};_.R_=function(M){this.name=M};_.qp=new _.R_("signalAction");var GVb=/^[\w.]*$/,Xv0={q:!0,search_query:!0},oQo=String(ILb);var DW;DW=Symbol("Ac");_.Nh=function(M){this.name=M};
_.Nh.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var wvn=function(M){this.key=M},FVp=function(M){this.deferredKey=M},t9n=function(){var M=this;
this.providers=new Map;this.JSC$10416_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(M.providers)}}};
t9n.prototype.addProvider=function(M){this.providers.set(M.provide,M);var z=this.JSC$10416_deferred.get(M.provide);if(z)try{z.resolver(this.resolve(M.provide))}catch(J){z.rejector(J)}};
t9n.prototype.resolve=function(M){return M instanceof FVp?yLV(this,M):M instanceof wvn?Hcv(this,M.key,[],!0):Hcv(this,M,[])};
var yLV=function(M,z){z=z.deferredKey;if(M.JSC$10416_deferred.has(z))return M.JSC$10416_deferred.get(z).promise;var J={};J.promise=new Promise(function(R,D){J.resolver=R;J.rejector=D});
M.JSC$10416_deferred.set(z,J);return J.promise},Hcv=function(M,z,J,R){R=R===void 0?!1:R;
if(J.indexOf(z)>-1)throw Error("Bc`"+z);if(M.cachedValues.has(z))return M.cachedValues.get(z);if(!M.providers.has(z)){if(R)return;throw Error("Cc`"+z);}R=M.providers.get(z);J.push(z);if(R.useValue!==void 0)var D=R.useValue;else if(R.useFactory)D=R[DW]?cLB(M,R[DW],J):[],D=R.useFactory.apply(R,_.Yj(D));else if(R.useClass){D=R.useClass;var N=D[DW]?cLB(M,D[DW],J):[];D=new (Function.prototype.bind.apply(D,[null].concat(_.Yj(N))))}else throw Error("Dc`"+z);J.pop();R.skipCache||M.cachedValues.set(z,D);return D},
cLB=function(M,z,J){return z?z.map(function(R){return R instanceof wvn?Hcv(M,R.key,J,!0):Hcv(M,R,J)}):[]};var xsn;var Wb=new _.Nh("ENDPOINT_HANDLER_TOKEN");_.af=new _.R_("urlEndpoint");var dpV=function(){this.data=[];this.cachedPackedInt52=-1};
dpV.prototype.set=function(M,z){z=z===void 0?!0:z;0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==z&&(this.data[M]=z,this.cachedPackedInt52=-1)};
dpV.prototype.get=function(M){return!!this.data[M]};
var Khp=function(M){M.cachedPackedInt52===-1&&(M.cachedPackedInt52=M.data.reduce(function(z,J,R){return z+(J?Math.pow(2,R):0)},0));
return M.cachedPackedInt52};var qfw=function(M){var z=$pJ;M=M===void 0?_.qH("yt.ads.biscotti.lastId_")||"":M;var J=Object,R=J.assign,D={};D.dt=yKk;D.flash="0";a:{try{var N=z.JSC$10422_win_.top.location.href}catch(z8){N=2;break a}N=N?N===z.doc_.location.href?0:1:2}D=(D.frm=N,D);try{D.u_tz=-(new Date).getTimezoneOffset();try{var Z=ay.history.length}catch(z8){Z=0}D.u_his=Z;var B;D.u_h=(B=ay.screen)==null?void 0:B.height;var O;D.u_w=(O=ay.screen)==null?void 0:O.width;var X;D.u_ah=(X=ay.screen)==null?void 0:X.availHeight;var l;D.u_aw=
(l=ay.screen)==null?void 0:l.availWidth;var e;D.u_cd=(e=ay.screen)==null?void 0:e.colorDepth}catch(z8){}Z=z.JSC$10422_win_;try{var Q=Z.screenX;var v=Z.screenY}catch(z8){}try{var x=Z.outerWidth;var m=Z.outerHeight}catch(z8){}try{var y=Z.innerWidth;var H=Z.innerHeight}catch(z8){}try{var q=Z.screenLeft;var b=Z.screenTop}catch(z8){}try{y=Z.innerWidth,H=Z.innerHeight}catch(z8){}try{var V=Z.screen.availWidth;var E=Z.screen.availTop}catch(z8){}Q=[q,b,Q,v,V,E,x,m,y,H];v=OWp(!1,z.JSC$10422_win_.top);x={};
var L=L===void 0?_.R3:L;m=new dpV;"SVGElement"in L&&"createElementNS"in L.document&&m.set(0);y=gp$();y["allow-top-navigation-by-user-activation"]&&m.set(1);y["allow-popups-to-escape-sandbox"]&&m.set(2);L.crypto&&L.crypto.subtle&&m.set(3);"TextDecoder"in L&&"TextEncoder"in L&&m.set(4);L=Khp(m);z=(x.bc=L,x.bih=v.height,x.biw=v.width,x.brdim=Q.join(),x.vis=Jg8(z.doc_),x.wgl=!!ay.WebGLRenderingContext,x);J=R.call(J,D,z);J.ca_type="image";M&&(J.bid=M);return J},$pJ=new function(){var M=window.document;
this.JSC$10422_win_=window;this.doc_=M};
_.b9("yt.ads_.signals_.getAdSignalsString",function(M){return lLn(qfw(M))});_.Ss();navigator.userAgent.indexOf(" (CrKey ");var nQ8="XMLHttpRequest"in _.R3?function(){return new XMLHttpRequest}:null;var uSv="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),qBS=[].concat(_.Yj(uSv),["client_dev_set_cookie"]);var u9p={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"},HYG="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(_.Yj(uSv)),C3R=!1,dsH=_.WVR,LVn=$s3;var Q98=[{messageFn:function(M){return"Cannot read property '"+M.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(M){return"Cannot call '"+M.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(M){return M.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Whu={messageWeights:[],callbackWeights:[{callback:zbR,weight:500},{callback:JNG,weight:500}]};var ahp=function(){this.callbackWeights=[];this.messageWeights=[]},VIV,e$G=function(){if(!VIV){var M=VIV=new ahp;
M.messageWeights.length=0;M.callbackWeights.length=0;RCp(M,Whu)}return VIV},RCp=function(M,z){z.messageWeights&&M.messageWeights.push.apply(M.messageWeights,z.messageWeights);
z.callbackWeights&&M.callbackWeights.push.apply(M.callbackWeights,z.callbackWeights)};_.ZP(_.l9,_.wS);_.l9.prototype.subscribe=function(M,z,J){var R=this.topics_[M];R||(R=this.topics_[M]=[]);var D=this.JSC$10446_key_;this.subscriptions_[D]=M;this.subscriptions_[D+1]=z;this.subscriptions_[D+2]=J;this.JSC$10446_key_=D+3;R.push(D);return D};
var E4t=function(M){var z=wno,J=!1,R=z.subscribe("handleError",function(D){J||(J=!0,this.unsubscribeByKey(R),M.apply(void 0,arguments))},z)};
_.l9.prototype.unsubscribe=function(M,z,J){if(M=this.topics_[M]){var R=this.subscriptions_;if(M=M.find(function(D){return R[D+1]==z&&R[D+2]==J}))return this.unsubscribeByKey(M)}return!1};
_.l9.prototype.unsubscribeByKey=function(M){var z=this.subscriptions_[M];if(z){var J=this.topics_[z];this.publishDepth_!=0?(this.pendingKeys_.push(M),this.subscriptions_[M+1]=function(){}):(J&&_.$o(J,M),delete this.subscriptions_[M],delete this.subscriptions_[M+1],delete this.subscriptions_[M+2])}return!!z};
_.l9.prototype.publish=function(M,z){var J=this.topics_[M];if(J){var R=Array(arguments.length-1),D=arguments.length,N;for(N=1;N<D;N++)R[N-1]=arguments[N];if(this.async_)for(N=0;N<J.length;N++)D=J[N],fhu(this.subscriptions_[D+1],this.subscriptions_[D+2],R);else{this.publishDepth_++;try{for(N=0,D=J.length;N<D&&!this.isDisposed();N++){var Z=J[N];this.subscriptions_[Z+1].apply(this.subscriptions_[Z+2],R)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;J=this.pendingKeys_.pop();)this.unsubscribeByKey(J)}}return N!=
0}return!1};
var fhu=function(M,z,J){_.Fp(function(){M.apply(z,J)})};
_.l9.prototype.clear=function(M){if(M){var z=this.topics_[M];z&&(z.forEach(this.unsubscribeByKey,this),delete this.topics_[M])}else this.subscriptions_.length=0,this.topics_={}};
_.l9.prototype.getCount=function(M){if(M){var z=this.topics_[M];return z?z.length:0}M=0;for(z in this.topics_)M+=this.getCount(z);return M};
_.l9.prototype.disposeInternal=function(){_.l9.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var wno=new _.l9;var SW=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(SW,_.zA);SW.prototype.getColdHashData=function(){return _.hv(this,3)};
SW.prototype.getHotHashData=function(){return _.hv(this,5)};
SW.prototype.setHotHashData=function(M){return _.G$(this,5,M)};var XPe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(XPe,_.zA);var WNp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(WNp,_.zA);_.P=WNp.prototype;_.P.getDeviceId=function(){return _.hv(this,6)};
_.P.getExperimentIds=function(M){var z=_.av(this,9,_.rg,3,!0);Eob(z,M);return z[M]};
_.P.getPlayerType=function(){return _.yE(this,36)};
_.P.setHomeGroupInfo=function(M){return _.or(this,81,M)};
_.P.clearLocationPlayabilityToken=function(){return _.PI(this,89)};var lW=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(lW,_.zA);lW.prototype.setKey=function(M){return _.G$(this,1,M)};
lW.prototype.getValue=function(){return c9(this,2,Vhp)};
var Vhp=[2,3,4,5,6];var Lhv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Lhv,_.zA);Lhv.prototype.setTrackingParams=function(M){return _.PI(this,1,_.pv(M,!1))};var avY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(avY,_.zA);var Qzc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Qzc,_.zA);Qzc.prototype.getExperimentIds=function(M){var z=_.av(this,5,_.IV8,3,!0);Eob(z,M);return z[M]};var vb=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(vb,_.zA);vb.prototype.getToken=function(){return _.o2(this,2)};
vb.prototype.setToken=function(M){return _.G$(this,2,M)};var QA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(QA,_.zA);QA.prototype.setSafetyMode=function(M){return _.Nc(this,5,M)};var XS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(XS,_.zA);XS.prototype.setClient=function(M){return _.or(this,1,M)};var e88={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 lSe;_.nX=function(){var M=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.R3.addEventListener("beforeinstallprompt",function(z){z.preventDefault();M.deferredInstallPrompt=z});
_.R3.addEventListener("appinstalled",function(){M.appInstalledEventFired=!0},{once:!0})};
lSe=function(){if(!_.R3.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.R3.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.R3.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.R3.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.R3.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Ghb=function(){this.syncHeaders=!0},wPc=function(M){var z={},J=[];
"USER_SESSION_ID"in _.hg&&J.push({key:"u",value:_.HW("USER_SESSION_ID")});if(J=_.aE8(J))z.Authorization=J,J=M=M==null?void 0:M.sessionIndex,J===void 0&&(J=Number(_.HW("SESSION_INDEX",0)),J=isNaN(J)?0:J),_.U("voice_search_auth_header_removal")||(z["X-Goog-AuthUser"]=J.toString()),"INNERTUBE_HOST_OVERRIDE"in _.hg||(z["X-Origin"]=window.location.origin),M===void 0&&"DELEGATED_SESSION_ID"in _.hg&&(z["X-Goog-PageId"]=_.HW("DELEGATED_SESSION_ID"));return z};var ALk={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Ph=_.qH("ytglobal.prefsUserPrefsPrefs_")||{},icg;_.b9("ytglobal.prefsUserPrefsPrefs_",Ph);_.Sl=function(){this.cookieName=_.HW("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.HW("ALT_PREF_COOKIE_DOMAIN","youtube.com");var M=_.Qy.get(this.cookieName,void 0);M&&this.parse(M)};
_.vv=function(){icg||(icg=new _.Sl);return icg};
_.Sl.prototype.get=function(M,z){CWS(M);bc$(M);M=Ph[M]!==void 0?Ph[M].toString():null;return M!=null?M:z?z:""};
_.Sl.prototype.set=function(M,z){CWS(M);bc$(M);if(z==null)throw Error("Gc");Ph[M]=z.toString()};
_.Sl.prototype.getFlag=function(M){return!!((rL$("f"+(Math.floor(M/31)+1))||0)&1<<M%31)};
_.GV=function(M,z,J){M="f"+(Math.floor(z/31)+1);z=1<<z%31;var R=rL$(M)||0;R=J?R|z:R&~z;R===0?delete Ph[M]:(J=R.toString(16),Ph[M]=J.toString())};
_.Sl.prototype.remove=function(M){CWS(M);bc$(M);delete Ph[M]};
_.Sl.prototype.save=function(){var M=!0;_.U("web_secure_pref_cookie_killswitch")&&(M=!1);_.U7(this.cookieName,this.dump(),63072E3,this.cookieDomain,M)};
_.Sl.prototype.clear=function(){_.gu.clear(Ph)};
_.Sl.prototype.dump=function(){var M=[],z;for(z in Ph)Ph.hasOwnProperty(z)&&M.push(z+"="+encodeURIComponent(String(Ph[z])));return M.join("&")};
var bc$=function(M){if(/^f([1-9][0-9]*)$/.test(M))throw Error("Hc`"+M);},CWS=function(M){if(!/^\w+$/.test(M))throw Error("Ic`"+M);
},rL$=function(M){M=Ph[M]!==void 0?Ph[M].toString():null;
return M!=null&&/^[A-Fa-f0-9]+$/.test(M)?parseInt(M,16):null};
_.Sl.prototype.parse=function(M){M=decodeURIComponent(M).split("&");for(var z=0;z<M.length;z++){var J=M[z].split("="),R=J[0];(J=J[1])&&(Ph[R]=J.toString())}};var ODG={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"},UG3={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},vVo={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},I8H={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var kn;_.ZW=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.x4=function(M,z,J){return M.addJob(z,0,J)};
_.ZW.prototype.addLowPriorityJob=function(M,z){return this.addJob(M,1,z)};
_.mn=function(M,z,J){return M.addJob(z,2,J)};
_.xC=function(M,z,J){return M.addJob(z,3,J)};
_.BS=function(M,z,J){return M.addJob(z,4,J)};
kn=function(M){var z=_.qH("yt.scheduler.instance.addImmediateJob");z?z(M):M()};
_.ZW.prototype.debounce=function(M,z,J){var R=this,D=0,N=function(){D&&R.cancelJob(D);D=R.addJob(M,z,J);R.cancelDebouncedJobMap.set(N,D)};
return N};
_.ZW.prototype.cancelThrottle=function(M){(M=this.cancelThrottledJobMap.get(M))&&M()};var kD=function(){_.ZW.apply(this,arguments)};
_.w(kD,_.ZW);_.sj=function(){kD.instance||(kD.instance=new kD);return kD.instance};
kD.prototype.addJob=function(M,z,J){J!==void 0&&Number.isNaN(Number(J))&&(J=void 0);var R=_.qH("yt.scheduler.instance.addJob");return R?R(M,z,J):J===void 0?(M(),NaN):_.BJ(M,J||0)};
kD.prototype.cancelJob=function(M){if(M===void 0||!Number.isNaN(Number(M))){var z=_.qH("yt.scheduler.instance.cancelJob");z?z(M):_.Tw(M)}};
kD.prototype.start=function(){var M=_.qH("yt.scheduler.instance.start");M&&M()};
kD.prototype.pause=function(){var M=_.qH("yt.scheduler.instance.pause");M&&M()};
_.no=_.sj();_.tF.prototype.set=function(M,z){z===void 0?this.mechanism.remove(M):this.mechanism.set(M,(0,_.ns)(z))};
_.tF.prototype.get=function(M){try{var z=this.mechanism.get(M)}catch(J){return}if(z!==null)try{return JSON.parse(z)}catch(J){throw"Storage: Invalid value was encountered";}};
_.tF.prototype.remove=function(M){this.mechanism.remove(M)};var Bh=function(M){this.mechanism=M};
_.ZP(Bh,_.tF);var M_$=function(M){this.data=M},zJt=function(M){return M===void 0||M instanceof M_$?M:new M_$(M)};
Bh.prototype.set=function(M,z){Bh.superClass_.set.call(this,M,zJt(z))};
Bh.prototype.getWrapper=function(M){M=Bh.superClass_.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";};
Bh.prototype.get=function(M){if(M=this.getWrapper(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};_.ZP(jz,Bh);_.J1u=function(M){var z=M.creation;M=M.expiration;return!!M&&M<_.Ss()||!!z&&z>_.Ss()};
jz.prototype.set=function(M,z,J){if(z=zJt(z)){if(J){if(J<_.Ss()){jz.prototype.remove.call(this,M);return}z.expiration=J}z.creation=_.Ss()}jz.superClass_.set.call(this,M,z)};
jz.prototype.getWrapper=function(M,z){var J=jz.superClass_.getWrapper.call(this,M);if(J)if(!z&&_.J1u(J))jz.prototype.remove.call(this,M);else return J};var Oq=function(){};
Oq.prototype.next=function(){return Ta};
var Ta={done:!0,value:void 0},I_=function(M){return{value:M,done:!1}};
Oq.prototype.__iterator__=function(){return this};
_.RJk=function(M){if(M instanceof Oq)return M;if(typeof M.__iterator__=="function")return M.__iterator__(!1);if(_.WY(M)){var z=0,J=new Oq;J.next=function(){for(;;){if(z>=M.length)return Ta;if(z in M)return I_(M[z++]);z++}};
return J}throw Error("Jc");};var DSB=function(M){if(M instanceof o_||M instanceof XM||M instanceof lM)return M;if(typeof M.next=="function")return new o_(function(){return M});
if(typeof M[Symbol.iterator]=="function")return new o_(function(){return M[Symbol.iterator]()});
if(typeof M.__iterator__=="function")return new o_(function(){return M.__iterator__()});
throw Error("Kc");},o_=function(M){this.func_=M};
o_.prototype.__iterator__=function(){return new XM(this.func_())};
o_.prototype[Symbol.iterator]=function(){return new lM(this.func_())};
o_.prototype.toEs6=function(){return new lM(this.func_())};
var XM=function(M){this.JSC$10530_iter_=M};
_.w(XM,Oq);XM.prototype.next=function(){return this.JSC$10530_iter_.next()};
XM.prototype[Symbol.iterator]=function(){return new lM(this.JSC$10530_iter_)};
XM.prototype.toEs6=function(){return new lM(this.JSC$10530_iter_)};
var lM=function(M){o_.call(this,function(){return M});
this.JSC$10533_iter_=M};
_.w(lM,o_);lM.prototype.next=function(){return this.JSC$10533_iter_.next()};var NXQ=function(){};var el=function(){};
_.ZP(el,NXQ);el.prototype.getCount=function(){for(var M=0,z=_.S(this),J=z.next();!J.done;J=z.next())M++;return M};
el.prototype[Symbol.iterator]=function(){return DSB(this.__iterator__(!0)).toEs6()};
el.prototype.clear=function(){var M=Array.from(this);M=_.S(M);for(var z=M.next();!z.done;z=M.next())this.remove(z.value)};_.ZP(pK,el);_.P=pK.prototype;_.P.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var M=this.storage_;if(M)try{M.setItem("__sak","1");M.removeItem("__sak");var z=!0}catch(J){z=J instanceof DOMException&&(J.name==="QuotaExceededError"||J.code===22||J.code===1014||J.name==="NS_ERROR_DOM_QUOTA_REACHED")&&M&&M.length!==0}else z=!1;this.cachedIsStorageAvailable_=z}return this.cachedIsStorageAvailable_};
_.P.set=function(M,z){QQ(this);try{this.storage_.setItem(M,z)}catch(J){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.P.get=function(M){QQ(this);M=this.storage_.getItem(M);if(typeof M!=="string"&&M!==null)throw"Storage mechanism: Invalid value was encountered";return M};
_.P.remove=function(M){QQ(this);this.storage_.removeItem(M)};
_.P.getCount=function(){QQ(this);return this.storage_.length};
_.P.__iterator__=function(M){QQ(this);var z=0,J=this.storage_,R=new Oq;R.next=function(){if(z>=J.length)return Ta;var D=J.key(z++);if(M)return I_(D);D=J.getItem(D);if(typeof D!=="string")throw"Storage mechanism: Invalid value was encountered";return I_(D)};
return R};
_.P.clear=function(){QQ(this);this.storage_.clear()};
_.P.key=function(M){QQ(this);return this.storage_.key(M)};
var QQ=function(M){if(M.storage_==null)throw Error("Lc");M.isAvailable()||Dc(Error("Lc"))};_.ZP(XA0,pK);var $08=function(){var M=new XA0;return M.isAvailable()?M:null};_.ZP(l8p,pK);_.ZP(Fh,el);Fh.prototype.set=function(M,z){this.mechanism_.set(this.JSC$10548_prefix_+M,z)};
Fh.prototype.get=function(M){return this.mechanism_.get(this.JSC$10548_prefix_+M)};
Fh.prototype.remove=function(M){this.mechanism_.remove(this.JSC$10548_prefix_+M)};
Fh.prototype.__iterator__=function(M){var z=this.mechanism_[Symbol.iterator](),J=this,R=new Oq;R.next=function(){var D=z.next();if(D.done)return D;for(D=D.value;D.slice(0,J.JSC$10548_prefix_.length)!=J.JSC$10548_prefix_;){D=z.next();if(D.done)return D;D=D.value}return I_(M?D.slice(J.JSC$10548_prefix_.length):J.mechanism_.get(D))};
return R};_.dc=function(M){this.expiringStorage_=(M=_.ebR(M))?new jz(M):null;this.JSC$10552_domain_=document.domain||window.location.hostname};
_.dc.prototype.set=function(M,z,J,R){J=J||31104E3;this.remove(M);if(this.expiringStorage_)try{this.expiringStorage_.set(M,z,Date.now()+J*1E3);return}catch(N){}var D="";if(R)try{D=escape((0,_.ns)(z))}catch(N){return}else D=escape(z);_.U7(M,D,J,this.JSC$10552_domain_)};
_.dc.prototype.get=function(M,z){var J=void 0,R=!this.expiringStorage_;if(!R)try{J=this.expiringStorage_.get(M)}catch(D){R=!0}if(R&&(J=_.Qy.get(M,void 0))&&(J=unescape(J),z))try{J=JSON.parse(J)}catch(D){this.remove(M),J=void 0}return J};
_.dc.prototype.remove=function(M){this.expiringStorage_&&this.expiringStorage_.remove(M);_.ZD0(M,"/",this.JSC$10552_domain_)};
_.dc.prototype.getCreationTime=function(M){return this.expiringStorage_&&(M=(this.expiringStorage_.getWrapper(M)||{}).creation,typeof M==="number")?M:null};var Uvo=function(){var M;return function(){M||(M=new _.dc("ytidb"));return M}}();var Grc;_.mo=[];Grc=!1;var $vc=wAb||xvp;var Uq={},P42=(Uq.AUTH_INVALID="No user identifier specified.",Uq.EXPLICIT_ABORT="Transaction was explicitly aborted.",Uq.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Uq.MISSING_INDEX="Index not created.",Uq.MISSING_OBJECT_STORES="Object stores not created.",Uq.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Uq.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Uq.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Uq.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Uq.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Uq.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Uq.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Uq),vh={},SFV=(vh.AUTH_INVALID="ERROR",vh.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",vh.EXPLICIT_ABORT="IGNORED",
vh.IDB_NOT_SUPPORTED="ERROR",vh.MISSING_INDEX="WARNING",vh.MISSING_OBJECT_STORES="ERROR",vh.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",vh.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",vh.QUOTA_EXCEEDED="WARNING",vh.QUOTA_MAYBE_EXCEEDED="WARNING",vh.UNKNOWN_ABORT="WARNING",vh.INCOMPATIBLE_DB_VERSION="WARNING",vh),Ga={},Z4J=(Ga.AUTH_INVALID=!1,Ga.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Ga.EXPLICIT_ABORT=!1,Ga.IDB_NOT_SUPPORTED=!1,Ga.MISSING_INDEX=!1,Ga.MISSING_OBJECT_STORES=!1,Ga.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Ga.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Ga.QUOTA_EXCEEDED=!1,Ga.QUOTA_MAYBE_EXCEEDED=!0,Ga.UNKNOWN_ABORT=!0,Ga.INCOMPATIBLE_DB_VERSION=!1,Ga),HJ=function(M,z,J,R,D){z=z===void 0?{}:z;J=J===void 0?P42[M]:J;R=R===void 0?SFV[M]:R;D=D===void 0?Z4J[M]:D;_.xN.call(this,J,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M},z));this.type=M;this.message=J;this.level=R;this.retryable=D;Object.setPrototypeOf(this,HJ.prototype)};
_.w(HJ,_.xN);var kSV=function(M,z){HJ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:M},P42.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,kSV.prototype)};
_.w(kSV,HJ);var jsY=function(M,z){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.index=M;this.objectStore=z;Object.setPrototypeOf(this,jsY.prototype)};
_.w(jsY,Error);var pAp=["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 $N=function(M){this.executor=M},KK=function(M){var z=this;
this.state={status:"PENDING"};this.JSC$10580_onFulfilled=[];this.JSC$10580_onRejected=[];M=M.executor;var J=function(D){if(z.state.status==="PENDING"){z.state={status:"FULFILLED",value:D};D=_.S(z.JSC$10580_onFulfilled);for(var N=D.next();!N.done;N=D.next())N=N.value,N()}},R=function(D){if(z.state.status==="PENDING"){z.state={status:"REJECTED",
reason:D};D=_.S(z.JSC$10580_onRejected);for(var N=D.next();!N.done;N=D.next())N=N.value,N()}};
try{M(J,R)}catch(D){R(D)}};
KK.all=function(M){return new KK(new $N(function(z,J){var R=[],D=M.length;D===0&&z(R);for(var N={i$jscomp$463:0};N.i$jscomp$463<M.length;N={i$jscomp$463:N.i$jscomp$463},++N.i$jscomp$463)KK.resolve(M[N.i$jscomp$463]).then(function(Z){return function(B){R[Z.i$jscomp$463]=B;D--;D===0&&z(R)}}(N)).catch(function(Z){J(Z)})}))};
KK.resolve=function(M){return new KK(new $N(function(z,J){M instanceof KK?M.then(z,J):z(M)}))};
KK.reject=function(M){return new KK(new $N(function(z,J){J(M)}))};
KK.prototype.then=function(M,z){var J=this,R=M!=null?M:mvH,D=z!=null?z:Yhb;return new KK(new $N(function(N,Z){J.state.status==="PENDING"?(J.JSC$10580_onFulfilled.push(function(){BXv(J,J,R,N,Z)}),J.JSC$10580_onRejected.push(function(){O4k(J,J,D,N,Z)})):J.state.status==="FULFILLED"?BXv(J,J,R,N,Z):J.state.status==="REJECTED"&&O4k(J,J,D,N,Z)}))};
KK.prototype.catch=function(M){return this.then(void 0,M)};
var BXv=function(M,z,J,R,D){try{if(M.state.status!=="FULFILLED")throw Error("Oc");var N=J(M.state.value);N instanceof KK?TX2(M,z,N,R,D):R(N)}catch(Z){D(Z)}},O4k=function(M,z,J,R,D){try{if(M.state.status!=="REJECTED")throw Error("Pc");
var N=J(M.state.reason);N instanceof KK?TX2(M,z,N,R,D):R(N)}catch(Z){D(Z)}},TX2=function(M,z,J,R,D){z===J?D(new TypeError("Qc")):J.then(function(N){N instanceof KK?TX2(M,z,N,R,D):R(N)},function(N){D(N)})};var wd;wd=window;_.zU=wd.ytcsi&&wd.ytcsi.now?wd.ytcsi.now:wd.performance&&wd.performance.timing&&wd.performance.now&&wd.performance.timing.navigationStart?function(){return wd.performance.timing.navigationStart+wd.performance.now()}:function(){return(new Date).getTime()};var qC=function(M,z){this.JSC$10592_wrapped=M;this.options=z;this.transactionCount=0;this.startedMs=Math.round((0,_.zU)());this.hasUnknownAbortedTransaction=!1},xD=function(){return _.U("idb_immediate_commit")},XNS,l3p,pC,USQ;
qC.prototype.add=function(M,z,J){return _.fK(this,[M],{mode:"readwrite",enableRetries:!0,commit:xD()},function(R){return R.objectStore(M).add(z,J)})};
qC.prototype.clear=function(M){return _.fK(this,[M],{mode:"readwrite",enableRetries:!0},function(z){return z.objectStore(M).clear()})};
qC.prototype.close=function(){this.JSC$10592_wrapped.close();var M;((M=this.options)==null?0:M.closed)&&this.options.closed()};
qC.prototype.count=function(M,z){return _.fK(this,[M],{mode:"readonly",enableRetries:!0,commit:xD()},function(J){return J.objectStore(M).count(z)})};
var $_=function(M,z,J){M=M.JSC$10592_wrapped.createObjectStore(z,J);return new t$(M)};
qC.prototype.delete=function(M,z){return _.fK(this,[M],{mode:"readwrite",enableRetries:!0,commit:xD()&&!(z instanceof IDBKeyRange)},function(J){return J.objectStore(M).delete(z)})};
var I3g=function(M,z){return _.fK(M,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(J){return J.objectStore("ResponseStore").index("byInterface").delete(z)})};
qC.prototype.get=function(M,z){return _.fK(this,[M],{mode:"readonly",enableRetries:!0,commit:xD()},function(J){return J.objectStore(M).get(z)})};
qC.prototype.getAll=function(M,z,J){return _.fK(this,[M],{mode:"readonly",enableRetries:!0},function(R){return R.objectStore(M).getAll(z,J)})};
qC.prototype.put=function(M,z,J){return _.fK(this,[M],{mode:"readwrite",enableRetries:!0,commit:xD()},function(R){return R.objectStore(M).put(z,J)})};
qC.prototype.objectStoreNames=function(){return Array.from(this.JSC$10592_wrapped.objectStoreNames)};
_.fK=function(M,z,J,R){var D,N,Z,B,O,X,l,e,Q,v,x,m;return _.k(function(y){switch(y.nextAddress){case 1:var H={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof J==="string"?H.mode=J:Object.assign(H,J);D=H;M.transactionCount++;N=D.enableRetries?3:1;Z=0;case 2:if(B){y.jumpTo(4);break}Z++;O=Math.round((0,_.zU)());_.Io(y,5);X=M.JSC$10592_wrapped.transaction(z,D.mode);H=y.yield;var q=!!D.commit;var b=new WJ(X);q=o2V(b,R,q);return H.call(y,q,7);case 7:return l=y.yieldResult,e=Math.round((0,_.zU)()),
XNS(M,O,e,Z,void 0,z.join(),D),y.return(l);case 5:Q=_.Qa(y);v=Math.round((0,_.zU)());x=Fpn(Q,M.JSC$10592_wrapped.name,z.join(),M.JSC$10592_wrapped.version);if((m=x instanceof HJ&&!x.retryable)||Z>=N)XNS(M,O,v,Z,x,z.join(),D),B=x;y.jumpTo(2);break;case 4:return y.return(Promise.reject(B))}})};
XNS=function(M,z,J,R,D,N,Z){z=J-z;D?(D instanceof HJ&&(D.type==="QUOTA_EXCEEDED"||D.type==="QUOTA_MAYBE_EXCEEDED")&&s7("QUOTA_EXCEEDED",{dbName:hF(M.JSC$10592_wrapped.name),objectStoreNames:N,transactionCount:M.transactionCount,transactionMode:Z.mode}),D instanceof HJ&&D.type==="UNKNOWN_ABORT"&&(J-=M.startedMs,J<0&&J>=2147483648&&(J=0),s7("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:N,transactionDuration:z,transactionCount:M.transactionCount,dbDuration:J}),M.hasUnknownAbortedTransaction=!0),
l3p(M,!1,R,N,z,Z.tag),_.gQ(D)):l3p(M,!0,R,N,z,Z.tag)};
l3p=function(M,z,J,R,D,N){s7("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:M.hasUnknownAbortedTransaction,duration:D,isSuccessful:z,tryCount:J,tag:N===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":N})};
qC.prototype.getVersion=function(){return this.JSC$10592_wrapped.version};
qC.prototype.getName=function(){return this.JSC$10592_wrapped.name};
var t$=function(M){this.JSC$10607_wrapped=M};
t$.prototype.add=function(M,z){return u9(this.JSC$10607_wrapped.add(M,z))};
t$.prototype.autoIncrement=function(){return this.JSC$10607_wrapped.autoIncrement};
t$.prototype.clear=function(){return u9(this.JSC$10607_wrapped.clear()).then(function(){})};
var uD=function(M,z,J){M.JSC$10607_wrapped.createIndex(z,J,{unique:!1})};
t$.prototype.count=function(M){return u9(this.JSC$10607_wrapped.count(M))};
var eJQ=function(M,z){return AF(M,{query:z},function(J){return J.delete().then(function(){return J.continue()})}).then(function(){})};
t$.prototype.delete=function(M){return M instanceof IDBKeyRange?eJQ(this,M):u9(this.JSC$10607_wrapped.delete(M))};
t$.prototype.get=function(M){return u9(this.JSC$10607_wrapped.get(M))};
t$.prototype.getAll=function(M,z){return"getAll"in IDBObjectStore.prototype?u9(this.JSC$10607_wrapped.getAll(M,z)):QOJ(this,M,z)};
var QOJ=function(M,z,J){var R=[];return AF(M,{query:z},function(D){if(!(J!==void 0&&R.length>=J))return R.push(D.getValue()),D.continue()}).then(function(){return R})};
t$.prototype.index=function(M){try{return new jl(this.JSC$10607_wrapped.index(M))}catch(z){if(z instanceof Error&&z.name==="NotFoundError")throw new jsY(M,this.JSC$10607_wrapped.name);throw z;}};
t$.prototype.getName=function(){return this.JSC$10607_wrapped.name};
t$.prototype.keyPath=function(){return this.JSC$10607_wrapped.keyPath};
t$.prototype.put=function(M,z){return u9(this.JSC$10607_wrapped.put(M,z))};
var AF=function(M,z,J){M=M.JSC$10607_wrapped.openCursor(z.query,z.direction);return USQ(M).then(function(R){return nfG(R,J)})},WJ=function(M){var z=this;
this.JSC$10615_wrapped=M;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(J,R){z.JSC$10615_wrapped.addEventListener("complete",function(){J()});
z.JSC$10615_wrapped.addEventListener("error",function(D){D.currentTarget===D.target&&R(z.JSC$10615_wrapped.error)});
z.JSC$10615_wrapped.addEventListener("abort",function(){var D=z.JSC$10615_wrapped.error;if(D)R(D);else if(!z.aborted){D=HJ;for(var N=z.JSC$10615_wrapped.objectStoreNames,Z=[],B=0;B<N.length;B++){var O=N.item(B);if(O===null)throw Error("Rc");Z.push(O)}D=new D("UNKNOWN_ABORT",{objectStoreNames:Z.join(),dbName:z.JSC$10615_wrapped.db.name,mode:z.JSC$10615_wrapped.mode});R(D)}})})},o2V=function(M,z,J){var R=new Promise(function(D,N){try{var Z=z(M);
J&&M.commit();Z.then(function(B){D(B)}).catch(N)}catch(B){N(B),M.abort()}});
return Promise.all([R,M.done]).then(function(D){return _.S(D).next().value})};
WJ.prototype.abort=function(){this.JSC$10615_wrapped.abort();this.aborted=!0;throw new HJ("EXPLICIT_ABORT");};
WJ.prototype.commit=function(){if(!this.aborted){var M,z;(z=(M=this.JSC$10615_wrapped).commit)==null||z.call(M)}};
WJ.prototype.objectStore=function(M){M=this.JSC$10615_wrapped.objectStore(M);var z=this.objectStoreCache.get(M);z||(z=new t$(M),this.objectStoreCache.set(M,z));return z};
var jl=function(M){this.JSC$10617_wrapped=M};
jl.prototype.count=function(M){return u9(this.JSC$10617_wrapped.count(M))};
jl.prototype.delete=function(M){return _.Jo(this,{query:M},function(z){return z.delete().then(function(){return z.continue()})})};
jl.prototype.get=function(M){return u9(this.JSC$10617_wrapped.get(M))};
jl.prototype.getAll=function(M,z){return"getAll"in IDBIndex.prototype?u9(this.JSC$10617_wrapped.getAll(M,z)):v2k(this,M,z)};
var v2k=function(M,z,J){var R=[];return _.Jo(M,{query:z},function(D){if(!(J!==void 0&&R.length>=J))return R.push(D.getValue()),D.continue()}).then(function(){return R})};
jl.prototype.keyPath=function(){return this.JSC$10617_wrapped.keyPath};
jl.prototype.unique=function(){return this.JSC$10617_wrapped.unique};
_.Jo=function(M,z,J){M=M.JSC$10617_wrapped.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return USQ(M).then(function(R){return nfG(R,J)})};
pC=function(M,z){this.request=M;this.cursor=z};
USQ=function(M){return u9(M).then(function(z){return z?new pC(M,z):null})};
pC.prototype.continue=function(M){this.cursor.continue(M);return USQ(this.request)};
pC.prototype.delete=function(){return u9(this.cursor.delete()).then(function(){})};
pC.prototype.getValue=function(){return this.cursor.value};
pC.prototype.update=function(M){return u9(this.cursor.update(M))};var FM=function(M,z){this.name=M;this.options=z;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},GS$;
FM.prototype.openDb=function(M,z,J){J=J===void 0?{}:J;return yNp(M,z,J)};
FM.prototype.delete=function(M){M=M===void 0?{}:M;return _.Vy(this.name,M)};
GS$=function(M,z){return new HJ("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:z})};
_.E7=function(M,z){if(!z)throw dQ("openWithToken",hF(M.name));return M.open()};
FM.prototype.open=function(){var M=this;if(!this.isCompatible)throw GS$(this);if(this.connectionPromise)return this.connectionPromise;var z,J=function(){M.connectionPromise===z&&(M.connectionPromise=void 0)},R={blocking:function(N){N.close()},
closed:J,terminated:J,upgrade:this.options.upgrade},D=function(){var N,Z,B,O,X,l,e,Q,v,x;return _.k(function(m){switch(m.nextAddress){case 1:return Z=(N=Error().stack)!=null?N:"",_.Io(m,2),m.yield(M.openDb(M.name,M.options.version,R),4);case 4:for(var y=B=m.yieldResult,H=M.options,q=[],b=_.S(Object.keys(H.objectStores)),V=b.next();!V.done;V=b.next()){V=V.value;var E=H.objectStores[V],L=E.removedAtVersion===void 0?Number.MAX_VALUE:E.removedAtVersion;!(y.JSC$10592_wrapped.version>=E.addedAtVersion)||
y.JSC$10592_wrapped.version>=L||y.JSC$10592_wrapped.objectStoreNames.contains(V)||q.push(V)}O=q;if(O.length===0){m.jumpTo(5);break}X=Object.keys(M.options.objectStores);l=B.objectStoreNames();if(M.timesReopenedToFixMissingObjectStore<_.NC("ytidb_reopen_db_retries",0))return M.timesReopenedToFixMissingObjectStore++,B.close(),_.gQ(new HJ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:X,foundObjectStores:l})),m.return(D());if(!(M.timesDeletedToFixMissingObjectStore<_.NC("ytidb_remake_db_retries",
1))){m.jumpTo(6);break}M.timesDeletedToFixMissingObjectStore++;return m.yield(M.delete(),7);case 7:return _.gQ(new HJ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:X,foundObjectStores:l})),m.return(D());case 6:throw new kSV(l,X);case 5:return m.return(B);case 2:e=_.Qa(m);if(e instanceof DOMException?e.name!=="VersionError":"DOMError"in self&&e instanceof DOMError?e.name!=="VersionError":!(e instanceof Object&&"message"in e)||e.message!=="An attempt was made to open a database using a lower version than the existing version."){m.jumpTo(8);
break}return m.yield(M.openDb(M.name,void 0,Object.assign({},R,{upgrade:void 0})),9);case 9:Q=m.yieldResult;v=Q.getVersion();if(M.options.version!==void 0&&v>M.options.version+1)throw Q.close(),M.isCompatible=!1,GS$(M,v);return m.return(Q);case 8:throw J(),e instanceof Error&&!_.U("ytidb_async_stack_killswitch")&&(e.stack=e.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),Fpn(e,M.name,"",(x=M.options.version)!=null?x:-1);}})};
return this.connectionPromise=z=D()};var HDn=new FM("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(M,z){z(1)&&$_(M,"databases",{keyPath:"actualName"})}});var WpG,u2Y=new function(){}(new function(){});new _.Iz;var wNp=function(M,z){FM.call(this,M,z);this.options=z;nK(M)};
_.w(wNp,FM);var rNG=function(M,z){var J;return function(){J||(J=new wNp(M,z));return J}};
wNp.prototype.openDb=function(M,z,J){J=J===void 0?{}:J;return(this.options.shared?LpH:f83)(M,z,Object.assign({},J))};
wNp.prototype.delete=function(M){M=M===void 0?{}:M;return(this.options.shared?bD3:AN3)(this.name,M)};var xSa={},Mep=Mc("ytGcfConfig",{objectStores:(xSa.coldConfigStore={addedAtVersion:1},xSa.hotConfigStore={addedAtVersion:1},xSa),shared:!1,upgrade:function(M,z){z(1)&&(uD($_(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),uD($_(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var t_Q=function(){_.wS.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var M=_.qH("yt.gcf.config.hotUpdateCallbacks");M?(this.localHotConfigJobQueue=[].concat(_.Yj(M)),this.sharedHotConfigJobQueue=M):(this.sharedHotConfigJobQueue=[],_.b9("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.w(t_Q,_.wS);t_Q.prototype.disposeInternal=function(){for(var M=_.S(this.localHotConfigJobQueue),z=M.next();!z.done;z=M.next()){var J=this.sharedHotConfigJobQueue;z=J.indexOf(z.value);z>=0&&J.splice(z,1)}this.localHotConfigJobQueue.length=0;_.wS.prototype.disposeInternal.call(this)};var tL=function(){var M=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new t_Q;this.TEST_ONLY={initializeConfigDb:function(){M.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return M.coldGlobalConfigGroup},
setHotConfigGroup:function(z){jOS(M,z)},
setHotHashData:function(z){M.setHotHashData(z)},
setColdConfigGroup:function(z){pNv(M,z)},
getColdHashData:function(){return M.coldHashData},
getHotHashData:function(){return M.hotHashData},
getHotConfigGroup:function(){return M.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return F6Q()},
getExportedHotConfigGroup:function(){return YD()},
getExportedColdHashData:function(){return _.qH("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.qH("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){YFa(M)},
resetInstance:function(){M.setHotHashData(void 0);mSB(M);delete tL.instance},
setDebounceTimer:function(z){M.debounceTimer=z},
getDebounceTimer:function(){return M.debounceTimer}}},g2V=function(){if(!tL.instance){var M=new tL;
tL.instance=M}return tL.instance},hJv=function(M){var z;
_.k(function(J){if(J.nextAddress==1)return _.U("start_client_gcf")||_.U("delete_gcf_config_db")?_.U("start_client_gcf")?J.yield(_.rQ(),3):J.jumpTo(2):J.return();J.nextAddress!=2&&((z=J.yieldResult)&&_.wQ()&&!_.U("delete_gcf_config_db")?(M.isConfigDbInitialized=!0,YFa(M)):(sO2(M),n2$(M)));return _.U("delete_gcf_config_db")?J.yield(P78(),0):J.jumpTo(0)})},jI=function(){var M;
return(M=YD())!=null?M:_.HW("RAW_HOT_CONFIG_GROUP")},y1Q=function(M){var z,J,R,D,N,Z;
return _.k(function(B){switch(B.nextAddress){case 1:if(M.hotGlobalConfigGroup)return B.return(YD());if(!M.isConfigDbInitialized)return z=dQ("getHotConfig IDB not initialized"),_.WW(z),B.return(Promise.reject(z));J=CK();R=_.HW("TIME_CREATED_MS");if(!J){D=dQ("getHotConfig token error");_.WW(D);B.jumpTo(2);break}return B.yield(NBn(J),3);case 3:if((N=B.yieldResult)&&N.timestamp>R)return jOS(M,N.config),M.setHotHashData(N.hashData),B.return(YD());case 2:n2$(M);if(!(J&&M.hotGlobalConfigGroup&&M.hotHashData)){B.jumpTo(4);
break}return B.yield(J98(M.hotGlobalConfigGroup,M.hotHashData,J,R),4);case 4:return M.hotGlobalConfigGroup?B.return(YD()):(Z=new _.xN("Config not available in ytConfig"),_.WW(Z),B.return(Promise.reject(Z)))}})},c1k=function(M){var z,J,R,D,N,Z;
return _.k(function(B){switch(B.nextAddress){case 1:if(M.coldGlobalConfigGroup)return B.return(F6Q());if(!M.isConfigDbInitialized)return z=dQ("getColdConfig IDB not initialized"),_.WW(z),B.return(Promise.reject(z));J=CK();R=_.HW("TIME_CREATED_MS");if(!J){D=dQ("getColdConfig");_.WW(D);B.jumpTo(2);break}return B.yield(DGw(J),3);case 3:if((N=B.yieldResult)&&N.timestamp>R)return pNv(M,N.config),H4v(M,N.configData),mSB(M,N.hashData),B.return(F6Q());case 2:sO2(M);if(!(J&&M.coldGlobalConfigGroup&&M.coldHashData&&
M.configData)){B.jumpTo(4);break}return B.yield(R83(M.coldGlobalConfigGroup,M.coldHashData,M.configData,J,R),4);case 4:return M.coldGlobalConfigGroup?B.return(F6Q()):(Z=new _.xN("Config not available in ytConfig"),_.WW(Z),B.return(Promise.reject(Z)))}})},YFa=function(M){if(!M.hotGlobalConfigGroup||!M.coldGlobalConfigGroup){if(!CK()){var z=dQ("scheduleGetConfigs");
_.WW(z)}M.initJob||(M.initJob=_.no.addLowPriorityJob(function(){return _.k(function(J){switch(J.nextAddress){case 1:return _.Io(J,2),J.yield(y1Q(M),4);case 4:_.ab(J,3);break;case 2:_.Qa(J);case 3:return _.Io(J,5),J.yield(c1k(M),7);case 7:_.ab(J,6);break;case 5:_.Qa(J);case 6:M.initJob&&(M.initJob=0),_.UI(J)}})},100))}},J_o=function(M,z,J){var R,D,N;
return _.k(function(Z){switch(Z.nextAddress){case 1:if(!_.U("start_client_gcf")){Z.jumpTo(0);break}J&&jOS(M,J);M.setHotHashData(z);R=CK();if(!R){Z.jumpTo(3);break}if(J){Z.jumpTo(4);break}return Z.yield(NBn(R),5);case 5:D=Z.yieldResult,J=(N=D)==null?void 0:N.config;case 4:return Z.yield(J98(J,z,R),3);case 3:if(J)for(var B=J,O=_.S(M.configUpdateService.sharedHotConfigJobQueue),X=O.next();!X.done;X=O.next())X=X.value,X(B);_.UI(Z)}})},R$3=function(M,z,J){var R,D,N,Z;
return _.k(function(B){if(B.nextAddress==1){if(!_.U("start_client_gcf"))return B.jumpTo(0);mSB(M,z);return(R=CK())?J?B.jumpTo(4):B.yield(DGw(R),5):B.jumpTo(0)}B.nextAddress!=4&&(D=B.yieldResult,J=(N=D)==null?void 0:N.config);if(!J)return B.jumpTo(0);Z=J.configData;return B.yield(R83(J,z,Z,R),0)})},teY=function(){var M=g2V(),z=(0,_.zU)()-M.debounceTimer;
if(!(M.debounceTimer!==0&&z<_.NC("send_config_hash_timer"))){z=_.qH("yt.gcf.config.coldConfigData");var J=_.qH("yt.gcf.config.hotHashData"),R=_.qH("yt.gcf.config.coldHashData");z&&J&&R&&(M.debounceTimer=(0,_.zU)());return{coldConfigData:z,hotHashData:J,coldHashData:R}}},sO2=function(M){pNv(M,_.HW("RAW_COLD_CONFIG_GROUP"));
mSB(M,_.HW("SERIALIZED_COLD_HASH_DATA"));var z;H4v(M,(z=M.coldGlobalConfigGroup)==null?void 0:z.configData)},n2$=function(M){jOS(M,_.HW("RAW_HOT_CONFIG_GROUP"));
M.setHotHashData(_.HW("SERIALIZED_HOT_HASH_DATA"))},jOS=function(M,z){M.hotGlobalConfigGroup=z;
_.b9("yt.gcf.config.hotConfigGroup",M.hotGlobalConfigGroup||null)},pNv=function(M,z){M.coldGlobalConfigGroup=z;
_.b9("yt.gcf.config.coldConfigGroup",M.coldGlobalConfigGroup||null)};
tL.prototype.setHotHashData=function(M){this.hotHashData=M;_.b9("yt.gcf.config.hotHashData",this.hotHashData||null)};
var mSB=function(M,z){M.coldHashData=z;_.b9("yt.gcf.config.coldHashData",M.coldHashData||null)},H4v=function(M,z){M.configData=z;
_.b9("yt.gcf.config.coldConfigData",M.configData||null)},YD=function(){return _.qH("yt.gcf.config.hotConfigGroup")},F6Q=function(){return _.qH("yt.gcf.config.coldConfigGroup")};var TU={},dSv=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";TU.assign=function(M){for(var z=Array.prototype.slice.call(arguments,1);z.length;){var J=z.shift();if(J){if(typeof J!=="object")throw new TypeError("Uc`"+J);for(var R in J)Object.prototype.hasOwnProperty.call(J,R)&&(M[R]=J[R])}}return M};
TU.shrinkBuf=function(M,z){if(M.length===z)return M;if(M.subarray)return M.subarray(0,z);M.length=z;return M};
var K6Q={arraySet:function(M,z,J,R,D){if(z.subarray&&M.subarray)M.set(z.subarray(J,J+R),D);else for(var N=0;N<R;N++)M[D+N]=z[J+N]},
flattenChunks:function(M){var z,J;var R=J=0;for(z=M.length;R<z;R++)J+=M[R].length;var D=new Uint8Array(J);R=J=0;for(z=M.length;R<z;R++){var N=M[R];D.set(N,J);J+=N.length}return D}},$Sk={arraySet:function(M,z,J,R,D){for(var N=0;N<R;N++)M[D+N]=z[J+N]},
flattenChunks:function(M){return[].concat.apply([],M)}};
TU.setTyped=function(){dSv?(TU.Buf8=Uint8Array,TU.Buf16=Uint16Array,TU.Buf32=Int32Array,TU.assign(TU,K6Q)):(TU.Buf8=Array,TU.Buf16=Array,TU.Buf32=Array,TU.assign(TU,$Sk))};
TU.setTyped();var uKS=!0;try{new Uint8Array(1)}catch(M){uKS=!1}
var NH3=function(M){var z,J,R=M.length,D=0;for(z=0;z<R;z++){var N=M.charCodeAt(z);if((N&64512)===55296&&z+1<R){var Z=M.charCodeAt(z+1);(Z&64512)===56320&&(N=65536+(N-55296<<10)+(Z-56320),z++)}D+=N<128?1:N<2048?2:N<65536?3:4}var B=new TU.Buf8(D);for(z=J=0;J<D;z++)N=M.charCodeAt(z),(N&64512)===55296&&z+1<R&&(Z=M.charCodeAt(z+1),(Z&64512)===56320&&(N=65536+(N-55296<<10)+(Z-56320),z++)),N<128?B[J++]=N:(N<2048?B[J++]=192|N>>>6:(N<65536?B[J++]=224|N>>>12:(B[J++]=240|N>>>18,B[J++]=128|N>>>12&63),B[J++]=
128|N>>>6&63),B[J++]=128|N&63);return B};var EV8={};EV8=function(M,z,J,R){var D=M&65535|0;M=M>>>16&65535|0;for(var N;J!==0;){N=J>2E3?2E3:J;J-=N;do D=D+z[R++]|0,M=M+D|0;while(--N);D%=65521;M%=65521}return D|M<<16|0};for(var po={},m8,qFB=[],W6v=0;W6v<256;W6v++){m8=W6v;for(var a3$=0;a3$<8;a3$++)m8=m8&1?3988292384^m8>>>1:m8>>>1;qFB[W6v]=m8}po=function(M,z,J,R){J=R+J;for(M^=-1;R<J;R++)M=M>>>8^qFB[(M^z[R])&255];return M^-1};var lD={};lD={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 y9p=[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],c90=[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],D3c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aS0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vI=Array(576);ZG(vI);var GU=Array(60);ZG(GU);var oH=Array(512);ZG(oH);var IH=Array(256);ZG(IH);var HXo=Array(29);ZG(HXo);var dGp=Array(30);ZG(dGp);var zfe,JJc,Rf3,MNb=!1;var sy;
sy=[new m2(0,0,0,0,function(M,z){var J=65535;for(J>M.pending_buf_size-5&&(J=M.pending_buf_size-5);;){if(M.lookahead<=1){FJ(M);if(M.lookahead===0&&z===0)return 1;if(M.lookahead===0)break}M.strstart+=M.lookahead;M.lookahead=0;var R=M.block_start+J;if(M.strstart===0||M.strstart>=R)if(M.lookahead=M.strstart-R,M.strstart=R,x_(M,!1),M.strm.avail_out===0)return 1;if(M.strstart-M.block_start>=M.w_size-262&&(x_(M,!1),M.strm.avail_out===0))return 1}M.insert=0;if(z===4)return x_(M,!0),M.strm.avail_out===0?3:
4;M.strstart>M.block_start&&x_(M,!1);return 1}),
new m2(4,4,8,4,fSc),new m2(4,5,16,8,fSc),new m2(4,6,32,32,fSc),new m2(4,4,16,16,Y_),new m2(8,16,32,32,Y_),new m2(8,16,128,128,Y_),new m2(8,32,128,256,Y_),new m2(32,128,258,1024,Y_),new m2(32,258,258,4096,Y_)];var r9w={};r9w=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 PaG=Object.prototype.toString;
bXp.prototype.push=function(M,z){var J=this.strm,R=this.options.chunkSize;if(this.ended)return!1;var D=z===~~z?z:z===!0?4:0;typeof M==="string"?J.input=NH3(M):PaG.call(M)==="[object ArrayBuffer]"?J.input=new Uint8Array(M):J.input=M;J.next_in=0;J.avail_in=J.input.length;do{J.avail_out===0&&(J.output=new TU.Buf8(R),J.next_out=0,J.avail_out=R);M=C70(J,D);if(M!==1&&M!==0)return V_p(this,M),this.ended=!0,!1;if(J.avail_out===0||J.avail_in===0&&(D===4||D===2))if(this.options.to==="string"){var N=TU.shrinkBuf(J.output,
J.next_out);z=N;N=N.length;if(N<65537&&(z.subarray&&uKS||!z.subarray))z=String.fromCharCode.apply(null,TU.shrinkBuf(z,N));else{for(var Z="",B=0;B<N;B++)Z+=String.fromCharCode(z[B]);z=Z}this.chunks.push(z)}else z=TU.shrinkBuf(J.output,J.next_out),this.chunks.push(z)}while((J.avail_in>0||J.avail_out===0)&&M!==1);if(D===4)return(J=this.strm)&&J.state?(R=J.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?M=eW(J,-2):(J.state=null,M=R===113?eW(J,-3):0)):M=-2,V_p(this,M),this.ended=
!0,M===0;D===2&&(V_p(this,0),J.avail_out=0);return!0};
var V_p=function(M,z){z===0&&(M.result=M.options.to==="string"?M.chunks.join(""):TU.flattenChunks(M.chunks));M.chunks=[];M.err=z;M.msg=M.strm.msg};var E2a=typeof TextEncoder!=="undefined"?new TextEncoder:null,HdG=E2a?function(M){return E2a.encode(M)}:function(M){M=_.Gz(M);
for(var z=new Uint8Array(M.length),J=0;J<z.length;J++)z[J]=M[J];return z};var kdp={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},OH8={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var gd=function(M,z){this.version=M;this.args=z};
gd.prototype.serialize=function(){return{version:this.version,args:this.args}};var Odc=function(M,z){this.topic=M;this.dataClass=z};
Odc.prototype.toString=function(){return this.topic};var f3$=_.qH("ytPubsub2Pubsub2Instance")||new _.l9;_.l9.prototype.subscribe=_.l9.prototype.subscribe;_.l9.prototype.unsubscribeByKey=_.l9.prototype.unsubscribeByKey;_.l9.prototype.publish=_.l9.prototype.publish;_.l9.prototype.clear=_.l9.prototype.clear;_.b9("ytPubsub2Pubsub2Instance",f3$);var BHn=_.qH("ytPubsub2Pubsub2SubscribedKeys")||{};_.b9("ytPubsub2Pubsub2SubscribedKeys",BHn);var IE0=_.qH("ytPubsub2Pubsub2TopicToKeys")||{};_.b9("ytPubsub2Pubsub2TopicToKeys",IE0);
var THc=_.qH("ytPubsub2Pubsub2IsAsync")||{};_.b9("ytPubsub2Pubsub2IsAsync",THc);_.b9("ytPubsub2Pubsub2SkipSubKey",null);var x38=void 0,Gp8=void 0;var su3=_.NC("max_body_size_to_compress",5E5),nz8=_.NC("min_body_size_to_compress",500),yS=!0,Kxp=0,HI=0,d3H=_.NC("compression_performance_threshold_lr",250),$3G=_.NC("slow_compressions_before_abandon_count",4),pUH=!1,Fxc=new Map,yJw=1,hf3=!0;_.ZP(cI,Wxn);cI.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 L62=function(M,z,J){J||(J=0);var R=M.W_;if(typeof z==="string")for(var D=0;D<16;D++)R[D]=z.charCodeAt(J)<<24|z.charCodeAt(J+1)<<16|z.charCodeAt(J+2)<<8|z.charCodeAt(J+3),J+=4;else for(D=0;D<16;D++)R[D]=z[J]<<24|z[J+1]<<16|z[J+2]<<8|z[J+3],J+=4;for(z=16;z<80;z++)J=R[z-3]^R[z-8]^R[z-14]^R[z-16],R[z]=(J<<1|J>>>31)&4294967295;z=M.chain_[0];J=M.chain_[1];D=M.chain_[2];for(var N=M.chain_[3],Z=M.chain_[4],B,O,X=0;X<80;X++)X<40?X<20?(B=N^J&(D^N),O=1518500249):(B=J^D^N,O=1859775393):X<60?(B=J&D|N&(J|D),
O=2400959708):(B=J^D^N,O=3395469782),B=(z<<5|z>>>27)+B+Z+O+R[X]&4294967295,Z=N,N=D,D=(J<<30|J>>>2)&4294967295,J=z,z=B;M.chain_[0]=M.chain_[0]+z&4294967295;M.chain_[1]=M.chain_[1]+J&4294967295;M.chain_[2]=M.chain_[2]+D&4294967295;M.chain_[3]=M.chain_[3]+N&4294967295;M.chain_[4]=M.chain_[4]+Z&4294967295};
cI.prototype.update=function(M,z){if(M!=null){z===void 0&&(z=M.length);for(var J=z-this.blockSize,R=0,D=this.buf_,N=this.inbuf_;R<z;){if(N==0)for(;R<=J;)L62(this,M,R),R+=this.blockSize;if(typeof M==="string")for(;R<z;){if(D[N]=M.charCodeAt(R),++N,++R,N==this.blockSize){L62(this,D);N=0;break}}else for(;R<z;)if(D[N]=M[R],++N,++R,N==this.blockSize){L62(this,D);N=0;break}}this.inbuf_=N;this.total_+=z}};
cI.prototype.digest=function(){var M=[],z=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var J=this.blockSize-1;J>=56;J--)this.buf_[J]=z&255,z/=256;L62(this,this.buf_);for(J=z=0;J<5;J++)for(var R=24;R>=0;R-=8)M[z]=this.chain_[J]>>R&255,++z;return M};var Eze;var nC=function(M){var z=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(l){z.databaseToken=l},
triggerThrottle:function(){z.throttledSend()},
cancelThrottle:function(){z.cancelThrottledSend()},
immediateSend:function(l){return _.k(function(e){return e.yield(z.immediateSend(l),0)})},
requestWithinAgeLimit:function(l,e){return z.requestWithinAgeLimit(l,e)},
retryQueuedRequests:function(){z.retryQueuedRequests()}};
var J;this.throttleTimeout=(J=M.throttleTimeout)!=null?J:100;var R;this.retryMaxAttempts=(R=M.retryMaxAttempts)!=null?R:1;var D;this.requestAgeLimitMs=(D=M.requestAgeLimitMs)!=null?D:2592E6;var N;this.queuedRequestAgeLimitMs=(N=M.queuedRequestAgeLimitMs)!=null?N:12E4;var Z;this.retryDelayMs=(Z=M.retryDelayMs)!=null?Z:5E3;var B;this.databaseToken=(B=M.databaseToken)!=null?B:void 0;this.enableCleaning=!!M.enableCleaning;var O;this.cleaningRate=(O=M.cleaningRate)!=null?O:.1;var X;this.potentialEsfErrorLimit=
(X=M.potentialEsfErrorLimit)!=null?X:10;M.handleError&&(this.handleError=M.handleError);M.handleWarning&&(this.handleWarning=M.handleWarning);M.disableYtIdbTransactions&&(this.disableYtIdbTransactions=M.disableYtIdbTransactions);M.bypassDbTokenDependency&&(this.bypassDbTokenDependency=M.bypassDbTokenDependency);this.getBooleanFlag=M.getBooleanFlag;this.jobManager=M.jobManager;this.logsStore=M.logsStore;this.networkManager=M.networkManager;this.sendFn=M.sendFn;this.onlineEvent=M.onlineEvent;this.offlineEvent=
M.offlineEvent;sq(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&A1V(this)},A1V=function(M){sq(M)&&!M.disableYtIdbTransactions&&(M.initialized=!0,M.enableCleaning&&Math.random()<=M.cleaningRate&&M.logsStore.cleanLogsStore(M.databaseToken),M.retryQueuedRequests(),M.networkManager.isNetworkAvailable()&&M.throttledSend(),M.networkManager.listen(M.onlineEvent,M.throttledSend.bind(M)),M.networkManager.listen(M.offlineEvent,M.cancelThrottledSend.bind(M)))};
_.P=nC.prototype;_.P.writeThenSend=function(M,z){var J=this;z=z===void 0?{}:z;if(sq(this)&&this.initialized){var R={url:M,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(R,this.databaseToken).then(function(D){R.id=D;J.networkManager.isNetworkAvailable()&&J.immediateSend(R)}).catch(function(D){J.immediateSend(R);
i4a(J,D)})}else this.sendFn(M,z)};
_.P.sendThenWrite=function(M,z,J){var R=this;z=z===void 0?{}:z;if(sq(this)&&this.initialized){var D={url:M,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(D.skipRetry=J);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!D.skipRetry){if(!D.skipRetry){var N=z.onError?z.onError:function(){};
z.onError=function(Z,B){return _.k(function(O){if(O.nextAddress==1)return O.yield(R.logsStore.set(D,R.databaseToken).catch(function(X){i4a(R,X)}),2);
N(Z,B);_.UI(O)})}}this.sendFn(M,z,D.skipRetry)}else this.logsStore.set(D,this.databaseToken).catch(function(Z){R.sendFn(M,z,D.skipRetry);
i4a(R,Z)})}else this.sendFn(M,z,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&J)};
_.P.sendAndWrite=function(M,z){var J=this;z=z===void 0?{}:z;if(sq(this)&&this.initialized){var R={url:M,options:z,timestamp:this.now(),status:"NEW",sendCount:0},D=!1,N=z.onSuccess?z.onSuccess:function(){};
R.options.onSuccess=function(Z,B){R.id!==void 0?J.logsStore.deleteRequest(R.id,J.databaseToken):D=!0;J.networkManager.networkStatusHint&&J.getBooleanFlag&&J.getBooleanFlag("vss_network_hint")&&J.networkManager.networkStatusHint(!0);N(Z,B)};
this.sendFn(R.url,R.options,void 0,!0);this.logsStore.set(R,this.databaseToken).then(function(Z){R.id=Z;D&&J.logsStore.deleteRequest(R.id,J.databaseToken)}).catch(function(Z){i4a(J,Z)})}else this.sendFn(M,z,void 0,!0)};
_.P.throttledSend=function(){var M=this;if(!sq(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.logsStore.getMostRecentByStatus("NEW",M.databaseToken),2);if(J.nextAddress!=3)return z=J.yieldResult,z?J.yield(M.immediateSend(z),3):(M.cancelThrottledSend(),J.return());M.intervalJob&&(M.intervalJob=0,M.throttledSend());_.UI(J)})},this.throttleTimeout))};
_.P.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.P.immediateSend=function(M){var z=this,J;return _.k(function(R){switch(R.nextAddress){case 1:if(!sq(z))throw Error("Yc");if(M.id===void 0){R.jumpTo(2);break}return R.yield(z.logsStore.markAsQueued(M.id,z.databaseToken),3);case 3:(J=R.yieldResult)||z.handleWarning(Error("Zc"));case 2:if(z.requestWithinAgeLimit(M,z.requestAgeLimitMs)){R.jumpTo(4);break}z.handleWarning(Error("$c"));if(M.id===void 0){R.jumpTo(5);break}return R.yield(z.logsStore.deleteRequest(M.id,z.databaseToken),5);case 5:return R.return();
case 4:M.skipRetry||(M=C4$(z,M));if(!M){R.jumpTo(0);break}if(!M.skipRetry||M.id===void 0){R.jumpTo(8);break}return R.yield(z.logsStore.deleteRequest(M.id,z.databaseToken),8);case 8:z.sendFn(M.url,M.options,!!M.skipRetry),_.UI(R)}})};
var C4$=function(M,z){if(!sq(M))throw Error("ad");var J=z.options.onError?z.options.onError:function(){};
z.options.onError=function(D,N){var Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:Z=Cap(N);(B=bdH(N))&&M.getBooleanFlag&&M.getBooleanFlag("web_enable_error_204")&&M.handleError(Error("bd"),z.url,N);if(!(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&Z||M.getBooleanFlag&&!M.getBooleanFlag("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.potentialEsfErrorLimit)){l.jumpTo(2);break}if(!M.networkManager.sendNetworkCheckRequest){l.jumpTo(3);break}return l.yield(M.networkManager.sendNetworkCheckRequest(),
3);case 3:if(M.networkManager.isNetworkAvailable()){l.jumpTo(2);break}J(D,N);if(!M.getBooleanFlag||!M.getBooleanFlag("nwl_consider_error_code")||((O=z)==null?void 0:O.id)===void 0){l.jumpTo(6);break}return l.yield(M.logsStore.resetRequest(z.id,M.databaseToken,!1),6);case 6:return l.return();case 2:if(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&!Z&&M.potentialEsfErrorCounter>M.potentialEsfErrorLimit)return l.return();M.potentialEsfErrorCounter++;if(((X=z)==null?void 0:X.id)===void 0){l.jumpTo(8);
break}return z.sendCount<M.retryMaxAttempts?l.yield(M.logsStore.resetRequest(z.id,M.databaseToken,!0,B?!1:void 0),12):l.yield(M.logsStore.deleteRequest(z.id,M.databaseToken),8);case 12:M.jobManager.addLowPriorityJob(function(){M.networkManager.isNetworkAvailable()&&M.throttledSend()},M.retryDelayMs);
case 8:J(D,N),_.UI(l)}})};
var R=z.options.onSuccess?z.options.onSuccess:function(){};
z.options.onSuccess=function(D,N){var Z;return _.k(function(B){if(B.nextAddress==1)return((Z=z)==null?void 0:Z.id)===void 0?B.jumpTo(2):B.yield(M.logsStore.deleteRequest(z.id,M.databaseToken),2);M.networkManager.networkStatusHint&&M.getBooleanFlag&&M.getBooleanFlag("vss_network_hint")&&M.networkManager.networkStatusHint(!0);R(D,N);_.UI(B)})};
return z};
nC.prototype.requestWithinAgeLimit=function(M,z){M=M.timestamp;return this.now()-M>=z?!1:!0};
nC.prototype.retryQueuedRequests=function(){var M=this;if(!sq(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(z){z&&!M.requestWithinAgeLimit(z,M.queuedRequestAgeLimitMs)?M.jobManager.addLowPriorityJob(function(){return _.k(function(J){if(J.nextAddress==1)return z.id===void 0?J.jumpTo(2):J.yield(M.logsStore.resetRequest(z.id,M.databaseToken),2);M.retryQueuedRequests();_.UI(J)})}):M.networkManager.isNetworkAvailable()&&M.throttledSend()})};
var i4a=function(M,z){M.writeError&&!M.networkManager.isNetworkAvailable()?M.writeError(z):M.handleError(z)},sq=function(M){return!!M.databaseToken||M.bypassDbTokenDependency};var rJ8;var PEp={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,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};var b4v={},kmH=Mc("ServiceWorkerLogsDatabase",{objectStores:(b4v.SWHealthLog={addedAtVersion:1},b4v),shared:!0,upgrade:function(M,z){z(1)&&uD($_(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var eto={},lfo=0;var GmH;var h$=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Ey=function(){if(!h$.instance){var M=_.qH("yt.networkRequestMonitor.instance")||new h$;
_.b9("yt.networkRequestMonitor.instance",M);h$.instance=M}return h$.instance};
h$.prototype.requestComplete=function(M,z){z&&(this.anyRequestHasSucceeded=!0);M=this.removeParams(M);this.requestMap.get(M)||this.requestMap.set(M,z)};
h$.prototype.isEndpointCFR=function(M){M=this.removeParams(M);return(M=this.requestMap.get(M))?!1:M===!1&&this.anyRequestHasSucceeded?!0:null};
h$.prototype.removeParams=function(M){return M.split("?")[0]};
h$.prototype.removeParams=h$.prototype.removeParams;h$.prototype.isEndpointCFR=h$.prototype.isEndpointCFR;h$.prototype.requestComplete=h$.prototype.requestComplete;h$.getInstance=Ey;var yQ=function(M){_.jB.call(this);var z=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=M!=null?M:{addLowPriorityJob:function(D,N){return setTimeout(D,N)},
cancelJob:function(D){clearTimeout(D)}};
var J,R;this.isOnline=(R=(J=window.navigator)==null?void 0:J.onLine)!=null?R:!0;this.onNavigatorChange=function(){return _.k(function(D){return D.yield(r1g(z),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||MnQ(this)};
_.w(yQ,_.jB);yQ.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete yQ.instance};
yQ.prototype.isNetworkAvailable=function(){return this.isOnline};
var MnQ=function(M){M.pollingJob=M.jobManager.addLowPriorityJob(function(){var z;return _.k(function(J){if(J.nextAddress==1)return M.isOnline?((z=window.navigator)==null?0:z.onLine)?J.jumpTo(3):J.yield(r1g(M),3):J.yield(r1g(M),3);MnQ(M);_.UI(J)})},3E4)},r1g=function(M,z){return M.networkRequestPromise?M.networkRequestPromise:M.networkRequestPromise=new Promise(function(J){var R,D,N,Z;
return _.k(function(B){switch(B.nextAddress){case 1:return R=window.AbortController?new window.AbortController:void 0,N=(D=R)==null?void 0:D.signal,Z=!1,_.Io(B,2,3),R&&(M.abortTimeoutKey=M.jobManager.addLowPriorityJob(function(){R.abort()},z||2E4)),B.yield(fetch("/generate_204",{method:"HEAD",
signal:N}),5);case 5:Z=!0;case 3:_.X4(B);M.networkRequestPromise=void 0;M.abortTimeoutKey&&(M.jobManager.cancelJob(M.abortTimeoutKey),M.abortTimeoutKey=0);Z!==M.isOnline&&(M.isOnline=Z,M.isOnline?M.dispatchEvent("networkstatus-online"):M.dispatchEvent("networkstatus-offline"));J(Z);_.eX(B,0);break;case 2:_.Qa(B),Z=!1,B.jumpTo(3)}})})};var Hh=function(){_.jB.call(this);var M=this;this.shouldFlushErrors=!1;yQ.instance||(yQ.instance=new yQ(_.no));this.sharedNetworkStatusManager=yQ.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(M.shouldFlushErrors&&_.U("offline_error_handling")){var z=w5w().get("errors",!0);if(z){for(var J in z)if(z[J]){var R=new _.xN(J,"sent via offline_errors");R.name=z[J].name;R.stack=z[J].stack;R.level=z[J].level;_.$y(R)}w5w().set("errors",{},2592E3,!0)}}})};
_.w(Hh,_.jB);var zMp=function(){if(!Hh.instance){var M=_.qH("yt.networkStatusManager.instance")||new Hh;_.b9("yt.networkStatusManager.instance",M);Hh.instance=M}return Hh.instance};
_.P=Hh.prototype;_.P.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.P.networkStatusHint=function(M){this.sharedNetworkStatusManager.isOnline=M};
_.P.getWindowStatus=function(){var M=window.navigator.onLine;return M===void 0?!0:M};
_.P.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.P.listen=function(M,z){return this.sharedNetworkStatusManager.listen(M,z)};
_.P.sendNetworkCheckRequest=function(M){M=r1g(this.sharedNetworkStatusManager,M);M.then(function(z){_.U("use_cfr_monitor")&&Ey().requestComplete("generate_204",z)});
return M};
Hh.prototype.sendNetworkCheckRequest=Hh.prototype.sendNetworkCheckRequest;Hh.prototype.listen=Hh.prototype.listen;Hh.prototype.enableErrorFlushing=Hh.prototype.enableErrorFlushing;Hh.prototype.getWindowStatus=Hh.prototype.getWindowStatus;Hh.prototype.networkStatusHint=Hh.prototype.networkStatusHint;Hh.prototype.isNetworkAvailable=Hh.prototype.isNetworkAvailable;Hh.getInstance=zMp;_.VS=function(M){M=M===void 0?{}:M;_.jB.call(this);var z=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=zMp();var J=_.qH("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);J&&(M.rateLimit?(this.rateLimit=M.rateLimit,J("networkstatus-online",function(){JuJ(z,"publicytnetworkstatus-online")}),J("networkstatus-offline",function(){JuJ(z,"publicytnetworkstatus-offline")})):(J("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),J("networkstatus-offline",
function(){z.dispatchEvent("publicytnetworkstatus-offline")})))};
_.w(_.VS,_.jB);_.VS.prototype.isNetworkAvailable=function(){var M=_.qH("yt.networkStatusManager.instance.isNetworkAvailable");return M?M.bind(this.nsmInstance)():!0};
_.VS.prototype.networkStatusHint=function(M){var z=_.qH("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);z&&z(M)};
_.VS.prototype.sendNetworkCheckRequest=function(M){var z=this,J;return _.k(function(R){J=_.qH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.nsmInstance);return _.U("skip_network_check_if_cfr")&&Ey().isEndpointCFR("generate_204")?R.return(new Promise(function(D){var N;z.networkStatusHint(((N=window.navigator)==null?void 0:N.onLine)||!0);D(z.isNetworkAvailable())})):J?R.return(J(M)):R.return(!0)})};
var JuJ=function(M,z){M.rateLimit?M.lastJobTime?(_.no.cancelJob(M.schedulerJob),M.schedulerJob=_.no.addLowPriorityJob(function(){M.lastPublicSignalSent!==z&&(M.dispatchEvent(z),M.lastPublicSignalSent=z,M.lastJobTime=(0,_.zU)())},M.rateLimit-((0,_.zU)()-M.lastJobTime))):(M.dispatchEvent(z),M.lastPublicSignalSent=z,M.lastJobTime=(0,_.zU)()):M.dispatchEvent(z)};var FK3,ch=function(){nC.call(this,{logsStore:{cleanLogsStore:SU3,deleteRequest:P5G,getMostRecentByStatus:Rtn,markAsQueued:Dfw,resetRequest:Nvc,set:JhR},networkManager:_.YUH(),handleError:function(M,z,J){var R,D=J==null?void 0:(R=J.error)==null?void 0:R.code;if(D===400||D===415){var N;M=new _.xN(M.message,z,J==null?void 0:(N=J.error)==null?void 0:N.code);_.WW(M,void 0,void 0,void 0,!0)}else _.$y(M)},
handleWarning:_.WW,sendFn:jEp,now:_.zU,writeError:xfw,jobManager:_.sj(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.NC("potential_esf_error_limit",10),getBooleanFlag:_.U,disableYtIdbTransactions:!(_.wQ()&&_.mfw())});this.initializationPromise=new _.Iz;_.U("networkless_immediately_drop_all_requests")&&Ze8();bD3("LogsDatabaseV2")};
_.w(ch,nC);_.DIV=function(){var M=_.qH("yt.networklessRequestController.instance");M||(M=new ch,_.b9("yt.networklessRequestController.instance",M),_.U("networkless_logging")&&_.rQ().then(function(z){M.databaseToken=z;A1V(M);M.initializationPromise.resolve();M.enableCleaning&&Math.random()<=M.cleaningRate&&M.databaseToken&&Oeb(M.databaseToken);_.U("networkless_immediately_drop_sw_health_store")&&RMt(M)}));
return M};
ch.prototype.writeThenSend=function(M,z){z||(z={});z=p58(M,z);_.wQ()||(this.initialized=!1);nC.prototype.writeThenSend.call(this,M,z)};
ch.prototype.sendThenWrite=function(M,z,J){z||(z={});z=p58(M,z);_.wQ()||(this.initialized=!1);nC.prototype.sendThenWrite.call(this,M,z,J)};
ch.prototype.sendAndWrite=function(M,z){z||(z={});z=p58(M,z);_.wQ()||(this.initialized=!1);nC.prototype.sendAndWrite.call(this,M,z)};
ch.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var RMt=function(M){var z;_.k(function(J){if(!M.databaseToken)throw z=dQ("clearSWHealthLogsDb"),z;return J.return(TvG(M.databaseToken).catch(function(R){M.handleError(R)}))})};_.sEY=!1;_.gS8=_.R3.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.sEY};_.b9("ytNetworklessLoggingInitializationOptions",_.gS8);var Y4=function(M){var z=this;this.config_=null;M?this.config_=M:SAc()&&(this.config_=_.RH());_.x4(_.no,function(){idp(z)},5E3)};
Y4.prototype.isReady=function(){!this.config_&&SAc()&&(this.config_=_.RH());return!!this.config_};
var AJe=function(M,z,J,R){!_.HW("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&_.WW(new _.xN("Missing VISITOR_DATA when sending innertube request.",z,J,R));if(!M.isReady()){var D=new _.xN("innertube xhrclient not ready",z,J,R);_.$y(D);throw D;}var N={headers:R.headers||{},method:"POST",postParams:J,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()},
onFetchTimeout:R.onTimeout,onSuccess:function(e,Q){if(R.onSuccess)R.onSuccess(Q)},
onFetchSuccess:function(e){if(R.onSuccess)R.onSuccess(e)},
onProgress:function(e){if(R.onProgress)R.onProgress(e)},
onError:function(e,Q){if(R.onError)R.onError(Q)},
onFetchError:function(e){if(R.onError)R.onError(e)},
timeout:R.timeout,withCredentials:!0,compress:R.compress};N.headers["Content-Type"]||(N.headers["Content-Type"]="application/json");var Z="";(D=M.config_.innertubeHostOverride)&&(Z=D);var B=M.config_.innertubeUseThirdPartyAuth||!1,O=_.xGH(B,Z,R);Object.assign(N.headers,O);N.headers.Authorization&&!Z&&B&&(N.headers["x-origin"]=window.location.origin);var X=_.Lh(Z+("/youtubei/"+M.config_.innertubeApiVersion+"/"+z),{alt:"json"}),l=function(e){e=e===void 0?!1:e;var Q;if(R.retry&&Z!="www.youtube-nocookie.com"&&
(e||_.U("skip_ls_gel_retry")||N.headers["Content-Type"]!=="application/json"||(Q=fEw(z,J,O,B)),Q)){var v=N.onSuccess,x=N.onFetchSuccess;N.onSuccess=function(H,q){Lxb(Q);v(H,q)};
J.onFetchSuccess=function(H,q){Lxb(Q);x(H,q)}}try{if(e&&R.retry&&!R.networklessOptions.bypassNetworkless)N.method="POST",R.networklessOptions.writeThenSend?_.DIV().writeThenSend(X,N):_.DIV().sendAndWrite(X,N);
else if(R.compress){var m=!R.networklessOptions.writeThenSend;if(N.postBody){var y=N.postBody;typeof y!=="string"&&(y=JSON.stringify(N.postBody));cJY(X,y,N,_.ob,m)}else cJY(X,JSON.stringify(N.postParams),N,aLw,m)}else _.U("web_all_payloads_via_jspb")?_.ob(X,N):aLw(X,N)}catch(H){if(H.name==="InvalidAccessError")Q&&(Lxb(Q),Q=0),_.WW(Error("dd"));else throw H;}Q&&_.x4(_.no,function(){idp(M)},5E3)};
_.nSR()?a8o().then(function(e){l(e)}):l(!1)};var cno=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(cno,_.zA);var NMa=0,yhe=_.oJ?"webkit":_.IJ?"moz":_.Tj?"ms":o0e?"o":"";_.b9("ytDomDomGetNextId",_.qH("ytDomDomGetNextId")||function(){return++NMa});var PSp={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},rc=function(M){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(M=
M||window.event){this.event=M;for(var z in M)z in PSp||(this[z]=M[z]);this.scale=M.scale;this.rotation=M.rotation;var J=M.target||M.srcElement;J&&J.nodeType==3&&(J=J.parentNode);this.target=J;var R=M.relatedTarget;if(R)try{R=R.nodeName?R:null}catch(D){R=null}else this.type=="mouseover"?R=M.fromElement:this.type=="mouseout"&&(R=M.toElement);this.relatedTarget=R;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode:M.which;
this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pageX_=M.pageX;this.pageY_=M.pageY}}catch(D){}},SKk=function(M){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;
M.pageX_=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.pageY_=M.clientY+z}};
rc.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
rc.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
rc.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var bD=_.R3.ytEventsEventsListeners||{};_.b9("ytEventsEventsListeners",bD);var uH0=_.R3.ytEventsEventsCounter||{count:0};_.b9("ytEventsEventsCounter",uH0);var qUG=_.tw(function(){var M=!1;try{var z=Object.defineProperty({},"capture",{get:function(){M=!0}});
window.addEventListener("test",null,z)}catch(J){}return M});_.ZP(zF,_.wS);zF.prototype.onMouseMove_=function(M){M.pageX_===void 0&&SKk(M);var z=M.pageX_;M.pageY_===void 0&&SKk(M);this.position_=new _.nO(z,M.pageY_)};
zF.prototype.checkPosition_=function(){if(this.position_){var M=(0,_.zU)();if(this.previousTime_!=0){var z=this.previousPosition_,J=this.position_,R=z.x-J.x;z=z.y-J.y;R=Math.sqrt(R*R+z*z)/(M-this.previousTime_);this.cycles_[this.index_]=Math.abs((R-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(J=z=0;J<4;J++)z+=this.cycles_[J]||0;z>=3&&this.callback_();this.previousVelocity_=R}this.previousTime_=M;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
zF.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.WK8(this.mouseListenerKey_)};var ffp={};var z$w=new _.R_("rawColdConfigGroup");var MFG=new _.R_("rawHotConfigGroup");var Zuv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Zuv,_.zA);var HRR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(HRR,_.zA);var wP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M,500)};
_.w(wP,_.zA);wP.prototype.getPayloadCase=function(){return _.py(this,ki$)};
wP.prototype.getContext=function(){return _.DG(this,HRR,33)};
var ki$=[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,527];var LN3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(LN3,_.zA);var x7p=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(x7p,_.zA);x7p.prototype.setVideoId=function(M){return of(this,1,th0,O5(M))};
x7p.prototype.getPlaylistId=function(){return _.o2(this,UB(this,th0,2))};
var th0=[1,2];var qNY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(qNY,_.zA);qNY.prototype.getContext=function(){return _.DG(this,XS,1)};
qNY.prototype.getTier=function(){return _.yE(this,7)};var BMu,Np,Pb;BMu=_.R3.ytPubsubPubsubInstance||new _.l9;Np=_.R3.ytPubsubPubsubSubscribedKeys||{};Pb=_.R3.ytPubsubPubsubTopicToKeys||{};_.LKp=_.R3.ytPubsubPubsubIsSynchronous||{};_.l9.prototype.subscribe=_.l9.prototype.subscribe;_.l9.prototype.unsubscribeByKey=_.l9.prototype.unsubscribeByKey;_.l9.prototype.publish=_.l9.prototype.publish;_.l9.prototype.clear=_.l9.prototype.clear;_.b9("ytPubsubPubsubInstance",BMu);_.b9("ytPubsubPubsubTopicToKeys",Pb);_.b9("ytPubsubPubsubIsSynchronous",_.LKp);
_.b9("ytPubsubPubsubSubscribedKeys",Np);var Zh=window;var dd=_.U("web_enable_lifecycle_monitoring")&&rh0()!==0,Oug=_.U("web_enable_lifecycle_monitoring");var TMk=function(M){var z=this;var J=J===void 0?0:J;var R=R===void 0?_.sj():R;this.JSC$10814_defaultPriority=J;this.scheduler=R;this.completedResolver=new _.Iz;this.scheduledPayloads=M;for(M={i$jscomp$487:0};M.i$jscomp$487<this.scheduledPayloads.length;M={payload$jscomp$19:void 0,i$jscomp$487:M.i$jscomp$487},M.i$jscomp$487++)M.payload$jscomp$19=this.scheduledPayloads[M.i$jscomp$487],J=function(D){return function(){D.payload$jscomp$19.job();z.scheduledPayloads[D.i$jscomp$487].processed=!0;z.scheduledPayloads.every(function(N){return N.processed===
!0})&&z.completedResolver.resolve()}}(M),R=this.getPriority(M.payload$jscomp$19),R=this.scheduler.addJob(J,R),this.scheduledPayloads[M.i$jscomp$487]=Object.assign({},M.payload$jscomp$19,{job:J,
jobId:R})};
TMk.prototype.flushJobs=function(){var M=this,z=Array.from(this.scheduledPayloads.keys()).sort(function(R,D){return M.getPriority(M.scheduledPayloads[D])-M.getPriority(M.scheduledPayloads[R])});
z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=this.scheduledPayloads[J.value],J.jobId===void 0||J.processed||(this.scheduler.cancelJob(J.jobId),this.scheduler.addJob(J.job,10))};
TMk.prototype.cancel=function(){for(var M=_.S(this.scheduledPayloads),z=M.next();!z.done;z=M.next())z=z.value,z.jobId===void 0||z.processed||this.scheduler.cancelJob(z.jobId),z.processed=!0;this.completedResolver.resolve()};
TMk.prototype.getPriority=function(M){var z;return(z=M.priority)!=null?z:this.JSC$10814_defaultPriority};var KC=function(M){this.state=M;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};dd&&Mh3(this.state)};
KC.prototype.install=function(M){this.plugins.push(M);return this};
KC.prototype.uninstall=function(){var M=this;_.H4.apply(0,arguments).forEach(function(z){z=M.plugins.indexOf(z);z>-1&&M.plugins.splice(z,1)})};
KC.prototype.transition=function(M,z){var J=this;dd&&zUn(this.state);var R=this.transitions.find(function(N){return Array.isArray(N.from)?N.from.find(function(Z){return Z===J.state&&N.to===M}):N.from===J.state&&N.to===M});
if(R){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);IQV(this,M,z);this.state=M;dd&&Mh3(this.state);R=R.action.bind(this);var D=this.plugins.filter(function(N){return N[M]}).map(function(N){return N[M]});
R(ol$(this,D),z)}else throw Error("ed`"+this.state+"`"+M);};
var ol$=function(M,z){var J=z.filter(function(D){return XsB(M,D)===10}),R=z.filter(function(D){return XsB(M,D)!==10});
return M.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var D=_.H4.apply(0,arguments);return _.k(function(N){if(N.nextAddress==1)return N.yield(M.runImmediateJobsAsync.apply(M,[J].concat(_.Yj(D))),2);M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.Yj(D)));_.UI(N)})}:function(){var D=_.H4.apply(0,arguments);
M.runImmediateJobsSync.apply(M,[J].concat(_.Yj(D)));M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.Yj(D)))}};
KC.prototype.runImmediateJobsSync=function(M){var z=_.H4.apply(1,arguments);_.sj();for(var J=_.S(M),R=J.next(),D={};!R.done;D={lifecycle$jscomp$2:void 0},R=J.next())D.lifecycle$jscomp$2=R.value,kn(function(N){return function(){lQQ(N.lifecycle$jscomp$2.name);RUe(function(){return N.lifecycle$jscomp$2.callback.apply(N.lifecycle$jscomp$2,_.Yj(z))});
$D(N.lifecycle$jscomp$2.name)}}(D))};
KC.prototype.runImmediateJobsAsync=function(M){var z=_.H4.apply(1,arguments),J,R,D,N;return _.k(function(Z){Z.nextAddress==1&&(_.sj(),J=_.S(M),R=J.next(),D={});if(Z.nextAddress!=3){if(R.done)return Z.jumpTo(0);D.lifecycle$jscomp$3=R.value;D.asyncJobCompletion=void 0;N=function(B){return function(){lQQ(B.lifecycle$jscomp$3.name);var O=RUe(function(){return B.lifecycle$jscomp$3.callback.apply(B.lifecycle$jscomp$3,_.Yj(z))});
E0n(O)?B.asyncJobCompletion=_.U("web_lifecycle_error_handling_killswitch")?O.then(function(){$D(B.lifecycle$jscomp$3.name)}):O.then(function(){$D(B.lifecycle$jscomp$3.name)},function(X){JMo(X);
$D(B.lifecycle$jscomp$3.name)}):$D(B.lifecycle$jscomp$3.name)}}(D);
kn(N);return D.asyncJobCompletion?Z.yield(D.asyncJobCompletion,3):Z.jumpTo(3)}D={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};R=J.next();return Z.jumpTo(2)})};
KC.prototype.setJobSetWithScheduledJobs=function(M){var z=_.H4.apply(1,arguments),J=this,R=M.map(function(D){return{job:function(){lQQ(D.name);RUe(function(){return D.callback.apply(D,_.Yj(z))});
$D(D.name)},
priority:XsB(J,D)}});
R.length&&(this.jobSet=new TMk(R))};
var XsB=function(M,z){var J,R;return(R=(J=M.overridePriority)!=null?J:z.priority)!=null?R:0},lQQ=function(M){dd&&M&&Mh3(M)},$D=function(M){dd&&M&&zUn(M)},IQV=function(M,z,J){Oug&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+M.constructor.name+"] '"+M.state+"' to '"+z+"'"),console.log("with message: ",J),console.groupEnd())};
_.rX.Object.defineProperties(KC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var eMg=function(M){KC.call(this,M===void 0?"none":M);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},QTQ;
_.w(eMg,KC);eMg.prototype.runApplicationNavigationBegin=function(M,z){var J=this;this.navigationTimer=_.x4(_.no,function(){J.currentState==="application_navigating"&&J.transition("none")},5E3);
M(z==null?void 0:z.event)};
eMg.prototype.runApplicationNavigationEnd=function(M,z){this.navigationTimer&&(_.no.cancelJob(this.navigationTimer),this.navigationTimer=null);M(z==null?void 0:z.event)};
_.rMc=function(){QTQ||(QTQ=new eMg);return QTQ};var bno=[];_.b9("yt.logging.transport.getScrapedGelPayloads",function(){return bno});var k4=function(){var M=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return M.totalEntries}}};
k4.prototype.storePayload=function(M,z){M=D7b(M);this.store[M]?this.store[M].push(z):(this.memoizedKeySequences={},this.store[M]=[z]);this.totalEntries++;_.U("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return M};
k4.prototype.smartExtractMatchingEntries=function(M){if(!M.keys.length)return[];for(var z=UIu(this,M.keys.splice(0,1)[0]),J=[],R=0;R<z.length;R++)this.store[z[R]]&&M.sizeLimit&&(this.store[z[R]].length<=M.sizeLimit?(J.push.apply(J,_.Yj(this.store[z[R]])),delete this.store[z[R]]):J.push.apply(J,_.Yj(this.store[z[R]].splice(0,M.sizeLimit))));this.totalEntries-=J.length;(M==null?0:M.sizeLimit)&&J.length<(M==null?void 0:M.sizeLimit)&&(M.sizeLimit-=J.length,J.push.apply(J,_.Yj(this.smartExtractMatchingEntries(M))));
return J};
k4.prototype.extractMatchingEntries=function(M){M=UIu(this,M);for(var z=[],J=0;J<M.length;J++)this.store[M[J]]&&(z.push.apply(z,_.Yj(this.store[M[J]])),delete this.store[M[J]]);this.totalEntries-=z.length;return z};
k4.prototype.getSequenceCount=function(M){M=UIu(this,M);for(var z=0,J=0;J<M.length;J++){var R=void 0;z+=((R=this.store[M[J]])==null?void 0:R.length)||0}return z};
var UIu=function(M,z){var J=D7b(z);if(M.memoizedKeySequences[J])return M.memoizedKeySequences[J];var R=Object.keys(M.store)||[];if(R.length<=1&&D7b(z)===R[0])return R;for(var D=[],N=0;N<R.length;N++){var Z=R[N].split("/");if(vlg(z.auth,Z[0])){var B=z.isJspb;vlg(B===void 0?"undefined":B?"true":"false",Z[1])&&vlg(z.cttAuthInfo,Z[2])&&(B=z.tier,B=B===void 0?"undefined":JSON.stringify(B),vlg(B,Z[3])&&D.push(R[N]))}}return M.memoizedKeySequences[J]=D},vlg=function(M,z){return M===void 0||M==="undefined"?
!0:M===z};
k4.prototype.getSequenceCount=k4.prototype.getSequenceCount;k4.prototype.extractMatchingEntries=k4.prototype.extractMatchingEntries;k4.prototype.smartExtractMatchingEntries=k4.prototype.smartExtractMatchingEntries;k4.prototype.storePayload=k4.prototype.storePayload;var hUb,slo,yMw,TF,Gi2,NZe,D6G,gnY,m73,Ql8,nnc,in8,pSw;hUb=_.NC("initial_gel_batch_timeout",2E3);slo=_.NC("gel_queue_timeout_max_ms",6E4);yMw=_.NC("gel_min_batch_size",5);TF=void 0;Gi2=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
NZe=new Gi2;D6G=new Gi2;gnY=new Gi2;m73=new Gi2;nnc=!0;in8=1;_.AMG=new Map;pSw=_.R3.ytLoggingTransportTokensToCttTargetIds_||{};_.b9("ytLoggingTransportTokensToCttTargetIds_",pSw);var jlp=_.R3.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.b9("ytLoggingTransportTokensToJspbCttTargetIds_",jlp);var OB={};var pc=_.R3.ytLoggingGelSequenceIdObj_||{};_.b9("ytLoggingGelSequenceIdObj_",pc);var Zf8=[];var vCw=new Set,IU8=0,tFG=0,x68=0,Xn3=[],oCo=[],j93=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Knp=function(){};
Knp.prototype.getUrl=function(M,z){z=z===void 0?!1:z;return M.hasOwnProperty("shareEndpoint")?null:_.m68(M,null,z)};
var tD0=function(M,z,J){M={endpoint:z,actions:[]};J=(J.path?J.path[0]:J.target).icon||"";z=J.indexOf(":");z>0&&(J=J.substr(z+1));J&&M.actions.push(J);return M};var HfG=/Command$/,y_R=/Endpoint$/,s93=new Map;var wsS,xIu;wsS=1;_.VA=function(){this.actionRoutingMap=new Map};
_.VA.prototype.triggerAction=function(M){var z=new otp(M,!1,_.H4.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.VA.prototype.triggerOptionalAction=function(M){var z=new otp(M,!0,_.H4.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.uM=function(M,z,J){z.forEach(function(R){var D=h$w(R);D&&M.triggerOptionalAction(D,R,J,void 0)})};
_.VA.prototype.handleAction=function(M){var z=this.actionRoutingMap.get(M.actionName);z&&xIu(M,z);M.optionalAction||M.returnValue.length!==0||(M=new _.xN("Unhandled action",M.actionName),_.WW(M))};
xIu=function(M,z){z.forEach(function(J){var R=null;J?R=J.apply(null,M.args):(J=Error("fd"),J.params=M.actionName,_.$y(J));M.returnValue.push(R)})};
_.EB=function(M,z,J){J||(J=wsS++);for(var R=_.S(Object.keys(z)),D=R.next();!D.done;D=R.next()){D=D.value;var N=M.actionRoutingMap.get(D);N||(N=new Map,M.actionRoutingMap.set(D,N));M.registerActionHandler(J,D,z[D],N)}return J};
_.VA.prototype.registerActionHandler=function(M,z,J,R){R.set(M,_.ui(J))};
_.fc=function(M,z,J){z=_.S(Object.keys(z));for(var R=z.next();!R.done;R=z.next())(R=M.actionRoutingMap.get(R.value))&&R.delete(J)};
_.P9(_.VA);var q3Y=function(M,z){var J=_.VA.getInstance();_.mF(function(){var R={},D=_.EB(J,(R[M]=z,R));_.pq(function(){var N={};_.fc(J,(N[M]="",N),D)})})};var Kf0=Symbol("hd");A1c=jTw;var D98=new Set(["For","If","Match","Watch"]),tng={},jT$=(tng[Hl.default]=function(){return qFb},tng.style=function(){return qFb},tng),psg;
for(psg in jT$)rS.attributes[psg]=jT$[psg](rS.attributes[psg]);var zS=new _.Nh("VISIBILITY_OBSERVER");var o8G={retrieve:function(M){return this.id.\u0275prov.token===M.\u0275prov.token?this.contextValue:this?_.im(this,this.id):v_c}};var gXp=function(M,z,J){if(M!==Cc)return!1;M=bfG(document.createElement("div"),function(){var R=z4(!1);try{J[0]()}finally{z4(R)}});
M=Array.from(M.childNodes);M.length===1&&(M=M[0]);return M};var F4t=function(M){M=M.clone();Cit(M);pF(M,"dg",null);pF(M,"d","0");fNp(M,null);LFB(M,null);return M},YKV=!0,mIt=function(M,z,J){var R=J===void 0?{}:J;
J=R.cssRowKey===void 0?void 0:R.cssRowKey;var D=R.combinedSignature===void 0?void 0:R.combinedSignature;var N=R.extraEdges===void 0?void 0:R.extraEdges;R=R.callback===void 0?void 0:R.callback;pF(M,"m",z.join(","));N&&ihk(M,N);J&&(pF(M,"ck",J),D?pF(M,"rs",D):YKV&&(YKV=!1));if(R){if(R!=null&&!MzS.test(R))throw Error("Xa`"+R);pF(M,"cb",R)}M=M.toString();_.PY(M,"/")&&(M=Fdu(document.location.href)+M);return _.wi(M)};var sTt=function(M){return glQ(M).then(function(z){return JSON.parse(z.responseText)})},glQ=function(M){var z={},J=z.xmlHttpFactory?z.xmlHttpFactory.createInstance():XjJ.createInstance();
return(new _.If(function(R,D){var N;try{J.open("GET",M,!0)}catch(O){D(new qh("Error opening XHR: "+O.message,M,J))}J.onreadystatechange=function(){if(J.readyState==4){_.R3.clearTimeout(N);var O;!(O=org(J.status))&&(O=J.status===0)&&(O=ptp(M),O=!(O=="http"||O=="https"||O==""));O?R(J):D(new nlV(J.status,M,J))}};
J.onerror=function(){D(new qh("Network error",M,J))};
if(z.headers)for(var Z in z.headers){var B=z.headers[Z];B!=null&&J.setRequestHeader(Z,B)}z.withCredentials&&(J.withCredentials=z.withCredentials);z.responseType&&(J.responseType=z.responseType);z.mimeType&&J.overrideMimeType(z.mimeType);z.timeoutMs>0&&(N=_.R3.setTimeout(function(){J.onreadystatechange=function(){};
J.abort();D(new hMB(M,J))},z.timeoutMs));
try{J.send(null)}catch(O){J.onreadystatechange=function(){},_.R3.clearTimeout(N),D(new qh("Error sending XHR: "+O.message,M,J))}})).thenCatch(function(R){R instanceof _.q9&&J.abort();
throw R;})},qh=function(M,z,J){_.Mb.call(this,M+", url="+z);
this.url=z;this.xhr=J};
_.ZP(qh,_.Mb);qh.prototype.name="XhrError";var nlV=function(M,z,J){qh.call(this,"Request Failed, status="+M,z,J);this.status=M};
_.ZP(nlV,qh);nlV.prototype.name="XhrHttpError";var hMB=function(M,z){qh.call(this,"Request timed out",M,z)};
_.ZP(hMB,qh);hMB.prototype.name="XhrTimeoutError";N8=N8||{};var Wh=function(){_.wS.call(this)};
_.ZP(Wh,_.wS);Wh.prototype.initialize=function(){};var yuS=function(M,z){this.fn_=M;this.handler_=z};
yuS.prototype.execute=function(M){this.fn_&&(this.fn_.call(this.handler_||null,M),this.fn_=this.handler_=null)};
yuS.prototype.abort=function(){this.handler_=this.fn_=null};var a_=function(M,z){_.wS.call(this);this.deps_=M;this.JSC$10941_id_=z;this.onloadCallbacks_=[];this.JSC$10941_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.ZP(a_,_.wS);a_.prototype.moduleConstructor_=Wh;a_.prototype.module_=null;a_.prototype.getId=function(){return this.JSC$10941_id_};
a_.prototype.registerCallback=function(M,z){return Hut(this.onloadCallbacks_,M,z)};
var cuJ=function(M,z){Hut(M.JSC$10941_onErrorCallbacks_,z)},Hut=function(M,z,J){z=new yuS(z,J);
M.push(z);return z};
a_.prototype.isLoaded=function(){return!!this.module_};
a_.prototype.onLoad=function(M){var z=new this.moduleConstructor_;z.initialize(M());this.module_=z;z=(z=dIJ(this.earlyOnloadCallbacks_,M()))||dIJ(this.onloadCallbacks_,M());z||(this.JSC$10941_onErrorCallbacks_.length=0);return z};
a_.prototype.onError=function(M){(M=dIJ(this.JSC$10941_onErrorCallbacks_,M))&&Dc(Error("ld`"+M));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var dIJ=function(M,z){for(var J=[],R=0;R<M.length;R++)try{M[R].execute(z)}catch(D){Dc(D),J.push(D)}M.length=0;return J.length?J:null};
a_.prototype.disposeInternal=function(){a_.superClass_.disposeInternal.call(this);_.bv(this.module_)};var K4S,VnB,W4a,aQ$,ujJ,qK$,iut,L4u,Au$;
_.Eq=function(M,z,J,R,D){R=R===void 0?!1:R;D=D===void 0?!1:D;var N=N===void 0?!0:N;this.scsReferenceUrl_=W28(_.xq(M).toString(),N);this.cssRowKey_=z;this.combinedSignature_=J;this.useNegativeLoading_=R;this.requestedModuleMap_={};this.JSC$10944_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(M=jH(this.scsReferenceUrl_,"excm"))?M.split(","):[];this.shouldScanForCss_=D;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;aGc();_.VQ(this,Agk(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
K4S=function(M,z){if(z.href||z.getAttribute("data-href"))if(z=z.href||z.getAttribute("data-href"),K2p(z)&&!W28(z).urlPrefix_.endsWith("_/js/")){z=Agk(W28(z));z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,M.loadedCssModuleList_.includes(J)||M.loadedCssModuleList_.push(J)}};
_.Eq.prototype.JSC$10946_loadModules=function(M,z,J){var R=J===void 0?{}:J;J=R.extraEdges;var D=R.onError;var N=R.onSuccess;R=R.forceReload;this.JSC$10944_moduleInfoMap_=z;if(!M)throw Error("md");if(this.shouldScanForCss_){z=_.S(document.getElementsByTagName("style"));for(var Z=z.next();!Z.done;Z=z.next())K4S(this,Z.value);z=_.S(document.getElementsByTagName("link"));for(Z=z.next();!Z.done;Z=z.next())K4S(this,Z.value)}$I2(this,ujJ(this,M),J,D,N,R)};
var $I2=function(M,z,J,R,D,N){R=R===void 0?function(){}:R;
D=D===void 0?function(){}:D;
N=N===void 0?!1:N;qK$(M,z,function(Z,B,O){O=O===void 0?B:O;M.enableFallbackFetch&&N?M.loadWithFetch(Z,B,R,D,O):M.load(Z,B,R,D,O,J)},J)||R(-1)};
_.Eq.prototype.loadWithFetch=function(){_.k(function(){throw Error("nd");})};
_.Eq.prototype.maybeSetAdditionalFields=function(){};
VnB=function(M,z,J){if(M.useNegativeLoading_){var R=M.scsReferenceUrl_;M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,extraEdges:J,requestedModuleIds:W4a(M),requestedCssModuleIds:aQ$(M)};var D=M===void 0?{}:M;M=D.requestedModuleIds===void 0?[]:D.requestedModuleIds;J=D.requestedCssModuleIds===void 0?[]:D.requestedCssModuleIds;var N=D.cssRowKey===void 0?void 0:D.cssRowKey;var Z=D.combinedSignature===void 0?void 0:D.combinedSignature;var B=D.extraEdges===void 0?void 0:D.extraEdges;
D=D.callback===void 0?void 0:D.callback;R=F4t(R);pF(R,"d","1");fNp(R,M);LFB(R,J);z=mIt(R,z,{cssRowKey:N,combinedSignature:Z,extraEdges:B,callback:D})}else R=M.scsReferenceUrl_,M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,requestedModuleIds:W4a(M),requestedCssModuleIds:aQ$(M)},B=M===void 0?{}:M,M=B.requestedCssModuleIds===void 0?[]:B.requestedCssModuleIds,J=B.cssRowKey===void 0?void 0:B.cssRowKey,N=B.combinedSignature===void 0?void 0:B.combinedSignature,Z=B.extraEdges===void 0?
void 0:B.extraEdges,B=B.callback===void 0?void 0:B.callback,R=F4t(R),LFB(R,M),z=mIt(R,z,{cssRowKey:J,combinedSignature:N,extraEdges:Z,callback:B});return z};
_.VQ=function(M,z){for(var J=!1,R=[],D=0;D<z.length;++D){var N=z[D];M.requestedModuleMap_[N]||(M.requestedModuleMap_[N]=!0,M.requestedModuleList_.push(N),J=!0,R.push(N))}J&&(M.requestedModuleListSorted_=!1)};
_.fC=function(M,z){for(var J=[],R=0;R<z.length;++R){var D=z[R];M.requestedModuleMap_[D]&&(delete M.requestedModuleMap_[D],_.$o(M.requestedModuleList_,D),J.push(D))}};
_.Eq.prototype.load=function(M,z,J,R,D){D=D===void 0?z:D;_.xq(M);var N=this.useCors_,Z=this.corsMode_,B=this.fetchPriority,O=_.lm("SCRIPT");_.is(O,M);N&&(O.crossOrigin=Z);O.async=!1;B&&O.setAttribute("fetchpriority",B);_.VQ(this,z);_.ElS(this,M,O,z,J,R,D)};
_.ElS=function(M,z,J,R,D,N,Z){Z=Z===void 0?R:Z;M.lastScript_=J;M.insertPos.insertBefore(J,M.insertPos.firstChild);_.fQQ(J,R,function(){J.parentElement.removeChild(J);M.lastScript_==J&&(M.lastScript_=null);var B=new Set;R.map(function(X){return B.add(X)});
for(var O in M.JSC$10944_moduleInfoMap_)M.JSC$10944_moduleInfoMap_[O].isLoaded()&&B.add(O);Array.from(B);N()},function(B){J.parentElement.removeChild(J);
M.lastScript_==J&&(M.lastScript_=null);_.fC(M,B);M.pendingModuleGraphUpdate_?M.pendingModuleGraphUpdate_.then(function(){D(-1,z)}):D(-1,z)},Z)};
_.fQQ=function(M,z,J,R,D){D=D===void 0?z:D;var N=z.length,Z=function(){N=0;M.onload=null;M.onerror=null;B=function(){}},B=function(){Z();
var X=D.filter(function(l){return!YF().getModuleInfo(l).isLoaded()});
X.length!==0?R(X,"Response was successful but was missing module(s) "+X+"."):J()},O=function(){N--;
N==0&&B()};
z.forEach(function(X){X=YF().getModuleInfo(X);X.isLoaded()?O():(Hut(X.earlyOnloadCallbacks_,O),cuJ(X,O))});
M.onload=function(){return B()};
M.onerror=function(){Z();R(z)}};
W4a=function(M){M.requestedModuleListSorted_||(M.requestedModuleListSorted_=!0,M.requestedModuleList_.sort());return M.requestedModuleList_};
aQ$=function(M){M=M.loadedCssModuleList_;M.sort();return M};
ujJ=function(M,z){return z.filter(function(J){return!M.requestedModuleMap_[J]})};
qK$=function(M,z,J,R){if(M.pendingModuleGraphUpdate_)return M.pendingModuleGraphUpdate_.then(function(){qK$(M,z,J,R)}),!0;
if(!M.useNegativeLoading_){var D=[],N=Object.assign({},M.requestedModuleMap_);L4u(M,z,function(l){D.push(l.getId())},R,function(l){return!l.isLoaded()},N);
z=D}for(N=0;N<z.length;){for(var Z=z.length-N,B=N==0?z:z.slice(N,z.length),O=VnB(M,B,R),X=_.xq(O).toString();X.length>M.urlMaxLength;)if(Z>1)Z-=Math.ceil((X.length-M.urlMaxLength)/6),Z=Math.max(Z,1),B=z.slice(N,N+Z),O=VnB(M,B,R),X=_.xq(O).toString();else return M.useNegativeLoading_?(M.useNegativeLoading_=!1,M.pendingModuleGraphUpdate_=Au$(M).then(function(l){iut(M,l,R)}),qK$(M,z.slice(N),J,R)):!1;
N+=Z;M.useNegativeLoading_?J(O,B):J(O,B,N===z.length?z:[])}return!0};
iut=function(M,z,J){YF().setAllModuleInfoString((z||{}).moduleGraph);L4u(M,W4a(M),function(R){_.VQ(M,[R.getId()])},J);
M.pendingModuleGraphUpdate_=null};
L4u=function(M,z,J,R,D,N){N=N===void 0?{}:N;var Z=YF();z=_.S(z);for(var B=z.next();!B.done;B=z.next()){B=B.value;var O=Z.getModuleInfo(B);if(!(N[B]||D&&!D(O))){N[B]=!0;var X=O.deps_||[];if(R){var l=[];R[B]&&(l=Object.keys(R[B]));X=X.concat(l)}L4u(M,X,J,R,D,N);J(O)}}};
Au$=function(M){M=M.scsReferenceUrl_.clone();Cit(M);pF(M,"dg",null);pF(M,"md","1");return sTt(M.toString())};var eYb=new Uint8Array(123);var CSV=[];var buV=function(){this.JSC$10020_loader_=null};
_.P=buV.prototype;_.P.setBatchModeEnabled=function(){};
_.P.setAllModuleInfoString=function(){};
_.P.addExtraEdge=function(){throw Error("od");};
_.P.removeExtraEdge=function(){throw Error("pd");};
_.P.getModuleContext=function(){return null};
_.P.isActive=function(){return!1};
_.P.isUserActive=function(){return!1};
_.P.registerCallback=function(){};var LC=function(M,z,J,R,D){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="ModuleLoadFailure";this.type=M;this.status=z;this.requestedModuleIds=J;this.url=R;this.cause=D;this.message=this.toString()};
_.w(LC,Error);LC.prototype.toString=function(){return ruB(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ruB=function(M){switch(M.type){case LC.Type.UNAUTHORIZED:return"Unauthorized";case LC.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case LC.Type.TIMEOUT:return"Timed out";case LC.Type.OLD_CODE_GONE:return"Out of date module id";case LC.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+M.type}};
N8.ModuleLoadFailure=LC;N8.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var A$=function(){this.moduleIds_=this.JSC$10020_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10959_extraEdges_={};this.JSC$10959_callbackMap_={};this.JSC$10959_currentlyLoadingModule_=this.baseModuleInfo_=new a_([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new iH;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.ZP(A$,buV);var M9t=function(M,z){_.Mb.call(this,"Error loading "+M+": "+z)};
_.ZP(M9t,_.Mb);A$.prototype.setBatchModeEnabled=function(M){this.batchModeEnabled_=M};
A$.prototype.setAllModuleInfoString=function(M,z){if(!(this instanceof A$))this.setAllModuleInfoString(M,z);else if(typeof M==="string"){if(M.startsWith("d$")){M=M.substring(2);for(var J=[],R=0,D=M.indexOf("/"),N=0,Z=!1,B=0;;){var O=Z?M.substring(N):M.substring(N,D);if(O.length===0)R++,N="sy"+R.toString(36),O=[];else{var X=O.indexOf(":");if(X<0)N=O,O=[];else if(X===O.length-1)N=O.substring(0,X),O=Array(J[B-1]);else{N=O.substring(0,X);O=O.substring(X+1).split(",");X=B;for(var l=0;l<O.length;l++)X-=
O[l].length===0?1:Number(O[l]),O[l]=J[X]}X=0;if(N.length===0)X=1;else if(N.charAt(0)==="+"||N.charAt(0)==="-")X=Number(N);X!==0&&(R+=X,N="sy"+R.toString(36))}J.push(N);z4$(this,N,O);if(Z)break;N=D+1;D=M.indexOf("/",N);D===-1&&(Z=!0);B++}this.moduleIds_=J}else if(M.startsWith("p$"))Jdt(this,M);else{M=M.split("/");J=[];for(R=0;R<M.length;R++){B=M[R].split(":");D=B[0];Z=[];if(B[1])for(Z=B[1].split(","),B=0;B<Z.length;B++)Z[B]=J[parseInt(Z[B],36)];J.push(D);z4$(this,D,Z)}this.moduleIds_=J}z&&z.length?
(_.a3(this.loadingModuleIds_,z),this.lastInitialModuleId_=_.s8(z)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10959_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10959_currentlyLoadingModule_=null,(z=this.baseModuleInfo_.onLoad((0,_.xF)(this.getModuleContext,this)))&&z.length&&R4B(this,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,z[0])),iM(this))}};
var Jdt=function(M,z){var J=z.substring(2);for(z=0;z<64;z++)eYb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(z)]=z;var R={buf:J,pos:0};D3(R);var D=D3(R),N=D3(R)+1;z=Array(D);var Z=Array(D),B=Array(D);N=Array(N);var O=0,X=0,l=R.pos,e=R.buf.indexOf("|",R.pos);R.pos=e+1;for(e=0;e<D;e++){var Q=D3(R),v=Q&2,x=Q&1;Q>>>=2;x?(O+=Q>>>1^-(Q&1),Q="sy"+O.toString(36)):(x=l,l+=Q,Q=J.substring(x,l));z[e]=Q;v&&(N[X++]=Q)}N[X]="";R.pos++;X=D&-2;J=D&1;for(O=0;O<X;O+=2)l=QZn(R),B[O]=
l&7,B[O+1]=l>>>3&7;J&&(J=QZn(R),B[X]=J&7);R.pos++;for(X=0;X<D;X++)B[X]===7&&(B[X]=D3(R));R.pos++;for(J=X=0;J<D;J++){O=B[J];l=O===0?CSV:Array(O);Z[J]=l;e=X;for(v=0;v<O;v++)e-=D3(R),l[v]=N[e];N[X]===z[J]&&X++}for(R=0;R<z.length;R++)z4$(M,z[R],Z[R]);M.moduleIds_=z};
_.P=A$.prototype;_.P.getModuleInfo=function(M){return this.moduleInfoMap[M]};
_.P.addExtraEdge=function(M,z){var J=this.getModuleInfo(M);J&&J.isLoaded()?this.load(z):(this.JSC$10959_extraEdges_[M]||(this.JSC$10959_extraEdges_[M]={}),this.JSC$10959_extraEdges_[M][z]=!0)};
_.P.removeExtraEdge=function(M,z){if(this.JSC$10959_extraEdges_[M]){delete this.JSC$10959_extraEdges_[M][z];for(var J in this.JSC$10959_extraEdges_[M])return;delete this.JSC$10959_extraEdges_[M]}};
_.P.isActive=function(){return this.loadingModuleIds_.length>0};
_.P.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var iM=function(M){var z=M.lastActive_,J=M.isActive();J!=z&&(M.executeCallbacks_(J?"active":"idle"),M.lastActive_=J);z=M.isUserActive();z!=M.userLastActive_&&(M.executeCallbacks_(z?"userActive":"userIdle"),M.userLastActive_=z)},z4$=function(M,z,J){M.moduleInfoMap[z]?(M=M.moduleInfoMap[z].deps_,M!=J&&M.splice.apply(M,[0,
M.length].concat(_.Yj(J)))):M.moduleInfoMap[z]=new a_(J,z)},NEg=function(M,z,J){var R=[];
pYY(z,R);z=[];for(var D={},N=0;N<R.length;N++){var Z=R[N],B=M.getModuleInfo(Z);if(!B)throw Error("qd`"+Z);var O=new iH;D[Z]=O;B.isLoaded()?O.callback(null):(DsV(M,Z,B,!!J,O),M.isModuleLoading(Z)||z.push(Z))}z.length>0&&(M.loadingModuleIds_.length===0?M.loadModules_(z):(M.requestedModuleIdsQueue_.push(z),iM(M)));return D},DsV=function(M,z,J,R,D){J.registerCallback(D.callback,D);
cuJ(J,function(N){D.errback(new M9t(z,N))});
M.isModuleLoading(z)?R&&(P3V(M,z),iM(M)):R&&P3V(M,z)};
A$.prototype.loadModules_=function(M,z,J){var R=this;z||(this.consecutiveFailures_=0);var D=SfV(this,M);this.loadingModuleIds_=D;this.requestedLoadingModuleIds_=this.batchModeEnabled_?M:_.uG(D);iM(this);if(D.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,D);if(Object.keys(this.JSC$10959_extraEdges_).length>0&&!this.JSC$10020_loader_.supportsExtraEdges)throw Error("rd");M=(0,_.xF)(this.JSC$10020_loader_.JSC$10946_loadModules,this.JSC$10020_loader_,_.uG(D),this.moduleInfoMap,
{extraEdges:this.JSC$10959_extraEdges_,forceReload:!!J,onError:function(N,Z){var B=R.requestedLoadingModuleIds_;N=N!=null?N:void 0;R.consecutiveFailures_++;var O=_.uG(D);R.requestedLoadingModuleIds_=B;D.forEach(_.Uf(_.$o,R.requestedModuleIds_),R);N==401?(R4B(R,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.UNAUTHORIZED,N)),R.requestedModuleIdsQueue_.length=0):N==410?(ZYk(R,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.OLD_CODE_GONE,N)),kVQ(R)):R.consecutiveFailures_>=3?(ZYk(R,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
N,O,Z)),kVQ(R)):R.loadModules_(R.requestedLoadingModuleIds_,!0,N==8001||!1)},
onTimeout:(0,_.xF)(this.handleLoadTimeout_,this)});(z=Math.pow(this.consecutiveFailures_,2)*5E3)?_.R3.setTimeout(M,z):M()}};
var SfV=function(M,z){z=z.filter(function(D){return M.moduleInfoMap[D].isLoaded()?(_.R3.setTimeout(function(){return Error("sd`"+D)},0),!1):!0});
for(var J=[],R=0;R<z.length;R++)J=J.concat(BEt(M,z[R]));pYY(J);return!M.batchModeEnabled_&&J.length>1?(z=J.shift(),M.requestedModuleIdsQueue_=J.map(function(D){return[D]}).concat(M.requestedModuleIdsQueue_),[z]):J},BEt=function(M,z){var J=_.gu.createSet(M.requestedModuleIds_),R=[];
J[z]||R.push(z);z=[z];for(var D=0;D<z.length;D++)for(var N=M.getModuleInfo(z[D]).deps_,Z=N.length-1;Z>=0;Z--){var B=N[Z];M.getModuleInfo(B).isLoaded()||J[B]||(R.push(B),z.push(B))}R.reverse();pYY(R);return R};
A$.prototype.JSC$10954_setLoaded=function(){if(this.JSC$10959_currentlyLoadingModule_){var M=this.JSC$10959_currentlyLoadingModule_.getId(),z=[];if(this.JSC$10959_extraEdges_[M]){for(var J=_.S(Object.keys(this.JSC$10959_extraEdges_[M])),R=J.next();!R.done;R=J.next()){R=R.value;var D=this.getModuleInfo(R);D&&!D.isLoaded()&&(this.removeExtraEdge(M,R),z.push(R))}this.loadMultiple(z)}this.isDisposed()||((z=this.moduleInfoMap[M].onLoad((0,_.xF)(this.getModuleContext,this)))&&z.length&&R4B(this,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,z[0])),_.$o(this.userInitiatedLoadingModuleIds_,M),_.$o(this.loadingModuleIds_,M),this.loadingModuleIds_.length===0&&kVQ(this),this.lastInitialModuleId_&&M==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),iM(this),this.JSC$10959_currentlyLoadingModule_=null)}};
A$.prototype.isModuleLoading=function(M){if(_.Kp(this.loadingModuleIds_,M))return!0;for(var z=0;z<this.requestedModuleIdsQueue_.length;z++)if(_.Kp(this.requestedModuleIdsQueue_[z],M))return!0;return!1};
A$.prototype.load=function(M,z){return NEg(this,[M],z)[M]};
A$.prototype.loadMultiple=function(M){return NEg(this,M)};
var P3V=function(M,z){_.Kp(M.userInitiatedLoadingModuleIds_,z)||M.userInitiatedLoadingModuleIds_.push(z)};
A$.prototype.beforeLoadModuleCode=function(M){var z=this;this.JSC$10959_currentlyLoadingModule_&&this.JSC$10959_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10954_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[M]&&OYV(this,this.moduleInfoMap[M].deps_||[],function(J){J.module_=new Wh;_.$o(z.loadingModuleIds_,J.getId())},function(J){return!J.isLoaded()});
this.JSC$10959_currentlyLoadingModule_=this.getModuleInfo(M)};
A$.prototype.handleLoadTimeout_=function(){ZYk(this,new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.TIMEOUT));kVQ(this)};
var ZYk=function(M,z){M.requestedLoadingModuleIds_.length>1?M.requestedModuleIdsQueue_=M.requestedLoadingModuleIds_.map(function(J){return[J]}).concat(M.requestedModuleIdsQueue_):R4B(M,z)},R4B=function(M,z){var J=M.requestedLoadingModuleIds_;
M.loadingModuleIds_.length=0;for(var R=[],D=0;D<M.requestedModuleIdsQueue_.length;D++){var N=M.requestedModuleIdsQueue_[D].filter(function(O){var X=BEt(this,O);return fo(J,function(l){return _.Kp(X,l)})},M);
_.a3(R,N)}for(D=0;D<J.length;D++)_.wYY(R,J[D]);for(D=0;D<R.length;D++){for(N=0;N<M.requestedModuleIdsQueue_.length;N++)_.$o(M.requestedModuleIdsQueue_[N],R[D]);_.$o(M.userInitiatedLoadingModuleIds_,R[D])}if(D=M.JSC$10959_callbackMap_.error)for(N=0;N<D.length;N++)for(var Z=D[N],B=0;B<R.length;B++)Z("error",R[B],z);for(R=0;R<J.length;R++)if(M.moduleInfoMap[J[R]])M.moduleInfoMap[J[R]].onError(z);M.requestedLoadingModuleIds_.length=0;iM(M)},kVQ=function(M){for(;M.requestedModuleIdsQueue_.length;){var z=
M.requestedModuleIdsQueue_.shift().filter(function(J){return!this.getModuleInfo(J).isLoaded()},M);
if(z.length>0){M.loadModules_(z);return}}iM(M)};
A$.prototype.registerCallback=function(M,z){Array.isArray(M)||(M=[M]);for(var J=0;J<M.length;J++){var R=M[J],D=z,N=this.JSC$10959_callbackMap_;N[R]||(N[R]=[]);N[R].push(D)}};
A$.prototype.executeCallbacks_=function(M){for(var z=this.JSC$10959_callbackMap_[M],J=0;z&&J<z.length;J++)z[J](M)};
var OYV=function(M,z,J,R,D){R=R===void 0?function(){return!0}:R;
D=D===void 0?{}:D;z=_.S(z);for(var N=z.next();!N.done;N=z.next()){N=N.value;var Z=M.getModuleInfo(N);!D[N]&&R(Z)&&(D[N]=!0,OYV(M,Z.deps_||[],J,R,D),J(Z))}};
A$.prototype.dispose=function(){_.ru(_.gu.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10959_callbackMap_={};this.isDisposed_=!0};
A$.prototype.isDisposed=function(){return this.isDisposed_};
_.F_=function(){return new A$};var TEp=[5E3,2E4],ILB=function(){this.JSC$10020_loader_=null;this.JSC$10967_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10967_queue_=[];this.JSC$10967_extraEdges_=Object.create(null);this.JSC$10967_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.w(ILB,buV);_.P=ILB.prototype;_.P.setAllModuleInfoString=function(){this.JSC$10967_currentlyLoadingModule_&&this.JSC$10967_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10954_setLoaded()};
_.P.getModuleInfo=function(M){var z=this.JSC$10967_moduleInfoMap_[M];z||(z=new a_([],M),this.JSC$10967_moduleInfoMap_[M]=z);return z};
_.P.addExtraEdge=function(M,z){this.getModuleInfo(M).isLoaded()?this.load(z):(this.JSC$10967_extraEdges_[M]||(this.JSC$10967_extraEdges_[M]={}),this.JSC$10967_extraEdges_[M][z]=!0)};
_.P.removeExtraEdge=function(M,z){if(this.JSC$10967_extraEdges_[M]){delete this.JSC$10967_extraEdges_[M][z];for(var J in this.JSC$10967_extraEdges_[M])return;delete this.JSC$10967_extraEdges_[M]}};
_.P.isModuleLoading=function(M){return!!this.loadingModules_[M]};
_.P.load=function(M){oQp(this,[M]);return Xv2(this,M)};
_.P.loadMultiple=function(M){var z=this,J=Object.create(null),R=[];M.forEach(function(D){J[D]||(J[D]=Xv2(z,D),R.push(D))});
oQp(this,R);return J};
_.P.beforeLoadModuleCode=function(M){var z;((z=this.JSC$10967_currentlyLoadingModule_)==null?void 0:z.getId())==="synthetic_module_overhead"&&this.JSC$10954_setLoaded();var J,R;lLQ(this,(R=(J=this.JSC$10967_moduleInfoMap_[M])==null?void 0:J.deps_)!=null?R:[],function(D){D.module_=new Wh},function(D){return!D.isLoaded()});
this.JSC$10967_currentlyLoadingModule_=this.getModuleInfo(M)};
_.P.JSC$10954_setLoaded=function(){if(this.JSC$10967_currentlyLoadingModule_){var M=this.JSC$10967_currentlyLoadingModule_.getId(),z=[];if(this.JSC$10967_extraEdges_[M]){for(var J=_.S(Object.keys(this.JSC$10967_extraEdges_[M])),R=J.next();!R.done;R=J.next())R=R.value,this.getModuleInfo(R).isLoaded()||(this.removeExtraEdge(M,R),z.push(R));this.loadMultiple(z)}this.JSC$10967_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10967_currentlyLoadingModule_=null;(!this.isModuleLoading(M)&&/^sy[0-9a-z]{0,4}$/.test(M)||M==="synthetic_module_overhead")&&delete this.JSC$10967_moduleInfoMap_[M];this.unsetModulesAsLoading(M)}};
_.P.setModulesAsLoading=function(){var M=this;_.H4.apply(0,arguments).forEach(function(z){M.loadingModules_[z]=!0})};
_.P.unsetModulesAsLoading=function(){var M=this;_.H4.apply(0,arguments).forEach(function(z){delete M.loadingModules_[z]})};
var Xv2=function(M,z){return new _.If(function(J,R){var D=M.getModuleInfo(z);D.isLoaded()?J(null):(D.registerCallback(function(){J(null)}),cuJ(D,function(N){var Z="Error loading "+z+": "+N;
N instanceof N8.ModuleLoadFailure&&N.url&&(Z=Z+", requested url: "+N.url.toString());R(Error(Z))}))})},oQp=function(M,z){z=z.filter(function(J){return!M.isModuleLoading(J)&&!M.getModuleInfo(J).isLoaded()});
z.length>0&&(M.setModulesAsLoading.apply(M,_.Yj(z)),M.JSC$10967_queue_.push(z),e4$(M))},e4$=function(M){for(var z={};M.activeLoads_<Infinity&&M.JSC$10967_queue_.length>0;z={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})z.ids$jscomp$36=M.JSC$10967_queue_.shift().filter(function(J){return!M.getModuleInfo(J).isLoaded()}),z.ids$jscomp$36.length>0&&(M.activeLoads_++,z.finishLoad=function(J){return function(){M.activeLoads_--;
e4$(M);J.finishLoad=function(){}}}(z),_.Ys(z.ids$jscomp$36.map(function(J){return Xv2(M,J)})).then(function(J){return function(){(0,J.finishLoad)()}}(z)),z.attempt$jscomp$6=0,z.load$jscomp$1=function(J){return function(){if(Object.keys(M.JSC$10967_extraEdges_).length>0&&!M.JSC$10020_loader_.supportsExtraEdges)throw Error("rd");
M.JSC$10020_loader_.JSC$10946_loadModules(J.ids$jscomp$36,M.JSC$10967_moduleInfoMap_,{extraEdges:M.JSC$10967_extraEdges_,onError:function(R,D){var N=TEp[J.attempt$jscomp$6++];N!==void 0?setTimeout(function(){(0,J.load$jscomp$1)()},N):(M.unsetModulesAsLoading.apply(M,_.Yj(J.ids$jscomp$36)),(0,J.finishLoad)(),J.ids$jscomp$36.forEach(function(Z){Z=M.getModuleInfo(Z);
if(!Z.isLoaded())Z.onError(new N8.ModuleLoadFailure(N8.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,R,J.ids$jscomp$36,D))}))}})}}(z),(0,z.load$jscomp$1)())},lLQ=function(M,z,J,R,D){R=R===void 0?function(){return!0}:R;
D=D===void 0?{}:D;z=_.S(z);for(var N=z.next();!N.done;N=z.next()){N=N.value;var Z=M.getModuleInfo(N);!D[N]&&R(Z)&&(D[N]=!0,lLQ(M,Z.deps_||[],J,R,D),J(Z))}};var QnQ=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var v8Y=Symbol("ud");window.JSCompiler_renameProperty=function(M){return M};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Us$=!QnQ||HTMLElement.es5Shimmed||_.R3.Reflect===void 0||_.R3.customElements===void 0||_.R3.customElements.polyfillWrapFlushCallback||!1,vQk,COH=function(){var M=HTMLElement;if(Us$)return M;if(vQk!==void 0)return vQk;var z=_.R3.Reflect,J=function(){return z.construct(M,[],this.constructor)};
J.prototype=M.prototype;J.prototype.constructor=J;J.es5Shimmed=!0;Object.setPrototypeOf(J,M);return vQk=J},GVB=!1;Us$||GVB||(GVB=!0,_.R3.HTMLElement=COH());/*

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 jZH=/(url\()([^)]*)(\))/g,x9H=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,t40,NS;var $2=!window.ShadyDOM||!window.ShadyDOM.inUse,wvQ=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),xsQ=!window.customElements.polyfillWrapFlushCallback,t9Q;if(t9Q=$2&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var jng=new CSSStyleSheet;jng.replaceSync("");var pvB=document.createElement("div");pvB.attachShadow({mode:"open"});pvB.shadowRoot.adoptedStyleSheets=[jng];t9Q=pvB.shadowRoot.adoptedStyleSheets[0]===jng}catch(M){t9Q=!1}
var FVa=t9Q,YfS=window.Polymer&&window.Polymer.rootPath||F38(document.baseURI||window.location.href),vN=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,HaG=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,aO=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,msu=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,K4=window.Polymer&&window.Polymer.legacyOptimizations||!1,WN=window.Polymer&&window.Polymer.legacyWarnings||!1,gQ$=window.Polymer&&window.Polymer.syncInitialRender||
!1,wX=window.Polymer&&window.Polymer.legacyUndefined||!1,snk=window.Polymer&&window.Polymer.orderedComputed||!1,CC=window.Polymer&&window.Polymer.removeNestedTemplates||!1,bM=window.Polymer&&window.Polymer.fastDomIf||!1,rd=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,nQ$=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,h4V=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var MP={},ydt={},t1=function(){return HTMLElement.apply(this,arguments)||this};
_.w(t1,HTMLElement);t1.import=function(M,z){return M?(M=MP[M]||ydt[M.toLowerCase()])&&z?M.querySelector(z):M:null};
t1.prototype.attributeChangedCallback=function(M,z,J){z!==J&&this.register()};
t1.prototype.register=function(M){if(M=M||this.id){if(aO&&(MP[M]||ydt[M.toLowerCase()])!==void 0)throw MP[M]=ydt[M.toLowerCase()]=null,Error("vd`"+M);this.id=M;MP[M]=ydt[M.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.rX.Object.defineProperties(t1.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var M=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;M=_.PN(this.getAttribute("assetpath")||"",M.baseURI);this.__assetpath=F38(M)}return this.__assetpath}}});
_.rX.Object.defineProperties(t1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
t1["import"]=t1.import;t1.prototype.modules=MP;customElements.define("dom-module",t1);var HYJ=0,m9G=0,S_=[],cdJ=0,Ym3=!1,dsV=document.createTextNode(""),KVV,cN;(new window.MutationObserver(g8p)).observe(dsV,{characterData:!0});_.zx={after:function(M){return{run:function(z){return window.setTimeout(z,M)},
cancel:function(z){window.clearTimeout(z)}}},
run:function(M,z){return window.setTimeout(M,z)},
cancel:function(M){window.clearTimeout(M)}};
_.mK={run:function(M){return window.requestAnimationFrame(M)},
cancel:function(M){window.cancelAnimationFrame(M)}};
KVV={run:function(M){return window.requestIdleCallback?window.requestIdleCallback(M):window.setTimeout(M,16)},
cancel:function(M){window.cancelIdleCallback?window.cancelIdleCallback(M):window.clearTimeout(M)}};
cN={run:function(M){Ym3||(Ym3=!0,dsV.textContent=cdJ++);S_.push(M);return HYJ++},
cancel:function(M){var z=M-m9G;if(z>=0){if(!S_[z])throw Error("wd`"+M);S_[z]=null}}};var $sk=0,Jn=function(M){var z=M.__mixinApplications;z||(z=new WeakMap,M.__mixinApplications=z);var J=$sk++;return function(R){var D=R.__mixinSet;if(D&&D[J])return R;var N=z,Z=N.get(R);Z||(Z=M(R),N.set(R,Z),R=Object.create(Z.__mixinSet||D||null),R[J]=!0,Z.__mixinSet=R);return Z}};_.Q3=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(M){return ShadyDOM.patch(M)}:function(M){return M};var u9a=Jn(function(M){var z=function(){var J=M.call(this)||this;J.__dataEnabled=!1;J.__dataReady=!1;J.__dataInvalid=!1;J.__data={};J.__dataPending=null;J.__dataOld=null;J.__dataInstanceProps=null;J.__dataCounter=0;J.__serializing=!1;J._initializeProperties();return J};
_.w(z,M);z.createProperties=function(J){var R=this.prototype,D;for(D in J)D in R||R._createPropertyAccessor(D)};
z.attributeNameForProperty=function(J){return J.toLowerCase()};
z.typeForProperty=function(){};
z.prototype._createPropertyAccessor=function(J,R){this._addPropertyToAttributeMap(J);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[J]||(this.__dataHasAccessor[J]=!0,this._definePropertyAccessor(J,R))};
z.prototype._addPropertyToAttributeMap=function(J){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var R=this.__dataAttributes[J];R||(R=this.constructor.attributeNameForProperty(J),this.__dataAttributes[R]=J);return R};
z.prototype._definePropertyAccessor=function(J,R){Object.defineProperty(this,J,{get:function(){return this.__data[J]},
set:R?function(){}:function(D){this._setPendingProperty(J,D,!0)&&this._invalidateProperties()}})};
z.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
z.prototype._initializeProperties=function(){for(var J in this.__dataHasAccessor)this.hasOwnProperty(J)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[J]=this[J],delete this[J])};
z.prototype._initializeInstanceProperties=function(J){Object.assign(this,J)};
z.prototype._setProperty=function(J,R){this._setPendingProperty(J,R)&&this._invalidateProperties()};
z.prototype._getProperty=function(J){return this.__data[J]};
z.prototype._setPendingProperty=function(J,R){var D=this.__data[J],N=this._shouldPropertyChange(J,R,D);N&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||J in this.__dataOld||(this.__dataOld[J]=D),this.__data[J]=R,this.__dataPending[J]=R);return N};
z.prototype._isPropertyPending=function(J){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(J))};
z.prototype._invalidateProperties=function(){var J=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,cN.run(function(){J.__dataInvalid&&(J.__dataInvalid=!1,J._flushProperties())}))};
z.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
z.prototype._flushProperties=function(){this.__dataCounter++;var J=this.__data,R=this.__dataPending,D=this.__dataOld;this._shouldPropertiesChange(J,R,D)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(J,R,D));this.__dataCounter--};
z.prototype._shouldPropertiesChange=function(J,R){return!!R};
z.prototype._propertiesChanged=function(){};
z.prototype._shouldPropertyChange=function(J,R,D){return D!==R&&(D===D||R===R)};
z.prototype.attributeChangedCallback=function(J,R,D,N){R!==D&&this._attributeToProperty(J,D);M.prototype.attributeChangedCallback&&M.prototype.attributeChangedCallback.call(this,J,R,D,N)};
z.prototype._attributeToProperty=function(J,R,D){if(!this.__serializing){var N=this.__dataAttributes;J=N&&N[J]||J;this[J]=this._deserializeValue(R,D||this.constructor.typeForProperty(J))}};
z.prototype._propertyToAttribute=function(J,R,D){this.__serializing=!0;D=arguments.length<3?this[J]:D;this._valueToNodeAttribute(this,D,R||this.constructor.attributeNameForProperty(J));this.__serializing=!1};
z.prototype._valueToNodeAttribute=function(J,R,D){R=this._serializeValue(R);if(D==="class"||D==="name"||D==="slot")J=(0,_.Q3)(J);R===void 0?J.removeAttribute(D):J.setAttribute(D,R===""&&window.trustedTypes?window.trustedTypes.emptyScript:R)};
z.prototype._serializeValue=function(J){switch(typeof J){case "boolean":return J?"":void 0;default:return J!=null?J.toString():void 0}};
z.prototype._deserializeValue=function(J,R){switch(R){case Boolean:return J!==null;case Number:return Number(J);default:return J}};
return z});var qf$=0,sZG=[];var WVg=Jn(function(M){function z(N){N=Object.getPrototypeOf(N);return N.prototype instanceof D?N:null}
function J(N){if(!N.hasOwnProperty("__ownProperties")){var Z=null;if(N.hasOwnProperty("properties")){var B=N.properties;if(B){Z={};for(var O in B){var X=B[O];Z[O]=typeof X==="function"?{type:X}:X}}}N.__ownProperties=Z}return N.__ownProperties}
var R=u9a(M),D=function(){return R.apply(this,arguments)||this};
_.w(D,R);D.finalize=function(){if(!this.hasOwnProperty("__finalized")){var N=z(this);N&&N.finalize();this.__finalized=!0;this._finalizeClass()}};
D._finalizeClass=function(){var N=J(this);N&&this.createProperties(N)};
D.typeForProperty=function(N){return(N=this._properties[N])&&N.type};
D.prototype._initializeProperties=function(){qf$++;this.constructor.finalize();R.prototype._initializeProperties.call(this)};
D.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this._enableProperties()};
D.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this)};
_.rX.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var N=this;if(!this.hasOwnProperty("__observedAttributes")){n8o(this.prototype);var Z=this._properties;this.__observedAttributes=Z?Object.keys(Z).map(function(B){return N.prototype._addPropertyToAttributeMap(B)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var N=z(this);this.__properties=Object.assign({},N&&N._properties,J(this))}return this.__properties}}});
return D});var hYY={},ykR=/-[a-z]/g,HrH=/([A-Z])/g;for(var aL$={},V9S=HTMLElement.prototype;V9S;){for(var EQ2=Object.getOwnPropertyNames(V9S),fL2=0;fL2<EQ2.length;fL2++)aL$[EQ2[fL2]]=!0;V9S=Object.getPrototypeOf(V9S)}var LVQ=window.trustedTypes?function(M){return trustedTypes.isHTML(M)||trustedTypes.isScript(M)||trustedTypes.isScriptURL(M)}:function(){return!1},Ada=Jn(function(M){var z=u9a(M);
M=function(){return z.apply(this,arguments)||this};
_.w(M,z);M.createPropertiesForAttributes=function(){for(var J=this.observedAttributes,R=0;R<J.length;R++)this.prototype._createPropertyAccessor(Z3(J[R]))};
M.attributeNameForProperty=function(J){return k2(J)};
M.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);z.prototype._initializeProperties.call(this)};
M.prototype._initializeProtoProperties=function(J){for(var R in J)this._setProperty(R,J[R])};
M.prototype._ensureAttribute=function(J,R){this.hasAttribute(J)||this._valueToNodeAttribute(this,R,J)};
M.prototype._serializeValue=function(J){switch(typeof J){case "object":if(J instanceof Date)return J.toString();if(J){if(LVQ(J))return J;try{return JSON.stringify(J)}catch(R){return""}}default:return z.prototype._serializeValue.call(this,J)}};
M.prototype._deserializeValue=function(J,R){switch(R){case Object:try{var D=JSON.parse(J)}catch(N){D=J}break;case Array:try{D=JSON.parse(J)}catch(N){D=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+J)}break;case Date:D=isNaN(J)?String(J):Number(J);D=new Date(D);break;default:D=z.prototype._deserializeValue.call(this,J,R)}return D};
M.prototype._definePropertyAccessor=function(J,R){if(!aL$[J]){var D=this[J];D!==void 0&&(this.__data?this._setPendingProperty(J,D):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[J]=D))}z.prototype._definePropertyAccessor.call(this,J,R)};
M.prototype._hasAccessor=function(J){return this.__dataHasAccessor&&this.__dataHasAccessor[J]};
M.prototype._isPropertyPending=function(J){return!!(this.__dataPending&&J in this.__dataPending)};
return M});var iYu={"dom-if":!0,"dom-repeat":!0},C3g=!1,bYg=!1,rdg=function(){var M=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(z){return z}});
return function(z,J,R){J=J.getAttribute(R);M&&R.startsWith("on-")?z.setAttribute(R,M.createScript(J,R)):z.setAttribute(R,J)}}(),Mg2=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z._parseTemplate=function(J,R){if(!J._templateInfo){var D=J._templateInfo={};D.nodeInfoList=[];D.nestedTemplate=!!R;D.stripWhiteSpace=R&&R.stripWhiteSpace||J.hasAttribute&&J.hasAttribute("strip-whitespace");this._parseTemplateContent(J,D,{parent:null})}return J._templateInfo};
z._parseTemplateContent=function(J,R,D){return this._parseTemplateNode(J.content,R,D)};
z._parseTemplateNode=function(J,R,D){var N=!1;J.localName!="template"||J.hasAttribute("preserve-content")?J.localName==="slot"&&(R.hasInsertionPoint=!0):N=this._parseTemplateNestedTemplate(J,R,D)||N;if(!C3g){C3g=!0;var Z=document.createElement("textarea");Z.placeholder="a";bYg=Z.placeholder===Z.textContent}bYg&&J.localName==="textarea"&&J.placeholder&&J.placeholder===J.textContent&&(J.textContent=null);J.firstChild&&this._parseTemplateChildNodes(J,R,D);J.hasAttributes&&J.hasAttributes()&&(N=this._parseTemplateNodeAttributes(J,
R,D)||N);return N||D.noted};
z._parseTemplateChildNodes=function(J,R,D){if(J.localName!=="script"&&J.localName!=="style")for(var N=J.firstChild,Z=0,B;N;N=B){if(N.localName=="template"){var O=N.getAttribute("is");if(O&&iYu[O])for(B=N,B.removeAttribute("is"),N=B.ownerDocument.createElement(O),B.parentNode.replaceChild(N,B),N.appendChild(B);B.attributes.length;)O=B.attributes[0].name,rdg(N,B,O),B.removeAttribute(O)}B=N.nextSibling;if(N.nodeType===Node.TEXT_NODE){for(O=B;O&&O.nodeType===Node.TEXT_NODE;)N.textContent+=O.textContent,
B=O.nextSibling,J.removeChild(O),O=B;if(R.stripWhiteSpace&&!N.textContent.trim()){J.removeChild(N);continue}}O={parentIndex:Z,parentInfo:D};this._parseTemplateNode(N,R,O)&&(O.infoIndex=R.nodeInfoList.push(O)-1);N.parentNode&&Z++}};
z._parseTemplateNestedTemplate=function(J,R,D){R=this._parseTemplate(J,R);(R.content=J.content.ownerDocument.createDocumentFragment()).appendChild(J.content);D.templateInfo=R;return!0};
z._parseTemplateNodeAttributes=function(J,R,D){for(var N=!1,Z=Array.from(J.attributes),B=Z.length-1,O;O=Z[B];B--)N=this._parseTemplateNodeAttribute(J,R,D,O.name,O.value)||N;return N};
z._parseTemplateNodeAttribute=function(J,R,D,N,Z){return N.slice(0,3)==="on-"?(J.removeAttribute(N),D.events=D.events||[],D.events.push({name:N.slice(3),value:Z}),!0):N==="id"?(D.id=Z,!0):!1};
z._contentForTemplate=function(J){var R=J._templateInfo;return R&&R.content||J.content};
z.prototype._stampTemplate=function(J,R){J&&!J.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(J);R=R||this.constructor._parseTemplate(J);var D=R.nodeInfoList;J=document.importNode(R.content||J.content,!0);J.__noInsertionPoint=!R.hasInsertionPoint;var N=J.nodeList=Array(D.length);J.$={};for(var Z=0,B=D.length,O=void 0;Z<B&&(O=D[Z]);Z++){var X=N[Z]=ckH(J,O);O.id&&(J.$[O.id]=X);var l=X,e=O,Q=R;e.templateInfo&&(l._templateInfo=e.templateInfo,l._parentTemplateInfo=
Q);if(O.events&&O.events.length)for(l=0,e=O.events,Q=void 0;l<e.length&&(Q=e[l]);l++)this._addMethodEventListenerToNode(X,Q.name,Q.value,this)}return J};
z.prototype._addMethodEventListenerToNode=function(J,R,D,N){D=d9p(N||J,D);this._addEventListenerToNode(J,R,D);return D};
z.prototype._addEventListenerToNode=function(J,R,D){J.addEventListener(R,D)};
z.prototype._removeEventListenerFromNode=function(J,R,D){J.removeEventListener(R,D)};
return z});var l4=0,GS=[],zbg={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},JNJ=/[A-Z]/,RbJ=function(M,z,J,R,D){var N=D?OF(M):M;if(z=z[N])for(N=0;N<z.length;N++){var Z=z[N];if(Z.info.lastRun!==l4&&(!D||aKp(M,Z.trigger))){Z.info.lastRun=l4;Z=Z.info;for(var B=J,O=R,X=0,l=B.length-1,e=-1;X<=l;){var Q=X+l>>1,v=O.get(B[Q].methodInfo)-O.get(Z.methodInfo);if(v<0)X=Q+1;else if(v>0)l=Q-1;else{e=Q;break}}e<
0&&(e=l+1);B.splice(e,0,Z)}}},Nyc=[],DvS=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"),Dy=Jn(function(M){var z=Mg2(Ada(M));
M=function(){var J=z.call(this)||this;J.__isPropertyEffectsClient=!0;return J};
_.w(M,z);M.prototype._initializeProperties=function(){z.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
M.prototype._registerHost=function(){if(Rq.length){var J=Rq[Rq.length-1];J._enqueueClient(this);this.__dataHost=J}};
M.prototype._initializeProtoProperties=function(J){this.__data=Object.create(J);this.__dataPending=Object.create(J);this.__dataOld={}};
M.prototype._initializeInstanceProperties=function(J){var R=this.__readOnly,D;for(D in J)R&&R[D]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[D]=this.__dataPending[D]=J[D])};
M.prototype._addPropertyEffect=function(J,R,D){this._createPropertyAccessor(J,R=="__readOnly");var N=W3Y(this,R,!0)[J];N||(N=this[R][J]=[]);N.push(D)};
M.prototype._removePropertyEffect=function(J,R,D){J=W3Y(this,R,!0)[J];D=J.indexOf(D);D>=0&&J.splice(D,1)};
M.prototype._hasPropertyEffect=function(J,R){R=this[R];return!(!R||!R[J])};
M.prototype._hasReadOnlyEffect=function(J){return this._hasPropertyEffect(J,"__readOnly")};
M.prototype._hasNotifyEffect=function(J){return this._hasPropertyEffect(J,"__notifyEffects")};
M.prototype._hasReflectEffect=function(J){return this._hasPropertyEffect(J,"__reflectEffects")};
M.prototype._hasComputedEffect=function(J){return this._hasPropertyEffect(J,"__computeEffects")};
M.prototype._setPendingPropertyOrPath=function(J,R,D,N){if(N||OF(Array.isArray(J)?J[0]:J)!==J){if(!N&&(N=XK(this,J),J=qmH(this,J,R),!J||!z.prototype._shouldPropertyChange.call(this,J,R,N)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(J,R,D)){if(D=this.__dataLinkedPaths)for(var Z in D)N=D[Z],TS(Z,J)?(N=IO(Z,N,J),this._setPendingPropertyOrPath(N,R,!0,!0)):TS(N,J)&&(N=IO(N,Z,J),this._setPendingPropertyOrPath(N,R,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[J])return this._setPendingProperty(J,
R,D);this[J]=R}return!1};
M.prototype._setUnmanagedPropertyToNode=function(J,R,D){if(D!==J[R]||typeof D=="object")R==="className"&&(J=(0,_.Q3)(J)),J[R]=D};
M.prototype._setPendingProperty=function(J,R,D){var N=this.__dataHasPaths&&BN(J);if(this._shouldPropertyChange(J,R,(N?this.__dataTemp:this.__data)[J])){this.__dataPending||(this.__dataPending={},this.__dataOld={});J in this.__dataOld||(this.__dataOld[J]=this.__data[J]);N?this.__dataTemp[J]=R:this.__data[J]=R;this.__dataPending[J]=R;if(N||this.__notifyEffects&&this.__notifyEffects[J])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[J]=D;return!0}return!1};
M.prototype._setProperty=function(J,R){this._setPendingProperty(J,R,!0)&&this._invalidateProperties()};
M.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
M.prototype._enqueueClient=function(J){this.__dataPendingClients=this.__dataPendingClients||[];J!==this&&this.__dataPendingClients.push(J)};
M.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
M.prototype.__enableOrFlushClients=function(){var J=this.__dataPendingClients;if(J){this.__dataPendingClients=null;for(var R=0;R<J.length;R++){var D=J[R];D.__dataEnabled?D.__dataPending&&D._flushProperties():D._enableProperties()}}};
M.prototype._readyClients=function(){this.__enableOrFlushClients()};
M.prototype.setProperties=function(J,R){for(var D in J)!R&&this.__readOnly&&this.__readOnly[D]||this._setPendingPropertyOrPath(D,J[D],!0);this._invalidateProperties()};
M.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
M.prototype._propertiesChanged=function(J,R,D){J=this.__dataHasPaths;this.__dataHasPaths=!1;var N;if(N=this.__computeEffects)if(snk){l4++;var Z=irp(this),B=[],O;for(O in R)RbJ(O,N,B,Z,J);for(;O=B.shift();)br0(this,"",R,D,O)&&RbJ(O.methodInfo,N,B,Z,J);Object.assign(D,this.__dataOld);Object.assign(R,this.__dataPending);this.__dataPending=null}else for(Z=R;e_(this,N,Z,D,J);)Object.assign(D,this.__dataOld),Object.assign(R,this.__dataPending),Z=this.__dataPending,this.__dataPending=null;N=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(R,D,J);this._flushClients();e_(this,this.__reflectEffects,R,D,J);e_(this,this.__observeEffects,R,D,J);if(N){Z=this.__notifyEffects;B=l4++;for(var X in N)if(N[X]){if(O=Z){var l=Z;O=B;var e=X,Q=R,v=D,x=J,m=!1,y=x?OF(e):e;if(l=l[y]){y=0;for(var H=l.length,q=void 0;y<H&&(q=l[y]);y++)q.info&&q.info.lastRun===O||x&&!aKp(e,q.trigger)||(q.info&&(q.info.lastRun=O),q.fn(this,e,Q,v,q.info,x,void 0),m=!0)}O=m}if(O)var b=!0;else{if(O=J)O=X,e=R,Q=OF(O),Q!==
O?(Q=k2(Q)+"-changed",E88(this,Q,e[O],O),O=!0):O=!1;O&&(b=!0)}}var V;b&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
M.prototype._propagatePropertyChanges=function(J,R,D){this.__propagateEffects&&e_(this,this.__propagateEffects,J,R,D);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,J,R,D)};
M.prototype._runEffectsForTemplate=function(J,R,D,N){var Z=this,B=function(O,X){e_(Z,J.propertyEffects,O,D,X,J.nodeList);for(var l=J.firstChild;l;l=l.nextSibling)Z._runEffectsForTemplate(l,O,D,X)};
J.runEffects?J.runEffects(B,R,N):B(R,N)};
M.prototype.linkPaths=function(J,R){J=oO(J);R=oO(R);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[J]=R};
M.prototype.unlinkPaths=function(J){J=oO(J);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[J]};
M.prototype.notifySplices=function(J,R){var D={path:""};J=XK(this,J,D);k0H(this,J,D.path,R)};
M.prototype.get=function(J,R){return XK(R||this,J)};
M.prototype.set=function(J,R,D){D?qmH(D,J,R):this.__readOnly&&this.__readOnly[J]||this._setPendingPropertyOrPath(J,R,!0)&&this._invalidateProperties()};
M.prototype.push=function(J){var R=_.H4.apply(1,arguments),D={path:""},N=XK(this,J,D),Z=N.length,B=N.push.apply(N,_.Yj(R));R.length&&x2(this,N,D.path,Z,R.length,[]);return B};
M.prototype.pop=function(J){var R={path:""};J=XK(this,J,R);var D=!!J.length,N=J.pop();D&&x2(this,J,R.path,J.length,0,[N]);return N};
M.prototype.splice=function(J,R,D){var N=_.H4.apply(3,arguments),Z={path:""},B=XK(this,J,Z);R<0?R=B.length-Math.floor(-R):R&&(R=Math.floor(R));var O=arguments.length===2?B.splice(R):B.splice.apply(B,[R,D].concat(_.Yj(N)));(N.length||O.length)&&x2(this,B,Z.path,R,N.length,O);return O};
M.prototype.shift=function(J){var R={path:""};J=XK(this,J,R);var D=!!J.length,N=J.shift();D&&x2(this,J,R.path,0,0,[N]);return N};
M.prototype.unshift=function(J){var R=_.H4.apply(1,arguments),D={path:""},N=XK(this,J,D),Z=N.unshift.apply(N,_.Yj(R));R.length&&x2(this,N,D.path,0,R.length,[]);return Z};
M.prototype.notifyPath=function(J,R){if(arguments.length==1){var D={path:""};R=XK(this,J,D);D=D.path}else D=Array.isArray(J)?oO(J):J;this._setPendingPropertyOrPath(D,R,!0,!0)&&this._invalidateProperties()};
M.prototype._createReadOnlyProperty=function(J,R){this._addPropertyEffect(J,"__readOnly");R&&(this["_set"+(J[0].toUpperCase()+J.substring(1))]=function(D){this._setProperty(J,D)})};
M.prototype._createPropertyObserver=function(J,R,D){var N={property:J,method:R,dynamicFn:!!D};this._addPropertyEffect(J,"__observeEffects",{fn:V4b,info:N,trigger:{name:J}});D&&this._addPropertyEffect(R,"__observeEffects",{fn:V4b,info:N,trigger:{name:R}})};
M.prototype._createMethodObserver=function(J,R){var D=Sjp(J);if(!D)throw Error("xd`"+J);Rce(this,D,"__observeEffects",Cfc,null,R)};
M.prototype._createNotifyingProperty=function(J){this._addPropertyEffect(J,"__notifyEffects",{fn:fKb,info:{eventName:k2(J)+"-changed",property:J}})};
M.prototype._createReflectedProperty=function(J){var R=this.constructor.attributeNameForProperty(J);R[0]==="-"?console.warn("Property "+J+" cannot be reflected to attribute "+R+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(J,"__reflectEffects",{fn:L3G,info:{attrName:R}})};
M.prototype._createComputedProperty=function(J,R,D){var N=Sjp(R);if(!N)throw Error("yd`"+R);R=Rce(this,N,"__computeEffects",br0,J,D);W3Y(this,"__computeInfo")[J]=R};
M.prototype._marshalArgs=function(J,R,D){for(var N=this.__data,Z=[],B=0,O=J.length;B<O;B++){var X=J[B],l=X.name,e=X.structured,Q=X.wildcard,v=X.value;X.literal||(Q?(X=TS(l,R),e=ZaR(N,D,X?R:l),v={path:X?R:l,value:e,base:X?XK(N,l):e}):v=e?ZaR(N,D,l):N[l]);if(wX&&!this._overrideLegacyUndefined&&v===void 0&&J.length>1)return GS;Z[B]=v}return Z};
M.addPropertyEffect=function(J,R,D){this.prototype._addPropertyEffect(J,R,D)};
M.createPropertyObserver=function(J,R,D){this.prototype._createPropertyObserver(J,R,D)};
M.createMethodObserver=function(J,R){this.prototype._createMethodObserver(J,R)};
M.createNotifyingProperty=function(J){this.prototype._createNotifyingProperty(J)};
M.createReadOnlyProperty=function(J,R){this.prototype._createReadOnlyProperty(J,R)};
M.createReflectedProperty=function(J){this.prototype._createReflectedProperty(J)};
M.createComputedProperty=function(J,R,D){this.prototype._createComputedProperty(J,R,D)};
M.bindTemplate=function(J){return this.prototype._bindTemplate(J)};
M.prototype._bindTemplate=function(J,R){var D=this.constructor._parseTemplate(J),N=this.__preBoundTemplateInfo==D;if(!N)for(var Z in D.propertyEffects)this._createPropertyAccessor(Z);R?(D=Object.create(D),D.wasPreBound=N,this.__templateInfo?(J=J._parentTemplateInfo||this.__templateInfo,R=J.lastChild,D.parent=J,J.lastChild=D,(D.previousSibling=R)?R.nextSibling=D:J.firstChild=D):this.__templateInfo=D):this.__preBoundTemplateInfo=D;return D};
M._addTemplatePropertyEffect=function(J,R,D){(J.hostProps=J.hostProps||{})[R]=!0;J=J.propertyEffects=J.propertyEffects||{};(J[R]=J[R]||[]).push(D)};
M.prototype._stampTemplate=function(J,R){R=R||this._bindTemplate(J,!0);Rq.push(this);J=z.prototype._stampTemplate.call(this,J,R);Rq.pop();R.nodeList=J.nodeList;if(!R.wasPreBound)for(var D=R.childNodes=[],N=J.firstChild;N;N=N.nextSibling)D.push(N);J.templateInfo=R;D=R.nodeList;N=R.nodeInfoList;if(N.length)for(var Z=0;Z<N.length;Z++){var B=D[Z],O=N[Z].bindings;if(O)for(var X=0;X<O.length;X++){var l=O[X],e=B,Q=l;if(Q.isCompound){for(var v=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),x=Q.parts,
m=Array(x.length),y=0;y<x.length;y++)m[y]=x[y].literal;x=Q.target;v[x]=m;Q.literal&&Q.kind=="property"&&(x==="className"&&(e=(0,_.Q3)(e)),e[x]=Q.literal)}Jx8(B,this,l)}B.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(R,this.__data,null,!1),this._flushClients());return J};
M.prototype._removeBoundDom=function(J){J=J.templateInfo;var R=J.previousSibling,D=J.nextSibling,N=J.parent;R?R.nextSibling=D:N&&(N.firstChild=D);D?D.previousSibling=R:N&&(N.lastChild=R);J.nextSibling=J.previousSibling=null;J=J.childNodes;for(R=0;R<J.length;R++)D=J[R],(0,_.Q3)((0,_.Q3)(D).parentNode).removeChild(D)};
M._parseTemplateNode=function(J,R,D){var N=z._parseTemplateNode.call(this,J,R,D);if(J.nodeType===Node.TEXT_NODE){var Z=this._parseBindings(J.textContent,R);Z&&(J.textContent=D5p(Z)||" ",zc0(this,R,D,"text","textContent",Z),N=!0)}return N};
M._parseTemplateNodeAttribute=function(J,R,D,N,Z){var B=this._parseBindings(Z,R);if(B){Z=N;var O="property";JNJ.test(N)?O="attribute":N[N.length-1]=="$"&&(N=N.slice(0,-1),O="attribute");var X=D5p(B);X&&O=="attribute"&&(N=="class"&&J.hasAttribute("class")&&(X+=" "+J.getAttribute(N)),J.setAttribute(N,X));O=="attribute"&&Z=="disable-upgrade$"&&J.setAttribute(N,"");J.localName==="input"&&Z==="value"&&J.setAttribute(Z,"");J.removeAttribute(Z);O==="property"&&(N=Z3(N));zc0(this,R,D,O,N,B,X);return!0}return z._parseTemplateNodeAttribute.call(this,
J,R,D,N,Z)};
M._parseTemplateNestedTemplate=function(J,R,D){var N=z._parseTemplateNestedTemplate.call(this,J,R,D),Z=J.parentNode,B=D.templateInfo,O=Z.localName==="dom-if",X=Z.localName==="dom-repeat";CC&&(O||X)&&(Z.removeChild(J),D=D.parentInfo,D.templateInfo=B,D.noted=!0,N=!1);J=B.hostProps;if(bM&&O)J&&(R.hostProps=Object.assign(R.hostProps||{},J),CC||(D.parentInfo.noted=!0));else for(var l in J)zc0(this,R,D,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return N};
M._parseBindings=function(J,R){for(var D=[],N=0,Z;(Z=DvS.exec(J))!==null;){Z.index>N&&D.push({literal:J.slice(N,Z.index)});N=Z[1][0];var B=!!Z[2];Z=Z[3].trim();var O=!1,X="",l=-1;N=="{"&&(l=Z.indexOf("::"))>0&&(X=Z.substring(l+2),Z=Z.substring(0,l),O=!0);l=Sjp(Z);var e=[];if(l){var Q=l,v=Q.args;Q=Q.methodName;for(var x=0;x<v.length;x++){var m=v[x];m.literal||e.push(m)}if((v=R.dynamicFns)&&v[Q]||l.static)e.push(Q),l.dynamicFn=!0}else e.push(Z);D.push({source:Z,mode:N,negate:B,customEvent:O,signature:l,
dependencies:e,event:X});N=DvS.lastIndex}N&&N<J.length&&(J=J.substring(N))&&D.push({literal:J});return D.length?D:null};
M._evaluateBinding=function(J,R,D,N,Z,B){J=R.signature?Cfc(J,D,N,Z,R.signature):D!=R.source?XK(J,R.source):B&&BN(D)?XK(J,D):J.__data[D];R.negate&&(J=!J);return J};
_.rX.Object.defineProperties(M.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return zbg}}});
return M}),Rq=[];var NAp=window.ShadyCSS&&window.ShadyCSS.cssBuild,NP=Jn(function(M){function z(R,D,N,Z){if(!NAp){for(var B=D.content.querySelectorAll("style"),O=Iz8(D),X=oTH(N),l=D.content.firstElementChild,e=0;e<X.length;e++){var Q=X[e];Q.textContent=R._processStyleText(Q.textContent,Z);D.content.insertBefore(Q,l)}for(l=X=0;l<O.length;l++)e=O[l],Q=B[X],Q!==e?(e=e.cloneNode(!0),Q.parentNode.insertBefore(e,Q)):X++,e.textContent=R._processStyleText(e.textContent,Z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(D,
N);if(h4V&&NAp&&FVa&&(D=D.content.querySelectorAll("style"))){var v="";Array.from(D).forEach(function(x){v+=x.textContent;x.parentNode.removeChild(x)});
R._styleSheet=new CSSStyleSheet;R._styleSheet.replaceSync(v)}}
var J=WVg(Dy(M));M=function(){return J.call(this)||this};
_.w(M,J);M._finalizeClass=function(){J._finalizeClass.call(this);var R;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(R=this.__ownObservers)&&this.createObservers(R,this._properties);this._prepareTemplate()};
M._prepareTemplate=function(){var R=this.template;R&&(typeof R==="string"?(console.error("template getter must return HTMLTemplateElement"),R=null):K4||(R=R.cloneNode(!0)));this.prototype._template=R};
M.createProperties=function(R){for(var D in R){var N=this.prototype,Z=D,B=R[D],O=R;B.computed&&(B.readOnly=!0);B.computed&&(N._hasReadOnlyEffect(Z)?console.warn("Cannot redefine computed property '"+Z+"'."):N._createComputedProperty(Z,B.computed,O));B.readOnly&&!N._hasReadOnlyEffect(Z)?N._createReadOnlyProperty(Z,!B.computed):B.readOnly===!1&&N._hasReadOnlyEffect(Z)&&console.warn("Cannot make readOnly property '"+Z+"' non-readOnly.");B.reflectToAttribute&&!N._hasReflectEffect(Z)?N._createReflectedProperty(Z):
B.reflectToAttribute===!1&&N._hasReflectEffect(Z)&&console.warn("Cannot make reflected property '"+Z+"' non-reflected.");B.notify&&!N._hasNotifyEffect(Z)?N._createNotifyingProperty(Z):B.notify===!1&&N._hasNotifyEffect(Z)&&console.warn("Cannot make notify property '"+Z+"' non-notify.");B.observer&&N._createPropertyObserver(Z,B.observer,O[B.observer]);N._addPropertyToAttributeMap(Z)}};
M.createObservers=function(R,D){for(var N=this.prototype,Z=0;Z<R.length;Z++)N._createMethodObserver(R[Z],D)};
M.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);J.prototype._initializeProperties.call(this);this.rootPath=YfS;this.importPath=this.constructor.importPath;var R=this.constructor;if(!R.hasOwnProperty("__propertyDefaults")){R.__propertyDefaults=null;var D=R._properties,N;for(N in D){var Z=D[N];"value"in Z&&(R.__propertyDefaults=R.__propertyDefaults||{},R.__propertyDefaults[N]=Z)}}if(R=R.__propertyDefaults)for(var B in R)D=R[B],
this._canApplyPropertyDefault(B)&&(D=typeof D.value=="function"?D.value.call(this):D.value,this._hasAccessor(B)?this._setPendingProperty(B,D,!0):this[B]=D)};
M.prototype._canApplyPropertyDefault=function(R){return!this.hasOwnProperty(R)};
M._processStyleText=function(R,D){return pXR(R,D)};
M._finalizeTemplate=function(R){var D=this.prototype._template;if(D&&!D.__polymerFinalized){D.__polymerFinalized=!0;var N=this.importPath;N=N?_.PN(N):"";z(this,D,R,N);this.prototype._bindTemplate(D)}};
M.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);J.prototype.connectedCallback.call(this)};
M.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);J.prototype.ready.call(this)};
M.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));J.prototype._readyClients.call(this)};
M.prototype._attachDom=function(R){var D=(0,_.Q3)(this);if(D.attachShadow)return R?(D.shadowRoot||(D.attachShadow({mode:"open",shadyUpgradeFragment:R}),D.shadowRoot.appendChild(R),this.constructor._styleSheet&&(D.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),gQ$&&window.ShadyDOM&&window.ShadyDOM.flushInitial(D.shadowRoot),D.shadowRoot):null;throw Error("Ad");};
M.prototype.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,R)};
M.prototype.resolveUrl=function(R,D){!D&&this.importPath&&(D=_.PN(this.importPath));return _.PN(R,D)};
M._parseTemplateContent=function(R,D,N){D.dynamicFns=D.dynamicFns||this._properties;return J._parseTemplateContent.call(this,R,D,N)};
M._addTemplatePropertyEffect=function(R,D,N){!WN||D in this._properties||N.info.part.signature&&N.info.part.signature.static||N.info.part.hostProp||R.nestedTemplate||console.warn("Property '"+D+"' used in template but not declared in 'properties'; attribute will not be observed.");return J._addTemplatePropertyEffect.call(this,R,D,N)};
_.rX.Object.defineProperties(M,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var R=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof R==="function"&&(R=R());if(R===void 0){if(R=this.hasOwnProperty("is")){R=this.is;var D=null;if(R&&(!aO||msu)&&(D=t1.import(R,"template"),aO&&!D))throw Error("zd`"+R);R=D}R=R||Object.getPrototypeOf(this.prototype).constructor.template}this._template=R}return this._template},
set:function(R){this._template=R}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var R=this.importMeta;R?this._importPath=F38(R.url):this._importPath=(R=t1.import(this.is))&&R.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return M});var Pdu=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(M){return M}}),G0H=function(M,z){Sha(M,z);
this.value=z.reduce(function(J,R,D){return J+wfo(R)+M[D+1]},M[0]).toString()},Sha;
G0H.prototype.toString=function(){return this.value};
_.ZD2=function(M){var z=_.H4.apply(1,arguments);Sha(M,z);var J=document.createElement("template");z=z.reduce(function(R,D,N){if(D instanceof HTMLTemplateElement)D=D.innerHTML;else if(D instanceof G0H)D=wfo(D);else throw Error("Cd`"+D);return R+D+M[N+1]},M[0]);
Pdu&&(z=Pdu.createHTML(z));J.innerHTML=z;return J};
Sha=function(M,z){if(!Array.isArray(M)||!Array.isArray(M.raw)||z.length!==M.length-1)throw new TypeError("Dd");};var P0=NP(HTMLElement);var kru=Jn(function(M){var z=NP(M);M=function(){var J=z.call(this)||this;J.__lastItems=null;J.__lastMulti=null;J.__selectedMap=null;return J};
_.w(M,z);M.prototype.__updateSelection=function(J,R){var D=R.path;D=="items"?(R=R.base||[],D=this.__lastItems,J!==this.__lastMulti&&this.clearSelection(),D&&(D=vTY(R,D),this.__applySplices(D)),this.__lastItems=R,this.__lastMulti=J):R.path=="items.splices"?this.__applySplices(R.value.indexSplices):(J=D.slice(6),R=parseInt(J,10),J.indexOf(".")<0&&J==R&&this.__deselectChangedIdx(R))};
M.prototype.__applySplices=function(J){for(var R=this,D=this.__selectedMap,N={},Z=0;Z<J.length;N={s$jscomp$108:void 0},Z++){N.s$jscomp$108=J[Z];D.forEach(function(l){return function(e,Q){e<l.s$jscomp$108.index||(e>=l.s$jscomp$108.index+l.s$jscomp$108.removed.length?D.set(Q,e+l.s$jscomp$108.addedCount-l.s$jscomp$108.removed.length):D.set(Q,-1))}}(N));
for(var B=0;B<N.s$jscomp$108.addedCount;B++){var O=N.s$jscomp$108.index+B;D.has(this.items[O])&&D.set(this.items[O],O)}}this.__updateLinks();var X=0;D.forEach(function(l,e){l<0?(R.multi?R.splice("selected",X,1):R.selected=R.selectedItem=null,D.delete(e)):X++})};
M.prototype.__updateLinks=function(){var J=this;this.__dataLinkedPaths={};if(this.multi){var R=0;this.__selectedMap.forEach(function(D){D>=0&&J.linkPaths("items."+D,"selected."+R++)})}else this.__selectedMap.forEach(function(D){J.linkPaths("selected","items."+D);
J.linkPaths("selectedItem","items."+D)})};
M.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
M.prototype.isSelected=function(J){return this.__selectedMap.has(J)};
M.prototype.isIndexSelected=function(J){return this.isSelected(this.items[J])};
M.prototype.__deselectChangedIdx=function(J){var R=this,D=this.__selectedIndexForItemIndex(J);if(D>=0){var N=0;this.__selectedMap.forEach(function(Z,B){D==N++&&R.deselect(B)})}};
M.prototype.__selectedIndexForItemIndex=function(J){if(J=this.__dataLinkedPaths["items."+J])return parseInt(J.slice(9),10)};
M.prototype.deselect=function(J){var R=this.__selectedMap.get(J);if(R>=0){this.__selectedMap.delete(J);var D;this.multi&&(D=this.__selectedIndexForItemIndex(R));this.__updateLinks();this.multi?this.splice("selected",D,1):this.selected=this.selectedItem=null}};
M.prototype.deselectIndex=function(J){this.deselect(this.items[J])};
M.prototype.select=function(J){this.selectIndex(this.items.indexOf(J))};
M.prototype.selectIndex=function(J){var R=this.items[J];this.isSelected(R)?this.toggle&&this.deselectIndex(J):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(R,J),this.__updateLinks(),this.multi?this.push("selected",R):this.selected=this.selectedItem=R)};
_.rX.Object.defineProperties(M,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return M}),BAa=kru(P0),SR=function(){return BAa.apply(this,arguments)||this};
_.w(SR,BAa);_.rX.Object.defineProperties(SR,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(SR.is,SR);var ODJ=window.Polymer;window.Polymer=function(M){return window.Polymer._polymerFn(M)};
ODJ&&Object.assign(Polymer,ODJ);Polymer._polymerFn=function(){throw Error("Ed");};/*

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:pXR,resolveUrl:_.PN,pathFromUrl:F38};Polymer.DomModule=t1;Polymer.Async={timeOut:_.zx,animationFrame:_.mK,idlePeriod:KVV,microTask:cN};Polymer.dedupingMixin=Jn;Polymer.wrap=_.Q3;Polymer.PropertiesChanged=u9a;Polymer.telemetry={instanceCount:qf$,incrementInstanceCount:function(){qf$++},
registrations:sZG,register:n8o,dumpRegistrations:function(){sZG.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=WVg;Polymer.CaseMap={dashToCamelCase:Z3,camelToDashCase:k2};Polymer.PropertyAccessors=Ada;Polymer.TemplateStamp=Mg2;Polymer.Path={isPath:BN,root:OF,isAncestor:K3p,isDescendant:TS,translate:IO,matches:$9H,normalize:oO,split:uBe,get:XK,set:qmH,isDeep:BN};Polymer.Settings={useShadow:$2,useNativeCSSProperties:wvQ,useNativeCustomElements:xsQ,get rootPath(){return YfS},setRootPath:function(M){YfS=M},
get sanitizeDOMValue(){return vN},setSanitizeDOMValue:function(M){vN=M},
get passiveTouchGestures(){return HaG},setPassiveTouchGestures:function(M){HaG=M},
get strictTemplatePolicy(){return aO},setStrictTemplatePolicy:function(M){aO=M},
get allowTemplateFromDomModule(){return msu},setAllowTemplateFromDomModule:function(M){msu=M},
get legacyOptimizations(){return K4},setLegacyOptimizations:function(M){K4=M},
get syncInitialRender(){return gQ$},setSyncInitialRender:function(M){gQ$=M},
get legacyUndefined(){return wX},setLegacyUndefined:function(M){wX=M},
get legacyWarnings(){return WN},setLegacyWarnings:function(M){WN=M},
get orderedComputed(){return snk},setOrderedComputed:function(M){snk=M},
get fastDomIf(){return bM},setFastDomIf:function(M){bM=M},
get removeNestedTemplates(){return CC},setRemoveNestedTemplates:function(M){CC=M},
get suppressTemplateNotifications(){return rd},setSuppressTemplateNotifications:rd};Polymer.rootPath!==void 0&&(YfS=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(vN=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(HaG=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(aO=Polymer.strictTemplatePolicy);msu=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(K4=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(gQ$=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(wX=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(WN=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(snk=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(bM=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(CC=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(rd=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return vN},
set:function(M){vN=M}});Polymer.PropertyEffects=Dy;Polymer.StyleGather={stylesFromModules:Ty8,stylesFromModule:Oap,stylesFromTemplate:Iz8,stylesFromModuleImports:oTH,cssFromModules:lz8,cssFromModule:Xfw,cssFromTemplate:ecH,cssFromModuleImports:function(M){return(M=t1.import(M))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):""}};Polymer.ElementMixin=NP;Polymer.updateStyles=function(M){window.ShadyCSS&&window.ShadyCSS.styleDocument(M)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:vTY};Polymer.html=_.ZD2;Polymer.htmlLiteral=function(M){return new G0H(M,_.H4.apply(1,arguments))};Polymer.Element=P0;Polymer.ArraySelectorMixin=kru;Polymer.ArraySelector=SR;var TAV=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,I8V=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jwb=/@media\s(.*)/;var pf3=null,jh0=window.HTMLImports&&window.HTMLImports.whenReady||null,FzR;var of$=null,Zy=null,kt=function(){this.customStyles=[];this.enqueued=!1;YjY(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},XA2=function(M){!M.enqueued&&Zy&&(M.enqueued=!0,YjY(Zy))};
kt.prototype.addCustomStyle=function(M){M.__seenByShadyCSS||(M.__seenByShadyCSS=!0,this.customStyles.push(M),XA2(this))};
kt.prototype.getStyleForCustomStyle=function(M){if(M.__shadyCSSCachedStyle)return M.__shadyCSSCachedStyle;var z;M.getStyle?z=M.getStyle():z=M;return z};
kt.prototype.processStyles=function(){for(var M=this.customStyles,z=0;z<M.length;z++){var J=M[z];if(!J.__shadyCSSCachedStyle){var R=this.getStyleForCustomStyle(J);R&&(R=R.__appliedElement||R,of$&&of$(R),J.__shadyCSSCachedStyle=R)}}return M};
kt.prototype.addCustomStyle=kt.prototype.addCustomStyle;kt.prototype.getStyleForCustomStyle=kt.prototype.getStyleForCustomStyle;kt.prototype.processStyles=kt.prototype.processStyles;Object.defineProperties(kt.prototype,{transformCallback:{get:function(){return of$},
set:function(M){of$=M}},
validateCallback:{get:function(){return Zy},
set:function(M){var z=!1;Zy||(z=!0);Zy=M;z&&XA2(this)}}});var gT3=!(window.ShadyDOM&&window.ShadyDOM.inUse),m5H,b4;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(b4=window.ShadyCSS.cssBuild);var l8v=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?m5H=window.ShadyCSS.nativeCss:window.ShadyCSS?(shY(window.ShadyCSS),window.ShadyCSS=void 0):shY(window.WebComponents&&window.WebComponents.flags);var rvn=m5H;var ebg=new kt;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(M,z){ebg.processStyles();x5R(M,z)},
styleElement:function(){ebg.processStyles()},
styleDocument:function(M){ebg.processStyles();x5R(document.body,M)},
getComputedStyleValue:function(M,z){return t33(M,z)},
flushCustomStyles:function(){},
nativeCss:rvn,nativeShadow:gT3,cssBuild:b4,disableRuntime:l8v});window.ShadyCSS.CustomStyleInterface=ebg;var Qs$=window.ShadyCSS.CustomStyleInterface,B0=function(){var M=HTMLElement.call(this)||this;M._style=null;Qs$.addCustomStyle(M);return M};
_.w(B0,HTMLElement);B0.prototype.getStyle=function(){if(this._style)return this._style;var M=this.querySelector("style");if(!M)return null;this._style=M;var z=M.getAttribute("include");z&&(M.removeAttribute("include"),M.textContent=lz8(z)+M.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
B0.prototype.getStyle=B0.prototype.getStyle;window.customElements.define("custom-style",B0);Polymer.CustomStyle=B0;var O_=function(){this._timer=this._callback=this._asyncModule=null},Tx,vfv;
O_.prototype.setConfig=function(M,z){var J=this;this._asyncModule=M;this._callback=z;this._timer=this._asyncModule.run(function(){J._timer=null;Tx.delete(J);J._callback()})};
O_.prototype.cancel=function(){this.isActive()&&(Uvp(this),Tx.delete(this))};
var Uvp=function(M){M.isActive()&&(M._asyncModule.cancel(M._timer),M._timer=null)};
O_.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
O_.prototype.isActive=function(){return this._timer!=null};
_.Iq=function(M,z,J){M instanceof O_?Uvp(M):M=new O_;M.setConfig(z,J);return M};
Tx=new Set;_.oq=function(M){Tx.add(M)};
vfv=function(){var M=!!Tx.size;Tx.forEach(function(z){try{z.flush()}catch(J){setTimeout(function(){throw J;})}});
return M};var hc8=typeof document.head.style.touchAction==="string",nT8=["mousedown","mousemove","mouseup","click"],Wz8=[0,1,4,2],GrV;try{GrV=(new MouseEvent("test",{buttons:1})).buttons===1}catch(M){GrV=!1}var qjn=GrV,yxn=!1;(function(){try{var M=Object.defineProperty({},"passive",{get:function(){yxn=!0}});
window.addEventListener("test",null,M);window.removeEventListener("test",null,M)}catch(z){}})();
var d58=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Kz3=[],wAB={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},zq8={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},$5R=function(M){var z=M.sourceCapabilities;if(!z||z.firesTouchEvents)if(M.__polymerGesturesHandled={skip:!0},M.type==="click"){z=!1;for(var J=fz3(M),R=0;R<J.length;R++){if(J[R].nodeType===Node.ELEMENT_NODE)if(J[R].localName==="label")Kz3.push(J[R]);
else if(wAB[J[R].localName]){var D=J[R];var N=Array.prototype.slice.call(D.labels||[]);if(!N.length){N=[];try{var Z=D.getRootNode();if(D.id){var B=Z.querySelectorAll("label[for = '"+D.id+"']");for(D=0;D<B.length;D++)N.push(B[D])}}catch(O){}}for(D=0;D<N.length;D++)z=z||Kz3.indexOf(N[D])>-1}if(J[R]===xva)return}z||(M.preventDefault(),M.stopPropagation())}},xva=null,Xe=null,Axp=0,iaR=0,Lzb=-1,C2c=!1;
document.addEventListener("touchend",function(M){Xe||uLo(!0);xva=fz3(M)[0];Xe=_.Iq(Xe,_.zx.after(2500),function(){uLo();Xe=xva=null})},yxn?{passive:!0}:!1);
var fz3=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(M){return M.composedPath&&M.composedPath()||[]},n4={},Y2=[];
baw({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){FK(this.info)},
mousedown:function(M){if(p4(M)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),J=this;V3H(this.info,function(R){p4(R)||(dX("up",z,R),FK(J.info))},function(R){p4(R)&&dX("up",z,R);
FK(J.info)});
dX("down",z,M)}},
touchstart:function(M){dX("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)},
touchend:function(M){dX("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)}});
baw({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(M){this.moves.length>2&&this.moves.shift();this.moves.push(M)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;FK(this.info)},
mousedown:function(M){if(p4(M)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),J=this,R=function(D){var N=D.clientX,Z=D.clientY;rxo(J.info,N,Z)&&(J.info.state=J.info.started?D.type==="mouseup"?"end":"track":"start",J.info.state==="start"&&sF("tap"),J.info.addMove({x:N,y:Z}),p4(D)||(J.info.state="end",FK(J.info)),z&&Ms3(J.info,z,D),J.info.started=!0)};
V3H(this.info,R,function(D){J.info.started&&R(D);FK(J.info)});
this.info.x=M.clientX;this.info.y=M.clientY}},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchmove:function(M){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];var J=M.clientX,R=M.clientY;rxo(this.info,J,R)&&(this.info.state==="start"&&sF("tap"),this.info.addMove({x:J,y:R}),Ms3(this.info,z,M),this.info.state="track",this.info.started=!0)},
touchend:function(M){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:M.clientX,y:M.clientY}),Ms3(this.info,z,M))}});
baw({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(M){p4(M)&&(this.info.x=M.clientX,this.info.y=M.clientY)},
click:function(M){p4(M)&&JvY(this.info,M)},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchend:function(M){JvY(this.info,M.changedTouches[0],M)}});var tgQ=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z.prototype._addEventListenerToNode=function(J,R,D){h1(J,R,D)||M.prototype._addEventListenerToNode.call(this,J,R,D)};
z.prototype._removeEventListenerFromNode=function(J,R,D){y3(J,R,D)||M.prototype._removeEventListenerFromNode.call(this,J,R,D)};
return z});var lZ=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z.prototype._shouldPropertyChange=function(J,R,D){return Rqo(this,J,R,D,!0)};
return z}),jsu=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z.prototype._shouldPropertyChange=function(J,R,D){return Rqo(this,J,R,D,this.mutableData)};
_.rX.Object.defineProperties(z,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return z});
lZ._mutablePropertyChange=Rqo;var D8o=!1;var pAv=tgQ(jsu(Dy(HTMLElement))),eR=function(){var M=pAv.call(this)||this;if(aO)throw Error("Fd");M.root=null;M.$=null;M.__children=null;return M};
_.w(eR,pAv);_.P=eR.prototype;_.P.attributeChangedCallback=function(){this.mutableData=!0};
_.P.connectedCallback=function(){No3()||(this.style.display="none");this.render()};
_.P.disconnectedCallback=function(){this.__removeChildren()};
_.P.__insertChildren=function(){(0,_.Q3)((0,_.Q3)(this).parentNode).insertBefore(this.root,this)};
_.P.__removeChildren=function(){if(this.__children)for(var M=0;M<this.__children.length;M++)this.root.appendChild(this.__children[M])};
_.P.render=function(){var M=this;if(!this.__children){var z=z||this.querySelector("template");if(!z){var J=new MutationObserver(function(){if(z=M.querySelector("template"))J.disconnect(),M.render();else throw Error("Gd");});
J.observe(this,{childList:!0});return}this.root=this._stampTemplate(z);this.$=this.root.$;this.__children=[];for(var R=this.root.firstChild;R;R=R.nextSibling)this.__children[this.__children.length]=R;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.rX.Object.defineProperties(eR,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",eR);Polymer.Debouncer=O_;Polymer.Gestures={gestures:n4,recognizers:Y2,deepTargetFind:ETH,addListener:h1,removeListener:y3,register:baw,setTouchAction:_.HN,prevent:sF,resetMouseCanceller:function(){Xe&&Xe.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:h1,remove:y3};Polymer.GestureEventListeners=tgQ;Polymer.MutableData=lZ;Polymer.OptionalMutableData=jsu;Polymer.DomBind=eR;_.Q7=function(){do{var M=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var z=vfv()}while(M||z)};var PNp=null;SDw.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:SDw,writable:!0}});var X9p=Dy(SDw),oIG=lZ(X9p),FpQ=Dy(function(){}),u4=function(M){var z=FpQ.call(this)||this;
z._configureProperties(M);z.root=z._stampTemplate(z.__dataHost);var J=[];z.children=J;for(var R=z.root.firstChild;R;R=R.nextSibling)J.push(R),R.__templatizeInstance=z;z.__templatizeOwner&&z.__templatizeOwner.__hideTemplateChildren__&&z._showHideChildren(!0);J=z.__templatizeOptions;(M&&J.instanceProps||!J.instanceProps)&&z._enableProperties();return z};
_.w(u4,FpQ);_.P=u4.prototype;_.P._configureProperties=function(M){if(this.__templatizeOptions.forwardHostProp)for(var z in this.__hostProps)this._setPendingProperty(z,this.__dataHost["_host_"+z]);for(var J in M)this._setPendingProperty(J,M[J])};
_.P.forwardHostProp=function(M,z){this._setPendingPropertyOrPath(M,z,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.P._addEventListenerToNode=function(M,z,J){var R=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(M,z,function(N){N.model=R;J(N)});
else{var D=this.__dataHost.__dataHost;D&&D._addEventListenerToNode(M,z,J)}};
_.P._showHideChildren=function(M){kj0(M,this.children)};
_.P._setUnmanagedPropertyToNode=function(M,z,J){M.__hideTemplateChildren__&&M.nodeType==Node.TEXT_NODE&&z=="textContent"?M.__polymerTextContent__=J:FpQ.prototype._setUnmanagedPropertyToNode.call(this,M,z,J)};
_.P.dispatchEvent=function(){return!0};
_.rX.Object.defineProperties(u4.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var M=this.__parentModel;if(!M){var z;M=this;do M=M.__dataHost.__dataHost;while((z=M.__templatizeOptions)&&!z.parentModel);this.__parentModel=M}return M}}});
var OyY=lZ(u4);var U_=function(){var M=P0.call(this)||this;M.__renderDebouncer=null;M._lastIf=!1;M.__hideTemplateChildren__=!1;return M};
_.w(U_,P0);_.P=U_.prototype;_.P.__debounceRender=function(){var M=this;this.__renderDebouncer=_.Iq(this.__renderDebouncer,cN,function(){return M.__render()});
_.oq(this.__renderDebouncer)};
_.P.disconnectedCallback=function(){P0.prototype.disconnectedCallback.call(this);var M=(0,_.Q3)(this).parentNode;M&&(M.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Q3)(M).host)||this.__teardownInstance()};
_.P.connectedCallback=function(){P0.prototype.connectedCallback.call(this);No3()||(this.style.display="none");this.if&&this.__debounceRender()};
_.P.__ensureTemplate=function(){var M=this;if(!this.__template){var z=this._templateInfo?this:(0,_.Q3)(this).querySelector("template");if(!z){var J=new MutationObserver(function(){if((0,_.Q3)(M).querySelector("template"))J.disconnect(),M.__render();else throw Error("Jd");});
J.observe(this,{childList:!0});return!1}this.__template=z}return!0};
_.P.__ensureInstance=function(){var M=(0,_.Q3)(this).parentNode;if(this.__hasInstance()){var z=this.__getInstanceNodes();if(z&&z.length&&(0,_.Q3)(this).previousSibling!==z[z.length-1])for(var J=0,R=void 0;J<z.length&&(R=z[J]);J++)(0,_.Q3)(M).insertBefore(R,this)}else{if(!M||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(M)}return!0};
_.P.render=function(){_.Q7()};
_.P.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();rd&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.P.__hasInstance=function(){};
_.P.__getInstanceNodes=function(){};
_.P.__createAndInsertInstance=function(){};
_.P.__teardownInstance=function(){};
_.P._showHideChildren=function(){};
_.rX.Object.defineProperties(U_,{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:U_.prototype.__debounceRender},restamp:{type:Boolean,observer:U_.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var YhB=function(){var M=U_.call(this)||this;M.__instance=null;M.__syncInfo=null;return M};
_.w(YhB,U_);_.P=YhB.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.P.__createAndInsertInstance=function(M){var z=this,J=this.__dataHost||this;if(aO&&!this.__dataHost)throw Error("Hd");var R=J._bindTemplate(this.__template,!0);R.runEffects=function(D,N,Z){var B=z.__syncInfo;if(z.if)B&&(z.__syncInfo=null,z._showHideChildren(),N=Object.assign(B.changedProps,N)),D(N,Z);else if(z.__instance)if(B||(B=z.__syncInfo={runEffects:D,changedProps:{}}),Z)for(var O in N)D=OF(O),B.changedProps[D]=z.__dataHost[D];else Object.assign(B.changedProps,N)};
this.__instance=J._stampTemplate(this.__template,R);(0,_.Q3)(M).insertBefore(this.__instance,this)};
_.P.__syncHostProperties=function(){var M=this.__syncInfo;M&&(this.__syncInfo=null,M.runEffects(M.changedProps,!1))};
_.P.__teardownInstance=function(){var M=this.__dataHost||this;this.__instance&&(M._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.P._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,kj0(M,this.__instance.templateInfo.childNodes));M||this.__syncHostProperties()};
var mvV=function(){var M=U_.call(this)||this;M.__ctor=null;M.__instance=null;M.__invalidProps=null;return M};
_.w(mvV,U_);_.P=mvV.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.children};
_.P.__createAndInsertInstance=function(M){this.__ctor||(this.__ctor=qS(this.__template,this,{mutableData:!0,forwardHostProp:function(z,J){this.__instance&&(this.if?this.__instance.forwardHostProp(z,J):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[OF(z)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Q3)(M).insertBefore(this.__instance.root,this)};
_.P.__teardownInstance=function(){if(this.__instance){var M=this.__instance.children;if(M&&M.length){var z=(0,_.Q3)(M[0]).parentNode;if(z){z=(0,_.Q3)(z);for(var J=0,R=void 0;J<M.length&&(R=M[J]);J++)z.removeChild(R)}}this.__instance=this.__invalidProps=null}};
_.P.__syncHostProperties=function(){var M=this.__invalidProps;if(M){this.__invalidProps=null;for(var z in M)this.__instance._setPendingProperty(z,this.__dataHost[z]);this.__instance._flushProperties()}};
_.P._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,this.__instance._showHideChildren(M));M||this.__syncHostProperties()};
_.hJ=bM?YhB:mvV;customElements.define(_.hJ.is,_.hJ);Polymer.enqueueDebouncer=_.oq;Polymer.flush=_.Q7;Polymer.Templatize={templatize:qS,modelForElement:Gjc};Polymer.TemplateInstanceBase=u4;Polymer.DomIf=_.hJ;var gfu=jsu(P0),nd=function(){var M=gfu.call(this)||this;M.__instances=[];M.__renderDebouncer=null;M.__itemsIdxToInstIdx={};M.__chunkCount=null;M.__renderStartTime=null;M.__itemsArrayChanged=!1;M.__shouldMeasureChunk=!1;M.__shouldContinueChunking=!1;M.__chunkingId=0;M.__sortFn=null;M.__filterFn=null;M.__observePaths=null;M.__ctor=null;M.__isDetached=!0;M.template=null;return M};
_.w(nd,gfu);_.P=nd.prototype;_.P.disconnectedCallback=function(){gfu.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var M=0;M<this.__instances.length;M++)this.__detachInstance(M);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.P.connectedCallback=function(){gfu.prototype.connectedCallback.call(this);No3()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var M=(0,_.Q3)((0,_.Q3)(this).parentNode),z=0;z<this.__instances.length;z++)this.__attachInstance(z,M);this.__chunkingId&&this.__render()}};
_.P.__ensureTemplatized=function(){var M=this;if(!this.__ctor){var z=this.template=this._templateInfo?this:this.querySelector("template");if(!z){var J=new MutationObserver(function(){if(M.querySelector("template"))J.disconnect(),M.__render();else throw Error("Kd");});
J.observe(this,{childList:!0});return!1}var R={};R[this.as]=!0;R[this.indexAs]=!0;R[this.itemsIndexAs]=!0;this.__ctor=qS(z,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:R,forwardHostProp:function(D,N){for(var Z=this.__instances,B=0,O=void 0;B<Z.length&&(O=Z[B]);B++)O.forwardHostProp(D,N)},
notifyInstanceProp:function(D,N,Z){$9H(this.as,N)&&(D=D[this.itemsIndexAs],N==this.as&&(this.items[D]=Z),N=IO(this.as,"items."+D,N),this.notifyPath(N,Z))}})}return!0};
_.P.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.P.__functionFromPropertyValue=function(M){if(typeof M==="string"){var z=this.__getMethodHost();return function(){return z[M].apply(z,arguments)}}return M};
_.P.__sortChanged=function(M){this.__sortFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.P.__filterChanged=function(M){this.__filterFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.P.__computeFrameTime=function(M){return Math.ceil(1E3/M)};
_.P.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.P.__handleObservedPaths=function(M){if(this.__sortFn||this.__filterFn)if(!M)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var z=this.__observePaths,J=0;J<z.length;J++)M.indexOf(z[J])===0&&this.__debounceRender(this.__render,this.delay)};
_.P.__itemsChanged=function(M){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(M.path,M.value)||(M.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.P.__debounceRender=function(M,z){z=z===void 0?0:z;this.__renderDebouncer=_.Iq(this.__renderDebouncer,z>0?_.zx.after(z):cN,M.bind(this));_.oq(this.__renderDebouncer)};
_.P.render=function(){this.__debounceRender(this.__render);_.Q7()};
_.P.__render=function(){var M=this;if(this.__ensureTemplatized()){var z=this.items||[],J=this.__sortAndFilterItems(z),R=this.__calculateLimit(J.length);this.__updateInstances(z,R,J);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){M.__chunkingId=null;M.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);rd&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.__sortAndFilterItems=function(M){for(var z=this,J=Array(M.length),R=0;R<M.length;R++)J[R]=R;this.__filterFn&&(J=J.filter(function(D,N,Z){return z.__filterFn(M[D],N,Z)}));
this.__sortFn&&J.sort(function(D,N){return z.__sortFn(M[D],M[N])});
return J};
_.P.__calculateLimit=function(M){var z=M,J=this.__instances.length;if(this.initialCount){var R;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(z=Math.min(M,this.initialCount),this.__chunkCount=(R=Math.max(z-J,0))||1):(R=Math.min(Math.max(M-J,0),this.__chunkCount),z=Math.min(J+R,M));this.__shouldMeasureChunk=R===this.__chunkCount;this.__shouldContinueChunking=z<M;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return z};
_.P.__continueChunking=function(){if(this.__shouldMeasureChunk){var M=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/M*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.P.__updateInstances=function(M,z,J){var R=this.__itemsIdxToInstIdx={},D;for(D=0;D<z;D++){var N=this.__instances[D],Z=J[D],B=M[Z];R[Z]=D;N?(N._setPendingProperty(this.as,B),N._setPendingProperty(this.indexAs,D),N._setPendingProperty(this.itemsIndexAs,Z),N._flushProperties()):this.__insertInstance(B,D,Z)}for(M=this.__instances.length-1;M>=D;M--)this.__detachAndRemoveInstance(M)};
_.P.__detachInstance=function(M){M=this.__instances[M];for(var z=(0,_.Q3)(M.root),J=0;J<M.children.length;J++)z.appendChild(M.children[J]);return M};
_.P.__attachInstance=function(M,z){z.insertBefore(this.__instances[M].root,this)};
_.P.__detachAndRemoveInstance=function(M){this.__detachInstance(M);this.__instances.splice(M,1)};
_.P.__stampInstance=function(M,z,J){var R={};R[this.as]=M;R[this.indexAs]=z;R[this.itemsIndexAs]=J;return new this.__ctor(R)};
_.P.__insertInstance=function(M,z,J){M=this.__stampInstance(M,z,J);J=(J=this.__instances[z+1])?J.children[0]:this;(0,_.Q3)((0,_.Q3)(this).parentNode).insertBefore(M.root,J);return this.__instances[z]=M};
_.P._showHideChildren=function(M){for(var z=0;z<this.__instances.length;z++)this.__instances[z]._showHideChildren(M)};
_.P.__handleItemPath=function(M,z){var J=M.slice(6),R=J.indexOf(".");M=R<0?J:J.substring(0,R);if(M==parseInt(M,10)){J=R<0?"":J.substring(R+1);this.__handleObservedPaths(J);if(M=this.__instances[this.__itemsIdxToInstIdx[M]])M._setPendingPropertyOrPath(this.as+(J?"."+J:""),z,!1,!0),M._flushProperties();return!0}};
_.P.itemForElement=function(M){return(M=this.modelForElement(M))&&M[this.as]};
_.P.indexForElement=function(M){return(M=this.modelForElement(M))&&M[this.indexAs]};
_.P.modelForElement=function(M){return Gjc(this.template,M)};
_.rX.Object.defineProperties(nd,{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:nd.prototype.__sortChanged},filter:{type:Function,observer:nd.prototype.__filterChanged},observe:{type:String,observer:nd.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!rd,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.*)"]}}});
nd.prototype._setRenderedItemCount=function(){};
customElements.define(nd.is,nd);Polymer.DomRepeat=nd;var ssk=function(M,z){var J=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=M;this.callback=z;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){J._schedule()};
this.connect();this._schedule()},nfJ=function(M){var z=(0,_.Q3)(M);
if(V3(M))return z.assignedNodes({flatten:!0});M=[];for(var J=0;J<z.childNodes.length;J++){var R=z.childNodes[J];V3(R)?M.push.apply(M,_.Yj((0,_.Q3)(R).assignedNodes({flatten:!0}))):M.push(R)}return M};
_.P=ssk.prototype;_.P.connect=function(){var M=this;V3(this._target)?this._listenSlots([this._target]):(0,_.Q3)(this._target).children&&(this._listenSlots((0,_.Q3)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(z){M._processMutations(z)}):(this._nativeChildrenObserver=new MutationObserver(function(z){M._processMutations(z)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.P.disconnect=function(){V3(this._target)?this._unlistenSlots([this._target]):(0,_.Q3)(this._target).children&&(this._unlistenSlots((0,_.Q3)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.P._schedule=function(){var M=this;this._scheduled||(this._scheduled=!0,cN.run(function(){return M.flush()}))};
_.P._processMutations=function(M){this._processSlotMutations(M);this.flush()};
_.P._processSlotMutations=function(M){if(M)for(var z=0;z<M.length;z++){var J=M[z];J.addedNodes&&this._listenSlots(J.addedNodes);J.removedNodes&&this._unlistenSlots(J.removedNodes)}};
_.P.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var M={target:this._target,addedNodes:[],removedNodes:[]},z=nfJ(this._target),J=vTY(z,this._effectiveNodes),R=0,D=void 0;R<J.length&&(D=J[R]);R++)for(var N=0,Z=void 0;N<D.removed.length&&(Z=D.removed[N]);N++)M.removedNodes.push(Z);
R=0;for(D=void 0;R<J.length&&(D=J[R]);R++)for(N=D.index;N<D.index+D.addedCount;N++)M.addedNodes.push(z[N]);this._effectiveNodes=z;z=!1;if(M.addedNodes.length||M.removedNodes.length)z=!0,this.callback.call(this._target,M);return z};
_.P._listenSlots=function(M){for(var z=0;z<M.length;z++){var J=M[z];V3(J)&&J.addEventListener("slotchange",this._boundSchedule)}};
_.P._unlistenSlots=function(M){for(var z=0;z<M.length;z++){var J=M[z];V3(J)&&J.removeEventListener("slotchange",this._boundSchedule)}};var v0=Element.prototype,hbV=v0.matches||v0.matchesSelector||v0.mozMatchesSelector||v0.msMatchesSelector||v0.oMatchesSelector||v0.webkitMatchesSelector,yNa=function(M,z){return hbV.call(M,z)},EF=function(M){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(M);
this.node=M},KpS;
_.P=EF.prototype;_.P.observeNodes=function(M){return new ssk(this.node,M)};
_.P.unobserveNodes=function(M){M.disconnect()};
_.P.notifyObserver=function(){};
_.P.deepContains=function(M){if((0,_.Q3)(this.node).contains(M))return!0;var z=M;for(M=M.ownerDocument;z&&z!==M&&z!==this.node;)z=(0,_.Q3)(z).parentNode||(0,_.Q3)(z).host;return z===this.node};
_.P.getOwnerRoot=function(){return(0,_.Q3)(this.node).getRootNode()};
_.P.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Q3)(this.node).assignedNodes({flatten:!0}):[]};
_.P.getDestinationInsertionPoints=function(){for(var M=[],z=(0,_.Q3)(this.node).assignedSlot;z;)M.push(z),z=(0,_.Q3)(z).assignedSlot;return M};
_.P.importNode=function(M,z){return(0,_.Q3)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(M,z)};
_.P.getEffectiveChildNodes=function(){return nfJ(this.node)};
_.P.queryDistributedElements=function(M){for(var z=this.getEffectiveChildNodes(),J=[],R=0,D=z.length,N=void 0;R<D&&(N=z[R]);R++)N.nodeType===Node.ELEMENT_NODE&&yNa(N,M)&&J.push(N);return J};
_.rX.Object.defineProperties(EF.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var M=this.node;return M._activeElement!==void 0?M._activeElement:M.activeElement}}});
var Gx=function(M){this.event=M};
_.rX.Object.defineProperties(Gx.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 HDQ=EF;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var cNt=window.ShadyDOM.Wrapper,dvB=function(){return cNt.apply(this,arguments)||this};
_.w(dvB,cNt);Object.getOwnPropertyNames(EF.prototype).forEach(function(M){M!="activeElement"&&M!="constructor"&&(dvB.prototype[M]=EF.prototype[M])});
x8H(dvB.prototype,["classList"]);HDQ=dvB;Object.defineProperties(Gx.prototype,{localTarget:{get:function(){var M=this.event.currentTarget;M=M&&_.pu(M).getOwnerRoot();for(var z=this.path,J=0;J<z.length;J++){var R=z[J];if(_.pu(R).getOwnerRoot()===M)return R}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else w9H(),x8H(EF.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ts0();KpS=HDQ;_.pu=function(M){M=M||document;if(M instanceof HDQ)return M;if(M instanceof Gx)return M;var z=M.__domApi;z||(M instanceof Event?z=new Gx(M):z=new HDQ(M),M.__domApi=z);return z};var $vV=/:host\(:dir\((ltr|rtl)\)\)/g,u2u=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,qh$=/:dir\((?:ltr|rtl)\)/,WpJ=!(!window.ShadyDOM||!window.ShadyDOM.inUse),L4=[],wJ=null,f4="",a8p=Jn(function(M){WpJ||wJ||(f4=document.documentElement.getAttribute("dir"),wJ=new MutationObserver(jJY),wJ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var z=Ada(M);M=function(){var J=z.call(this)||this;J.__autoDirOptOut=!1;return J};
_.w(M,z);M._processStyleText=function(J,R){J=z._processStyleText.call(this,J,R);!WpJ&&qh$.test(J)&&(J=this._replaceDirInCssText(J),this.__activateDir=!0);return J};
M._replaceDirInCssText=function(J){J=J.replace($vV,':host([dir="$1"])');return J=J.replace(u2u,':host([dir="$2"]) $1')};
M.prototype.ready=function(){z.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
M.prototype.connectedCallback=function(){z.prototype.connectedCallback&&z.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(wJ&&wJ.takeRecords().length&&jJY(),L4.push(this),this.__autoDirOptOut||this.setAttribute("dir",f4))};
M.prototype.disconnectedCallback=function(){z.prototype.disconnectedCallback&&z.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var J=L4.indexOf(this);J>-1&&L4.splice(J,1)}};
M.__activateDir=!1;return M});var VgB=function(M){for(;M;){var z=Object.getOwnPropertyDescriptor(M,"observedAttributes");if(z)return z.get;M=Object.getPrototypeOf(M.prototype).constructor}return function(){return[]}};
Jn(function(M){var z=NP(M),J=VgB(z);M=function(){return z.call(this)||this};
_.w(M,z);M.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:z.prototype._initializeProperties.call(this)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(R){return z.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
M.prototype.attributeChangedCallback=function(R,D,N,Z){R=="disable-upgrade"?this.__isUpgradeDisabled&&N==null&&(z.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Q3)(this).isConnected&&z.prototype.connectedCallback.call(this)):z.prototype.attributeChangedCallback.call(this,R,D,N,Z)};
M.prototype.connectedCallback=function(){this.__isUpgradeDisabled||z.prototype.connectedCallback.call(this)};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||z.prototype.disconnectedCallback.call(this)};
_.rX.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return J.call(this).concat("disable-upgrade")}}});
return M});var A1=!1,FeG=[],i4=[];var sJn=window.ShadyDOM,nIp=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",yvw):document.readyState==="interactive"||document.readyState==="complete"?yvw():window.addEventListener("DOMContentLoaded",yvw);var d8e=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=""},Hyp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,cvn=/@import[^;]*;/gim,aPe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Vs3=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,EI8=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,fP0=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,qDw=/^@[^\s]*keyframes/,
uZ8=/\s+/g;var Lep={};var CNG=Promise.resolve();var Ef$=new Set;var f8k=/;\s*/m,LpV=/^\s*(initial)|(inherit)\s*$/,ANk=/\s*!important/,iD$=function(){this._map={}};
iD$.prototype.set=function(M,z){M=M.trim();this._map[M]={properties:z,dependants:{}}};
iD$.prototype.get=function(M){M=M.trim();return this._map[M]||null};
var CdV=null,xt=function(){this._measureElement=this._currentElement=null;this._map=new iD$};
_.P=xt.prototype;_.P.detectMixin=function(M){M=I8V.test(M)||TAV.test(M);I8V.lastIndex=0;TAV.lastIndex=0;return M};
_.P.transformTemplate=function(M,z){if(M._gatheredStyle===void 0){var J=[];for(var R=M.content.querySelectorAll("style"),D=0;D<R.length;D++){var N=R[D];if(N.hasAttribute("shady-unscoped")){if(!gT3){var Z=N.textContent;if(!Ef$.has(Z)){Ef$.add(Z);var B=document.createElement("style");B.setAttribute("shady-unscoped","");B.textContent=Z;document.head.appendChild(B)}N.parentNode.removeChild(N)}}else J.push(N.textContent),N.parentNode.removeChild(N)}(J=J.join("").trim())?(R=document.createElement("style"),
R.textContent=J,M.content.insertBefore(R,M.content.firstChild),J=R):J=null;M._gatheredStyle=J}return(M=M._gatheredStyle)?this.JSC$11176_transformStyle(M,z):null};
_.P.JSC$11176_transformStyle=function(M,z){z=z===void 0?"":z;var J=zIb(M);this.transformRules(J,z);M.textContent=M6p(J);return J};
_.P.transformCustomStyle=function(M){var z=this,J=zIb(M);RI0(J,function(R){R.selector===":root"&&(R.selector="html");z.transformRule(R)});
M.textContent=M6p(J);return J};
_.P.transformRules=function(M,z){var J=this;this._currentElement=z;RI0(M,function(R){J.transformRule(R)});
this._currentElement=null};
_.P.transformRule=function(M){M.cssText=bDk(this,M.parsedCssText,M);M.selector===":root"&&(M.selector=":host > *")};
var bDk=function(M,z,J){z=z.replace(TAV,function(R,D,N,Z){return M._produceCssProperties(R,D,N,Z,J)});
return M._consumeCssProperties(z,J)};
_.P=xt.prototype;_.P._getInitialValueForProperty=function(M){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(M)};
_.P._fallbacksFromPreviousRules=function(M){for(var z=this,J=M;J.parent;)J=J.parent;var R={},D=!1;RI0(J,function(N){(D=D||N===M)||N.selector===M.selector&&Object.assign(R,z._cssTextToMap(N.parsedCssText))});
return R};
_.P._consumeCssProperties=function(M,z){for(var J;J=I8V.exec(M);){var R=J[0],D=J[1];J=J.index;var N=J+R.indexOf("@apply"),Z=J+R.length;R=M.slice(0,N);M=M.slice(Z);N=z?this._fallbacksFromPreviousRules(z):{};Object.assign(N,this._cssTextToMap(R));D=this._atApplyToCssProperties(D,N);M=R+D+M;I8V.lastIndex=J+D.length}return M};
_.P._atApplyToCssProperties=function(M,z){M=M.replace(f8k,"");var J=[],R=this._map.get(M);R||(this._map.set(M,{}),R=this._map.get(M));if(R){this._currentElement&&(R.dependants[this._currentElement]=!0);var D,N=R.properties;for(D in N){var Z=z&&z[D];R=[D,": var(",M,"_-_",D];Z&&R.push(",",Z.replace(ANk,""));R.push(")");ANk.test(N[D])&&R.push(" !important");J.push(R.join(""))}}return J.join("; ")};
_.P._replaceInitialOrInherit=function(M,z){var J=LpV.exec(z);J&&(z=J[1]?this._getInitialValueForProperty(M):"apply-shim-inherit");return z};
_.P._cssTextToMap=function(M,z){z=z===void 0?!1:z;M=M.split(";");for(var J,R,D={},N=0;N<M.length;N++)if(J=M[N])R=J.split(":"),R.length>1&&(J=R[0].trim(),R=R.slice(1).join(":"),z&&(R=this._replaceInitialOrInherit(J,R)),D[J]=R);return D};
_.P._invalidateMixinEntry=function(M){if(CdV)for(var z in M.dependants)z!==this._currentElement&&CdV(z)};
_.P._produceCssProperties=function(M,z,J,R,D){var N=this;J&&Doo(J,function(x,m){m&&N._map.get(m)&&(R="@apply "+m+";")});
if(!R)return M;var Z=this._consumeCssProperties(""+R,D);D=M.slice(0,M.indexOf("--"));var B=Z=this._cssTextToMap(Z,!0),O=this._map.get(z),X=O&&O.properties;X?B=Object.assign(Object.create(X),Z):this._map.set(z,B);var l=[],e,Q=!1;for(e in B){var v=Z[e];v===void 0&&(v="initial");!X||e in X||(Q=!0);l.push(z+"_-_"+e+": "+v)}Q&&this._invalidateMixinEntry(O);O&&(O.properties=B);J&&(D=M+";"+D);return D+l.join("; ")+";"};
xt.prototype.detectMixin=xt.prototype.detectMixin;xt.prototype.transformStyle=xt.prototype.JSC$11176_transformStyle;xt.prototype.transformCustomStyle=xt.prototype.transformCustomStyle;xt.prototype.transformRules=xt.prototype.transformRules;xt.prototype.transformRule=xt.prototype.transformRule;xt.prototype.transformTemplate=xt.prototype.transformTemplate;xt.prototype._separator="_-_";Object.defineProperty(xt.prototype,"invalidCallback",{get:function(){return CdV},
set:function(M){CdV=M}});var tn=new xt,rNJ=function(){this.customStyleInterface=null;tn.invalidCallback=AvH},jR=function(M){!M.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(M.customStyleInterface=window.ShadyCSS.CustomStyleInterface,M.customStyleInterface.transformCallback=function(z){tn.transformCustomStyle(z)},M.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){M.customStyleInterface.enqueued&&M.flushCustomStyles()})})};
_.P=rNJ.prototype;_.P.prepareTemplate=function(M,z){jR(this);NpH(M)===""&&(Lep[z]=M,z=tn.transformTemplate(M,z),M._styleAst=z)};
_.P.flushCustomStyles=function(){jR(this);if(this.customStyleInterface){var M=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var z=0;z<M.length;z++){var J=this.customStyleInterface.getStyleForCustomStyle(M[z]);J&&tn.transformCustomStyle(J)}this.customStyleInterface.enqueued=!1}}};
_.P.styleSubtree=function(M,z){jR(this);z&&x5R(M,z);if(M.shadowRoot)for(this.styleElement(M),M=M.shadowRoot.children||M.shadowRoot.childNodes,z=0;z<M.length;z++)this.styleSubtree(M[z]);else for(M=M.children||M.childNodes,z=0;z<M.length;z++)this.styleSubtree(M[z])};
_.P.styleElement=function(M){jR(this);var z=M.localName,J;z?z.indexOf("-")>-1?J=z:J=M.getAttribute&&M.getAttribute("is")||"":J=M.is;z=Lep[J];if(!(z&&NpH(z)!==""||!z||iyb(z))){if(iyb(z)||z._applyShimValidatingVersion!==z._applyShimNextVersion)this.prepareTemplate(z,J),byY(z);if(M=M.shadowRoot)if(M=M.querySelector("style"))M.__cssRules=z._styleAst,M.textContent=M6p(z._styleAst)}};
_.P.styleDocument=function(M){jR(this);this.styleSubtree(document.body,M)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var pR=new rNJ,Mea=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(M,z){pR.flushCustomStyles();pR.prepareTemplate(M,z)},
prepareTemplateStyles:function(M,z,J){window.ShadyCSS.prepareTemplate(M,z,J)},
prepareTemplateDom:function(){},
styleSubtree:function(M,z){pR.flushCustomStyles();pR.styleSubtree(M,z)},
styleElement:function(M){pR.flushCustomStyles();pR.styleElement(M)},
styleDocument:function(M){pR.flushCustomStyles();pR.styleDocument(M)},
getComputedStyleValue:function(M,z){return t33(M,z)},
flushCustomStyles:function(){pR.flushCustomStyles()},
nativeCss:rvn,nativeShadow:gT3,cssBuild:b4,disableRuntime:l8v};Mea&&(window.ShadyCSS.CustomStyleInterface=Mea)}window.ShadyCSS.ApplyShim=tn;var z8p;z8p=window.ShadyCSS;_.Fe=Jn(function(M){M=tgQ(NP(M));var z=NAp?M:a8p(M),J=VgB(z),R={x:"pan-x",y:"pan-y",none:"none",all:"auto"};M=function(){return z.call(this)||this};
_.w(M,z);M.prototype.created=function(){};
M.prototype.__attributeReaction=function(D,N,Z){(this.__dataAttributes&&this.__dataAttributes[D]||D==="disable-upgrade")&&this.attributeChangedCallback(D,N,Z,null)};
M.prototype.setAttribute=function(D,N){if(nQ$&&!this._legacyForceObservedAttributes){var Z=this.getAttribute(D);z.prototype.setAttribute.call(this,D,N);this.__attributeReaction(D,Z,String(N))}else z.prototype.setAttribute.call(this,D,N)};
M.prototype.removeAttribute=function(D){if(nQ$&&!this._legacyForceObservedAttributes){var N=this.getAttribute(D);z.prototype.removeAttribute.call(this,D);this.__attributeReaction(D,N,null)}else z.prototype.removeAttribute.call(this,D)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(D){return z.prototype._canApplyPropertyDefault.call(this,D)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(D))};
M.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(z.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
M.prototype.attached=function(){};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(z.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
M.prototype.detached=function(){};
M.prototype.attributeChangedCallback=function(D,N,Z,B){N!==Z&&(D=="disable-upgrade"?this.__isUpgradeDisabled&&Z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Q3)(this).isConnected&&this.connectedCallback()):(z.prototype.attributeChangedCallback.call(this,D,N,Z,B),this.attributeChanged(D,N,Z)))};
M.prototype.attributeChanged=function(){};
M.prototype._initializeProperties=function(){if(K4&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var D=Object.getPrototypeOf(this);D.hasOwnProperty("__hasRegisterFinished")||(this._registered(),D.__hasRegisterFinished=!0);z.prototype._initializeProperties.call(this);this.root=this;this.created();nQ$&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
M.prototype._takeAttributes=function(){for(var D=this.attributes,N=0,Z=D.length;N<Z;N++){var B=D[N];this.__attributeReaction(B.name,null,B.value)}};
M.prototype._registered=function(){};
M.prototype.ready=function(){this._ensureAttributes();z.prototype.ready.call(this)};
M.prototype._ensureAttributes=function(){};
M.prototype._applyListeners=function(){};
M.prototype.serialize=function(D){return this._serializeValue(D)};
M.prototype.deserialize=function(D,N){return this._deserializeValue(D,N)};
M.prototype.reflectPropertyToAttribute=function(D,N,Z){this._propertyToAttribute(D,N,Z)};
M.prototype.serializeValueToAttribute=function(D,N,Z){this._valueToNodeAttribute(Z||this,D,N)};
M.prototype.extend=function(D,N){if(!D||!N)return D||N;for(var Z=Object.getOwnPropertyNames(N),B=0,O=void 0;B<Z.length&&(O=Z[B]);B++){var X=Object.getOwnPropertyDescriptor(N,O);X&&Object.defineProperty(D,O,X)}return D};
M.prototype.mixin=function(D,N){for(var Z in N)D[Z]=N[Z];return D};
M.prototype.chainObject=function(D,N){D&&N&&D!==N&&(D.__proto__=N);return D};
M.prototype.instanceTemplate=function(D){D=this.constructor._contentForTemplate(D);return document.importNode(D,!0)};
M.prototype.fire=function(D,N,Z){Z=Z||{};N=N===null||N===void 0?{}:N;D=new Event(D,{bubbles:Z.bubbles===void 0?!0:Z.bubbles,cancelable:!!Z.cancelable,composed:Z.composed===void 0?!0:Z.composed});D.detail=N;(0,_.Q3)(Z.node||this).dispatchEvent(D);return D};
M.prototype.listen=function(D,N,Z){D=D||this;var B=this.__boundListeners||(this.__boundListeners=new WeakMap),O=B.get(D);O||(O={},B.set(D,O));B=N+Z;O[B]||(O[B]=this._addMethodEventListenerToNode(D,N,Z,this))};
M.prototype.unlisten=function(D,N,Z){D=D||this;var B=this.__boundListeners&&this.__boundListeners.get(D);Z=N+Z;var O=B&&B[Z];O&&(this._removeEventListenerFromNode(D,N,O),B[Z]=null)};
M.prototype.setScrollDirection=function(D,N){_.HN(N||this,R[D]||"auto")};
M.prototype.$$=function(D){return this.root.querySelector(D)};
M.prototype.distributeContent=function(){var D=_.pu(this);window.ShadyDOM&&D.shadowRoot&&ShadyDOM.flush()};
M.prototype.getEffectiveChildNodes=function(){return _.pu(this).getEffectiveChildNodes()};
M.prototype.queryDistributedElements=function(D){return _.pu(this).queryDistributedElements(D)};
M.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(D){return D.nodeType===Node.ELEMENT_NODE})};
M.prototype.getEffectiveTextContent=function(){for(var D=this.getEffectiveChildNodes(),N=[],Z=0,B;B=D[Z];Z++)B.nodeType!==Node.COMMENT_NODE&&N.push(B.textContent);return N.join("")};
M.prototype.queryEffectiveChildren=function(D){return(D=this.queryDistributedElements(D))&&D[0]};
M.prototype.queryAllEffectiveChildren=function(D){return this.queryDistributedElements(D)};
M.prototype.getContentChildNodes=function(D){return(D=this.root.querySelector(D||"slot"))?_.pu(D).getDistributedNodes():[]};
M.prototype.getContentChildren=function(D){return this.getContentChildNodes(D).filter(function(N){return N.nodeType===Node.ELEMENT_NODE})};
M.prototype.isLightDescendant=function(D){return this!==D&&(0,_.Q3)(this).contains(D)&&(0,_.Q3)(this).getRootNode()===(0,_.Q3)(D).getRootNode()};
M.prototype.isLocalDescendant=function(D){return this.root===(0,_.Q3)(D).getRootNode()};
M.prototype.scopeSubtree=function(D,N){return hqn(D,N===void 0?!1:N)};
M.prototype.getComputedStyleValue=function(D){return z8p.getComputedStyleValue(this,D)};
M.prototype.debounce=function(D,N,Z){this._debouncers=this._debouncers||{};return this._debouncers[D]=_.Iq(this._debouncers[D],Z>0?_.zx.after(Z):cN,N.bind(this))};
M.prototype.isDebouncerActive=function(D){this._debouncers=this._debouncers||{};D=this._debouncers[D];return!(!D||!D.isActive())};
M.prototype.flushDebouncer=function(D){this._debouncers=this._debouncers||{};(D=this._debouncers[D])&&D.flush()};
M.prototype.cancelDebouncer=function(D){this._debouncers=this._debouncers||{};(D=this._debouncers[D])&&D.cancel()};
M.prototype.async=function(D,N){return N>0?_.zx.run(D.bind(this),N):~cN.run(D.bind(this))};
M.prototype.cancelAsync=function(D){D<0?cN.cancel(~D):_.zx.cancel(D)};
M.prototype.create=function(D,N){D=document.createElement(D);if(N)if(D.setProperties)D.setProperties(N);else for(var Z in N)D[Z]=N[Z];return D};
M.prototype.elementMatches=function(D,N){return yNa(N||this,D)};
M.prototype.toggleAttribute=function(D,N){var Z=this;arguments.length===3&&(Z=arguments[2]);arguments.length==1&&(N=!Z.hasAttribute(D));if(N)return(0,_.Q3)(Z).setAttribute(D,""),!0;(0,_.Q3)(Z).removeAttribute(D);return!1};
M.prototype.toggleClass=function(D,N,Z){Z=Z||this;arguments.length==1&&(N=!Z.classList.contains(D));N?Z.classList.add(D):Z.classList.remove(D)};
M.prototype.transform=function(D,N){N=N||this;N.style.webkitTransform=D;N.style.transform=D};
M.prototype.translate3d=function(D,N,Z,B){this.transform("translate3d("+D+","+N+","+Z+")",B||this)};
M.prototype.arrayDelete=function(D,N){if(Array.isArray(D)){if(N=D.indexOf(N),N>=0)return D.splice(N,1)}else if(N=XK(this,D).indexOf(N),N>=0)return this.splice(D,N,1);return null};
M.prototype._logger=function(D,N){Array.isArray(N)&&N.length===1&&Array.isArray(N[0])&&(N=N[0]);switch(D){case "log":case "warn":case "error":console[D].apply(console,_.Yj(N))}};
M.prototype._log=function(){this._logger("log",_.H4.apply(0,arguments))};
M.prototype._warn=function(){this._logger("warn",_.H4.apply(0,arguments))};
M.prototype._error=function(){this._logger("error",_.H4.apply(0,arguments))};
M.prototype._logf=function(D){return["[%s::%s]",this.is,D].concat(_.Yj(_.H4.apply(1,arguments)))};
_.rX.Object.defineProperties(M.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var D=(0,_.Q3)(this).getRootNode();return D instanceof DocumentFragment?D.host:D}}});
_.rX.Object.defineProperties(M,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return nQ$&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],n8o(this.prototype)),this.__observedAttributes):J.call(this).concat("disable-upgrade")}}});
M.prototype.is="";return M});Polymer.FlattenedNodesObserver=ssk;Polymer.DomApi=KpS;Polymer.EventApi=Gx;Polymer.dom=_.pu;Polymer.dom.matchesSelector=yNa;Polymer.dom.flush=_.Q7;Polymer.dom.addDebouncer=_.oq;Polymer.DirMixin=a8p;Polymer.RenderStatus={beforeNextRender:_.gIo,afterNextRender:_.C4,flush:function(){for(;FeG.length||i4.length;)p9G(FeG),p9G(i4);A1=!1}};Polymer.LegacyElementMixin=_.Fe;var J9t;J9t=lZ._mutablePropertyChange;var R8k={properties:{mutableData:Boolean},_shouldPropertyChange:function(M,z,J){return J9t(this,M,z,J,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(M,z,J){return J9t(this,M,z,J,!0)}};
Polymer.OptionalMutableDataBehavior=R8k;var Pon={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},OQ3={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Bpp=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},OQ3),DG$=(0,_.Fe)(HTMLElement),RWR=function(M,z){M||console.warn("Polymer.Class requires `info` argument");z=z?z(DG$):DG$;z=Tp8(M,z,M.behaviors);z.is=z.prototype.is=
M.is;return z};Polymer.Class=RWR;Polymer.mixinBehaviors=function(M,z){return Tp8({},(0,_.Fe)(z),M)};
Polymer.GenerateClassFromInfo=Tp8;_.sV=function(M){var z=typeof M==="function"?M:_.sV.Class(M);M._legacyForceObservedAttributes&&(z.prototype._legacyForceObservedAttributes=M._legacyForceObservedAttributes);customElements.define(z.is,z);return z};
_.sV.Class=RWR;Polymer._polymerFn=_.sV;var NBQ=window.onLegacyPolymerFunctionDefinedCallback;NBQ&&NBQ();var N2w={templatize:function(M,z){this._templatizerTemplate=M;this.ctor=qS(M,this,{mutableData:!!z,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(M){return new this.ctor(M)},
modelForElement:function(M){return Gjc(this._templatizerTemplate,M)}};Polymer.Templatizer=N2w;_.Yt=(0,_.Fe)(HTMLElement).prototype;Polymer.Base=_.Yt;var oiG=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.MI=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.w(_.MI,PolymerFakeBaseClass);var zi=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.w(zi,PolymerFakeBaseClass);var XKo=Symbol("Ld"),xow=[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 P7$=P7$||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},SAV;(function(M){function z(V,E,L){var z8=b.get(V);if(!z8){if(!L)return;z8=new H;b.set(V,z8)}V=z8.get(E);if(!V){if(!L)return;V=new H;z8.set(E,V)}return V}
function J(V,E,L){if(R(V,E,L))return!0;E=Q(E);return E!==null?J(V,E,L):!1}
function R(V,E,L){E=z(E,L,!1);return E===void 0?!1:!!E.has(V)}
function D(V,E,L){if(R(V,E,L))return N(V,E,L);E=Q(E);if(E!==null)return D(V,E,L)}
function N(V,E,L){E=z(E,L,!1);if(E!==void 0)return E.get(V)}
function Z(V,E){var L=B(V,E);V=Q(V);if(V===null)return L;var z8=Z(V,E);if(z8.length<=0)return L;if(L.length<=0)return z8;E=new q;V=[];L=_.S(L);for(var O8=L.next();!O8.done;O8=L.next())O8=O8.value,E.has(O8)||(E.add(O8),V.push(O8));L=_.S(z8);for(z8=L.next();!z8.done;z8=L.next())z8=z8.value,E.has(z8)||(E.add(z8),V.push(z8));return V}
function B(V,E){V=z(V,E,!1);var L=[];V&&V.forEach(function(z8,O8){return L.push(O8)});
return L}
function O(V){return V===void 0}
function X(V){return typeof V==="object"?V!==null:typeof V==="function"}
function l(V){return typeof V==="function"}
function e(V){return typeof V==="symbol"?V:String(V)}
function Q(V){var E=Object.getPrototypeOf(V);if(typeof V!=="function"||V===y||E!==y)return E;var L=Object.getPrototypeOf(V.prototype);if(L==null||L===Object.prototype)return E;L=L.constructor;return typeof L!=="function"||L===V?E:L}
function v(){function V(){this._keys=[];this._values=[];this._cache=E}
var E={};V.prototype={get size(){return this._keys.length},has:function(L){return L===this._cache?!0:this._find(L)>=0?(this._cache=L,!0):!1},
get:function(L){var z8=this._find(L);if(z8>=0)return this._cache=L,this._values[z8]},
set:function(L,z8){this.delete(L);this._keys.push(L);this._values.push(z8);this._cache=L;return this},
delete:function(L){L=this._find(L);return L>=0?(this._keys.splice(L,1),this._values.splice(L,1),this._cache=E,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=E},
forEach:function(L){for(var z8=this.size,O8=0;O8<z8;++O8){var I3=this._keys[O8],vY=this._values[O8];this._cache=I3;L.call(this,vY,I3,this)}},
_find:function(L){for(var z8=this._keys,O8=z8.length,I3=0;I3<O8;++I3)if(z8[I3]===L)return I3;return-1}};
return V}
function x(){function V(){this._map=new H}
V.prototype={get size(){return this._map.length},has:function(E){return this._map.has(E)},
add:function(E){this._map.set(E,E);return this},
delete:function(E){return this._map.delete(E)},
clear:function(){this._map.clear()},
forEach:function(E,L){this._map.forEach(E,L)}};
return V}
function m(){function V(){this._key=L()}
function E(wR,qb){for(var cY=0;cY<qb;++cY)wR[cY]=Math.random()*255|0}
function L(){do{if(O8)var wR=O8.randomBytes(16);else typeof Uint8Array==="function"?(wR=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(wR):E(wR,16)):(wR=Array(16),E(wR,16));wR[6]=wR[6]&79|64;wR[8]=wR[8]&191|128;for(var qb="",cY=0;cY<16;++cY){var Pu=wR[cY];if(cY===4||cY===6||cY===8)qb+="-";Pu<16&&(qb+="0");qb+=Pu.toString(16).toLowerCase()}wR="@@WeakMap@@"+qb}while(I3.call(vY,wR));vY[wR]=!0;return wR}
function z8(wR,qb){if(!I3.call(wR,te)){if(!qb)return;Object.defineProperty(wR,te,{value:Object.create(null)})}return wR[te]}
var O8=typeof global!=="undefined"&&typeof P7$==="object"&&typeof require==="function"&&require("crypto"),I3=Object.prototype.hasOwnProperty,vY={},te=L();V.prototype={has:function(wR){return(wR=z8(wR,!1))?this._key in wR:!1},
get:function(wR){if(wR=z8(wR,!1))return wR[this._key]},
set:function(wR,qb){z8(wR,!0)[this._key]=qb;return this},
delete:function(wR){return(wR=z8(wR,!1))&&this._key in wR?delete wR[this._key]:!1},
clear:function(){this._key=L()}};
return V}
var y=Object.getPrototypeOf(Function),H=typeof Map==="function"?Map:v(),q=typeof Set==="function"?Set:x(),b=new (typeof WeakMap==="function"?WeakMap:m());M.decorate=function(V,E,L,z8){if(O(z8)){if(O(L)){if(!Array.isArray(V))throw new TypeError;if(!l(E))throw new TypeError;for(L=V.length-1;L>=0;--L)if(z8=(0,V[L])(E),!O(z8)){if(!l(z8))throw new TypeError;E=z8}return E}if(!Array.isArray(V))throw new TypeError;if(!X(E))throw new TypeError;L=e(L);for(z8=V.length-1;z8>=0;--z8)(0,V[z8])(E,L)}else{if(Array.isArray(V))if(X(E)){if(O(L))throw new TypeError;
if(!X(z8))throw new TypeError;}else throw new TypeError;else throw new TypeError;L=e(L);for(var O8=V.length-1;O8>=0;--O8){var I3=(0,V[O8])(E,L,z8);if(!O(I3)){if(!X(I3))throw new TypeError;z8=I3}}return z8}};
M.metadata=function(V,E){return function(L,z8){if(O(z8)){if(!l(L))throw new TypeError;z(L,void 0,!0).set(V,E)}else{if(!X(L))throw new TypeError;z8=e(z8);z(L,z8,!0).set(V,E)}}};
M.defineMetadata=function(V,E){var L;if(X(E))O(L)||(L=e(L));else throw new TypeError;z(E,L,!0).set("parameters",V)};
M.hasMetadata=function(V,E,L){if(X(E))O(L)||(L=e(L));else throw new TypeError;return J(V,E,L)};
M.hasOwnMetadata=function(V,E,L){if(X(E))O(L)||(L=e(L));else throw new TypeError;return R(V,E,L)};
M.getMetadata=function(V,E,L){if(X(E))O(L)||(L=e(L));else throw new TypeError;return D(V,E,L)};
M.getOwnMetadata=function(V,E,L){if(X(E))O(L)||(L=e(L));else throw new TypeError;return N(V,E,L)};
M.getMetadataKeys=function(V,E){if(X(V))O(E)||(E=e(E));else throw new TypeError;return Z(V,E)};
M.getOwnMetadataKeys=function(V,E){if(X(V))O(E)||(E=e(E));else throw new TypeError;return B(V,E)};
M.deleteMetadata=function(V,E,L){if(X(E))O(L)||(L=e(L));else throw new TypeError;var z8=z(E,L,!1);if(!O(z8)){if(!z8.delete(V))return!1;if(z8.size>0)return!0;V=b.get(E);V.delete(L);if(V.size>0)return!0;b.delete(E);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==M)for(var E in M)V.Reflect[E]=M[E]}else V.Reflect=M})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(SAV||(SAV={}));var ZXQ=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
ZXQ.prototype.addEventListener=function(M,z,J){this.target.addEventListener(M,z,J)};
ZXQ.prototype.removeEventListener=function(M,z,J){this.target.removeEventListener(M,z,J)};
ZXQ.prototype.dispatchEvent=function(M){if(this.onabort&&M.type==="abort")this.onabort(M);return this.target.dispatchEvent(M)};var kh$=function(){this.signal=new ZXQ};
kh$.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var M=document.createEvent("Event");M.initEvent("abort",!1,!1);this.signal.dispatchEvent(M)}};var qS8=self;var BBv=[0,_.Av,_.Cy,_.Av];var OXp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(OXp,_.zA);var TBJ=_.B4(OXp,[0,_.Lk3,_.ro,BBv,_.Cy,_.zE]);_.ZP(_.Ju,_.wS);_.P=_.Ju.prototype;_.P.start=function(){this.stop();this.usingListeners_=!1;var M=ISp(this),z=oVp(this);M&&!z&&this.JSC$11225_win_.mozRequestAnimationFrame?(this.JSC$11225_id_=_.YS(this.JSC$11225_win_,"MozBeforePaint",this.callback_),this.JSC$11225_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11225_id_=M&&z?M.call(this.JSC$11225_win_,this.callback_):this.JSC$11225_win_.setTimeout(Ng$(this.callback_),20)};
_.P.stop=function(){if(this.isActive()){var M=ISp(this),z=oVp(this);M&&!z&&this.JSC$11225_win_.mozRequestAnimationFrame?j5(this.JSC$11225_id_):M&&z?z.call(this.JSC$11225_win_,this.JSC$11225_id_):this.JSC$11225_win_.clearTimeout(this.JSC$11225_id_)}this.JSC$11225_id_=null};
_.P.fire=function(){this.stop();this.JSC$11227_doAction_()};
_.P.isActive=function(){return this.JSC$11225_id_!=null};
_.P.JSC$11227_doAction_=function(){this.usingListeners_&&this.JSC$11225_id_&&j5(this.JSC$11225_id_);this.JSC$11225_id_=null;this.JSC$11225_listener_.call(this.handler_,_.Ss())};
_.P.disposeInternal=function(){this.stop();_.Ju.superClass_.disposeInternal.call(this)};
var ISp=function(M){M=M.JSC$11225_win_;return M.requestAnimationFrame||M.webkitRequestAnimationFrame||M.mozRequestAnimationFrame||M.oRequestAnimationFrame||M.msRequestAnimationFrame||null},oVp=function(M){M=M.JSC$11225_win_;
return M.cancelAnimationFrame||M.cancelRequestAnimationFrame||M.webkitCancelRequestAnimationFrame||M.mozCancelRequestAnimationFrame||M.oCancelRequestAnimationFrame||M.msCancelRequestAnimationFrame||null};_.A_=function(M,z,J){_.wS.call(this);this.JSC$11228_listener_=J!=null?M.bind(J):M;this.JSC$11228_interval_=z;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11228_timer_=null};
_.w(_.A_,_.wS);_.P=_.A_.prototype;_.P.fire=function(M){this.args_=arguments;this.JSC$11228_timer_||this.pauseCount_?this.shouldFire_=!0:XPS(this)};
_.P.stop=function(){this.JSC$11228_timer_&&(_.R3.clearTimeout(this.JSC$11228_timer_),this.JSC$11228_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.P.pause=function(){this.pauseCount_++};
_.P.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11228_timer_||(this.shouldFire_=!1,XPS(this))};
_.P.disposeInternal=function(){_.wS.prototype.disposeInternal.call(this);this.stop()};
var XPS=function(M){M.JSC$11228_timer_=gs(function(){M.JSC$11228_timer_=null;M.shouldFire_&&!M.pauseCount_&&(M.shouldFire_=!1,XPS(M))},M.JSC$11228_interval_);
var z=M.args_;M.args_=null;M.JSC$11228_listener_.apply(null,z)};var lSS=function(M,z){this.childIterator_=M[_.R3.Symbol.iterator]();this.mapFn_=z};
lSS.prototype[Symbol.iterator]=function(){return this};
lSS.prototype.next=function(){var M=this.childIterator_.next();return{value:M.done?void 0:this.mapFn_.call(void 0,M.value),done:M.done}};
var e8$=function(M,z){return new lSS(M,z)};var QzV={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 G1w=function(M){var z=UGk(M);if(!z)throw Error("Pd`"+M);return z},UGk=function(M){var z={};
M=String(M);var J=M.charAt(0)=="#"?M:"#"+M;if(vVp.test(J))return z.hex=XLw(J),z.type="hex",z;J=jMn(M);return J.length?(z.hex=Njp(J[0],J[1],J[2]),z.type="rgb",z):QzV&&(M=QzV[M.toLowerCase()])?(z.hex=M,z.type="named",z):null},GhB=/#(.)(.)(.)/,XLw=function(M){if(!vVp.test(M))throw Error("Rd`"+M);
M.length==4&&(M=M.replace(GhB,"#$1$1$2$2$3$3"));return M.toLowerCase()},wBG=function(M){M=XLw(M);
M=parseInt(M.slice(1),16);return[M>>16,M>>8&255,M&255]},Njp=function(M,z,J){M=Number(M);
z=Number(z);J=Number(J);if(M!=(M&255)||z!=(z&255)||J!=(J&255))throw Error("Sd`"+M+"`"+z+"`"+J);z=M<<16|z<<8|J;return M<16?"#"+(16777216|z).toString(16).slice(1):"#"+z.toString(16)},vVp=/^#(?:[0-9a-f]{3}){1,2}$/i,wPV=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,jMn=function(M){var z=M.match(wPV);
if(z){M=Number(z[1]);var J=Number(z[2]);z=Number(z[3]);if(M>=0&&M<=255&&J>=0&&J<=255&&z>=0&&z<=255)return[M,J,z]}return[]};var xGV={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},Um=xGV;Um=xGV;var B78,teu,jzu;B78=function(M,z){switch(z){case 1:return M%4!=0||M%100==0&&M%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
teu=function(M,z,J,R,D){M=new Date(M,z,J);D=D||0;return M.valueOf()+(((R!==void 0?R:3)-D+7)%7-((M.getDay()+6)%7-D+7)%7)*864E5};
_.m7=function(M,z,J){typeof M==="number"?(this.date=jzu(M,z||0,J||1),pPV(this,J||1)):_.E8(M)?(this.date=jzu(M.getFullYear(),M.getMonth(),M.getDate()),pPV(this,M.getDate())):(this.date=new Date(_.Ss()),M=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),pPV(this,M))};
jzu=function(M,z,J){z=new Date(M,z,J);M>=0&&M<100&&z.setFullYear(z.getFullYear()-1900);return z};
_.P=_.m7.prototype;_.P.firstDayOfWeek_=Um.FIRSTDAYOFWEEK;_.P.firstWeekCutOffDay_=Um.FIRSTWEEKCUTOFFDAY;_.P.clone=function(){var M=new _.m7(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.P.getFullYear=function(){return this.date.getFullYear()};
_.P.getYear=function(){return this.getFullYear()};
_.P.getMonth=function(){return this.date.getMonth()};
_.P.getDate=function(){return this.date.getDate()};
_.P.getTime=function(){return this.date.getTime()};
_.P.getDay=function(){return this.date.getDay()};
_.P.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.P.getUTCMonth=function(){return this.date.getUTCMonth()};
_.P.getUTCDate=function(){return this.date.getUTCDate()};
_.P.getUTCDay=function(){return this.date.getDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.P.set=function(M){this.date=new Date(M.getFullYear(),M.getMonth(),M.getDate())};
_.P.setFullYear=function(M){this.date.setFullYear(M)};
_.P.setYear=function(M){this.setFullYear(M)};
_.P.setMonth=function(M){this.date.setMonth(M)};
_.P.setDate=function(M){this.date.setDate(M)};
_.P.setTime=function(M){this.date.setTime(M)};
_.P.setUTCFullYear=function(M){this.date.setUTCFullYear(M)};
_.P.setUTCMonth=function(M){this.date.setUTCMonth(M)};
_.P.setUTCDate=function(M){this.date.setUTCDate(M)};
_.P.add=function(M){if(M.years||M.months){var z=this.getMonth()+M.months+M.years*12,J=this.getYear()+Math.floor(z/12);z%=12;z<0&&(z+=12);var R=Math.min(B78(J,z),this.getDate());this.setDate(1);this.setFullYear(J);this.setMonth(z);this.setDate(R)}M.days&&(J=this.getYear(),z=J>=0&&J<=99?-1900:0,M=new Date((new Date(J,this.getMonth(),this.getDate(),12)).getTime()+M.days*864E5),this.setDate(1),this.setFullYear(M.getFullYear()+z),this.setMonth(M.getMonth()),this.setDate(M.getDate()),pPV(this,M.getDate()))};
_.P.JSC$11241_toIsoString=function(M){var z=this.getFullYear(),J=z<0?"-":z>=1E4?"+":"";return[J+_.S6(Math.abs(z),J?6:4),_.S6(this.getMonth()+1,2),_.S6(this.getDate(),2)].join(M?"-":"")};
_.P.equals=function(M){return!(!M||this.getYear()!=M.getYear()||this.getMonth()!=M.getMonth()||this.getDate()!=M.getDate())};
_.P.toString=function(){return this.JSC$11241_toIsoString()};
var pPV=function(M,z){M.getDate()!=z&&M.date.setUTCHours(M.date.getUTCHours()+(M.getDate()<z?1:-1))};
_.m7.prototype.valueOf=function(){return this.date.valueOf()};var s_=function(M,z,J,R,D){this.reversed=!!z;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!J;M&&gJ(this,M,R);this.depth=D!=void 0?D:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.ZP(s_,Oq);var gJ=function(M,z,J,R){if(M.node=z)M.tagType=typeof J==="number"?J:M.node.nodeType!=1?0:M.reversed?-1:1;typeof R==="number"&&(M.depth=R)};
_.P=s_.prototype;_.P.JSC$11256_copyFrom=function(M){this.node=M.node;this.tagType=M.tagType;this.depth=M.depth;this.reversed=M.reversed;this.constrained=M.constrained};
_.P.clone=function(){return new s_(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.P.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Ta;var M=this.node;var z=this.reversed?-1:1;if(this.tagType==z){var J=this.reversed?M.lastChild:M.firstChild;J?gJ(this,J):gJ(this,M,z*-1)}else(J=this.reversed?M.previousSibling:M.nextSibling)?gJ(this,J):gJ(this,M.parentNode,z*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(M=this.node)?I_(M):Ta};
_.P.equals=function(M){return M.node==this.node&&(!this.node||M.tagType==this.tagType)};
_.P.splice=function(M){var z=this.node,J=this.reversed?1:-1;this.tagType==J&&(this.tagType=J*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;s_.prototype.next.call(this);this.reversed=!this.reversed;J=_.WY(arguments[0])?arguments[0]:arguments;for(var R=J.length-1;R>=0;R--)_.cK(J[R],z);_.eJ(z)};var FQt=function(){},nR=function(M){for(var z=[],J=M.getTextRangeCount(),R=0;R<J;R++)z.push(M.getTextRange(R));
return z};
FQt.prototype.isReversed=function(){return!1};
FQt.prototype.getWindow=function(){return hA(_.yW(this.JSC$11258_getStartNode()))};
var YAV=function(M,z){s_.call(this,M,z,!0)};
_.ZP(YAV,s_);var hn=function(M,z,J,R,D){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!D;if(M){this.startNode_=M;this.startOffset_=z;this.endNode_=J;this.endOffset_=R;if(M.nodeType==1&&M.tagName!="BR")if(M=M.childNodes,z=M[z])this.startNode_=z,this.startOffset_=0;else{M.length&&(this.startNode_=_.s8(M));var N=!0}J.nodeType==1&&((this.endNode_=J.childNodes[R])?this.endOffset_=0:this.endNode_=J)}s_.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);N&&this.next()};
_.ZP(hn,YAV);_.P=hn.prototype;_.P.JSC$11264_getStartNode=function(){return this.startNode_};
_.P.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.P.next=function(){return this.isLast()?Ta:hn.superClass_.next.call(this)};
_.P.JSC$11256_copyFrom=function(M){this.startNode_=M.startNode_;this.endNode_=M.endNode_;this.startOffset_=M.startOffset_;this.endOffset_=M.endOffset_;this.isReversed_=M.isReversed_;hn.superClass_.JSC$11256_copyFrom.call(this,M)};
_.P.clone=function(){var M=new hn(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);M.JSC$11256_copyFrom(this);return M};var mGu=function(){};
mGu.prototype.__iterator__=function(){return new hn(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var y7=function(M){this.range_=M};
_.ZP(y7,mGu);var gVQ=function(M){var z=_.yW(M).createRange();if(M.nodeType==3)z.setStart(M,0),z.setEnd(M,M.length);else if(hw(M)||M.nodeType==3){for(var J,R=M;(J=R.firstChild)&&(hw(J)||J.nodeType==3);)R=J;z.setStart(R,0);for(R=M;(J=R.lastChild)&&(hw(J)||J.nodeType==3);)R=J;z.setEnd(R,R.nodeType==1?R.childNodes.length:R.length)}else J=M.parentNode,M=Array.prototype.indexOf.call(J.childNodes,M),z.setStart(J,M),z.setEnd(J,M+1);return z},sz$=function(M,z,J,R){var D=_.yW(M).createRange();
D.setStart(M,z);D.setEnd(J,R);return D};
_.P=y7.prototype;_.P.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.P.getContainer=function(){return this.range_.commonAncestorContainer};
_.P.compareBrowserRangeEndpoints=function(M,z,J){return this.range_.compareBoundaryPoints(J==1?z==1?_.R3.Range.START_TO_START:_.R3.Range.START_TO_END:z==1?_.R3.Range.END_TO_START:_.R3.Range.END_TO_END,M)};
_.P.isCollapsed=function(){return this.range_.collapsed};
_.P.select=function(M){this.selectInternal(hA(_.yW(this.range_.startContainer)).getSelection(),M)};
_.P.selectInternal=function(M){M.removeAllRanges();M.addRange(this.range_)};
_.P.insertNode=function(M,z){var J=this.range_.cloneRange();J.collapse(z);J.insertNode(M);J.detach();return M};
_.P.collapse=function(M){this.range_.collapse(M)};_.ZP(RT,y7);RT.prototype.selectInternal=function(M,z){!z||this.isCollapsed()?RT.superClass_.selectInternal.call(this,M,z):(M.collapse(this.range_.endContainer,this.range_.endOffset),M.extend(this.range_.startContainer,this.range_.startOffset))};_.ZP(DQ,y7);DQ.prototype.compareBrowserRangeEndpoints=function(M,z,J){return DQ.superClass_.compareBrowserRangeEndpoints.call(this,M,z,J)};
DQ.prototype.selectInternal=function(M,z){z?M.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):M.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var nVg=function(M){return _.oJ?new DQ(M):_.IJ?new RT(M):new y7(M)};var H0=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},h82;
_.ZP(H0,FQt);h82=function(M,z){var J=new H0;J.browserRangeWrapper_=M;J.isReversed_=!!z;return J};
_.y9v=function(M){M=_.oJ?new DQ(gVQ(M)):_.IJ?new RT(gVQ(M)):new y7(gVQ(M));return h82(M)};
_.c0=function(M,z,J,R){var D=new H0;D.isReversed_=HXp(M,z,J,R);if(_.iD(M)&&!hw(M)){var N=M.parentNode;z=Array.prototype.indexOf.call(N.childNodes,M);M=N}_.iD(J)&&!hw(J)&&(N=J.parentNode,R=Array.prototype.indexOf.call(N.childNodes,J),J=N);D.isReversed_?(D.startNode_=J,D.startOffset_=R,D.endNode_=M,D.endOffset_=z):(D.startNode_=M,D.startOffset_=z,D.endNode_=J,D.endOffset_=R);return D};
_.P=H0.prototype;_.P.clone=function(){var M=new H0;M.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();M.startNode_=this.startNode_;M.startOffset_=this.startOffset_;M.endNode_=this.endNode_;M.endOffset_=this.endOffset_;M.isReversed_=this.isReversed_;return M};
_.P.JSC$11258_getType=function(){return"text"};
_.P.getBrowserRangeObject=function(){return dJ(this).range_};
_.P.getTextRangeCount=function(){return 1};
_.P.getTextRange=function(){return this};
var dJ=function(M){var z;if(!(z=M.browserRangeWrapper_)){z=M.JSC$11258_getStartNode();var J=M.JSC$11258_getStartOffset(),R=M.JSC$11258_getEndNode(),D=M.JSC$11258_getEndOffset();z=_.oJ?new DQ(sz$(z,J,R,D)):_.IJ?new RT(sz$(z,J,R,D)):new y7(sz$(z,J,R,D));z=M.browserRangeWrapper_=z}return z};
_.P=H0.prototype;_.P.getContainer=function(){return dJ(this).getContainer()};
_.P.JSC$11258_getStartNode=function(){return this.startNode_||(this.startNode_=dJ(this).range_.startContainer)};
_.P.JSC$11258_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=dJ(this).range_.startOffset};
_.P.JSC$11258_getEndNode=function(){return this.endNode_||(this.endNode_=dJ(this).range_.endContainer)};
_.P.JSC$11258_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=dJ(this).range_.endOffset};
_.P.isReversed=function(){return this.isReversed_};
_.P.JSC$11258_containsRange=function(M,z){if(M.JSC$11258_getType()=="text"){var J=dJ(this);M=dJ(M);z=z&&!M.isCollapsed();M=M.range_;J=z?J.compareBrowserRangeEndpoints(M,0,1)>=0&&J.compareBrowserRangeEndpoints(M,1,0)<=0:J.compareBrowserRangeEndpoints(M,0,0)>=0&&J.compareBrowserRangeEndpoints(M,1,1)<=0}else J=!1;return J};
_.P.isCollapsed=function(){return dJ(this).isCollapsed()};
_.P.JSC$11258_getText=function(){return dJ(this).range_.toString()};
_.P.__iterator__=function(){return new hn(this.JSC$11258_getStartNode(),this.JSC$11258_getStartOffset(),this.JSC$11258_getEndNode(),this.JSC$11258_getEndOffset())};
_.P.select=function(){dJ(this).select(this.isReversed_)};
_.P.JSC$11258_removeContents=function(){var M=dJ(this).range_;M.extractContents();if(M.startContainer.hasChildNodes()&&(M=M.startContainer.childNodes[M.startOffset])){var z=M.previousSibling;RwB(M)==""&&_.eJ(M);z&&RwB(z)==""&&_.eJ(z)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.P.insertNode=function(M,z){M=dJ(this).insertNode(M,z);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return M};
_.P.collapse=function(M){M=this.isReversed()?!M:M;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(M);M?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var c92=function(){};
_.ZP(c92,FQt);c92.prototype.JSC$11258_containsRange=function(M,z){var J=nR(this);M=nR(M);return(z?fo:_.P1G)(M,function(R){return fo(J,function(D){return D.JSC$11258_containsRange(R,z)})})};
c92.prototype.insertNode=function(M,z){z?_.HK(M,this.JSC$11258_getStartNode()):_.cK(M,this.JSC$11258_getEndNode());return M};var dGv,KQp=vj().JSC$9293_document_.documentElement;dGv=KQp.requestFullscreen?"fullscreenchange":KQp.webkitRequestFullscreen?"webkitfullscreenchange":KQp.mozRequestFullScreen?"mozfullscreenchange":KQp.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var $GV=function(){var M=vj().JSC$9293_document_;return!!(M.webkitIsFullScreen||M.mozFullScreen||M.msFullscreenElement||M.fullscreenElement)};var KR=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.ZP(KR,c92);_.P=KR.prototype;_.P.clone=function(){var M=new KR;M.browserRanges_=_.uG(this.browserRanges_);return M};
_.P.JSC$11258_getType=function(){return"mutli"};
_.P.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.P.getTextRangeCount=function(){return this.browserRanges_.length};
_.P.getTextRange=function(M){this.ranges_[M]||(this.ranges_[M]=h82(nVg(this.browserRanges_[M])));return this.ranges_[M]};
_.P.getContainer=function(){if(!this.container_){for(var M=[],z=this.getTextRangeCount(),J=0;J<z;J++)M.push(this.getTextRange(J).getContainer());this.container_=ivV.apply(null,M)}return this.container_};
var $t=function(M){M.sortedRanges_||(M.sortedRanges_=nR(M),M.sortedRanges_.sort(function(z,J){var R=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();var D=J.JSC$11258_getStartNode();J=J.JSC$11258_getStartOffset();return R==D&&z==J?0:HXp(R,z,D,J)?1:-1}));
return M.sortedRanges_};
_.P=KR.prototype;_.P.JSC$11258_getStartNode=function(){return $t(this)[0].JSC$11258_getStartNode()};
_.P.JSC$11258_getStartOffset=function(){return $t(this)[0].JSC$11258_getStartOffset()};
_.P.JSC$11258_getEndNode=function(){return _.s8($t(this)).JSC$11258_getEndNode()};
_.P.JSC$11258_getEndOffset=function(){return _.s8($t(this)).JSC$11258_getEndOffset()};
_.P.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.P.JSC$11258_getText=function(){return nR(this).map(function(M){return M.JSC$11258_getText()}).join("")};
_.P.__iterator__=function(){return new uZ(this)};
_.P.select=function(){var M=this.getWindow().getSelection();M.removeAllRanges();for(var z=this.getTextRangeCount(),J=0;J<z;J++)M.addRange(this.getTextRange(J).getBrowserRangeObject())};
_.P.JSC$11258_removeContents=function(){nR(this).forEach(function(M){M.JSC$11258_removeContents()})};
_.P.collapse=function(M){if(!this.isCollapsed()){var z=M?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;z.collapse(M);this.ranges_=[z];this.sortedRanges_=[z];this.browserRanges_=[z.getBrowserRangeObject()]}};
var uZ=function(M){this.iterators_=null;this.currentIdx_=0;M&&(this.iterators_=$t(M).map(function(z){return _.RJk(z)}));
s_.call(this,M?this.JSC$11264_getStartNode():null,!1,!0)};
_.ZP(uZ,YAV);_.P=uZ.prototype;_.P.JSC$11264_getStartNode=function(){return this.iterators_[0].JSC$11264_getStartNode()};
_.P.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.P.next=function(){for(;this.currentIdx_<this.iterators_.length;){var M=this.iterators_[this.currentIdx_],z=M.next();if(z.done)this.currentIdx_++;else return gJ(this,M.node,M.tagType,M.depth),z}return Ta};
_.P.JSC$11256_copyFrom=function(M){this.iterators_=_.uG(M.iterators_);uZ.superClass_.JSC$11256_copyFrom.call(this,M)};
_.P.clone=function(){var M=new uZ(null);M.JSC$11256_copyFrom(this);return M};var ukQ,HXp;_.oZ=function(){var M=window.getSelection();return M&&ukQ(M)};
ukQ=function(M){var z=!1;if(M.createRange)try{var J=M.createRange()}catch(D){return null}else if(M.rangeCount){if(M.rangeCount>1){J=new KR;z=M.rangeCount;for(var R=0;R<z;R++)J.browserRanges_.push(M.getRangeAt(R));return J}J=M.getRangeAt(0);z=HXp(M.anchorNode,M.anchorOffset,M.focusNode,M.focusOffset)}else return null;return h82(nVg(J),z)};
_.qP=function(M,z){return _.c0(M,z,M,z)};
_.W0=function(M,z,J,R){return _.c0(M,z,J,R)};
HXp=function(M,z,J,R){if(M==J)return R<z;var D;if(M.nodeType==1&&z)if(D=M.childNodes[z])M=D,z=0;else if(_.dS(M,J))return!0;if(J.nodeType==1&&R)if(D=J.childNodes[R])J=D,R=0;else if(_.dS(J,M))return!1;return(ASJ(M,J)||z-R)>0};var aq=function(){_.jB.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.xF)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.xF)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.xF)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.xF)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.xF)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.xF)(this.dispatchProgressEvent_,this)};
_.ZP(aq,_.jB);aq.prototype.abort=function(){try{this.reader_.abort()}catch(M){throw new Dpt(M,"aborting read");}};
aq.prototype.getError=function(){return this.reader_.error&&new Dpt(this.reader_.error,"reading file")};
aq.prototype.dispatchProgressEvent_=function(M){this.dispatchEvent(new NPp(M,this))};
aq.prototype.disposeInternal=function(){aq.superClass_.disposeInternal.call(this);delete this.reader_};
var WQV=function(M){var z=new aq,J=qAv(z);z.reader_.readAsArrayBuffer(M);return J},aS2=function(M){var z=new aq,J=qAv(z);
z.reader_.readAsDataURL(M);return J},qAv=function(M){var z=new iH;
M.listen("loadend",_.Uf(function(J,R){var D=R.reader_.result,N=R.getError();D==null||N?J.errback(N):J.callback(D);R.dispose()},z,M));
return z};var V7=function(){_.jB.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11298_eventHandler_=new _.Ps(this);this.JSC$11298_isInitialized_=!1};
_.ZP(V7,_.jB);var Ve$=new _.Ue("d"),EVt=new _.Ue("beforedragstart"),fSV=new _.Ue("dragstart"),LQp=new _.Ue("beforedragmove"),A9$=new _.Ue("dragmove"),iX$=new _.Ue("beforedragend"),C72=new _.Ue("dragend"),bXv=new _.Ue("e");V7.prototype.isDragging=function(){return!!this.JSC$11298_dragger_};
var r9$=function(M,z){z.dlgGrowthDirection_=0;z.dlgDragHoverClass_=void 0;z.dlgDragPermission=0;M.dragLists_.push(z)},MNB=function(M,z){M.getHandleForDragItem_=z};
V7.prototype.init=function(){if(!this.JSC$11298_isInitialized_){for(var M=this.dragLists_.length,z=0;z<M;z++)for(var J=_.dp(this.dragLists_[z]),R=J.length,D=0;D<R;++D){var N=J[D],Z=this.getHandleForDragItem_(N),B=_.fp(Z);this.dragItemForHandle_[B]=N;this.dragItemHoverClasses_&&(this.JSC$11298_eventHandler_.listen(N,"mouseover",this.handleDragItemMouseover_),this.JSC$11298_eventHandler_.listen(N,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11298_eventHandler_.listen(Z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11298_eventHandler_.listen(Z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(N);this.JSC$11298_eventHandler_.listen(Z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11298_isInitialized_=!0}};
V7.prototype.disposeInternal=function(){this.JSC$11298_eventHandler_.dispose();for(var M=this.dragLists_.length,z=0;z<M;z++){var J=this.dragLists_[z];J.dlgGrowthDirection_=void 0;J.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;zfS(this);V7.superClass_.disposeInternal.call(this)};
var JJV=function(M,z){for(var J=M.dragLists_.length,R=0;R<J;R++){var D=M.dragLists_[R];D.dlgBounds_=mo3(D)}J=M.dragItems_.length;for(R=0;R<J;R++)D=M.dragItems_[R],D!=z&&(D.dlgBounds_=mo3(D))};
_.P=V7.prototype;
_.P.handlePotentialDragStart_=function(M){var z=_.fp(M.currentTarget);z=this.dragItemForHandle_[z];if(z.parentElement.dlgDragPermission!=2){this.currDragItem_=z;a:{z=this.currDragItem_;for(var J=z.cloneNode(!0),R=Qs("TEXTAREA",z),D=Qs("TEXTAREA",J),N=0;N<R.length;N++)D[N].value=R[N].value;switch(z.tagName){case "TR":z=_.sc("TABLE",null,_.sc("TBODY",null,J));break a;case "TD":case "TH":z=_.sc("TABLE",null,_.sc("TBODY",null,_.sc("TR",null,J)));break a;case "TEXTAREA":J.value=z.value;default:z=J;break a}z=
void 0}this.draggerEl_=z;this.draggerElClasses_&&Ls(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.yW(this.currDragItem_).body.appendChild(this.draggerEl_);J=_.Hj(this.currDragItem_);z=this.draggerEl_;R=_.Hj(z);if(J instanceof _.nO){var Z=J.y;J=J.x}WK(z,z.offsetLeft+(J-R.x),z.offsetTop+(Number(Z)-R.y));this.JSC$11298_dragger_=new _.qD(this.draggerEl_);_.RXg(this.JSC$11298_dragger_,this.hysteresisDistance_);
_.YS(this.JSC$11298_dragger_,"start",this.handleDragStart_,!1,this);_.YS(this.JSC$11298_dragger_,"end",this.handleDragEnd_,!1,this);_.YS(this.JSC$11298_dragger_,"earlycancel",this.JSC$11300_cleanup_,!1,this);this.dispatchEvent(new E_(Ve$,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_));this.JSC$11298_dragger_.startDrag(M)}};
_.P.handleDragStart_=function(M){if(this.dispatchEvent(new E_(EVt,this,M.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Ep2(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Ls(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var z=kcQ(this.draggerEl_);this.draggerEl_.halfWidth=z.width/2;this.draggerEl_.halfHeight=z.height/2;z=this.draggerEl_.getBoundingClientRect();
var J=M.clientY,R=DcV(this.JSC$11298_dragger_,M.clientX);if(R>z.right){var D=this.currDragItem_.getBoundingClientRect();this.JSC$11298_dragger_.deltaX=R-(R-D.left)/D.width*z.width}J=Nc2(this.JSC$11298_dragger_,J);J>z.bottom&&(this.JSC$11298_dragger_.deltaY+=J-z.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";JJV(this,this.currDragItem_);this.currDragItem_.style.display="";_.YS(this.JSC$11298_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new E_(fSV,
this,M.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_))}else M.preventDefault(),this.JSC$11300_cleanup_()};
_.P.handleDragMove_=function(M){var z=_.Hj(this.draggerEl_);z=new _.nO(z.x+this.draggerEl_.halfWidth,z.y+this.draggerEl_.halfHeight);a:{var J=null;if(this.currDragItem_.style.display!="none"){J=this.currDragItem_.parentNode;var R=mo3(J);if(Rfk(z,R))break a}R=this.dragLists_.length;for(var D=0;D<R;D++){var N=this.dragLists_[D];if(N!=J&&Rfk(z,N.dlgBounds_)){J=N;break a}}J=null}if(J){if(J==null)throw Error("Td");R=0;D=!1;N=void 0;switch(J.dlgGrowthDirection_){case 0:R=z.y;var Z=D3V;var B=NHk;break;case 4:D=
!0;case 2:R=z.x;Z=PaJ;B=NHk;break;case 5:D=!0;case 3:R=z.x,Z=SVV,B=Zdg}for(var O=null,X,l=_.dp(J),e=l.length,Q=0;Q<e;Q++){var v=l[Q];if(v!=this.currDragItem_){var x=Z(v.dlgBounds_);if(D){var m=kpB(v,z);N===void 0&&(N=m);B(R,x)&&(X==void 0||m<N||m==N&&(B(x,X)||x==X))&&(O=v,X=x);m<N&&(N=m)}else B(R,x)&&(X==void 0||B(x,X))&&(O=v,X=x)}}Z=O!==null&&kpB(O,z)>N?null:O}else Z=null;if(!this.dispatchEvent(new E_(LQp,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_,z,J,Z)))return!1;if(J&&J.dlgDragPermission!=
1)this.currDragItem_.parentNode==J&&_.Ep2(this.currDragItem_)==Z||J.insertBefore(this.currDragItem_,Z),this.currDragItem_.style.display="",J.dlgDragHoverClass_&&_.M7(J,J.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",B=this.dragLists_.length,X=0;X<B;X++)R=this.dragLists_[X],R.dlgDragHoverClass_&&_.b5(R,R.dlgDragHoverClass_);J!=this.currHoverList_&&(this.currHoverList_=J,JJV(this,this.currDragItem_));this.dispatchEvent(new E_(A9$,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_,
z,J,Z));return!1};
_.P.JSC$11300_cleanup_=function(){zfS(this);this.JSC$11298_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var M=this.dragLists_.length,z=0;z<M;z++)this.dragLists_[z].dlgBounds_=null;M=this.dragItems_.length;for(z=0;z<M;z++)this.dragItems_[z].dlgBounds_=null};
_.P.handleDragEnd_=function(M){if(!this.dispatchEvent(new E_(iX$,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_)))return!1;zfS(this);this.dispatchEvent(new E_(C72,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11298_dragger_));this.JSC$11300_cleanup_();return!0};
var zfS=function(M){_.bv(M.JSC$11298_dragger_);var z=M.draggerEl_&&M.draggerEl_.parentElement;M.draggerEl_&&_.eJ(M.draggerEl_);M.currDragItem_&&M.currDragItem_.style.display=="none"&&(M.origList_.insertBefore(M.currDragItem_,M.origNextItem_),M.currDragItem_.style.display="");M.currDragItemClasses_&&M.currDragItem_?zSp(M.currDragItem_,M.currDragItemClasses_||[]):M.currDragItem_&&(M.currDragItem_.style.visibility="");for(var J=M.dragLists_.length,R=0;R<J;R++){var D=M.dragLists_[R];D.dlgDragHoverClass_&&
_.b5(D,D.dlgDragHoverClass_)}z&&M.dispatchEvent(new E_(bXv,M,null,M.currDragItem_,M.draggerEl_,M.JSC$11298_dragger_))};
_.P=V7.prototype;_.P.getHandleForDragItem_=function(M){return M};
_.P.handleDragItemMouseover_=function(M){Ls(M.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemMouseout_=function(M){zSp(M.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemHandleMouseover_=function(M){Ls(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.P.handleDragItemHandleMouseout_=function(M){zSp(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Rfk=function(M,z){return M.x>z.left&&M.x<z.left+z.width&&M.y>z.top&&M.y<z.top+z.height},kpB=function(M,z){M=M.dlgBounds_;
return Math.abs(z.y-(M.top+(M.height-1)/2))},D3V=function(M){return M.top+M.height-1},PaJ=function(M){return M.left+M.width-1},SVV=function(M){return M.left||0},NHk=function(M,z){return M<z},Zdg=function(M,z){return M>z},E_=function(M,z,J,R,D,N){_.vR.call(this,M);
this.event=J;this.currDragItem=R;this.draggerEl=D;this.JSC$11302_dragger=N};
_.ZP(E_,_.vR);_.ZP(Sn,_.wS);var BHQ=new _.nO(0,0);Sn.prototype.JSC$11306_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Sn.prototype.JSC$11306_onMouseMove=function(M){var z=this.containerIsActuallyContent_?BHQ:Ua(vj(this.containerNode_)),J=this.horizontalScrolling_?this.calculateScrollDelta(M.clientX+z.x,this.scrollBounds_.left,this.scrollBounds_.width):0,R=this.calculateScrollDelta(M.clientY+z.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=J;this.scrollDelta_.y=R;!(J=!J&&!R)&&(J=this.constrainScroll_)&&(J=M.clientX+z.x,M=M.clientY+z.y,z=this.containerBounds_,J=!(z.left<=J&&z.left+z.width>=
J&&z.top<=M&&z.top+z.height>=M));J?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Sn.prototype.calculateScrollDelta=function(M,z,J){var R=0;M<z?R=-8:M>z+J&&(R=8);return R};
Sn.prototype.disposeInternal=function(){Sn.superClass_.disposeInternal.call(this);this.JSC$11304_eventHandler_.dispose();this.scrollTimer_.dispose()};var OdV={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"}}},fR=OdV;fR=OdV;var LR={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 THV=function(){},fD=function(M){if(typeof M=="number"){var z=new THV;
z.standardOffset_=M;var J=M;if(J==0)J="Etc/GMT";else{var R=["Etc/GMT",J<0?"-":"+"];J=Math.abs(J);R.push(Math.floor(J/60)%100);J%=60;J!=0&&R.push(":",_.S6(J,2));J=R.join("")}z.timeZoneId_=J;J=M;J==0?J="UTC":(R=["UTC",J<0?"+":"-"],J=Math.abs(J),R.push(Math.floor(J/60)%100),J%=60,J!=0&&R.push(":",J),J=R.join(""));M=IE2(M);z.tzNames_=[J,J];z.tzNamesExt_={STD_LONG_NAME_GMT:M,STD_GENERIC_LOCATION:M};z.transitions_=[];return z}z=new THV;z.timeZoneId_=M.id;z.standardOffset_=-M.std_offset;z.tzNames_=M.names;
z.tzNamesExt_=M.names_ext;z.transitions_=M.transitions;return z},IE2=function(M){var z=["GMT"];
z.push(M<=0?"+":"-");M=Math.abs(M);z.push(_.S6(Math.floor(M/60)%100,2),":",_.S6(M%60,2));return z.join("")},oz2=function(M,z){z=Date.UTC(z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate(),z.getUTCHours(),z.getUTCMinutes())/36E5;
for(var J=0;J<M.transitions_.length&&z>=M.transitions_[J];)J+=2;return J==0?0:M.transitions_[J-1]},XU$=function(M,z){M=M.standardOffset_-oz2(M,z);
return M===-1440?0:M};var LD=function(M,z){this.patternParts_=[];this.JSC$11317_dateTimeSymbols_=z||Um;typeof M=="number"?lEt(this,M):efS(this,M)},QuV=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],An=function(M){return M.getHours?M.getHours():0},efS=function(M,z){for(mnn&&(z=z.replace(/\u200f/g,""));z;){for(var J=z,R=0;R<QuV.length;++R){var D=z.match(QuV[R]);
if(D){var N=D[0];z=z.substring(N.length);R==0&&(N=="''"?N="'":(N=N.substring(1,D[1]=="'"?N.length-1:N.length),N=N.replace(/''/g,"'")));M.patternParts_.push({text:N,type:R});break}}if(J===z)throw Error("Ud`"+z);}};
LD.prototype.format=function(M,z){if(!M)throw Error("Vd");var J=z?(M.getTimezoneOffset()-XU$(z,M))*6E4:0,R=J?new Date(M.getTime()+J):M,D=R;z&&R.getTimezoneOffset()!=M.getTimezoneOffset()&&(R=new Date(R.getTime()+(R.getTimezoneOffset()-M.getTimezoneOffset())*6E4),D=new Date(M.getTime()+(J+(J>0?-864E5:864E5))));J=[];for(var N=0;N<this.patternParts_.length;++N){var Z=this.patternParts_[N].text;1==this.patternParts_[N].type?J.push(U3v(this,Z,M,R,D,z)):J.push(Z)}return J.join("")};
var lEt=function(M,z){if(z<4)var J=M.JSC$11317_dateTimeSymbols_.DATEFORMATS[z];else if(z<8)J=M.JSC$11317_dateTimeSymbols_.TIMEFORMATS[z-4];else if(z<12)J=M.JSC$11317_dateTimeSymbols_.DATETIMEFORMATS[z-8],J=J.replace("{1}",M.JSC$11317_dateTimeSymbols_.DATEFORMATS[z-8]),J=J.replace("{0}",M.JSC$11317_dateTimeSymbols_.TIMEFORMATS[z-8]);else if(z===12)J=M.JSC$11317_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(z===13)J=M.JSC$11317_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{lEt(M,10);return}efS(M,J)},iZ=function(M,z){z=String(z);
M=M.JSC$11317_dateTimeSymbols_||Um;if(M.ZERODIGIT!==void 0&&!YEH){for(var J=[],R=0;R<z.length;R++){var D=z.charCodeAt(R);J.push(48<=D&&D<=57?String.fromCharCode(M.ZERODIGIT+D-48):z.charAt(R))}z=J.join("")}return z},YEH=!1,mnn=!1,Gpt=function(M,z,J,R){J=J.getFullYear();
J<=0&&R&&(J=1-J);return iZ(M,vzJ(J,z))},vzJ=function(M,z){z==2&&(M%=100);
M<0&&z++;return _.S6(M,z)},CR=function(M){if(!(M.getHours&&M.getSeconds&&M.getMinutes))throw Error("Wd");
},wU2=function(M,z){CR(z);
z=An(z);return M.JSC$11317_dateTimeSymbols_.AMPMS[z>=12&&z<24?1:0]},U3v=function(M,z,J,R,D,N){var Z=z.length;
switch(z.charAt(0)){case "G":return J=R.getFullYear()>0?1:0,Z>=4?M.JSC$11317_dateTimeSymbols_.ERANAMES[J]:M.JSC$11317_dateTimeSymbols_.ERAS[J];case "y":return Gpt(M,Z,R,!0);case "Y":return J=(new Date(teu(R.getFullYear(),R.getMonth(),R.getDate(),M.JSC$11317_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$11317_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Z==2&&(J%=100),iZ(M,vzJ(J,Z));case "u":return Gpt(M,Z,R,!1);case "M":a:switch(J=R.getMonth(),Z){case 5:Z=M.JSC$11317_dateTimeSymbols_.NARROWMONTHS[J];
break a;case 4:Z=M.JSC$11317_dateTimeSymbols_.MONTHS[J];break a;case 3:Z=M.JSC$11317_dateTimeSymbols_.SHORTMONTHS[J];break a;default:Z=iZ(M,_.S6(J+1,Z))}return Z;case "k":return CR(D),iZ(M,_.S6(An(D)||24,Z));case "S":return iZ(M,(D.getMilliseconds()/1E3).toFixed(Math.min(3,Z)).slice(2)+(Z>3?_.S6(0,Z-3):""));case "E":return J=R.getDay(),Z>=4?M.JSC$11317_dateTimeSymbols_.WEEKDAYS[J]:M.JSC$11317_dateTimeSymbols_.SHORTWEEKDAYS[J];case "a":return wU2(M,D);case "b":return wU2(M,D);case "B":return wU2(M,
D);case "h":return CR(D),iZ(M,_.S6(An(D)%12||12,Z));case "K":return CR(D),iZ(M,_.S6(An(D)%12,Z));case "H":return CR(D),iZ(M,_.S6(An(D),Z));case "c":a:switch(J=R.getDay(),Z){case 5:Z=M.JSC$11317_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[J];break a;case 4:Z=M.JSC$11317_dateTimeSymbols_.STANDALONEWEEKDAYS[J];break a;case 3:Z=M.JSC$11317_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[J];break a;default:Z=iZ(M,_.S6(J,1))}return Z;case "L":a:switch(J=R.getMonth(),Z){case 5:Z=M.JSC$11317_dateTimeSymbols_.STANDALONENARROWMONTHS[J];
break a;case 4:Z=M.JSC$11317_dateTimeSymbols_.STANDALONEMONTHS[J];break a;case 3:Z=M.JSC$11317_dateTimeSymbols_.STANDALONESHORTMONTHS[J];break a;default:Z=iZ(M,_.S6(J+1,Z))}return Z;case "Q":return J=Math.floor(R.getMonth()/3),Z<4?M.JSC$11317_dateTimeSymbols_.SHORTQUARTERS[J]:M.JSC$11317_dateTimeSymbols_.QUARTERS[J];case "d":return iZ(M,_.S6(R.getDate(),Z));case "m":return CR(D),iZ(M,_.S6(D.getMinutes?D.getMinutes():0,Z));case "s":return CR(D),iZ(M,_.S6(D.getSeconds(),Z));case "v":return(N||fD(J.getTimezoneOffset())).timeZoneId_;
case "V":return M=N||fD(J.getTimezoneOffset()),Z<=2?M.timeZoneId_:oz2(M,J)>0?M.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?M.tzNamesExt_.STD_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return J=teu(D.getFullYear(),D.getMonth(),D.getDate(),M.JSC$11317_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$11317_dateTimeSymbols_.FIRSTDAYOFWEEK),iZ(M,_.S6(Math.floor(Math.round((J-(new Date((new Date(J)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Z));case "z":return M=N||fD(J.getTimezoneOffset()),Z<4?M.tzNames_[oz2(M,J)>0?2:0]:M.tzNames_[oz2(M,J)>0?3:1];case "Z":return z=N||fD(J.getTimezoneOffset()),Z<4?(Z=-XU$(z,J),M=[Z<0?"-":"+"],Z=Math.abs(Z),M.push(_.S6(Math.floor(Z/60)%100,2),_.S6(Z%60,2)),Z=M.join("")):Z=iZ(M,IE2(XU$(z,J))),Z;default:return""}};var x3t=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,tNV=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,HGp=function(M){this.patternParts_=[];this.JSC$11326_dateTimeSymbols_=Um;if(typeof M=="number"){M>11&&(M=10);if(M<4)var z=this.JSC$11326_dateTimeSymbols_.DATEFORMATS[M];else M<8?z=this.JSC$11326_dateTimeSymbols_.TIMEFORMATS[M-4]:(z=this.JSC$11326_dateTimeSymbols_.DATETIMEFORMATS[M-8],z=z.replace("{1}",this.JSC$11326_dateTimeSymbols_.DATEFORMATS[M-8]),z=z.replace("{0}",this.JSC$11326_dateTimeSymbols_.TIMEFORMATS[M-
8]));ju$(this,z)}else ju$(this,M)},ju$=function(M,z){for(var J=!1,R="",D=0;D<z.length;D++){var N=z.charAt(D);
if(x3t.test(N))for(R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R=""),M.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});D<z.length-1&&z.charAt(D+1)==" ";)D++;else if(J)N=="'"?D+1<z.length&&z.charAt(D+1)=="'"?(R+="'",D++):J=!1:R+=N;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(N)>=0){R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R="");for(var Z=z.charAt(D),B=D+1;B<z.length&&z.charAt(B)==Z;)B++;Z=B-D;Z<=0?B=!1:(B="MydhHmsSDkK".indexOf(N),
B=B>0||B==0&&Z<3);M.patternParts_.push({text:N,count:Z,abutStart:!1,numeric:B});D+=Z-1}else N=="'"?D+1<z.length&&z.charAt(D+1)=="'"?(R+="'",D++):J=!0:R+=N}R.length>0&&M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1});z=!1;for(J=0;J<M.patternParts_.length;J++)M.patternParts_[J].numeric?!z&&J+1<M.patternParts_.length&&M.patternParts_[J+1].numeric&&(z=!0,M.patternParts_[J].abutStart=!0):z=!1};
HGp.prototype.parse=function(M,z,J){var R=!1,D=!1;J&&(R=J.predictive||!1,D=J.validate||!1);if(R)for(J=0;J<this.patternParts_.length;J++){var N=this.patternParts_[J];if(N.count>0&&("abBhHkKm".indexOf(N.text.charAt(0))<0||N.count>2||N.abutStart))throw Error("Xd`"+N.text.charAt(0));}N=new pUV;J=[0];N.dayPeriodIndex=-1;for(var Z=0;Z<this.patternParts_.length&&!(R&&J[0]>=M.length);Z++){if(this.patternParts_[Z].count==0){a:{var B=M;var O=J,X=this.patternParts_[Z],l=R;if(X.text.match(x3t)!=null){if(X=O[0],
FxV(B,O),O[0]>X){B=!0;break a}}else{if(B.indexOf(X.text,O[0])==O[0]){O[0]+=X.text.length;B=!0;break a}if(l&&X.text.indexOf(B.substring(O[0]))==0){O[0]+=B.length-O[0];B=!0;break a}}B=!1}if(B)continue;return 0}if(this.patternParts_[Z].abutStart){a:{O=M;X=J;l=Z;var e=X[0],Q=0;for(B=l;B<this.patternParts_.length;B++){var v=this.patternParts_[B],x=v.count;if(x===0)break;if(B==l&&(x-=Q,Q++,x==0)){B=0;break a}var m=B>l&&v.numeric,y=X[0];if(!YV$(this,O,X,v,x,N,!1)||m&&X[0]-y<x)B=l-1,X[0]=e}B-=l}if(B<=0)return 0;
Z+=B-1}else if(!YV$(this,M,J,this.patternParts_[Z],0,N,R))return 0}a:{M=D;if(z==null)throw Error("Yd");N.era!=void 0&&N.year!=void 0&&N.era==0&&N.year>0&&(N.year=-(N.year-1));N.year!=void 0&&z.setFullYear(N.year);R=z.getDate();z.setDate(1);N.month!=void 0&&z.setMonth(N.month);N.day!=void 0?z.setDate(N.day):(D=B78(z.getFullYear(),z.getMonth()),z.setDate(R>D?D:R));typeof z.setHours==="function"&&(N.hours==void 0&&(N.hours=z.getHours()),N.hours<12&&(N.ampm!=void 0&&N.ampm>0?N.hours+=12:N.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(N.dayPeriodName)||["night1","night2"].includes(N.dayPeriodName)&&N.hours>=6)&&(N.hours+=12)),z.setHours(N.hours));typeof z.setMinutes==="function"&&N.minutes!=void 0&&z.setMinutes(N.minutes);typeof z.setSeconds==="function"&&N.seconds!=void 0&&z.setSeconds(N.seconds);typeof z.setMilliseconds==="function"&&N.milliseconds!=void 0&&z.setMilliseconds(N.milliseconds);if(M&&(N.year&&N.year!=z.getFullYear()||N.month&&N.month!=
z.getMonth()||N.day&&N.day!=z.getDate()||N.hours&&N.hours>=24||N.minutes&&N.minutes>=60||N.seconds&&N.seconds>=60||N.milliseconds&&N.milliseconds>=1E3))z=!1;else{N.tzOffset!=void 0&&z.setTime(z.getTime()+(N.tzOffset-z.getTimezoneOffset())*60*1E3);N.ambiguousYear&&(M=new Date,M.setFullYear(M.getFullYear()-80),z.getTime()<M.getTime()&&z.setFullYear(M.getFullYear()+100));if(N.dayOfWeek!=void 0)if(N.day==void 0)N=(7+N.dayOfWeek-z.getDay())%7,N>3&&(N-=7),M=z.getMonth(),z.setDate(z.getDate()+N),z.getMonth()!=
M&&z.setDate(z.getDate()+(N>0?-7:7));else if(N.dayOfWeek!=z.getDay()){z=!1;break a}z=!0}}return z?J[0]:0};
var YV$=function(M,z,J,R,D,N,Z){FxV(z,J);if(R.numeric&&D>0&&J[0]+D>z.length)return!1;switch(R.text.charAt(0)){case "G":return bZ(z,J,[M.JSC$11326_dateTimeSymbols_.ERAS],function(B){return N.era=B}),!0;
case "M":case "L":return m3$(M,z,J,D,R,N);case "E":return bZ(z,J,[M.JSC$11326_dateTimeSymbols_.WEEKDAYS,M.JSC$11326_dateTimeSymbols_.SHORTWEEKDAYS],function(B){return N.dayOfWeek=B});
case "B":case "b":return D=[],M=[[].concat(M.JSC$11326_dateTimeSymbols_.AMPMS)],D.push("isAm"),D.push("isPm"),z=bZ(z,J,M,function(B){return N.dayPeriodIndex=B},Z),N.dayPeriodName=D[N.dayPeriodIndex],Z?z:!0;
case "a":return z=bZ(z,J,[M.JSC$11326_dateTimeSymbols_.AMPMS],function(B){return N.ampm=B},Z),Z?z:!0;
case "y":return gz2(M,z,J,R,D,N);case "Q":return bZ(z,J,[M.JSC$11326_dateTimeSymbols_.QUARTERS,M.JSC$11326_dateTimeSymbols_.SHORTQUARTERS],function(B){N.month=B*3;N.day=1});
case "d":return rJ(M,z,J,R,D,function(B){N.day=B}),!0;
case "S":return suk(M,z,J,D,N);case "h":case "K":case "H":case "k":return z=rJ(M,z,J,R,D,function(B){N.hours=R.text.charAt(0)==="h"&&B===12?0:B},Z),Z?z:!0;
case "m":return z=rJ(M,z,J,R,D,function(B){N.minutes=B},Z),Z?z:!0;
case "s":return rJ(M,z,J,R,D,function(B){N.seconds=B}),!0;
case "z":case "Z":case "v":return nzt(M,z,J,N);default:return!1}},gz2=function(M,z,J,R,D,N){var Z=J[0];
D=M0(M,z,J,D);D===null&&(D=M0(M,z,J,0,!0));if(D===null)return!1;D>=0&&J[0]-Z==2&&R.count==2?(M=D,z=(new Date).getFullYear()-80,J=z%100,N.ambiguousYear=M==J,M+=Math.floor(z/100)*100+(M<J?100:0),N.year=M):N.year=D;return!0},m3$=function(M,z,J,R,D,N){return D.numeric&&rJ(M,z,J,D,R,function(Z){N.month=Z-1})?!0:bZ(z,J,[M.JSC$11326_dateTimeSymbols_.MONTHS,
M.JSC$11326_dateTimeSymbols_.STANDALONEMONTHS,M.JSC$11326_dateTimeSymbols_.SHORTMONTHS,M.JSC$11326_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Z){N.month=Z})},suk=function(M,z,J,R,D){var N=J[0];
M=M0(M,z,J,R);if(M===null)return!1;J=J[0]-N;D.milliseconds=J<3?M*Math.pow(10,3-J):Math.round(M/Math.pow(10,J-3));return!0},nzt=function(M,z,J,R){z.indexOf("GMT",J[0])==J[0]&&(J[0]+=3);
if(J[0]>=z.length)return R.tzOffset=0,!0;var D=J[0],N=M0(M,z,J,0,!0);if(N===null)return!1;if(J[0]<z.length&&z.charAt(J[0])==":"){var Z=N*60;J[0]++;N=M0(M,z,J,0);if(N===null)return!1;Z+=N}else Z=N,Z=Z<24&&J[0]-D<=3?Z*60:Z%100+Z/100*60;R.tzOffset=-Z;return!0},rJ=function(M,z,J,R,D,N,Z){Z=Z||!1;
var B=J[0];M=M0(M,z,J,D);if(M===null)return!1;if(Z&&J[0]-B<R.count){if(J[0]<z.length)return!1;M*=Math.pow(10,R.count-(J[0]-B))}N(M);return!0},bZ=function(M,z,J,R,D){D=D||!1;
for(var N,Z=0;Z<J.length;Z++){N=z;for(var B=J[Z],O=D,X=0,l=null,e=M.substring(N[0]).toLowerCase(),Q=0;Q<B.length;Q++){var v=B[Q].toLowerCase();if(O&&v.indexOf(e)==0){X=e.length;l=Q;break}B[Q].length>X&&e.indexOf(v)==0&&(X=B[Q].length,l=Q)}l!==null&&(N[0]+=X);N=l;if(N!==null)return R(N),!0}return!1},FxV=function(M,z){(M=M.substring(z[0]).match(tNV))&&(z[0]+=M[0].length)},M0=function(M,z,J,R,D){z=R>0?z.substring(0,J[0]+R):z;
D=D||!1;if(M.JSC$11326_dateTimeSymbols_.ZERODIGIT){R=[];for(var N=J[0];N<z.length;N++){var Z=z.charCodeAt(N)-M.JSC$11326_dateTimeSymbols_.ZERODIGIT;R.push(0<=Z&&Z<=9?String.fromCharCode(Z+48):z.charAt(N))}z=R.join("")}else z=z.substring(J[0]);M=z.match(new RegExp("^"+(D?"[+-]?":"")+"\\d+"));if(!M)return null;J[0]+=M[0].length;return parseInt(M[0],10)},pUV=function(){};
pUV.prototype.ambiguousYear=!1;_.hfk={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 yJ$={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"},HdJ=yJ$,cJu=yJ$;cJu=HdJ=yJ$;var Kxa,zd,Rw,Dlp,JT,d3V;
_.as=function(M,z,J,R){var D;if(D=z){a:if(z&&z.length===3){for(D=0;D<3;D++){var N=z[D];if(N<"A"||N>"Z"&&N<"a"||N>"z"){D=!1;break a}}D=!0}else D=!1;D=!D}if(D)throw new TypeError("Zd");this.intlCurrencyCode_=z?z.toUpperCase():null;this.currencyStyle_=J||0;this.overrideNumberFormatSymbols_=R||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_=zd(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof M==="number")switch(M){case 1:JT(this,zd(this).DECIMAL_PATTERN);break;case 2:JT(this,zd(this).SCIENTIFIC_PATTERN);break;case 3:JT(this,zd(this).PERCENT_PATTERN);break;case 4:M=zd(this).CURRENCY_PATTERN;z=["0"];if(J=
LR[Rw(this)]){J=J[0]&7;if(J>0)for(z.push("."),R=0;R<J;R++)z.push("0");M=M.replace(/0.00/g,z.join(""))}JT(this,M);break;case 5:d3V(this,1);break;case 6:d3V(this,2);break;default:throw Error("be");}else JT(this,M)};
Kxa=!1;zd=function(M){return M.overrideNumberFormatSymbols_||(Kxa?cJu:HdJ)};
Rw=function(M){return M.intlCurrencyCode_||zd(M).DEF_CURRENCY_CODE};
Dlp=function(M,z){if(z>308)throw Error("ae`"+z);M.maximumFractionDigits_=z;return M};
JT=function(M,z){var J=[0];M.positivePrefix_=$3J(M,z,J);for(var R=J[0],D=-1,N=0,Z=0,B=0,O=-1,X=z.length,l=!0;J[0]<X&&l;J[0]++)switch(z.charAt(J[0])){case "#":Z>0?B++:N++;O>=0&&D<0&&O++;break;case "0":if(B>0)throw Error("he`"+z);Z++;O>=0&&D<0&&O++;break;case ",":O>0&&M.groupingArray_.push(O);O=0;break;case ".":if(D>=0)throw Error("ie`"+z);D=N+Z+B;break;case "E":if(M.useExponentialNotation_)throw Error("je`"+z);M.useExponentialNotation_=!0;M.minExponentDigits_=0;J[0]+1<X&&z.charAt(J[0]+1)=="+"&&(J[0]++,
M.useSignForPositiveExponent_=!0);for(;J[0]+1<X&&z.charAt(J[0]+1)=="0";)J[0]++,M.minExponentDigits_++;if(N+Z<1||M.minExponentDigits_<1)throw Error("ke`"+z);l=!1;break;default:J[0]--,l=!1}Z==0&&N>0&&D>=0&&(Z=D,Z==0&&Z++,B=N-Z,N=Z-1,Z=1);if(D<0&&B>0||D>=0&&(D<N||D>N+Z)||O==0)throw Error("le`"+z);B=N+Z+B;M.maximumFractionDigits_=D>=0?B-D:0;D>=0&&(M.minimumFractionDigits_=N+Z-D,M.minimumFractionDigits_<0&&(M.minimumFractionDigits_=0));M.minimumIntegerDigits_=(D>=0?D:B)-N;M.useExponentialNotation_&&(M.maximumIntegerDigits_=
N+M.minimumIntegerDigits_,M.maximumFractionDigits_==0&&M.minimumIntegerDigits_==0&&(M.minimumIntegerDigits_=1));M.groupingArray_.push(Math.max(0,O));M.decimalSeparatorAlwaysShown_=D==0||D==B;R=J[0]-R;M.positiveSuffix_=$3J(M,z,J);J[0]<z.length&&z.charAt(J[0])==";"?(J[0]++,M.multiplier_!=1&&(M.negativePercentSignExpected_=!0),M.negativePrefix_=$3J(M,z,J),J[0]+=R,M.negativeSuffix_=$3J(M,z,J)):(M.negativePrefix_+=M.positivePrefix_,M.negativeSuffix_+=M.positiveSuffix_)};
d3V=function(M,z){M.compactStyle_=z;JT(M,zd(M).DECIMAL_PATTERN);M.minimumFractionDigits_=0;Dlp(M,2);if(M.minimumFractionDigits_>0)throw Error("$d");M.significantDigits_=2};
_.as.prototype.parse=function(M,z){z=z||[0];if(this.compactStyle_!==0)throw Error("ce");M=M.replace(/ |\u202f/g,"\u00a0");var J=M.indexOf(this.positivePrefix_,z[0])==z[0],R=M.indexOf(this.negativePrefix_,z[0])==z[0];J&&R&&(this.positivePrefix_.length>this.negativePrefix_.length?R=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(J=!1));J?z[0]+=this.positivePrefix_.length:R&&(z[0]+=this.negativePrefix_.length);if(M.indexOf(zd(this).INFINITY,z[0])==z[0]){z[0]+=zd(this).INFINITY.length;var D=
Infinity}else{D=M;var N=!1,Z=!1,B=!1,O=-1,X=1,l=zd(this).DECIMAL_SEP,e=zd(this).GROUP_SEP,Q=zd(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");e=e.replace(/\u202f/g,"\u00a0");for(var v="";z[0]<D.length;z[0]++){var x=D.charAt(z[0]),m=uw2(this,x);if(m>=0&&m<=9)v+=m,B=!0;else if(x==l.charAt(0)){if(N||Z)break;v+=".";N=!0}else if(x==e.charAt(0)&&("\u00a0"!=e.charAt(0)||z[0]+1<D.length&&uw2(this,D.charAt(z[0]+1))>=0)){if(N||Z)break}else if(x==Q.charAt(0)){if(Z)break;v+="E";Z=!0;O=z[0]}else if(x==
"+"||x=="-"){if(B&&O!=z[0]-1)break;v+=x}else if(this.multiplier_==1&&x==zd(this).PERCENT.charAt(0)){if(X!=1)break;X=100;if(B){z[0]++;break}}else if(this.multiplier_==1&&x==zd(this).PERMILL.charAt(0)){if(X!=1)break;X=1E3;if(B){z[0]++;break}}else break}this.multiplier_!=1&&(X=this.multiplier_);D=parseFloat(v)/X}if(J){if(M.indexOf(this.positiveSuffix_,z[0])!=z[0])return NaN;z[0]+=this.positiveSuffix_.length}else if(R){if(M.indexOf(this.negativeSuffix_,z[0])!=z[0])return NaN;z[0]+=this.negativeSuffix_.length}return R?
-D:D};
_.as.prototype.format=function(M){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(M))return zd(this).NAN;var z=[];var J=M;if(this.compactStyle_==0)J=Dp;else{J=Math.abs(J);var R=qVu(this,J<=1?0:WxQ(J)).divisorBase;J=qVu(this,R+WxQ(aE$(this,N0(J,-R)).intValue))}M=N0(M,-J.divisorBase);(R=M<0||M==0&&1/M<0)?J.negative_prefix?z.push(J.negative_prefix):(z.push(J.prefix),z.push(this.negativePrefix_)):(z.push(J.prefix),z.push(this.positivePrefix_));if(isFinite(M))if(M*=
R?-1:1,M*=this.multiplier_,this.useExponentialNotation_){var D=M;if(D==0)VNu(this,D,this.minimumIntegerDigits_,z),EzS(this,0,z);else{var N=Math.floor(Math.log(D)/Math.log(10)+2E-15);D=N0(D,-N);var Z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Z=N%this.maximumIntegerDigits_,Z<0&&(Z=this.maximumIntegerDigits_+Z),D=N0(D,Z),N-=Z,Z=1):this.minimumIntegerDigits_<1?(N++,D=N0(D,-1)):(N-=this.minimumIntegerDigits_-1,D=N0(D,this.minimumIntegerDigits_-
1));VNu(this,D,Z,z);EzS(this,N,z)}}else VNu(this,M,this.minimumIntegerDigits_,z);else z.push(zd(this).INFINITY);R?J.negative_suffix?z.push(J.negative_suffix):(isFinite(M)&&z.push(J.suffix),z.push(this.negativeSuffix_)):(isFinite(M)&&z.push(J.suffix),z.push(this.positiveSuffix_));return z.join("")};
var aE$=function(M,z){var J=N0(z,M.maximumFractionDigits_);M.significantDigits_>0&&(J=fE$(J,M.significantDigits_,M.maximumFractionDigits_));J=Math.round(J);if(isFinite(J)){var R=Math.floor(N0(J,-M.maximumFractionDigits_));J=Math.floor(J-N0(R,M.maximumFractionDigits_));if(J<0||J>=N0(1,M.maximumFractionDigits_))R=Math.round(z),J=0}else R=z,J=0;return{intValue:R,fracValue:J}},VNu=function(M,z,J,R){if(M.minimumFractionDigits_>M.maximumFractionDigits_)throw Error("ee");
R||(R=[]);z=aE$(M,z);var D=z.intValue,N=z.fracValue,Z=M.minimumFractionDigits_>0||N>0||!1;z=M.minimumFractionDigits_;Z&&(z=M.minimumFractionDigits_);for(var B="",O=D;O>1E20;)B="0"+B,O=Math.round(N0(O,-1));B=O+B;var X=zd(M).DECIMAL_SEP;O=zd(M).ZERO_DIGIT.codePointAt(0);var l=B.length,e=0;if(D>0||J>0){for(D=l;D<J;D++)R.push(String.fromCodePoint(O));if(M.groupingArray_.length>=2)for(J=1;J<M.groupingArray_.length;J++)e+=M.groupingArray_[J];J=l-e;if(J>0){D=M.groupingArray_;e=l=0;for(var Q,v=zd(M).GROUP_SEP,
x=B.length,m=0;m<x;m++)if(R.push(String.fromCodePoint(O+Number(B.charAt(m)))),x-m>1)if(Q=D[e],m<J){var y=J-m;(Q===1||Q>0&&y%Q===1)&&R.push(v)}else e<D.length&&(m===J?e+=1:Q===m-J-l+1&&(R.push(v),l+=Q,e+=1))}else{J=B;B=M.groupingArray_;D=zd(M).GROUP_SEP;Q=J.length;v=[];for(l=B.length-1;l>=0&&Q>0;l--){e=B[l];for(x=0;x<e&&Q-x-1>=0;x++)v.push(String.fromCodePoint(O+Number(J.charAt(Q-x-1))));Q-=e;Q>0&&v.push(D)}R.push.apply(R,v.reverse())}}else Z||R.push(String.fromCodePoint(O));(M.decimalSeparatorAlwaysShown_||
Z)&&R.push(X);N=String(N);Z=N.split("e+");Z.length==2&&(N=String(fE$(parseFloat(Z[0]),M.significantDigits_,1)),N=N.replace(".",""),N+=(0,_.Y8p)("0",parseInt(Z[1],10)-N.length+1));M.maximumFractionDigits_+1>N.length&&(N="1"+(0,_.Y8p)("0",M.maximumFractionDigits_-N.length)+N);for(M=N.length;N.charAt(M-1)=="0"&&M>z+1;)M--;for(z=1;z<M;z++)R.push(String.fromCodePoint(O+Number(N.charAt(z))))},EzS=function(M,z,J){J.push(zd(M).EXP_SYMBOL);
z<0?(z=-z,J.push(zd(M).MINUS_SIGN)):M.useSignForPositiveExponent_&&J.push(zd(M).PLUS_SIGN);z=""+z;for(var R=zd(M).ZERO_DIGIT,D=z.length;D<M.minExponentDigits_;D++)J.push(R);M=R.codePointAt(0)-LxB;for(R=0;R<z.length;R++)J.push(String.fromCodePoint(M+z.codePointAt(R)))},uw2=function(M,z){z=z.codePointAt(0);
if(48<=z&&z<58)return z-48;M=zd(M).ZERO_DIGIT.codePointAt(0);return M<=z&&z<M+10?z-M:-1},LxB="0".codePointAt(0),$3J=function(M,z,J){for(var R="",D=!1,N=z.length;J[0]<N;J[0]++){var Z=z.charAt(J[0]);
if(Z=="'")J[0]+1<N&&z.charAt(J[0]+1)=="'"?(J[0]++,R+="'"):D=!D;else if(D)R+=Z;else switch(Z){case "#":case "0":case ",":case ".":case ";":return R;case "\u00a4":if(J[0]+1<N&&z.charAt(J[0]+1)=="\u00a4")J[0]++,R+=Rw(M);else switch(M.currencyStyle_){case 0:Z=Rw(M);R+=Z in LR?LR[Z][1]:Z;break;case 2:Z=Rw(M);var B=LR[Z];R+=B?Z==B[1]?Z:Z+" "+B[1]:Z;break;case 1:Z=Rw(M),R+=Z in LR?LR[Z][2]:Z}break;case "%":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("fe");if(M.negativePercentSignExpected_&&
M.multiplier_!=100)throw Error("ge");M.multiplier_=100;M.negativePercentSignExpected_=!1;R+=zd(M).PERCENT;break;case "\u2030":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("fe");if(M.negativePercentSignExpected_&&M.multiplier_!=1E3)throw Error("ge");M.multiplier_=1E3;M.negativePercentSignExpected_=!1;R+=zd(M).PERMILL;break;default:R+=Z}}return R},Dp={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},qVu=function(M,z){M=M.compactStyle_==1?fR.COMPACT_DECIMAL_SHORT_PATTERN:fR.COMPACT_DECIMAL_LONG_PATTERN;M==null&&(M=fR.COMPACT_DECIMAL_SHORT_PATTERN);if(z<3)return Dp;z=Math.min(14,z);var J=M[N0(1,z)];for(--z;!J&&z>=3;)J=M[N0(1,z)],z--;if(!J)return Dp;J=J.other;var R=M="",D=J.indexOf(";");D>=0&&(J=J.substring(0,D),D=J.substring(D+1))&&(R=/([^0]*)(0+)(.*)/.exec(D),M=R[1],R=R[3]);return J&&J!="0"?(J=/([^0]*)(0+)(.*)/.exec(J))?{divisorBase:z+
1-(J[2].length-1),negative_prefix:M,negative_suffix:R,prefix:J[1],suffix:J[3]}:Dp:Dp},WxQ=function(M){if(!isFinite(M))return M>0?M:0;
for(var z=0;(M/=10)>=1;)z++;return z},N0=function(M,z){if(!M||!isFinite(M)||z==0)return M;
M=String(M).split("e");return parseFloat(M[0]+"e"+(parseInt(M[1]||0,10)+z))},AJS=function(M,z){return M&&isFinite(M)?N0(Math.round(N0(M,z)),-z):M},fE$=function(M,z,J){if(!M)return M;
z=z-WxQ(M)-1;return z<-J?AJS(M,-J):AJS(M,z)};var idv=function(M){return M%10==1&&M%100!=11?"one":M%10==2&&M%100!=12?"two":M%10==3&&M%100!=13?"few":"other"},Caa=idv;
Caa=idv;var bdV;bdV=function(M,z){var J=M|0;if(void 0===z){z=Math;var R=z.min,D=M+"",N=D.indexOf(".");z=R.call(z,N===-1?0:D.length-N-1,3)}R=Math.pow(10,z);M={v:z,f:(M*R|0)%R};return J==1&&M.v==0?"one":"other"};
_.AN=bdV;_.AN=bdV;var rJt,M5B,ztJ,RtQ,Df$;_.Jhg=function(M){this.JSC$11369_pattern_=M;this.parsedPattern_=this.literals_=this.initialLiterals_=null;M=HdJ;var z=fR;if(rJt!==M||M5B!==z)rJt=M,M5B=z,ztJ=new _.as(1);this.numberFormatter_=ztJ};
rJt=null;M5B=null;ztJ=null;RtQ=RegExp("'([{}#].*?)'","g");Df$=RegExp("''","g");
_.Jhg.prototype.format=function(M){if(this.JSC$11369_pattern_){this.initialLiterals_=[];var z=NvV(this,this.JSC$11369_pattern_);this.parsedPattern_=P5J(this,z);this.JSC$11369_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.uG(this.initialLiterals_),z=[],SUk(this,this.parsedPattern_,M,!1,z),M=z.join("");this.literals_.length>0;)M=M.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else M="";return M};
var SUk=function(M,z,J,R,D){for(var N=0;N<z.length;N++)switch(z[N].type){case 4:D.push(z[N].value);break;case 3:var Z=z[N].value;var B=M,O=D,X=J[Z];X===void 0?O.push("Undefined parameter - "+Z):(B.literals_.push(X),O.push(B.buildPlaceholder_(B.literals_)));break;case 2:Z=z[N].value;B=M;O=J;X=R;var l=D,e=Z.argumentIndex;O[e]===void 0?l.push("Undefined parameter - "+e):(e=Z[O[e]],e===void 0&&(e=Z.other),SUk(B,e,O,X,l));break;case 0:Z=z[N].value;Ze$(M,Z,J,_.AN,R,D);break;case 1:Z=z[N].value,Ze$(M,Z,
J,Caa,R,D)}},Ze$=function(M,z,J,R,D,N){var Z=z.argumentIndex,B=z.argumentOffset,O=+J[Z];
isNaN(O)?N.push("Undefined or invalid parameter - "+Z):(B=O-B,Z=z[J[Z]],Z===void 0&&(R=R(Math.abs(B)),Z=z[R],Z===void 0&&(Z=z.other)),z=[],SUk(M,Z,J,D,z),J=z.join(""),D?N.push(J):(M=M.numberFormatter_.format(B),N.push(J.replace(/#/g,M))))},NvV=function(M,z){var J=M.initialLiterals_,R=M.buildPlaceholder_.bind(M);
z=z.replace(Df$,function(){J.push("'");return R(J)});
return z=z.replace(RtQ,function(D,N){J.push(N);return R(J)})},kmV=function(M){var z=0,J=[],R=[],D=/[{}]/g;
D.lastIndex=0;for(var N;N=D.exec(M);){var Z=N.index;N[0]=="}"?(J.pop(),J.length==0&&(N={type:1},N.value=M.substring(z,Z),R.push(N),z=Z+1)):(J.length==0&&(z=M.substring(z,Z),z!=""&&R.push({type:0,value:z}),z=Z+1),J.push("{"))}M=M.substring(z);M!=""&&R.push({type:0,value:M});return R},Bvv=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,OeB=/^\s*(\w+)\s*,\s*selectordinal\s*,/,TvJ=/^\s*(\w+)\s*,\s*select\s*,/,P5J=function(M,z){var J=[];
z=kmV(z);for(var R=0;R<z.length;R++){var D={};if(0==z[R].type)D.type=4,D.value=z[R].value;else if(1==z[R].type){var N=z[R].value;switch(Bvv.test(N)?0:OeB.test(N)?1:TvJ.test(N)?2:/^\s*\w+\s*/.test(N)?3:5){case 2:D.type=2;D.value=Ifa(M,z[R].value);break;case 0:D.type=0;D.value=oSQ(M,z[R].value);break;case 1:D.type=1;D.value=X5Q(M,z[R].value);break;case 3:D.type=3,D.value=z[R].value}}J.push(D)}return J},Ifa=function(M,z){var J="";
z=z.replace(TvJ,function(B,O){J=O;return""});
var R={};R.argumentIndex=J;z=kmV(z);for(var D=0;D<z.length;){var N=z[D].value;D++;var Z=void 0;1==z[D].type&&(Z=P5J(M,z[D].value));R[N.replace(/\s/g,"")]=Z;D++}return R},oSQ=function(M,z){var J="",R=0;
z=z.replace(Bvv,function(O,X,l){J=X;l&&(R=parseInt(l,10));return""});
var D={};D.argumentIndex=J;D.argumentOffset=R;z=kmV(z);for(var N=0;N<z.length;){var Z=z[N].value;N++;var B=void 0;1==z[N].type&&(B=P5J(M,z[N].value));D[Z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=B;N++}return D},X5Q=function(M,z){var J="";
z=z.replace(OeB,function(B,O){J=O;return""});
var R={};R.argumentIndex=J;R.argumentOffset=0;z=kmV(z);for(var D=0;D<z.length;){var N=z[D].value;D++;var Z=void 0;1==z[D].type&&(Z=P5J(M,z[D].value));R[N.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Z;D++}return R};
_.Jhg.prototype.buildPlaceholder_=function(M){return"\ufddf_"+(M.length-1).toString(10)+"_"};var lfp;
lfp={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 n5H=function(){this.rdtfSymbols_=etp||lfp;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
n5H.prototype.format=function(M,z){a:{z=QE$(this,z);switch(this.style_){case 2:if(z.NARROW!=void 0){z=z.NARROW;break a}case 1:if(z.SHORT!=void 0){z=z.SHORT;break a}default:z=z.LONG;break a}z=void 0}if(!this.alwaysNumeric_&&z&&z.R&&z.R[""+M])M=z.R[""+M];else if(z){var J=Math.abs(M);M=(new _.Jhg("{N,plural,"+(M>0||M==0&&1/M==Infinity?z.F:z.P)+"}")).format({N:J})}else M="";return M};
var QE$=function(M,z){switch(z){default:case 0:return M.rdtfSymbols_.YEAR;case 1:return M.rdtfSymbols_.QUARTER;case 2:return M.rdtfSymbols_.MONTH;case 3:return M.rdtfSymbols_.WEEK;case 4:return M.rdtfSymbols_.DAY;case 5:return M.rdtfSymbols_.HOUR;case 6:return M.rdtfSymbols_.MINUTE;case 7:return M.rdtfSymbols_.SECOND}};var Ufu=function(M,z,J,R,D,N,Z,B){this.x0=M;this.y0=z;this.x1=J;this.y1=R;this.x2=D;this.y2=N;this.x3=Z;this.y3=B};
Ufu.prototype.clone=function(){return new Ufu(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Ufu.prototype.equals=function(M){return this.x0==M.x0&&this.y0==M.y0&&this.x1==M.x1&&this.y1==M.y1&&this.x2==M.x2&&this.y2==M.y2&&this.x3==M.x3&&this.y3==M.y3};
var vSv=function(M,z){if(z==0)return M.x0;if(z==1)return M.x3;var J=Fd(M.x0,M.x1,z),R=Fd(M.x1,M.x2,z);M=Fd(M.x2,M.x3,z);J=Fd(J,R,z);R=Fd(R,M,z);return Fd(J,R,z)},GmV=function(M,z){var J=(z-M.x0)/(M.x3-M.x0);
if(J<=0)return 0;if(J>=1)return 1;for(var R=0,D=1,N=0,Z=0;Z<8;Z++){N=vSv(M,J);var B=(vSv(M,J+1E-6)-N)/1E-6;if(Math.abs(N-z)<1E-6)return J;if(Math.abs(B)<1E-6)break;else N<z?R=J:D=J,J-=(N-z)/B}for(Z=0;Math.abs(N-z)>1E-6&&Z<8;Z++)N<z?(R=J,J=(J+D)/2):(D=J,J=(J+R)/2),N=vSv(M,J);return J};var Pw=function(){_.jB.call(this);this.JSC$11390_name_="closure_frame"+w5$++;this.iframesForDisposal_=[];xf$[this.JSC$11390_name_]=this},Sc;
_.ZP(Pw,_.jB);var xf$={},w5$=0,t5B=function(M,z){var J=vj(M);HqQ(z,function(R,D){Array.isArray(R)||(R=[R]);_.VU(R,function(N){N=J.JSC$9295_createDom("INPUT",{type:"hidden",name:D,value:N});M.appendChild(N)})})};
_.P=Pw.prototype;_.P.JSC$11392_form_=null;_.P.JSC$11392_iframe_=null;_.P.iframeName_=null;_.P.nextIframeId_=0;_.P.JSC$11392_active_=!1;_.P.complete_=!1;_.P.success_=!1;_.P.lastContent_=null;_.P.JSC$11392_lastErrorCode_=0;_.P.iframeDisposalTimer_=null;
_.P.send=function(M,z,J,R){if(this.JSC$11392_active_)throw Error("me");M=new _.iS(M);z=z?z.toUpperCase():"GET";J&&_.T5(M);Sc||(Sc=_.sc("FORM"),Sc.acceptCharset="utf-8",J=Sc.style,J.position="absolute",J.visibility="hidden",J.top=J.left="-10px",J.width=J.height="10px",J.overflow="hidden",document.body.appendChild(Sc));this.JSC$11392_form_=Sc;z=="GET"&&t5B(this.JSC$11392_form_,M.JSC$9998_queryData_);R&&t5B(this.JSC$11392_form_,R);J=M.toString();J=Vzw(J);R=this.JSC$11392_form_;J=_.c4(p3(J));J!==void 0&&
(R.action=J);this.JSC$11392_form_.method=z;jEv(this);p5$(this)};
_.P.abort=function(M){if(this.JSC$11392_active_){var z=Zp(this);if(z)if(ws(z))z.removeAllListeners(void 0);else if(z=xs(z)){var J=0,R;for(R in z.listeners)for(var D=z.listeners[R].concat(),N=0;N<D.length;++N)j5(D[N])&&++J}this.success_=this.JSC$11392_active_=this.complete_=!1;this.JSC$11392_lastErrorCode_=M||7;this.dispatchEvent("abort");FKk(this)}};
_.P.disposeInternal=function(){this.JSC$11392_active_&&this.abort();Pw.superClass_.disposeInternal.call(this);this.JSC$11392_iframe_&&YUV(this);p5$(this);this.JSC$11392_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11392_form_=null;this.JSC$11392_lastErrorCode_=0;delete xf$[this.JSC$11390_name_]};
_.P.isComplete=function(){return this.complete_};
_.P.isSuccess=function(){return this.success_};
_.P.isActive=function(){return this.JSC$11392_active_};
_.P.getResponseText=function(){return this.lastContent_};
_.P.getLastError=function(){return _.Iot(this.JSC$11392_lastErrorCode_)};
var jEv=function(M){M.JSC$11392_active_=!0;M.complete_=!1;M.JSC$11392_lastErrorCode_=0;M.iframeName_=M.JSC$11390_name_+"_"+(M.nextIframeId_++).toString(36);M.JSC$11392_iframe_=vj(M.JSC$11392_form_).JSC$9295_createDom("IFRAME",{name:M.iframeName_,id:M.iframeName_});var z=M.JSC$11392_iframe_.style;z.visibility="hidden";z.width=z.height="10px";z.display="none";_.oJ?z.marginTop=z.marginLeft="-10px":(z.position="absolute",z.top=z.left="-10px");vj(M.JSC$11392_form_).JSC$9293_document_.body.appendChild(M.JSC$11392_iframe_);
z=M.iframeName_+"_inner";var J=CJS(M.JSC$11392_iframe_);if(document.baseURI){var R=Bn(z);R='<head><base href="'+Bn(document.baseURI)+'"></head><body><iframe id="'+R+'" name="'+R+'"></iframe>';R=us(R)}else R=Bn(z),R=us('<body><iframe id="'+R+'" name="'+R+'"></iframe>');J.write(qE(R));_.YS(J.getElementById(z),"load",M.onIframeLoaded_,!1,M);R=Qs("TEXTAREA",M.JSC$11392_form_);for(var D=0,N=R.length;D<N;D++){var Z=R[D].value;RwB(R[D])!=Z&&(_.KQ(R[D],Z),R[D].value=Z)}R=J.importNode(M.JSC$11392_form_,!0);
R.target=z;R.action=M.JSC$11392_form_.action;J.body.appendChild(R);D=Qs("SELECT",M.JSC$11392_form_);N=Qs("SELECT",R);Z=0;for(var B=D.length;Z<B;Z++)for(var O=Qs("OPTION",D[Z]),X=Qs("OPTION",N[Z]),l=0,e=O.length;l<e;l++)X[l].selected=O[l].selected;D=Qs("INPUT",M.JSC$11392_form_);N=Qs("INPUT",R);Z=0;for(B=D.length;Z<B;Z++)if(D[Z].type=="file"&&D[Z].value!=N[Z].value){M.JSC$11392_form_.target=z;R=M.JSC$11392_form_;break}try{M.errorHandled_=!1,R.submit(),J.close(),_.IJ&&setTimeout(M.testForFirefoxSilentError_.bind(M),
250)}catch(Q){_.tQ(J.getElementById(z),"load",M.onIframeLoaded_,!1,M),J.close(),k7(M,2)}};
Pw.prototype.onIframeLoaded_=function(){_.tQ(Zp(this),"load",this.onIframeLoaded_,!1,this);try{var M=this.JSC$11392_iframe_?CJS(Zp(this)):null;this.complete_=!0;this.JSC$11392_active_=!1;try{var z=M.body;this.lastContent_=z.textContent||z.innerText}catch(D){var J=1}var R;J||typeof this.errorChecker_!="function"||(R=this.errorChecker_(M))&&(J=4);J?k7(this,J):(this.success_=!0,this.JSC$11392_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),FKk(this))}catch(D){k7(this,1)}};
var k7=function(M,z){M.errorHandled_||(M.success_=!1,M.JSC$11392_active_=!1,M.complete_=!0,M.JSC$11392_lastErrorCode_=z,M.dispatchEvent("complete"),M.dispatchEvent("error"),FKk(M),M.errorHandled_=!0)},FKk=function(M){YUV(M);
p5$(M);M.JSC$11392_form_=null;M.dispatchEvent("ready")},YUV=function(M){var z=M.JSC$11392_iframe_;
z&&(z.onreadystatechange=null,z.onload=null,z.onerror=null,M.iframesForDisposal_.push(z));M.iframeDisposalTimer_&&(clearTimeout(M.iframeDisposalTimer_),M.iframeDisposalTimer_=null);_.IJ?M.iframeDisposalTimer_=setTimeout(M.disposeIframes_.bind(M),2E3):M.disposeIframes_();M.JSC$11392_iframe_=null;M.iframeName_=null};
Pw.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var M=this.iframesForDisposal_.pop();_.eJ(M)}};
var p5$=function(M){M.JSC$11392_form_&&M.JSC$11392_form_==Sc&&_.yD(M.JSC$11392_form_)},Zp=function(M){return M.JSC$11392_iframe_?CJS(M.JSC$11392_iframe_).getElementById(M.iframeName_+"_inner"):null};
Pw.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11392_active_){var M=this.JSC$11392_iframe_?CJS(Zp(this)):null;M&&!wj0(M,"documentUri")?(_.tQ(Zp(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?k7(this,3):k7(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Bw=function(M){return M=="\r"||M=="\n"||M==" "||M=="\t"};var mf$;_.Ov=function(M){this.errorMessage_=null;this.result_=[];this.JSC$11394_buffer_="";this.stack_=[];this.JSC$11394_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!M||!M.deliverMessageAsRawString)};
mf$={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};_.Ov.prototype.isInputValid=function(){return this.streamState_!=3};
_.Ov.prototype.done=function(){return this.streamState_===2};
var Td=function(M,z,J){M.streamState_=3;M.errorMessage_="The stream is broken @"+M.JSC$11394_pos_+"/"+J+". With input:\n"+z;throw Error(M.errorMessage_);};
_.Ov.prototype.acceptsBinaryInput=function(){return!1};
_.Ov.prototype.parse=function(M){function z(){for(;Q<M.length;)if(_.Bw(M[Q]))Q++,N.JSC$11394_pos_++;else break;return Q<X}
function J(){for(var x;;){x=M[Q++];if(!x)break;N.JSC$11394_pos_++;switch(N.state_){case O.INIT:x==="{"?N.state_=O.OBJECT_OPEN:x==="["?N.state_=O.ARRAY_OPEN:_.Bw(x)||Td(N,M,Q);continue;case O.KEY_START:case O.OBJECT_OPEN:if(_.Bw(x))continue;if(N.state_===O.KEY_START)Z.push(O.KEY_END);else if(x==="}"){D("{}");N.state_=R();continue}else Z.push(O.OBJECT_END);x==='"'?N.state_=O.STRING:Td(N,M,Q);continue;case O.KEY_END:case O.OBJECT_END:if(_.Bw(x))continue;x===":"?(N.state_===O.OBJECT_END&&(Z.push(O.OBJECT_END),
N.depth_++),N.state_=O.VALUE):x==="}"?(N.depth_--,D(),N.state_=R()):x===","?(N.state_===O.OBJECT_END&&Z.push(O.OBJECT_END),N.state_=O.KEY_START):Td(N,M,Q);continue;case O.ARRAY_OPEN:case O.VALUE:if(_.Bw(x))continue;if(N.state_===O.ARRAY_OPEN)if(N.depth_++,N.state_=O.VALUE,x==="]"){N.depth_--;if(N.depth_===0){N.state_=O.ARRAY_END;return}D("[]");N.state_=R();continue}else Z.push(O.ARRAY_END);x==='"'?N.state_=O.STRING:x==="{"?N.state_=O.OBJECT_OPEN:x==="["?N.state_=O.ARRAY_OPEN:x==="t"?N.state_=O.TRUE1:
x==="f"?N.state_=O.FALSE1:x==="n"?N.state_=O.NULL1:x!=="-"&&("0123456789".indexOf(x)!==-1?N.state_=O.NUM_DIGIT:Td(N,M,Q));continue;case O.ARRAY_END:if(x===",")Z.push(O.ARRAY_END),N.state_=O.VALUE,N.depth_===1&&(e=Q);else if(x==="]"){N.depth_--;if(N.depth_===0)return;D();N.state_=R()}else if(_.Bw(x))continue;else Td(N,M,Q);continue;case O.STRING:var m=Q;a:for(;;){for(;N.unicodeCount_>0;)if(x=M[Q++],N.unicodeCount_===4?N.unicodeCount_=0:N.unicodeCount_++,!x)break a;if(x==='"'&&!N.slashed_){N.state_=
R();break}if(x==="\\"&&!N.slashed_&&(N.slashed_=!0,x=M[Q++],!x))break;if(N.slashed_)if(N.slashed_=!1,x==="u"&&(N.unicodeCount_=1),x=M[Q++])continue;else break;B.lastIndex=Q;x=B.exec(M);if(!x){Q=M.length+1;break}Q=x.index+1;x=M[x.index];if(!x)break}N.JSC$11394_pos_+=Q-m;continue;case O.TRUE1:if(!x)continue;x==="r"?N.state_=O.TRUE2:Td(N,M,Q);continue;case O.TRUE2:if(!x)continue;x==="u"?N.state_=O.TRUE3:Td(N,M,Q);continue;case O.TRUE3:if(!x)continue;x==="e"?N.state_=R():Td(N,M,Q);continue;case O.FALSE1:if(!x)continue;
x==="a"?N.state_=O.FALSE2:Td(N,M,Q);continue;case O.FALSE2:if(!x)continue;x==="l"?N.state_=O.FALSE3:Td(N,M,Q);continue;case O.FALSE3:if(!x)continue;x==="s"?N.state_=O.FALSE4:Td(N,M,Q);continue;case O.FALSE4:if(!x)continue;x==="e"?N.state_=R():Td(N,M,Q);continue;case O.NULL1:if(!x)continue;x==="u"?N.state_=O.NULL2:Td(N,M,Q);continue;case O.NULL2:if(!x)continue;x==="l"?N.state_=O.NULL3:Td(N,M,Q);continue;case O.NULL3:if(!x)continue;x==="l"?N.state_=R():Td(N,M,Q);continue;case O.NUM_DECIMAL_POINT:x===
"."?N.state_=O.NUM_DIGIT:Td(N,M,Q);continue;case O.NUM_DIGIT:if("0123456789.eE+-".indexOf(x)!==-1)continue;else Q--,N.JSC$11394_pos_--,N.state_=R();continue;default:Td(N,M,Q)}}}
function R(){var x=Z.pop();return x!=null?x:O.VALUE}
function D(x){N.depth_>1||(x||(x=e===-1?N.JSC$11394_buffer_+M.substring(l,Q):M.substring(e,Q)),N.deliverMessageAsRawString_?N.result_.push(x):N.result_.push(JSON.parse(x)),e=Q)}
for(var N=this,Z=N.stack_,B=N.stringInputPattern_,O=mf$,X=M.length,l=0,e=-1,Q=0;Q<X;)switch(N.streamState_){case 3:return Td(N,M,Q),null;case 2:return z()&&Td(N,M,Q),null;case 0:if(z()){var v=M[Q++];N.JSC$11394_pos_++;if(v==="["){N.streamState_=1;l=Q;N.state_=O.ARRAY_OPEN;continue}else Td(N,M,Q)}return null;case 1:return J(),N.depth_===0&&N.state_==O.ARRAY_END?(N.streamState_=2,N.JSC$11394_buffer_=M.substring(Q)):N.JSC$11394_buffer_=e===-1?N.JSC$11394_buffer_+M.substring(l):M.substring(e),N.result_.length>
0?(v=N.result_,N.result_=[],v):null}return null};_.ZP(_.ZQ,jz);kl.prototype.getValue=function(){return this.JSC$11402_value_};
kl.prototype.clone=function(){return new kl(this.JSC$11402_key_,this.JSC$11402_value_)};var Iw=function(M){this.nodes_=[];if(M)a:{if(M instanceof Iw){var z=M.getKeys();M=M.getValues();if(this.getCount()<=0){for(var J=this.nodes_,R=0;R<z.length;R++)J.push(new kl(z[R],M[R]));break a}}else z=_.gu.getKeys(M),M=_.gu.getValues(M);for(J=0;J<z.length;J++)this.insert(z[J],M[J])}};
_.P=Iw.prototype;_.P.insert=function(M,z){var J=this.nodes_;J.push(new kl(M,z));M=J.length-1;z=this.nodes_;for(J=z[M];M>0;){var R=M-1>>1;if(z[R].JSC$11402_key_>J.JSC$11402_key_)z[M]=z[R],M=R;else break}z[M]=J};
_.P.remove=function(){var M=this.nodes_,z=M.length,J=M[0];if(!(z<=0)){if(z==1)M.length=0;else{M[0]=M.pop();M=0;z=this.nodes_;for(var R=z.length,D=z[M];M<R>>1;){var N=M*2+1,Z=M*2+2;N=Z<R&&z[Z].JSC$11402_key_<z[N].JSC$11402_key_?Z:N;if(z[N].JSC$11402_key_>D.JSC$11402_key_)break;z[M]=z[N];M=N}z[M]=D}return J.getValue()}};
_.P.peek=function(){var M=this.nodes_;if(M.length!=0)return M[0].getValue()};
_.P.getValues=function(){for(var M=this.nodes_,z=[],J=M.length,R=0;R<J;R++)z.push(M[R].getValue());return z};
_.P.getKeys=function(){for(var M=this.nodes_,z=[],J=M.length,R=0;R<J;R++)z.push(M[R].JSC$11402_key_);return z};
_.P.containsValue=function(M){return this.nodes_.some(function(z){return z.getValue()==M})};
_.P.containsKey=function(M){return this.nodes_.some(function(z){return z.JSC$11402_key_==M})};
_.P.clone=function(){return new Iw(this)};
_.P.getCount=function(){return this.nodes_.length};
_.P.isEmpty=function(){return this.nodes_.length===0};
_.P.clear=function(){this.nodes_.length=0};_.ow=function(M,z){this.JSC$11408_map_={};this.JSC$11408_keys_=[];this.version_=this.size=0;var J=arguments.length;if(J>1){if(J%2)throw Error("ka");for(var R=0;R<J;R+=2)this.set(arguments[R],arguments[R+1])}else M&&this.addAll(M)};
_.P=_.ow.prototype;_.P.getCount=function(){return this.size};
_.P.getValues=function(){XG(this);for(var M=[],z=0;z<this.JSC$11408_keys_.length;z++)M.push(this.JSC$11408_map_[this.JSC$11408_keys_[z]]);return M};
_.P.getKeys=function(){XG(this);return this.JSC$11408_keys_.concat()};
_.P.containsKey=function(M){return this.has(M)};
_.P.has=function(M){return l$(this.JSC$11408_map_,M)};
_.P.containsValue=function(M){for(var z=0;z<this.JSC$11408_keys_.length;z++){var J=this.JSC$11408_keys_[z];if(l$(this.JSC$11408_map_,J)&&this.JSC$11408_map_[J]==M)return!0}return!1};
_.P.equals=function(M,z){if(this===M)return!0;if(this.size!=M.getCount())return!1;z=z||gS$;XG(this);for(var J,R=0;J=this.JSC$11408_keys_[R];R++)if(!z(this.get(J),M.get(J)))return!1;return!0};
var gS$=function(M,z){return M===z};
_.ow.prototype.isEmpty=function(){return this.size==0};
_.ow.prototype.clear=function(){this.JSC$11408_map_={};this.version_=this.size=this.JSC$11408_keys_.length=0};
_.ow.prototype.remove=function(M){return this.delete(M)};
_.ow.prototype.delete=function(M){return l$(this.JSC$11408_map_,M)?(delete this.JSC$11408_map_[M],--this.size,this.version_++,this.JSC$11408_keys_.length>2*this.size&&XG(this),!0):!1};
var XG=function(M){if(M.size!=M.JSC$11408_keys_.length){for(var z=0,J=0;z<M.JSC$11408_keys_.length;){var R=M.JSC$11408_keys_[z];l$(M.JSC$11408_map_,R)&&(M.JSC$11408_keys_[J++]=R);z++}M.JSC$11408_keys_.length=J}if(M.size!=M.JSC$11408_keys_.length){z={};for(R=J=0;J<M.JSC$11408_keys_.length;){var D=M.JSC$11408_keys_[J];l$(z,D)||(M.JSC$11408_keys_[R++]=D,z[D]=1);J++}M.JSC$11408_keys_.length=R}};
_.P=_.ow.prototype;_.P.get=function(M,z){return l$(this.JSC$11408_map_,M)?this.JSC$11408_map_[M]:z};
_.P.set=function(M,z){l$(this.JSC$11408_map_,M)||(this.size+=1,this.JSC$11408_keys_.push(M),this.version_++);this.JSC$11408_map_[M]=z};
_.P.addAll=function(M){if(M instanceof _.ow)for(var z=M.getKeys(),J=0;J<z.length;J++)this.set(z[J],M.get(z[J]));else for(z in M)this.set(z,M[z])};
_.P.forEach=function(M,z){for(var J=this.getKeys(),R=0;R<J.length;R++){var D=J[R],N=this.get(D);M.call(z,N,D,this)}};
_.P.clone=function(){return new _.ow(this)};
_.P.transpose=function(){for(var M=new _.ow,z=0;z<this.JSC$11408_keys_.length;z++){var J=this.JSC$11408_keys_[z];M.set(this.JSC$11408_map_[J],J)}return M};
_.P.keys=function(){return DSB(this.__iterator__(!0)).toEs6()};
_.P.values=function(){return DSB(this.__iterator__(!1)).toEs6()};
_.P.entries=function(){var M=this;return e8$(this.keys(),function(z){return[z,M.get(z)]})};
_.P.__iterator__=function(M){XG(this);var z=0,J=this.version_,R=this,D=new Oq;D.next=function(){if(J!=R.version_)throw Error("ne");if(z>=R.JSC$11408_keys_.length)return Ta;var N=R.JSC$11408_keys_[z++];return I_(M?N:R.JSC$11408_map_[N])};
return D};
var l$=function(M,z){return Object.prototype.hasOwnProperty.call(M,z)};var nSg=function(){this.JSC$11411_map_=new _.ow;this.JSC$11411_head_=new sEu("");this.JSC$11411_head_.next=this.JSC$11411_head_.prev=this.JSC$11411_head_},htS=function(M,z){if(z=M.JSC$11411_map_.get(z))z.remove(),M.insert_(z);
return z};
_.P=nSg.prototype;_.P.get=function(M,z){return(M=htS(this,M))?M.value:z};
_.P.set=function(M,z){var J=htS(this,M);J?J.value=z:(J=new sEu(M,z),this.JSC$11411_map_.set(M,J),this.insert_(J))};
_.P.peek=function(){return this.JSC$11411_head_.next.value};
_.P.shift=function(){return yhS(this,this.JSC$11411_head_.next)};
_.P.pop=function(){return yhS(this,this.JSC$11411_head_.prev)};
_.P.remove=function(M){return(M=this.JSC$11411_map_.get(M))?(this.removeNode(M),!0):!1};
_.P.removeNode=function(M){M.remove();this.JSC$11411_map_.remove(M.key)};
_.P.getCount=function(){return this.JSC$11411_map_.getCount()};
_.P.isEmpty=function(){return this.JSC$11411_map_.isEmpty()};
_.P.getKeys=function(){return this.map(function(M,z){return z})};
_.P.getValues=function(){return this.map(function(M){return M})};
_.P.contains=function(M){return this.some(function(z){return z==M})};
_.P.containsKey=function(M){return this.JSC$11411_map_.containsKey(M)};
_.P.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11411_head_.prev)};
_.P.forEach=function(M,z){for(var J=this.JSC$11411_head_.next;J!=this.JSC$11411_head_;J=J.next)M.call(z,J.value,J.key,this)};
_.P.map=function(M,z){for(var J=[],R=this.JSC$11411_head_.next;R!=this.JSC$11411_head_;R=R.next)J.push(M.call(z,R.value,R.key,this));return J};
_.P.some=function(M,z){for(var J=this.JSC$11411_head_.next;J!=this.JSC$11411_head_;J=J.next)if(M.call(z,J.value,J.key,this))return!0;return!1};
_.P.every=function(M,z){for(var J=this.JSC$11411_head_.next;J!=this.JSC$11411_head_;J=J.next)if(!M.call(z,J.value,J.key,this))return!1;return!0};
_.P.insert_=function(M){M.next=this.JSC$11411_head_.next;M.prev=this.JSC$11411_head_;this.JSC$11411_head_.next=M;for(M.next.prev=M;this.getCount()>100;)this.removeNode(this.JSC$11411_head_.prev)};
var yhS=function(M,z){M.JSC$11411_head_!=z&&M.removeNode(z);return z.value},sEu=function(M,z){this.key=M;
this.value=z};
sEu.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Hea=function(){Iw.apply(this,arguments)};
_.w(Hea,Iw);Hea.prototype.enqueue=function(M,z){this.insert(M,z)};var chS=function(){var M=Error();M.name="SecurityError";throw M;},p$p=function(){return{get opener(){return null},
get closed(){return!0},get location(){chS()},get document(){chS()},postMessage:function(){},
close:function(){},
focus:function(){}}};var gip={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 hIG={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 dfp={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(hIG).join("|");var KKv=function(){function M(B){B.substr(-1)!==";"&&(B+=";");return Z(B)}
for(var z=Object.keys(dfp).sort(nip),J=Object.keys(hIG).sort(nip),R=0,D=0;R<J.length;R++)z[D]===J[R]?(J[R]+=";?",D++):J[R]+=";";var N=new RegExp("&(?:"+J.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Z=yww();return function(B){return String(B).replace(N,M)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var $fS={};var uH2=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"),qUJ=/[\\&]/,WK$=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),afv=RegExp('[&<>"]',"g"),V5Q=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),ESV=function(M){return M.charCodeAt(0)===92?M.charAt(1):KKv(M)},ffa=function(M){return qUJ.test(M)?M.replace(WK$,ESV):M},LKa=function(M){try{var z,J="";
if(typeof D!=="string"){var R=D;var D=";/?:@&=+$,-_.!~*'()#"}typeof R==="undefined"&&(R=!0);var N,Z=$fS[D];if(Z)var B=Z;else{Z=$fS[D]=[];for(N=0;N<128;N++){var O=String.fromCharCode(N);/^[0-9a-z]$/i.test(O)?Z.push(O):Z.push("%"+("0"+N.toString(16).toUpperCase()).slice(-2))}for(N=0;N<D.length;N++)Z[D.charCodeAt(N)]=D[N];B=Z}var X=0;for(z=M.length;X<z;X++){var l=M.charCodeAt(X);if(R&&l===37&&X+2<z&&/^[0-9a-f]{2}$/i.test(M.slice(X+1,X+3)))J+=M.slice(X,X+3),X+=2;else if(l<128)J+=B[l];else if(l>=55296&&
l<=57343){if(l>=55296&&l<=56319&&X+1<z){var e=M.charCodeAt(X+1);if(e>=56320&&e<=57343){J+=encodeURIComponent(M[X]+M[X+1]);X++;continue}}J+="%EF%BF%BD"}else J+=encodeURIComponent(M[X])}return J}catch(Q){return M}},AhV=function(M){switch(M){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return M}},ec=function(M,z){return afv.test(M)?z?M.replace(V5Q,AhV):M.replace(afv,AhV):M};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var Qv;if(String.fromCodePoint)Qv=function(M){try{return String.fromCodePoint(M)}catch(z){if(z instanceof RangeError)return String.fromCharCode(65533);throw z;}};
else{var ieB=String.fromCharCode,C5g=Math.floor;Qv=function(){var M=[],z=-1,J=arguments.length;if(!J)return"";for(var R="";++z<J;){var D=Number(arguments[z]);if(!isFinite(D)||D<0||D>1114111||C5g(D)!==D)return String.fromCharCode(65533);if(D<=65535)M.push(D);else{D-=65536;var N=(D>>10)+55296;D=D%1024+56320;M.push(N,D)}if(z+1===J||M.length>16384)R+=ieB.apply(null,M),M.length=0}return R}};var beg=function(M){this.root=this.current=M;this.entering=!0};
beg.prototype.next=function(){var M=this.current,z=this.entering;if(M===null)return null;a:switch(M._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var J=!0;break a;default:J=!1}z&&J?M._firstChild?(this.current=M._firstChild,this.entering=!0):this.entering=!1:M===this.root?this.current=null:M._next===null?(this.current=
M._parent,this.entering=!1):(this.current=M._next,this.entering=!0);return{entering:z,node:M}};
var IT=function(M,z){this._type=M;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=z;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};
IT.prototype.appendChild=function(M){M.unlink();M._parent=this;this._lastChild?(this._lastChild._next=M,M._prev=this._lastChild):this._firstChild=M;this._lastChild=M};
IT.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 rh2=function(M,z){z.unlink();z._next=M._next;z._next&&(z._next._prev=z);z._prev=M;M._next=z;z._parent=M._parent;z._next||(z._parent._lastChild=z)};
IT.prototype.insertBefore=function(M){M.unlink();M._prev=this._prev;M._prev&&(M._prev._next=M);M._next=this;this._prev=M;M._parent=this._parent;M._prev||(M._parent._firstChild=M)};
_.rX.Object.defineProperties(IT.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(M){this._literal=M}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(M){this._destination=M}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(M){this._title=M}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(M){this._info=M}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(M){this._level=M}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(M){this._listData.type=M}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(M){this._listData.tight=M}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(M){this._listData.start=M}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(M){this._onEnter=M}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(M){this._onExit=M}}});var HQ8=/[ \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,
do8={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 Mhk=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]/),
zUQ=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),JMp=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),RUS=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),D7B=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),N4Q=/`+/,PPV=/^`+/,SNJ=/\.\.\./g,ZnB=/--+/g,kLk=/^<([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])?)*)>/,
B4a=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Onv=/^ *(?:\n *)?/,T4p=/^[ \t\n\x0b\x0c\x0d]/,IvQ=/[ \t\n\x0b\x0c\x0d]+/g,ong=/^\s/,XSQ=/ *$/,lv$=/^ */,eUa=/^ *(?:\n|$)/,Ql$=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),U7$=/^[^\n`\[\]\\!<&*_'"]+/m,Uv=function(M){var z=new IT("text");z._literal=M;return z},vw=function(M){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=M||{}};
vw.prototype.match=function(M){M=M.exec(this.subject.slice(this.pos));if(M===null)return null;this.pos+=M.index+M[0].length;return M[0]};
vw.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Gd=function(M){M.match(Onv);return!0},vn2=function(M,z,J){var R=0;
var D=M.pos;if(z===39||z===34)R++,M.pos++;else for(;M.peek()===z;)R++,M.pos++;if(R===0)R=null;else{var N=D===0?"\n":M.subject.charAt(D-1);var Z=M.peek();Z=Z===-1?"\n":Qv(Z);var B=ong.test(Z);Z=Mhk.test(Z);var O=ong.test(N);var X=Mhk.test(N);N=!B&&!(Z&&!O&&!X);B=!O&&!(X&&!B&&!Z);z===95?(O=N&&(!B||X),Z=B&&(!N||Z)):(O=z===39||z===34?N&&!B:N,Z=B);M.pos=D;R={numdelims:R,can_open:O,can_close:Z}}if(!R)return!1;D=R.numdelims;Z=M.pos;M.pos+=D;Z=z===39?"\u2019":z===34?"\u201c":M.subject.slice(Z,M.pos);Z=Uv(Z);
J.appendChild(Z);M.delimiters={cc:z,numdelims:D,origdelims:D,node:Z,previous:M.delimiters,next:null,can_open:R.can_open,can_close:R.can_close};M.delimiters.previous!==null&&(M.delimiters.previous.next=M.delimiters);return!0},GLv=function(M,z){z.previous!==null&&(z.previous.next=z.next);
z.next===null?M.delimiters=z.previous:z.next.previous=z.previous},wSa=function(M,z){var J,R,D=[],N=!1;
D[95]=z;D[42]=z;D[39]=z;D[34]=z;for(J=M.delimiters;J!==null&&J.previous!==z;)J=J.previous;for(;J!==null;){var Z=J.cc;if(J.can_close){var B=J.previous;for(R=!1;B!==null&&B!==z&&B!==D[Z];){N=(J.can_open||B.can_close)&&(B.origdelims+J.origdelims)%3===0;if(B.cc===J.cc&&B.can_open&&!N){R=!0;break}B=B.previous}var O=J;if(Z===42||Z===95)if(R){var X=J.numdelims>=2&&B.numdelims>=2?2:1;var l=B.node;var e=J.node;B.numdelims-=X;J.numdelims-=X;l._literal=l._literal.slice(0,l._literal.length-X);e._literal=e._literal.slice(0,
e._literal.length-X);var Q=new IT(X===1?"emph":"strong");for(X=l._next;X&&X!==e;){var v=X._next;X.unlink();Q.appendChild(X);X=v}rh2(l,Q);X=B;v=J;X.next!==v&&(X.next=v,v.previous=X);B.numdelims===0&&(l.unlink(),GLv(M,B));J.numdelims===0&&(e.unlink(),B=J.next,GLv(M,J),J=B)}else J=J.next;else Z===39?(J.node._literal="\u2019",R&&(B.node._literal="\u2018"),J=J.next):Z===34&&(J.node._literal="\u201d",R&&(B.node.literal="\u201c"),J=J.next);R||N||(D[Z]=O.previous,O.can_open||GLv(M,O))}else J=J.next}for(;M.delimiters!==
null&&M.delimiters!==z;)GLv(M,M.delimiters)},x7v=function(M){M=M.match(zUQ);
return M===null?null:ffa(M.substr(1,M.length-2))},th2=function(M){var z=M.match(JMp);
if(z===null){z=M.pos;for(var J=0,R;(R=M.peek())!==-1;)if(R===92)M.pos+=1,M.peek()!==-1&&(M.pos+=1);else if(R===40)M.pos+=1,J+=1;else if(R===41)if(J<1)break;else M.pos+=1,--J;else if(T4p.exec(Qv(R))!==null)break;else M.pos+=1;z=M.subject.substr(z,M.pos-z);return LKa(ffa(z))}return LKa(ffa(z.substr(1,z.length-2)))},jlv=function(M){M=M.match(Ql$);
return M===null||M.length>1001?0:M.length},pS$=function(M,z,J,R){M.brackets!==null&&(M.brackets.bracketAfter=!0);
M.brackets={node:z,previous:M.brackets,previousDelimiter:M.delimiters,index:J,image:R,active:!0}},FNJ=function(M,z){var J;
return(J=M.match(U7$))?(M.options.smart?z.appendChild(Uv(J.replace(SNJ,"\u2026").replace(ZnB,function(R){var D=0,N=0;R.length%3===0?N=R.length/3:R.length%2===0?D=R.length/2:R.length%3===2?(D=1,N=(R.length-2)/3):(D=2,N=(R.length-4)/3);R="";var Z;for(Z=0;Z<N;Z++)R+="\u2014";for(Z=0;Z<D;Z++)R+="\u2013";return R}))):z.appendChild(Uv(J)),!0):!1},YNu=function(M,z,J){M.subject=z;
M.pos=0;z=M.pos;var R=jlv(M);if(R===0)return 0;var D=M.subject.substr(0,R);if(M.peek()===58)M.pos++;else return M.pos=z,0;Gd(M);R=th2(M);if(R===null||R.length===0)return M.pos=z,0;var N=M.pos;Gd(M);var Z=x7v(M);Z===null&&(Z="",M.pos=N);var B=!0;M.match(eUa)===null&&(Z===""?B=!1:(Z="",M.pos=N,B=M.match(eUa)!==null));if(!B)return M.pos=z,0;D=Kcn(D);if(D==="")return M.pos=z,0;J[D]||(J[D]={destination:R,title:Z});return M.pos-z},m7k=function(M,z){var J,R=M.peek();
if(R===-1)return!1;switch(R){case 10:M.pos+=1;if((J=z._lastChild)&&J.type==="text"&&J._literal[J._literal.length-1]===" "){var D=J._literal[J._literal.length-2]===" ";J._literal=J._literal.replace(XSQ,"");z.appendChild(new IT(D?"linebreak":"softbreak"))}else z.appendChild(new IT("softbreak"));M.match(lv$);J=!0;break;case 92:J=M.subject;M.pos+=1;M.peek()===10?(M.pos+=1,J=new IT("linebreak"),z.appendChild(J)):RUS.test(J.charAt(M.pos))?(z.appendChild(Uv(J.charAt(M.pos))),M.pos+=1):z.appendChild(Uv("\\"));
J=!0;break;case 96:a:if(J=M.match(PPV),J===null)J=!1;else{D=M.pos;for(var N;(N=M.match(N4Q))!==null;)if(N===J){N=new IT("code");N._literal=M.subject.slice(D,M.pos-J.length).trim().replace(IvQ," ");z.appendChild(N);J=!0;break a}M.pos=D;z.appendChild(Uv(J));J=!0}break;case 42:case 95:J=vn2(M,R,z);break;case 39:case 34:J=M.options.smart&&vn2(M,R,z);break;case 91:J=M.pos;M.pos+=1;D=Uv("[");z.appendChild(D);pS$(M,D,J,!1);J=!0;break;case 33:J=M.pos;M.pos+=1;M.peek()===91?(M.pos+=1,D=Uv("!["),z.appendChild(D),
pS$(M,D,J+1,!0)):z.appendChild(Uv("!"));J=!0;break;case 93:var Z,B=!1,O;M.pos+=1;var X=M.pos;D=M.brackets;if(D===null)z.appendChild(Uv("]"));else if(D.active){J=D.image;var l=M.pos;M.peek()===40&&(M.pos++,Gd(M)&&(N=th2(M))!==null&&Gd(M)&&(T4p.test(M.subject.charAt(M.pos-1))&&(Z=x7v(M)),1)&&Gd(M)&&M.peek()===41?(M.pos+=1,B=!0):M.pos=l);if(!B){var e=M.pos,Q=jlv(M);Q>2?O=M.subject.slice(e,e+Q):D.bracketAfter||(O=M.subject.slice(D.index,X));Q===0&&(M.pos=l);O&&(O=M.refmap[Kcn(O)])&&(N=O.destination,Z=
O.title,B=!0)}if(B){X=new IT(J?"image":"link");X._destination=N;X._title=Z||"";for(N=D.node._next;N;)Z=N._next,N.unlink(),X.appendChild(N),N=Z;z.appendChild(X);wSa(M,D.previousDelimiter);M.brackets=M.brackets.previous;D.node.unlink();if(!J)for(D=M.brackets;D!==null;)D.image||(D.active=!1),D=D.previous}else M.brackets=M.brackets.previous,M.pos=X,z.appendChild(Uv("]"))}else z.appendChild(Uv("]")),M.brackets=M.brackets.previous;J=!0;break;case 60:(J=M.match(kLk))?(J=J.slice(1,J.length-1),D=new IT("link"),
D._destination=LKa("mailto:"+J),D._title="",D.appendChild(Uv(J)),z.appendChild(D),J=!0):(J=M.match(B4a))?(J=J.slice(1,J.length-1),D=new IT("link"),D._destination=LKa(J),D._title="",D.appendChild(Uv(J)),z.appendChild(D),J=!0):J=!1;J||(J=M.match(uH2),J===null?J=!1:(D=new IT("html_inline"),D._literal=J,z.appendChild(D),J=!0));break;case 38:(J=M.match(D7B))?(z.appendChild(Uv(KKv(J))),J=!0):J=!1;break;default:J=FNJ(M,z)}J||(M.pos+=1,z.appendChild(Uv(Qv(R))));return!0};
vw.prototype.parseInlines=function(M){this.subject=M._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;m7k(this,M););M._string_content=null;wSa(this,null)};
vw.prototype.parse=vw.prototype.parseInlines;var gnu=[/./,/^<(?: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")],slp=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],nnV=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,hUB=/^[#`~*+_=<>0-9-\|]|\|/,yM$=/[^ \t\f\v\r\n]/,Hng=/^[*+-]/,cMV=/^(\d{1,9})([.)])/,d7J=/^#{1,6}(?:[ \t]+|$)/,KNv=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,$7B=/^(?:`{3,}|~{3,})(?= *$)/,uYJ=/^(?:=+|-+)[ \t]*$/,qNu=/\r\n|\n|\r/,udY=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,qcp=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,WNa={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(M,z){for(M=z._firstChild;M;){if($op(M)&&M._next){z._listData.tight=!1;break}for(var J=M._firstChild;J;){if($op(J)&&(M._next||J._next)){z._listData.tight=!1;break}J=J._next}M=M._next}},
canContain:function(M){return M==="item"},
acceptsLines:!1},block_quote:{continue:function(M){var z=M.currentLine;if(M.indented||OK(z,M.nextNonspace)!==62)return 1;wL(M);x7(M,1,!1);Bs(OK(z,M.offset))&&x7(M,1,!0);return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},item:{continue:function(M,z){if(M.blank){if(z._firstChild==null)return 1;wL(M)}else if(M.indent>=z._listData.markerOffset+z._listData.padding)x7(M,z._listData.markerOffset+z._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(M){return M!=="item"&&!WcR(M)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(M,z){var J=M.currentLine,R=M.indent;if(z._isFenced){if((R=R<=3&&J.charAt(M.nextNonspace)===z._fenceChar&&J.slice(M.nextNonspace).match($7B))&&R[0].length>=z._fenceLength)return M.finalize(z,M.lineNumber),2;for(z=z._fenceOffset;z>0&&Bs(OK(J,M.offset));)x7(M,1,!0),z--}else if(R>=4)x7(M,4,!0);else if(M.blank)wL(M);else return 1;return 0},
finalize:function(M,z){if(z._isFenced){var J=z._string_content,R=J.indexOf("\n");M=J.slice(0,R);J=J.slice(R+1);z.info=ffa(M.trim());z._literal=J}else z._literal=z._string_content.replace(/(\n *)+$/,"\n");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(M,z){return!M.blank||z._htmlBlockType!==6&&z._htmlBlockType!==7?0:1},
finalize:function(M,z){z._literal=z._string_content.replace(/(\n *)+$/,"");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(M){return M.blank?1:0},
finalize:function(M,z){for(var J,R=!1;OK(z._string_content,0)===91&&(J=YNu(M.inlineParser,z._string_content,M.refmap));)z._string_content=z._string_content.slice(J),R=!0;R&&!yM$.test(z._string_content)&&z.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(M){return Ti(M.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(M){return M=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(M,z){if(!z._rowIsDelimiter){M=z._isHeader?"th":"td";for(var J=z._parent._tableColumns,R=z._string_content,D=0,N="",Z,B=z._sourcepos[0][0];D<R.length;){switch(R[D]){case "|":Z&&(Z._string_content=N.trim(),N="",Z=null,J--,J<=0&&(D=R.length));break;default:if(!Z){Z=new IT(M,[[B,D],[B,D]]);var O=z._parent._columnAlignment,X=z._parent._tableColumns-J;O&&X<=O.length&&X>=0&&(Z._alignment=O[X]);z.appendChild(Z)}N+=R[D];Z._sourcepos[1][1]=D}D++}Z&&(Z._string_content=N.trim());z._string_content=
""}},
canContain:function(M){return M!=="row"},
acceptsLines:!1}},avu=[function(M){if(M.indented||OK(M.currentLine,M.nextNonspace)!==62)return 0;wL(M);x7(M,1,!1);Bs(OK(M.currentLine,M.offset))&&x7(M,1,!0);tT(M);M.addChild("block_quote",M.nextNonspace);return 1},
function(M){var z;if(!M.indented&&(z=M.currentLine.slice(M.nextNonspace).match(d7J))){wL(M);x7(M,z[0].length,!1);tT(M);var J=M.addChild("heading",M.nextNonspace);J.level=z[0].trim().length;J._string_content=M.currentLine.slice(M.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");x7(M,M.currentLine.length-M.offset);return 2}return 0},
function(M){var z;if(!M.indented&&(z=M.currentLine.slice(M.nextNonspace).match(KNv))){var J=z[0].length;tT(M);var R=M.addChild("code_block",M.nextNonspace);R._isFenced=!0;R._fenceLength=J;R._fenceChar=z[0][0];R._fenceOffset=M.indent;wL(M);x7(M,J,!1);return 2}return 0},
function(M,z){if(!M.indented&&OK(M.currentLine,M.nextNonspace)===60){var J=M.currentLine.slice(M.nextNonspace),R;for(R=1;R<=7;R++)if(gnu[R].test(J)&&(R<7||z.type!=="paragraph"))return tT(M),M.addChild("html_block",M.offset)._htmlBlockType=R,2}return 0},
function(M,z){var J;if(!M.indented&&z.type==="paragraph"&&(J=M.currentLine.slice(M.nextNonspace).match(uYJ))){tT(M);var R=new IT("heading",z.sourcepos);R.level=J[0][0]==="="?1:2;R._string_content=z._string_content;rh2(z,R);z.unlink();M.tip=R;x7(M,M.currentLine.length-M.offset,!1);return 2}return 0},
function(M){return!M.indented&&nnV.test(M.currentLine.slice(M.nextNonspace))?(tT(M),M.addChild("thematic_break",M.nextNonspace),x7(M,M.currentLine.length-M.offset,!1),2):0},
function(M,z){var J,R;if(!(R=M.indented&&z.type!=="list")){a:{var D=z,N=M.currentLine.slice(M.nextNonspace);R={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:M.indent};if(J=N.match(Hng))R.type="bullet",R.bulletChar=J[0][0];else{if(!(J=N.match(cMV))||D.type==="paragraph"&&J[1]!=="1"){J=null;break a}R.type="ordered";R.start=parseInt(J[1],10);R.delimiter=J[2]}var Z=OK(M.currentLine,M.nextNonspace+J[0].length);if(Z!==-1&&Z!==9&&Z!==32||D.type==="paragraph"&&!M.currentLine.slice(M.nextNonspace+
J[0].length).match(yM$))J=null;else{wL(M);x7(M,J[0].length,!0);D=M.column;N=M.offset;do x7(M,1,!0),Z=OK(M.currentLine,M.offset);while(M.column-D<5&&Bs(Z));Z=OK(M.currentLine,M.offset)===-1;var B=M.column-D;B>=5||B<1||Z?(R.padding=J[0].length+1,M.column=D,M.offset=N,Bs(OK(M.currentLine,M.offset))&&x7(M,1,!0)):R.padding=J[0].length+B;J=R}}R=!J}if(R)return 0;tT(M);(R=M.tip.type!=="list")||(z=z._listData,R=!(z.type===J.type&&z.delimiter===J.delimiter&&z.bulletChar===J.bulletChar));R&&(z=M.addChild("list",
M.nextNonspace),z._listData=J);z=M.addChild("item",M.nextNonspace);z._listData=J;return 1},
function(M){var z;return((z=M.options.shouldParseIndentAsCodeBlock)!=null?z:1)&&M.indented&&M.tip.type!=="paragraph"&&!M.blank?(x7(M,4,!0),tT(M),M.addChild("code_block",M.offset),2):0},
function(M,z){var J=Ti(M.currentLine),R=Ti(M.lookahead);if(J!==0&&R<0&&Math.abs(J)==Math.abs(R)&&!WcR(z.type)){tT(M);z=M.addChild("table",M.nextNonspace);z._tableRows=1;z._tableColumns=Math.abs(J);J=M.lookahead;if(qcp.test(J)){R=[];for(var D=0,N=!1,Z=0,B=void 0;D<J.length;){var O=Z>=3;switch(J[D]){case "-":Z++;break;case "|":N&&(R.push(B),B=void 0,Z=0);N=!0;break;case ":":B||O||(B="left"),!B&&O&&(B="right"),B==="left"&&O&&(B="center")}D++}J=R}else J=void 0;z._columnAlignment=J;z=M.addChild("row",
M.nextNonspace);z._isHeader=!0;x7(M,M.currentLine.length-M.offset,!1);z._string_content=M.currentLine;return 1}return 0},
function(M,z){if(z.type=="table"&&Ti(M.currentLine)!==0){tT(M);var J=z;z=M.addChild("row",M.nextNonspace);Ti(M.currentLine)<0?z._rowIsDelimiter=!0:J._tableRows+=1;x7(M,M.currentLine.length-M.offset,!1);z._string_content=M.currentLine;return 2}return 0}],vLw=function(){var M={shouldParseIndentAsCodeBlock:!1};
M=M===void 0?{}:M;this.lastMatchedContainer=this.doc=akR();this.refmap={};this.lastLineLength=0;this.inlineParser=new vw(M);this.options=M;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=WNa;this.blockStarts=avu},Vha=function(M){M.partiallyConsumedTab&&(M.offset+=1,M.tip._string_content+=" ".repeat(4-M.column%
4));
M.tip._string_content+=M.currentLine.slice(M.offset)+"\n"};
vLw.prototype.addChild=function(M,z){for(;!this.blocks[this.tip.type].canContain(M);)this.finalize(this.tip,this.lineNumber-1);M=new IT(M,[[this.lineNumber,z+1],[0,0]]);M._string_content="";this.tip.appendChild(M);return this.tip=M};
var tT=function(M){if(!M.allClosed){for(;M.oldtip!==M.lastMatchedContainer;){var z=M.oldtip._parent;M.finalize(M.oldtip,M.lineNumber-1);M.oldtip=z}M.allClosed=!0}},x7=function(M,z,J){for(var R=M.currentLine,D,N;z>0&&(N=R[M.offset]);)N==="\t"?(D=4-M.column%4,J?(M.partiallyConsumedTab=D>z,D=D>z?z:D,M.column+=D,M.offset+=M.partiallyConsumedTab?0:1,z-=D):(M.partiallyConsumedTab=!1,M.column+=D,M.offset+=1,--z)):(M.partiallyConsumedTab=!1,M.offset+=1,M.column+=1,--z)},wL=function(M){M.offset=M.nextNonspace;
M.column=M.nextNonspaceColumn;M.partiallyConsumedTab=!1},Enp=function(M){for(var z=M.currentLine,J=M.offset,R=M.column,D;(D=z.charAt(J))!=="";)if(D===" ")J++,R++;
else if(D==="\t")J++,R+=4-R%4;else break;M.blank=D==="\n"||D==="\r"||D==="";M.nextNonspace=J;M.nextNonspaceColumn=R;M.indent=M.nextNonspaceColumn-M.column;M.indented=M.indent>=4};
vLw.prototype.finalize=function(M,z){var J=M._parent;M._open=!1;M.sourcepos[1]=[z,this.lastLineLength];this.blocks[M.type].finalize(this,M);this.tip=J};
vLw.prototype.parse=function(M){this.tip=this.doc=akR();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!M)return this.doc;this.options.time&&console.time("preparing input");var z=M.split(qNu),J=z.length;M.charCodeAt(M.length-1)===10&&--J;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(M=0;M<J;M++)a:{var R=void 0,D=z[M],N=z[M+1],Z=!0,B=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;D.indexOf("\x00")!==-1&&(D=D.replace(/\0/g,"\ufffd"));this.currentLine=D;for(this.lookahead=N;(R=B._lastChild)&&R._open;){B=R;Enp(this);switch(this.blocks[B.type].continue(this,B)){case 0:break;case 1:Z=!1;break;case 2:this.lastLineLength=D.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Z){B=B._parent;break}}this.allClosed=B===this.oldtip;this.lastMatchedContainer=
B;R=B.type!=="paragraph"&&WNa[B.type].acceptsLines;N=this.blockStarts;for(Z=N.length;!R;){Enp(this);if(!this.indented&&!hUB.test(D.slice(this.nextNonspace))){wL(this);break}for(var O=0;O<Z;){var X=N[O](this,B);if(X===1){B=this.tip;break}else if(X===2){B=this.tip;R=!0;break}else O++}if(O===Z){wL(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){tT(this);this.blank&&B.lastChild&&(B.lastChild._lastLineBlank=!0);R=B.type;N=this.blank&&!(R==="block_quote"||R==="code_block"&&B._isFenced||
R==="item"&&!B._firstChild&&B.sourcepos[0][0]===this.lineNumber);for(Z=B;Z;)Z._lastLineBlank=N,Z=Z._parent;this.blocks[R].acceptsLines?(Vha(this),R==="html_block"&&B._htmlBlockType>=1&&B._htmlBlockType<=5&&slp[B._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(B,this.lineNumber)):this.offset<D.length&&!this.blank&&(this.addChild("paragraph",this.offset),wL(this),Vha(this))}else Vha(this);this.lastLineLength=D.length}for(;this.tip;)this.finalize(this.tip,J);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");D=new beg(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;J=D.next();)z=J.node,M=z.type,J.entering||M!=="paragraph"&&M!=="heading"&&M!=="th"&&M!="td"||this.inlineParser.parse(z);this.options.time&&console.timeEnd("inline parsing");return this.doc};V6R.prototype.render=function(M){M=new beg(M);var z;this.buffer="";for(this.lastOut="\n";z=M.next();){var J=z.node.type;if(this[J])this[J](z.node,z.entering)}return this.buffer};
V6R.prototype.out=function(M){jc(this,M)};
var jc=function(M,z){M.buffer+=z;M.lastOut=z};
V6R.prototype.cr=function(){this.lastOut!=="\n"&&jc(this,"\n")};var fvS=/^javascript:|vbscript:|file:|data:/i,LNk=/^data:image\/(?:png|gif|jpeg|webp)/i,AMJ=function(M){return fvS.test(M)&&!LNk.test(M)};
oT.prototype=Object.create(V6R.prototype);_.P=oT.prototype;_.P.text=function(M){this.out(M.literal)};
_.P.html_inline=function(M){this.options.safe?jc(this,"\x3c!-- raw HTML omitted --\x3e"):jc(this,M.literal)};
_.P.html_block=function(M){this.cr();this.options.safe?jc(this,"\x3c!-- raw HTML omitted --\x3e"):jc(this,M.literal);this.cr()};
_.P.softbreak=function(){jc(this,this.options.softbreak)};
_.P.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.P.link=function(M,z){var J=this.attrs(M);z?(this.options.safe&&AMJ(M.destination)||J.push(["href",ec(M.destination,!0)]),M.title&&J.push(["title",ec(M.title,!0)]),this.tag("a",J)):this.tag("/a")};
_.P.image=function(M,z){z?(this.disableTags===0&&(this.options.safe&&AMJ(M.destination)?jc(this,'<img src="" alt="'):jc(this,'<img src="'+ec(M.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(M.title&&jc(this,'" title="'+ec(M.title,!0)),jc(this,'" />')))};
_.P.emph=function(M,z){this.tag(z?"em":"/em")};
_.P.strong=function(M,z){this.tag(z?"strong":"/strong")};
_.P.paragraph=function(M,z){var J=M.parent.parent;M=this.attrs(M);J!==null&&J.type==="list"&&J.listTight||(z?(this.cr(),this.tag("p",M)):(this.tag("/p"),this.cr()))};
_.P.heading=function(M,z){var J="h"+M.level;M=this.attrs(M);z?(this.cr(),this.tag(J,M)):(this.tag("/"+J),this.cr())};
_.P.code=function(M){this.tag("code");this.out(M.literal);this.tag("/code")};
_.P.code_block=function(M){var z=M.info?M.info.split(/\s+/):[],J=this.attrs(M);z.length>0&&z[0].length>0&&J.push(["class","language-"+ec(z[0],!0)]);this.cr();this.tag("pre");this.tag("code",J);this.out(M.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.P.thematic_break=function(M){M=this.attrs(M);this.cr();this.tag("hr",M,!0);this.cr()};
_.P.block_quote=function(M,z){M=this.attrs(M);z?(this.cr(),this.tag("blockquote",M)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.P.list=function(M,z){var J=M.listType==="bullet"?"ul":"ol",R=this.attrs(M);z?(M=M.listStart,M!==null&&M!==1&&R.push(["start",M.toString()]),this.cr(),this.tag(J,R)):(this.cr(),this.tag("/"+J));this.cr()};
_.P.item=function(M,z){M=this.attrs(M);z?this.tag("li",M):(this.tag("/li"),this.cr())};
_.P.custom_inline=function(M,z){z&&M.onEnter?jc(this,M.onEnter):!z&&M.onExit&&jc(this,M.onExit)};
_.P.custom_block=function(M,z){this.cr();z&&M.onEnter?jc(this,M.onEnter):!z&&M.onExit&&jc(this,M.onExit);this.cr()};
_.P.table=function(M,z){M=this.attrs(M);z?(this.cr(),this.tag("table",M)):(this.tag("/table"),this.cr())};
_.P.row=function(M,z){M._rowIsDelimiter||(M=this.attrs(M),z?this.tag("tr",M):this.tag("/tr"))};
_.P.td=function(M,z){var J=this.attrs(M);M._alignment&&J.push(["align",M._alignment]);z?this.tag("td",J):this.tag("/td")};
_.P.th=function(M,z){var J=this.attrs(M);M._alignment&&J.push(["align",M._alignment]);z?this.tag("th",J):this.tag("/th")};
_.P.out=function(M){jc(this,ec(M,!1))};
_.P.tag=function(M,z,J){if(!(this.disableTags>0)){this.buffer+="<"+M;if(z&&z.length>0){M=0;for(var R;(R=z[M])!==void 0;)this.buffer+=" "+R[0]+'="'+R[1]+'"',M++}J&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.P.attrs=function(M){var z=[];this.options.sourcepos&&(M=M.sourcepos)&&z.push(["data-sourcepos",String(M[0][0])+":"+String(M[0][1])+"-"+String(M[1][0])+":"+String(M[1][1])]);return z};
oT.prototype.text=oT.prototype.text;oT.prototype.html_inline=oT.prototype.html_inline;oT.prototype.html_block=oT.prototype.html_block;oT.prototype.softbreak=oT.prototype.softbreak;oT.prototype.linebreak=oT.prototype.linebreak;oT.prototype.link=oT.prototype.link;oT.prototype.image=oT.prototype.image;oT.prototype.emph=oT.prototype.emph;oT.prototype.strong=oT.prototype.strong;oT.prototype.paragraph=oT.prototype.paragraph;oT.prototype.heading=oT.prototype.heading;oT.prototype.code=oT.prototype.code;
oT.prototype.code_block=oT.prototype.code_block;oT.prototype.thematic_break=oT.prototype.thematic_break;oT.prototype.block_quote=oT.prototype.block_quote;oT.prototype.list=oT.prototype.list;oT.prototype.item=oT.prototype.item;oT.prototype.custom_inline=oT.prototype.custom_inline;oT.prototype.custom_block=oT.prototype.custom_block;oT.prototype.table=oT.prototype.table;oT.prototype.row=oT.prototype.row;oT.prototype.td=oT.prototype.td;oT.prototype.th=oT.prototype.th;oT.prototype.out=oT.prototype.out;
oT.prototype.tag=oT.prototype.tag;oT.prototype.attrs=oT.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 in$,CP$,toY;(function(){function M(h,n){return h<n?-1:h>n?1:h>=n?0:NaN}
function z(h){return function(n,K){return M(h(n),K)}}
function J(){for(var h=0,n=arguments.length,K={},r;h<n;++h){if(!(r=arguments[h]+"")||r in K)throw Error("pe`"+r);K[r]=[]}return new R(K)}
function R(h){this._=h}
function D(h,n){return h.trim().split(/^|\s+/).map(function(K){var r="",Zc=K.indexOf(".");Zc>=0&&(r=K.slice(Zc+1),K=K.slice(0,Zc));if(K&&!n.hasOwnProperty(K))throw Error("qe`"+K);return{type:K,name:r}})}
function N(h,n,K){for(var r=0,Zc=h.length;r<Zc;++r)if(h[r].name===n){h[r]=ROs;h=h.slice(0,r).concat(h.slice(r+1));break}K!=null&&h.push({name:n,value:K});return h}
function Z(h){var n=h,K=n.indexOf(":");K>=0&&(n=h.slice(0,K))!=="xmlns"&&(h=h.slice(K+1));return j3.hasOwnProperty(n)?{space:j3[n],local:h}:h}
function B(h){return function(){var n=this.ownerDocument,K=this.namespaceURI;return K==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(h):n.createElementNS(K,h)}}
function O(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function X(h){h=Z(h);return(h.local?O:B)(h)}
function l(){}
function e(h){return h==null?l:function(){return this.querySelector(h)}}
function Q(h){return Array(h.length)}
function v(h,n){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=n}
function x(h){return function(){return h}}
function m(h,n,K,r,Zc,ep){for(var xo=0,np,JS=n.length,Cp=ep.length;xo<Cp;++xo)(np=n[xo])?(np.__data__=ep[xo],r[xo]=np):K[xo]=new v(h,ep[xo]);for(;xo<JS;++xo)if(np=n[xo])Zc[xo]=np}
function y(h,n,K,r,Zc,ep,xo){var np,JS,Cp={},Rk=n.length,XQ=ep.length,AS=Array(Rk),jm;for(np=0;np<Rk;++np)if(JS=n[np])AS[np]=jm="$"+xo.call(JS,JS.__data__,np,n),jm in Cp?Zc[np]=JS:Cp[jm]=JS;for(np=0;np<XQ;++np)jm="$"+xo.call(h,ep[np],np,ep),(JS=Cp[jm])?(r[np]=JS,JS.__data__=ep[np],Cp[jm]=null):K[np]=new v(h,ep[np]);for(np=0;np<Rk;++np)(JS=n[np])&&Cp[AS[np]]===JS&&(Zc[np]=JS)}
function H(h,n){return h<n?-1:h>n?1:h>=n?0:NaN}
function q(h){return function(){this.removeAttribute(h)}}
function b(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function V(h,n){return function(){this.setAttribute(h,n)}}
function E(h,n){return function(){this.setAttributeNS(h.space,h.local,n)}}
function L(h,n){return function(){var K=n.apply(this,arguments);K==null?this.removeAttribute(h):this.setAttribute(h,K)}}
function z8(h,n){return function(){var K=n.apply(this,arguments);K==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,K)}}
function O8(h){return function(){this.style.removeProperty(h)}}
function I3(h,n,K){return function(){this.style.setProperty(h,n,K)}}
function vY(h,n,K){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(h):this.style.setProperty(h,r,K)}}
function te(h,n){return h.style.getPropertyValue(n)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(n)}
function wR(h){return function(){delete this[h]}}
function qb(h,n){return function(){this[h]=n}}
function cY(h,n){return function(){var K=n.apply(this,arguments);K==null?delete this[h]:this[h]=K}}
function Pu(){this.textContent=""}
function yV(h){return function(){this.textContent=h}}
function Ik(h){return function(){var n=h.apply(this,arguments);this.textContent=n==null?"":n}}
function rR(){this.innerHTML=""}
function ea(h){return function(){this.innerHTML=h}}
function ok(h){return function(){var n=h.apply(this,arguments);this.innerHTML=n==null?"":n}}
function s$(){return null}
function pw(){var h=this.parentNode;h&&h.removeChild(this)}
function iJ(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Nb(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function MB(h,n,K){h=vu(h,n,K);return function(r){var Zc=r.relatedTarget;Zc&&(Zc===this||Zc.compareDocumentPosition(this)&8)||h.call(this,r)}}
function vu(h,n,K){return function(){h.call(this,this.__data__,n,K)}}
function Tc(h){return h.trim().split(/^|\s+/).map(function(n){var K="",r=n.indexOf(".");r>=0&&(K=n.slice(r+1),n=n.slice(0,r));return{type:n,name:K}})}
function Gt(h){return function(){var n=this.__on;if(n){for(var K=0,r=-1,Zc=n.length,ep;K<Zc;++K)(ep=n[K],h.type&&ep.type!==h.type||ep.name!==h.name)?n[++r]=ep:this.removeEventListener(ep.type,ep.listener,ep.capture);++r?n.length=r:delete this.__on}}}
function zc(h,n,K){var r=hg$.hasOwnProperty(h.type)?MB:vu;return function(Zc,ep,xo){Zc=this.__on;var np;ep=r(n,ep,xo);if(Zc){xo=0;for(var JS=Zc.length;xo<JS;++xo)if((np=Zc[xo]).type===h.type&&np.name===h.name){this.removeEventListener(np.type,np.listener,np.capture);this.addEventListener(np.type,np.listener=ep,np.capture=K);np.value=n;return}}this.addEventListener(h.type,ep,K);np={type:h.type,name:h.name,value:n,listener:ep,capture:K};Zc?Zc.push(np):this.__on=[np]}}
function My(h,n,K){var r=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,Zc=r.CustomEvent;typeof Zc==="function"?Zc=new Zc(n,K):(Zc=r.document.createEvent("Event"),K?(Zc.initEvent(n,K.bubbles,K.cancelable),Zc.detail=K.detail):Zc.initEvent(n,!1,!1));h.dispatchEvent(Zc)}
function MN(h,n){return function(){return My(this,h,n)}}
function ZV(h,n){return function(){return My(this,h,n.apply(this,arguments))}}
function Lv(h,n){this._groups=h;this._parents=n}
function em(){return new Lv([[document.documentElement]],D0l)}
function FQ(){this._="@"+(++NLw).toString(36)}
function Yp(h,n,K){h.prototype=n.prototype=K;K.constructor=h}
function Gc(h,n){h=Object.create(h.prototype);for(var K in n)h[K]=n[K];return h}
function By(){}
function Xl(h){var n;h=(h+"").trim().toLowerCase();return(n=P$v.exec(h))?(n=parseInt(n[1],16),new Vu(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1)):(n=Svt.exec(h))?F3(parseInt(n[1],16)):(n=ZHc.exec(h))?new Vu(n[1],n[2],n[3],1):(n=kdm.exec(h))?new Vu(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=BLt.exec(h))?UF(n[1],n[2],n[3],n[4]):(n=OH5.exec(h))?UF(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=TL5.exec(h))?NH(n[1],n[2]/100,n[3]/100,1):(n=Ipv.exec(h))?NH(n[1],n[2]/100,n[3]/100,n[4]):ymB.hasOwnProperty(h)?
F3(ymB[h]):h==="transparent"?new Vu(NaN,NaN,NaN,0):null}
function F3(h){return new Vu(h>>16&255,h>>8&255,h&255,1)}
function UF(h,n,K,r){r<=0&&(h=n=K=NaN);return new Vu(h,n,K,r)}
function qB(h){h instanceof By||(h=Xl(h));if(!h)return new Vu;h=h.rgb();return new Vu(h.r,h.g,h.b,h.opacity)}
function Ht(h,n,K,r){return arguments.length===1?qB(h):new Vu(h,n,K,r==null?1:r)}
function Vu(h,n,K,r){this.r=+h;this.g=+n;this.b=+K;this.opacity=+r}
function Rr(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function NH(h,n,K,r){r<=0?h=n=K=NaN:K<=0||K>=1?h=n=NaN:n<=0&&(h=NaN);return new PW(h,n,K,r)}
function o$(h){if(h instanceof PW)return new PW(h.h,h.s,h.l,h.opacity);h instanceof By||(h=Xl(h));if(!h)return new PW;if(h instanceof PW)return h;h=h.rgb();var n=h.r/255,K=h.g/255,r=h.b/255,Zc=Math.min(n,K,r),ep=Math.max(n,K,r),xo=NaN,np=ep-Zc,JS=(ep+Zc)/2;np?(xo=n===ep?(K-r)/np+(K<r)*6:K===ep?(r-n)/np+2:(n-K)/np+4,np/=JS<.5?ep+Zc:2-ep-Zc,xo*=60):np=JS>0&&JS<1?0:xo;return new PW(xo,np,JS,h.opacity)}
function wc(h,n,K,r){return arguments.length===1?o$(h):new PW(h,n,K,r==null?1:r)}
function PW(h,n,K,r){this.h=+h;this.s=+n;this.l=+K;this.opacity=+r}
function dV(h,n,K){return(h<60?n+(K-n)*h/60:h<180?K:h<240?n+(K-n)*(240-h)/60:n)*255}
function CY(h){if(h instanceof Fn)return new Fn(h.l,h.a,h.b,h.opacity);if(h instanceof xp){if(isNaN(h.h))return new Fn(h.l,0,0,h.opacity);var n=h.h*HNu;return new Fn(h.l,Math.cos(n)*h.c,Math.sin(n)*h.c,h.opacity)}h instanceof Vu||(h=qB(h));var K=Iv(h.r),r=Iv(h.g),Zc=Iv(h.b);n=dR(.2225045*K+.7168786*r+.0606169*Zc);if(K===r&&r===Zc)var ep=K=n;else ep=dR((.4360747*K+.3850649*r+.1430804*Zc)/.96422),K=dR((.0139322*K+.0971045*r+.7141733*Zc)/.82521);return new Fn(116*n-16,500*(ep-n),200*(n-K),h.opacity)}
function Fn(h,n,K,r){this.l=+h;this.a=+n;this.b=+K;this.opacity=+r}
function dR(h){return h>o7l?Math.pow(h,1/3):h/cmt+dJa}
function VH(h){return h>CA?h*h*h:cmt*(h-dJa)}
function QV(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function Iv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function gi(h){if(h instanceof xp)return new xp(h.h,h.c,h.l,h.opacity);h instanceof Fn||(h=CY(h));if(h.a===0&&h.b===0)return new xp(NaN,0,h.l,h.opacity);var n=Math.atan2(h.b,h.a)*K9g;return new xp(n<0?n+360:n,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function ti(h,n,K,r){return arguments.length===1?gi(h):new xp(h,n,K,r==null?1:r)}
function xp(h,n,K,r){this.h=+h;this.c=+n;this.l=+K;this.opacity=+r}
function wg(h,n,K,r){if(arguments.length===1){var Zc=h;if(Zc instanceof yu)Zc=new yu(Zc.h,Zc.s,Zc.l,Zc.opacity);else{Zc instanceof Vu||(Zc=qB(Zc));var ep=Zc.g/255,xo=Zc.b/255,np=($JS*xo+Zc.r/255*-1.7884503806-3.5172982438*ep)/($JS+-1.7884503806-3.5172982438);xo-=np;var JS=(1.97294*(ep-np)- -.29227*xo)/-.90649;xo=(ep=Math.sqrt(JS*JS+xo*xo)/(1.97294*np*(1-np)))?Math.atan2(JS,xo)*K9g-120:NaN;Zc=new yu(xo<0?xo+360:xo,ep,np,Zc.opacity)}}else Zc=new yu(h,n,K,r==null?1:r);return Zc}
function yu(h,n,K,r){this.h=+h;this.s=+n;this.l=+K;this.opacity=+r}
function ls(h,n,K,r,Zc){var ep=h*h,xo=ep*h;return((1-3*h+3*ep-xo)*n+(4-6*ep+3*xo)*K+(1+3*h+3*ep-3*xo)*r+xo*Zc)/6}
function lJ(h){return function(){return h}}
function wu(h,n){return function(K){return h+K*n}}
function Na(h,n,K){return h=Math.pow(h,K),n=Math.pow(n,K)-h,K=1/K,function(r){return Math.pow(h+r*n,K)}}
function di(h,n){var K=n-h;return K?wu(h,K>180||K<-180?K-360*Math.round(K/360):K):lJ(isNaN(h)?n:h)}
function hP(h){return(h=+h)===1?mh:function(n,K){return K-n?Na(n,K,h):lJ(isNaN(n)?K:n)}}
function mh(h,n){var K=n-h;return K?wu(h,K):lJ(isNaN(h)?n:h)}
function Bf(h){return function(n){var K=n.length,r=Array(K),Zc=Array(K),ep=Array(K),xo;for(xo=0;xo<K;++xo){var np=Ht(n[xo]);r[xo]=np.r||0;Zc[xo]=np.g||0;ep[xo]=np.b||0}r=h(r);Zc=h(Zc);ep=h(ep);np.opacity=1;return function(JS){np.r=r(JS);np.g=Zc(JS);np.b=ep(JS);return np+""}}}
function Yr(h,n){return h=+h,n-=h,function(K){return h+n*K}}
function bN(h){return function(){return h}}
function f2(h){return function(n){return h(n)+""}}
function iG(h,n){var K=C_c.lastIndex=bZ8.lastIndex=0,r,Zc,ep,xo=-1,np=[],JS=[];h+="";for(n+="";(r=C_c.exec(h))&&(Zc=bZ8.exec(n));)(ep=Zc.index)>K&&(ep=n.slice(K,ep),np[xo]?np[xo]+=ep:np[++xo]=ep),(r=r[0])===(Zc=Zc[0])?np[xo]?np[xo]+=Zc:np[++xo]=Zc:(np[++xo]=null,JS.push({i:xo,x:Yr(r,Zc)})),K=bZ8.lastIndex;K<n.length&&(ep=n.slice(K),np[xo]?np[xo]+=ep:np[++xo]=ep);return np.length<2?JS[0]?f2(JS[0].x):bN(n):(n=JS.length,function(Cp){for(var Rk=0,XQ;Rk<n;++Rk)np[(XQ=JS[Rk]).i]=XQ.x(Cp);return np.join("")})}
function Qu(h,n,K,r,Zc,ep){var xo,np,JS;if(xo=Math.sqrt(h*h+n*n))h/=xo,n/=xo;if(JS=h*K+n*r)K-=h*JS,r-=n*JS;if(np=Math.sqrt(K*K+r*r))K/=np,r/=np,JS/=np;h*r<n*K&&(h=-h,n=-n,JS=-JS,xo=-xo);return{translateX:Zc,translateY:ep,rotate:Math.atan2(n,h)*uxk,skewX:Math.atan(JS)*uxk,scaleX:xo,scaleY:np}}
function Fl(h,n,K,r){function Zc(Cp){return Cp.length?Cp.pop()+" ":""}
function ep(Cp,Rk,XQ,AS,jm,Uw){Cp!==XQ||Rk!==AS?(jm=jm.push("translate(",null,n,null,K),Uw.push({i:jm-4,x:Yr(Cp,XQ)},{i:jm-2,x:Yr(Rk,AS)})):(XQ||AS)&&jm.push("translate("+XQ+n+AS+K)}
function xo(Cp,Rk,XQ,AS){Cp!==Rk?(Cp-Rk>180?Rk+=360:Rk-Cp>180&&(Cp+=360),AS.push({i:XQ.push(Zc(XQ)+"rotate(",null,r)-2,x:Yr(Cp,Rk)})):Rk&&XQ.push(Zc(XQ)+"rotate("+Rk+r)}
function np(Cp,Rk,XQ,AS){Cp!==Rk?AS.push({i:XQ.push(Zc(XQ)+"skewX(",null,r)-2,x:Yr(Cp,Rk)}):Rk&&XQ.push(Zc(XQ)+"skewX("+Rk+r)}
function JS(Cp,Rk,XQ,AS,jm,Uw){Cp!==XQ||Rk!==AS?(jm=jm.push(Zc(jm)+"scale(",null,",",null,")"),Uw.push({i:jm-4,x:Yr(Cp,XQ)},{i:jm-2,x:Yr(Rk,AS)})):XQ===1&&AS===1||jm.push(Zc(jm)+"scale("+XQ+","+AS+")")}
return function(Cp,Rk){var XQ=[],AS=[];Cp=h(Cp);Rk=h(Rk);ep(Cp.translateX,Cp.translateY,Rk.translateX,Rk.translateY,XQ,AS);xo(Cp.rotate,Rk.rotate,XQ,AS);np(Cp.skewX,Rk.skewX,XQ,AS);JS(Cp.scaleX,Cp.scaleY,Rk.scaleX,Rk.scaleY,XQ,AS);Cp=Rk=null;return function(jm){for(var Uw=-1,uY=AS.length,wV;++Uw<uY;)XQ[(wV=AS[Uw]).i]=wV.x(jm);return XQ.join("")}}}
function Sm(h){return function(n,K){var r=h((n=wc(n)).h,(K=wc(K)).h),Zc=mh(n.s,K.s),ep=mh(n.l,K.l),xo=mh(n.opacity,K.opacity);return function(np){n.h=r(np);n.s=Zc(np);n.l=ep(np);n.opacity=xo(np);return n+""}}}
function kr(h){return function(n,K){var r=h((n=ti(n)).h,(K=ti(K)).h),Zc=mh(n.c,K.c),ep=mh(n.l,K.l),xo=mh(n.opacity,K.opacity);return function(np){n.h=r(np);n.c=Zc(np);n.l=ep(np);n.opacity=xo(np);return n+""}}}
function VW(h){return function r(K){function Zc(ep,xo){var np=h((ep=wg(ep)).h,(xo=wg(xo)).h),JS=mh(ep.s,xo.s),Cp=mh(ep.l,xo.l),Rk=mh(ep.opacity,xo.opacity);return function(XQ){ep.h=np(XQ);ep.s=JS(XQ);ep.l=Cp(Math.pow(XQ,K));ep.opacity=Rk(XQ);return ep+""}}
K=+K;Zc.gamma=r;return Zc}(1)}
function ys(){return mm||(qbk(Ke),mm=IC.now()+eVp)}
function Ke(){mm=0}
function eF(){this._call=this._time=this._next=null}
function kL(h,n,K){var r=new eF;r.restart(h,n,K);return r}
function Bz(){mm=(Qb8=IC.now())+eVp;br=oC=0;try{ys();++br;for(var h=UCp,n;h;)(n=mm-h._time)>=0&&h._call.call(null,n),h=h._next;--br}finally{br=0;h=UCp;for(var K=Infinity;h;)if(h._call){K>h._time&&(K=h._time);var r=h;h=h._next}else n=h._next,h._next=null,h=r?r._next=n:UCp=n;X5=r;Oi(K);mm=0}}
function cwY(){var h=IC.now(),n=h-Qb8;n>1E3&&(eVp-=n,Qb8=h)}
function Oi(h){br||(oC&&(oC=clearTimeout(oC)),h-mm>24?(h<Infinity&&(oC=setTimeout(Bz,h-IC.now()-eVp)),lz&&(lz=clearInterval(lz))):(lz||(Qb8=IC.now(),lz=setInterval(cwY,1E3)),br=1,qbk(Bz)))}
function W9u(h,n,K){var r=new eF;n=n==null?0:+n;r.restart(function(Zc){r.stop();h(Zc+n)},n,K);
return r}
function rEw(h,n,K,r,Zc,ep){var xo=h.__transition;if(!xo)h.__transition={};else if(K in xo)return;Xwm(h,K,{name:n,index:r,group:Zc,on:lpG,tween:eOl,time:ep.time,delay:ep.delay,duration:ep.duration,ease:ep.ease,timer:null,state:0})}
function Mu3(h,n){h=lF(h,n);if(h.state>0)throw Error("re");return h}
function g2(h,n){h=lF(h,n);if(h.state>2)throw Error("se");return h}
function lF(h,n){h=h.__transition;if(!h||!(h=h[n]))throw Error("te");return h}
function Xwm(h,n,K){function r(JS){var Cp,Rk;if(K.state!==1)return ep();for(AS in xo){var XQ=xo[AS];if(XQ.name===K.name){if(XQ.state===3)return W9u(r);XQ.state===4?(XQ.state=6,XQ.timer.stop(),XQ.on.call("interrupt",h,h.__data__,XQ.index,XQ.group),delete xo[AS]):+AS<n&&(XQ.state=6,XQ.timer.stop(),delete xo[AS])}}W9u(function(){K.state===3&&(K.state=4,K.timer.restart(Zc,K.delay,K.time),Zc(JS))});
K.state=2;K.on.call("start",h,h.__data__,K.index,K.group);if(K.state===2){K.state=3;np=Array(Rk=K.tween.length);var AS=0;for(Cp=-1;AS<Rk;++AS)if(XQ=K.tween[AS].value.call(h,h.__data__,K.index,K.group))np[++Cp]=XQ;np.length=Cp+1}}
function Zc(JS){JS=JS<K.duration?K.ease.call(null,JS/K.duration):(K.timer.restart(ep),K.state=5,1);for(var Cp=-1,Rk=np.length;++Cp<Rk;)np[Cp].call(null,JS);K.state===5&&(K.on.call("end",h,h.__data__,K.index,K.group),ep())}
function ep(){K.state=6;K.timer.stop();delete xo[n];for(var JS in xo)return;delete h.__transition}
var xo=h.__transition,np;xo[n]=K;K.timer=kL(function(JS){K.state=1;K.timer.restart(r,K.delay,K.time);K.delay<=JS&&r(JS-K.delay)},0,K.time)}
function QwN(h,n){var K,r;return function(){var Zc=g2(this,h),ep=Zc.tween;if(ep!==K){r=K=ep;ep=0;for(var xo=r.length;ep<xo;++ep)if(r[ep].name===n){r=r.slice();r.splice(ep,1);break}}Zc.tween=r}}
function U0t(h,n,K){var r,Zc;if(typeof K!=="function")throw Error();return function(){var ep=g2(this,h),xo=ep.tween;if(xo!==r){Zc=(r=xo).slice();xo={name:n,value:K};for(var np=0,JS=Zc.length;np<JS;++np)if(Zc[np].name===n){Zc[np]=xo;break}np===JS&&Zc.push(xo)}ep.tween=Zc}}
function z1p(h,n,K){var r=h._id;h.each(function(){var Zc=g2(this,r);(Zc.value||(Zc.value={}))[n]=K.apply(this,arguments)});
return function(Zc){return lF(Zc,r).value[n]}}
function aua(h,n){var K;return(typeof n==="number"?Yr:n instanceof Xl?Vxt:(K=Xl(n))?(n=K,Vxt):iG)(h,n)}
function v7m(h){return function(){this.removeAttribute(h)}}
function Gdt(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function wwd(h,n,K){var r,Zc;return function(){var ep=this.getAttribute(h);return ep===K?null:ep===r?Zc:Zc=n(r=ep,K)}}
function x0v(h,n,K){var r,Zc;return function(){var ep=this.getAttributeNS(h.space,h.local);return ep===K?null:ep===r?Zc:Zc=n(r=ep,K)}}
function tci(h,n,K){var r,Zc,ep;return function(){var xo=K(this);if(xo==null)return void this.removeAttribute(h);var np=this.getAttribute(h);return np===xo?null:np===r&&xo===Zc?ep:ep=n(r=np,Zc=xo)}}
function jwu(h,n,K){var r,Zc,ep;return function(){var xo=K(this);if(xo==null)return void this.removeAttributeNS(h.space,h.local);var np=this.getAttributeNS(h.space,h.local);return np===xo?null:np===r&&xo===Zc?ep:ep=n(r=np,Zc=xo)}}
function pwv(h,n){function K(){var r=this,Zc=n.apply(r,arguments);return Zc&&function(ep){r.setAttributeNS(h.space,h.local,Zc(ep))}}
K._value=n;return K}
function FTw(h,n){function K(){var r=this,Zc=n.apply(r,arguments);return Zc&&function(ep){r.setAttribute(h,Zc(ep))}}
K._value=n;return K}
function Yvw(h,n){return function(){Mu3(this,h).delay=+n.apply(this,arguments)}}
function m0w(h,n){return n=+n,function(){Mu3(this,h).delay=n}}
function g7w(h,n){return function(){g2(this,h).duration=+n.apply(this,arguments)}}
function swN(h,n){return n=+n,function(){g2(this,h).duration=n}}
function n7d(h,n){if(typeof n!=="function")throw Error();return function(){g2(this,h).ease=n}}
function hOw(h){return(h+"").trim().split(/^|\s+/).every(function(n){var K=n.indexOf(".");K>=0&&(n=n.slice(0,K));return!n||n==="start"})}
function yTG(h,n,K){var r,Zc,ep=hOw(n)?Mu3:g2;return function(){var xo=ep(this,h),np=xo.on;if(np!==r)(Zc=(r=np).copy()).on(n,K);xo.on=Zc}}
function HHc(h){return function(){var n=this.parentNode,K;for(K in this.__transition)if(+K!==h)return;n&&n.removeChild(this)}}
function cTG(h,n){var K,r,Zc;return function(){var ep=te(this,h),xo=(this.style.removeProperty(h),te(this,h));return ep===xo?null:ep===K&&xo===r?Zc:Zc=n(K=ep,r=xo)}}
function d0c(h){return function(){this.style.removeProperty(h)}}
function KTN(h,n,K){var r,Zc;return function(){var ep=te(this,h);return ep===K?null:ep===r?Zc:Zc=n(r=ep,K)}}
function $0c(h,n,K){var r,Zc,ep;return function(){var xo=te(this,h),np=K(this);np==null&&(np=(this.style.removeProperty(h),te(this,h)));return xo===np?null:xo===r&&np===Zc?ep:ep=n(r=xo,Zc=np)}}
function uGc(h,n,K){function r(){var Zc=this,ep=n.apply(Zc,arguments);return ep&&function(xo){Zc.style.setProperty(h,ep(xo),K)}}
r._value=n;return r}
function qvv(h){return function(){this.textContent=h}}
function WTl(h){return function(){var n=h(this);this.textContent=n==null?"":n}}
function yn(h,n,K,r){this._groups=h;this._parents=n;this._name=K;this._id=r}
function JsH(h){return{type:h}}
function R1Y(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function vNp(){}
function E9t(h,n){var K=new vNp;if(h instanceof vNp)h.each(function(xo,np){K.set(np,xo)});
else if(Array.isArray(h)){var r=-1,Zc=h.length,ep;if(n==null)for(;++r<Zc;)K.set(r,h[r]);else for(;++r<Zc;)K.set(n(ep=h[r],r,h),ep)}else if(h)for(r in h)K.set(r,h[r]);return K}
function Gwp(){}
function fup(h){return function(n){for(var K={},r=0;r<h.length;r++)K[h[r]]=n[r]||"";return K}}
function apw(h,n){var K=fup(h);return function(r,Zc){return n(K(r),Zc,h)}}
function Vcs(h){var n=Object.create(null),K=[];h.forEach(function(r){for(var Zc in r)Zc in n||K.push(n[Zc]=Zc)});
return K}
function L9J(h){function n(xo,np){function JS(){if(Uw)return DKH;if(uY)return uY=!1,Amv;var cb,Kq=XQ,Sg;if(xo.charCodeAt(Kq)===34){for(;XQ++<Rk&&xo.charCodeAt(XQ)!==34||xo.charCodeAt(++XQ)===34;);(cb=XQ)>=Rk?Uw=!0:(Sg=xo.charCodeAt(XQ++))===10?uY=!0:Sg===13&&(uY=!0,xo.charCodeAt(XQ)===10&&++XQ);return xo.slice(Kq+1,cb-1).replace(/""/g,'"')}for(;XQ<Rk;){if((Sg=xo.charCodeAt(cb=XQ++))===10)uY=!0;else if(Sg===13)uY=!0,xo.charCodeAt(XQ)===10&&++XQ;else if(Sg!==ep)continue;return xo.slice(Kq,cb)}return Uw=
!0,xo.slice(Kq,Rk)}
var Cp=[],Rk=xo.length,XQ=0,AS=0,jm,Uw=Rk<=0,uY=!1;xo.charCodeAt(Rk-1)===10&&--Rk;for(xo.charCodeAt(Rk-1)===13&&--Rk;(jm=JS())!==DKH;){for(var wV=[];jm!==Amv&&jm!==DKH;)wV.push(jm),jm=JS();np&&(wV=np(wV,AS++))==null||Cp.push(wV)}return Cp}
function K(xo){return xo.map(r).join(h)}
function r(xo){return xo==null?"":Zc.test(xo)?'"'+xo.replace(/"/g,'""')+'"':xo}
var Zc=new RegExp('["'+h+"\n\r]"),ep=h.charCodeAt(0);return{parse:function(xo,np){var JS,Cp;xo=n(xo,function(Rk,XQ){if(JS)return JS(Rk,XQ-1);Cp=Rk;JS=np?apw(Rk,np):fup(Rk)});
xo.columns=Cp||[];return xo},
parseRows:n,format:function(xo,np){np==null&&(np=Vcs(xo));return[np.map(r).join(h)].concat(xo.map(function(JS){return np.map(function(Cp){return r(JS[Cp])}).join(h)})).join("\n")},
formatRows:function(xo){return xo.map(K).join("\n")}}}
function E7v(h){if(!h.ok)throw Error("ue`"+h.status+"`"+h.statusText);return h.text()}
function iNJ(h){return function(n,K,r){arguments.length===2&&typeof K==="function"&&(r=K,K=void 0);return fetch(n,K).then(E7v).then(function(Zc){return h(Zc,r)})}}
function CnB(h,n,K,r){if(isNaN(n)||isNaN(K))return h;var Zc,ep=h._root;r={data:r};var xo=h._x0,np=h._y0,JS=h._x1,Cp=h._y1,Rk,XQ,AS,jm,Uw;if(!ep)return h._root=r,h;for(;ep.length;)if((AS=n>=(Rk=(xo+JS)/2))?xo=Rk:JS=Rk,(jm=K>=(XQ=(np+Cp)/2))?np=XQ:Cp=XQ,Zc=ep,!(ep=ep[Uw=jm<<1|AS]))return Zc[Uw]=r,h;var uY=+h._x.call(null,ep.data);var wV=+h._y.call(null,ep.data);if(n===uY&&K===wV)return r.next=ep,Zc?Zc[Uw]=r:h._root=r,h;do Zc=Zc?Zc[Uw]=Array(4):h._root=Array(4),(AS=n>=(Rk=(xo+JS)/2))?xo=Rk:JS=Rk,(jm=
K>=(XQ=(np+Cp)/2))?np=XQ:Cp=XQ;while((Uw=jm<<1|AS)===(AS=(wV>=XQ)<<1|uY>=Rk));return Zc[AS]=ep,Zc[Uw]=r,h}
function Yz(h,n,K,r,Zc){this.node=h;this.x0=n;this.y0=K;this.x1=r;this.y1=Zc}
function fpi(h){return h[0]}
function LTc(h){return h[1]}
function NxG(h,n,K,r,Zc,ep){this._x=h;this._y=n;this._x0=K;this._y0=r;this._x1=Zc;this._y1=ep;this._root=void 0}
function bNa(h){for(var n={data:h.data},K=n;h=h.next;)K=K.next={data:h.data};return n}
function wJG(h,n){if((n=(h=n?h.toExponential(n-1):h.toExponential()).indexOf("e"))<0)return null;var K=h.slice(0,n);return[K.length>1?K[0]+K.slice(2):K,+h.slice(n+1)]}
function ATt(h){return h=wJG(Math.abs(h)),h?h[1]:NaN}
function iHi(h,n){return function(K,r){for(var Zc=K.length,ep=[],xo=0,np=h[0],JS=0;Zc>0&&np>0;){JS+np+1>r&&(np=Math.max(1,r-JS));ep.push(K.substring(Zc-=np,Zc+np));if((JS+=np+1)>r)break;np=h[xo=(xo+1)%h.length]}return ep.reverse().join(n)}}
function C$5(h){return function(n){return n.replace(/[0-9]/g,function(K){return h[+K]})}}
function PTG(h){return new SQ0(h)}
function SQ0(h){if(!(n=bHi.exec(h)))throw Error("ve`"+h);var n;this.fill=n[1]||" ";this.align=n[2]||">";this.sign=n[3]||"-";this.symbol=n[4]||"";this.zero=!!n[5];this.width=n[6]&&+n[6];this.comma=!!n[7];this.precision=n[8]&&+n[8].slice(1);this.trim=!!n[9];this.type=n[10]||""}
function rm2(h,n){n=wJG(h,n);if(!n)return h+"";h=n[0];n=n[1];return n<0?"0."+Array(-n).join("0")+h:h.length>n+1?h.slice(0,n+1)+"."+h.slice(n+1):h+Array(n-h.length+2).join("0")}
function ME$(h){return h}
function rTu(h){function n(np){function JS(ar){var Co=Sg,uw=Kf,eq,Zd;if(Kq==="c")uw=$E(ar)+uw,ar="";else{ar=+ar;var gl=ar<0;ar=$E(Math.abs(ar),wV);if(cb){var d3=ar.length,m6=1,dP=-1;a:for(;m6<d3;++m6)switch(ar[m6]){case ".":dP=eq=m6;break;case "0":dP===0&&(dP=m6);eq=m6;break;default:if(!+ar[m6])break a;dP>0&&(dP=0)}ar=dP>0?ar.slice(0,dP)+ar.slice(eq+1):ar}gl&&+ar===0&&(gl=!1);Co=(gl?XQ==="("?XQ:"-":XQ==="-"||XQ==="("?"":XQ)+Co;uw=(Kq==="s"?zyV[8+JEt/3]:"")+uw+(gl&&XQ==="("?")":"");if(X_)for(gl=-1,
eq=ar.length;++gl<eq;)if(Zd=ar.charCodeAt(gl),48>Zd||Zd>57){uw=(Zd===46?Zc+ar.slice(gl+1):ar.slice(gl))+uw;ar=ar.slice(0,gl);break}}uY&&!jm&&(ar=K(ar,Infinity));Zd=Co.length+ar.length+uw.length;gl=Zd<Uw?Array(Uw-Zd+1).join(Cp):"";uY&&jm&&(ar=K(gl+ar,gl.length?Uw-uw.length:Infinity),gl="");switch(Rk){case "<":ar=Co+ar+uw+gl;break;case "=":ar=Co+gl+ar+uw;break;case "^":ar=gl.slice(0,Zd=gl.length>>1)+Co+ar+uw+gl.slice(Zd);break;default:ar=gl+Co+ar+uw}return ep(ar)}
np=PTG(np);var Cp=np.fill,Rk=np.align,XQ=np.sign,AS=np.symbol,jm=np.zero,Uw=np.width,uY=np.comma,wV=np.precision,cb=np.trim,Kq=np.type;Kq==="n"?(uY=!0,Kq="g"):RyS[Kq]||(wV==null&&(wV=12),cb=!0,Kq="g");if(jm||Cp==="0"&&Rk==="=")jm=!0,Cp="0",Rk="=";var Sg=AS==="$"?r[0]:AS==="#"&&/[boxX]/.test(Kq)?"0"+Kq.toLowerCase():"",Kf=AS==="$"?r[1]:/[%p]/.test(Kq)?xo:"",$E=RyS[Kq],X_=/[defgprs%]/.test(Kq);wV=wV==null?6:/[gprs]/.test(Kq)?Math.max(1,Math.min(21,wV)):Math.max(0,Math.min(20,wV));JS.toString=function(){return np+
""};
return JS}
var K=h.grouping&&h.thousands?iHi(h.grouping,h.thousands):ME$,r=h.currency,Zc=h.decimal,ep=h.numerals?C$5(h.numerals):ME$,xo=h.percent||"%";return{format:n,formatPrefix:function(np,JS){var Cp=n((np=PTG(np),np.type="f",np));np=Math.max(-8,Math.min(8,Math.floor(ATt(JS)/3)))*3;var Rk=Math.pow(10,-np),XQ=zyV[8+np/3];return function(AS){return Cp(Rk*AS)+XQ}}}}
function lo(){this.reset()}
function Dn2(h,n,K){var r=h.s=n+K,Zc=r-n;h.t=n-(r-Zc)+(K-Zc)}
function xCG(h){return h>1?pa:h<-1?-pa:Math.asin(h)}
function MON(){}
function N_Q(h){var n=h[0];h=h[1];var K=FL(h);return[K*FL(n),K*Xk(n),Xk(h)]}
function P_S(h,n){return[h[1]*n[2]-h[2]*n[1],h[2]*n[0]-h[0]*n[2],h[0]*n[1]-h[1]*n[0]]}
function SE$(h){var n=tzp(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=n;h[1]/=n;h[2]/=n}
function zrl(){var h=[],n;return{point:function(K,r){n.push([K,r])},
lineStart:function(){h.push(n=[])},
lineEnd:MON,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var K=h;h=[];n=null;return K}}}
function jbo(h,n,K,r){this.x=h;this.z=n;this.o=K;this.e=r;this.v=!1;this.n=this.p=null}
function JV5(h,n,K,r,Zc){var ep=[],xo=[];h.forEach(function(XQ){if(!((AS=XQ.length-1)<=0)){var AS,jm=XQ[0],Uw=XQ[AS],uY=jm;if(Hm(uY[0]-Uw[0])<1E-6&&Hm(uY[1]-Uw[1])<1E-6){Zc.lineStart();for(np=0;np<AS;++np)Zc.point((jm=XQ[np])[0],jm[1]);Zc.lineEnd()}else ep.push(AS=new jbo(jm,XQ,null,!0)),xo.push(AS.o=new jbo(jm,null,AS,!1)),ep.push(AS=new jbo(Uw,XQ,null,!1)),xo.push(AS.o=new jbo(Uw,null,AS,!0))}});
if(ep.length){xo.sort(n);ZZg(ep);ZZg(xo);var np=0;for(h=xo.length;np<h;++np)xo[np].e=K=!K;K=ep[0];for(var JS;;){for(var Cp=K,Rk=!0;Cp.v;)if((Cp=Cp.n)===K)return;n=Cp.z;Zc.lineStart();do{Cp.v=Cp.o.v=!0;if(Cp.e){if(Rk)for(np=0,h=n.length;np<h;++np)Zc.point((JS=n[np])[0],JS[1]);else r(Cp.x,Cp.n.x,1,Zc);Cp=Cp.n}else{if(Rk)for(n=Cp.p.z,np=n.length-1;np>=0;--np)Zc.point((JS=n[np])[0],JS[1]);else r(Cp.x,Cp.p.x,-1,Zc);Cp=Cp.p}Cp=Cp.o;n=Cp.z;Rk=!Rk}while(!Cp.v);Zc.lineEnd()}}}
function ZZg(h){if(n=h.length){for(var n,K=0,r=h[0],Zc;++K<n;)r.n=Zc=h[K],Zc.p=r,r=Zc;r.n=Zc=h[0];Zc.p=r}}
function Rri(h){return h.length>1}
function DjG(h,n){return((h=h.x)[0]<0?h[1]-pa-1E-6:pa-h[1])-((n=n.x)[0]<0?n[1]-pa-1E-6:pa-n[1])}
function ZEc(){}
function kNV(h){return function(n,K){var r=FL(n),Zc=FL(K);r=h(r*Zc);return[r*Zc*Xk(n),r*Xk(K)]}}
function eZ(h){return function(n,K){var r=tzp(n*n+K*K),Zc=h(r),ep=Xk(Zc);Zc=FL(Zc);return[B_k(n*ep,r*Zc),xCG(r&&K*ep/r)]}}
function N$5(h){var n=0,K=h.children,r=K&&K.length;if(r)for(;--r>=0;)n+=K[r].value;else n=1;h.value=n}
function OZV(h,n){var K=new Q0(h);h=+h.value&&(K.value=h.value);var r,Zc=[K],ep,xo,np,JS;for(n==null&&(n=PUi);r=Zc.pop();)if(h&&(r.value=+r.data.value),(xo=n(r.data))&&(JS=xo.length))for(r.children=Array(JS),np=JS-1;np>=0;--np)Zc.push(ep=r.children[np]=new Q0(xo[np])),ep.parent=r,ep.depth=r.depth+1;return K.eachBefore(S4v)}
function PUi(h){return h.children}
function ZMu(h){h.data=h.data.data}
function S4v(h){var n=0;do h.height=n;while((h=h.parent)&&h.height<++n)}
function Q0(h){this.data=h;this.depth=this.height=0;this.parent=null}
function Rn(h,n,K,r){function Zc(ep){return h(ep=new Date(+ep)),ep}
Zc.floor=Zc;Zc.ceil=function(ep){return h(ep=new Date(ep-1)),n(ep,1),h(ep),ep};
Zc.round=function(ep){var xo=Zc(ep),np=Zc.ceil(ep);return ep-xo<np-ep?xo:np};
Zc.offset=function(ep,xo){return n(ep=new Date(+ep),xo==null?1:Math.floor(xo)),ep};
Zc.range=function(ep,xo,np){var JS=[],Cp;ep=Zc.ceil(ep);np=np==null?1:Math.floor(np);if(!(ep<xo&&np>0))return JS;do JS.push(Cp=new Date(+ep)),n(ep,np),h(ep);while(Cp<ep&&ep<xo);return JS};
Zc.filter=function(ep){return Rn(function(xo){if(xo>=xo)for(;h(xo),!ep(xo);)xo.setTime(xo-1)},function(xo,np){if(xo>=xo)if(np<0)for(;++np<=0;)for(;n(xo,-1),!ep(xo););
else for(;--np>=0;)for(;n(xo,1),!ep(xo););})};
K&&(Zc.count=function(ep,xo){knR.setTime(+ep);Bxp.setTime(+xo);h(knR);h(Bxp);return Math.floor(K(knR,Bxp))},Zc.every=function(ep){ep=Math.floor(ep);
return isFinite(ep)&&ep>0?ep>1?Zc.filter(r?function(xo){return r(xo)%ep===0}:function(xo){return Zc.count(0,xo)%ep===0}):Zc:null});
return Zc}
function s1(h){return Rn(function(n){n.setDate(n.getDate()-(n.getDay()+7-h)%7);n.setHours(0,0,0,0)},function(n,K){n.setDate(n.getDate()+K*7)},function(n,K){return(K-n-(K.getTimezoneOffset()-n.getTimezoneOffset())*6E4)/6048E5})}
function nz(h){return Rn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-h)%7);n.setUTCHours(0,0,0,0)},function(n,K){n.setUTCDate(n.getUTCDate()+K*7)},function(n,K){return(K-n)/6048E5})}
function kON(h){if(0<=h.y&&h.y<100){var n=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);n.setFullYear(h.y);return n}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function pJ8(h){if(0<=h.y&&h.y<100){var n=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));n.setUTCFullYear(h.y);return n}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function UG(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function B$w(h){function n(uw,eq){return function(Zd){var gl=[],d3=-1,m6=0,dP=uw.length,PJ,b$;for(Zd instanceof Date||(Zd=new Date(+Zd));++d3<dP;)if(uw.charCodeAt(d3)===37){gl.push(uw.slice(m6,d3));(m6=T_k[PJ=uw.charAt(++d3)])!=null?PJ=uw.charAt(++d3):m6=PJ==="e"?" ":"0";if(b$=eq[PJ])PJ=b$(Zd,m6);gl.push(PJ);m6=d3+1}gl.push(uw.slice(m6,d3));return gl.join("")}}
function K(uw,eq){return function(Zd){var gl=UG(1900);if(r(gl,uw,Zd,0)!=Zd.length)return null;if("Q"in gl)return new Date(gl.Q);"p"in gl&&(gl.H=gl.H%12+gl.p*12);if("V"in gl){if(gl.V<1||gl.V>53)return null;"w"in gl||(gl.w=1);if("Z"in gl){Zd=pJ8(UG(gl.y));var d3=Zd.getUTCDay();Zd=d3>4||d3===0?OER.ceil(Zd):OER(Zd);Zd=I1S.offset(Zd,(gl.V-1)*7);gl.y=Zd.getUTCFullYear();gl.m=Zd.getUTCMonth();gl.d=Zd.getUTCDate()+(gl.w+6)%7}else Zd=eq(UG(gl.y)),d3=Zd.getDay(),Zd=d3>4||d3===0?Txp.ceil(Zd):Txp(Zd),Zd=o5$.offset(Zd,
(gl.V-1)*7),gl.y=Zd.getFullYear(),gl.m=Zd.getMonth(),gl.d=Zd.getDate()+(gl.w+6)%7}else if("W"in gl||"U"in gl)"w"in gl||(gl.w="u"in gl?gl.u%7:"W"in gl?1:0),d3="Z"in gl?pJ8(UG(gl.y)).getUTCDay():eq(UG(gl.y)).getDay(),gl.m=0,gl.d="W"in gl?(gl.w+6)%7+gl.W*7-(d3+5)%7:gl.w+gl.U*7-(d3+6)%7;return"Z"in gl?(gl.H+=gl.Z/100|0,gl.M+=gl.Z%100,pJ8(gl)):eq(gl)}}
function r(uw,eq,Zd,gl){for(var d3=0,m6=eq.length,dP=Zd.length,PJ;d3<m6;){if(gl>=dP)return-1;PJ=eq.charCodeAt(d3++);if(PJ===37){if(PJ=eq.charAt(d3++),PJ=Co[PJ in T_k?eq.charAt(d3++):PJ],!PJ||(gl=PJ(uw,Zd,gl))<0)return-1}else if(PJ!=Zd.charCodeAt(gl++))return-1}return gl}
var Zc=h.dateTime,ep=h.date,xo=h.time,np=h.periods,JS=h.days,Cp=h.shortDays,Rk=h.months,XQ=h.shortMonths,AS=vd(np),jm=G3(np),Uw=vd(JS),uY=G3(JS),wV=vd(Cp),cb=G3(Cp),Kq=vd(Rk),Sg=G3(Rk),Kf=vd(XQ),$E=G3(XQ),X_={a:function(uw){return Cp[uw.getDay()]},
A:function(uw){return JS[uw.getDay()]},
b:function(uw){return XQ[uw.getMonth()]},
B:function(uw){return Rk[uw.getMonth()]},
c:null,d:Xa$,e:Xa$,f:OMu,H:T$c,I:IBN,j:oBl,L:l1p,m:Xcw,M:lBl,p:function(uw){return np[+(uw.getHours()>=12)]},
Q:eyV,s:QQS,S:ers,u:QRw,U:Uj5,V:vBG,w:GOc,W:wcv,x:null,X:null,y:xju,Y:tOt,Z:jRt,"%":UnQ},ar={a:function(uw){return Cp[uw.getUTCDay()]},
A:function(uw){return JS[uw.getUTCDay()]},
b:function(uw){return XQ[uw.getUTCMonth()]},
B:function(uw){return Rk[uw.getUTCMonth()]},
c:null,d:v5B,e:v5B,f:pcl,H:FRN,I:Y4v,j:mjw,L:GNQ,m:gBl,M:sRm,p:function(uw){return np[+(uw.getUTCHours()>=12)]},
Q:eyV,s:QQS,S:nBv,u:hrG,U:yVw,V:HMw,w:cVl,W:djl,x:null,X:null,y:KRv,Y:$jt,Z:u7w,"%":UnQ},Co={a:function(uw,eq,Zd){return(eq=wV.exec(eq.slice(Zd)))?(uw.w=cb[eq[0].toLowerCase()],Zd+eq[0].length):-1},
A:function(uw,eq,Zd){return(eq=Uw.exec(eq.slice(Zd)))?(uw.w=uY[eq[0].toLowerCase()],Zd+eq[0].length):-1},
b:function(uw,eq,Zd){return(eq=Kf.exec(eq.slice(Zd)))?(uw.m=$E[eq[0].toLowerCase()],Zd+eq[0].length):-1},
B:function(uw,eq,Zd){return(eq=Kq.exec(eq.slice(Zd)))?(uw.m=Sg[eq[0].toLowerCase()],Zd+eq[0].length):-1},
c:function(uw,eq,Zd){return r(uw,Zc,eq,Zd)},
d:wa$,e:wa$,f:q4l,H:xnV,I:xnV,j:WRw,L:aBd,m:VOl,M:EBv,p:function(uw,eq,Zd){return(eq=AS.exec(eq.slice(Zd)))?(uw.p=jm[eq[0].toLowerCase()],Zd+eq[0].length):-1},
Q:fBm,s:LRG,S:AVc,u:iMw,U:CUG,V:bMl,w:rV5,W:Mxd,x:function(uw,eq,Zd){return r(uw,ep,eq,Zd)},
X:function(uw,eq,Zd){return r(uw,xo,eq,Zd)},
y:zgG,Y:Jmw,Z:Rgm,"%":DJ5};X_.x=n(ep,X_);X_.X=n(xo,X_);X_.c=n(Zc,X_);ar.x=n(ep,ar);ar.X=n(xo,ar);ar.c=n(Zc,ar);return{format:function(uw){var eq=n(uw,X_);eq.toString=function(){return uw};
return eq},
parse:function(uw){var eq=K(uw,kON);eq.toString=function(){return uw};
return eq},
utcFormat:function(uw){var eq=n(uw,ar);eq.toString=function(){return uw};
return eq},
utcParse:function(uw){var eq=K(uw,pJ8);eq.toString=function(){return uw};
return eq}}}
function OR(h,n,K){var r=h<0?"-":"";h=(r?-h:h)+"";var Zc=h.length;return r+(Zc<K?Array(K-Zc+1).join(n)+h:h)}
function NN5(h){return h.replace(Pns,"\\$&")}
function vd(h){return new RegExp("^(?:"+h.map(NN5).join("|")+")","i")}
function G3(h){for(var n={},K=-1,r=h.length;++K<r;)n[h[K].toLowerCase()]=K;return n}
function rV5(h,n,K){return(n=Z8.exec(n.slice(K,K+1)))?(h.w=+n[0],K+n[0].length):-1}
function iMw(h,n,K){return(n=Z8.exec(n.slice(K,K+1)))?(h.u=+n[0],K+n[0].length):-1}
function CUG(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.U=+n[0],K+n[0].length):-1}
function bMl(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.V=+n[0],K+n[0].length):-1}
function Mxd(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.W=+n[0],K+n[0].length):-1}
function Jmw(h,n,K){return(n=Z8.exec(n.slice(K,K+4)))?(h.y=+n[0],K+n[0].length):-1}
function zgG(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.y=+n[0]+(+n[0]>68?1900:2E3),K+n[0].length):-1}
function Rgm(h,n,K){return(n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(K,K+6)))?(h.Z=n[1]?0:-(n[2]+(n[3]||"00")),K+n[0].length):-1}
function VOl(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.m=n[0]-1,K+n[0].length):-1}
function wa$(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.d=+n[0],K+n[0].length):-1}
function WRw(h,n,K){return(n=Z8.exec(n.slice(K,K+3)))?(h.m=0,h.d=+n[0],K+n[0].length):-1}
function xnV(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.H=+n[0],K+n[0].length):-1}
function EBv(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.M=+n[0],K+n[0].length):-1}
function AVc(h,n,K){return(n=Z8.exec(n.slice(K,K+2)))?(h.S=+n[0],K+n[0].length):-1}
function aBd(h,n,K){return(n=Z8.exec(n.slice(K,K+3)))?(h.L=+n[0],K+n[0].length):-1}
function q4l(h,n,K){return(n=Z8.exec(n.slice(K,K+6)))?(h.L=Math.floor(n[0]/1E3),K+n[0].length):-1}
function DJ5(h,n,K){return(h=Sbs.exec(n.slice(K,K+1)))?K+h[0].length:-1}
function fBm(h,n,K){return(n=Z8.exec(n.slice(K)))?(h.Q=+n[0],K+n[0].length):-1}
function LRG(h,n,K){return(n=Z8.exec(n.slice(K)))?(h.Q=+n[0]*1E3,K+n[0].length):-1}
function Xa$(h,n){return OR(h.getDate(),n,2)}
function T$c(h,n){return OR(h.getHours(),n,2)}
function IBN(h,n){return OR(h.getHours()%12||12,n,2)}
function oBl(h,n){return OR(1+o5$.count(rC(h),h),n,3)}
function l1p(h,n){return OR(h.getMilliseconds(),n,3)}
function OMu(h,n){return l1p(h,n)+"000"}
function Xcw(h,n){return OR(h.getMonth()+1,n,2)}
function lBl(h,n){return OR(h.getMinutes(),n,2)}
function ers(h,n){return OR(h.getSeconds(),n,2)}
function QRw(h){h=h.getDay();return h===0?7:h}
function Uj5(h,n){return OR(ZNm.count(rC(h),h),n,2)}
function vBG(h,n){var K=h.getDay();h=K>=4||K===0?IJp(h):IJp.ceil(h);return OR(IJp.count(rC(h),h)+(rC(h).getDay()===4),n,2)}
function GOc(h){return h.getDay()}
function wcv(h,n){return OR(Txp.count(rC(h),h),n,2)}
function xju(h,n){return OR(h.getFullYear()%100,n,2)}
function tOt(h,n){return OR(h.getFullYear()%1E4,n,4)}
function jRt(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+OR(h/60|0,"0",2)+OR(h%60,"0",2)}
function v5B(h,n){return OR(h.getUTCDate(),n,2)}
function FRN(h,n){return OR(h.getUTCHours(),n,2)}
function Y4v(h,n){return OR(h.getUTCHours()%12||12,n,2)}
function mjw(h,n){return OR(1+I1S.count(Mw(h),h),n,3)}
function GNQ(h,n){return OR(h.getUTCMilliseconds(),n,3)}
function pcl(h,n){return GNQ(h,n)+"000"}
function gBl(h,n){return OR(h.getUTCMonth()+1,n,2)}
function sRm(h,n){return OR(h.getUTCMinutes(),n,2)}
function nBv(h,n){return OR(h.getUTCSeconds(),n,2)}
function hrG(h){h=h.getUTCDay();return h===0?7:h}
function yVw(h,n){return OR(kCw.count(Mw(h),h),n,2)}
function HMw(h,n){var K=h.getUTCDay();h=K>=4||K===0?oKb(h):oKb.ceil(h);return OR(oKb.count(Mw(h),h)+(Mw(h).getUTCDay()===4),n,2)}
function cVl(h){return h.getUTCDay()}
function djl(h,n){return OR(OER.count(Mw(h),h),n,2)}
function KRv(h,n){return OR(h.getUTCFullYear()%100,n,2)}
function $jt(h,n){return OR(h.getUTCFullYear()%1E4,n,4)}
function u7w(){return"+0000"}
function UnQ(){return"%"}
function eyV(h){return+h}
function QQS(h){return Math.floor(+h/1E3)}
function Oa(h){for(var n=h.length/6|0,K=Array(n),r=0;r<n;)K[r]="#"+h.slice(r*6,++r*6);return K}
function Kh(h){return BNc(h[h.length-1])}
function FoG(h){var n=h.length;return function(K){return h[Math.max(0,Math.min(n-1,Math.floor(K*n)))]}}
function tEJ(h){this._context=h}
function jQt(h){this._curve=h}
function pa2(h,n,K){var r=h._x1-h._x0;n-=h._x1;var Zc=(h._y1-h._y0)/(r||n<0&&-0);h=(K-h._y1)/(n||r<0&&-0);return((Zc<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(Zc),Math.abs(h),.5*Math.abs((Zc*n+h*r)/(r+n)))||0}
function F_a(h,n){var K=h._x1-h._x0;return K?(3*(h._y1-h._y0)/K-n)/2:n}
function Xmp(h,n,K){var r=h._x0,Zc=h._x1,ep=h._y1,xo=(Zc-r)/3;h._context.bezierCurveTo(r+xo,h._y0+xo*n,Zc-xo,ep-xo*K,Zc,ep)}
function lJo(h){this._context=h}
function YEV(h){this._context=h}
function wU(h,n,K){this.k=h;this.x=n;this.y=K}
(function(h){h.length===1&&(h=z(h));return{left:function(n,K,r,Zc){r==null&&(r=0);Zc==null&&(Zc=n.length);for(;r<Zc;){var ep=r+Zc>>>1;h(n[ep],K)<0?r=ep+1:Zc=ep}return r},
right:function(n,K,r,Zc){r==null&&(r=0);Zc==null&&(Zc=n.length);for(;r<Zc;){var ep=r+Zc>>>1;h(n[ep],K)>0?Zc=ep:r=ep+1}return r}}})(M);
var ROs={value:function(){}};
R.prototype=J.prototype={constructor:R,on:function(h,n){var K=this._,r=D(h+"",K),Zc,ep=-1,xo=r.length;if(arguments.length<2)for(;++ep<xo;){var np;if(np=Zc=(h=r[ep]).type){a:{np=K[Zc];for(var JS=0,Cp=np.length;JS<Cp;++JS)if((Zc=np[JS]).name===h.name){Zc=Zc.value;break a}Zc=void 0}np=Zc}if(np)return Zc}else{if(n!=null&&typeof n!=="function")throw Error("we`"+n);for(;++ep<xo;)if(Zc=(h=r[ep]).type)K[Zc]=N(K[Zc],h.name,n);else if(n==null)for(Zc in K)K[Zc]=N(K[Zc],h.name,null);return this}},
copy:function(){var h={},n=this._,K;for(K in n)h[K]=n[K].slice();return new R(h)},
call:function(h,n){if((Zc=arguments.length-2)>0)for(var K=Array(Zc),r=0,Zc,ep;r<Zc;++r)K[r]=arguments[r+2];if(!this._.hasOwnProperty(h))throw Error("qe`"+h);ep=this._[h];r=0;for(Zc=ep.length;r<Zc;++r)ep[r].value.apply(n,K)},
apply:function(h,n,K){if(!this._.hasOwnProperty(h))throw Error("qe`"+h);h=this._[h];for(var r=0,Zc=h.length;r<Zc;++r)h[r].value.apply(n,K)}};
var j3={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/"},mnQ=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var x$=document.documentElement;if(!x$.matches){var ONm=x$.webkitMatchesSelector||x$.msMatchesSelector||x$.mozMatchesSelector||x$.oMatchesSelector;mnQ=function(h){return function(){return ONm.call(this,h)}}}}var g5Q=mnQ;
v.prototype={constructor:v,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,n){return this._parent.insertBefore(h,n)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var hg$={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(hg$={mouseenter:"mouseover",mouseleave:"mouseout"}));var D0l=[null];Lv.prototype=em.prototype={constructor:Lv,select:function(h){typeof h!=="function"&&(h=e(h));for(var n=this._groups,K=n.length,r=Array(K),Zc=0;Zc<K;++Zc)for(var ep=n[Zc],xo=ep.length,np=r[Zc]=Array(xo),JS,Cp,Rk=0;Rk<xo;++Rk)(JS=ep[Rk])&&(Cp=h.call(JS,JS.__data__,Rk,ep))&&("__data__"in JS&&(Cp.__data__=JS.__data__),np[Rk]=Cp);return new Lv(r,this._parents)},
filter:function(h){typeof h!=="function"&&(h=g5Q(h));for(var n=this._groups,K=n.length,r=Array(K),Zc=0;Zc<K;++Zc)for(var ep=n[Zc],xo=ep.length,np=r[Zc]=[],JS,Cp=0;Cp<xo;++Cp)(JS=ep[Cp])&&h.call(JS,JS.__data__,Cp,ep)&&np.push(JS);return new Lv(r,this._parents)},
data:function(h,n){if(!h)return jm=Array(this.size()),Cp=-1,this.each(function(Kq){jm[++Cp]=Kq}),jm;
var K=n?y:m,r=this._parents,Zc=this._groups;typeof h!=="function"&&(h=x(h));for(var ep=Zc.length,xo=Array(ep),np=Array(ep),JS=Array(ep),Cp=0;Cp<ep;++Cp){var Rk=r[Cp],XQ=Zc[Cp],AS=XQ.length,jm=h.call(Rk,Rk&&Rk.__data__,Cp,r),Uw=jm.length,uY=np[Cp]=Array(Uw),wV=xo[Cp]=Array(Uw);AS=JS[Cp]=Array(AS);K(Rk,XQ,uY,wV,AS,jm,n);XQ=Rk=0;for(var cb;Rk<Uw;++Rk)if(AS=uY[Rk]){for(Rk>=XQ&&(XQ=Rk+1);!(cb=wV[XQ])&&++XQ<Uw;);AS._next=cb||null}}xo=new Lv(xo,r);xo._enter=np;xo._exit=JS;return xo},
enter:function(){return new Lv(this._enter||this._groups.map(Q),this._parents)},
exit:function(){return new Lv(this._exit||this._groups.map(Q),this._parents)},
merge:function(h){var n=this._groups;h=h._groups;for(var K=n.length,r=Math.min(K,h.length),Zc=Array(K),ep=0;ep<r;++ep)for(var xo=n[ep],np=h[ep],JS=xo.length,Cp=Zc[ep]=Array(JS),Rk,XQ=0;XQ<JS;++XQ)if(Rk=xo[XQ]||np[XQ])Cp[XQ]=Rk;for(;ep<K;++ep)Zc[ep]=n[ep];return new Lv(Zc,this._parents)},
order:function(){for(var h=this._groups,n=-1,K=h.length;++n<K;)for(var r=h[n],Zc=r.length-1,ep=r[Zc],xo;--Zc>=0;)if(xo=r[Zc])ep&&ep!==xo.nextSibling&&ep.parentNode.insertBefore(xo,ep),ep=xo;return this},
sort:function(h){function n(XQ,AS){return XQ&&AS?h(XQ.__data__,AS.__data__):!XQ-!AS}
h||(h=H);for(var K=this._groups,r=K.length,Zc=Array(r),ep=0;ep<r;++ep){for(var xo=K[ep],np=xo.length,JS=Zc[ep]=Array(np),Cp,Rk=0;Rk<np;++Rk)if(Cp=xo[Rk])JS[Rk]=Cp;JS.sort(n)}return(new Lv(Zc,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),n=-1;this.each(function(){h[++n]=this});
return h},
node:function(){for(var h=this._groups,n=0,K=h.length;n<K;++n)for(var r=h[n],Zc=0,ep=r.length;Zc<ep;++Zc){var xo=r[Zc];if(xo)return xo}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var n=this._groups,K=0,r=n.length;K<r;++K)for(var Zc=n[K],ep=0,xo=Zc.length,np;ep<xo;++ep)(np=Zc[ep])&&h.call(np,np.__data__,ep,Zc);return this},
attr:function(h,n){var K=Z(h);if(arguments.length<2){var r=this.node();return K.local?r.getAttributeNS(K.space,K.local):r.getAttribute(K)}return this.each((n==null?K.local?b:q:typeof n==="function"?K.local?z8:L:K.local?E:V)(K,n))},
style:function(h,n,K){return arguments.length>1?this.each((n==null?O8:typeof n==="function"?vY:I3)(h,n,K==null?"":K)):te(this.node(),h)},
property:function(h,n){return arguments.length>1?this.each((n==null?wR:typeof n==="function"?cY:qb)(h,n)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?Pu:(typeof h==="function"?Ik:yV)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?rR:(typeof h==="function"?ok:ea)(h)):this.node().innerHTML},
append:function(h){var n=typeof h==="function"?h:X(h);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},
insert:function(h,n){var K=typeof h==="function"?h:X(h),r=n==null?s$:typeof n==="function"?n:e(n);return this.select(function(){return this.insertBefore(K.apply(this,arguments),r.apply(this,arguments)||null)})},
remove:function(){return this.each(pw)},
clone:function(h){return this.select(h?Nb:iJ)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,n,K){var r=Tc(h+""),Zc=r.length,ep;if(arguments.length<2){var xo=this.node().__on;if(xo)for(var np=0,JS=xo.length,Cp;np<JS;++np){var Rk=0;for(Cp=xo[np];Rk<Zc;++Rk)if((ep=r[Rk]).type===Cp.type&&ep.name===Cp.name)return Cp.value}}else{xo=n?zc:Gt;K==null&&(K=!1);for(Rk=0;Rk<Zc;++Rk)this.each(xo(r[Rk],n,K));return this}},
dispatch:function(h,n){return this.each((typeof n==="function"?ZV:MN)(h,n))}};
var NLw=0;FQ.prototype=function(){return new FQ}.prototype={constructor:FQ,
get:function(h){for(var n=this._;!(n in h);)if(!(h=h.parentNode))return;return h[n]},
set:function(h,n){return h[this._]=n},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var zI=1/.7,P$v=/^#([0-9a-f]{3})$/,Svt=/^#([0-9a-f]{6})$/,ZHc=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),kdm=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),BLt=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),OH5=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*\\)$"),
TL5=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Ipv=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*\\)$"),ymB={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};
Yp(By,Xl,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Yp(Vu,Ht,Gc(By,{brighter:function(h){h=h==null?zI:Math.pow(zI,h);return new Vu(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new Vu(this.r*h,this.g*h,this.b*h,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+Rr(this.r)+Rr(this.g)+Rr(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(h===1?")":", "+h+")")}}));
Yp(PW,wc,Gc(By,{brighter:function(h){h=h==null?zI:Math.pow(zI,h);return new PW(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new PW(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,n=this.l,K=n+(n<.5?n:1-n)*(isNaN(h)||isNaN(this.s)?0:this.s);n=2*n-K;return new Vu(dV(h>=240?h-240:h+120,n,K),dV(h,n,K),dV(h<120?h+240:h-120,n,K),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 HNu=Math.PI/180,K9g=180/Math.PI,dJa=4/29,CA=6/29,cmt=3*CA*CA,o7l=CA*CA*CA;Yp(Fn,function(h,n,K,r){return arguments.length===1?CY(h):new Fn(h,n,K,r==null?1:r)},Gc(By,{brighter:function(h){return new Fn(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new Fn(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,n=isNaN(this.a)?h:h+this.a/500,K=isNaN(this.b)?h:h-this.b/200;n=.96422*VH(n);h=1*VH(h);K=.82521*VH(K);return new Vu(QV(3.1338561*n-1.6168667*h-.4906146*K),QV(-.9787684*n+1.9161415*h+.033454*K),QV(.0719453*n-.2289914*h+1.4052427*K),this.opacity)}}));
Yp(xp,ti,Gc(By,{brighter:function(h){return new xp(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new xp(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return CY(this).rgb()}}));
var $JS=1.78277*-.29227-.1347134789;Yp(yu,wg,Gc(By,{brighter:function(h){h=h==null?zI:Math.pow(zI,h);return new yu(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new yu(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*HNu,n=+this.l,K=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(h);h=Math.sin(h);return new Vu(255*(n+K*(-.14861*r+1.78277*h)),255*(n+K*(-.29227*r+-.90649*h)),255*(n+1.97294*r*K),this.opacity)}}));
var Vxt=function K(n){function r(ep,xo){var np=Zc((ep=Ht(ep)).r,(xo=Ht(xo)).r),JS=Zc(ep.g,xo.g),Cp=Zc(ep.b,xo.b),Rk=mh(ep.opacity,xo.opacity);return function(XQ){ep.r=np(XQ);ep.g=JS(XQ);ep.b=Cp(XQ);ep.opacity=Rk(XQ);return ep+""}}
var Zc=hP(n);r.gamma=K;return r}(1),BNc=Bf(function(n){var K=n.length-1;
return function(r){var Zc=r<=0?r=0:r>=1?(r=1,K-1):Math.floor(r*K),ep=n[Zc],xo=n[Zc+1];return ls((r-Zc/K)*K,Zc>0?n[Zc-1]:2*ep-xo,ep,xo,Zc<K-1?n[Zc+2]:2*xo-ep)}});
Bf(function(n){var K=n.length;return function(r){var Zc=Math.floor(((r%=1)<0?++r:r)*K);return ls((r-Zc/K)*K,n[(Zc+K-1)%K],n[Zc%K],n[(Zc+1)%K],n[(Zc+2)%K])}});
var C_c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bZ8=new RegExp(C_c.source,"g"),uxk=180/Math.PI,e13={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},t6,QY0,sQ2,Y7b,TNv=Fl(function(n){if(n==="none")return e13;t6||(t6=document.createElement("DIV"),QY0=document.documentElement,sQ2=document.defaultView);t6.style.transform=n;n=sQ2.getComputedStyle(QY0.appendChild(t6),null).getPropertyValue("transform");QY0.removeChild(t6);n=n.slice(7,-1).split(",");return Qu(+n[0],+n[1],+n[2],+n[3],
+n[4],+n[5])},"px, ","px)","deg)"),Iuv=Fl(function(n){if(n==null)return e13;
Y7b||(Y7b=document.createElementNS("http://www.w3.org/2000/svg","g"));Y7b.setAttribute("transform",n);if(!(n=Y7b.transform.baseVal.consolidate()))return e13;n=n.matrix;return Qu(n.a,n.b,n.c,n.d,n.e,n.f)},", ",")",")");
Sm(di);Sm(mh);kr(di);kr(mh);VW(di);var UKG=VW(mh),br=0,oC=0,lz=0,UCp,X5,Qb8=0,mm=0,eVp=0,IC=typeof performance==="object"&&performance.now?performance:Date,qbk=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};
eF.prototype=kL.prototype={constructor:eF,restart:function(n,K,r){if(typeof n!=="function")throw new TypeError("xe");r=(r==null?ys():+r)+(K==null?0:+K);this._next||X5===this||(X5?X5._next=this:UCp=this,X5=this);this._call=n;this._time=r;Oi()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Oi())}};
var lpG=J("start","end","interrupt"),eOl=[],o9u=em.prototype.constructor,n5V=0,J0=em.prototype;yn.prototype=function(n){return em().transition(n)}.prototype={constructor:yn,
select:function(n){var K=this._name,r=this._id;typeof n!=="function"&&(n=e(n));for(var Zc=this._groups,ep=Zc.length,xo=Array(ep),np=0;np<ep;++np)for(var JS=Zc[np],Cp=JS.length,Rk=xo[np]=Array(Cp),XQ,AS,jm=0;jm<Cp;++jm)(XQ=JS[jm])&&(AS=n.call(XQ,XQ.__data__,jm,JS))&&("__data__"in XQ&&(AS.__data__=XQ.__data__),Rk[jm]=AS,rEw(Rk[jm],K,r,jm,Rk,lF(XQ,r)));return new yn(xo,this._parents,K,r)},
filter:function(n){typeof n!=="function"&&(n=g5Q(n));for(var K=this._groups,r=K.length,Zc=Array(r),ep=0;ep<r;++ep)for(var xo=K[ep],np=xo.length,JS=Zc[ep]=[],Cp,Rk=0;Rk<np;++Rk)(Cp=xo[Rk])&&n.call(Cp,Cp.__data__,Rk,xo)&&JS.push(Cp);return new yn(Zc,this._parents,this._name,this._id)},
merge:function(n){if(n._id!==this._id)throw Error();var K=this._groups;n=n._groups;for(var r=K.length,Zc=Math.min(r,n.length),ep=Array(r),xo=0;xo<Zc;++xo)for(var np=K[xo],JS=n[xo],Cp=np.length,Rk=ep[xo]=Array(Cp),XQ,AS=0;AS<Cp;++AS)if(XQ=np[AS]||JS[AS])Rk[AS]=XQ;for(;xo<r;++xo)ep[xo]=K[xo];return new yn(ep,this._parents,this._name,this._id)},
selection:function(){return new o9u(this._groups,this._parents)},
transition:function(){for(var n=this._name,K=this._id,r=++n5V,Zc=this._groups,ep=Zc.length,xo=0;xo<ep;++xo)for(var np=Zc[xo],JS=np.length,Cp,Rk=0;Rk<JS;++Rk)if(Cp=np[Rk]){var XQ=lF(Cp,K);rEw(Cp,n,r,Rk,np,{time:XQ.time+XQ.delay+XQ.duration,delay:0,duration:XQ.duration,ease:XQ.ease})}return new yn(Zc,this._parents,n,r)},
call:J0.call,nodes:J0.nodes,node:J0.node,size:J0.size,empty:J0.empty,each:J0.each,on:function(n,K){var r=this._id;return arguments.length<2?lF(this.node(),r).on.on(n):this.each(yTG(r,n,K))},
attr:function(n,K){var r=Z(n),Zc=r==="transform"?Iuv:aua;return this.attrTween(n,typeof K==="function"?(r.local?jwu:tci)(r,Zc,z1p(this,"attr."+n,K)):K==null?(r.local?Gdt:v7m)(r):(r.local?x0v:wwd)(r,Zc,K+""))},
attrTween:function(n,K){var r="attr."+n;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(K==null)return this.tween(r,null);if(typeof K!=="function")throw Error();var Zc=Z(n);return this.tween(r,(Zc.local?pwv:FTw)(Zc,K))},
style:function(n,K,r){var Zc=n==="transform"?TNv:aua;return K==null?this.styleTween(n,cTG(n,Zc)).on("end.style."+n,d0c(n)):this.styleTween(n,typeof K==="function"?$0c(n,Zc,z1p(this,"style."+n,K)):KTN(n,Zc,K+""),r)},
styleTween:function(n,K,r){var Zc="style."+n;if(arguments.length<2)return(Zc=this.tween(Zc))&&Zc._value;if(K==null)return this.tween(Zc,null);if(typeof K!=="function")throw Error();return this.tween(Zc,uGc(n,K,r==null?"":r))},
text:function(n){return this.tween("text",typeof n==="function"?WTl(z1p(this,"text",n)):qvv(n==null?"":n+""))},
remove:function(){return this.on("end.remove",HHc(this._id))},
tween:function(n,K){var r=this._id;if(arguments.length<2){r=lF(this.node(),r).tween;for(var Zc=0,ep=r.length,xo;Zc<ep;++Zc)if((xo=r[Zc]).name===n)return xo.value;return null}return this.each((K==null?QwN:U0t)(r,n,K))},
delay:function(n){var K=this._id;return arguments.length?this.each((typeof n==="function"?Yvw:m0w)(K,n)):lF(this.node(),K).delay},
duration:function(n){var K=this._id;return arguments.length?this.each((typeof n==="function"?g7w:swN)(K,n)):lF(this.node(),K).duration},
ease:function(n){var K=this._id;return arguments.length?this.each(n7d(K,n)):lF(this.node(),K).ease}};
var vK8={time:null,delay:0,duration:250,ease:function(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}};
em.prototype.transition=function(n){var K;if(n instanceof yn){var r=n._id;n=n._name}else r=++n5V,(K=vK8).time=ys(),n=n==null?null:n+"";for(var Zc=this._groups,ep=Zc.length,xo=0;xo<ep;++xo)for(var np=Zc[xo],JS=np.length,Cp,Rk=0;Rk<JS;++Rk)if(Cp=np[Rk]){var XQ=Cp,AS=n,jm=r,Uw=Rk,uY=np,wV;if(!(wV=K))a:{wV=void 0;for(var cb=r;!(wV=Cp.__transition)||!(wV=wV[cb]);)if(!(Cp=Cp.parentNode)){wV=(vK8.time=ys(),vK8);break a}}rEw(XQ,AS,jm,Uw,uY,wV)}return new yn(Zc,this._parents,n,r)};
["e","w"].map(JsH);["n","s"].map(JsH);"n e s w nw ne se sw".split(" ").map(JsH);R1Y.prototype=function(){return new R1Y}.prototype={constructor:R1Y,
moveTo:function(n,K){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+K)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(n,K){this._+="L"+(this._x1=+n)+","+(this._y1=+K)},
bezierCurveTo:function(n,K,r,Zc,ep,xo){this._+="C"+ +n+","+ +K+","+ +r+","+ +Zc+","+(this._x1=+ep)+","+(this._y1=+xo)},
rect:function(n,K,r,Zc){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+K)+"h"+ +r+"v"+ +Zc+"h"+-r+"Z"},
toString:function(){return this._}};
vNp.prototype=E9t.prototype={constructor:vNp,has:function(n){return" "+n in this},
get:function(n){return this[" "+n]},
set:function(n,K){this[" "+n]=K;return this},
remove:function(n){n=" "+n;return n in this&&delete this[n]},
clear:function(){for(var n in this)n[0]===" "&&delete this[n]},
keys:function(){var n=[],K;for(K in this)K[0]===" "&&n.push(K.slice(1));return n},
values:function(){var n=[],K;for(K in this)K[0]===" "&&n.push(this[K]);return n},
entries:function(){var n=[],K;for(K in this)K[0]===" "&&n.push({key:K.slice(1),value:this[K]});return n},
size:function(){var n=0,K;for(K in this)K[0]===" "&&++n;return n},
empty:function(){for(var n in this)if(n[0]===" ")return!1;return!0},
each:function(n){for(var K in this)K[0]===" "&&n(this[K],K.slice(1),this)}};
var hB=E9t.prototype;Gwp.prototype=function(n,K){var r=new Gwp;if(n instanceof Gwp)n.each(function(xo){r.add(xo)});
else if(n){var Zc=-1,ep=n.length;if(K==null)for(;++Zc<ep;)r.add(n[Zc]);else for(;++Zc<ep;)r.add(K(n[Zc],Zc,n))}return r}.prototype={constructor:Gwp,
has:hB.has,add:function(n){this[" "+n]=n;return this},
remove:hB.remove,clear:hB.clear,values:hB.keys,size:hB.size,empty:hB.empty,each:hB.each};var Amv={},DKH={},X2l=L9J(",").parse,lus=L9J("\t").parse;iNJ(X2l);iNJ(lus);var mx=function(n,K,r){K=new NxG(K==null?fpi:K,r==null?LTc:r,NaN,NaN,NaN,NaN);return n==null?K:K.addAll(n)}.prototype=NxG.prototype;
mx.copy=function(){var n=new NxG(this._x,this._y,this._x0,this._y0,this._x1,this._y1),K=this._root,r,Zc;if(!K)return n;if(!K.length)return n._root=bNa(K),n;for(r=[{source:K,target:n._root=Array(4)}];K=r.pop();)for(var ep=0;ep<4;++ep)if(Zc=K.source[ep])Zc.length?r.push({source:Zc,target:K.target[ep]=Array(4)}):K.target[ep]=bNa(Zc);return n};
mx.add=function(n){var K=+this._x.call(null,n),r=+this._y.call(null,n);return CnB(this.cover(K,r),K,r,n)};
mx.addAll=function(n){var K,r,Zc=n.length,ep,xo,np=Array(Zc),JS=Array(Zc),Cp=Infinity,Rk=Infinity,XQ=-Infinity,AS=-Infinity;for(r=0;r<Zc;++r)isNaN(ep=+this._x.call(null,K=n[r]))||isNaN(xo=+this._y.call(null,K))||(np[r]=ep,JS[r]=xo,ep<Cp&&(Cp=ep),ep>XQ&&(XQ=ep),xo<Rk&&(Rk=xo),xo>AS&&(AS=xo));XQ<Cp&&(Cp=this._x0,XQ=this._x1);AS<Rk&&(Rk=this._y0,AS=this._y1);this.cover(Cp,Rk).cover(XQ,AS);for(r=0;r<Zc;++r)CnB(this,np[r],JS[r],n[r]);return this};
mx.cover=function(n,K){if(isNaN(n=+n)||isNaN(K=+K))return this;var r=this._x0,Zc=this._y0,ep=this._x1,xo=this._y1;if(isNaN(r))ep=(r=Math.floor(n))+1,xo=(Zc=Math.floor(K))+1;else if(r>n||n>ep||Zc>K||K>xo){var np=ep-r,JS=this._root,Cp;switch(Cp=(K<(Zc+xo)/2)<<1|n<(r+ep)/2){case 0:do{var Rk=Array(4);Rk[Cp]=JS;JS=Rk}while(np*=2,ep=r+np,xo=Zc+np,n>ep||K>xo);break;case 1:do Rk=Array(4),Rk[Cp]=JS,JS=Rk;while(np*=2,r=ep-np,xo=Zc+np,r>n||K>xo);break;case 2:do Rk=Array(4),Rk[Cp]=JS,JS=Rk;while(np*=2,ep=r+np,
Zc=xo-np,n>ep||Zc>K);break;case 3:do Rk=Array(4),Rk[Cp]=JS,JS=Rk;while(np*=2,r=ep-np,Zc=xo-np,r>n||Zc>K)}this._root&&this._root.length&&(this._root=JS)}else return this;this._x0=r;this._y0=Zc;this._x1=ep;this._y1=xo;return this};
mx.data=function(){var n=[];this.visit(function(K){if(!K.length){do n.push(K.data);while(K=K.next)}});
return n};
mx.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
mx.find=function(n,K,r){var Zc=this._x0,ep=this._y0,xo,np,JS,Cp,Rk=this._x1,XQ=this._y1,AS=[],jm=this._root,Uw;jm&&AS.push(new Yz(jm,Zc,ep,Rk,XQ));r==null?r=Infinity:(Zc=n-r,ep=K-r,Rk=n+r,XQ=K+r,r*=r);for(;Uw=AS.pop();)if(!(!(jm=Uw.node)||(xo=Uw.x0)>Rk||(np=Uw.y0)>XQ||(JS=Uw.x1)<Zc||(Cp=Uw.y1)<ep))if(jm.length){Uw=(xo+JS)/2;var uY=(np+Cp)/2;AS.push(new Yz(jm[3],Uw,uY,JS,Cp),new Yz(jm[2],xo,uY,Uw,Cp),new Yz(jm[1],Uw,np,JS,uY),new Yz(jm[0],xo,np,Uw,uY));if(jm=(K>=uY)<<1|n>=Uw)Uw=AS[AS.length-1],AS[AS.length-
1]=AS[AS.length-1-jm],AS[AS.length-1-jm]=Uw}else if(Uw=n-+this._x.call(null,jm.data),uY=K-+this._y.call(null,jm.data),Uw=Uw*Uw+uY*uY,Uw<r){var wV=Math.sqrt(r=Uw);Zc=n-wV;ep=K-wV;Rk=n+wV;XQ=K+wV;wV=jm.data}return wV};
mx.remove=function(n){if(isNaN(Cp=+this._x.call(null,n))||isNaN(Rk=+this._y.call(null,n)))return this;var K,r=this._root,Zc,ep=this._x0,xo=this._y0,np=this._x1,JS=this._y1,Cp,Rk,XQ,AS,jm,Uw,uY;if(!r)return this;if(r.length)for(;;){(jm=Cp>=(XQ=(ep+np)/2))?ep=XQ:np=XQ;(Uw=Rk>=(AS=(xo+JS)/2))?xo=AS:JS=AS;if(!(K=r,r=r[uY=Uw<<1|jm]))return this;if(!r.length)break;if(K[uY+1&3]||K[uY+2&3]||K[uY+3&3]){var wV=K;var cb=uY}}for(;r.data!==n;)if(!(Zc=r,r=r.next))return this;(n=r.next)&&delete r.next;if(Zc)return n?
Zc.next=n:delete Zc.next,this;if(!K)return this._root=n,this;n?K[uY]=n:delete K[uY];(r=K[0]||K[1]||K[2]||K[3])&&r===(K[3]||K[2]||K[1]||K[0])&&!r.length&&(wV?wV[cb]=r:this._root=r);return this};
mx.removeAll=function(n){for(var K=0,r=n.length;K<r;++K)this.remove(n[K]);return this};
mx.root=function(){return this._root};
mx.size=function(){var n=0;this.visit(function(K){if(!K.length){do++n;while(K=K.next)}});
return n};
mx.visit=function(n){var K=[],r,Zc=this._root,ep,xo,np,JS,Cp;for(Zc&&K.push(new Yz(Zc,this._x0,this._y0,this._x1,this._y1));r=K.pop();)if(!n(Zc=r.node,xo=r.x0,np=r.y0,JS=r.x1,Cp=r.y1)&&Zc.length){r=(xo+JS)/2;var Rk=(np+Cp)/2;(ep=Zc[3])&&K.push(new Yz(ep,r,Rk,JS,Cp));(ep=Zc[2])&&K.push(new Yz(ep,xo,Rk,r,Cp));(ep=Zc[1])&&K.push(new Yz(ep,r,np,JS,Rk));(ep=Zc[0])&&K.push(new Yz(ep,xo,np,r,Rk))}};
mx.visitAfter=function(n){var K=[],r=[],Zc;for(this._root&&K.push(new Yz(this._root,this._x0,this._y0,this._x1,this._y1));Zc=K.pop();){var ep=Zc.node;if(ep.length){var xo,np=Zc.x0,JS=Zc.y0,Cp=Zc.x1,Rk=Zc.y1,XQ=(np+Cp)/2,AS=(JS+Rk)/2;(xo=ep[0])&&K.push(new Yz(xo,np,JS,XQ,AS));(xo=ep[1])&&K.push(new Yz(xo,XQ,JS,Cp,AS));(xo=ep[2])&&K.push(new Yz(xo,np,AS,XQ,Rk));(xo=ep[3])&&K.push(new Yz(xo,XQ,AS,Cp,Rk))}r.push(Zc)}for(;Zc=r.pop();)n(Zc.node,Zc.x0,Zc.y0,Zc.x1,Zc.y1);return this};
mx.x=function(n){return arguments.length?(this._x=n,this):this._x};
mx.y=function(n){return arguments.length?(this._y=n,this):this._y};
var bHi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;PTG.prototype=SQ0.prototype;SQ0.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 JEt,RyS={"%":function(n,K){return(n*100).toFixed(K)},
b:function(n){return Math.round(n).toString(2)},
c:function(n){return n+""},
d:function(n){return Math.round(n).toString(10)},
e:function(n,K){return n.toExponential(K)},
f:function(n,K){return n.toFixed(K)},
g:function(n,K){return n.toPrecision(K)},
o:function(n){return Math.round(n).toString(8)},
p:function(n,K){return rm2(n*100,K)},
r:rm2,s:function(n,K){var r=wJG(n,K);if(!r)return n+"";var Zc=r[0];r=r[1];r=r-(JEt=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1;var ep=Zc.length;return r===ep?Zc:r>ep?Zc+Array(r-ep+1).join("0"):r>0?Zc.slice(0,r)+"."+Zc.slice(r):"0."+Array(1-r).join("0")+wJG(n,Math.max(0,K+r-1))[0]},
X:function(n){return Math.round(n).toString(16).toUpperCase()},
x:function(n){return Math.round(n).toString(16)}},zyV="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),egs;
(function(n){return egs=rTu(n)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});lo.prototype={constructor:lo,reset:function(){this.s=this.t=0},
add:function(n){Dn2(mCb,n,this.t);Dn2(this,mCb.s,this.s);this.s?this.t+=mCb.t:this.s=mCb.t},
valueOf:function(){return this.s}};
var mCb=new lo,gX=Math.PI,pa=gX/2,hyS=gX/4,QVl=gX*2,Gn8=gX/180,Hm=Math.abs,wmR=Math.atan,B_k=Math.atan2,FL=Math.cos,Xk=Math.sin,tzp=Math.sqrt;new lo;new lo;new lo;var xKc=new lo;(function(n,K,r,Zc){return function(ep){function xo($E,X_){n($E,X_)&&ep.point($E,X_)}
function np($E,X_){jm.point($E,X_)}
function JS(){Kf.point=np;jm.lineStart()}
function Cp(){Kf.point=xo;jm.lineEnd()}
function Rk($E,X_){Sg.push([$E,X_]);uY.point($E,X_)}
function XQ(){uY.lineStart();Sg=[]}
function AS(){Rk(Sg[0][0],Sg[0][1]);uY.lineEnd();var $E=uY.clean(),X_=Uw.result(),ar=X_.length,Co;Sg.pop();cb.push(Sg);Sg=null;if(ar)if($E&1){if(ar=X_[0],(X_=ar.length-1)>0){wV||(ep.polygonStart(),wV=!0);ep.lineStart();for($E=0;$E<X_;++$E)ep.point((Co=ar[$E])[0],Co[1]);ep.lineEnd()}}else ar>1&&$E&2&&X_.push(X_.pop().concat(X_.shift())),Kq.push(X_.filter(Rri))}
var jm=K(ep),Uw=zrl(),uY=K(Uw),wV=!1,cb,Kq,Sg,Kf={point:xo,lineStart:JS,lineEnd:Cp,polygonStart:function(){Kf.point=Rk;Kf.lineStart=XQ;Kf.lineEnd=AS;Kq=[];cb=[]},
polygonEnd:function(){Kf.point=xo;Kf.lineStart=JS;Kf.lineEnd=Cp;var $E=Kq,X_=$E.length;var ar=-1;for(var Co=0,uw,eq;++ar<X_;)Co+=$E[ar].length;for(uw=Array(Co);--X_>=0;)for(eq=$E[X_],ar=eq.length;--ar>=0;)uw[--Co]=eq[ar];Kq=uw;$E=cb;X_=Zc[0];Co=Zc[1];var Zd=Xk(Co);ar=[Xk(X_),-FL(X_),0];eq=uw=0;xKc.reset();Zd===1?Co=pa+1E-6:Zd===-1&&(Co=-pa-1E-6);Zd=0;for(var gl=$E.length;Zd<gl;++Zd)if(m6=(d3=$E[Zd]).length){var d3,m6,dP=d3[m6-1],PJ=dP[0],b$=dP[1]/2+hyS,gNR=Xk(b$),yEp=FL(b$);for(b$=0;b$<m6;++b$,PJ=
tuc,gNR=HZQ,yEp=jZ,dP=sbR){var sbR=d3[b$],tuc=sbR[0];jZ=sbR[1]/2+hyS;var HZQ=Xk(jZ),jZ=FL(jZ),RG=tuc-PJ,jYc=RG>=0?1:-1,pmn=jYc*RG,nNo=pmn>gX;gNR*=HZQ;xKc.add(B_k(gNR*jYc*Xk(pmn),yEp*jZ+gNR*FL(pmn)));uw+=nNo?RG+jYc*QVl:RG;nNo^PJ>=X_^tuc>=X_&&(dP=P_S(N_Q(dP),N_Q(sbR)),SE$(dP),PJ=P_S(ar,dP),SE$(PJ),PJ=(nNo^RG>=0?-1:1)*xCG(PJ[2]),Co>PJ||Co===PJ&&(dP[0]||dP[1]))&&(eq+=nNo^RG>=0?1:-1)}}$E=(uw<-1E-6||uw<1E-6&&xKc<-1E-6)^eq&1;Kq.length?(wV||(ep.polygonStart(),wV=!0),JV5(Kq,DjG,$E,r,ep)):$E&&(wV||(ep.polygonStart(),
wV=!0),ep.lineStart(),r(null,null,1,ep),ep.lineEnd());wV&&(ep.polygonEnd(),wV=!1);Kq=cb=null},
sphere:function(){ep.polygonStart();ep.lineStart();r(null,null,1,ep);ep.lineEnd();ep.polygonEnd()}};
return Kf}})(function(){return!0},function(n){var K=NaN,r=NaN,Zc=NaN,ep;
return{lineStart:function(){n.lineStart();ep=1},
point:function(xo,np){var JS=xo>0?gX:-gX,Cp=Hm(xo-K);if(Hm(Cp-gX)<1E-6)n.point(K,r=(r+np)/2>0?pa:-pa),n.point(Zc,r),n.lineEnd(),n.lineStart(),n.point(JS,r),n.point(xo,r),ep=0;else if(Zc!==JS&&Cp>=gX){Hm(K-Zc)<1E-6&&(K-=Zc*1E-6);Hm(xo-JS)<1E-6&&(xo-=JS*1E-6);Cp=K;var Rk=r,XQ=xo,AS,jm,Uw=Xk(Cp-XQ);r=Hm(Uw)>1E-6?wmR((Xk(Rk)*(jm=FL(np))*Xk(XQ)-Xk(np)*(AS=FL(Rk))*Xk(Cp))/(AS*jm*Uw)):(Rk+np)/2;n.point(Zc,r);n.lineEnd();n.lineStart();n.point(JS,r);ep=0}n.point(K=xo,r=np);Zc=JS},
lineEnd:function(){n.lineEnd();K=r=NaN},
clean:function(){return 2-ep}}},function(n,K,r,Zc){n==null?(r*=pa,Zc.point(-gX,r),Zc.point(0,r),Zc.point(gX,r),Zc.point(gX,0),Zc.point(gX,-r),Zc.point(0,-r),Zc.point(-gX,-r),Zc.point(-gX,0),Zc.point(-gX,r)):Hm(n[0]-K[0])>1E-6?(n=n[0]<K[0]?gX:-gX,r=r*n/2,Zc.point(-n,r),Zc.point(0,r),Zc.point(n,r)):Zc.point(K[0],K[1])},[-gX,
-pa]);new lo;new lo;new lo;new lo;ZEc.prototype={constructor:ZEc,point:function(n,K){this.stream.point(n,K)},
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()}};
FL(30*Gn8);(function(n){return function(K){var r=new ZEc,Zc;for(Zc in n)r[Zc]=n[Zc];r.stream=K;return r}})({point:function(n,K){this.stream.point(n*Gn8,K*Gn8)}});
kNV(function(n){return tzp(2/(1+n))}).invert=eZ(function(n){return 2*xCG(n/2)});
kNV(function(n){return(n=n>1?0:n<-1?gX:Math.acos(n))&&n/Xk(n)}).invert=eZ(function(n){return n});
tzp(3);eZ(wmR);eZ(xCG);eZ(function(n){return 2*wmR(n)});
Q0.prototype=OZV.prototype={constructor:Q0,count:function(){return this.eachAfter(N$5)},
each:function(n){var K,r=[this],Zc;do{var ep=r.reverse();for(r=[];K=ep.pop();)if(n(K),K=K.children){var xo=0;for(Zc=K.length;xo<Zc;++xo)r.push(K[xo])}}while(r.length);return this},
eachAfter:function(n){for(var K,r=[this],Zc=[],ep,xo;K=r.pop();)if(Zc.push(K),K=K.children)for(ep=0,xo=K.length;ep<xo;++ep)r.push(K[ep]);for(;K=Zc.pop();)n(K);return this},
eachBefore:function(n){for(var K,r=[this],Zc;K=r.pop();)if(n(K),K=K.children)for(Zc=K.length-1;Zc>=0;--Zc)r.push(K[Zc]);return this},
sum:function(n){return this.eachAfter(function(K){for(var r=+n(K.data)||0,Zc=K.children,ep=Zc&&Zc.length;--ep>=0;)r+=Zc[ep].value;K.value=r})},
sort:function(n){return this.eachBefore(function(K){K.children&&K.children.sort(n)})},
path:function(n){var K=this;var r=K;var Zc=n;if(r!==Zc){var ep=r.ancestors(),xo=Zc.ancestors(),np=null;r=ep.pop();for(Zc=xo.pop();r===Zc;)np=r,r=ep.pop(),Zc=xo.pop();r=np}for(Zc=[K];K!==r;)K=K.parent,Zc.push(K);for(K=Zc.length;n!==r;)Zc.splice(K,0,n),n=n.parent;return Zc},
ancestors:function(){for(var n=this,K=[n];n=n.parent;)K.push(n);return K},
links:function(){var n=this,K=[];n.each(function(r){r!==n&&K.push({source:r.parent,target:r})});
return K},
copy:function(){return OZV(this).eachBefore(ZMu)}};
(function(n,K){this._=n;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=K}).prototype=Object.create(Q0.prototype);
var knR=new Date,Bxp=new Date,cEg=Rn(function(){},function(n,K){n.setTime(+n+K)},function(n,K){return K-n});
cEg.every=function(n){n=Math.floor(n);return isFinite(n)&&n>0?n>1?Rn(function(K){K.setTime(Math.floor(K/n)*n)},function(K,r){K.setTime(+K+r*n)},function(K,r){return(r-K)/n}):cEg:null};
Rn(function(n){n.setTime(Math.floor(n/1E3)*1E3)},function(n,K){n.setTime(+n+K*1E3)},function(n,K){return(K-n)/1E3},function(n){return n.getUTCSeconds()});
Rn(function(n){n.setTime(Math.floor(n/6E4)*6E4)},function(n,K){n.setTime(+n+K*6E4)},function(n,K){return(K-n)/6E4},function(n){return n.getMinutes()});
Rn(function(n){var K=n.getTimezoneOffset()*6E4%36E5;K<0&&(K+=36E5);n.setTime(Math.floor((+n-K)/36E5)*36E5+K)},function(n,K){n.setTime(+n+K*36E5)},function(n,K){return(K-n)/36E5},function(n){return n.getHours()});
var o5$=Rn(function(n){n.setHours(0,0,0,0)},function(n,K){n.setDate(n.getDate()+K)},function(n,K){return(K-n-(K.getTimezoneOffset()-n.getTimezoneOffset())*6E4)/864E5},function(n){return n.getDate()-1}),ZNm=s1(0),Txp=s1(1);
s1(2);s1(3);var IJp=s1(4);s1(5);s1(6);Rn(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,K){n.setMonth(n.getMonth()+K)},function(n,K){return K.getMonth()-n.getMonth()+(K.getFullYear()-n.getFullYear())*12},function(n){return n.getMonth()});
var rC=Rn(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,K){n.setFullYear(n.getFullYear()+K)},function(n,K){return K.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});
rC.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Rn(function(K){K.setFullYear(Math.floor(K.getFullYear()/n)*n);K.setMonth(0,1);K.setHours(0,0,0,0)},function(K,r){K.setFullYear(K.getFullYear()+r*n)}):null};
Rn(function(n){n.setUTCSeconds(0,0)},function(n,K){n.setTime(+n+K*6E4)},function(n,K){return(K-n)/6E4},function(n){return n.getUTCMinutes()});
Rn(function(n){n.setUTCMinutes(0,0,0)},function(n,K){n.setTime(+n+K*36E5)},function(n,K){return(K-n)/36E5},function(n){return n.getUTCHours()});
var I1S=Rn(function(n){n.setUTCHours(0,0,0,0)},function(n,K){n.setUTCDate(n.getUTCDate()+K)},function(n,K){return(K-n)/864E5},function(n){return n.getUTCDate()-1}),kCw=nz(0),OER=nz(1);
nz(2);nz(3);var oKb=nz(4);nz(5);nz(6);Rn(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,K){n.setUTCMonth(n.getUTCMonth()+K)},function(n,K){return K.getUTCMonth()-n.getUTCMonth()+(K.getUTCFullYear()-n.getUTCFullYear())*12},function(n){return n.getUTCMonth()});
var Mw=Rn(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,K){n.setUTCFullYear(n.getUTCFullYear()+K)},function(n,K){return K.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});
Mw.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Rn(function(K){K.setUTCFullYear(Math.floor(K.getUTCFullYear()/n)*n);K.setUTCMonth(0,1);K.setUTCHours(0,0,0,0)},function(K,r){K.setUTCFullYear(K.getUTCFullYear()+r*n)}):null};
var T_k={"-":"",_:" ",0:"0"},Z8=/^\s*\d+/,Sbs=/^%/,Pns=/[\\^$*+?|[\]().{}]/g,hV3;(function(n){hV3=B$w(n);in$=hV3.utcFormat;CP$=hV3.utcParse;return hV3})({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||in$("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||CP$("%Y-%m-%dT%H:%M:%S.%LZ");Oa("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Oa("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Oa("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Oa("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Oa("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Oa("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Oa("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Oa("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Oa("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Oa("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Oa("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Oa("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var UJN=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Oa);Kh(UJN);var v9G=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Oa);Kh(v9G);var GCG=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Oa);Kh(GCG);var w2G=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Oa);
Kh(w2G);var xJc=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Oa);Kh(xJc);var txu=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Oa);Kh(txu);var jVs=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Oa);Kh(jVs);var p2u=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Oa);Kh(p2u);var F9m=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Oa);Kh(F9m);var YbG=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Oa);Kh(YbG);var mJc=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Oa);Kh(mJc);var g9i=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Oa);Kh(g9i);var sVt=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Oa);Kh(sVt);var n95=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Oa);Kh(n95);var hgd=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Oa);Kh(hgd);var ymN=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Oa);Kh(ymN);var HNt=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Oa);Kh(HNt);var cmc=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Oa);Kh(cmc);var dJm=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Oa);Kh(dJm);var K9l=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Oa);Kh(K9l);var $Ji=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Oa);Kh($Ji);var uxv=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Oa);Kh(uxv);var qbv=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Oa);Kh(qbv);var W9t=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Oa);Kh(W9t);var aum=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Oa);Kh(aum);var Vxc=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Oa);Kh(Vxc);var E9c=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Oa);Kh(E9c);UKG(wg(300,.5,0),wg(-240,.5,1));UKG(wg(-100,.75,.35),wg(80,1.5,.8));UKG(wg(260,.75,.35),wg(80,1.5,.8));wg();Ht();FoG(Oa("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
FoG(Oa("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
FoG(Oa("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
FoG(Oa("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
tEJ.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(n,K){n=+n;K=+K;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,K):this._context.moveTo(n,K);break;case 1:this._point=2;default:this._context.lineTo(n,K)}}};
(function(n){function K(r){return new jQt(n(r))}
K._curve=n;return K})(function(n){return new tEJ(n)});
jQt.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(n,K){this._curve.point(K*Math.sin(n),K*-Math.cos(n))}};
lJo.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:Xmp(this,this._t0,F_a(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(n,K){var r=NaN;n=+n;K=+K;if(n!==this._x1||K!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,K):this._context.moveTo(n,K);break;case 1:this._point=2;break;case 2:this._point=3;Xmp(this,F_a(this,r=pa2(this,n,K)),r);break;default:Xmp(this,this._t0,r=pa2(this,n,K))}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=K;this._t0=r}}};
(function(n){this._context=new YEV(n)}.prototype=Object.create(lJo.prototype)).point=function(n,K){lJo.prototype.point.call(this,K,n)};
YEV.prototype={moveTo:function(n,K){this._context.moveTo(K,n)},
closePath:function(){this._context.closePath()},
lineTo:function(n,K){this._context.lineTo(K,n)},
bezierCurveTo:function(n,K,r,Zc,ep,xo){this._context.bezierCurveTo(K,n,Zc,r,xo,ep)}};
wU.prototype={constructor:wU,scale:function(n){return n===1?this:new wU(this.k*n,this.x,this.y)},
translate:function(n,K){return n===0&K===0?this:new wU(this.k,this.x+this.k*n,this.y+this.k*K)},
apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},
invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new wU(1,0,0);toY=Xl;j3.svg=j3.svg;j3.xhtml=j3.xhtml;j3.xlink=j3.xlink;j3.xml=j3.xml;j3.xmlns=j3.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 bnp="hammer_"+(Math.random()*1E6|0),rMV=function(){var M=document||document;if(!M[bnp]){var z=function(){(function(J,R,D,N){function Z(Fn,dR,VH){return setTimeout(Q(Fn,VH),dR)}
function B(Fn,dR,VH){return Array.isArray(Fn)?(O(Fn,VH[dR],VH),!0):!1}
function O(Fn,dR,VH){var QV;if(Fn)if(Fn.forEach)Fn.forEach(dR,VH);else if(Fn.length!==N){var Iv=0;for(QV=Fn.length;Iv<QV;Iv++)dR.call(VH,Fn[Iv],Iv,Fn)}else for(Iv in Fn)Fn.hasOwnProperty(Iv)&&dR.call(VH,Fn[Iv],Iv,Fn)}
function X(Fn,dR,VH){for(var QV=Object.keys(dR),Iv=0,gi=QV.length;Iv<gi;Iv++)if(!VH||VH&&Fn[QV[Iv]]===N)Fn[QV[Iv]]=dR[QV[Iv]];return Fn}
function l(Fn,dR){return X(Fn,dR,!0)}
function e(Fn,dR,VH){dR=dR.prototype;var QV=Fn.prototype=Object.create(dR);QV.constructor=Fn;QV._super=dR;VH&&X(QV,VH)}
function Q(Fn,dR){return function(){return Fn.apply(dR,arguments)}}
function v(Fn,dR){return typeof Fn=="function"?Fn.apply(dR?dR[0]||N:N,dR):Fn}
function x(Fn,dR,VH){O(y(dR),function(QV){Fn.addEventListener(QV,VH,!1)})}
function m(Fn,dR,VH){O(y(dR),function(QV){Fn.removeEventListener(QV,VH,!1)})}
function y(Fn){return Fn.trim().split(/\s+/g)}
function H(Fn,dR,VH){if(Fn.indexOf&&!VH)return Fn.indexOf(dR);for(var QV=0,Iv=Fn.length;QV<Iv;QV++)if(VH&&Fn[QV][VH]==dR||!VH&&Fn[QV]===dR)return QV;return-1}
function q(Fn,dR,VH){for(var QV=[],Iv=[],gi=0,ti=Fn.length;gi<ti;gi++){var xp=dR?Fn[gi][dR]:Fn[gi];H(Iv,xp)<0&&QV.push(Fn[gi]);Iv[gi]=xp}VH&&(QV=dR?QV.sort(function(wg,yu){return wg[dR]>yu[dR]}):QV.sort());
return QV}
function b(Fn,dR){for(var VH,QV=dR[0].toUpperCase()+dR.slice(1),Iv=0,gi=ZV.length;Iv<gi;Iv++)if(VH=(VH=ZV[Iv])?VH+QV:dR,VH in Fn)return VH;return N}
function V(Fn,dR){var VH=this;this.manager=Fn;this.callback=dR;this.element=Fn.element;this.target=Fn.options.inputTarget;this.domHandler=function(QV){v(Fn.options.enable,[Fn])&&VH.handler(QV)};
this.evEl&&x(this.element,this.evEl,this.domHandler);this.evTarget&&x(this.target,this.evTarget,this.domHandler);this.evWin&&x(J,this.evWin,this.domHandler)}
function E(Fn){var dR;F3?dR=qb:UF?dR=cY:Xl?dR=Pu:dR=wR;return new dR(Fn,L)}
function L(Fn,dR,VH){var QV=VH.pointers.length,Iv=VH.changedPointers.length,gi=dR&1&&QV-Iv===0;VH.isFirst=!!gi;VH.isFinal=!!(dR&12&&QV-Iv===0);gi&&(Fn.session={});VH.eventType=dR;dR=Fn.session;QV=VH.pointers;Iv=QV.length;dR.firstInput||(dR.firstInput=z8(VH));Iv>1&&!dR.firstMultiple?dR.firstMultiple=z8(VH):Iv===1&&(dR.firstMultiple=!1);gi=dR.firstInput;var ti=(Iv=dR.firstMultiple)?Iv.center:gi.center,xp=VH.center=O8(QV);VH.timeStamp=Yp();VH.deltaTime=VH.timeStamp-gi.timeStamp;VH.angle=te(ti,xp);VH.distance=
vY(ti,xp);gi=VH.center;ti=dR.offsetDelta||{};xp=dR.prevDelta||{};var wg=dR.prevInput||{};if(VH.eventType===1||wg.eventType===4)xp=dR.prevDelta={x:wg.deltaX||0,y:wg.deltaY||0},ti=dR.offsetDelta={x:gi.x,y:gi.y};VH.deltaX=xp.x+(gi.x-ti.x);VH.deltaY=xp.y+(gi.y-ti.y);VH.offsetDirection=I3(VH.deltaX,VH.deltaY);Iv?(gi=Iv.pointers,gi=vY(QV[0],QV[1],Ht)/vY(gi[0],gi[1],Ht)):gi=1;VH.scale=gi;Iv?(Iv=Iv.pointers,QV=te(QV[1],QV[0],Ht)-te(Iv[1],Iv[0],Ht)):QV=0;VH.rotation=QV;ti=dR.lastInterval||VH;QV=VH.timeStamp-
ti.timeStamp;VH.eventType!=8&&(QV>25||ti.velocity===N)?(gi=ti.deltaX-VH.deltaX,ti=ti.deltaY-VH.deltaY,xp=gi/QV||0,wg=ti/QV||0,QV=xp,Iv=wg,xp=FQ(xp)>FQ(wg)?xp:wg,gi=I3(gi,ti),dR.lastInterval=VH):(xp=ti.velocity,QV=ti.velocityX,Iv=ti.velocityY,gi=ti.direction);VH.velocity=xp;VH.velocityX=QV;VH.velocityY=Iv;VH.direction=gi;dR=Fn.element;a:{for(QV=VH.srcEvent.target;QV;){if(QV==dR){QV=!0;break a}QV=QV.parentNode}QV=!1}QV&&(dR=VH.srcEvent.target);VH.target=dR;Fn.emit("hammer.input",VH);Fn.recognize(VH);
Fn.session.prevInput=VH}
function z8(Fn){for(var dR=[],VH=0;VH<Fn.pointers.length;VH++)dR[VH]={clientX:em(Fn.pointers[VH].clientX),clientY:em(Fn.pointers[VH].clientY)};return{timeStamp:Yp(),pointers:dR,center:O8(dR),deltaX:Fn.deltaX,deltaY:Fn.deltaY}}
function O8(Fn){var dR=Fn.length;if(dR===1)return{x:em(Fn[0].clientX),y:em(Fn[0].clientY)};for(var VH=0,QV=0,Iv=0;Iv<dR;Iv++)VH+=Fn[Iv].clientX,QV+=Fn[Iv].clientY;return{x:em(VH/dR),y:em(QV/dR)}}
function I3(Fn,dR){return Fn===dR?1:FQ(Fn)>=FQ(dR)?Fn>0?2:4:dR>0?8:16}
function vY(Fn,dR,VH){VH||(VH=qB);var QV=dR[VH[0]]-Fn[VH[0]];Fn=dR[VH[1]]-Fn[VH[1]];return Math.sqrt(QV*QV+Fn*Fn)}
function te(Fn,dR,VH){VH||(VH=qB);return Math.atan2(dR[VH[1]]-Fn[VH[1]],dR[VH[0]]-Fn[VH[0]])*180/Math.PI}
function wR(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function qb(){this.evEl=o$;this.evWin=wc;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function cY(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function Pu(){V.apply(this,arguments);var Fn=Q(this.handler,this);this.touch=new cY(this.manager,Fn);this.mouse=new wR(this.manager,Fn)}
function yV(Fn,dR){this.manager=Fn;this.set(dR)}
function Ik(Fn){if(Fn.indexOf("none")>-1)return"none";var dR=Fn.indexOf("pan-x")>-1,VH=Fn.indexOf("pan-y")>-1;return dR&&VH?"pan-x pan-y":dR||VH?dR?"pan-x":"pan-y":Fn.indexOf("manipulation")>-1?"manipulation":"auto"}
function rR(Fn){this.id=Gc++;this.manager=null;this.options=l(Fn||{},this.defaults);Fn=this.options.enable;this.options.enable=Fn===N?!0:Fn;this.state=1;this.simultaneous={};this.requireFail=[]}
function ea(Fn){return Fn==16?"down":Fn==8?"up":Fn==2?"left":Fn==4?"right":""}
function ok(Fn,dR){return(dR=dR.manager)?dR.get(Fn):Fn}
function s$(){rR.apply(this,arguments)}
function pw(){s$.apply(this,arguments);this.pY=this.pX=null}
function iJ(){s$.apply(this,arguments)}
function Nb(){rR.apply(this,arguments);this._input=this._timer=null}
function MB(){s$.apply(this,arguments)}
function vu(){s$.apply(this,arguments)}
function Tc(){rR.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Gt(Fn,dR){dR=dR||{};var VH=dR.recognizers;dR.recognizers=VH===N?Gt.defaults.preset:VH;return new zc(Fn,dR)}
function zc(Fn,dR){dR=dR||{};this.options=l(dR,Gt.defaults);this.options.inputTarget=this.options.inputTarget||Fn;this.handlers={};this.session={};this.recognizers=[];this.element=Fn;this.input=E(this);this.touchAction=new yV(this,this.options.touchAction);My(this,!0);O(dR.recognizers,function(VH){var QV=this.add(new VH[0](VH[1]));VH[2]&&QV.recognizeWith(VH[2]);VH[3]&&QV.requireFailure(VH[2])},this)}
function My(Fn,dR){var VH=Fn.element;O(Fn.options.cssProps,function(QV,Iv){VH.style[b(VH.style,Iv)]=dR?QV:""})}
function MN(Fn,dR){var VH=R.createEvent("Event");VH.initEvent(Fn,!0,!0);VH.gesture=dR;dR.target.dispatchEvent(VH)}
var ZV=" webkit moz MS ms o".split(" "),Lv=R.createElement("div"),em=Math.round,FQ=Math.abs,Yp=Date.now,Gc=1,By=/mobile|tablet|ip(ad|hone|od)|android/i,Xl="ontouchstart"in J,F3=b(J,"PointerEvent")!==N,UF=Xl&&By.test(navigator.userAgent),qB=["x","y"],Ht=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler);this.evTarget&&m(this.target,this.evTarget,this.domHandler);this.evWin&&m(J,this.evWin,this.domHandler)}};
var Vu={mousedown:1,mousemove:2,mouseup:4};e(wR,V,{handler:function(Fn){var dR=Vu[Fn.type];dR&1&&Fn.button===0&&(this.pressed=!0);dR&2&&Fn.which!==1&&(dR=4);this.pressed&&this.allow&&(dR&4&&(this.pressed=!1),this.callback(this.manager,dR,{pointers:[Fn],changedPointers:[Fn],pointerType:"mouse",srcEvent:Fn}))}});
var Rr={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},NH={2:"touch",3:"pen",4:"mouse",5:"kinect"},o$="pointerdown",wc="pointermove pointerup pointercancel";J.MSPointerEvent&&(o$="MSPointerDown",wc="MSPointerMove MSPointerUp MSPointerCancel");e(qb,V,{handler:function(Fn){var dR=this.store,VH=!1,QV=Fn.type.toLowerCase().replace("ms","");QV=Rr[QV];var Iv=NH[Fn.pointerType]||Fn.pointerType;QV&1&&(Fn.button===0||Iv=="touch")?dR.push(Fn):QV&12&&(VH=!0);var gi=H(dR,Fn.pointerId,"pointerId");
gi<0||(dR[gi]=Fn,this.callback(this.manager,QV,{pointers:dR,changedPointers:[Fn],pointerType:Iv,srcEvent:Fn}),VH&&dR.splice(gi,1))}});
var PW={touchstart:1,touchmove:2,touchend:4,touchcancel:8};e(cY,V,{handler:function(Fn){var dR=PW[Fn.type];var VH=Array.prototype.slice.call(Fn.touches,0);var QV=this.targetIds;if(dR&3&&VH.length===1)QV[VH[0].identifier]=!0,QV=[VH,VH];else{var Iv,gi=Array.prototype.slice.call(Fn.targetTouches,0),ti=Array.prototype.slice.call(Fn.changedTouches,0),xp=[];if(dR===1)for(VH=0,Iv=gi.length;VH<Iv;VH++)QV[gi[VH].identifier]=!0;VH=0;for(Iv=ti.length;VH<Iv;VH++)QV[ti[VH].identifier]&&xp.push(ti[VH]),dR&12&&
delete QV[ti[VH].identifier];QV=xp.length?[q(gi.concat(xp),"identifier",!0),xp]:void 0}QV&&this.callback(this.manager,dR,{pointers:QV[0],changedPointers:QV[1],pointerType:"touch",srcEvent:Fn})}});
e(Pu,V,{handler:function(Fn,dR,VH){var QV=VH.pointerType=="mouse";if(VH.pointerType=="touch")this.mouse.allow=!1;else if(QV&&!this.mouse.allow)return;dR&12&&(this.mouse.allow=!0);this.callback(Fn,dR,VH)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var dV=b(Lv.style,"touchAction"),CY=dV!==N;yV.prototype={set:function(Fn){Fn=="compute"&&(Fn=this.compute());CY&&(this.manager.element.style[dV]=Fn);this.actions=Fn.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Fn=[];O(this.manager.recognizers,function(dR){v(dR.options.enable,[dR])&&(Fn=Fn.concat(dR.getTouchAction()))});
return Ik(Fn.join(" "))},
preventDefaults:function(Fn){if(!CY){var dR=Fn.srcEvent;Fn=Fn.offsetDirection;if(this.manager.session.prevented)dR.preventDefault();else{var VH=this.actions,QV=VH.indexOf("none")>-1,Iv=VH.indexOf("pan-y")>-1;VH=VH.indexOf("pan-x")>-1;if(QV||Iv&&VH||Iv&&Fn&6||VH&&Fn&24)return this.preventSrc(dR)}}},
preventSrc:function(Fn){this.manager.session.prevented=!0;Fn.preventDefault()}};
rR.prototype={defaults:{},set:function(Fn){X(this.options,Fn);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Fn){if(B(Fn,"recognizeWith",this))return this;var dR=this.simultaneous;Fn=ok(Fn,this);dR[Fn.id]||(dR[Fn.id]=Fn,Fn.recognizeWith(this));return this},
dropRecognizeWith:function(Fn){if(B(Fn,"dropRecognizeWith",this))return this;Fn=ok(Fn,this);delete this.simultaneous[Fn.id];return this},
requireFailure:function(Fn){if(B(Fn,"requireFailure",this))return this;var dR=this.requireFail;Fn=ok(Fn,this);H(dR,Fn)===-1&&(dR.push(Fn),Fn.requireFailure(this));return this},
dropRequireFailure:function(Fn){if(B(Fn,"dropRequireFailure",this))return this;Fn=ok(Fn,this);Fn=H(this.requireFail,Fn);Fn>-1&&this.requireFail.splice(Fn,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Fn){return!!this.simultaneous[Fn.id]},
emit:function(Fn){function dR(Iv){VH.manager.emit(VH.options.event+(Iv?QV&16?"cancel":QV&8?"end":QV&4?"move":QV&2?"start":"":""),Fn)}
var VH=this,QV=this.state;QV<8&&dR(!0);dR();QV>=8&&dR(!0)},
tryEmit:function(Fn){if(this.canEmit())return this.emit(Fn);this.state=32},
canEmit:function(){for(var Fn=0;Fn<this.requireFail.length;Fn++)if(!(this.requireFail[Fn].state&33))return!1;return!0},
recognize:function(Fn){Fn=X({},Fn);v(this.options.enable,[this,Fn])?(this.state&56&&(this.state=1),this.state=this.process(Fn),this.state&30&&this.tryEmit(Fn)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
e(s$,rR,{defaults:{pointers:1},attrTest:function(Fn){var dR=this.options.pointers;return dR===0||Fn.pointers.length===dR},
process:function(Fn){var dR=this.state,VH=Fn.eventType,QV=dR&6;Fn=this.attrTest(Fn);return QV&&(VH&8||!Fn)?dR|16:QV||Fn?VH&4?dR|8:dR&2?dR|4:2:32}});
e(pw,s$,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Fn=this.options.direction;if(Fn===30)return["none"];var dR=[];Fn&6&&dR.push("pan-y");Fn&24&&dR.push("pan-x");return dR},
directionTest:function(Fn){var dR=this.options,VH=!0,QV=Fn.distance,Iv=Fn.direction,gi=Fn.deltaX,ti=Fn.deltaY;Iv&dR.direction||(dR.direction&6?(Iv=gi===0?1:gi<0?2:4,VH=gi!=this.pX,QV=Math.abs(Fn.deltaX)):(Iv=ti===0?1:ti<0?8:16,VH=ti!=this.pY,QV=Math.abs(Fn.deltaY)));Fn.direction=Iv;return VH&&QV>dR.threshold&&Iv&dR.direction},
attrTest:function(Fn){return s$.prototype.attrTest.call(this,Fn)&&(this.state&2||!(this.state&2)&&this.directionTest(Fn))},
emit:function(Fn){this.pX=Fn.deltaX;this.pY=Fn.deltaY;var dR=ea(Fn.direction);dR&&this.manager.emit(this.options.event+dR,Fn);this._super.emit.call(this,Fn)}});
e(iJ,s$,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Fn){return this._super.attrTest.call(this,Fn)&&(Math.abs(Fn.scale-1)>this.options.threshold||this.state&2)},
emit:function(Fn){this._super.emit.call(this,Fn);Fn.scale!==1&&this.manager.emit(this.options.event+(Fn.scale<1?"in":"out"),Fn)}});
e(Nb,rR,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Fn){var dR=this.options,VH=Fn.pointers.length===dR.pointers,QV=Fn.distance<dR.threshold,Iv=Fn.deltaTime>dR.time;this._input=Fn;if(!QV||!VH||Fn.eventType&12&&!Iv)this.reset();else if(Fn.eventType&1)this.reset(),this._timer=Z(function(){this.state=8;this.tryEmit()},dR.time,this);
else if(Fn.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Fn){this.state===8&&(Fn&&Fn.eventType&4?this.manager.emit(this.options.event+"up",Fn):(this._input.timeStamp=Yp(),this.manager.emit(this.options.event,this._input)))}});
e(MB,s$,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Fn){return this._super.attrTest.call(this,Fn)&&(Math.abs(Fn.rotation)>this.options.threshold||this.state&2)}});
e(vu,s$,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return pw.prototype.getTouchAction.call(this)},
attrTest:function(Fn){var dR=this.options.direction;if(dR&30)var VH=Fn.velocity;else dR&6?VH=Fn.velocityX:dR&24&&(VH=Fn.velocityY);return this._super.attrTest.call(this,Fn)&&dR&Fn.direction&&FQ(VH)>this.options.velocity&&Fn.eventType&4},
emit:function(Fn){var dR=ea(Fn.direction);dR&&this.manager.emit(this.options.event+dR,Fn);this.manager.emit(this.options.event,Fn)}});
e(Tc,rR,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Fn){var dR=this.options,VH=Fn.pointers.length===dR.pointers,QV=Fn.distance<dR.threshold,Iv=Fn.deltaTime<dR.time;this.reset();if(Fn.eventType&1&&this.count===0)return this.failTimeout();if(QV&&Iv&&VH){if(Fn.eventType!=4)return this.failTimeout();VH=this.pTime?Fn.timeStamp-this.pTime<dR.interval:!0;QV=!this.pCenter||vY(this.pCenter,Fn.center)<dR.posThreshold;this.pTime=Fn.timeStamp;this.pCenter=Fn.center;QV&&VH?this.count+=1:this.count=1;this._input=Fn;if(this.count%dR.taps===0)return this.hasRequireFailures()?
(this._timer=Z(function(){this.state=8;this.tryEmit()},dR.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Z(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))}});
Gt.VERSION="2.0.2";Gt.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[MB,{enable:!1}],[iJ,{enable:!1},["rotate"]],[vu,{direction:6}],[pw,{direction:6},["swipe"]],[Tc],[Tc,{event:"doubletap",taps:2},["tap"]],[Nb]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};zc.prototype={set:function(Fn){X(this.options,Fn);return this},
stop:function(Fn){this.session.stopped=Fn?2:1},
recognize:function(Fn){var dR=this.session;if(!dR.stopped){this.touchAction.preventDefaults(Fn);var VH=this.recognizers,QV=dR.curRecognizer;if(!QV||QV&&QV.state&8)QV=dR.curRecognizer=null;for(var Iv=0,gi=VH.length;Iv<gi;Iv++){var ti=VH[Iv];dR.stopped===2||QV&&ti!=QV&&!ti.canRecognizeWith(QV)?ti.reset():ti.recognize(Fn);!QV&&ti.state&14&&(QV=dR.curRecognizer=ti)}}},
get:function(Fn){if(Fn instanceof rR)return Fn;for(var dR=this.recognizers,VH=0;VH<dR.length;VH++)if(dR[VH].options.event==Fn)return dR[VH];return null},
add:function(Fn){if(B(Fn,"add",this))return this;var dR=this.get(Fn.options.event);dR&&this.remove(dR);this.recognizers.push(Fn);Fn.manager=this;this.touchAction.update();return Fn},
remove:function(Fn){if(B(Fn,"remove",this))return this;var dR=this.recognizers;Fn=this.get(Fn);dR.splice(H(dR,Fn),1);this.touchAction.update();return this},
on:function(Fn,dR){var VH=this.handlers;O(y(Fn),function(QV){VH[QV]=VH[QV]||[];VH[QV].push(dR)});
return this},
off:function(Fn,dR){var VH=this.handlers;O(y(Fn),function(QV){dR?VH[QV].splice(H(VH[QV],dR),1):delete VH[QV]});
return this},
emit:function(Fn,dR){this.options.domEvents&&MN(Fn,dR);var VH=this.handlers[Fn]&&this.handlers[Fn].slice();if(VH&&VH.length){dR.type=Fn;dR.preventDefault=function(){dR.srcEvent.preventDefault()};
Fn=0;for(var QV=VH.length;Fn<QV;Fn++)VH[Fn](dR)}},
destroy:function(){this.element&&My(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
X(Gt,{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:zc,Input:V,TouchAction:yV,Recognizer:rR,AttrRecognizer:s$,Tap:Tc,Pan:pw,Swipe:vu,Pinch:iJ,Rotate:MB,Press:Nb,on:x,off:m,each:O,merge:l,extend:X,inherit:e,bindFn:Q,prefixed:b});
J[D]=Gt})(window,document,"Hammer");
return window.Hammer}.call({});
z.DOCUMENT=M;M[bnp]=z}return M[bnp]};/*

 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 MFJ=function(M,z){if(M.length!==z.length)return!1;for(var J=0;J<M.length;++J)if(M[J]!==z[J])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var z$$=_.S(["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"]),J_p=z$$.next();!J_p.done;J_p=z$$.next()){var R$k=J_p.value,D6J=document.createElement("link");D6J.rel="stylesheet";D6J.href=R$k;document.head.appendChild(D6J)};var Coe,rw3,zvo,Lcp,bQb,Awp,EiY,fk8;Coe={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};rw3={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:"*"};zvo={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Lcp=/[a-z0-9*]/;bQb=/U\+/;Awp=/^arrow/;EiY=/^space(bar)?/;fk8=/^escape$/;_.pH={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(M,z){this._imperativeKeyBindings[M]=z;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(M,z){z=RvY(z);for(var J=0;J<z.length;++J)if(MB8(z[J],M))return!0;return!1},
_collectKeyBindings:function(){var M=this.behaviors.map(function(z){return z.keyBindings});
M.indexOf(this.keyBindings)===-1&&M.push(this.keyBindings);return M},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(J){for(var R in J)this._addKeyBinding(R,J[R])},this);
for(var M in this._imperativeKeyBindings)this._addKeyBinding(M,this._imperativeKeyBindings[M]);for(var z in this._keyBindings)this._keyBindings[z].sort(function(J,R){J=J[0].hasModifiers;return J===R[0].hasModifiers?0:J?-1:1})},
_addKeyBinding:function(M,z){RvY(M).forEach(function(J){this._keyBindings[J.event]=this._keyBindings[J.event]||[];this._keyBindings[J.event].push([J,z])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(M){var z=this._onKeyBindingEvent.bind(this,this._keyBindings[M]);this._boundKeyHandlers.push([this.keyEventTarget,M,z]);this.keyEventTarget.addEventListener(M,z)},this)},
_unlistenKeyEventListeners:function(){for(var M,z,J;this._boundKeyHandlers.length;)M=this._boundKeyHandlers.pop(),z=M[0],J=M[1],M=M[2],z.removeEventListener(J,M)},
_onKeyBindingEvent:function(M,z){this.stopKeyboardEventPropagation&&z.stopPropagation();if(!z.defaultPrevented)for(var J=0;J<M.length;J++){var R=M[J][0],D=M[J][1];if(MB8(R,z)&&(this._triggerKeyHandler(R,D,z),z.defaultPrevented))break}},
_triggerKeyHandler:function(M,z,J){var R=Object.create(M);R.keyboardEvent=J;M=new CustomEvent(M.event,{detail:R,cancelable:!0});this[z].call(this,M);M.defaultPrevented&&J.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
*/
_.sV({is:"iron-a11y-keys",_template:null,behaviors:[_.pH],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(M){this.keyEventTarget=M},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(M){this.fire("keys-pressed",M.detail,{})}});_.FG={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(M){this._setFocused(M.type==="focus")},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false");this.style.pointerEvents=M?"none":"";M?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var Y7={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(M){this._detectKeyboardFocus(M);M||this._setPressed(!1)},
_detectKeyboardFocus:function(M){this._setReceivedFocusFromKeyboard(!this.pointerDown&&M)},
_userActivate:function(M){this.active!==M&&(this.active=M,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(M){M=M.detail.keyboardEvent;var z=_.pu(M).localTarget;this.isLightDescendant(z)||(M.preventDefault(),M.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(M){M=_.pu(M.detail.keyboardEvent).localTarget;this.isLightDescendant(M)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(M,z){z&&z!=M&&this.hasAttribute(z)&&this.removeAttribute(z)},
_activeChanged:function(M){this.toggles?this.setAttribute(this.ariaActiveAttribute,M?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},NZS=[_.pH,
Y7];_.mT={IronButtonState:NZS,IronButtonStateImpl:Y7};_.gL={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.sv=function(M){_.sv[" "](M);this.type=M&&M.type||"default";this.key=M&&M.key;M&&"value"in M&&(this.value=M.value)};
_.sv.prototype.byKey=function(M){this.key=M;return this.value};
_.rX.Object.defineProperties(_.sv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M=this.type,z=this.key;if(M&&z)return nH[M]&&nH[M][z]},
set:function(M){var z=this.type,J=this.key;z&&J&&(z=nH[z]=nH[z]||{},M==null?delete z[J]:z[J]=M)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var M=nH[this.type];return M?Object.keys(M).map(function(z){return nH[this.type][z]},this):[]}}});
_.sv[" "]=function(){};
var nH={};_.sV({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(M,z,J){M=new _.sv({type:M,key:z});J!==void 0&&J!==M.value?M.value=J:this.value!==M.value&&(this.value=M.value);return M},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(M){M&&(this.value=this)},
byKey:function(M){return(new _.sv({type:this.type,key:M})).value}});var PEv;PEv=null;_.hT={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){PEv=new _.sv({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return PEv&&PEv.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(M){this.invalid=M===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(M);return!this.invalid},
_getValidity:function(M){return this.hasValidator()?this._validator.validate(M):!0}};var S3V={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"}},Zf$=[_.gL,
_.hT,S3V];_.sV({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 _.sv({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(M){return this.name+":"+M},this)},
applyIcon:function(M,z){this.removeIcon(M);if(z=this._cloneIcon(z,this.rtlMirroring&&this._targetIsRTL(M))){var J=_.pu(M.root||M);J.insertBefore(z,J.childNodes[0]);return M._svgIcon=z}return null},
removeIcon:function(M){M._svgIcon&&(_.pu(M.root||M).removeChild(M._svgIcon),M._svgIcon=null)},
_targetIsRTL:function(M){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(M&&M.nodeType!==Node.ELEMENT_NODE&&(M=M.host),this.__targetIsRTL=M&&window.getComputedStyle(M).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var M=Object.create(null);_.pu(this).querySelectorAll("[id]").forEach(function(z){M[z.id]=z});
return M},
_cloneIcon:function(M,z){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[M],this.size,z)},
_prepareSvgClone:function(M,z,J){if(M){M=M.cloneNode(!0);var R=document.createElementNS("http://www.w3.org/2000/svg","svg");z=M.getAttribute("viewBox")||"0 0 "+z+" "+z;var D="pointer-events: none; display: block; width: 100%; height: 100%;";J&&M.hasAttribute("mirror-in-rtl")&&(D+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");R.setAttribute("viewBox",z);R.setAttribute("preserveAspectRatio","xMidYMid meet");R.setAttribute("focusable","false");R.style&&(R.style.cssText=
D);R.appendChild(M).removeAttribute("id");return R}return null}});var k_S=function(M){this.multi=!1;this.selection=[];this.selectCallback=M};
_.P=k_S.prototype;_.P.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.P.clear=function(M){this.selection.slice().forEach(function(z){(!M||M.indexOf(z)<0)&&this.setItemSelected(z,!1)},this)};
_.P.isSelected=function(M){return this.selection.indexOf(M)>=0};
_.P.setItemSelected=function(M,z){if(M!=null&&z!==this.isSelected(M)){if(z)this.selection.push(M);else{var J=this.selection.indexOf(M);J>=0&&this.selection.splice(J,1)}this.selectCallback&&this.selectCallback(M,z)}};
_.P.select=function(M){this.multi?this.toggle(M):this.get()!==M&&(this.setItemSelected(this.get(),!1),this.setItemSelected(M,!0))};
_.P.toggle=function(M){this.setItemSelected(M,!this.isSelected(M))};_.fd={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 k_S(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.pu(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(M){return this.items?this.items.indexOf(M):-1},
select:function(M){this.selected=M},
selectPrevious:function(){var M=this.items.length,z=M-1;this.selected!==void 0&&(z=(Number(this._valueToIndex(this.selected))-1+M)%M);this.selected=this._indexToValue(z)},
selectNext:function(){var M=0;this.selected!==void 0&&(M=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(M)},
selectIndex:function(M){this.select(this._indexToValue(M))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(M){this.listen(this,M,"_activateHandler")},
_removeListener:function(M){this.unlisten(this,M,"_activateHandler")},
_activateEventChanged:function(M,z){this._removeListener(z);this._addListener(M)},
_updateItems:function(){var M=_.pu(this).queryDistributedElements(this.selectable||"*");M=Array.prototype.filter.call(M,this._bindFilterItem);this._setItems(M)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var M=this._valueToItem(this.selected);M?this._selection.select(M):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(M){return!this._excludedLocalNames[M.localName]},
_valueToItem:function(M){return M==null?null:this.items[this._valueToIndex(M)]},
_valueToIndex:function(M){if(this.attrForSelected)for(var z=0,J;J=this.items[z];z++){if(this._valueForItem(J)==M)return z}else return Number(M)},
_indexToValue:function(M){if(this.attrForSelected){if(M=this.items[M])return this._valueForItem(M)}else return M},
_valueForItem:function(M){if(!M)return null;if(!this.attrForSelected)return M=this.indexOf(M),M===-1?null:M;var z=M[Z3(this.attrForSelected)];return z!=void 0?z:M.getAttribute(this.attrForSelected)},
_applySelection:function(M,z){this.selectedClass&&this.toggleClass(this.selectedClass,z,M);this.selectedAttribute&&this.toggleAttribute.call(M,this.selectedAttribute,z);this._selectionChange();this.fire("iron-"+(z?"select":"deselect"),{item:M})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(M){return _.pu(M).observeNodes(function(z){this._updateItems();this._updateSelected();this.fire("iron-items-changed",z,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(M){M=M.target;for(var z=this.items;M&&M!=this;){var J=z.indexOf(M);if(J>=0){z=this._indexToValue(J);this._itemActivate(z,M);break}M=M.parentNode}},
_itemActivate:function(M,z){this.fire("iron-activate",{selected:M,item:z},{cancelable:!0}).defaultPrevented||this.select(M)}};var BZQ={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(M){this.multi?this._toggleSelected(M):this.selected=M},
multiChanged:function(M){this._selection.multi=M;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(M){return this._indexToValue(this.indexOf(M))},this).filter(function(M){return M!=null},this)):_.fd._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(M){M=M||[];M=(this._valuesToItems(M)||[]).filter(function(J){return J!==null&&J!==void 0});
this._selection.clear(M);for(var z=0;z<M.length;z++)this._selection.setItemSelected(M[z],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var M=this._selection.get();this.multi?(this._setSelectedItems(M),this._setSelectedItem(M.length?M[0]:null)):M!==null&&M!==void 0?(this._setSelectedItems([M]),this._setSelectedItem(M)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(M){var z=this.selectedValues.indexOf(M);z<0?this.push("selectedValues",M):this.splice("selectedValues",z,1)},
_valuesToItems:function(M){return M==null?null:M.map(function(z){return this._valueToItem(z)},this)}},Ofv=[_.fd,
BZQ];var TZV;
_.yv={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(M){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var z=this._valueToItem(M);z&&z.hasAttribute("disabled")||(this._setFocusedItem(z),BZQ.select.apply(this,arguments))},
_resetTabindices:function(){var M=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(z){z.setAttribute("tabindex",z===M?"0":"-1");z.setAttribute("aria-selected",this._selection.isSelected(z))},this)},
_updateMultiselectable:function(M){M?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(M){if(this._MODIFIER_KEYS.indexOf(M.key)===-1){this.cancelDebouncer("_clearSearchText");var z=this._searchText||"";z+=(M.key&&M.key.length==1?M.key:String.fromCharCode(M.keyCode)).toLocaleLowerCase();M=z.length;for(var J=0,R;R=this.items[J];J++)if(!R.hasAttribute("disabled")){var D=this.attrForItemTitle||"textContent";D=(R[D]||R.getAttribute(D)||"").trim();if(!(D.length<M)&&D.slice(0,M).toLocaleLowerCase()==z){this._setFocusedItem(R);break}}this._searchText=z;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var M=this.items.length,z=Number(this.indexOf(this.focusedItem)),J=1;J<M+1;J++){var R=this.items[(z-J+M)%M];if(!R.hasAttribute("disabled")){var D=_.pu(R).getOwnerRoot()||document;this._setFocusedItem(R);if(_.pu(D).activeElement==R)break}}},
_focusNext:function(){for(var M=this.items.length,z=Number(this.indexOf(this.focusedItem)),J=1;J<M+1;J++){var R=this.items[(z+J)%M];if(!R.hasAttribute("disabled")){var D=_.pu(R).getOwnerRoot()||document;this._setFocusedItem(R);if(_.pu(D).activeElement==R)break}}},
_applySelection:function(M,z){z?M.setAttribute("aria-selected","true"):M.setAttribute("aria-selected","false");_.fd._applySelection.apply(this,arguments)},
_focusedItemChanged:function(M,z){z&&z.setAttribute("tabindex","-1");!M||M.hasAttribute("disabled")||this.disabled||(M.setAttribute("tabindex","0"),M.focus())},
_onIronItemsChanged:function(M){M.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");_.yv._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);_.yv._shiftTabPressed=!1},1)},
_onFocus:function(M){!_.yv._shiftTabPressed&&(M=_.pu(M).rootTarget,M===this||typeof M.tabIndex==="undefined"||this.isLightDescendant(M))&&(this._defaultFocusAsync=this.async(function(){var z=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);z?this._setFocusedItem(z):this.items[0]&&this._focusNext()}))},
_onUpKey:function(M){this._focusPrevious();M.detail.keyboardEvent.preventDefault()},
_onDownKey:function(M){this._focusNext();M.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var M=this.focusedItem;M&&M.blur()},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down esc")||this._focusWithKeyboardEvent(M);M.stopPropagation()},
_activateHandler:function(M){_.fd._activateHandler.call(this,M);M.stopPropagation()},
_disabledChanged:function(M){M?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};TZV=[Ofv,_.pH,_.yv];_.IU$={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
_onDownKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(M){return M.ctrlKey||M.shiftKey||M.altKey||M.metaKey},
_onLeftKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),M.detail.keyboardEvent.preventDefault())},
_onRightKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),M.detail.keyboardEvent.preventDefault())},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down left right esc")||this._focusWithKeyboardEvent(M)}};
_.oCp=[TZV,_.IU$];var Xnk;Xnk=new Set;_.Hw={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):(Xnk.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},this),this._fireResize())},
assignParentResizable:function(M){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=M)&&M._interestedResizables.indexOf(this)===-1&&(M._interestedResizables.push(this),M._subscribeIronResize(this))},
stopResizeNotificationsFor:function(M){var z=this._interestedResizables.indexOf(M);z>-1&&(this._interestedResizables.splice(z,1),this._unsubscribeIronResize(M))},
_subscribeIronResize:function(M){M.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(M){M.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(M){this._notifyingDescendant?M.stopPropagation():$2||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(M){var z=_.pu(M).rootTarget;z!==this&&(z.assignParentResizable(this),this._notifyDescendant(z),M.stopPropagation())},
_parentResizableChanged:function(M){M&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(M){this.isAttached&&(this._notifyingDescendant=!0,M.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var M=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function J(){document.removeEventListener("readystatechange",J);M()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(z){z!==this&&z._findParent()},this):(Xnk.forEach(function(z){z!==this&&z._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?Xnk.delete(this):Xnk.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
*/
_.lUg={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(M,z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);z&&(M==="document"?this.scrollTarget=this._doc:typeof M==="string"?this.scrollTarget=(z=this.domHost)&&z.$?z.$[M]:_.pu(this.ownerDocument).querySelector("#"+M):this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(M){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,M):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
M)},set _scrollLeft(M){this.scrollTarget===this._doc?window.scrollTo(M,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=M)},scroll:function(M,z){if(typeof M==="object"){var J=M.left;z=M.top}else J=M;J=J||0;z=z||0;this.scrollTarget===this._doc?window.scrollTo(J,z):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=J,this.scrollTarget.scrollTop=z)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(M,z){z=z===this._doc?window:z;M?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),z.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(z.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(M){this._shouldHaveListener=M;this._toggleScrollListener(M,this.scrollTarget)}};_.sV({is:"iron-selector",_template:null,behaviors:[Ofv]});var cw={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(M){if(M.timing)for(var z in M.timing)this.animationTiming[z]=M.timing[z];return this.animationTiming},
setPrefixedProperty:function(M,z,J){for(var R={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[z],D,N=0;D=R[N];N++)M.style[D]=J;M.style[z]=J},
complete:function(){}};_.sV({is:"fade-in-animation",_template:null,behaviors:[cw],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(M))}});_.sV({is:"fade-out-animation",_template:null,behaviors:[cw],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(M))}});var e$J=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(M,z){for(var J in z)M[J]=z[J]},
_cloneConfig:function(M){var z={isClone:!0};this._copyProperties(z,M);return z},
_getAnimationConfigRecursive:function(M,z,J){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 R=M?this.animationConfig[M]:this.animationConfig;Array.isArray(R)||(R=[R]);if(R)for(var D,N=0;D=R[N];N++)if(D.animatable)D.animatable._getAnimationConfigRecursive(D.type||M,z,J);else if(D.id){var Z=z[D.id];
Z?(Z.isClone||(z[D.id]=this._cloneConfig(Z),Z=z[D.id]),this._copyProperties(Z,D)):z[D.id]=D}else J.push(D)}},
getAnimationConfig:function(M){var z={},J=[];this._getAnimationConfigRecursive(M,z,J);for(var R in z)J.push(z[R]);return J}},
{_configureAnimations:function(M){var z=[],J=[];if(M.length>0)for(var R,D=0;R=M[D];D++){var N=document.createElement(R.name);if(N.isNeonAnimation){var Z=null;N.configure||(N.configure=function(){return null});
Z=N.configure(R);J.push({result:Z,config:R})}else console.warn(this.is+":",R.name,"not found!")}for(M=0;M<J.length;M++){Z=J[M].result;R=J[M].config;try{typeof Z.cancel!="function"&&(Z=document.timeline.play(Z))}catch(B){Z=null,console.warn("Couldnt play","(",R.name,").",B)}Z&&z.push({neonAnimation:N,config:R,animation:Z})}return z},
_shouldComplete:function(M){for(var z=!0,J=0;J<M.length;J++)if(M[J].animation.playState!="finished"){z=!1;break}return z},
_complete:function(M){for(var z=0;z<M.length;z++)M[z].neonAnimation.complete(M[z].config);for(z=0;z<M.length;z++)M[z].animation.cancel()},
playAnimation:function(M,z){var J=this.getAnimationConfig(M);if(J){this._active=this._active||{};this._active[M]&&(this._complete(this._active[M]),delete this._active[M]);var R=this._configureAnimations(J);if(R.length==0)this.fire("neon-animation-finish",z,{bubbles:!1});else for(this._active[M]=R,J=0;J<R.length;J++)R[J].animation.onfinish=function(){this._shouldComplete(R)&&(this._complete(R),delete this._active[M],this.fire("neon-animation-finish",z,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var M in this._active){var z=this._active[M],J;for(J in z)z[J].animation&&z[J].animation.cancel&&z[J].animation.cancel()}this._active={}}}];var Xj=function(M,z){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.arg=z;this.name=this.constructor.name;this.constructor=Xj;this.__proto__=Xj.prototype};
_.w(Xj,Error);var Q9t=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z.prototype._marshalArgs=function(J,R,D){R=M.prototype._marshalArgs.call(this,J,R,D);if(this._legacyUndefinedCheck&&R.length>1)for(D=0;D<R.length;D++)if(R[D]===void 0||J[D].wildcard&&R[D].base===void 0)throw J=J[D].name,new Xj("Argument '"+J+"' is undefined.",J);return R};
z.prototype._addPropertyEffect=function(J,R,D){return M.prototype._addPropertyEffect.call(this,J,R,DkY(D,D&&D.info&&D.info.methodName))};
z._addTemplatePropertyEffect=function(J,R,D){return M._addTemplatePropertyEffect.call(this,J,R,DkY(D))};
return z}),U6k=_.sV.Class;
_.sV.Class=function(M,z){return U6k(M,function(J){return z?z(Q9t(J)):Q9t(J)})};
var vC$=Jn(function(M){var z=Q9t(M);M=function(){return z.apply(this,arguments)||this};
_.w(M,z);_.rX.Object.defineProperties(M.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return M}),G_g=qS.mixin;
qS.mixin=G_g?function(M){return vC$(G_g(M))}:vC$;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.dL=_.mT.IronButtonState;var DVb=K4;/*

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

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
*/
_.sV({_template:function(){if(x9V!==void 0)return x9V;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;wX2===void 0&&(wX2=document.createElement("template"));var R=wX2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return x9V=M},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.hT,_.FG],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(M){this.$.textarea.selectionStart=M},set selectionEnd(M){this.$.textarea.selectionEnd=M},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var M=this.$.textarea.validity.valid;M&&(this.required&&this.value===""?M=!1:this.hasValidator()&&(M=_.hT.validate.call(this,this.value)));this.invalid=!M;this.fire("iron-input-validate");return M},
_bindValueChanged:function(M){this.value=M},
_valueChanged:function(M){var z=this.textarea;z&&(z.value!==M&&(z.value=M||M===0?M:""),this.bindValue=M,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(M){var z=_.pu(M).path;this.value=z?z[0].value:M.target.value},
_constrain:function(M){var z;M=M||[""];for(z=this.maxRows>0&&M.length>this.maxRows?M.slice(0,this.maxRows):M.slice(0);this.rows>0&&z.length<this.rows;)z.push("");return z.join("\n")+"\u00a0"},
_valueForMirror:function(){var M=this.textarea;if(M)return this.tokens=M&&M.value?M.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var t42;var jZV;_.sV({_template:function(){if(jZV!==void 0)return jZV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;t42===void 0&&(t42=document.createElement("template"));var R=t42;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return jZV=M},
is:"tp-yt-iron-collapse",behaviors:[_.Hw],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(M,z){M=M==="auto"?"":M;z=z&&!this.noAnimation&&this.isAttached&&this._desiredSize!==M;this._desiredSize=M;this._updateTransition(!1);z&&(z=this._calcSize(),M===""&&(this.style[this._dimensionMax]="",M=this._calcSize()),this.style[this._dimensionMax]=z,this.scrollTop=this.scrollTop,this._updateTransition(!0),z=M!==z);this.style[this._dimensionMax]=M;z||this._transitionEnd()},
enableTransition:function(M){_.Yt._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!M},
_updateTransition:function(M){this.style.transitionDuration=M&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(M){_.pu(M).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var pXg;var F3t;var Ymk=void 0,m9J={properties:{sizingTarget:{type:Object,value:function(){var M;return(M=this.hostElement)!=null?M:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var M,z=_.pu((M=this.hostElement)!=null?M:
this).parentNode;z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(z=z.host);return z},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var M;this._memoizedIsRTL=window.getComputedStyle((M=this.hostElement)!=null?M:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var M;window.getComputedStyle((M=this.hostElement)!=null?M:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var M,z=window.getComputedStyle((M=this.hostElement)!=null?M:this);M=window.getComputedStyle(this.sizingTarget);var J,R,D;this._fitInfo={inlineStyle:{top:((J=this.hostElement)!=null?J:this).style.top||"",left:((R=this.hostElement)!=null?R:this).style.left||"",position:((D=this.hostElement)!=null?D:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:z.top!=="auto"?"top":z.bottom!=="auto"?"bottom":null,horizontally:z.left!=="auto"?"left":z.right!=="auto"?"right":null},sizedBy:{height:M.maxHeight!=="none",width:M.maxWidth!=="none",minWidth:parseInt(M.minWidth,10)||0,minHeight:parseInt(M.minHeight,10)||0},margin:{top:parseInt(z.marginTop,10)||0,right:parseInt(z.marginRight,10)||0,bottom:parseInt(z.marginBottom,10)||0,left:parseInt(z.marginLeft,10)||0}}}},
resetFit:function(){var M=this._fitInfo||{},z;for(z in M.sizerInlineStyle)this.sizingTarget.style[z]=M.sizerInlineStyle[z];for(z in M.inlineStyle){var J=void 0;((J=this.hostElement)!=null?J:this).style[z]=M.inlineStyle[z]}this._fitInfo=null},
refit:function(){var M=this.sizingTarget.scrollLeft,z=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=M;this.sizingTarget.scrollTop=z},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var M;((M=this.hostElement)!=null?M:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var z;((z=this.hostElement)!=null?z:this).style.left="0px";var J;((J=this.hostElement)!=null?J:this).style.top="0px";var R,D=((R=this.hostElement)!=null?R:this).getBoundingClientRect();z=this.__getNormalizedRect(this.positionTarget);R=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(R={left:R.left+24,right:R.right-24,top:R.top+24,bottom:R.bottom-24});if(this.expandSizingTargetForScrollbars){var N=this.sizingTarget.offsetWidth;var Z=this.sizingTarget.offsetHeight;var B=this.sizingTarget.clientWidth;var O=this.sizingTarget.clientHeight}M=this._fitInfo.margin;z=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:D.width+M.left+M.right,height:D.height+M.top+M.bottom},D,z,R);var X=z.left+M.left,l=z.top+M.top;J=Math.min(R.right-M.right,X+D.width);var e=Math.min(R.bottom-
M.bottom,l+D.height);X=Math.max(R.left+M.left,Math.min(X,J-this._fitInfo.sizedBy.minWidth));l=Math.max(R.top+M.top,Math.min(l,e-this._fitInfo.sizedBy.minHeight));J=Math.max(J-X,this._fitInfo.sizedBy.minWidth);e=Math.max(e-l,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=J+"px";this.sizingTarget.style.maxHeight=e+"px";X-=D.left;D=l-D.top;var Q;((Q=this.hostElement)!=null?Q:this).style.left=X+"px";var v;((v=this.hostElement)!=null?v:this).style.top=D+"px";if(this.expandSizingTargetForScrollbars){Q=
this.sizingTarget.offsetHeight;Z=Q-this.sizingTarget.clientHeight-(Z-O);if(Z>0){this.sizingTarget.style.maxHeight=Math.min(R.height-M.top-M.bottom,e+Z)+"px";Z=this.sizingTarget.offsetHeight;O=Z-Q;var x;z.verticalAlign==="top"?x=D:z.verticalAlign==="middle"?x=D-O/2:z.verticalAlign==="bottom"&&(x=D-O);x=Math.max(R.top+M.top,Math.min(x,R.bottom-M.bottom-Z));var m;((m=this.hostElement)!=null?m:this).style.top=x+"px"}x=this.sizingTarget.offsetWidth;N=x-this.sizingTarget.clientWidth-(N-B);if(N>0){Ymk!==
void 0?B=Ymk:(B=document.createElement("div"),Object.assign(B.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),m=document.createElement("div"),m.style.width="200px",m.style.height="200px",B.appendChild(m),document.body.appendChild(B),Ymk=Math.abs(B.offsetWidth-100)>1?B.offsetWidth-B.clientWidth:0,document.body.removeChild(B),B=Ymk);this.sizingTarget.style.maxWidth=Math.min(R.width-M.left-M.right,J+N-B)+"px";N=this.sizingTarget.offsetWidth+B;B=N-x;var y;
z.horizontalAlign==="left"?y=X:z.horizontalAlign==="center"?y=X-B/2:z.horizontalAlign==="right"&&(y=X-B);y=Math.max(R.left+M.left,Math.min(y,R.right-M.right-N));var H;((H=this.hostElement)!=null?H:this).style.left=y+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var M=this._fitInfo;if(!M.positionedBy.vertically){var z;((z=this.hostElement)!=null?z:this).style.position="fixed";var J;((J=this.hostElement)!=null?J:this).style.top="0px"}if(!M.positionedBy.horizontally){var R;((R=this.hostElement)!=null?R:this).style.position="fixed";var D;((D=this.hostElement)!=null?D:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var N;z=((N=this.hostElement)!=null?N:this).getBoundingClientRect();
M.sizedBy.height||this.__sizeDimension(z,M.positionedBy.vertically,"top","bottom","Height");M.sizedBy.width||this.__sizeDimension(z,M.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(M,z,J,R,D){this.__sizeDimension(M,z,J,R,D)},
__sizeDimension:function(M,z,J,R,D){var N=this._fitInfo,Z=this.__getNormalizedRect(this.fitInto);Z=D==="Width"?Z.width:Z.height;M=(z=z===R)?Z-M[R]:M[J];J=N.margin[z?J:R];R="offset"+D;var B;N=((B=this.hostElement)!=null?B:this)[R]-this.sizingTarget[R];this.sizingTarget.style["max"+D]=Z-J-M-N+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var M=this._fitInfo.positionedBy;if(!M.vertically||!M.horizontally){var z;((z=this.hostElement)!=null?z:this).style.position="fixed";if(!M.vertically){var J;((J=this.hostElement)!=null?J:this).style.top="0px"}if(!M.horizontally){var R;((R=this.hostElement)!=null?R:this).style.left="0px"}var D;z=((D=this.hostElement)!=null?D:this).getBoundingClientRect();D=this.__getNormalizedRect(this.fitInto);if(!M.vertically){J=D.top-z.top+(D.height-
z.height)/2;var N;((N=this.hostElement)!=null?N:this).style.top=J+"px"}if(!M.horizontally){M=D.left-z.left+(D.width-z.width)/2;var Z;((Z=this.hostElement)!=null?Z:this).style.left=M+"px"}}}},
__getNormalizedRect:function(M){return M===document.documentElement||M===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:M.getBoundingClientRect()},
__getOffscreenArea:function(M,z,J){return Math.abs(Math.min(0,M.top)+Math.min(0,J.bottom-(M.top+z.height)))*z.width+Math.abs(Math.min(0,M.left)+Math.min(0,J.right-(M.left+z.width)))*z.height},
__getPosition:function(M,z,J,R,D,N){var Z=[{verticalAlign:"top",horizontalAlign:"left",top:D.top+this.verticalOffset,left:D.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:D.top+this.verticalOffset,left:D.right-J.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:D.bottom-J.height-this.verticalOffset,left:D.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:D.bottom-J.height-this.verticalOffset,left:D.right-J.width-
this.horizontalOffset}];if(this.noOverlap){for(var B=0,O=Z.length;B<O;B++){var X={},l;for(l in Z[B])X[l]=Z[B][l];Z.push(X)}Z[0].top=Z[1].top+=D.height;Z[2].top=Z[3].top-=D.height;Z[4].left=Z[6].left+=D.width;Z[5].left=Z[7].left-=D.width}z=z==="auto"?null:z;M=M==="auto"?null:M;M&&M!=="center"||(Z.push({verticalAlign:"top",horizontalAlign:"center",top:D.top+this.verticalOffset+(this.noOverlap?D.height:0),left:D.left-R.width/2+D.width/2+this.horizontalOffset}),Z.push({verticalAlign:"bottom",horizontalAlign:"center",
top:D.bottom-J.height-this.verticalOffset-(this.noOverlap?D.height:0),left:D.left-R.width/2+D.width/2+this.horizontalOffset}));z&&z!=="middle"||(Z.push({verticalAlign:"middle",horizontalAlign:"left",top:D.top-R.height/2+D.height/2+this.verticalOffset,left:D.left+this.horizontalOffset+(this.noOverlap?D.width:0)}),Z.push({verticalAlign:"middle",horizontalAlign:"right",top:D.top-R.height/2+D.height/2+this.verticalOffset,left:D.right-J.width-this.horizontalOffset-(this.noOverlap?D.width:0)}));z==="middle"&&
M==="center"&&Z.push({verticalAlign:"middle",horizontalAlign:"center",top:D.top-R.height/2+D.height/2+this.verticalOffset,left:D.left-R.width/2+D.width/2+this.horizontalOffset});for(B=0;B<Z.length;B++){R=Z[B];D=R.verticalAlign===z;O=R.horizontalAlign===M;if(!this.dynamicAlign&&!this.noOverlap&&D&&O){var e=R;break}X=(!z||D)&&(!M||O);if(this.dynamicAlign||X){R.offscreenArea=this.__getOffscreenArea(R,J,N);if(R.offscreenArea===0&&X){e=R;break}R.alignsOk=D+O;e=e||R;D=R.offscreenArea-e.offscreenArea;if(D<
0||D===0&&R.alignsOk>e.alignsOk)e=R}}return e}};/*

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 Ev,g8a,sZJ;Ev=Element.prototype;g8a=Ev.matches||Ev.matchesSelector||Ev.mozMatchesSelector||Ev.msMatchesSelector||Ev.oMatchesSelector||Ev.webkitMatchesSelector;sZJ=function(){};
_.hYu=function(M){var z=n8p,J=[];return z._collectTabbableNodes(M,J)?z._sortByTabIndex(J):J};
_.P=sZJ.prototype;_.P._normalizedTabIndex=function(M){return(g8a.call(M,"input, select, textarea, button, object")?g8a.call(M,":not([disabled])"):g8a.call(M,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(M=M.getAttribute("tabindex")||0,Number(M)):-1};
_.P._collectTabbableNodes=function(M,z){if(M.nodeType!==Node.ELEMENT_NODE||!this._isVisible(M))return!1;var J=this._normalizedTabIndex(M),R=J>0;J>=0&&z.push(M);if(M.localName==="content"||M.localName==="slot")J=_.pu(M).getDistributedNodes();else{var D;J=((D=_.pu(M).shadowRoot)!=null?D:_.pu(M.root||M)).children}for(M=0;M<J.length;M++)R=this._collectTabbableNodes(J[M],z)||R;return R};
_.P._isVisible=function(M){var z=M.style;return z.visibility!=="hidden"&&z.display!=="none"?(z=window.getComputedStyle(M),z.visibility!=="hidden"&&z.display!=="none"):!1};
_.P._sortByTabIndex=function(M){var z=M.length;if(z<2)return M;var J=Math.ceil(z/2);z=this._sortByTabIndex(M.slice(0,J));M=this._sortByTabIndex(M.slice(J));return this._mergeSortByTabIndex(z,M)};
_.P._mergeSortByTabIndex=function(M,z){for(var J=[];M.length>0&&z.length>0;)this._hasLowerTabOrder(M[0],z[0])?J.push(z.shift()):J.push(M.shift());return J.concat(M,z)};
_.P._hasLowerTabOrder=function(M,z){M=Math.max(M.tabIndex,0);z=Math.max(z.tabIndex,0);return M===0||z===0?z>M:M>z};
var n8p=new sZJ;var ykg;var HrV;_.sV({_template:function(){if(HrV!==void 0)return HrV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;ykg===void 0&&(ykg=document.createElement("template"));var R=ykg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return HrV=M},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.pu(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.pu(this.parentNode).removeChild(this)},
_onTransitionend:function(M){M&&M.target===this&&this.complete()},
_openedChanged:function(M){M?this.prepare():(M=window.getComputedStyle(this),M.transitionDuration!=="0s"&&M.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var fH=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;h1(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)};
fH.prototype._bringOverlayAtIndexToFront=function(M){var z=this._overlays[M];if(z){var J=this._overlays.length-1,R=this._overlays[J];R&&this._shouldBeBehindOverlay(z,R)&&J--;if(!(M>=J)){R=Math.max(this._getZ(_.ckV(this)),this._minimumZ);for(this._getZ(z)<=R&&this._applyOverlayZ(z,R);M<J;)this._overlays[M]=this._overlays[M+1],M++;this._overlays[J]=z}}};
fH.prototype.addOverlay=function(M){var z=this._overlays.indexOf(M);if(z>=0)this._bringOverlayAtIndexToFront(z);else{z=this._overlays.length;var J=this._overlays[z-1],R=Math.max(this._getZ(J),this._minimumZ),D=this._getZ(M);J&&this._shouldBeBehindOverlay(M,J)&&(this._applyOverlayZ(J,R),z--,R=Math.max(this._getZ(this._overlays[z-1]),this._minimumZ));D<=R&&this._applyOverlayZ(M,R);this._overlays.splice(z,0,M)}this.trackBackdrop()};
fH.prototype.removeOverlay=function(M){M=this._overlays.indexOf(M);M!==-1&&(this._overlays.splice(M,1),this.trackBackdrop())};
_.ckV=function(M){return M._overlays[M._overlays.length-1]};
_.P=fH.prototype;_.P.trackBackdrop=function(){var M=this._overlayWithBackdrop();if(M||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(M)-1,this.backdropElement.opened=!!M,this.backdropElement.prepare()};
_.P._overlayWithBackdrop=function(){for(var M=this._overlays.length-1;M>=0;M--)if(this._overlays[M].withBackdrop)return this._overlays[M]};
_.P._getZ=function(M){var z=this._minimumZ;if(M){var J,R,D=Number(((J=M.hostElement)!=null?J:M).style.zIndex||window.getComputedStyle((R=M.hostElement)!=null?R:M).zIndex);D===D&&(z=D)}return z};
_.P._setZ=function(M,z){var J;((J=M.hostElement)!=null?J:M).style.zIndex=z};
_.P._applyOverlayZ=function(M,z){this._setZ(M,z+2)};
_.P._overlayInPath=function(M){M=M||[];for(var z=0;z<M.length;z++){var J=void 0;if(((J=M[z].polymerController)!=null?J:M[z])._manager===this)return M[z]}};
_.P._onCaptureClick=function(M){var z=this._overlays.length-1;if(z!==-1)for(var J=_.pu(M).path,R,D;(R=this._overlays[z])&&this._overlayInPath(J)!==((D=R.hostElement)!=null?D:R);)if(R._onCaptureClick(M),R.allowClickThrough)z--;else break};
_.P._onCaptureFocus=function(M){var z=_.ckV(this);z&&z._onCaptureFocus(M)};
_.P._onCaptureKeyDown=function(M){var z=_.ckV(this);z&&(_.pH.keyboardEventMatchesKeys(M,"esc")?z._onCaptureEsc(M):_.pH.keyboardEventMatchesKeys(M,"tab")&&z._onCaptureTab(M))};
_.P._shouldBeBehindOverlay=function(M,z){return!M.alwaysOnTop&&z.alwaysOnTop&&!z.contains(M)};
_.rX.Object.defineProperties(fH.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var M=document.activeElement;M&&M instanceof Element!==!1||(M=document.body);for(;M.root&&_.pu(M.root).activeElement;)M=_.pu(M.root).activeElement;return M}}});
_.LH=new fH;var Ykw=0,mDn=0,gen=null,sI0=[],Fj=["wheel","mousewheel","DOMMouseScroll"],hh8;_.U("web_no_lock_on_touchstart_killswitch")&&(Fj.push("touchstart"),Fj.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;_.AT={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:_.LH},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var M;return this._focusedChild||_.pu((M=this.hostElement)!=null?M:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var M;return _.hYu((M=this.hostElement)!=null?M:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var M;this._observer=_.pu((M=this.hostElement)!=null?M:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var M;_.pu((M=this.hostElement)!=null?M:this).unobserveNodes(this._observer)}this._observer=null;for(var z in this.__rafs)this.__rafs[z]!==null&&cancelAnimationFrame(this.__rafs[z]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(M){this.fire("iron-overlay-canceled",M,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var M;((M=this.hostElement)!=null?M:this).style.outline="none";var z;((z=this.hostElement)!=null?z:this).style.display="none"}},
_openedChanged:function(M){if(M){var z;((z=this.hostElement)!=null?z:this).removeAttribute("aria-hidden")}else{var J;((J=this.hostElement)!=null?J:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var M;if(this.withBackdrop&&!((M=this.hostElement)!=null?M:this).hasAttribute("tabindex")){var z;((z=this.hostElement)!=null?z:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var J;((J=this.hostElement)!=null?J:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";var z;((z=this.hostElement)!=null?z:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var M,z;((M=this.hostElement)!=null?M:this).style.transition=((z=this.hostElement)!=null?z:this).style.webkitTransition="none";var J,R;((J=this.hostElement)!=null?J:this).style.transform=((R=this.hostElement)!=null?R:this).style.webkitTransform="none";var D;((D=this.hostElement)!=null?D:this).style.display=""},
_finishPositioning:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";this.scrollTop=this.scrollTop;var z,J;((z=this.hostElement)!=null?z:this).style.transition=((J=this.hostElement)!=null?J:this).style.webkitTransition="";var R,D;((R=this.hostElement)!=null?R:this).style.transform=((D=this.hostElement)!=null?D:this).style.webkitTransform="";var N;((N=this.hostElement)!=null?N:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var M=this._manager.deepActiveElement,z;if(!(z=M===document.body))a:{for(;M;M=M.assignedSlot||M.parentNode||M.host)if(M===this){z=!0;break a}z=!1}z&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(M){this.noCancelOnOutsideClick||this.cancel(M)},
_onCaptureFocus:function(M){if(this.withBackdrop){var z=_.pu(M).path;z.indexOf(this)===-1?(M.stopPropagation(),this._applyFocus()):this._focusedChild=z[0]}},
_onCaptureEsc:function(M){this.noCancelOnEscKey||this.cancel(M)},
_onCaptureTab:function(M){if(this.withBackdrop){this.__ensureFirstLastFocusables();var z=M.shiftKey,J=z?this.__firstFocusableNode:this.__lastFocusableNode;z=z?this.__lastFocusableNode:this.__firstFocusableNode;if(J===z)J=!0;else{var R=this._manager.deepActiveElement;J=R===J||R===this}J&&(M.preventDefault(),this._focusedChild=z,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var M=this._focusableNodes;this.__firstFocusableNode=M[0];this.__lastFocusableNode=M[M.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(M,z){var J=this.__rafs;J[M]!==null&&cancelAnimationFrame(J[M]);J[M]=requestAnimationFrame(function(){J[M]=null;z.call(this)}.bind(this))},
__updateScrollObservers:function(M,z,J){M&&z&&this.__isValidScrollAction(J)?(J==="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),hh8=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(M=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),M!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(M,1),hh8=_._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($2)for(var M=this;M;)M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&M.host&&this.__rootNodes.push(M),M=M.host||M.assignedSlot||M.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(z){z.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(M){M.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(M){return M==="lock"||M==="refit"||M==="cancel"},
__onCaptureScroll:function(M){if(!(this.__isAnimating||_.pu(M).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(M)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.i$=[m9J,_.Hw,_.AT];_.sV({_template:function(){if(F3t!==void 0)return F3t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;pXg===void 0&&(pXg=document.createElement("template"));var R=pXg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return F3t=M},
is:"tp-yt-iron-dropdown",behaviors:[_.FG,_.pH,_.i$,e$J],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var M=_.pu(this.$.content).getDistributedNodes(),z=0,J=M.length;z<J;z++)if(M[z].nodeType===Node.ELEMENT_NODE)return M[z]},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(),_.AT._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.AT._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.AT._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var M=this.containedElement,z=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),J=0;J<z.length;J++)z[J].node=M;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(M){this._readied&&(M?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var M=this.focusTarget||this.containedElement;M&&this.opened&&!this.noAutoFocus?M.focus():_.AT._applyFocus.apply(this,arguments)}});var d9v;var K3a;/*

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 $9V=new _.sv({type:"iconset"});
_.sV({_template:function(){if(K3a!==void 0)return K3a;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;d9v===void 0&&(d9v=document.createElement("template"));
var R=d9v;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return K3a=M},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(M){M=(M||"").split(":");this._iconName=M.pop();this._iconsetName=M.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.pu(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=$9V.byKey(this._iconsetName)){var M=this._iconset.applyIcon(this,this._iconName,this.theme);M&&M.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.pu(this.root).appendChild(this._img)}});var uBS;var qmV;_.sV({_template:function(){if(qmV!==void 0)return qmV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;uBS===void 0&&(uBS=document.createElement("template"));var R=uBS;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return qmV=M},
is:"tp-yt-iron-input",behaviors:[_.hT],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(){_.Vv.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.pu(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.pu(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var M=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":M=/[0-9.,e-]/}return M},_bindValueChanged:function(M,z){z&&(M===void 0?z.value=null:M!==z.value&&(this.inputElement.value=M),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:M}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(M){var z=M.keyCode==19||M.keyCode==20||M.keyCode==45||M.keyCode==46||M.keyCode==144||M.keyCode==145||M.keyCode>32&&M.keyCode<41||M.keyCode>111&&M.keyCode<124;return!(M.keyCode==8||M.keyCode==9||M.keyCode==13||M.keyCode==27)&&!(M.charCode==0&&z)},
_onKeypress:function(M){if(this.allowedPattern||this.inputElement.type==="number"){var z=this._patternRegExp;if(z&&!(M.metaKey||M.ctrlKey||M.altKey)){this._patternAlreadyChecked=!0;var J=String.fromCharCode(M.charCode);this._isPrintable(M)&&!z.test(J)&&(M.preventDefault(),this._announceInvalidCharacter("Invalid character "+J+" not entered."))}}},
_checkPatternValidity:function(){var M=this._patternRegExp;if(!M)return!0;for(var z=0;z<this.inputElement.value.length;z++)if(!M.test(this.inputElement.value[z]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var M=this.inputElement.checkValidity();M&&(this.required&&this.bindValue===""?M=!1:this.hasValidator()&&(M=_.hT.validate.call(this,this.bindValue)));this.invalid=!M;this.fire("iron-input-validate");return M},
_announceInvalidCharacter:function(M){this.fire("iron-announce",{text:M})},
_computeValue:function(M){return M}});var W3u;var aKa;var V4B=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),E8t=V4B&&V4B[1]>=8;
_.sV({_template:function(){if(aKa!==void 0)return aKa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;W3u===void 0&&(W3u=document.createElement("template"));var R=W3u;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return aKa=M},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[N2w,_.Hw,_.lUg,R8k],_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 _.pu(_.pu(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var M=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,M-this._physicalCount)},set _virtualStart(M){M=this._clamp(M,0,this._maxVirtualStart);this.grid&&(M-=M%this._itemsPerRow);this._virtualStartVal=M},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(M){M%=this._physicalCount;M<0&&(M=this._physicalCount+M);this.grid&&(M-=M%this._itemsPerRow);this._physicalStartVal=M},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(M){this._physicalCountVal=M},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var M=this._firstVisibleIndexVal;if(M==null){var z=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
M=this._iterateItems(function(J,R){z+=this._getPhysicalSizeIncrement(J);if(z>this._scrollPosition)return this.grid?R-R%this._itemsPerRow:R;if(this.grid&&this._virtualCount-1===R)return R-R%this._itemsPerRow})||0}return M},
get lastVisibleIndex(){var M=this._lastVisibleIndexVal;if(M==null){if(this.grid)M=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var z=this._physicalTop+this._scrollOffset;this._iterateItems(function(J,R){z<this._scrollBottom&&(M=R);z+=this._getPhysicalSizeIncrement(J)})}this._lastVisibleIndexVal=M}return M},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.mK);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(M){this.style.webkitOverflowScrolling=M===this?"touch":"";this.style.overflowY=M===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.mK)},
updateViewportBoundaries:function(){var M=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(M["padding-top"],10);this._isRTL=M.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var M=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),z=M-this._scrollPosition,J=z>=0;this._scrollPosition=M;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(z)>this._physicalSize&&this._physicalSize>0?(z-=this._scrollOffset,J=Math.round(z/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=J,this._physicalStart+=J,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(M=this._getReusables(J),J?(this._physicalTop=M.physicalTop,this._virtualStart+=M.indexes.length,this._physicalStart+=M.indexes.length):(this._virtualStart=this._virtualStart-M.indexes.length,this._physicalStart=this._physicalStart-M.indexes.length),this._update(M.indexes,J?null:M.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),cN))},
_getReusables:function(M){var z=[],J=this._hiddenContentSize*this._ratio,R=this._virtualStart,D=this._virtualEnd,N=this._physicalCount,Z=this._physicalTop+this._scrollOffset;var B=this._physicalBottom+this._scrollOffset;var O=this._scrollPosition,X=this._scrollBottom;if(M){var l=this._physicalStart;B=O-Z}else l=this._physicalEnd,B-=X;for(;;){var e=this._getPhysicalSizeIncrement(l);B-=e;if(z.length>=N||B<=J)break;if(M){if(D+z.length+1>=this._virtualCount)break;if(Z+e>=O-this._scrollOffset)break;z.push(l);
Z+=e;l=(l+1)%N}else{if(R-z.length<=0)break;if(Z+this._physicalSize-e<=X)break;z.push(l);Z-=e;l=l===0?N-1:l-1}}return{indexes:z,physicalTop:Z-this._scrollOffset}},
_update:function(M,z){if(!(M&&M.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(M);this._updateMetrics(M);if(z)for(;z.length;)M=z.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(M);this._positionItems();this._updateScrollerSize()}},
_createPool:function(M){this._ensureTemplatized();var z,J=Array(M);for(z=0;z<M;z++){var R=this.stamp(null);J[z]=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}return J},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(M){M=this._clamp(this._physicalCount+M,3,this._virtualCount-this._virtualStart);M=this._convertIndexToCompleteRow(M);if(this.grid){var z=M%this._itemsPerRow;z&&M-z<=this._physicalCount&&(M+=this._itemsPerRow);M-=z}M-=this._physicalCount;z=Math.round(this._physicalCount*.5);if(!(M<0)){if(M>0){z=window.performance.now();[].push.apply(this._physicalItems,this._createPool(M));for(var J=0;J<M;J++)this._physicalSizes.push(0);this._physicalCount+=M;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=M);this._update();this._templateCost=(window.performance.now()-z)/M;z=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||z===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,z)),KVV):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,z),cN))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var M=this._getReusables(!0);this._physicalTop=M.physicalTop;this._virtualStart+=M.indexes.length;this._physicalStart+=M.indexes.length;this._update(M.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var M={__key__:!0};M[this.as]=!0;M[this.indexAs]=!0;M[this.selectedAs]=!0;M.tabIndex=!0;this._instanceProps=M;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(M,z){typeof z!=="undefined"&&(this.notifyResize(),_.Q7(),M&&this._updateGridMetrics())},
_itemsChanged:function(M){if(M.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.mK);else if(M.path==="items.splices"){this._adjustVirtualIndex(M.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(M.value.indexSplices.some(function(J){return J.addedCount>0||J.removed.length>0})){var z=this._getActiveElement();
this.contains(z)&&z.blur()}M=M.value.indexSplices.some(function(J){return J.index+J.addedCount>=this._virtualStart&&J.index<=this._virtualEnd},this);
this._isClientFull()&&!M||this._debounce("_render",this._render,_.mK)}else M.path!=="items.length"&&this._forwardItemPath(M.path,M.value)},
_forwardItemPath:function(M,z){M=M.slice(6);var J=M.indexOf(".");J===-1&&(J=M.length);var R,D=this.modelForElement(this._offscreenFocusedItem),N=parseInt(M.substring(0,J),10);if(R=this._isIndexRendered(N)){var Z=this._getPhysicalIndex(N);var B=this.modelForElement(this._physicalItems[Z])}else D&&(B=D);B&&B[this.indexAs]===N&&(M=M.substring(J+1),M=this.as+(M?"."+M:""),B._setPendingPropertyOrPath(M,z,!1,!0),B._flushProperties&&B._flushProperties(),R&&(this._updateMetrics([Z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(M){M.forEach(function(z){z.removed.forEach(this._removeItem,this);z.index<this._virtualStart&&(z=Math.max(z.addedCount-z.removed.length,z.index-this._virtualStart),this._virtualStart+=z,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=z))},this)},
_removeItem:function(M){this.$.selector.deselect(M);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===M&&this._removeFocusedItem()},
_iterateItems:function(M,z){var J,R;if(arguments.length===2&&z)for(R=0;R<z.length;R++){var D=z[R];var N=this._computeVidx(D);if((J=M.call(this,D,N))!=null)return J}else{D=this._physicalStart;for(N=this._virtualStart;D<this._physicalCount;D++,N++)if((J=M.call(this,D,N))!=null)return J;for(D=0;D<this._physicalStart;D++,N++)if((J=M.call(this,D,N))!=null)return J}},
_computeVidx:function(M){return M>=this._physicalStart?this._virtualStart+(M-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+M},
_assignModels:function(M){this._iterateItems(function(z,J){var R=this._physicalItems[z],D=this.items&&this.items[J];if(D!=null){var N=this.modelForElement(R);N.__key__=null;this._forwardProperty(N,this.as,D);this._forwardProperty(N,this.selectedAs,this.$.selector.isSelected(D));this._forwardProperty(N,this.indexAs,J);this._forwardProperty(N,"tabIndex",this._focusedVirtualIndex===J?0:-1);this._physicalIndexForKey[N.__key__]=z;N._flushProperties&&N._flushProperties(!0);R.removeAttribute("hidden")}else R.setAttribute("hidden",
"")},M)},
_updateMetrics:function(M){_.Q7();var z=0,J=0,R=this._physicalAverageCount,D=this._physicalAverage;this._iterateItems(function(N){J+=this._physicalSizes[N];this._physicalSizes[N]=this._physicalItems[N].offsetHeight;z+=this._physicalSizes[N];this._physicalAverageCount+=this._physicalSizes[N]?1:0},M);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(J=this._itemsPerRow===1?J:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+z-J,this._itemsPerRow=1);this._physicalAverageCount!==R&&(this._physicalAverage=Math.round((D*R+z)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var M=this._physicalTop;if(this.grid){var z=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(J,R){var D=Math.floor(R%this._itemsPerRow*this._itemWidth+z);this._isRTL&&(D*=-1);this.translate3d(D+"px",M+"px",0,this._physicalItems[J]);this._shouldRenderNextRow(R)&&(M+=this._rowHeight)})}else this._iterateItems(function(J){this.translate3d(0,M+"px",0,this._physicalItems[J]);
M+=this._physicalSizes[J]})},
_getPhysicalSizeIncrement:function(M){return this.grid?this._computeVidx(M)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[M]},
_shouldRenderNextRow:function(M){return M%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var M=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(M!==0){this._physicalTop=this._physicalTop-M;var z=this._scrollPosition;!E8t&&z>0&&this._resetScrollPosition(z-M)}},
_resetScrollPosition:function(M){this.scrollTarget&&M>=0&&(this._scrollPosition=this._scrollTop=M)},
_updateScrollerSize:function(M){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((M=(M=(M=M||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(M){return this.scrollToIndex(this.items.indexOf(M))},
scrollToIndex:function(M){if(!(typeof M!=="number"||M<0||M>this.items.length-1)&&(_.Q7(),this._physicalCount!==0)){M=this._clamp(M,0,this._virtualCount-1);if(!this._isIndexRendered(M)||M>=this._maxVirtualStart)this._virtualStart=this.grid?M-this._itemsPerRow*2:M-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var z=this._physicalStart,J=this._virtualStart,R=0,D=this._hiddenContentSize;J<M&&
R<=D;)R+=this._getPhysicalSizeIncrement(z),z=(z+1)%this._physicalCount,J++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+R);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)},_.mK)},
selectItem:function(M){return this.selectIndex(this.items.indexOf(M))},
selectIndex:function(M){if(!(M<0||M>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(M)){var z=this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)]);z&&(z[this.selectedAs]=!0);this.updateSizeForIndex(M)}this.$.selector.selectIndex(M)}},
deselectItem:function(M){return this.deselectIndex(this.items.indexOf(M))},
deselectIndex:function(M){M<0||M>=this._virtualCount||(this._isIndexRendered(M)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)])[this.selectedAs]=!1,this.updateSizeForIndex(M)),this.$.selector.deselectIndex(M))},
toggleSelectionForItem:function(M){return this.toggleSelectionForIndex(this.items.indexOf(M))},
toggleSelectionForIndex:function(M){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(M):this.$.selector.isSelected(this.items[M]))?this.deselectIndex(M):this.selectIndex(M)},
clearSelection:function(){this._iterateItems(function(M){this.modelForElement(this._physicalItems[M])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(M){(M?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(M){var z=this.modelForElement(M.target);if(z){var J=_.pu(M).path[0];M=this._getActiveElement();var R=this._physicalItems[this._getPhysicalIndex(z[this.indexAs])];if(J.localName!=="input"&&J.localName!=="button"&&J.localName!=="select"){J=z.tabIndex;z.tabIndex=-100;var D=M?M.tabIndex:-1;z.tabIndex=J;M&&R!==M&&R.contains(M)&&D!==-100||this.toggleSelectionForItem(z[this.as])}}},
_multiSelectionChanged:function(M){this.clearSelection();this.$.selector.multi=M},
updateSizeForItem:function(M){return this.updateSizeForIndex(this.items.indexOf(M))},
updateSizeForIndex:function(M){if(!this._isIndexRendered(M))return null;this._updateMetrics([this._getPhysicalIndex(M)]);this._positionItems();return null},
_manageFocus:function(){var M=this._focusedVirtualIndex;M>=0&&M<this._virtualCount?this._isIndexRendered(M)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(M){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(M/this._itemsPerRow)*this._itemsPerRow:M},
_isIndexRendered:function(M){return M>=this._virtualStart&&M<=this._virtualEnd},
_isIndexVisible:function(M){return M>=this.firstVisibleIndex&&M<=this.lastVisibleIndex},
_getPhysicalIndex:function(M){return(this._physicalStart+(M-this._virtualStart))%this._physicalCount},
focusItem:function(M){this._focusPhysicalItem(M)},
_focusPhysicalItem:function(M){if(!(M<0||M>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(M)||this.scrollToIndex(M);var z=this._physicalItems[this._getPhysicalIndex(M)],J=this.modelForElement(z),R;J.tabIndex=-100;z.tabIndex===-100&&(R=z);R||(R=_.pu(z).querySelector('[tabindex="-100"]'));J.tabIndex=0;this._focusedVirtualIndex=M;R&&R.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var M=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var z=this.stamp(null);this._focusBackfillItem=z.root.querySelector("*");this._itemsParent.appendChild(z.root)}this._offscreenFocusedItem=this._physicalItems[M];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[M]=this._focusBackfillItem;this._focusedPhysicalIndex=M;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var M=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),z=this._physicalItems[M];if(z){var J=this.modelForElement(z),R=this.modelForElement(this._offscreenFocusedItem);J[this.as]===R[this.as]?(this._focusBackfillItem=z,J.tabIndex=-1,this._physicalItems[M]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(M){M=this.modelForElement(M.target);var z=this.modelForElement(this._focusedItem),J=this._offscreenFocusedItem!==null,R=this._focusedVirtualIndex;M&&(z===M?this._isIndexVisible(R)||this.scrollToIndex(R):(this._restoreFocusedItem(),z&&(z.tabIndex=-1),M.tabIndex=0,this._focusedVirtualIndex=R=M[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(R),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],J&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(M){switch(M.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&M.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&M.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(M)}},
_clamp:function(M,z,J){return Math.min(J,Math.max(z,M))},
_debounce:function(M,z,J){this._debouncers=this._debouncers||{};this._debouncers[M]=_.Iq(this._debouncers[M],J,z.bind(this));_.oq(this._debouncers[M])},
_forwardProperty:function(M,z,J){M._setPendingProperty(z,J)},
_forwardHostPropV2:function(M,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(J){J&&this.modelForElement(J).forwardHostProp(M,z)},this)},
_notifyInstancePropV2:function(M,z,J){$9H(this.as,z)&&(M=M[this.indexAs],z==this.as&&(this.items[M]=J),this.notifyPath(IO(this.as,"items."+M,z),J))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(M,z,J){z.indexOf(this.as+".")===0&&this.notifyPath("items."+M.__key__+"."+z.slice(this.as.length+1),J)},
_forwardParentPath:function(M,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(J){J&&this.modelForElement(J).notifyPath(M,z)},this)},
_forwardParentProp:function(M,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(J){J&&(this.modelForElement(J)[M]=z)},this)},
_getActiveElement:function(){var M=this._itemsParent.node.domHost;return _.pu(M?M.root:document).activeElement},
_scrollTargetChanged:function(M,z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(z)if(M==="document")this.scrollTarget=this._doc;else if(typeof M==="string"){var J,R;this.scrollTarget=(z=(R=(J=this.domHost)==null?void 0:J.polymerController)!=null?R:this.domHost)&&z.$?z.$[M]:_.pu(this.ownerDocument).querySelector("#"+M)}else this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M))}});var fKB;var L3J;var Ak2=function(M,z,J,R){M-=J;z-=R;return Math.sqrt(M*M+z*z)},ira=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
yb8.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var HFY=function(M){M.maxRadius=0;M.mouseDownStart=0;M.mouseUpStart=0;M.xStart=0;M.yStart=0;M.xEnd=0;M.yEnd=0;M.containerMetrics=new yb8(M.element)};
cbY.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var M=ira()-this.mouseDownStart;this.mouseUpStart&&(M-=this.mouseUpElapsed);return M},get mouseUpElapsed(){return this.mouseUpStart?ira()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var M=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(M*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-M/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var M=this.radius/(this.containerMetrics.size/2);var z=this.xNow-this.containerMetrics.width/2;var J=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+z+"px, "+J+"px)";this.waveContainer.style.transform="translate3d("+z+"px, "+J+"px, 0)";this.wave.style.webkitTransform="scale("+M+","+M+")";this.wave.style.transform="scale3d("+M+","+M+",1)"},
downAction:function(M){var z=this.containerMetrics.width/2,J=this.containerMetrics.height/2;HFY(this);this.mouseDownStart=ira();this.center?(this.xStart=z,this.yStart=J):(this.xStart=M?M.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=M?M.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=z,this.yEnd=J);M=this.containerMetrics;z=this.xStart;J=this.yStart;this.maxRadius=Math.max(Ak2(z,J,0,0),Ak2(z,J,
M.width,0),Ak2(z,J,0,M.height),Ak2(z,J,M.width,M.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=ira())},
remove:function(){_.pu(_.pu(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.sV({_template:function(){if(L3J!==void 0)return L3J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;fKB===void 0&&(fKB=document.createElement("template"));var R=fKB;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return L3J=M},
is:"tp-yt-paper-ripple",behaviors:[_.pH],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(){_.pu(this).parentNode.nodeType==11?this.keyEventTarget=_.pu(this).getOwnerRoot().host:this.keyEventTarget=_.pu(this).parentNode;var M=this.keyEventTarget;this.listen(M,"up","uiUpAction");this.listen(M,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(M){M.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var M=0;M<this.ripples.length;++M)if(!this.ripples[M].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(M){this.noink||this.downAction(M)},
downAction:function(M){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(M),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(M){this.noink||this.upAction(M)},
upAction:function(M){this.holdDown||(this.ripples.forEach(function(z){z.upAction(M)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var M=0;M<this.ripples.length;++M){var z=this.ripples[M];z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var M=new cbY(this);_.pu(this.$.waves).appendChild(M.waveContainer);this.$.background.style.backgroundColor=M.color;this.ripples.push(M);this._setAnimating(!0);return M},
removeRipple:function(M){var z=this.ripples.indexOf(M);z<0||(this.ripples.splice(z,1),M.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var M;for(M=0;M<this.ripples.length;++M){var z=this.ripples[M];z.draw();this.$.background.style.opacity=z.outerOpacity;z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(M,z){z!==void 0&&(M?this.downAction():this.upAction())}});var CH={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(M){Y7._downHandler.call(this,M);this.pressed&&this.ensureRipple(M)},
ensureRipple:function(M){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var z=this._rippleContainer||this.root;z&&_.pu(z).appendChild(this._ripple);if(M){z=_.pu(this._rippleContainer||this);var J=_.pu(M).rootTarget;z.deepContains(J)&&this._ripple.uiDownAction(M)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(M){this.hasRipple()&&(this._ripple.noink=M)}};var CfV={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var M=1;this.disabled?M=0:this.active||this.pressed?M=4:this.receivedFocusFromKeyboard&&(M=3);this._setElevation(M)},
_computeKeyboardClass:function(M){this.toggleClass("keyboard-focus",M)},
_spaceKeyDownHandler:function(M){Y7._spaceKeyDownHandler.call(this,M);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(M){Y7._spaceKeyUpHandler.call(this,M);this.hasRipple()&&this._ripple.uiUpAction()}},br2=[NZS,
_.FG,CH,CfV];_.rkV={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=M)},
_createRipple:function(){var M=CH._createRipple();M.id="ink";M.setAttribute("center","");M.classList.add("circle");return M}};
_.M3J=[NZS,_.FG,CH,_.rkV];_.zc2=[_.M3J,Zf$,{_checkedChanged:function(){S3V._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){CH._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Jxt;var RcS;var D5a=function(){};
_.P=D5a.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._createRipple=function(){};
_.P._noinkChanged=function(){};
_.P._computeKeyboardClass=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setElevation=function(){};
D5a=_.sV({_template:function(){if(RcS!==void 0)return RcS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;Jxt===void 0&&(Jxt=document.createElement("template"));var R=Jxt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return RcS=M},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[br2],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?CfV._calculateElevation.apply(this):this._setElevation(0)}});var NyV;var P2v;var Sja={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(M){_.U("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(M)},
_onDialogClickWrapped:function(M){_.U("dialog_behavior_no_tap_killswitch")||this._onDialogClick(M)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(M,z){z&&(M?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(M){if(M){var z;((z=this.hostElement)!=null?z:this).setAttribute("aria-modal","true")}else{var J;((J=this.hostElement)!=null?J:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(M){this.closingReason=this.closingReason||{};this.closingReason.confirmed=M},
_onDialogClick:function(M){for(var z=_.pu(M).path,J=0,R,D=z.indexOf((R=this.hostElement)!=null?R:this);J<D;J++)if(R=z[J],R.hasAttribute&&(R.hasAttribute("dialog-dismiss")||R.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(R.hasAttribute("dialog-confirm"));this.close();M.stopPropagation();break}}},Zag=[_.i$,
Sja];var k0V=document.createElement("template");_.t(k0V,'<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(k0V.content);var ByS=document.createElement("template");_.t(ByS,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(ByS.content);_.sV({_template:function(){if(P2v!==void 0)return P2v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;NyV===void 0&&(NyV=document.createElement("template"));var R=NyV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return P2v=M},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Zag,e$J],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 Oav;var Ty$;_.sV({_template:function(){if(Ty$!==void 0)return Ty$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Oav===void 0&&(Oav=document.createElement("template"));var R=Oav;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Ty$=M},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var M,z,J;if(((M=window.ShadyDOM)==null?void 0:M.noPatch)!==!0&&((z=window.ShadyDOM)==null?void 0:z.noPatch)!=="on-demand"||((J=this.__shady_parentNode)==null?void 0:J.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Sja)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Izt=_.Ca(['<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>']),oTV=_.ZD2(Izt);oTV.setAttribute("style","display: none;");document.head.appendChild(oTV.content);var Xf$;var lzt;var ecV;var Qh$;_.sV({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[cw],configure:function(M){var z=M.node,J=z.getBoundingClientRect().height;return this._effect=new KeyframeEffect(z,[{height:J/2+"px"},{height:J+"px"}],this.timingFromConfig(M))}});
_.sV({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[cw],configure:function(M){var z=M.node,J=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:J/2+"px"},{width:J+"px"}],this.timingFromConfig(M))}});
_.sV({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[cw],configure:function(M){var z=M.node,J=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:J+"px"},{width:J-J/20+"px"}],this.timingFromConfig(M))}});
_.sV({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[cw],configure:function(M){var z=M.node,J=z.getBoundingClientRect().height;this.setPrefixedProperty(z,"transformOrigin","0 0");return this._effect=new KeyframeEffect(z,[{height:J+"px",transform:"translateY(0)"},{height:J/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(M))}});var rL={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},U5u=function(){};
_.P=U5u.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._focusBlurHandler=function(){};
_.P._changedControlState=function(){};
_.P._setFocused=function(){};
U5u=_.sV({_template:function(){if(Qh$!==void 0)return Qh$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;ecV===void 0&&(ecV=document.createElement("template"));var R=ecV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Qh$=M},
is:"tp-yt-paper-menu-button",behaviors:[_.pH,_.FG],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:rL.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:rL.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:rL.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var M=_.pu(this.$.content).getDistributedNodes(),z=0,J=M.length;z<J;z++)if(M[z].nodeType===Node.ELEMENT_NODE)return M[z]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(M,z){M?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):z!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(M){_.FG._disabledChanged.apply(this,arguments);M&&this.opened&&this.close()},
__onIronOverlayCanceled:function(M){var z=this.$.trigger;_.pu(M.detail).path.indexOf(z)>-1&&M.preventDefault()}});
Object.keys(rL).forEach(function(M){U5u[M]=rL[M]});var vTu=_.mT.IronButtonState,G0V=(0,_.Fe)(HTMLElement);
_.sV({_template:function(){if(lzt!==void 0)return lzt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Xf$===void 0&&(Xf$=document.createElement("template"));var R=Xf$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return lzt=M},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[vTu,_.FG,CH,_.gL,_.hT],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(M){var z=(0,_.Q3)(this);z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:M});z.shadowRoot.appendChild(M);return G0V.prototype._attachDom.call(this,M)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.pu(this.$.content).getDistributedNodes(),z=0,J=M.length;z<J;z++)if(M[z].nodeType===Node.ELEMENT_NODE)return M[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var z="";M?z=M.label||M.getAttribute("label")||M.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(M,z){return z?z:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",M)},
_computeLabelClass:function(M,z,J){var R="label";if(M)J&&(R+=" label-is-hidden");else if(J||z)R+=" label-is-floating";return R},
_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 wfp;var x5g;_.sV({is:"tp-yt-paper-icon-button",_template:function(){if(x5g!==void 0)return x5g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;wfp===void 0&&(wfp=document.createElement("template"));var R=wfp;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return x5g=M},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.M3J],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(M,z){var J=this.getAttribute("aria-label");J&&z!=J||this.setAttribute("aria-label",M)}});var t3k;var jh2;_.Mj=[NZS,_.FG,{hostAttributes:{role:"option",tabindex:"0"}}];_.sV({_template:function(){if(jh2!==void 0)return jh2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;t3k===void 0&&(t3k=document.createElement("template"));var R=t3k;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return jh2=M},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Mj]});var pfk;var Fzg;var Yju={attached:function(){this.fire("addon-attached")},
update:function(){}};var m5V=1,gTk=1,shu=1,nT$=[_.FG,_.pH,{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();!P0&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(M,z){M?M=M+" "+z:M=z;return M},
_onAddonAttached:function(M){M=_.pu(M).rootTarget;if(M.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,M.id);else{var z="paper-input-add-on-"+gTk++;M.id=z;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,z)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(M){_.FG._focusBlurHandler.call(this,M);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(M){try{var z=this.inputElement.selectionStart;this.value=M;this.inputElement.selectionStart=z;this.inputElement.selectionEnd=z}catch(J){this.value=M}},
_computeAlwaysFloatLabel:function(M,z){return z||M},
_updateAriaLabelledBy:function(){var M=_.pu(this.root).querySelector("label");if(M){if(M.id)var z=M.id;else z="paper-input-label-"+m5V++,M.id=z;this._ariaLabelledBy=z}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+shu++)},
_onChange:function(M){this.shadowRoot&&this.fire(M.type,{sourceEvent:M},{node:this,bubbles:M.bubbles,cancelable:M.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var M=document.activeElement;M instanceof HTMLElement&&M!==document.body&&M!==document.documentElement||this._focusableElement.focus()}}}];var hct;var yxQ;_.sV({_template:function(){if(yxQ!==void 0)return yxQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;hct===void 0&&(hct=document.createElement("template"));var R=hct;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return yxQ=M},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Yju],properties:{_charCounterStr:{type:String,value:"0"}},update:function(M){if(M.inputElement){M.value=M.value||"";var z=M.value.toString().length.toString();M.inputElement.hasAttribute("maxlength")&&(z+="/"+M.inputElement.getAttribute("maxlength"));this._charCounterStr=z}}});var HaJ;var cx2;_.sV({_template:function(){if(cx2!==void 0)return cx2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;HaJ===void 0&&(HaJ=document.createElement("template"));var R=HaJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return cx2=M},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return Z3(this.attrForValue)},get _inputElement(){return _.pu(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(M){this._addons||(this._addons=[]);M=M.target;this._addons.indexOf(M)===-1&&(this._addons.push(M),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(M){this._handleValueAndAutoValidate(M.target)},
_onValueChanged:function(M){var z=M.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,z.value===void 0||z.value===""))return;this._handleValueAndAutoValidate(M.target)},
_handleValue:function(M){var z=this._inputElementValue;z||z===0||M.type==="number"&&!M.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:M,value:z,invalid:this.invalid})},
_handleValueAndAutoValidate:function(M){this.autoValidate&&M&&(this.invalid=!(M.validate?M.validate(this._inputElementValue):M.checkValidity()));this._handleValue(M)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(M){if(this._addons)for(var z,J=0;z=this._addons[J];J++)z.update(M)},
_computeInputContentClass:function(M,z,J,R,D){var N="input-content";M?(D&&(N+=" label-is-hidden"),R&&!this.noUnfloatedLabelError&&(N+=" is-invalid")):(M=this.querySelector("label"),z||D?(N+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",R?N+=" is-invalid":J&&(N+=" label-is-highlighted")):(M&&(this.$.labelAndInputContainer.style.position="relative"),R&&!this.noUnfloatedLabelError&&(N+=" is-invalid")));J&&(N+=" focused");return N},
_computeUnderlineClass:function(M,z){var J="underline";z?J+=" is-invalid":M&&(J+=" is-highlighted");return J},
_computeAddOnContentClass:function(M,z){var J="add-on-content";z?J+=" is-invalid":M&&(J+=" is-highlighted");return J}});var d5$;var Kzk;_.sV({_template:function(){if(Kzk!==void 0)return Kzk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;d5$===void 0&&(d5$=document.createElement("template"));var R=d5$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Kzk=M},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Yju],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(M){this._setInvalid(M.invalid)}});_.sV({is:"tp-yt-paper-input",_template:function(){if(Fzg!==void 0)return Fzg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;pfk===void 0&&(pfk=document.createElement("template"));var R=pfk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Fzg=M},
behaviors:[nT$,_.gL],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 $5g;var uLp;_.sV({_template:function(){if(uLp!==void 0)return uLp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=
M.content,J=z.insertBefore;$5g===void 0&&($5g=document.createElement("template"));var R=$5g;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return uLp=M},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Mj]});var qjQ;var Wzt;_.sV({_template:function(){if(Wzt!==void 0)return Wzt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;qjQ===void 0&&(qjQ=document.createElement("template"));var R=qjQ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Wzt=M},
is:"tp-yt-paper-item-body"});var azk;var V3V;var ETV=function(){};
_.P=ETV.prototype;_.P.indexOf=function(){};
_.P.selectPrevious=function(){};
_.P.selectNext=function(){};
_.P.selectIndex=function(){};
_.P.forceSynchronousItemUpdate=function(){};
_.P._checkFallback=function(){};
_.P._addListener=function(){};
_.P._removeListener=function(){};
_.P._activateEventChanged=function(){};
_.P._updateItems=function(){};
_.P._selectSelected=function(){};
_.P._filterItem=function(){};
_.P._valueToItem=function(){};
_.P._valueToIndex=function(){};
_.P._indexToValue=function(){};
_.P._valueForItem=function(){};
_.P._observeItems=function(){};
_.P._itemActivate=function(){};
_.P.multiChanged=function(){};
_.P._updateAttrForSelected=function(){};
_.P._updateSelected=function(){};
_.P._selectMulti=function(){};
_.P._selectionChange=function(){};
_.P._toggleSelected=function(){};
_.P._valuesToItems=function(){};
_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P.select=function(){};
_.P._resetTabindices=function(){};
_.P._updateMultiselectable=function(){};
_.P._focusWithKeyboardEvent=function(){};
_.P._clearSearchText=function(){};
_.P._focusPrevious=function(){};
_.P._focusNext=function(){};
_.P._applySelection=function(){};
_.P._focusedItemChanged=function(){};
_.P._onIronItemsChanged=function(){};
_.P._onShiftTabDown=function(){};
_.P._onFocus=function(){};
_.P._onUpKey=function(){};
_.P._onDownKey=function(){};
_.P._onEscKey=function(){};
_.P._onKeydown=function(){};
_.P._activateHandler=function(){};
_.P._disabledChanged=function(){};
_.P._setSelectedItem=function(){};
_.P._setItems=function(){};
_.P._setSelectedItems=function(){};
_.P._setFocusedItem=function(){};
ETV=_.sV({_template:function(){if(V3V!==void 0)return V3V;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;azk===void 0&&(azk=document.createElement("template"));var R=azk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return V3V=M},
is:"tp-yt-paper-listbox",behaviors:[TZV],hostAttributes:{role:"listbox"}});var fzk;var LzB;var Axa={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(M,z){return[M||z?"active":"",z?"cooldown":""].join(" ")},
__activeChanged:function(M,z){this.__setAriaHidden(!M);this.__coolingDown=!M&&z},
__altChanged:function(M){this.setAttribute("aria-label",M||"loading")},
__setAriaHidden:function(M){M?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.sV({_template:function(){if(LzB!==void 0)return LzB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;fzk===void 0&&(fzk=document.createElement("template"));var R=fzk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return LzB=M},
is:"tp-yt-paper-spinner",behaviors:[Axa]});var iag;var C2V;_.sV({_template:function(){if(C2V!==void 0)return C2V;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;iag===void 0&&(iag=document.createElement("template"));var R=iag;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return C2V=M},
is:"tp-yt-paper-spinner-lite",behaviors:[Axa]});var ba$;var rxp;_.sV({_template:function(){if(rxp!==void 0)return rxp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;ba$===void 0&&(ba$=document.createElement("template"));var R=ba$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return rxp=M},
is:"tp-yt-paper-tab",behaviors:[_.FG,_.mT.IronButtonState,CH],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var M=_.pu(this).parentNode;return!!M&&!!M.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(M){if(this.link){var z=this.queryEffectiveChildren("a");z&&M.target!==z&&z.click()}}});var Msk;var zq$;var Jvu=_.Ca(['<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>']),Rqp=_.ZD2(Jvu);document.head.appendChild(Rqp.content);_.sV({_template:function(){if(zq$!==void 0)return zq$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Msk===void 0&&(Msk=document.createElement("template"));var R=Msk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return zq$=M},
is:"tp-yt-paper-tabs",behaviors:[_.Hw,_.oCp],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(M){_.pu(this).querySelectorAll("tp-yt-paper-tab").forEach(M?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(M){M.setAttribute("noink","")},
_removeNoinkAttribute:function(M){M.removeAttribute("noink")},
_computeScrollButtonClass:function(M,z,J,R){return!z||J?"hidden":M?R?"hidden":"not-visible":""},
_computeTabsContentClass:function(M,z){var J="tabs-content";M&&(J+=" scrollable");if(!M||z)J+=" fit-container";return J},
_computeSelectionBarClass:function(M,z){var J="selection-bar";M?J+=" hidden":z&&(J+=" align-bottom");return J},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(M){return""+M},
_onIronSelect:function(M){this._tabChanged(M.detail.item,this._previousTab);this._previousTab=M.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.yv._activateHandler.apply(this,arguments)},
_scheduleActivation:function(M,z){this._pendingActivationItem=M;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,z)},
_delayedActivationHandler:function(){var M=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;M.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(M){M.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(M,z){this.scrollable&&this._affectScroll(z&&-z.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(M){this.$.tabsContainer.scrollLeft+=M;M=this.$.tabsContainer.scrollLeft;this._leftHidden=M===0||this.hideScrollButtons;this._rightHidden=M===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(M,z){if(M){var J=this.$.tabsContent.getBoundingClientRect(),R=J.width,D=M.getBoundingClientRect();J=D.left-J.left;this._pos={width:this._calcPercent(D.width,R),left:this._calcPercent(J,R)};if(this.noSlide||z==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var N=z.getBoundingClientRect();z=this.items.indexOf(z);M=this.items.indexOf(M);this.$.selectionBar.classList.add("expand");
M=z<M;this._isRTL&&(M=!M);M?this._positionBar(this._calcPercent(D.left+D.width-N.left,R)-5,this._left):this._positionBar(this._calcPercent(N.left+N.width-D.left,R)-5,this._calcPercent(J,R)+5);this.scrollable&&this._scrollToSelectedIfNeeded(D.width,J)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(M,z){z-=this.$.tabsContainer.scrollLeft;z<0?this.$.tabsContainer.scrollLeft+=z:(z+=M-this.$.tabsContainer.offsetWidth,z>0&&(this.$.tabsContainer.scrollLeft+=z))},
_calcPercent:function(M,z){return 100*M/z},
_positionBar:function(M,z){M=M||0;z=z||0;this._width=M;this._left=z;this.transform("translateX("+z+"%) scaleX("+M/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var M=this.$.selectionBar.classList;M.contains("expand")?(M.remove("expand"),M.add("contract"),this._positionBar(this._pos.width,this._pos.left)):M.contains("contract")&&M.remove("contract")}});var D8p;var Nok;_.sV({_template:function(){if(Nok!==void 0)return Nok;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;D8p===void 0&&(D8p=document.createElement("template"));var R=D8p;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Nok=M},
is:"tp-yt-paper-textarea",behaviors:[nT$,_.gL],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(M){this.$.input.textarea.selectionStart=M},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(M){this.$.input.textarea.selectionEnd=M},_ariaLabelledByChanged:function(M){this._focusableElement.setAttribute("aria-labelledby",M)},
_ariaDescribedByChanged:function(M){this._focusableElement.setAttribute("aria-describedby",M)},
get _focusableElement(){return this.inputElement.textarea}});var PNa;var SD$;/*

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 Zy$=function(){};
_.P=Zy$.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
Zy$=_.sV({is:"tp-yt-paper-toggle-button",_template:function(){if(SD$!==void 0)return SD$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;PNa===void 0&&(PNa=document.createElement("template"));var R=PNa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return SD$=M},
behaviors:[_.zc2],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");_.C4(this,function(){_.HN(this,"pan-y")})},
_ontrack:function(M){M=M.detail;M.state==="start"?this._trackStart(M):M.state==="track"?this._trackMove(M):M.state==="end"&&this._trackEnd(M)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(M){M=M.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+M:M)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+M:M));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var M=CH._createRipple();M.id="ink";M.setAttribute("recenters","");M.classList.add("circle","toggle-ink");return M}});var kj2;var Bov;_.sV({_template:function(){if(Bov!==void 0)return Bov;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;kj2===void 0&&(kj2=document.createElement("template"));var R=kj2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Bov=M},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var M=_.pu(this).parentNode,z=_.pu(this).getOwnerRoot(),J;this.for?J=_.pu(z).querySelector("#"+this.for):J=M.nodeType==Node.DOCUMENT_FRAGMENT_NODE?z.host:M;return J},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(M){M==="entry"?this.show():M==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.pu(this).textContent.trim()===""){for(var M=!0,z=_.pu(this).getEffectiveChildNodes(),J=0;J<z.length;J++)if(z[J].textContent.trim()!==""){M=!1;break}if(M)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var M=this.offset;this.marginTop!=14&&this.offset==14&&(M=this.marginTop);var z=this.offsetParent.getBoundingClientRect(),J=this._target.getBoundingClientRect(),R=this.getBoundingClientRect(),D=(J.width-R.width)/2,N=(J.height-R.height)/2,Z=J.left-z.left,B=J.top-z.top;switch(this.position){case "top":var O=Z+D;var X=B-R.height-M;break;case "bottom":O=Z+D;X=B+J.height+M;break;case "left":O=Z-R.width-M;X=B+N;break;case "right":O=Z+J.width+
M,X=B+N}this.fitToVisibleBounds?(z.left+O+R.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,O)+"px",this.style.right="auto"),z.top+X+R.height>window.innerHeight?(this.style.bottom=z.height+"px",this.style.top="auto"):(this.style.top=Math.max(-z.top,X)+"px",this.style.bottom="auto")):(this.style.left=O+"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(M){M!==500&&this.updateStyles({"--paper-tooltip-delay-in":M+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(M){if(M==="entry"&&this.animationEntry!=="")return this.animationEntry;if(M==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[M]&&typeof this.animationConfig[M][0].name==="string"){if(this.animationConfig[M][0].timing&&this.animationConfig[M][0].timing.delay&&this.animationConfig[M][0].timing.delay!==0){var z=this.animationConfig[M][0].timing.delay;M==="entry"?this.updateStyles({"--paper-tooltip-delay-in":z+"ms"}):M==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":z+
"ms"})}return this.animationConfig[M][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var Oyu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Oyu,_.zA);var ToS=_.B4(Oyu,[0,_.zE]);var zO=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(zO,_.zA);var IPp=[3,4],oIJ=[5,6];var X9a=[0,IPp,oIJ,_.Jr$,-1,_.Mo,_.Ria,-1,AWn,iVo];var lPk=_.B4(zO,X9a),eqV=_.Ow(X9a);var QJ$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(QJ$,_.zA);var U8u=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(U8u,_.zA);var vIt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(vIt,_.zA);var GjV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(GjV,_.zA);var w9V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(w9V,_.zA);var JV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(JV,_.zA);JV.prototype.getSource=function(){return _.yE(this,1)};
JV.prototype.getMessage=function(){return _.hv(this,4)};
JV.prototype.getData=function(){return _.DG(this,w9V,8)};var x8V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(x8V,_.zA);var RR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(RR,_.zA);var DB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DB,_.zA);var Nj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Nj,_.zA);Nj.prototype.getUrl=function(){return _.hv(this,1)};
Nj.prototype.setUrl=function(M){return _.G$(this,1,M)};
Nj.prototype.hasUrl=function(){return _.ov(_.Gj(this,1))!=null};var ts2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(ts2,_.zA);var jJu=[3];var p9J=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(p9J,_.zA);var Pc=function(M){var z=new p9J;return _.Nc(z,2,M)};
p9J.prototype.getLanguage=function(){return c9(this,4,SO)};
var FeJ=function(M){var z=Pc(1);return _.Xq(z,6,SO,M)},SO=[3,
4,5,6];var YDu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(YDu,_.zA);var ZB=function(M){var z=new YDu;return _.Nc(z,1,M)},kB=function(M,z){return _.Xq(M,2,m8v,z)},m8v=[2,
3,4,5];var gIp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(gIp,_.zA);var Bc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Bc,_.zA);var sJQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(sJQ,_.zA);var nIa=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(nIa,_.zA);var hqQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(hqQ,_.zA);var yv$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(yv$,_.zA);var Hya=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Hya,_.zA);var O4=function(M){return _.DG(M,DB,5)};var cvQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(cvQ,_.zA);cvQ.prototype.getValue=function(){return sD(this,1)};var d8S=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(d8S,_.zA);var TO=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(TO,_.zA);TO.prototype.getMetadata=function(){return _.Ky(this,hqQ,7,IR)};
TO.prototype.hasMetadata=function(){return _.xI(this,hqQ,7,IR)};
var Kek=_.dEo(TO),IR=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var oR=function(M){this.JSC$11933_name_=M;this.files_=[];this.directories_=[];this.directoryMap_={}};
oR.prototype.getName=function(){return this.JSC$11933_name_};var lU=function(M,z){this.callback_=z;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new oR("");$8J(this,M,this.rootDirectory_);X7(this)},$8J=function(M,z,J){for(var R=0;R<z.length;R++){var D=z[R];
D.isFile?(M.fileOps_++,D.file((0,_.xF)(M.handleFileSuccess_,M,J),(0,_.xF)(M.handleFileError_,M))):M.unscannedDirectories_.push(new uZt(D,J))}},X7=function(M){if(M.unscannedDirectories_.length>0&&M.directoryOps_<5&&!M.hasError_){M.directoryOps_++;
var z=M.unscannedDirectories_.shift(),J=z.entry,R=new oR(J.name);z=z.parent;z.directoryMap_[R.getName()]=R;z.directories_.push(R);J=J.createReader();J.readEntries((0,_.xF)(M.handleDirectorySuccess_,M,J,R),(0,_.xF)(M.handleDirectoryError_,M))}M.directoryOps_!=0||M.fileOps_!=0||M.unscannedDirectories_.length!=0&&!M.hasError_||M.callback_(M.rootDirectory_.files_,M.rootDirectory_.directories_,M.hasError_)};
lU.prototype.handleDirectorySuccess_=function(M,z,J){$8J(this,J,z);J.length==0?(this.directoryOps_--,X7(this)):M.readEntries((0,_.xF)(this.handleDirectorySuccess_,this,M,z),(0,_.xF)(this.handleDirectoryError_,this))};
lU.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;X7(this)};
lU.prototype.handleFileSuccess_=function(M,z){M.files_.push(z);this.fileOps_--;X7(this)};
lU.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;X7(this)};
var uZt=function(M,z){this.entry=M;this.parent=z};var eO=function(M){_.jB.call(this);_.YS(M,"drop",this.onObjectsDropped_,!1,this);_.YS(M,"dragenter",this.onFilesDragged_,!1,this);_.YS(M,"dragover",this.onFilesDragged_,!1,this);_.YS(M,"dragleave",this.onDragLeave_,!1,this);_.YS(M,"dragend",this.onDragLeave_,!1,this)};
_.ZP(eO,_.jB);var qD$=function(M,z){_.vR.call(this,"f");this.files=M;this.directories=z};
_.ZP(qD$,_.vR);var WeV=function(){_.vR.call(this,"h")};
_.ZP(WeV,_.vR);var aPS=function(){_.vR.call(this,"i")};
_.ZP(aPS,_.vR);var Vsk=function(){_.vR.call(this,"g")};
_.ZP(Vsk,_.vR);eO.prototype.onObjectsDropped_=function(M){var z=this;M.preventDefault();var J=M.event_.dataTransfer;if((M=J&&J.items)&&M.length>0&&M[0].webkitGetAsEntry){J=[];for(var R=[],D=0;D<M.length;D++){var N=M[D].webkitGetAsEntry();N?J.push(N):R.push(M[D])}new lU(J,function(Z,B,O){O?z.dispatchEvent(new Vsk("Error occurred while reading from the file system.")):z.dispatchEvent(new qD$(Z,B,R))})}else(M=J&&J.files)&&this.dispatchEvent(new qD$(Array.from(M),[]))};
eO.prototype.onFilesDragged_=function(M){M.type==="dragenter"&&this.dispatchEvent(new WeV);M.preventDefault()};
eO.prototype.onDragLeave_=function(){this.dispatchEvent(new aPS)};var EI$=function(M,z){this.JSC$11956_name_=M;this.inputElement_=z};
EI$.prototype.getName=function(){return this.JSC$11956_name_};
EI$.prototype.getInputElement=function(){return this.inputElement_};var Qz=function(M,z,J){z=z===void 0?"single_file":z;J=J===void 0?[]:J;_.jB.call(this);this.overlayTarget_=M;this.parentOverlay_=M!=null?M.parentNode:_.lm("scotty-overlay-parent");this.selectorType_=z;this.acceptTypes_=J;this.overlay_=fP2(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.w(Qz,_.jB);
var fP2=function(M,z,J,R){var D=document.createElement("input");D.setAttribute("type","file");D.setAttribute("name","Filedata");_.YS(D,"change",M.onFilesSelected_,!1,M);J==="multiple_file"&&(D.multiple="true");J==="single_directory"&&(D.webkitdirectory="true");R.length>0&&D.setAttribute("accept",R.join(","));D.style.position="absolute";D.style.overflow="hidden";D.style.height="0px";D.style.width="0px";D.style.opacity="0";D.setAttribute("aria-hidden","true");D.setAttribute("tabIndex",-1);if(M.overlayTarget_!=
null)return D.style.height=z.offsetHeight+"px",D.style.width=z.offsetWidth+"px",M.parentOverlay_&&(M.parentOverlay_.style.position="relative"),_.cK(D,z),WK(D,new _.nO(z.offsetLeft,z.offsetTop)),D;M.parentOverlay_.appendChild(D);return D};
Qz.prototype.click=function(){this.overlay_.click()};
Qz.prototype.onFilesSelected_=function(M){a:{try{var z=(new XMLHttpRequest).upload!==void 0;break a}catch(X){}z=!1}if(z){var J;M=Array.from((J=M.target.files)!=null?J:[]);J=[];if(this.selectorType_==="single_directory"&&(_.oJ||i9||_.IJ)){J=new oR("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(z=0;z<M.length;z++)for(var R=M[z],D=R.webkitRelativePath.split("/"),N=J,Z=0;Z<D.length;Z++){var B=D[Z];if(Z==D.length-1){B!="."&&N.files_.push(R);break}var O=N.directoryMap_[B];O==void 0&&(B=
O=new oR(B),N.directoryMap_[B.getName()]=B,N.directories_.push(B));N=O}J=J.directories_}this.dispatchEvent(new Lea(M,J,null))}else M=M.target.value,M.match(/^c:\\fakepath\\/i)&&(M=M.substring(12)),this.dispatchEvent(new Lea([],[],new EI$(M,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=fP2(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Lea=function(M,z){_.vR.call(this,"j");this.files=M;this.directories=z};
_.w(Lea,_.vR);var AvV=function(M){this.uploadUrl_=M};var iyB=function(){_.jB.call(this)};
_.ZP(iyB,_.jB);var U4=function(M){_.vR.call(this,M)};
_.ZP(U4,_.vR);var vc=function(M){_.vR.call(this,M)};
_.ZP(vc,_.vR);var CNJ=function(M,z,J,R,D){_.jB.call(this);J=document.createElement("form");J.setAttribute("method",z);J.setAttribute("enctype","multipart/form-data");J.setAttribute("encoding","multipart/form-data");z=document.createElement("input");z.setAttribute("type","hidden");z.setAttribute("name","metadata");z.setAttribute("value",D);J.appendChild(z);J.appendChild(R);this.JSC$11973_form_=J;M=new _.iS(M);_.W6(M,"upload_protocol","multipart");this.JSC$11973_url_=M.toString();this.JSC$11973_request_=new Pw;this.state_=
"Ready";this.JSC$11973_errorDescription_=null;this.JSC$11973_eventHandler_=new _.Ps(this);_.OC(this,this.JSC$11973_eventHandler_);this.JSC$11973_eventHandler_.listen(this.JSC$11973_request_,"success",this.onTransferSuccess_);this.JSC$11973_eventHandler_.listen(this.JSC$11973_request_,"error",this.onTransferError_)};
_.w(CNJ,iyB);_.P=CNJ.prototype;_.P.run=function(){this.state_="Transferring";var M=this.JSC$11973_request_,z=this.JSC$11973_form_;if(M.JSC$11392_active_)throw Error("me");var J=new _.iS(this.JSC$11973_url_||z.action);M.JSC$11392_form_=z;z=M.JSC$11392_form_;J=_.c4(J.toString());J!==void 0&&(z.action=J);jEv(M)};
_.P.getResponseCode=function(){return null};
_.P.getResponseText=function(){return this.JSC$11973_request_&&this.JSC$11973_request_.getResponseText()||null};
_.P.JSC$29299_getErrorDescription=function(){return this.JSC$11973_errorDescription_};
_.P.cancel=function(){this.JSC$11973_request_&&this.JSC$11973_request_.abort();this.state_="Cancelled";this.dispatchEvent(new U4("o"))};
_.P.pause=function(){};
_.P.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new U4("l"))};
_.P.onTransferError_=function(){this.JSC$11973_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new U4("n"))};var GO=function(){_.hQ.call(this)};
_.w(GO,_.hQ);GO.prototype.createXhr=function(){var M=_.hQ.prototype.createXhr.call(this);M.upload&&(M.upload.onprogress=(0,_.xF)(this.onProgress_,this));return M};
GO.prototype.onProgress_=function(M){this.dispatchEvent(M)};var byu=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},M6a=function(M,z){var J=M.attempt_+1;
if(M.maxAttempts_>0&&J>M.maxAttempts_)return!1;J==0?z():M.delayCallId_=gs(function(){M.delayCallId_=null;z()},rvQ(M),M);
M.attempt_=J;return!0};
byu.prototype.reset=function(){this.delayCallId_&&_.R3.clearTimeout(this.delayCallId_);this.attempt_=-1};
var rvQ=function(M){var z=250*Math.pow(2,M.attempt_);M.maxDelayMs_>=0&&(z=Math.min(z,M.maxDelayMs_));return z};var KvG=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var w$=function(){_.jB.call(this);this.JSC$11983_request_=this.state_=null;this.JSC$11983_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11983_bytesTransferred_=0;this.retryIterator_=new byu;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11983_errorDescription_=null;this.JSC$11983_eventHandler_=new _.Ps(this);_.OC(this,this.JSC$11983_eventHandler_);this.JSC$11983_url_=this.blob_=null;this.JSC$11983_method_=void 0;this.chunkSize_=this.JSC$11983_metadata_=
this.JSC$11983_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11983_responseText_=this.JSC$11983_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.ZP(w$,iyB);_.P=w$.prototype;_.P.run=function(){xB(this)};
_.P.getResponseCode=function(){return this.JSC$11983_responseCode_};
_.P.getResponseText=function(){return this.JSC$11983_responseText_};
_.P.JSC$29299_getErrorDescription=function(){return this.JSC$11983_errorDescription_};
_.P.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11983_eventHandler_.removeAll();this.JSC$11983_request_&&this.JSC$11983_request_.abort();this.retryIterator_.reset();var M=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(M==="Upload"||M==="Query")M=new GO,M.JSC$9763_withCredentials_=this.JSC$11983_withCredentials_,M.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11983_bytesTransferred_=
0;this.dispatchEvent(new U4("o"))}};
_.P.pause=function(){this.pauseRequested_=!0};
var xB=function(M){var z=M.state_;M.pauseRequested_?(M.pauseRequested_=!1,M.stateAfterUnpausing_=z,M.state_="Paused"):M6a(M.retryIterator_,function(){switch(M.state_){case "Start":M.JSC$11983_request_=new GO;var J=_.gu.clone(M.JSC$11983_headers_);M.blob_.size!=null&&(J["Content-Length"]=M.blob_.size);J=$Dc(J);J["X-Goog-Upload-Protocol"]="resumable";J["X-Goog-Upload-Command"]="start";M.JSC$11983_eventHandler_.removeAll();M.JSC$11983_eventHandler_.listen(M.JSC$11983_request_,"complete",M.onStartComplete_);
M.JSC$11983_request_.JSC$9763_withCredentials_=M.JSC$11983_withCredentials_;M.JSC$11983_request_.send(M.JSC$11983_url_,M.JSC$11983_method_,M.JSC$11983_metadata_,J);M.lastCommandResponseCode_=null;M.dispatchEvent(new vc("q"));break;case "Upload":J=M.transferHandle_.uploadUrl_;var R=M.blob_.size;if(SBp()){var D=M.chunkSize_;var N=M.offset_+D>=R;R=PWV(M.blob_,M.offset_,N?R:M.offset_+D)}else M.offset_=0,R=M.blob_,N=!0;M.JSC$11983_request_=new GO;M.JSC$11983_request_.JSC$9763_withCredentials_=M.JSC$11983_withCredentials_;
M.JSC$11983_eventHandler_.removeAll();M.JSC$11983_eventHandler_.listen(M.JSC$11983_request_,"progress",M.onUploadProgress_);D=(0,_.xF)(M.JSC$11985_onUploadComplete_,M,M.offset_+R.size,N);M.JSC$11983_eventHandler_.listen(M.JSC$11983_request_,"complete",D);M.lastCommandResponseCode_=null;M.dispatchEvent(new vc("q"));N=Object.assign({},M.JSC$11983_headers_||{},{"X-Goog-Upload-Command":"upload"+(N?", finalize":""),"X-Goog-Upload-Offset":M.offset_});M.JSC$11983_request_.send(J,"POST",R,N);break;case "Query":M.JSC$11983_request_=
new GO;M.JSC$11983_eventHandler_.removeAll();M.JSC$11983_eventHandler_.listen(M.JSC$11983_request_,"complete",M.onQueryComplete_);J=Object.assign({},M.JSC$11983_headers_||{},{"X-Goog-Upload-Command":"query"});M.JSC$11983_request_.send(M.transferHandle_.uploadUrl_,"POST","",J);M.lastCommandResponseCode_=null;M.dispatchEvent(new vc("q"));break;default:throw Error("bf");}})||tV(M,"Transfer encountered too many consecutive failures.")},tV=function(M,z){M.state_="Error";
M.JSC$11983_errorDescription_=z;M.dispatchEvent(new U4("n"))};
w$.prototype.onStartComplete_=function(M){var z=M.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new vc("r"));if(zIB(z))JwB(this,z);else if(RI2(z)){M=fW(M.target.getAllResponseHeaders());for(var J in M)_.PY(J.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new U4("m"));J=Yl(M,"X-Goog-Upload-URL");M=(M=Yl(M,"X-Goog-Upload-Chunk-Granularity"))?parseInt(M,10):1;J===void 0||isNaN(M)||M<=0?tV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
M)*M,this.transferHandle_=new AvV(J),this.dispatchEvent(new U4("p")),this.state_="Upload",this.retryIterator_.reset(),xB(this))}else xB(this)};
w$.prototype.onUploadProgress_=function(M){this.JSC$11983_bytesTransferred_=this.offset_+M.loaded;this.dispatchEvent(new U4("k"))};
w$.prototype.JSC$11985_onUploadComplete_=function(M,z,J){var R=this,D,N;return _.k(function(Z){switch(Z.nextAddress){case 1:D=J.target;R.lastCommandResponseCode_=D.getStatus();R.dispatchEvent(new vc("r"));if(Dop(D)||D.getStatus()==404)return R.JSC$11983_bytesTransferred_=M,JwB(R,D),Z.return();if(RI2(D)){Z.jumpTo(2);break}if(!(N=R.detectCorruptedBlobEnabled_)){Z.jumpTo(3);break}return Z.yield(NpV(R),4);case 4:N=Z.yieldResult;case 3:if(N)return tV(R,"Blob has been modified or corrupted."),Z.return();
R.requireUploadRequestModification_=D.getStatus()==400;R.state_="Query";xB(R);return Z.return();case 2:if(z)return tV(R,"Got a non-final success response after issuing a finalize command."),Z.return();R.JSC$11983_bytesTransferred_=M;R.offset_=M;R.retryIterator_.reset();xB(R);return Z.return()}})};
w$.prototype.onQueryComplete_=function(M){var z=M.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new vc("r"));zIB(z)?(z.getStatus()===200&&(this.JSC$11983_bytesTransferred_=this.blob_.size),JwB(this,z)):RI2(z)?(M=fW(M.target.getAllResponseHeaders()),M=parseInt(Yl(M,"X-Goog-Upload-Size-Received"),10),isNaN(M)?tV(this,"Server did not respond with current offset."):M<this.offset_?tV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
M+"."):this.requireUploadRequestModification_&&this.offset_===M?tV(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<M&&this.retryIterator_.reset(),this.offset_=this.JSC$11983_bytesTransferred_=M,this.state_="Upload",xB(this))):xB(this)};
var JwB=function(M,z){M.JSC$11983_responseCode_=z.getStatus();var J=fW(z.getAllResponseHeaders());u$R(J);M.JSC$11983_responseText_=z.getResponseText();M.state_="Response received";M.dispatchEvent(new U4("l"))},RI2=function(M){var z=M.getStatus();
M=fW(M.getAllResponseHeaders());M=Yl(M,"X-Goog-Upload-Status");return z===200&&M==="active"},Dop=function(M){M=fW(M.getAllResponseHeaders());
return Yl(M,"X-Goog-Upload-Status")==="final"},zIB=function(M){if(Dop(M))return!0;
M=M.getStatus();return M>=400&&M<500},NpV=function(M){var z;
return _.k(function(J){if(J.nextAddress==1){if(!M.blob_||M.originalBlobSize_<=0)return J.return(!1);if(M.blob_.size!==M.originalBlobSize_)return J.return(!0);_.Io(J,2);if(z=PWV(M.blob_,0,1)){var R=J.yield,D=new aq,N=qAv(D);D.reader_.readAsBinaryString(z);J=R.call(J,N,4)}else J=J.return(!0);return J}if(J.nextAddress!=2)return J.return(M.blob_.size!==M.originalBlobSize_);_.Qa(J);return J.return(!0)})};var PoQ=function(M,z,J,R,D,N){_.jB.call(this);this.payload_=R;this.JSC$11986_url_=M;this.JSC$11986_method_=z;this.JSC$11986_headers_=J;this.JSC$11986_metadata_=D;this.encoding_=N||"binary";M=new _.m7;this.boundary_="uploader-"+$F()+"-"+M.JSC$11241_toIsoString();this.JSC$11986_responseText_=this.JSC$11986_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11986_errorDescription_=null;this.JSC$11986_eventHandler_=new _.Ps(this);_.OC(this,this.JSC$11986_eventHandler_)};
_.w(PoQ,iyB);_.P=PoQ.prototype;
_.P.run=function(){var M=_.gu.clone(this.JSC$11986_headers_);this.payload_.length!=null&&(M["Content-Length"]=this.payload_.length);M=$Dc(M);M["X-Goog-Upload-Protocol"]="multipart";M["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new GO;this.JSC$11986_eventHandler_.removeAll();this.JSC$11986_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11986_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11986_url_,this.JSC$11986_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11986_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",M)};
_.P.getResponseCode=function(){return this.JSC$11986_responseCode_};
_.P.getResponseText=function(){return this.JSC$11986_responseText_};
_.P.JSC$29299_getErrorDescription=function(){return this.JSC$11986_errorDescription_};
_.P.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11986_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new U4("o")))};
_.P.pause=function(){};
_.P.onTransferProgress_=function(){this.dispatchEvent(new U4("k"))};
_.P.onTransferComplete_=function(M){var z=M.target.getStatus();z===void 0||z===-1?(this.JSC$11986_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new U4("n"))):(this.JSC$11986_responseCode_=z,M=M.target,z=fW(M.getAllResponseHeaders()),u$R(z),this.JSC$11986_responseText_=M.getResponseText(),this.state_="Complete",this.dispatchEvent(new U4("l")))};_.Scv=function(M,z,J,R){R=R===void 0?!1:R;if(J instanceof EI$)return new CNJ(M,"POST",z,J.getInputElement(),"");if(typeof J==="string"||J instanceof String)return new PoQ(M,"POST",z,J,"");var D=new w$(void 0);D.JSC$11983_url_=M;D.JSC$11983_method_="POST";D.JSC$11983_headers_=z;D.blob_=J;D.originalBlobSize_=J.size;D.JSC$11983_metadata_="";R&&(D.JSC$11983_withCredentials_=R);D.state_="Start";return D};var jO=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(jO,_.zA);_.P=jO.prototype;_.P.getEnableSsEngine=function(){return _.go(this,2)};
_.P.getEnableAwr=function(){return _.go(this,3)};
_.P.getAlohaAutoGaRollout=function(){return _.go(this,5)};
_.P.getEnableConfigurator=function(){return _.go(this,6)};
_.P.getEnableMweb=function(){return _.go(this,7)};
var kES=function(){var M=ZQv();return _.gM(M,7,!0)};
jO.prototype.getEnableCtlConsentCheckbox=function(){return _.go(this,8)};
jO.prototype.getEnableIframe=function(){return _.go(this,9)};
var ZQv=function(){var M=new jO;M=_.gM(M,5,!0);M=_.gM(M,2,!0);M=_.gM(M,4,!1);M=_.gM(M,8,!0);return _.gM(M,9,!0)};
jO.prototype.getEnableScreenshotNudge=function(){return _.go(this,10)};
var Bpv=function(){var M=kES();return _.gM(M,10,!0)};
jO.prototype.getEnableWebStartupConfigEndpoint=function(){return _.go(this,11)};
jO.prototype.getEnableJunkNudge=function(){return _.go(this,12)};
var PMH=function(){var M=Bpv();return _.gM(M,12,!0)};
_.P=jO.prototype;_.P.getEnableConfiguratorLocale=function(){return _.go(this,13)};
_.P.getEnableTinyNoPointer=function(){return _.go(this,14)};
_.P.getEnableSupportSessionLogging=function(){return _.go(this,15)};
_.P.getEnableFileUploadForScreenshot=function(){return _.go(this,16)};
_.P.getEnableDirectDeflectionForSingleCategory=function(){return _.go(this,17)};
_.P.getEnableImageSanitization=function(){return _.go(this,18)};
_.P.getEnableAlohaBinarySplit=function(){return _.go(this,19)};
_.P.getEnableDbFeedbackIntents=function(){return _.go(this,20)};
_.P.getEnableMarkMandatoryFieldsWithRequired=function(){return _.go(this,21)};
_.P.getEnableFeedbackCategoryCustomUi=function(){return _.go(this,22)};
_.P.getEnableRealtimeCtl=function(){return _.go(this,23)};var Ndw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Ndw,_.zA);var qkR=[/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 aF8="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 VHG=_.Ca(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Eee=_.Ca(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Lv0,CFY,Abw,bFH;var OQk,Tpt;
OQk=function(M,z,J){M.timeOfStartCall=(new Date).getTime();var R=J||_.R3,D=R.document,N=M.nonce||_.Ew(R.document);N&&!M.nonce&&(M.nonce=N);if(M.flow=="help"){var Z=_.qH("document.location.href",R);!M.helpCenterContext&&Z&&(M.helpCenterContext=Z.substring(0,1200));Z=!0;if(z&&JSON&&JSON.stringify){var B=JSON.stringify(z);(Z=B.length<=1200)&&(M.psdJson=B)}Z||(z={invalidPsd:!0})}z=[M,z,J];R.GOOGLE_FEEDBACK_START_ARGUMENTS=z;J=M.feedbackServerUri||"//www.google.com/tools/feedback";if(Z=R.GOOGLE_FEEDBACK_START)Z.apply(R,z);
else{R=J+"/load.js?";for(var O in M)z=M[O],z==null||_.E8(z)||(R+=encodeURIComponent(O)+"="+encodeURIComponent(z)+"&");M=vj(D).createElement("SCRIPT");N&&M.setAttribute("nonce",N);_.is(M,_.wi(R));D.body.appendChild(M)}};
Tpt=function(M,z,J,R){var D,N;_.k(function(Z){D=J||_.R3;var B=M.serverEnvironment==="DEV",O=J||_.R3;O=M.nonce||_.Ew(O.document);B={integrationKeys:{productId:M.productId,feedbackBucket:M.bucket,triggerId:M.triggerId},callbacks:{onClose:M.callback,onLoad:M.onLoadCallback},formContent:{locale:M.locale,disableScreenshot:M.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:M.abuseLink,additionalDataConsent:M.additionalDataConsent},initializationData:{isLocalServer:B,nonce:O,useNightlyRelease:B,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:M.feedbackServerUri,colorScheme:M.colorScheme},extraData:{productVersion:M.productVersion,authUser:M.authuser,configuratorId:M.configuratorId,customZIndex:M.customZIndex,tinyNoPointer:M.tinyNoPointer,
allowNonLoggedInFeedback:M.allowNonLoggedInFeedback,enableAnonymousFeedback:M.enableAnonymousFeedback}};z&&(O=new Map(Object.entries(z)),B.extraData.productSpecificData=O);N=B;return Z.yield(J$p(N,R,D),0)})};
_.Ikp=function(M,z,J){try{if(M.flow==="help"){var R=M.helpCenterPath.replace(/^\//,"");_.VZ(J||window,"https://support.google.com/"+R)}else M.flow==="submit"?OQk(M,z,J):Sq0(M.productId,M.feedbackServerUri).then(function(D){D=_.DG(D,jO,1);var N=!lxH||(D==null?void 0:D.getEnableMweb()),Z=!M.tinyNoPointer||(D==null?void 0:D.getEnableTinyNoPointer());!D||D.getAlohaAutoGaRollout()&&N&&Z?Tpt(M,z,J,D):OQk(M,z,J)},function(D){D&&D.name!=="DuplicateFormError"&&OQk(M,z,J)})}catch(D){Tpt(M,z,J,null)}};
_.b9("userfeedback.api.startFeedback",_.Ikp);var ZC8=/https?:\/\/\S+\.\S+/,kae=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Bdp=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var yle=function(M){var z=M.split(""),J=[-263237435,15,z,function(R,D,N){var Z=D.length;N.forEach(function(B,O,X){this.push(X[O]=D[(D.indexOf(B)-D.indexOf(this[O])+O+Z--)%D.length])},R.split(""))},
function(R,D){R=(R%D.length+D.length)%D.length;D.splice(-R).reverse().forEach(function(N){D.unshift(N)})},
"response",function(){for(var R=64,D=[];++R-D.length-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}D.push(String.fromCharCode(R))}return D},
null,12,1540023973,65941107,null,z,function(R,D){for(R=(R%D.length+D.length)%D.length;R--;)D.unshift(D.pop())},
695603893,function(R){for(var D=R.length;D;)R.push(R.splice(--D,1)[0])},
"'[;'[(",function(R,D){R.push(D)},
null,function(R,D,N,Z,B){return D(N,Z,B)},
"continuation",z,function(R,D){if(R.length!=0){D=(D%R.length+R.length)%R.length;var N=R[0];R[0]=R[D];R[D]=N}},
function(){for(var R=64,D=[];++R-D.length-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}D.push(String.fromCharCode(R))}return D},
'"),/]];'];J[7]=J;J[11]=J;J[18]=J;try{(((0,J[15])(J[21]),J[22])(J[11],J[9]),J[22])(J[new Date("1970-01-01T04:30:12.000+04:30")/1E3],J[1]),((0,J[22])(J[11],J[23]),J[4])(J[10],J[18]),(0,J[20])(J[21],J[14])<<(0,J[17])(J[18],J[1]),(0,J[4])(J[8],J[21]),(0,J[19])((0,J[19])((0,J[17])(J[7],J[9]),J[3],J[20],(0,J[6])(),J[2]),J[3],J[5],(0,J[15])(),J[2])}catch(R){return"aTlOUOubTO4AP____8P_"+M}return z.join("")};_.oiJ=new _.R_("runAttestationCommand");var XKp=new _.R_("verifyCommand");_.pM=new _.R_("accessibilityContext");var lkp=new _.R_("accessibilityData");var eIv=new _.R_("profileCardCommand");var gMG=new _.R_("signInEndpoint");var md8=new _.R_("signOutEndpoint");var UoB;_.QNk=new _.R_("accountItemSectionRenderer");UoB=new _.R_("accountItemRenderer");_.vig=new _.R_("saveCommandToSessionStorageAction");var GEp=new _.R_("crossAccountChannelTransferEndpoint");var jGY=new _.R_("getAccountMenuEndpoint");_.pkn=new _.R_("getAccountSwitcherEndpoint");var t$8=new _.R_("getAccountsListEndpoint");var wKV=new _.R_("getAccountsListInnertubeEndpoint");_.F7=new _.R_("addToToastAction");var xo$=new _.R_("hideEnclosingAction");_.YB=new _.R_("replaceEnclosingAction");var t6k=new _.R_("buttonRefreshAction");var jNV=new _.R_("adsControlFlowOpportunityReceivedCommand");var pKg=new _.R_("openAdAllowlistInstructionCommand");var Fct=new _.R_("videoMastheadAdPrimaryVideoRenderer");var YcV=new _.R_("displayAdRenderer");var M0c=new _.R_("instreamVideoAdRenderer");_.mok=new _.R_("inFeedAdLayoutRenderer");var giv=new _.R_("sequenceItemInPlayerAdLayoutRenderer");_.sNu=new _.R_("adSlotRenderer");var niv=new _.R_("adAvatarViewModel");var hIJ=new _.R_("adBadgeViewModel");var yw$=new _.R_("adImageViewModel");var Jyb=new _.R_("reelsAdCardButtonedViewModel");var HQ$=new _.R_("reelsPlayerOverlayLayoutViewModel");var cwu=new _.R_("showSchedulingPanelCommand");var dot=new _.R_("backstageCommentsRenderer");var KcQ=new _.R_("backstageImageRenderer");var $ov=new _.R_("backstagePostRenderer");var udu=new _.R_("backstageZeroStateRenderer");var qca=new _.R_("postRenderer");var Wcg=new _.R_("sharedPostRenderer");var akg=new _.R_("createBackstagePostEndpoint");var V6g=new _.R_("getPostVideoPreviewEndpoint");var Eiu=new _.R_("updateBackstagePostEndpoint");var fk$=new _.R_("filterChipTransformCommand");var Lcv=new _.R_("insertRichSectionCommand");var LC8=new _.R_("talkToRecsDeselectCommand");var Awa=new _.R_("talkToRecsNextCommand");var fMc=new _.R_("talkToRecsSelectCommand");var iQp=new _.R_("talkToRecsUpdateTextCommand");_.Gh=new _.R_("browseEndpoint");_.CoS=new _.R_("confirmDialogEndpoint");var bQB=new _.R_("expandOnHoverCardRenderer");var rwk=new _.R_("lumiereShelfDetailsRenderer");var MB$=new _.R_("revealBusinessEmailCommand");var zvp=new _.R_("validateChannelHandleCommand");var JQV=new _.R_("channelCreationFormEndpoint");var Rvu=new _.R_("aboutChannelViewModel");var Dku=new _.R_("channelThumbnailWithLinkRenderer");var Nst=new _.R_("channelCreationServiceEndpoint");var PHV=new _.R_("updateChannelPageSettingsEndpoint");var mR=function(M){this.delegate=M},g$=function(){mR.apply(this,arguments)};
_.w(g$,mR);_.rX.Object.defineProperties(g$.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(M){this.delegate.entityMetadata=M}}});var SeV=function(){g$.apply(this,arguments)};
_.w(SeV,g$);SeV.prototype.getAssociations=function(){return[]};
SeV.prototype.getTypeName=function(){return"channelHandle"};var cD8=new _.R_("webThumbnailDetailsExtensionData");var zHe=new _.R_("commandContext");var Zsg=new _.R_("addVideoLinkAction");var kQ$=new _.R_("banAuthorAction");var Bsv=new _.R_("createCommentAction");var OsS=new _.R_("createCommentReplyAction");var Tsv=new _.R_("createPollAction");var ICQ=new _.R_("hideIdentityChipAction");var osS=new _.R_("openUpdateCommentDialogAction");var XR$=new _.R_("pinCommentAction");var lCa=new _.R_("removeCommentAction");var evv=new _.R_("unpinCommentAction");var s4=new _.R_("updateBackstagePollAction");var Qya=new _.R_("updateCommentVoteAction");var Ukg=new _.R_("commentThreadRenderer");var vsV=function(){g$.apply(this,arguments)};
_.w(vsV,g$);vsV.prototype.getAssociations=function(){return[]};
vsV.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var GQt=function(){g$.apply(this,arguments)};
_.w(GQt,g$);GQt.prototype.getAssociations=function(){return[]};
GQt.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.wR2=new _.R_("commentDialogRenderer");var xkv=new _.R_("reloadCommentsCommand");var tBg=new _.R_("updateCommentsSettingsEndpoint");var jyt=new _.R_("commentViewModel");var pRv=new _.R_("triStateButtonViewModel");var FiV=new _.R_("voiceReplyContainerViewModel");_.TV=new _.R_("commandExecutorCommand");var H5=new _.R_("emoji");var YeS=new _.R_("updateCreatorChannelInnertubeCommand");_.mkQ=new _.R_("appendContinuationItemsAction");_.gs$=new _.R_("changeEngagementPanelVisibilityAction");_.uP=new _.R_("continuationCommand");var syg=new _.R_("hideReportedCommentAction");var nst=new _.R_("listMutationCommand");_.nM=new _.R_("openPopupAction");var hvg=new _.R_("persistSubscriptionsDisplayPreferencesCommand");var qeB;_.yQV=new _.R_("playlistRemoveVideosAction");_.HsQ=new _.R_("updatePlaylistAction");_.cQQ=new _.R_("addToPlaylistCommand");_.dkv=new _.R_("endPlaylistCommand");_.KiV=new _.R_("recoverPlaylistCommand");_.$kt=new _.R_("refreshPlaylistCommand");_.upp=new _.R_("refreshFormCommand");qeB=new _.R_("openOnePickAddVideoModalCommand");_.nd0=new _.R_("reloadContinuationItemsCommand");_.Wiu=new _.R_("scrollToEngagementPanelCommand");var aCV=new _.R_("selectCountryCommand");var VBV=new _.R_("showReloadUiCommand");var Esu=new _.R_("undoFeedbackAction");var fC$=new _.R_("updateButtonAction");var Lia=new _.R_("updateSubscribeButtonAction");var AQS=new _.R_("updateToggleAction");var isu=new _.R_("webNativeShareCommand");_.X9=new _.R_("webCommandMetadata");_.hV=new _.R_("webHandleServiceEndpointExtension");var ncH=new _.R_("webNavigationEndpointData");var CHQ=new _.R_("backgroundAudioPlaybackCommand");var bsv=new _.R_("copyLinkCommand");var rQa=new _.R_("playlistVotingRefreshPopupCommand");var MHu=new _.R_("selectChipCommand");var zhS=new _.R_("setCookieCommand");var JbJ=new _.R_("setLocalStorageCommand");var Rh2=new _.R_("setPrefStorageEntryCommand");var Skv;_.DDu=new _.R_("settingsUpdateCheckboxCommand");_.Nqk=new _.R_("settingsUpdateTextCommand");_.PFQ=new _.R_("settingsUpdateOptionsCommand");Skv=new _.R_("settingsUpdateSwitchCommand");_.ZFv=new _.R_("settingsUpdateConnectedAppRendererCommand");var k5u=new _.R_("updateTextInputFormFieldRendererCommand");var Bqg=new _.R_("updateToggleButtonStateCommand");var OFk=new _.R_("updateUrlParamCommand");var Tqu=new _.R_("webSubmitFormCommand");var IF$=new _.R_("channelSwitcherPageRenderer"),oev=new _.R_("updateChannelSwitcherPageAction");_.z0=new _.R_("continuationItemRenderer");_.yz=new _.R_("richItemRenderer");var X3$=new _.R_("richSectionRenderer");_.lFV=new _.R_("richShelfRenderer");_.ehB=new _.R_("metadataBadgeRenderer");_.QI$=new _.R_("multiPageMenuNotificationSectionRenderer");_.UDp=new _.R_("playlistLoopButtonStateRenderer");var veB=new _.R_("claimLegacyYoutubeChannelEndpoint");var G5Q=new _.R_("getNotificationMenuEndpoint");var w3B=new _.R_("getSearchInVideoCommand");_.xDu=new _.R_("getTranscriptEndpoint");_.on=new _.R_("signalServiceEndpoint");var tHQ=new _.R_("verifyAgeEndpoint");var dlY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(dlY,_.zA);dlY.prototype.getPath=function(){return _.hv(this,1)};
dlY.prototype.getValue=function(){return _.hv(this,2)};var jIV=[0,_.Cy,-1];var p32=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(p32,_.zA);var clH=_.B4(p32,[0,_.ro,jIV]);var FvJ=new _.R_("dismissalEndpoint");var Yk$=new _.R_("elementsCommand");_.dv=new _.R_("innertubeCommand");var mDQ=new _.R_("multipleInlinePlaybackCommand");var lO0=new _.R_("loggingDirectives");var geQ=new _.R_("acknowledgeChannelTouStrikeCommand");var sI2=function(){g$.apply(this,arguments)};
_.w(sI2,g$);sI2.prototype.getAssociations=function(){return[]};
sI2.prototype.getTypeName=function(){return"booleanEntity"};var ne$=function(){g$.apply(this,arguments)};
_.w(ne$,g$);ne$.prototype.getAssociations=function(){return[]};
ne$.prototype.getTypeName=function(){return"stringEntity"};var iP=new _.R_("entityBatchUpdate");_.hht=new _.R_("entityUpdateCommand");var yb$=function(){g$.apply(this,arguments)};
_.w(yb$,g$);yb$.prototype.getAssociations=function(){var M=[];this.delegate.alternateChannel&&M.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&M.push.apply(M,_.Yj(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&M.push(this.delegate.oneofChannelEntity);return[].concat(_.Yj(new Set(M)))};
yb$.prototype.getTypeName=function(){return"fakeChannel"};var HFu=function(){g$.apply(this,arguments)};
_.w(HFu,g$);HFu.prototype.getAssociations=function(){var M=[];this.delegate.entryCollection&&M.push(this.delegate.entryCollection);return[].concat(_.Yj(new Set(M)))};
HFu.prototype.getTypeName=function(){return"fakePlaylist"};
var cbu=function(){g$.apply(this,arguments)};
_.w(cbu,g$);cbu.prototype.getAssociations=function(){var M=[];this.delegate.parentPlaylist&&M.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var z=_.S(this.delegate.entries),J=z.next();!J.done;J=z.next())M.push.apply(M,_.Yj((new dDt(J.value)).getAssociations()));return[].concat(_.Yj(new Set(M)))};
cbu.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var dDt=function(){mR.apply(this,arguments)};
_.w(dDt,mR);dDt.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);return[].concat(_.Yj(new Set(M)))};var KvJ=function(){g$.apply(this,arguments)};
_.w(KvJ,g$);KvJ.prototype.getAssociations=function(){var M=[];this.delegate.descriptionEntity&&M.push(this.delegate.descriptionEntity);this.delegate.creators&&M.push.apply(M,_.Yj(this.delegate.creators));this.delegate.theBiggestFan&&M.push(this.delegate.theBiggestFan);return[].concat(_.Yj(new Set(M)))};
KvJ.prototype.getTypeName=function(){return"fakeVideo"};
var $DV=function(){g$.apply(this,arguments)};
_.w($DV,g$);$DV.prototype.getAssociations=function(){return[]};
$DV.prototype.getTypeName=function(){return"fakeVideoDescription"};var u$g=new _.R_("fantasyRosterViewModel");var qkg=new _.R_("addFollowUpSurveyCommand");var Wvg=new _.R_("getSurveyCommand");var aFt=new _.R_("ratingSurveyOptionRenderer");_.Hf=new _.R_("feedbackEndpoint");var VHJ=new _.R_("reportHistoryTableCellRenderer"),EeS=new _.R_("reportHistoryTableTextCellRenderer"),fFB=new _.R_("reportHistoryTableReasonCellRenderer");_.Lv2=new _.R_("flagEndpoint");var Ab$=new _.R_("getFlowCommand");var iFa=new _.R_("submitFormWithValidationFlowCommand");var CFu=function(){g$.apply(this,arguments)};
_.w(CFu,g$);CFu.prototype.getAssociations=function(){return[]};
CFu.prototype.getTypeName=function(){return"flowStateEntity"};var bFV=new _.R_("flowFormState");var rbB=new _.R_("gameCardRenderer");var MlQ=new _.R_("accountLinkingStateChangedCommand");var z_v=function(){g$.apply(this,arguments)};
_.w(z_v,g$);z_v.prototype.getAssociations=function(){return[]};
z_v.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var J$a=new _.R_("changeMiniAppPlayStateCommand");var R_2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(R_2,_.zA);var Hc=[1,2,3];var DhJ=[0,Hc,aHp,_.Vjp,cWH];var Nd$=_.B4(R_2,DhJ),PMV=_.Ow(DhJ);var Sq2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Sq2,_.zA);var ZC$=[0,_.Ly,_.Cy];var kaS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(kaS,_.zA);var Bdv=[0,_.Cy,_.Ly,-1];var cc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(cc,_.zA);var OC2=_.Ow([0,1,ZC$,_.zE,Bdv]);var TdV=new _.R_("miniAppScoreChallengeViewModel");var IWV=new _.R_("miniGameCardViewModel");var oDt=new _.R_("teaserCardViewModel");var Xh$=function(){g$.apply(this,arguments)};
_.w(Xh$,g$);Xh$.prototype.getAssociations=function(){return[]};
Xh$.prototype.getTypeName=function(){return"logoEntity"};_.lWv=new _.R_("feedbackItemRenderer");var e_$=function(){g$.apply(this,arguments)};
_.w(e_$,g$);e_$.prototype.getAssociations=function(){return[]};
e_$.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Q_V=new _.R_("playerInterstitialRenderer");var UhV=new _.R_("getKidsBlocklistPickerCommand");_.vDV=new _.R_("updateKidsBlacklistEndpoint");var Gaa=new _.R_("learningJourneyCanvasCommand");_.uf=new _.R_("likeEndpoint");var wha,xht,tlV;wha=new _.R_("addChatItemAction");xht=new _.R_("removeChatItemAction");tlV=new _.R_("markChatItemAsDeletedAction");_.j_a=new _.R_("setLiveChatCollapsedStateAction");var phv=function(){g$.apply(this,arguments)};
_.w(phv,g$);phv.prototype.getAssociations=function(){return[]};
phv.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var F8a=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(F8a,_.zA);var YqV=_.B4(F8a,[0,1,_.Ly]);var mh$=new _.R_("liveChatEndpoint");var gDJ=new _.R_("liveChatItemContextMenuEndpoint");var s_p=new _.R_("liveChatReplayEndpoint");_.nDV=new _.R_("emojiPickerRenderer");var h_J=new _.R_("liveChatAuthorBadgeViewModel");var y$V=new _.R_("deleteLiveChatMessageCommand");var HCp=new _.R_("liveChatActionEndpoint");var c$v=new _.R_("createLiveChatPollEndpoint");var dhu=new _.R_("manageLiveChatUserEndpoint");var K8$=new _.R_("moderateLiveChatEndpoint");_.$hQ=new _.R_("sendLiveChatMessageEndpoint");var uMu=new _.R_("sendLiveChatVoteEndpoint");var qqu=new _.R_("clearLocationCommand");var W8g=new _.R_("resolveLocationCommand");var aWg=new _.R_("interactionLoggingCommandMetadata");var Vla=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Vla,_.zA);var EDV=function(M,z){return _.SJ(M,1,z)};var fW2=[0,_.iN];var L8p=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(L8p,_.zA);var A$B=function(M,z){return eI(M,1,Vla,z)};L8p.prototype.JSC$12080_serializeBinary=crn([0,_.ro,fW2]);var nDH={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 iCg={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"},
CMJ={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 LwY={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"};_.R38=new _.R_("logFlowLoggingEventCommand");_.wv=new _.R_("loggingContext");var bCB=new _.R_("audioTrackSelectActionCommand");var r$J=new _.R_("captionLanguageSelectActionCommand");var MRv=new _.R_("showCaptionLanguageSelectActionCommand");var zTV=new _.R_("dismissDialogEndpoint");var Jn$=new _.R_("dismissPlayerOverlayCommand");var RTQ=new _.R_("hideItemSectionVideosByIdCommand");var DPV=new _.R_("showMiniplayerCommand");var NJS=function(){g$.apply(this,arguments)};
_.w(NJS,g$);NJS.prototype.getAssociations=function(){return[]};
NJS.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var PZQ=function(){g$.apply(this,arguments)};
_.w(PZQ,g$);PZQ.prototype.getAssociations=function(){return[]};
PZQ.prototype.getTypeName=function(){return"downloadStatusEntity"};var S_u=function(){g$.apply(this,arguments)};
_.w(S_u,g$);S_u.prototype.getAssociations=function(){return[]};
S_u.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var ZRJ=function(){g$.apply(this,arguments)};
_.w(ZRJ,g$);ZRJ.prototype.getAssociations=function(){var M=[];this.delegate.downloadsList&&M.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&M.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&M.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.Yj(new Set(M)))};
ZRJ.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var kxQ=function(){g$.apply(this,arguments)};
_.w(kxQ,g$);kxQ.prototype.getAssociations=function(){var M=[];this.delegate.refresh&&M.push(this.delegate.refresh);if(this.delegate.downloads)for(var z=_.S(this.delegate.downloads),J=z.next();!J.done;J=z.next())M.push.apply(M,_.Yj((new BJv(J.value)).getAssociations()));return[].concat(_.Yj(new Set(M)))};
kxQ.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var BJv=function(){mR.apply(this,arguments)};
_.w(BJv,mR);BJv.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playlist&&M.push(this.delegate.playlist);this.delegate.videoItem&&M.push(this.delegate.videoItem);this.delegate.playlistItem&&M.push(this.delegate.playlistItem);return[].concat(_.Yj(new Set(M)))};var ORa=function(){g$.apply(this,arguments)};
_.w(ORa,g$);ORa.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.Yj(this.delegate.localImageEntities));return[].concat(_.Yj(new Set(M)))};
ORa.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var TJt=function(){g$.apply(this,arguments)};
_.w(TJt,g$);TJt.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.Yj(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Yj(new Set(M)))};
TJt.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var Iy$=function(){g$.apply(this,arguments)};
_.w(Iy$,g$);Iy$.prototype.getAssociations=function(){return[]};
Iy$.prototype.getTypeName=function(){return"offlineabilityEntity"};var otv=function(){g$.apply(this,arguments)};
_.w(otv,g$);otv.prototype.getAssociations=function(){var M=[];this.delegate.fakeChildren&&M.push.apply(M,_.Yj(this.delegate.fakeChildren));return[].concat(_.Yj(new Set(M)))};
otv.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var X0v=function(){g$.apply(this,arguments)};
_.w(X0v,g$);X0v.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);return[].concat(_.Yj(new Set(M)))};
X0v.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var lyp=function(){g$.apply(this,arguments)};
_.w(lyp,g$);lyp.prototype.getAssociations=function(){return[]};
lyp.prototype.getTypeName=function(){return"continuationTokenEntity"};var eTQ=function(){g$.apply(this,arguments)};
_.w(eTQ,g$);eTQ.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.videos&&M.push.apply(M,_.Yj(this.delegate.videos));this.delegate.collaboratorChannels&&M.push.apply(M,_.Yj(this.delegate.collaboratorChannels));this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.Yj(new Set(M)))};
eTQ.prototype.getTypeName=function(){return"mainPlaylistEntity"};var Qq2=function(){g$.apply(this,arguments)};
_.w(Qq2,g$);Qq2.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.channelContributor&&M.push(this.delegate.channelContributor);return[].concat(_.Yj(new Set(M)))};
Qq2.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var UPu=function(){mR.apply(this,arguments)};
_.w(UPu,mR);UPu.prototype.getAssociations=function(){var M=[];this.delegate.recommendedVideoMetadata&&M.push.apply(M,_.Yj((new vtk(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Yj(new Set(M)))};
var vtk=function(){mR.apply(this,arguments)};
_.w(vtk,mR);vtk.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.Yj(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Yj(new Set(M)))};var Gxv=function(){mR.apply(this,arguments)};
_.w(Gxv,mR);Gxv.prototype.getAssociations=function(){var M=[];this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);return[].concat(_.Yj(new Set(M)))};var w0t=function(){g$.apply(this,arguments)};
_.w(w0t,g$);w0t.prototype.getAssociations=function(){var M=[];this.delegate.owner&&M.push(this.delegate.owner);this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.userState&&M.push.apply(M,_.Yj((new Gxv(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&M.push.apply(M,_.Yj((new UPu(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Yj(new Set(M)))};
w0t.prototype.getTypeName=function(){return"mainVideoEntity"};var xPp=function(){g$.apply(this,arguments)};
_.w(xPp,g$);xPp.prototype.getAssociations=function(){var M=[];this.delegate.userChannelDetails&&M.push(this.delegate.userChannelDetails);return[].concat(_.Yj(new Set(M)))};
xPp.prototype.getTypeName=function(){return"ytMainChannelEntity"};var tRt=function(){g$.apply(this,arguments)};
_.w(tRt,g$);tRt.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&M.push.apply(M,_.Yj(this.delegate.localImageEntities));this.delegate.downloadStatus&&M.push(this.delegate.downloadStatus);return[].concat(_.Yj(new Set(M)))};
tRt.prototype.getTypeName=function(){return"ytMainVideoEntity"};var g9e=new _.R_("downloadsPageSmartDownloadsOptInBannerParams");var ymb=new _.R_("downloadsPageUpsellBannerParams");var jqu=function(){g$.apply(this,arguments)};
_.w(jqu,g$);jqu.prototype.getAssociations=function(){return[]};
jqu.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var p0t=function(){g$.apply(this,arguments)};
_.w(p0t,g$);p0t.prototype.getAssociations=function(){return[]};
p0t.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var F7B=function(){g$.apply(this,arguments)};
_.w(F7B,g$);F7B.prototype.getAssociations=function(){return[]};
F7B.prototype.getTypeName=function(){return"macroMarkerEntity"};var Y_g=function(){g$.apply(this,arguments)};
_.w(Y_g,g$);Y_g.prototype.getAssociations=function(){return[]};
Y_g.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var mPp=function(){g$.apply(this,arguments)};
_.w(mPp,g$);mPp.prototype.getAssociations=function(){return[]};
mPp.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var gtV=function(){g$.apply(this,arguments)};
_.w(gtV,g$);gtV.prototype.getAssociations=function(){return[]};
gtV.prototype.getTypeName=function(){return"playerStateEntity"};var sqa=function(){g$.apply(this,arguments)};
_.w(sqa,g$);sqa.prototype.getAssociations=function(){return[]};
sqa.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var ntp=function(){g$.apply(this,arguments)};
_.w(ntp,g$);ntp.prototype.getAssociations=function(){return[]};
ntp.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var hT$=function(){g$.apply(this,arguments)};
_.w(hT$,g$);hT$.prototype.getAssociations=function(){return[]};
hT$.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.d$=new _.R_("dislikeButtonViewModel");_.KM=new _.R_("likeButtonViewModel");var yng=new _.R_("videoSummaryContentViewModel");var HRg=new _.R_("videoSummaryParagraphViewModel");var cnp=new _.R_("changeTimelyActionVisibilityCommand");var dPJ=new _.R_("hideEngagementPanelEndpoint");var K7B=new _.R_("refreshPanelEndpoint");var $Pg=new _.R_("scrollToSectionEndpoint");var uek=new _.R_("seekToVideoTimestampCommand");_.yq=new _.R_("showEngagementPanelEndpoint");var q_p=new _.R_("showTransientPlayerScrimOverlayCommand");var W7a=new _.R_("toggleEngagementPanelCommand");_.ayu=new _.R_("createBroadcastCommand");var VRV=new _.R_("metadataUpdateCommand");var EtV=function(){g$.apply(this,arguments)};
_.w(EtV,g$);EtV.prototype.getAssociations=function(){return[]};
EtV.prototype.getTypeName=function(){return"featuredProductsEntity"};var fya=function(){g$.apply(this,arguments)};
_.w(fya,g$);fya.prototype.getAssociations=function(){return[]};
fya.prototype.getTypeName=function(){return"pinnedProductEntity"};var L7S=function(){g$.apply(this,arguments)};
_.w(L7S,g$);L7S.prototype.getAssociations=function(){return[]};
L7S.prototype.getTypeName=function(){return"trendingOfferEntity"};_.AnV=new _.R_("merchandiseShelfRenderer");var iRu=new _.R_("gridMovieRenderer");_.CZQ=new _.R_("movieRenderer");var bR$=function(){g$.apply(this,arguments)};
_.w(bR$,g$);bR$.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.Yj(this.delegate.trackDownloadMetadatas));return[].concat(_.Yj(new Set(M)))};
bR$.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var rn$=function(){g$.apply(this,arguments)};
_.w(rn$,g$);
rn$.prototype.getAssociations=function(){var M=[];this.delegate.downloadedTracks&&M.push.apply(M,_.Yj(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&M.push.apply(M,_.Yj(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&M.push.apply(M,_.Yj(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&M.push.apply(M,_.Yj(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&M.push.apply(M,_.Yj(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
M.push.apply(M,_.Yj(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&M.push.apply(M,_.Yj(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&M.push.apply(M,_.Yj(this.delegate.metadataOnlyTracks));return[].concat(_.Yj(new Set(M)))};
rn$.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Mck=function(){g$.apply(this,arguments)};
_.w(Mck,g$);Mck.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.Yj(this.delegate.trackDownloadMetadatas));return[].concat(_.Yj(new Set(M)))};
Mck.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var zO$=function(){g$.apply(this,arguments)};
_.w(zO$,g$);zO$.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.Yj(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Yj(new Set(M)))};
zO$.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var JTJ=function(){g$.apply(this,arguments)};
_.w(JTJ,g$);
JTJ.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&M.push.apply(M,_.Yj(this.delegate.primaryArtists));this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.tracks&&M.push.apply(M,_.Yj(this.delegate.tracks));this.delegate.share&&M.push(this.delegate.share);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.refresh&&
M.push(this.delegate.refresh);return[].concat(_.Yj(new Set(M)))};
JTJ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var ROV=function(){g$.apply(this,arguments)};
_.w(ROV,g$);ROV.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.tracks&&M.push.apply(M,_.Yj(this.delegate.tracks));return[].concat(_.Yj(new Set(M)))};
ROV.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var D0g=function(){g$.apply(this,arguments)};
_.w(D0g,g$);D0g.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);return[].concat(_.Yj(new Set(M)))};
D0g.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var NLv=function(){g$.apply(this,arguments)};
_.w(NLv,g$);NLv.prototype.getAssociations=function(){var M=[];this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);return[].concat(_.Yj(new Set(M)))};
NLv.prototype.getTypeName=function(){return"musicArtist"};
var P$k=function(){g$.apply(this,arguments)};
_.w(P$k,g$);P$k.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.Yj(new Set(M)))};
P$k.prototype.getTypeName=function(){return"musicArtistDetail"};
var Svu=function(){g$.apply(this,arguments)};
_.w(Svu,g$);Svu.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.Yj(new Set(M)))};
Svu.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ZHt=function(){g$.apply(this,arguments)};
_.w(ZHt,g$);ZHt.prototype.getAssociations=function(){return[]};
ZHt.prototype.getTypeName=function(){return"musicLibraryEdit"};var kda=function(){g$.apply(this,arguments)};
_.w(kda,g$);kda.prototype.getAssociations=function(){return[]};
kda.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var BLu=function(){g$.apply(this,arguments)};
_.w(BLu,g$);
BLu.prototype.getAssociations=function(){var M=[];this.delegate.tracks&&M.push.apply(M,_.Yj(this.delegate.tracks));this.delegate.refresh&&M.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&M.push(this.delegate.details);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&M.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.entryCollection&&
M.push(this.delegate.entryCollection);this.delegate.share&&M.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&M.push.apply(M,_.Yj((new OH$(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Yj(new Set(M)))};
BLu.prototype.getTypeName=function(){return"musicPlaylist"};
var OH$=function(){mR.apply(this,arguments)};
_.w(OH$,mR);OH$.prototype.getAssociations=function(){var M=[];this.delegate.creatorEntity&&M.push(this.delegate.creatorEntity);return[].concat(_.Yj(new Set(M)))};var TL$=function(){g$.apply(this,arguments)};
_.w(TL$,g$);TL$.prototype.getAssociations=function(){return[]};
TL$.prototype.getTypeName=function(){return"musicShare"};var Ipk=function(){g$.apply(this,arguments)};
_.w(Ipk,g$);
Ipk.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&M.push.apply(M,_.Yj(this.delegate.artists));this.delegate.audioModeVersion&&M.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&M.push(this.delegate.videoModeVersion);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.details&&M.push(this.delegate.details);this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.share&&
M.push(this.delegate.share);this.delegate.libraryEdit&&M.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.lyrics&&M.push(this.delegate.lyrics);return[].concat(_.Yj(new Set(M)))};
Ipk.prototype.getTypeName=function(){return"musicTrack"};
var o7Q=function(){g$.apply(this,arguments)};
_.w(o7Q,g$);o7Q.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.Yj(new Set(M)))};
o7Q.prototype.getTypeName=function(){return"musicTrackDetail"};
var Xwa=function(){g$.apply(this,arguments)};
_.w(Xwa,g$);Xwa.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.Yj(new Set(M)))};
Xwa.prototype.getTypeName=function(){return"musicTrackUserDetail"};var bf=new _.R_("musicResponsiveListItemRenderer");var c08=new _.R_("addToPlaylistEndpoint");var lpp=new _.R_("captionPickerEndpoint");var eOg=new _.R_("suggestStats");var QwB=new _.R_("backstageImageUploadEndpoint");var U0u=new _.R_("createBackstagePostDialogEndpoint");_.v7a=new _.R_("createCommentReplyDialogEndpoint");_.Gdu=new _.R_("updateCommentDialogEndpoint");_.ww$=new _.R_("updateCommentReplyDialogEndpoint");var x0k=new _.R_("menuEndpoint");var mtG=new _.R_("modalEndpoint");var tcS=new _.R_("playlistEditorEndpoint");var jwV=new _.R_("copyTextEndpoint");var pwk,FTv;pwk=new _.R_("shareEndpoint");FTv=new _.R_("shareEntityEndpoint");_.Yvv=new _.R_("shareEntityServiceEndpoint");_.jpe=new _.R_("userFeedbackEndpoint");_.Au=new _.R_("watchEndpoint");var Ox8=new _.R_("watchPlaylistEndpoint");var m02=new _.R_("addUpcomingEventReminderEndpoint");_.$B=new _.R_("getCommentsFromInboxCommand");var g7J=new _.R_("notificationOptOutEndpoint");var swB=new _.R_("recordNotificationInteractionsEndpoint");var n7$=new _.R_("removeUpcomingEventReminderEndpoint");var y0n=new _.R_("getDownloadActionCommand");_.hOv=new _.R_("offlineOrchestrationActionCommand");var yTp=function(){g$.apply(this,arguments)};
_.w(yTp,g$);yTp.prototype.getAssociations=function(){return[]};
yTp.prototype.getTypeName=function(){return"captionTrack"};var HHt=function(){g$.apply(this,arguments)};
_.w(HHt,g$);HHt.prototype.getAssociations=function(){return[]};
HHt.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var cTp=function(){g$.apply(this,arguments)};
_.w(cTp,g$);cTp.prototype.getAssociations=function(){return[]};
cTp.prototype.getTypeName=function(){return"offlineVideoPolicy"};var d0t=function(){g$.apply(this,arguments)};
_.w(d0t,g$);d0t.prototype.getAssociations=function(){return[]};
d0t.prototype.getTypeName=function(){return"offlineVideoStreams"};var KTB=function(){g$.apply(this,arguments)};
_.w(KTB,g$);KTB.prototype.getAssociations=function(){var M=[];this.delegate.transfer&&M.push(this.delegate.transfer);this.delegate.adsPlaybackData&&M.push.apply(M,_.Yj(this.delegate.adsPlaybackData));this.delegate.drmLicense&&M.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Yj(new Set(M)))};
KTB.prototype.getTypeName=function(){return"playbackData"};var $0t=function(){g$.apply(this,arguments)};
_.w($0t,g$);$0t.prototype.getAssociations=function(){return[]};
$0t.prototype.getTypeName=function(){return"refresh"};var uGt=function(){g$.apply(this,arguments)};
_.w(uGt,g$);uGt.prototype.getAssociations=function(){var M=[];this.delegate.offlineVideoStreams&&M.push.apply(M,_.Yj(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&M.push.apply(M,_.Yj(this.delegate.captionTrack));return[].concat(_.Yj(new Set(M)))};
uGt.prototype.getTypeName=function(){return"transfer"};var qvk=function(){g$.apply(this,arguments)};
_.w(qvk,g$);qvk.prototype.getAssociations=function(){return[]};
qvk.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var WTQ=new _.R_("showMoreDrawerCommand");var apJ=new _.R_("updateEngagementPanelContentCommand");var VcV=new _.R_("getPdgBuyFlowCommand");var E7k=new _.R_("liveChatPurchaseMessageEndpoint");var fpS=new _.R_("openSuperStickerBuyFlowCommand");var LTt=new _.R_("updatePdgFeatureEnablementCommand");var ATu=function(){g$.apply(this,arguments)};
_.w(ATu,g$);ATu.prototype.getAssociations=function(){return[]};
ATu.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var iHS=function(){g$.apply(this,arguments)};
_.w(iHS,g$);iHS.prototype.getAssociations=function(){return[]};
iHS.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.C$$=new _.R_("pdgCommentChipRenderer");_.bHS=new _.R_("permissionRoleBottomBarRenderer");_.rTV=new _.R_("updatePermissionRoleCommand");var MOB=new _.R_("prefetchWatchCommand");var zrQ=new _.R_("updatePlayerErrorMessageCommand");var FM8=new _.R_("toggleCaptionsVisibilityCommand");_.JV$=new _.R_("quickActionsViewModel");var RrS=new _.R_("playerResponse");var Djp=new _.R_("playlistRenderer");_.N$$=new _.R_("playlistVideoListRenderer");_.uU=new _.R_("playlistEditEndpoint");var PUS=new _.R_("createImagePollCommand");var S4k=new _.R_("createQuizCommand");var ZMV=new _.R_("quizRenderer");var kOB=new _.R_("uploadedVideoRenderer");var B$J=new _.R_("decorateMessageEndpoint");var OMV=new _.R_("lpOfferCardOptionViewModel");var T$t=new _.R_("sfvAudioItemPlaybackCommand");var IBB=function(){g$.apply(this,arguments)};
_.w(IBB,g$);IBB.prototype.getAssociations=function(){return[]};
IBB.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.qj=new _.R_("reelNonVideoContentEndpoint");_.je=new _.R_("reelWatchEndpoint");_.Wc=new _.R_("reelItemRenderer");_.oBg=new _.R_("reelMetapanelViewModel");_.Xc2=new _.R_("reelNonVideoContentRenderer");_.lBg=new _.R_("reelPlayerOverlayRenderer");var erV=new _.R_("shortsLockupViewModel");var QR2=new _.R_("sponsorButtonViewModel");var Uj$=new _.R_("reelItemWatchResponse");var vBp=new _.R_("textBadgeRenderer");_.aR=new _.R_("buttonRenderer");_.Vz=new _.R_("toggleButtonRenderer");var f9e=new _.R_("switchButtonViewModel");_.GOt=new _.R_("confirmDialogRenderer");var wck;wck=new _.R_("menuRenderer");_.xjV=new _.R_("menuFlexibleItemRenderer");var tOu=new _.R_("pollRenderer");_.jRu=new _.R_("backgroundPromoRenderer");var FRB;_.pcg=new _.R_("chipCloudRenderer");FRB=new _.R_("chipCloudChipRenderer");var Y4k=new _.R_("dropdownRenderer");var mjv=new _.R_("gridVideoRenderer");_.gBg=new _.R_("itemSectionRenderer");_.sRa=new _.R_("messageRenderer");var nBk=new _.R_("sortFilterHeaderRenderer");_.E4=new _.R_("videoRenderer");var hrp=new _.R_("resolveUrlCommandMetadata");var yVv=function(){g$.apply(this,arguments)};
_.w(yVv,g$);yVv.prototype.getAssociations=function(){return[]};
yVv.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.HMv=new _.R_("getAnswerCommand");_.wB=new _.R_("searchEndpoint");var cVg=new _.R_("genAiRichTextViewModel");var hQG=new _.R_("overviewAnswerViewModel");var djg=new _.R_("addToPlaylistServiceEndpoint");var KRk=new _.R_("clearSearchHistoryEndpoint");var $ju=new _.R_("clearWatchHistoryEndpoint");var u7v=new _.R_("webSerializedServiceEndpointExtension");_.q4g=new _.R_("createCommentEndpoint");var WRJ=new _.R_("createCommentReplyEndpoint");var aB$=new _.R_("performCommentActionEndpoint");var VOg=new _.R_("updateCommentEndpoint");var EBk=new _.R_("updateCommentReplyEndpoint");_.fM=new _.R_("createPlaylistServiceEndpoint");var fBa=new _.R_("deletePlaylistEndpoint");var LRp=new _.R_("deleteVideoEndpoint");var H13=new _.R_("getReportFormEndpoint");var AVt=new _.R_("modifyChannelNotificationPreferenceEndpoint");var b88;_.Q9=new _.R_("offlinePlaylistEndpoint");b88={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 r7n;_.lE=new _.R_("offlineVideoEndpoint");r7n={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 iMJ=new _.R_("pingingEndpoint");_.CUp=new _.R_("selectActiveIdentityEndpoint");var bMg=new _.R_("setSettingEndpoint");var AI0=new _.R_("undoFeedbackEndpoint");var rV$=new _.R_("unsubscribeEndpoint");_.Mx$=new _.R_("updatedMetadataEndpoint");var zgp=function(){g$.apply(this,arguments)};
_.w(zgp,g$);zgp.prototype.getAssociations=function(){return[]};
zgp.prototype.getTypeName=function(){return"settingEntity"};_.JmJ=new _.R_("updateLocalAppSettingCommand");var Rga=new _.R_("saveImageToDeviceEndpoint");var DJ$=new _.R_("shareImageCommand");var NN$=new _.R_("sharingProviderDataCommand");var PnV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(PnV,_.zA);var SbV=[0,_.Cy,-1];PnV.prototype.JSC$12281_serializeBinary=crn(SbV);var ZNa=_.Ow(SbV);var kCJ=new _.R_("userMentionSuggestionRenderer");var BNt=new _.R_("liveChatTunnelCommand");var ONa=new _.R_("showSponsorshipsGiftOfferDialogCommand");var TNk=new _.R_("sponsorshipsScrollableShelfViewModel");var Iuk=new _.R_("updateUpcomingEventReminderButtonStateCommand");var o9V=new _.R_("upcomingEventReminderButtonStateRenderer");var X2g=new _.R_("subscribeEndpoint");var luV=new _.R_("registerTasksCommand");var egV=new _.R_("hideSnackbarCommand");var QVQ=new _.R_("showDialogCommand");_.Fa=new _.R_("showSheetCommand");var UJB=new _.R_("showSnackbarCommand");var v9p=function(){g$.apply(this,arguments)};
_.w(v9p,g$);v9p.prototype.getAssociations=function(){return[]};
v9p.prototype.getTypeName=function(){return"chipEntity"};var GCp=function(){g$.apply(this,arguments)};
_.w(GCp,g$);GCp.prototype.getAssociations=function(){return[]};
GCp.prototype.getTypeName=function(){return"dismissState"};_.q6=new _.R_("avatarViewModel");var w2p=new _.R_("badgeViewModel");_.s3=new _.R_("buttonViewModel");_.LM=new _.R_("chipViewModel");var DQ0=new _.R_("collectionThumbnailViewModel");var xJt=new _.R_("contentPreviewImageViewModel");var txV=new _.R_("decoratedAvatarViewModel");var ez8=new _.R_("downloadButtonViewModel");_.rlo=new _.R_("engagementBarViewModel");_.jVV=new _.R_("imageBannerViewModel");var p2V=new _.R_("lockupContentMetadataRowExtension");_.F9a=new _.R_("lockupMetadataViewModel");_.Ybp=new _.R_("lockupViewModel");var mJt=new _.R_("avatarStackViewModel");_.g9S=new _.R_("contentMetadataViewModel");var sVu=function(){g$.apply(this,arguments)};
_.w(sVu,g$);sVu.prototype.getAssociations=function(){return[]};
sVu.prototype.getTypeName=function(){return"pageHeaderEntity"};_.n9$=new _.R_("pageHeaderViewModel");var dn$=new _.R_("snackbarViewModel");var K_p=new _.R_("thumbnailHoverOverlayToggleActionsViewModel");_.nf=new _.R_("toggleButtonViewModel");var $nt=function(){g$.apply(this,arguments)};
_.w($nt,g$);$nt.prototype.getAssociations=function(){return[]};
$nt.prototype.getTypeName=function(){return"votingEntity"};_.MMR=new _.R_("votingViewModel");var uf2=new _.R_("sectionHeaderViewModel");var lbw=new _.R_("submitButtonViewModel");var qEJ=new _.R_("notifyDropdownOptionSelectedCommand");var DZ3=new _.R_("listViewModel");_.YC=new _.R_("listItemViewModel");var Raw=new _.R_("toggleableListItemViewModel");var W_k=new _.R_("dialogHeaderViewModel");var a1a=function(){g$.apply(this,arguments)};
_.w(a1a,g$);a1a.prototype.getAssociations=function(){return[]};
a1a.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var VEp=function(){g$.apply(this,arguments)};
_.w(VEp,g$);VEp.prototype.getAssociations=function(){return[]};
VEp.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var E5a=function(){g$.apply(this,arguments)};
_.w(E5a,g$);E5a.prototype.getAssociations=function(){return[]};
E5a.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.f1$=new _.R_("transcriptSubmitCaptionCorrectionCommand");var L_B=function(){g$.apply(this,arguments)};
_.w(L_B,g$);L_B.prototype.getAssociations=function(){return[]};
L_B.prototype.getTypeName=function(){return"buttonEntity"};var e3R=new _.R_("unpluggedStringRunImage");var AEB=new _.R_("tabViewModel");var iZJ=new _.R_("tabbedViewModel");var C_V=function(){g$.apply(this,arguments)};
_.w(C_V,g$);C_V.prototype.getAssociations=function(){return[]};
C_V.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.bZ$=new _.R_("updateDescriptionAction");var rE$=new _.R_("updateToggleButtonTextAction");_.Muk=new _.R_("autoplaySwitchButtonRenderer");var Ka;_.z1v=new _.R_("multiMarkersPlayerBarRenderer");Ka=new _.R_("chapterRenderer");var JsV=new _.R_("heatMarkerRenderer");var Py3=new _.R_("heatmapRenderer");var R1u=new _.R_("smartSkipPlayerScrimOverlayRenderer");var DKV=new _.R_("timedMarkerDecorationRenderer");var dQY=new _.R_("postWebToNativeMessageCommand");var HX=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(HX,_.zA);HX.prototype.getMethodName=function(){return _.hv(this,1)};var NxJ=[0,_.Cy,-2];HX.prototype.JSC$12301_serializeBinary=crn(NxJ);var PTJ=_.B4(HX,NxJ);var SQ2=new _.R_("whitelistEditEndpoint");var ZEV=new _.R_("clearUrlParamCommand");var kng=new _.R_("commerceActionCommand");_.Bxa=new _.R_("getPaymentInstrumentsParamsCommand");var OEg=new _.R_("getPaymentsClientTokenCommand");var Txv=new _.R_("googlePaymentBillingCommand");var IJa=new _.R_("googlePaymentPurchaseManagerCommand");_.oKB=new _.R_("logGtmCommand");var Xmv=new _.R_("updateCardItemOnClickCommand");_.lJp=new _.R_("ypcPauseSubscriptionCommand");_.e1k=new _.R_("ypcResumeSubscriptionCommand");var QY2=function(){g$.apply(this,arguments)};
_.w(QY2,g$);QY2.prototype.getAssociations=function(){return[]};
QY2.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var UKJ=function(){g$.apply(this,arguments)};
_.w(UKJ,g$);UKJ.prototype.getAssociations=function(){return[]};
UKJ.prototype.getTypeName=function(){return"commerceCartListEntity"};var vKt=function(){g$.apply(this,arguments)};
_.w(vKt,g$);vKt.prototype.getAssociations=function(){return[]};
vKt.prototype.getTypeName=function(){return"iconBadgeEntity"};var Gn$=function(){g$.apply(this,arguments)};
_.w(Gn$,g$);Gn$.prototype.getAssociations=function(){return[]};
Gn$.prototype.getTypeName=function(){return"pdpStateEntity"};var wmg=function(){g$.apply(this,arguments)};
_.w(wmg,g$);wmg.prototype.getAssociations=function(){return[]};
wmg.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var mFR=new _.R_("ypcOffersEndpoint");var xKV=new _.R_("cardItemRenderer"),tuV=new _.R_("cardItemTextRenderer");var jYV=new _.R_("commerceCartItemQuantityPickerRenderer");var pmQ=new _.R_("linkCardRenderer");var s0R=new _.R_("quantityIncrementerButtonViewModel");var Fgt=new _.R_("quantityIncrementerViewModel");var YQV=new _.R_("themedImageViewModel");_.mK2=new _.R_("ypcCancelRecurrenceEndpoint");var gKv=new _.R_("ypcCompleteTransactionEndpoint");_.sYa=new _.R_("ypcGetCartEndpoint");_.M9=new _.R_("ypcGetOffersEndpoint");_.AV=new _.R_("ypcHandleTransactionEndpoint");var nKB=new _.R_("ypcLogWalletAnalyticDataEndpoint");_.h1J=new _.R_("ypcRedeemCodeEndpoint");var ysJ=new _.R_("ypcUpdateFopEndpoint");kB(ZB(1),Pc(4));tQe((new MessageChannel).port2);var HEV=function(){this.register=new Map},y$H=function(M,z,J){M=M+"_"+z;
iU.register.has(M)?J=iU.register.get(M):(J=J(),iU.register.set(M,J));return J},csg=function(M){M=_.S(M.register.values());
for(var z=M.next();!z.done;z=M.next())_.Ih(z.value,"ABORTED")};
HEV.prototype.clear=function(){csg(this);this.register.clear()};
var iU=new HEV;var oD8=Date.now().toString();var e_8=lWp();var j_p={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 dKt,nu;dKt=1;nu=function(M){this.veData=M};
_.pe=function(M){return new nu({trackingParams:M})};
_.O3=function(M,z,J,R,D,N){var Z=dKt++;return new nu({veType:M,veCounter:Z,elementIndex:J,dataElement:z,youtubeData:R,jspbYoutubeData:D,loggingDirectives:N})};
_.P=nu.prototype;
_.P.getAsJson=function(){var M={};this.veData.trackingParams!==void 0?M.trackingParams=this.veData.trackingParams:(M.veType=this.veData.veType,this.veData.veCounter!==void 0&&(M.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(M.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(M.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(M.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(M.isCounterfactual=!0);
return M};
_.P.getAsJspb=function(){var M=new Lhv;this.veData.trackingParams!==void 0?M.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.$I(M,2,this.veData.veType),this.veData.veCounter!==void 0&&_.$I(M,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.$I(M,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.SJ(M,5,!0));if(this.veData.dataElement!==void 0){var z=this.veData.dataElement.getAsJspb();_.or(M,7,z)}this.veData.youtubeData!==void 0&&_.or(M,8,this.veData.jspbYoutubeData);
return M};
_.P.toString=function(){return JSON.stringify(this.getAsJson())};
_.P.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.P.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.b9("yt_logging_screen.getRootVeType",whp);_.b9("yt_logging_screen.getCurrentCsn",_.y5);_.b9("yt_logging_screen.getCttAuthInfo",Hs);_.b9("yt_logging_screen.setCurrentScreen",_.cs);var KgJ=function(){this.events=new Map},$Kp=function(M){var z=[];
M=_.S(M.events.values());for(var J=M.next();!J.done;J=M.next())z.push(J.value);return z};
KgJ.prototype.clear=function(){this.events.clear()};var qQV=function(){this.logTransport=new uC$;this.loggedEventRegister=new KgJ;this.unloggedEventRegister=new KgJ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12338_flushTimer=new _.NI(this.flushInterval);this.JSC$12338_flushTimer.listen("tick",this.flush,!1,this)};
qQV.prototype.flush=function(){if(this.eventsCount){var M={loggedEvents:$Kp(this.loggedEventRegister),unloggedEvents:$Kp(this.unloggedEventRegister)};if(_.U("export_player_version_to_ytconfig")){var z;(z=_.HW("PLAYER_CLIENT_VERSION"))?(z=z.split("-")[0].replace(/\./g,""),z=isNaN(Number(z))?"0":z):z="";var J=_.HW("PLAYER_CLIENT_VERSION");if(J){J=J.split("-");var R="";J.length>1&&(R=J[J.length-1]);J=IWc(R.startsWith("canary_experiment")?"canary":R.startsWith("canary_control")?"control":"none")}else J=
"CLIENT_CANARY_STATE_UNKNOWN";M.dimensions={playerClientVersion:z,playerCanaryState:J}}this.logTransport.flush(M);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12338_flushTimer.enabled&&this.JSC$12338_flushTimer.stop()}};
var Wgp=function(M){CM==null&&(CM=new qQV);var z=CM;var J=z.loggedEventRegister;M.dimensions=M.dimensions||{};M.dimensions.csn=_.y5()||"";var R=YqH(M.dimensions).join(";");if(M.records!=null)if(J.events.has(R)){var D;(D=J.events.get(R).records)==null||D.push.apply(D,_.Yj(M.records))}else J.events.set(R,M);z.JSC$12338_flushTimer.enabled||z.JSC$12338_flushTimer.start();z.eventsCount++;z.eventsCount>=100&&z.flush()};var uC$=function(){};
uC$.prototype.flush=function(M,z){_.U("enable_client_sli_logging")&&_.gP("sliEventBatch",M,{sendIsolatedPayload:!!z})};var CM;var Vut;Vut=function(M){var z=aJ$;M=M===void 0?{}:M;z=z.name;var J=h_G("SUCCESS");Wgp({dimensions:M,records:[{name:z,state:"SLI_STATE_END",status:J}]})};
_.HCo=function(M,z,J,R){this.name=M;this.sliId=z;this.timeoutMs=J;this.statusOnTimeout=R;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.HCo.prototype.getId=function(){return this.sliId};
_.T0=function(M,z){z=z===void 0?{}:z;M.ongoing||(M.ongoing=!0,M.dimensions=z,M.logSliId=x6$(),Wgp({dimensions:M.dimensions,records:[{name:M.name,state:"SLI_STATE_START",sliId:M.logSliId}]}),M.timeoutMs>0&&(M.timeoutHandle=setTimeout(function(){_.Ih(M,M.statusOnTimeout)},M.timeoutMs)))};
_.Ih=function(M,z){M.ongoing&&(M.timeoutMs>0&&clearTimeout(M.timeoutHandle),M.ongoing=!1,z={dimensions:M.dimensions,records:[{name:M.name,status:h_G(z),state:"SLI_STATE_END",sliId:M.logSliId}]},iU.register.delete(M.name+"_"+M.sliId),Wgp(z))};var aJ$=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var EKk=function(){g$.apply(this,arguments)};
_.w(EKk,g$);EKk.prototype.getAssociations=function(){return[]};
EKk.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var M7p=new _.R_("highlightTextDecoratorColorMapExtension");var b6Y=new _.R_("styleRunColorMapExtension");var W8R=_.Ca(["data-"]),EDH={};var L8o={};var bU=function(M){this.wrappedPromise_=M===void 0?null:M;this.state_=0;this.JSC$12370_value_=null};
bU.prototype.then=function(M,z,J){return this.wrappedPromise_?this.wrappedPromise_.then(M,z,J):this.state_===1&&M?(M=M.call(J,this.JSC$12370_value_))&&typeof M.then==="function"?M:_.r$(M):this.state_===2&&z?(M=z.call(J,this.JSC$12370_value_))&&typeof M.then==="function"?M:_.fJa(M):this};
bU.prototype.getValue=function(){return this.JSC$12370_value_};
bU.prototype.isRejected=function(){return this.state_==2};
qI$(bU);_.fJa=function(M){var z=new bU;M=M===void 0?null:M;z.state_=2;z.JSC$12370_value_=M===void 0?null:M;return z};
_.r$=function(M){var z=new bU;M=M===void 0?null:M;z.state_=1;z.JSC$12370_value_=M===void 0?null:M;return z};var kxn="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Lg$=["load","abort","error"],MJ=function(M,z,J){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12390_maxAspectRatio_=M;this.disableAnimation_=z===void 0?!1:z;this.disableExifRotation_=J===void 0?!1:J;this.JSC$12390_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12390_reject_=this.resolve_=null};
MJ.prototype.transform=function(M){var z=this;this.mime_=M.type;bH(aS2(M),this.dataUrlRead_,this.readError_,this);bH(WQV(M.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(J,R){z.resolve_=J;z.JSC$12390_reject_=R})};
MJ.prototype.dataUrlRead_=function(M){this.dataUrl_=M;this.angle_!=null&&Asa(this)};
MJ.prototype.exifRead_=function(M){if(this.disableExifRotation_)this.angle_=0;else{a:if(M=new DataView(M),M.byteLength<2||M.getUint16(0)!==65496)M=-2;else{for(var z=2,J=M.byteLength;z<J;){var R=M.getUint16(z),D=M.getUint16(z+2);if(R===65505){z+=4;R=M.getUint32(z);D=M.getUint16(z+4);if(R!==1165519206||D!==0)break;z+=6;R=M.getUint16(z)===18761;z+=M.getUint32(z+4,R);D=M.getUint16(z,R);z+=2;for(var N=0;N<D;N++){if(M.getUint16(z,R)===274){z+=8;M=M.getUint16(z,R);break a}z+=12}}else if(R>>8!==255)break;
else z+=D+2}M=-1}switch(M){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&Asa(this)};
MJ.prototype.readError_=function(){this.JSC$12390_reject_()};
var Asa=function(M){th(M.JSC$12390_image_,Lg$,M.completeTransform_,!1,M);M.JSC$12390_image_.src=_.hr(M.dataUrl_).toString();M.JSC$12390_image_.src!=n3.toString()&&M.JSC$12390_image_.src.substr(0,11)==="data:image/"||M.JSC$12390_reject_()};
MJ.prototype.completeTransform_=function(){if(this.JSC$12390_image_.src!=n3.toString()){var M=_.hr(this.dataUrl_),z=this.JSC$12390_image_.naturalHeight?this.JSC$12390_image_.naturalWidth/this.JSC$12390_image_.naturalHeight:null;this.invalidAspectRatio=z>this.JSC$12390_maxAspectRatio_||z<1/this.JSC$12390_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var J=this.JSC$12390_image_.naturalWidth,R=this.JSC$12390_image_.naturalHeight,D=z=0,N=this.JSC$12390_image_.naturalHeight?this.JSC$12390_image_.naturalWidth/
this.JSC$12390_image_.naturalHeight:null;N>this.JSC$12390_maxAspectRatio_?(J=this.JSC$12390_maxAspectRatio_*R,z=(J-this.JSC$12390_image_.naturalWidth)/2,this.cropped=!0):N<1/this.JSC$12390_maxAspectRatio_?(R=this.JSC$12390_maxAspectRatio_*J,D=(R-this.JSC$12390_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)N=J,J=R,R=N,N=z,z=D,D=N;switch(this.angle_){case 90:D-=J;break;case 180:z-=J;D-=R;break;case 270:z-=
R}this.cropped||this.angle_%360!==0?(M=document.createElement("canvas"),M.width=J||1,M.height=R||1,this.JSC$12390_image_.naturalWidth&&this.JSC$12390_image_.naturalHeight&&(J=M.getContext("2d"),J.rotate(Math.PI/180*this.angle_),J.drawImage(this.JSC$12390_image_,z,D,this.JSC$12390_image_.naturalWidth,this.JSC$12390_image_.naturalHeight)),this.transformedData=_.hr(M.toDataURL(this.mime_))):this.transformedData=M}else this.transformedData=M;this.resolve_(this)}};var zC=function(M,z){_.vR.call(this,M);this.value=z};
_.w(zC,_.vR);
var Jm=function(M,z,J,R,D,N,Z){Z=Z===void 0?!1:Z;_.jB.call(this);var B=this;this.JSC$12395_url_=M;this.channelId_=z;this.maxFileSizeMb_=J;this.JSC$12395_maxAspectRatio_=R;this.dropZoneEl_=D;this.rejectInvalidAspectRatio_=Z;this.selectButtonEl_=N;this.JSC$12395_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new eO(this.dropZoneEl_);this.selectOverlay_=new Qz(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12395_image_=this.transfer_=null;this.handler_=new _.Ps(this);_.OC(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(N,"click",function(){B.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.w(Jm,_.jB);Jm.prototype.disposeInternal=function(){for(var M=this.selectButtonEl_.nextSibling;M&&M.parentNode&&M.tagName=="INPUT";)M.parentNode.removeChild(M),M=this.selectButtonEl_.nextSibling;this.cancel();_.jB.prototype.disposeInternal.call(this)};
Jm.prototype.uploadPromise=function(){if(this.JSC$12395_image_==null)return null;this.uploadPromise_||iEk(this);return this.uploadPromise_};
Jm.prototype.cancel=function(){CT$(this);this.JSC$12395_image_=null};
var CT$=function(M){M.transfer_&&M.transfer_.cancel();M.transfer_=null;M.uploadPromise_=null;M.resolve_=null;M.JSC$12395_reject_=null},iEk=function(M){CT$(M);
M.transfer_=_.Scv(M.JSC$12395_url_,{"X-YouTube-ChannelId":M.channelId_},M.JSC$12395_image_);M.handler_.listenOnce(M.transfer_,"l",M.JSC$12397_onUploadComplete_);M.handler_.listenOnce(M.transfer_,"n",M.onUploadError_);M.transfer_.run();M.uploadPromise_=new Promise(function(z,J){M.resolve_=z;M.JSC$12395_reject_=J})};
_.P=Jm.prototype;_.P.onChange_=function(M){M.files.length&&(this.JSC$12395_image_=M.files[0],this.JSC$12395_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12395_image_=null,this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(iEk(this),(new MJ(this.JSC$12395_maxAspectRatio_)).transform(this.JSC$12395_image_).then((0,_.xF)(this.onPreview_,this),(0,_.xF)(this.onPreviewError_,this))))};
_.P.onPreview_=function(M){if(M.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12395_image_=null),this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;M.cropped&&this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.CHANGE_EVENT",M.transformedData))};
_.P.onPreviewError_=function(){this.JSC$12395_image_=null;this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.P.onHover_=function(M){M.stopPropagation();M.preventDefault();if(M.type==="dragover")M=!0;else if(M.type==="dragleave")M=!1;else return;this.dispatchEvent(new zC("yt.comments.ImageUploadOverlay.HOVER_EVENT",M))};
_.P.JSC$12397_onUploadComplete_=function(){var M=(0,_.TuV)(this.transfer_.getResponseText());this.resolve_(M.encryptedBlobId)};
_.P.onUploadError_=function(){this.JSC$12395_reject_();CT$(this)};var bEV=function(M){M=M||{};var z={},J={};this.url=M.url||"";this.args=M.args||_.gu.clone(z);this.assets=M.assets||{};this.attrs=M.attrs||_.gu.clone(J);this.fallback=M.fallback||null;this.fallbackMessage=M.fallbackMessage||null;this.html5=!!M.html5;this.disable=M.disable||{};this.loaded=!!M.loaded;this.messages=M.messages||{}};
bEV.prototype.clone=function(){var M=new bEV,z;for(z in this)if(this.hasOwnProperty(z)){var J=this[z];_.ak(J)=="object"?M[z]=_.gu.clone(J):M[z]=J}return M};var rs$,MCt,zjV,Cr,Rja,D4S,Nbt,Plt,SP2,Zkt,ksB,BbQ,Oka,TbB,I2u,o1V,XgQ,l2V,ej$,QLS,U4J,v1$,Gsa,wg2,x4V,tCQ,jLV,pgk,FGJ,AlY,YP2,m4u,g1V,sLt,n1u,hjv,ypt,Hkk,cpv,d4Q,LPY,KGv,$4B,umv,qPB,WGS,a2p,VCp,E1V,f2V,LGV,ApV,iku,ClV,bkS,rpv,RV,M0V,zuJ,JX$,Ruv,Dmk,N0$,PA2,SSQ,ZxV,kWV,B0V,Oxt,T0a,IXV,okp,XH$,lXg,eup,E3p,Qju,UmJ,vk$,GWt,wHk,xmp,t0$,jjJ,pHg,FSp,YSt,mma,gk2,sj$,nkg,hu$,yX2,Hxg,cXk,dmQ,KSV,$mV,uyB,qS$,WSk;rs$=["account/accounts_list"];MCt=["acknowledge_channel_tou_strike"];zjV=["notification/add_upcoming_event_reminder"];
_.Jpa=["att/get"];Cr=["browse","music/browse","unplugged/browse"];Rja=["channel/claim_legacy_youtube_channel"];D4S=["history/clear_search_history"];Nbt=["history/clear_watch_history"];Plt=["comment/perform_comment_action"];SP2=["comment/get_comment_replies"];Zkt=["ypc/commerce_action"];ksB=["backstage/create_post"];BbQ=["live/create_broadcast"];Oka=["channel/create_channel"];TbB=["comment/create_comment_reply"];I2u=["comment/create_comment"];o1V=["live_chat/create_poll"];XgQ=["playlist/create"];
l2V=["decorate_message"];ej$=["live_chat/delete_message"];QLS=["playlist/delete"];U4J=["video/delete"];v1$=["like/dislike"];Gsa=["dismissal/dismiss"];wg2=["flag/flag"];x4V=["flow"];tCQ=["account/account_menu"];jLV=["playlist/get_add_to_playlist"];pgk=["get_answer"];FGJ=["channel/get_channel_creation_form"];AlY=["offline/get_download_action"];YP2=["kids/get_kids_blocklist_picker"];m4u=["live_chat/get_item_context_menu"];g1V=["live_chat/get_live_chat_message_buy_flow"];sLt=["live_chat/get_live_chat_replay"];
n1u=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];hjv=["live_chat/get_live_chat_super_sticker_buy_flow"];ypt=["notification/get_notification_menu"];Hkk=["playlist/get_settings_editor"];cpv=["backstage/get_post_video_preview"];d4Q=["account/get_profile_card"];LPY=["share/get_share_panel"];KGv=["share/get_sharing_provider_data"];$4B=["get_survey"];umv=["notification/get_unseen_count"];qPB=["get_user_mention_suggestions"];WGS=["get_watch"];a2p=["guide"];
VCp=["feedback"];E1V=["kids/update_blacklist"];f2V=["like/like"];LGV=["live_chat/live_chat_action"];ApV=["live_chat/manage_user"];iku=["video_manager/metadata_update"];ClV=["live_chat/moderate"];bkS=["notification/modify_channel_preference"];rpv=["notification/opt_out"];RV=["get_panel","get_posts_by_host_panel"];M0V=["player"];zuJ=["browse/edit_playlist"];JX$=["notification/record_interactions"];Ruv=["reel/reel_item_watch"];Dmk=["reel/reel_watch_sequence"];N0$=["like/removelike"];PA2=["notification/remove_upcoming_event_reminder"];
SSQ=["flag/get_form"];ZxV=["miniapp/report_value"];kWV=["navigation/resolve_url"];B0V=["channel/reveal_business_email"];Oxt=["in_video/search"];T0a=["search","sfv/search","unplugged/search"];IXV=["live_chat/send_message"];okp=["live_chat/send_live_chat_vote"];XH$=["account/set_setting"];lXg=["submit_caption_correction"];eup=["subscription/subscribe"];E3p=["get_transcript"];Qju=["resolve_location","unplugged/resolve_location"];UmJ=["subscription/unsubscribe"];vk$=["backstage/update_post"];GWt=["channel_edit/update_channel_page_settings"];
wHk=["comment/update_comment_reply"];xmp=["comment/update_comment"];t0$=["comment/update_comments_settings"];jjJ=["creator/update_creator_channel"];pHg=["pdg/update_enablement"];FSp=["updated_metadata"];YSt=["channel_edit/validate_channel_handle"];mma=["verify_age"];gk2=["next","unplugged/watch_next"];sj$=["whitelist/edit"];nkg=["ypc/cancel_recurrence"];hu$=["ypc/complete_transaction"];yX2=["ypc/get_cart"];Hxg=["ypc/get_fix_instrument_params"];cXk=["ypc/get_offers"];dmQ=["ypc/get_payment_instruments_params"];
KSV=["ypc/handle_transaction"];$mV=["ypc/log_payment_server_analytics"];uyB=["ypc/pause_subscription"];qS$=["ypc/redeem_code"];WSk=["ypc/resume_subscription"];var aXk=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,
195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,
149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,
75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,
130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,
203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,
67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,
93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var l3=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.b9("yt.msgs_",l3);var Du=new _.Nh("ACTION_ROUTER_TOKEN");_.NJ=function(){this.autonavState_=_.U("kevlar_is_pupi_enabled")?2:Gxp()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.NJ.prototype.getState=function(){return this.autonavState_};
_.NJ.prototype.pause=function(M){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=M):this.autonavState_==1&&(this.disabledAutonavPauseReason_=M)};
_.NJ.prototype.setState=function(M,z,J){z&&(this.autoplayChangedByUser=!0);z=this.autonavState_===3||M===3;this.autonavState_!=M&&(this.autonavState_=M,M!=3&&_.w08(M==2),M=_.U("kevlar_is_pupi_enabled")?J||z:!0,_.VA.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,M,J))};
_.NJ.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.P9(_.NJ);var P2=function(){this.hasRun=!1};var Sx={},hTw=(Sx.auto_search="LATENCY_ACTION_AUTO_SEARCH",Sx.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Sx.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Sx.app_startup="LATENCY_ACTION_APP_STARTUP",Sx.browse="LATENCY_ACTION_BROWSE",Sx.cast_splash="LATENCY_ACTION_CAST_SPLASH",Sx.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Sx.channels="LATENCY_ACTION_CHANNELS",Sx.chips="LATENCY_ACTION_CHIPS",Sx.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Sx.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Sx.editor="LATENCY_ACTION_EDITOR",Sx.embed="LATENCY_ACTION_EMBED",Sx.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Sx.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Sx.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Sx.explore="LATENCY_ACTION_EXPLORE",Sx.favorites="LATENCY_ACTION_FAVORITES",Sx.home="LATENCY_ACTION_HOME",Sx.inboarding="LATENCY_ACTION_INBOARDING",Sx.landing="LATENCY_ACTION_LANDING",Sx.learning="LATENCY_ACTION_LEARNING",
Sx.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Sx.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Sx.library="LATENCY_ACTION_LIBRARY",Sx.live="LATENCY_ACTION_LIVE",Sx.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Sx.management="LATENCY_ACTION_MANAGEMENT",Sx.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Sx.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Sx.onboarding="LATENCY_ACTION_ONBOARDING",Sx.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Sx.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Sx.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Sx.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Sx.prebuffer="LATENCY_ACTION_PREBUFFER",Sx.prefetch="LATENCY_ACTION_PREFETCH",Sx.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Sx.profile_switcher="LATENCY_ACTION_LOGIN",Sx.projects="LATENCY_ACTION_PROJECTS",Sx.reel_watch="LATENCY_ACTION_REEL_WATCH",Sx.results="LATENCY_ACTION_RESULTS",Sx.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Sx.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Sx.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Sx.review="LATENCY_ACTION_REVIEW",Sx.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Sx.search_ui="LATENCY_ACTION_SEARCH_UI",Sx.search_suggest="LATENCY_ACTION_SUGGEST",Sx.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Sx.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Sx.seek="LATENCY_ACTION_PLAYER_SEEK",Sx.settings="LATENCY_ACTION_SETTINGS",Sx.store="LATENCY_ACTION_STORE",
Sx.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Sx.tenx="LATENCY_ACTION_TENX",Sx.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Sx.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Sx.watch="LATENCY_ACTION_WATCH",Sx.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Sx["watch,watch7"]="LATENCY_ACTION_WATCH",Sx["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Sx["watch,watch7ad"]="LATENCY_ACTION_WATCH",Sx["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Sx.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Sx.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Sx.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Sx.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Sx.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Sx.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Sx.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Sx.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Sx),AnH=0;var zO8=function(M,z){gd.call(this,1,arguments);this.timer=z};
_.w(zO8,gd);var Mc3=new Odc("aft-recorded",zO8);var dPG=_.R3.ytLoggingGelSequenceIdObj_||{};_.b9("ytLoggingGelSequenceIdObj_",dPG);var Zu=_.R3.ytLoggingLatencyUsageStats_||{};_.b9("ytLoggingLatencyUsageStats_",Zu);var k9=function(){this.cleanupJob=0},ue3=function(){k9.instance||(k9.instance=new k9);
return k9.instance};
_.P=k9.prototype;_.P.baseline=function(M,z,J){B2(this,"baseline_"+M)||_.gP("latencyActionBaselined",{clientActionNonce:M},{timestamp:z,cttAuthInfo:J})};
_.P.tick=function(M,z,J,R){B2(this,"tick_"+M+"_"+z)||_.gP("latencyActionTicked",{tickName:M,clientActionNonce:z},{timestamp:J,cttAuthInfo:R})};
_.P.info=function(M,z,J){var R=Object.keys(M).join("");B2(this,"info_"+R+"_"+z)||(M=Object.assign({},M),M.clientActionNonce=z,_.gP("latencyActionInfo",M,{cttAuthInfo:J}))};
_.P.jspbInfo=function(M,z,J){for(var R="",D=0;D<s5(M).length;D++)s5(M)[D]!==void 0&&(R=D===0?R.concat(""+D):R.concat("_"+D));B2(this,"info_"+R+"_"+z)||(_.G$(M,2,z),z={cttAuthInfo:J},J=_.U("jspb_sparse_encoded_pivot")?new wP([{}]):new wP,_.Xq(J,7,ki$,M),K7b("latencyActionInfo",J,z))};
_.P.span=function(M,z,J){var R=Object.keys(M).join("");B2(this,"span_"+R+"_"+z)||(M.clientActionNonce=z,_.gP("latencyActionSpan",M,{cttAuthInfo:J}))};
var B2=function(M,z){Zu[z]=Zu[z]||{count:0};var J=Zu[z];J.count++;J.time=(0,_.zU)();M.cleanupJob||(M.cleanupJob=_.x4(_.no,function(){var R=(0,_.zU)(),D;for(D in Zu)Zu[D]&&R-Zu[D].time>6E4&&delete Zu[D];M&&(M.cleanupJob=0)},5E3));
return J.count>5?(J.count===6&&Math.random()*1E5<1&&(J=new _.xN("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||_.yA(J)),!0):!1};var V0a,Ekv;V0a=window;Ekv=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.j9=V0a.performance||V0a.mozPerformance||V0a.msPerformance||V0a.webkitPerformance||new Ekv;var rn8=!1,W7p=!1,JTG=(0,_.xF)(_.j9.clearResourceTimings||_.j9.webkitClearResourceTimings||_.j9.mozClearResourceTimings||_.j9.msClearResourceTimings||_.j9.oClearResourceTimings||_.xi,_.j9);var fXp=window;fXp.ytcsi&&(fXp.ytcsi.infoGel=_.sf,fXp.ytcsi.tick=_.hd);var o7n=function(M){gd.call(this,1,arguments);this.csn=M};
_.w(o7n,gd);var lE8=new Odc("screen-created",o7n),g7G=[],Ip3=m00,swb=0,KY=new Map,Xwp=new Map,lpo=new Map;var tSo=Symbol("tf"),i3=new WeakMap;var Ob=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},xS=function(){Ob.instance||(Ob.instance=new Ob);
return Ob.instance};
_.P=Ob.prototype;_.P.setClient=function(M){this.client=M};
_.P.JSC$12476_newScreen=function(){this.clear();this.csn=_.y5()};
_.P.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.P.reportShown=function(M,z,J){var R=this.JSC$12476_getTrackingParams(M),D=M.visualElement?M.visualElement:R;z=this.shownElements.has(D);var N=this.visibleState.get(D);this.shownElements.add(D);this.visibleState.set(D,!0);M.impressionLog&&!z&&M.impressionLog();if(R||M.visualElement)if(J=LSV(this,M,J))if(D=AXJ(this,M),TC(this,M)||D){R=M.visualElement?M.visualElement:_.pe(R);var Z=M.interactionLoggingClientData;D||z?TC(this,M)&4?N||tce(this.client,J,R,Z):TC(this,M)&1&&!z&&GdY(this.client,J,R,Z):GdY(this.client,
J,R,Z)}};
_.P.reportHidden=function(M,z,J){var R=this.JSC$12476_getTrackingParams(M),D=M.visualElement?M.visualElement:R;z=this.hiddenElements.has(D);var N=this.visibleState.get(D);this.hiddenElements.add(D);this.visibleState.set(D,!1);if(N===!1)return!0;if(!R&&!M.visualElement)return!1;J=LSV(this,M,J);if(!J||!TC(this,M)&&AXJ(this,M))return!1;R=M.visualElement?M.visualElement:_.pe(R);TC(this,M)&8?jwH(this.client,J,R):TC(this,M)&2&&!z&&(M=this.client,z=dE({cttAuthInfo:Hs(J)||void 0},J),R={csn:J,ve:R.getAsJson(),
eventType:2},J==="UNDEFINED_CSN"?u3("visualElementHidden",z,R):M?FS("visualElementHidden",R,M,z):_.gP("visualElementHidden",R,z));return!0};
_.P.JSC$12476_getTrackingParams=function(M){var z=this.getData(M),J,R;if(_.U("il_use_view_model_logging_context")&&(z==null?0:(J=z.context)==null?0:(R=J.loggingContext)==null?0:R.loggingDirectives))return z.context.loggingContext.loggingDirectives.trackingParams||"";var D,N;if(z==null?0:(D=z.rendererContext)==null?0:(N=D.loggingContext)==null?0:N.loggingDirectives)return z.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams||
"";var Z;return((Z=M.veContainer)==null?0:Z.trackingParams)?M.veContainer.trackingParams:(z==null?void 0:z.trackingParams)||""};
_.P.JSC$12476_elementShouldLogGesture=function(M,z){M=this.getData(M);return!!((Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.gestures&&M.loggingDirectives.gestures.types||""))||0)&z)};
_.P.JSC$12476_getNearestParentVe=function(M){var z=this.JSC$12476_getTrackingParams(M);return M.visualElement?M.visualElement:z?_.pe(z):M.parentElement?this.JSC$12476_getNearestParentVe(M.parentElement):null};
var LSV=function(M,z,J){var R=_.y5(J);return M.csn===null||R===M.csn||J?R:(M=new _.xN("VisibilityLogger called before newScreen",{caller:z.tagName,previous_csn:M.csn,current_csn:R}),_.yA(M),null)};
Ob.prototype.getData=function(M){var z,J=M.data||((z=M.props)==null?void 0:z.data);if(!J||M.isWebComponentWrapper){var R;J=(R=i3.get(M))==null?void 0:R[tSo]}return J};
var AXJ=function(M,z){var J;return!((J=M.getData(z))==null||!J.loggingDirectives)},TC=function(M,z){M=M.getData(z);
return Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.visibility&&M.loggingDirectives.visibility.types||""))||1};var IV;IV=function(){};
_.UU=function(){IV.instance||(IV.instance=new IV);return IV.instance};
IV.prototype.setClient=function(M){_.ui(xS().setClient).bind(xS())(M)};
_.ixg=function(){_.UU();_.ui(xS().JSC$12476_newScreen).bind(xS())()};
IV.prototype.clear=function(){_.ui(xS().clear).bind(xS())()};
IV.prototype.reportShown=function(M,z,J){_.ui(xS().reportShown).bind(xS())(M,z,J)};
IV.prototype.reportHidden=function(M,z,J){return _.ui(xS().reportHidden).bind(xS())(M,z,J)};
var rjH=function(M,z){return _.ui(xS().JSC$12476_getTrackingParams).bind(xS())(z)},jce=function(M,z){return _.ui(xS().JSC$12476_getNearestParentVe).bind(xS())(z)};var oV,CAt;oV=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};
_.Gm=function(){oV.instance||(oV.instance=new oV);return oV.instance};
oV.prototype.setClient=function(M){this.client=M};
CAt=function(M,z,J){J=J===void 0?{}:J;_.ui(function(){var R,D,N,Z=((R=_.G(z==null?void 0:z.commandMetadata,_.X9))==null?void 0:R.rootVe)||((D=_.G(z==null?void 0:z.commandMetadata,aWg))==null?void 0:(N=D.screenVisualElement)==null?void 0:N.uiType);if(Z){R=_.G(z==null?void 0:z.commandMetadata,hrp);if(R==null?0:R.parentTrackingParams){var B=_.pe(R.parentTrackingParams);if(R.parentCsn)var O=R.parentCsn}else J.clickedVisualElement?B=J.clickedVisualElement:z.clickTrackingParams&&(B=_.pe(z.clickTrackingParams));
a:{R=_.G(z,_.Au);D=_.G(z,Ox8);if(R){if(D=xPo(R,"VIDEO")){R={token:D,videoId:R.videoId};break a}}else if(D&&(R=xPo(D,"PLAYLIST"))){R={token:R,playlistId:D.playlistId};break a}R=void 0}J=Object.assign({},{cttAuthInfo:R,parentCsn:O},J);if(_.U("expectation_logging")){var X;J.loggingExpectations=((X=_.G(z==null?void 0:z.commandMetadata,aWg))==null?void 0:X.loggingExpectations)||void 0}_.Xx(M,Z,B,J)}else _.yA(new _.xN("Error: Trying to create a new screen without a rootVeType",z))})()};
_.Xx=function(M,z,J,R){R=R===void 0?{}:R;_.ui(function(){aXk.includes(z)||(_.yA(new _.xN("createClientScreen() called with a non-page VE",z)),z=83769);R.isHistoryNavigation||(M.forwardHistoryStack=[],M.backHistoryStack.push({rootVe:z,key:R.key||""}));M.graftQueue=[];M.stateChangedQueue=[];R.dataPromises?bx$(M,z,J,R):rXk(M,z,J,R)})()};
_.Mba=function(M,z,J){J=J===void 0?0:J;_.ui(function(){z.then(function(R){M.pendingScreenCreation.has(J)&&M.pendingScreenFn&&M.pendingScreenFn();var D=_.y5(J),N=_.hu(J);if(D&&N){var Z={automatedLogEventSource:3},B;(R==null?0:(B=R.response)==null?0:B.trackingParams)&&$Q(M.client,D,N,_.pe(R.response.trackingParams),!1,Z);var O;(R==null?0:(O=R.playerResponse)==null?0:O.trackingParams)&&$Q(M.client,D,N,_.pe(R.playerResponse.trackingParams),!1,Z)}})})()};
oV.prototype.graftServerVe=function(M,z,J){var R=this;return _.ui(function(){var D=_.pe(M);_.ln(R,D,z,J);return D})()};
_.pMG=function(M,z,J,R){return _.U("enable_client_ve_spec")&&z.clientVeSpec?(z=_.O3(z.clientVeSpec.uiType,void 0,z.clientVeSpec.elementIndex,z.clientVeSpec.clientYoutubeData,void 0,z),_.ln(M,z,J,R)?z:null):z.trackingParams?M.graftServerVe(z.trackingParams,J,R):null};
_.v5=function(M,z,J,R){return _.ui(function(){if(!z.veType)return _.hL(new _.xN("Error: Trying to graft a client VE without a veType.")),null;if(z.visibilityTypes){var D=z.visibilityTypes.reduce(function(N,Z){return N|Z});
D={visibility:{types:String(D)}}}D=_.O3(z.veType,z.visualElement,z.elementIndex,z.clientYouTubeData,void 0,D);return _.ln(M,D,J,R)?D:null})()};
_.ln=function(M,z,J,R){R=R===void 0?0:R;return _.ui(function(){if(M.pendingScreenCreation.has(R))return M.graftQueue.push([z,J]),!0;var D=_.y5(R),N=J||_.hu(R);if(D&&N){if(_.U("combine_ve_grafts")){var Z=M.cachedVisualElements.get(N.toString());Z?Z.push(z):(M.cachedRootVisualElements.set(N.toString(),N),M.cachedVisualElements.set(N.toString(),[z]));M.attachTimeout||(M.attachTimeout=_.x4(_.no,function(){zlg(M,D)},1200))}else $Q(M.client,D,N,z);
return!0}return!1})()};
_.ex=function(M,z,J){J=J===void 0?0:J;var R=M.recurringGrafts.get(J)||new Map;if(_.U("smarter_ve_dedupping"))for(var D=Array.from(R.keys()),N=0;N<D.length;N++){var Z=void 0,B=void 0;var O=z;var X=D[N];X.isClientVe()&&O.isClientVe()?(Z=O.getAsJson(),B=X.getAsJson(),O=Z.veType!==B.veType||Z.elementIndex!==B.elementIndex||Z.dataElement!==B.dataElement||O.getLoggingDirectives()!==X.getLoggingDirectives()?!1:!0):O=X.veData.trackingParams!==void 0&&O.veData.trackingParams!==void 0?((B=O.veData)==null?void 0:
B.trackingParams)===((Z=X.veData)==null?void 0:Z.trackingParams):!1;if(O)return}else if(R.has(z))return;R.set(z,void 0);M.recurringGrafts.set(J,R);_.y5(J)==="UNDEFINED_CSN"||M.pendingScreenCreation.has(J)||_.ln(M,z,void 0,J)};
_.Q6=function(M,z,J,R){R=_.y5(R===void 0?0:R);if(!R)return!1;FTp(M.client,R,z,J);return!0};
_.Ub=function(M,z,J,R){if(!z)return!1;R=_.y5(R===void 0?0:R);if(!R)return!1;FTp(M.client,R,_.pe(z),J);return!0};
_.al=function(M,z){var J=z.getScreenLayer&&z.getScreenLayer();if(z.visualElement)return _.Q6(M,z.visualElement,void 0,J);z=rjH(_.UU(),z);return _.Ub(M,z,void 0,J)};
oV.prototype.clickCommand=function(M,z,J){return _.Ub(this,M.clickTrackingParams,z,J===void 0?0:J)};
oV.prototype.stateChanged=function(M,z,J){this.visualElementStateChanged(_.pe(M),z,J===void 0?0:J)};
oV.prototype.visualElementStateChanged=function(M,z,J){J=J===void 0?0:J;J===0&&this.pendingScreenCreation.has(J)?this.stateChangedQueue.push([M,z]):this.logStateChanged(M,z,J)};
oV.prototype.logStateChanged=function(M,z,J){J=J===void 0?0:J;var R=_.y5(J);M=M||_.hu(J);return R&&M?(Yvp(this.client,R,M,z),!0):!1};
var bx$=function(M,z,J,R){R=R===void 0?{}:R;M.pendingScreenCreation.add(R.layer||0);M.pendingScreenFn=function(){rXk(M,z,J,R);var Z=_.hu(R.layer);if(Z){for(var B=_.S(M.graftQueue),O=B.next();!O.done;O=B.next())O=O.value,_.ln(M,O[0],O[1]||Z,R.layer);Z=_.S(M.stateChangedQueue);for(B=Z.next();!B.done;B=Z.next())B=B.value,M.logStateChanged(B[0],B[1])}};
J||_.y5(R.layer)||M.pendingScreenFn();if(R.dataPromises)for(var D=_.S(R.dataPromises),N=D.next();!N.done;N=D.next())_.Mba(M,N.value,R.layer);else _.nc(Error("uf"))},rXk=function(M,z,J,R){R=R===void 0?{}:R;
var D=void 0;R.layer||(R.layer=0);D=R.parentLayer!==void 0?R.parentLayer:R.layer;var N=_.y5(D);D=_.hu(D);var Z=J||D,B;Z&&(R.parentCsn!==void 0?B={clientScreenNonce:R.parentCsn,visualElement:Z}:N&&N!=="UNDEFINED_CSN"&&(B={clientScreenNonce:N,visualElement:Z}));var O,X=_.HW("EVENT_ID");N==="UNDEFINED_CSN"&&X&&(O={servletData:{serializedServletEventId:X}});_.U("combine_ve_grafts")&&N&&zlg(M,N);_.U("no_client_ve_attach_unless_shown")&&Z&&N&&v7p(Z,N);try{var l=_.eOR(M.client,z,B,R.csnToClone,R.cttAuthInfo,
O,R.implicitGestureType,void 0,R.loggingExpectations)}catch(v){_.Hb(v,{rootVeType:z,rootVe:D,parentVisualElement:J,currentCsn:N,parentEl:B,csnToClone:R.csnToClone});_.nc(v);return}_.cs(l,z,R.layer,R.cttAuthInfo);N&&N!=="UNDEFINED_CSN"&&D&&!php(N)&&jwH(M.client,N,D,!0);M.backHistoryStack[M.backHistoryStack.length-1]&&!M.backHistoryStack[M.backHistoryStack.length-1].csn&&(M.backHistoryStack[M.backHistoryStack.length-1].csn=l||"");_.sf({clientScreenNonce:l});_.ixg();var e=_.hu(R.layer);N&&N!=="UNDEFINED_CSN"&&
e&&(_.U("web_mark_root_visible")||_.U("music_web_mark_root_visible"))&&_.an(l,e);M.pendingScreenCreation.delete(R.layer||0);M.pendingScreenFn=void 0;var Q;(Q=M.recurringGrafts.get(R.layer))==null||Q.forEach(function(v,x){v?_.ln(M,x,v,R.layer):e&&_.ln(M,x,e,R.layer)});
J3S(M)},J3S=function(M){for(var z=0;z<M.afterNewScreenOneOffJobs.length;z++){var J=M.afterNewScreenOneOffJobs[z];
try{J()}catch(R){_.nc(R)}}for(z=M.afterNewScreenOneOffJobs.length=0;z<M.afterNewScreenRecurringJobs.length;z++){J=M.afterNewScreenRecurringJobs[z];try{J()}catch(R){_.nc(R)}}},zlg=function(M,z){if(z===void 0)for(var J=tlc(),R=0;R<J.length;R++)J[R]!==void 0&&zlg(M,J[R]);
else M.cachedVisualElements.forEach(function(D,N){(N=M.cachedRootVisualElements.get(N))&&Qwb(M.client,z,N,D)}),M.cachedVisualElements.clear(),M.cachedRootVisualElements.clear(),M.attachTimeout=void 0};var v2=function(M){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;M={};this.wLy=(M.response=!1,M.playerResponse=!1,M)};
_.w(v2,P2);v2.prototype.validate=function(M){return!(!M.data||!M.data.response&&!M.data.playerResponse)};
v2.prototype.handle=function(M){var z=_.Gm(),J=this.createScreenConfig.layer;M.data.response&&M.data.response.trackingParams&&!this.wLy.response&&(z.graftServerVe(M.data.response.trackingParams,void 0,J),this.wLy.response=!0);M.data.playerResponse&&M.data.playerResponse.trackingParams&&!this.wLy.playerResponse&&(z.graftServerVe(M.data.playerResponse.trackingParams,void 0,J),this.wLy.playerResponse=!0)};var GC=function(){this.zq=_.Ln();this.yo=[];this.fc0=0};
GC.prototype.processChunk=function(M){if(M){for(var z=_.S(this.yo),J=z.next();!J.done;J=z.next())J=J.value,J.validate(M)&&(J.handle(M),J.hasRun=!0);_.hd("np"+this.fc0);this.fc0++}};var b3;var RlS=function(M){this.observers=[];this.value=M};
_.P=RlS.prototype;_.P.subscribe=function(M){var z=this;if(M.idx!=null)throw Error("xf");M.idx=this.observers.length;this.observers.push(M);return function(){var J=z.observers[z.observers.length-1];z.observers[M.idx]=J;J.idx=M.idx;z.observers.pop()}};
_.P.update=function(M){this.value=M(this.value);this.notify()};
_.P.mutate=function(M){M(this.value);this.notify()};
_.P.set=function(M){this.value=M;this.notify()};
_.P.notify=function(){for(var M=_.S(this.observers),z=M.next();!z.done;z=M.next()){z=z.value;try{z(this.value)}catch(J){}}};uG8("telemetry.logging.enabledNamespaces",new RlS({enabledNamespaces:{}}));var i_8,DAV,SLV;_.l5=function(M,z,J,R,D,N,Z){Z=Z===void 0?[]:Z;this.buildCommandPayload=M;this.navigate=z;this.handleServiceRequest=J;this.sendAction=R;this.JSC$12524_screenManager=D;this.commandResolverMap=N;this.autoLogResolverAllowlist=Z;this.pendingCommands=new Set;this.isTracingEnabled=!1;DAV(this)};
i_8=function(M,z,J){var R=H_p,D=cIH,N=_.Gm(),Z=Njv;J=J===void 0?[]:J;_.l5.instance=new _.l5(M,z,R,D,N,Z,J)};
DAV=function(M){if(!M.isTracingEnabled&&yTo("command")){var z=M.resolveCommand;M.resolveCommand=function(J,R){a:{for(D in J)if(Object.prototype.hasOwnProperty.call(J,D)){var D={commandType:D};break a}D={}}return KTb("command",D,z.bind(this,J,R))};
M.isTracingEnabled=!0}};
SLV=function(M,z,J){if(!M.commandResolverMap)return!1;var R=Vcc(z,M.commandResolverMap);return R?((M.autoLogResolverAllowlist.some(function(D){return!!_.G(z,D)})||(J==null?0:J.forceClickLogging))&&P1J(M,z,J),R instanceof Promise?R.then(function(D){D.resolve(z,J)}):R.resolve(z,J),!0):!1};
_.l5.prototype.resolveCommand=function(M,z){var J=this,R=ZmQ(M);if(SLV(this,M,z))return!0;if(R)return kPg(this,M,z);if(!this.buildCommandPayload)return qv3(M,"Unhandled command by buildCommandPayload"),!1;var D=this.buildCommandPayload(M,z);if(z==null?0:z.commandController)D.commandController=z.commandController;if(D.type===0){if(!this.navigate)return WTn(M,"navigate"),!1;if(!Bja(D.command))return qv3(M,"Page requests need to specify a url"),!1;_.U("logging_avoid_blocking_during_navigation")&&_.rMc().transition("application_navigating");
M=this.navigate(D)||[];AGQ(M).then(function(){J.pendingCommands.delete(D.command)});
return!0}if(D.type===1){if(!this.handleServiceRequest)return WTn(M,"handleServiceRequest"),!1;(z==null?0:z.forceClickLogging)&&P1J(this,D.command,z);M=this.handleServiceRequest(D);AGQ(M).then(function(){J.pendingCommands.delete(D.command)});
return!0}if(D.type===2){if(!this.sendAction)return WTn(M,"sendAction"),!1;P1J(this,D.command,z);this.sendAction(D);return!0}return!1};
var P1J=function(M,z,J){if((J==null||!J.disableClickTracking)&&M.JSC$12524_screenManager)if(z.clickTrackingParams&&_.U("log_click_with_layer_from_element_in_command_handler")){var R;J=J==null?void 0:(R=J.form)==null?void 0:R.element;M.JSC$12524_screenManager.clickCommand(z,null,J&&J.getScreenLayer&&J.getScreenLayer())}else z.clickTrackingParams?M.JSC$12524_screenManager.clickCommand(z):!_.U("disable_clicked_visual_element_in_command_handler")&&(J==null?0:J.clickedVisualElement)&&_.Q6(M.JSC$12524_screenManager,
J.clickedVisualElement)},ZmQ=function(M){var z=!!_.G(M,_.TV),J;
M=((J=_.G(M,_.on))==null?void 0:J.signal)==="CLIENT_SIGNAL";return z||M},kPg=function(M,z,J){var R=_.G(z,_.TV);
if(R)var D=(R==null?void 0:R.commands)||[];else{var N;if(((N=_.G(z,_.on))==null?void 0:N.signal)==="CLIENT_SIGNAL"){var Z;D=((Z=_.G(z,_.on))==null?void 0:Z.actions)||[]}}if(D){z=_.S(D);for(D=z.next();!D.done;D=z.next()){D=D.value;try{M.resolveCommand(D,J)}catch(B){B instanceof Error&&_.nc(B)}}return!0}qv3(z,"Could not handle the meta command");return!1},Bja=function(M){var z;
return!((z=_.G(M==null?void 0:M.commandMetadata,_.X9))==null||!z.url)};var wN=function(){P2.apply(this,arguments)};
_.w(wN,P2);wN.prototype.validate=function(M){var z,J;return!this.hasRun&&!!((z=M.data.response)==null?0:(J=z.onResponseReceivedEndpoints)==null?0:J.length)};
wN.prototype.handle=function(M){var z=_.l5.instance;M=_.S(M.data.response.onResponseReceivedEndpoints);for(var J=M.next();!J.done;J=M.next())z.resolveCommand(J.value)};var Omp,Tjk,oht;
Omp=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Of();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.x9=function(){Tjk||(Tjk=new Omp);return Tjk};
oht=function(){var M=_.x9();M.miniplayerButtonActivation=!1;M.userActivation=!1;M.playlistWatchPageActivation=!1;M.productDetailsPageActivation=!1;M.miniAppPageActivation=!1;M.playablesDestPageActivation=!1;M.lockupActivation=!1;M.showMiniplayerCommandActivation=!1;M.playlistSuggestionsShelfActivation=!1;M.mediaSessionPipActivation=!1;M.watchPipActivation=!1;M.watchWhileActivation=!1;M.shortsPipActivation=!1};
_.X8p=function(){var M=_.x9(),z=M.mediaSessionPipActivation,J=M.watchPipActivation,R=M.watchWhileActivation,D=M.playlistWatchPageActivation,N=M.lockupActivation,Z=M.showMiniplayerCommandActivation,B=M.navigatingAwayFromWatchDeletedVideo,O=M.shortsPipActivation,X=M.playlistSuggestionsShelfActivation,l=M.productDetailsPageActivation,e=M.miniAppPageActivation,Q=M.playablesDestPageActivation;return!M.miniplayerButtonActivation&&!D&&!X&&!l&&!e&&!Q&&!N&&!Z&&!z&&!J&&!R&&!O||B};var Cp0;_.tm=_.Mv("FEwhat_to_watch","/",3854);_.bG3=_.Mv("FEdownloads","/feed/downloads",42352);Cp0=_.Mv("FEmusic_offline","browse/FEmusic_offline",42352);var bd=function(M,z){z=z===void 0?[]:z;var J=J===void 0?[]:J;z=Ns8.apply(null,[PHH.apply(null,_.Yj(z))].concat(_.Yj(J)));this.store=Bsp(M,void 0,z)};
bd.prototype.getState=function(){return this.store.getState()};
bd.prototype.dispatch=function(M){return this.store.dispatch(M)};
bd.prototype.subscribe=function(M){return this.store.subscribe(M)};
bd.prototype.replaceReducer=function(M){return this.store.replaceReducer(M)};
bd.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.jx=function(M,z,J){var R=z(M.getState());return M.subscribe(function(){var D=z(M.getState());if(D!==R){var N=R;R=D;J(D,N)}})};var HMp;_.pf=function(M,z,J){return _.Nv({type:"REPLACE_ENTITY",payload:{entityPayload:J,entityType:M,key:z}})};
HMp=function(M){return _.Nv({type:"REPLACE_ENTITIES",payload:M})};
_.hk=function(M,z,J,R){return _.Nv({type:"UPDATE_ENTITY",payload:{entityPayload:J,entityType:M,key:z,mergeOption:R}})};var Djo=function(M){var z=this;M=M===void 0?[]:M;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;M.forEach(function(J){z.append(J)})};
_.P=Djo.prototype;_.P.getLength=function(){return this.totalLength};
_.P.append=function(M){var z=this.arrays.length===0?!1:(z=this.arrays[this.arrays.length-1])&&z.buffer===M.buffer&&z.byteOffset+z.length===M.byteOffset;z?(z=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(z.buffer,z.byteOffset,z.length+M.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(M);this.totalLength+=M.length};
_.P.split=function(M){for(var z=new Djo,J=new Djo,R=_.S(this.arrays),D=R.next();!D.done;D=R.next())D=D.value,M>=D.length?(z.append(D),M-=D.length):M?(z.append(new Uint8Array(D.buffer,D.byteOffset,M)),J.append(new Uint8Array(D.buffer,D.byteOffset+M,D.length-M)),M=0):J.append(D);return{headView:z,tailView:J}};
_.P.extract=function(M,z){return this.split(M).tailView.split(z).headView};
_.P.isFocused=function(M){return M>=this.arrayPos&&M<this.arrayPos+this.arrays[this.arrayIdx].length};
_.P.focus=function(M){if(!this.isFocused(M))for(M<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=M&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var lnv=function(M,z){M.focus(z);return M.arrays[M.arrayIdx][z-M.arrayPos]};(function(){var M=function(R){return new Uint8Array(R)},z=function(R){for(var D=new Uint8Array(R.length),N=0;N<R.length;N++)D[N]=R[N];
return D},J=new Uint8Array([1]);
return J.length===1&&J[0]===1?M:z})();
var bHe=Array(1024),C$8=window.TextDecoder?new TextDecoder:void 0,MOb=window.TextEncoder?new TextEncoder:void 0;var Rre=function(M){this.arrayView=M;this.pos=0;this.pendingTagAndType=-1},PA=function(M){var z=lnv(M.arrayView,M.pos);
++M.pos;if(z<128)return z;for(var J=z&127,R=1;z>=128;)z=lnv(M.arrayView,M.pos),++M.pos,R*=128,J+=(z&127)*R;return J},N$8=function(M,z){var J=M.pendingTagAndType;
for(M.pendingTagAndType=-1;M.pos+1<=M.arrayView.totalLength;){J<0&&(J=PA(M));var R=J>>3,D=J&7;if(R===z)return!0;if(R>z){M.pendingTagAndType=J;break}J=-1;switch(D){case 0:PA(M);break;case 1:M.pos+=8;break;case 2:R=PA(M);M.pos+=R;break;case 5:M.pos+=4}}return!1};var S43=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=JV8(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Oh=function(M,z){z=M.pos+z;
if(!(M.buf.length>=z)){for(var J=M.buf.length*2;J<z;)J*=2;M.buf=JV8(J,M.wasm,M.buf.subarray(0,M.pos));M.view=new DataView(M.buf.buffer,M.buf.byteOffset,M.buf.byteLength)}},BA=function(M,z){if(z>268435455){Oh(M,4);
for(var J=z&1073741823,R=0;R<4;R++)M.view.setUint8(M.pos,J&127|128),J>>=7,M.pos+=1;z=Math.floor(z/268435456)}for(Oh(M,4);z>127;)M.view.setUint8(M.pos,z&127|128),z>>=7,M.pos+=1;M.view.setUint8(M.pos,z);M.pos+=1};for(var ZMH={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},PUe={},elV=_.S(Object.entries(ZMH)),QSJ=elV.next();!QSJ.done;QSJ=elV.next()){var UAQ=_.S(QSJ.value),vht=UAQ.next().value,GP2=UAQ.next().value,w8k=vht,xAS=GP2;xAS&&(PUe[xAS]=w8k)};var B$G=function(M,z){M=M===void 0?{}:M;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(R,D){var N,Z=(N=D.options)==null?void 0:N.persistenceOption;if(Z&&Z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!D.entityKey)return _.nc(Error("zf")),R;if(D.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!D.payload)return D=new _.xN("REPLACE entity mutation is missing a payload",{entityKey:D.entityKey}),_.nc(D),R;var B=(0,_.gu.getAnyKey)(D.payload);
return T$8(R,B,D.entityKey,D.payload[B])}if(D.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{D=D.entityKey;try{var O=_.kf(D).entityType;B=T$8(R,O,D);break a}catch(e){if(e instanceof Error){D=new _.xN("Failed to deserialize entity key",{entityKey:D,originalMessage:e.message});_.nc(D);B=R;break a}throw e;}B=void 0}return B}if(D.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!D.payload)return D=new _.xN("UPDATE entity mutation is missing a payload",{entityKey:D.entityKey}),_.nc(D),R;B=(0,_.gu.getAnyKey)(D.payload);
var X,l;return IBb(R,B,D.entityKey,D.payload[B],(X=D.fieldMask)==null?void 0:(l=X.mergeOptions)==null?void 0:l.repeatedFieldsMergeOption)}return R},M);
case "REPLACE_ENTITY":var J=z.payload;return T$8(M,J.entityType,J.key,J.entityPayload);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(R,D){var N=z.payload[D];return Object.keys(N).reduce(function(Z,B){return T$8(Z,D,B,N[B])},R)},M);
case "UPDATE_ENTITY":return J=z.payload,IBb(M,J.entityType,J.key,J.entityPayload,J.mergeOption);default:return M}};var oBR;var tbu=!1,pN,Fx,Y9,m9,gN,jSu=function(M){_.wS.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!tbu){var z,J=new Uint8Array(256),R=new Uint8Array(256);var D=1;for(z=0;z<256;z++)J[D]=z,R[z]=D,D^=D<<1^(D>>7&&283);pN=new Uint8Array(256);Fx=X2(256);Y9=X2(256);m9=X2(256);gN=X2(256);for(var N=0;N<256;N++){D=N?R[255^J[N]]:0;D^=D<<1^D<<2^D<<3^D<<4;D=D&255^D>>>8^99;pN[N]=D;z=D<<1^(D>>7&&283);var Z=z^D;Fx[N]=z<<24|D<<16|D<<8|Z;Y9[N]=Z<<24|Fx[N]>>>8;m9[N]=D<<24|Y9[N]>>>
8;gN[N]=D<<24|m9[N]>>>8}tbu=!0}D=X2(44);for(J=0;J<4;J++)D[J]=M[4*J]<<24|M[4*J+1]<<16|M[4*J+2]<<8|M[4*J+3];for(R=1;J<44;J++)M=D[J-1],J%4||(M=(pN[M>>16&255]^R)<<24|pN[M>>8&255]<<16|pN[M&255]<<8|pN[M>>>24],R=R<<1^(R>>7&&283)),D[J]=D[J-4]^M;this.key=D};
_.w(jSu,_.wS);
jSu.prototype.encrypt=function(M){var z=M.length;M=new Uint8Array(M.buffer.slice(M.byteOffset,M.byteOffset+z));for(var J=this.cipherBlock,R=0;R<z&&this.blockOffset<16;)M[R++]^=J[this.blockOffset++];for(var D=z-(z-R)%16;R<D;)p8$(this),M[R++]^=J[0],M[R++]^=J[1],M[R++]^=J[2],M[R++]^=J[3],M[R++]^=J[4],M[R++]^=J[5],M[R++]^=J[6],M[R++]^=J[7],M[R++]^=J[8],M[R++]^=J[9],M[R++]^=J[10],M[R++]^=J[11],M[R++]^=J[12],M[R++]^=J[13],M[R++]^=J[14],M[R++]^=J[15];if(R<z)for(p8$(this),this.blockOffset=0;R<z;)M[R++]^=
J[this.blockOffset++];return M};
var p8$=function(M){for(var z=M.key,J=M.counter[0]^z[0],R=M.counter[1]^z[1],D=M.counter[2]^z[2],N=M.counter[3]^z[3],Z=3;Z>=0&&!(M.counter[Z]=-~M.counter[Z]);Z--);for(var B,O,X=4;X<40;)Z=Fx[J>>>24]^Y9[R>>16&255]^m9[D>>8&255]^gN[N&255]^z[X++],B=Fx[R>>>24]^Y9[D>>16&255]^m9[N>>8&255]^gN[J&255]^z[X++],O=Fx[D>>>24]^Y9[N>>16&255]^m9[J>>8&255]^gN[R&255]^z[X++],N=Fx[N>>>24]^Y9[J>>16&255]^m9[R>>8&255]^gN[D&255]^z[X++],J=Z,R=B,D=O;M=M.cipherBlock;Z=z[40];M[0]=pN[J>>>24]^Z>>>24;M[1]=pN[R>>16&255]^Z>>16&255;M[2]=
pN[D>>8&255]^Z>>8&255;M[3]=pN[N&255]^Z&255;Z=z[41];M[4]=pN[R>>>24]^Z>>>24;M[5]=pN[D>>16&255]^Z>>16&255;M[6]=pN[N>>8&255]^Z>>8&255;M[7]=pN[J&255]^Z&255;Z=z[42];M[8]=pN[D>>>24]^Z>>>24;M[9]=pN[N>>16&255]^Z>>16&255;M[10]=pN[J>>8&255]^Z>>8&255;M[11]=pN[R&255]^Z&255;Z=z[43];M[12]=pN[N>>>24]^Z>>>24;M[13]=pN[J>>16&255]^Z>>16&255;M[14]=pN[R>>8&255]^Z>>8&255;M[15]=pN[D&255]^Z&255};var FYk=!1;(function(){var M=function(R){return new Uint8Array(R)},z=function(R){for(var D=new Uint8Array(R.length),N=0;N<R.length;N++)D[N]=R[N];
return D},J=new Uint8Array([1]);
return J.length===1&&J[0]===1?M:z})();
var sb;var ghu=function(M){a:{if(!FYk&&!i9){if(sb){var z=sb;break a}sb=(z=window.crypto)==null?void 0:z.subtle;var J,R,D;if(((J=sb)==null?0:J.importKey)&&((R=sb)==null?0:R.sign)&&((D=sb)==null?0:D.encrypt)){z=sb;break a}sb=void 0}z=void 0}z&&(this.nativeEncryptor=new YLV(M,z));this.encryptorPolyfill=new mA$(M)};
ghu.prototype.encrypt=function(M,z){var J=this,R;return _.k(function(D){switch(D.nextAddress){case 1:if(!J.nativeEncryptor){D.jumpTo(2);break}_.Io(D,3);return D.yield(J.nativeEncryptor.encrypt(M,z),5);case 5:return D.return(D.yieldResult);case 3:R=_.Qa(D),_.yA(R),FYk=!0,J.nativeEncryptor=void 0;case 2:return D.return(J.encryptorPolyfill.encrypt(M,z))}})};
ghu.prototype.decrypt=function(M,z){return this.encrypt(M,z)};
var YLV=function(M,z){this.JSC$12597_aesKey=M;this.subtleCrypto=z};
YLV.prototype.encrypt=function(M,z){var J=this,R;return _.k(function(D){if(D.nextAddress==1)return _.Io(D,2),D.yield(sS$(J,M,z),4);if(D.nextAddress!=2)return D.return(D.yieldResult);R=_.Qa(D);_.yA(R);FYk=!0;throw R;})};
var sS$=function(M,z,J){var R,D;return _.k(function(N){switch(N.nextAddress){case 1:if(M.cryptoKey){N.jumpTo(2);break}return N.yield(M.subtleCrypto.importKey("raw",M.JSC$12597_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:M.cryptoKey=N.yieldResult;case 2:return R={name:"AES-CTR",counter:J,length:128},N.yield(M.subtleCrypto.encrypt(R,M.cryptoKey,z),4);case 4:return D=N.yieldResult,N.return(new Uint8Array(D))}})},mA$=function(M){this.JSC$12600_aesKey=M};
mA$.prototype.encrypt=function(M,z){this.encryptor||(this.encryptor=new jSu(this.JSC$12600_aesKey));for(var J=this.encryptor,R=0;R<4;R++)J.counter[R]=z[R*4]<<24|z[R*4+1]<<16|z[R*4+2]<<8|z[R*4+3];J.blockOffset=16;return this.encryptor.encrypt(M)};
mA$.prototype.decrypt=function(M,z){return this.encrypt(M,z)};var nha={},erc=Mc("yt-idb-pref-storage",{objectStores:(nha.prefs={addedAtVersion:1},nha),shared:!1,upgrade:function(M,z){z(1)&&uD($_(M,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.nN=function(M){this.token=M};
_.nN.getInstance=function(){return _.k(function(M){return M.return(new Promise(function(z){_.rQ().then(function(J){J?(_.nN.instance||(_.nN.instance=new _.nN(J)),z(_.nN.instance)):z(void 0)})}))})};
_.nN.prototype.get=function(M){var z=this,J,R,D;return _.k(function(N){if(N.nextAddress==1)return N.yield(QR0(z.token),2);if(N.nextAddress!=3)return J=N.yieldResult,N.yield(J.get("prefs",M),3);R=N.yieldResult;if(!R)return N.return();D=(0,_.zU)();return R.expirationTimestampMs<=D?N.return():N.return(R.value)})};
_.nN.prototype.set=function(M,z,J){J=J===void 0?31536E3:J;var R=this,D,N,Z;return _.k(function(B){if(B.nextAddress==1)return D=(0,_.zU)(),N={key:M,value:z,expirationTimestampMs:D+J*1E3},B.yield(QR0(R.token),2);Z=B.yieldResult;return B.yield(Z.put("prefs",N),0)})};
_.nN.prototype.remove=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(QR0(z.token),2);J=R.yieldResult;return R.yield(J.delete("prefs",M),0)})};var hm={},hlS=(hm.INVALID_ENCODER_VERSION="Invalid encoder version",hm.KEY_CREATION_FAILED="Failed to create encoder key",hm.UNKNOWN_DECODE_ERROR="Failed to decode PES data",hm.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",hm.WRONG_DATA_TYPE="Encoder cannot process the data type",hm),ld=function(M,z){z=z===void 0?{}:z;_.xN.call(this,hlS[M],Object.assign({},{name:"PESEncoderError",type:M},z));this.type=M;this.level="WARNING";Object.setPrototypeOf(this,ld.prototype)};
_.w(ld,_.xN);var y6=function(){};
y6.prototype.encode=function(M,z){try{return this.encodeImpl(M,z)}catch(J){wc3(J,vBo)}};
y6.prototype.decode=function(M,z){try{return this.decodeImpl(M,z)}catch(J){wc3(J,GO8)}};
var y3g=function(M,z,J){var R;return _.k(function(D){if(D.nextAddress==1)return _.Io(D,2),D.yield(M.decodeAsyncImpl(z,J),4);if(D.nextAddress!=2)return D.return(D.yieldResult);R=_.Qa(D);wc3(R,GO8);_.UI(D)})};
y6.prototype.decodeAsyncImpl=function(M,z){return Promise.resolve(this.decodeImpl(M,z))};var H2=function(M,z){this.aesEncryptor=M;this.aesEncryptorAsync=z};
_.w(H2,y6);H2.prototype.encodeImpl=function(M,z){z=xjH(z);M=(new TextEncoder).encode(JSON.stringify(M));return this.aesEncryptor.encrypt(M,z)};
H2.prototype.decodeImpl=function(M,z){if(!(M instanceof Uint8Array))throw Uj8(1);var J=new TextDecoder;z=xjH(z);M=this.aesEncryptor.decrypt(M,z);return JSON.parse(J.decode(M))};
H2.prototype.decodeAsyncImpl=function(M,z){var J=this,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){if(!(M instanceof Uint8Array))throw Uj8(1);R=new TextDecoder;D=xjH(z);return Z.yield(J.aesEncryptorAsync.decrypt(M,D),2)}N=Z.yieldResult;return Z.return(JSON.parse(R.decode(N)))})};var tOY={accountLinkStatusEntity:z_v,booleanEntity:sI2,buttonEntity:L_B,captionTrack:yTp,channelHandle:SeV,chipEntity:v9p,commerceAcquisitionClientPayloadEntity:QY2,commerceCartListEntity:UKJ,contextNoteFeedEntityPayload:vsV,contextNoteUserRatingEntityPayload:GQt,continuationTokenEntity:lyp,downloadQualityPickerEntity:NJS,downloadsPageRefreshTokenEntity:S_u,downloadsPageViewConfigurationEntity:jqu,downloadStatusEntity:PZQ,dismissState:GCp,sfvAudioItemCurrentlyPlayingEntity:IBB,emojiFountainDataEntity:VEp,
emojiCustomizationSetEntity:a1a,fakeChannel:yb$,fakePlaylist:HFu,fakePlaylistEntryCollection:cbu,fakeVideo:KvJ,fakeVideoDescription:$DV,featuredProductsEntity:EtV,flowStateEntity:CFu,iconBadgeEntity:vKt,interstitialInteractionStateEntity:e_$,likeButtonAnimationEntity:p0t,liveChatPollStateEntity:phv,liveViewerLeaderboardChatEntryPointStateEntity:ATu,liveViewerLeaderboardPointsEntity:iHS,liveReactionsDataEntity:E5a,logoEntity:Xh$,macroMarkerEntity:F7B,mainDownloadsLibraryEntity:ZRJ,mainDownloadsListEntity:kxQ,
mainPlaylistDownloadStateEntity:ORa,mainPlaylistEntity:eTQ,mainPlaylistVideoEntity:Qq2,mainVideoDownloadStateEntity:TJt,mainVideoEntity:w0t,markersEngagementPanelSyncEntity:Y_g,markersVisibilityOverrideEntity:mPp,musicAlbumReleaseDetail:ROV,musicAlbumReleaseDownloadMetadataEntity:bR$,musicAlbumRelease:JTJ,musicAlbumReleaseUserDetail:D0g,musicArtistDetail:P$k,musicArtist:NLv,musicArtistUserDetail:Svu,musicDownloadsLibraryEntity:rn$,musicLibraryEdit:ZHt,musicLibraryStatusEntity:kda,musicPlaylist:BLu,
musicPlaylistDownloadMetadataEntity:Mck,musicShare:TL$,musicTrackDetail:o7Q,musicTrackDownloadMetadataEntity:zO$,musicTrack:Ipk,musicTrackUserDetail:Xwa,offlineOrchestrationActionWrapperEntity:HHt,offlineVideoPolicy:cTp,offlineVideoStreams:d0t,offlineabilityEntity:Iy$,orchestrationWebSamplingEntity:otv,pageHeaderEntity:sVu,pdpStateEntity:Gn$,pinnedProductEntity:fya,playbackData:KTB,playerStateEntity:gtV,quantityIncrementerEntity:wmg,refresh:$0t,saveToPlaylistListEntity:yVv,selectedChipIndexEntityPayload:sqa,
settingEntity:zgp,stringEntity:ne$,suggestedFeedbackChipStateEntity:ntp,transfer:uGt,trendingOfferEntity:L7S,videoDownloadContextEntity:qvk,videoOverviewAsyncDataEntity:EKk,videoPlaybackPositionEntity:C_V,votingEntity:$nt,ytMainChannelEntity:xPp,youchatPendingResponseEntity:hT$,ytMainDownloadedVideoEntity:X0v,ytMainVideoEntity:tRt};var Hm$,dAQ,Gr,nB3,hro,uPg,WYQ,qL$,$Av;Hm$=function(M,z){this.JSC$12619_wrapped=M;this.JSC$12619_encoderRegistry=z;this.changedKeys={}};
dAQ=function(M,z){return c3Q(M.JSC$12619_encoderRegistry,z.version).decode(z.data,z.key)};
_.KYJ=function(M,z,J){return M.JSC$12619_wrapped.objectStore("EntityStore").get(z).then(function(R){if(R){if(J&&R.entityType!==J)throw Error("Af");return dAQ(M,R)}})};
Gr=function(M,z,J){return J?(J=J.map(function(R){return _.KYJ(M,R,z)}),KK.all(J)):M.JSC$12619_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(z)).then(function(R){return R.map(function(D){return dAQ(M,D)})})};
_.sRp=function(M,z,J){var R=kOb(z),D=c3Q(M.JSC$12619_encoderRegistry,1),N=Object.assign({},z);return M.JSC$12619_wrapped.objectStore("EntityStore").get(R).then(function(Z){if(Z){if(Z.entityType!==J)throw Error("Af");N.entityMetadata||(Z=dAQ(M,Z),N.entityMetadata=Z.entityMetadata)}}).then(function(){var Z={key:R,
entityType:J,data:D.encode(N,R),version:1};return KK.all([M.JSC$12619_wrapped.objectStore("EntityStore").put(Z),$Av(M,N,J)])}).then(function(){uPg(M,R,J);
return R})};
nB3=function(M,z){var J=_.kf(z).entityType;return KK.all([M.JSC$12619_wrapped.objectStore("EntityStore").delete(z),qL$(M,z)]).then(function(){uPg(M,z,J)})};
hro=function(M,z,J,R){var D=c3Q(M.JSC$12619_encoderRegistry,1);return _.KYJ(M,z,R).then(function(N){if(N){N=iHe(N,J);var Z={key:z,entityType:R,data:D.encode(N,z),version:1};return KK.all([M.JSC$12619_wrapped.objectStore("EntityStore").put(Z),$Av(M,N,R)])}}).then(function(){uPg(M,z,R);
return z})};
uPg=function(M,z,J){var R=M.changedKeys[J];R||(R=new Set,M.changedKeys[J]=R);R.add(z)};
WYQ=function(M,z,J){var R=kOb(z);J=jRY(J);if(!J)return KK.resolve([]);J=new J(z);M=M.JSC$12619_wrapped.objectStore("EntityAssociationStore");z=[];J=_.S(J.getAssociations());for(var D=J.next();!D.done;D=J.next())z.push(M.put({parentEntityKey:R,childEntityKey:D.value}));return KK.all(z).then(function(N){return N.map(function(Z){return Z[1]})})};
qL$=function(M,z){return M.JSC$12619_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(z))};
$Av=function(M,z,J){var R=kOb(z);return qL$(M,R).then(function(){return WYQ(M,z,J)})};var anB=function(){};
_.w(anB,y6);anB.prototype.encodeImpl=function(M){return M};
anB.prototype.decodeImpl=function(M){if(M instanceof Uint8Array)throw Uj8(0);return M};var Y43=function(){this.cacheMap={};this.cacheMap[0]=new anB;if(!_.U("aes_pes_encoder_killswitch")){var M=this.cacheMap;try{var z=_.Gw();var J=xjH(z);var R=new H2(new mA$(J),new ghu(J))}catch(D){throw M=D instanceof Error?new ld("KEY_CREATION_FAILED",{originalMessage:D.message}):new ld("KEY_CREATION_FAILED"),_.nc(M),M;}M[1]=R}},c3Q=function(M,z){z=z===void 0?0:z;
M=M.cacheMap[z];if(!M)throw z=new ld("INVALID_ENCODER_VERSION",{encoderVersion:z}),_.nc(z),z;return M};var Q$=function(M,z){_.wS.call(this);this.token=M;this.JSC$12633_encoderRegistry=z;this.observers=[];M=new _.R3.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Gw());M.onmessage=this.handleMessage.bind(this);this.channel=M};
_.w(Q$,_.wS);_.vA=function(M,z,J){var R,D,N,Z;return _.k(function(B){if(B.nextAddress==1)return B.yield(lBR(M.token),2);if(B.nextAddress!=3)return R=B.yieldResult,B.yield(_.fK(R,["EntityStore","EntityAssociationStore"],z,function(O){D=new Hm$(O,M.JSC$12633_encoderRegistry);return J(D)}),3);
N=B.yieldResult;D&&(Z=D.changedKeys,Object.keys(Z).length>0&&(M.channel.postMessage(Z),VbQ(M,Z)));return B.return(N)})};
Q$.prototype.observe=function(M){var z=this;this.observers.push(M);return function(){var J=z.observers.indexOf(M);J>=0&&z.observers.splice(J,1)}};
var k3R=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(_.vA(M,{mode:"readonly",enableRetries:!0},function(R){return R.JSC$12619_wrapped.objectStore("EntityStore").getAll()}),2);
z=J.yieldResult;return J.return(Promise.all(z.filter(function(R){return!!R}).map(function(R){var D,N;
return _.k(function(Z){if(Z.nextAddress==1){D=R.key;N=R.entityType;var B=Z.yield;var O=y3g(c3Q(M.JSC$12633_encoderRegistry,R.version),R.data,R.key);return B.call(Z,O,2)}return Z.return({key:D,entityType:N,data:Z.yieldResult})})})))})};
Q$.prototype.handleMessage=function(M){VbQ(this,M.data)};
var VbQ=function(M,z){M=_.S(M.observers);for(var J=M.next();!J.done;J=M.next())J=J.value,J(z)};
Q$.prototype.disposeInternal=function(){this.channel.close()};
var pcR;var c2,fnV,rV8;c2={};_.Eh2=(c2.mainVideoEntity="mainVideoEntityActionMetadata",c2.mainPlaylistEntity="mainPlaylistEntityActionMetadata",c2.musicTrack="musicTrackEntityActionMetadata",c2.musicPlaylist="musicPlaylistEntityActionMetadata",c2);fnV=new _.Nh("DOWNLOADS_ENTITY_TYPE_MAP");_.mp=_.Tr("","downloadsPageViewConfigurationEntity");rV8=_.Tr("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.n98=_.Tr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Tr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Tr("SMART_DOWNLOADS_ENABLED","settingEntity");_.Tr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var KR3=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var EB3=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var v9o={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var dN,v5b,etp,NzR;dN=window;_.WA=dN.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.sQ0=dN.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.AN;v5b=dN.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Um;etp=dN.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||lfp;_.LYp=dN.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.hfk;NzR=dN.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||cJu;fD({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 yEo=GNn(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(M){return M}}}),y88=GNn(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(M){return M}}}),jQ8=new Map;var cER=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],g5n;var A3V=function(M){return _.Nv({type:"SET_EPHEMERAL_ACTION",payload:M})};var img={ephemeralAction:null};var C1u={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var HEH={sharedUi:function(M,z){M=M===void 0?C1u:M;switch(z.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},M,{animatedThumbnailEnabled:z.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},M,{inlinePreviewEnabled:z.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:z.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},M,{currentPageSubType:z.payload});default:return M}},
a11y:lS({ephemeralAction:function(M,z){M=M===void 0?img.ephemeralAction:M;switch(z.type){case "SET_EPHEMERAL_ACTION":return z.payload;default:return M}}}),
entities:OMH};var W_3={playlistId:"",inviteLinkURL:""};var bmQ={};var Fg8=lS({continuationCommand:function(M,z){M=M===void 0?bmQ:M;switch(z.type){case "SET_CONTINUATION_COMMAND":return z.payload.continuationCommand;default:return M}}});var VEo={currentFormId:"",commandsMap:{}};var YQH=lS({isLeaderTab:function(M,z){M=M===void 0?!0:M;switch(z.type){case "SET_IS_LEADER_TAB":var J,R;return(R=z==null?void 0:(J=z.payload)==null?void 0:J.isLeaderTab)!=null?R:M;default:return M}}});var MtV;_.r3u=function(M){return _.Nv({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:M}})};
MtV=function(M){return _.Nv({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:M}})};var ysG=lS({isDesktopSmallWidth:function(M,z){switch(z.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return z.payload.isDesktopSmallWidth;default:return M===void 0?!1:M}},
isShortsActive:function(M,z){switch(z.type){case "SET_IS_SHORTS_ACTIVE":return z.payload.isShortsActive;default:return M===void 0?!1:M}},
isWatchWhileMode:function(M,z){switch(z.type){case "SET_IS_WATCH_WHILE_MODE":return z.payload.isWatchWhileMode;default:return M===void 0?!1:M}},
playerState:function(M,z){switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return M===void 0?-1:M}},
isFullscreen:function(M,z){switch(z.type){case "SET_IS_FULLSCREEN":return z.payload.isFullscreen;default:return M===void 0?!1:M}},
isSmallScreenSqueezeback:function(M,z){switch(z.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return z.payload.isSmallScreenSqueezeback;default:return M===void 0?!1:M}},
isShortsPipActive:function(M,z){switch(z.type){case "SET_IS_SHORTS_PIP_ACTIVE":return z.payload.isShortsPipActive;default:return M===void 0?!1:M}},
isPlaybackStarted:function(M,z){switch(z.type){case "SET_IS_PLAYBACK_STARTED":return z.payload.isPlaybackStarted;default:return M===void 0?!1:M}}});var dK8=function(){return function(M){return function(z){var J=M(z);_.S9(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[z],!0);return J}}};var zda,a4H;zda=new _.Iz;_.SF=new _.Nh("WATCH_PLAYER_PROMISE_TOKEN");_.JU2=new _.Iz;_.Rdt=new _.Nh("SHORTS_PLAYER_PROMISE_TOKEN");a4H=new _.Nh("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var KgG=function(){return function(M){return function(z){z.type==="ENTITY_LOADED"&&_.JF().resolve(_.SF).then(function(J){var R;(R=J.dispatchReduxAction)==null||R.call(J,z)});
return M(z)}}};var DLt={};var mK0=lS({additionalContext:function(M,z){switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var J;return(J=z.payload)!=null?J:"";default:return M===void 0?"":M}},
impersonatedChannelUrl:function(M,z){switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var J;return(J=z.payload)!=null?J:"";default:return M===void 0?"":M}},
selectedVideoIds:function(M,z){M=M===void 0?DLt:M;switch(z.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var J={};return Object.assign({},M,(J[z.payload]=!0,J));case "VIDEO_UNSELECTED":return z=z.payload,M=Object.assign({},M),delete M[z],M;default:return M}}});var gKp=lS({parentClickTrackingParams:function(M,z){switch(z.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return z.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return M===void 0?"":M}}});var NG$=function(M){return _.Nv({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:M})};var Pja={};var sYp=lS({stepStates:function(M,z){M=M===void 0?Pja:M;switch(z.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var J=M,R=z.payload,D,N,Z;M={};z={selectionStates:Object.assign({},(Z=(D=J[R.stepId])==null?void 0:D.selectionStates)!=null?Z:{},(M[R.token]={isSelected:R.isSelected},M)),userQuery:(N=J[R.stepId])==null?void 0:N.userQuery};D={};return Object.assign({},J,(D[R.stepId]=z,D));case "TALK_TO_RECS_UPDATE_USER_QUERY":return D=M,N=z.payload,Z={selectionStates:Object.assign({},
(R=(J=D[N.stepId])==null?void 0:J.selectionStates)!=null?R:{}),userQuery:{userQuery:N.userQuery,token:N.userQueryToken}},J={},Object.assign({},D,(J[N.stepId]=Z,J));default:return M}}});var Sz2,Z9$,BG2;Sz2=function(M){return _.Nv({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:M})};
Z9$=function(M){return _.Nv({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:M})};
_.na=function(M){return _.Nv({type:"SET_CURRENT_PAGE_TYPE",payload:M})};
_.kM2=function(M){return _.Nv({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:M})};
BG2=function(M){return _.Nv({type:"SET_CHIP_BAR_IS_STICKY",payload:M})};var f1w={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"};_.O9V=function(M){return _.Nv({type:"SET_PLAYER_STATE",payload:{playerState:M}})};var TGQ=[],I7p={width:0,height:0};var nKb=lS({isTheaterMode:function(M,z){M=M===void 0?_.U("kevlar_disable_theater_mode_persistence")?!1:_.cW("START_IN_THEATER_MODE"):M;switch(z.type){case "SET_IS_THEATER_MODE":return z.payload.isTheaterMode;default:return M}},
isWatchActive:function(M,z){switch(z.type){case "SET_IS_WATCH_ACTIVE":return z.payload.isWatchActive;default:return M===void 0?!1:M}},
isLearningJourneyActive:function(M,z){switch(z.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return z.payload.isLearningJourneyActive;default:return M===void 0?!1:M}},
isWatchFullscreen:function(M,z){switch(z.type){case "SET_IS_WATCH_FULLSCREEN":return z.payload.isWatchFullscreen;default:return M===void 0?!1:M}},
isWatchNarrowWidth:function(M,z){switch(z.type){case "SET_IS_WATCH_NARROW_WIDTH":return z.payload.isWatchNarrowWidth;default:return M===void 0?!1:M}},
isWatchRetroMode:function(M,z){switch(z.type){case "SET_IS_WATCH_RETRO_MODE":return z.payload.isWatchRetroMode;default:return M===void 0?!1:M}},
isLiveChatCollapsed:function(M,z){switch(z.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return z.payload.isLiveChatCollapsed;default:return M===void 0?!1:M}},
openEngagementPanels:function(M,z){M=M===void 0?TGQ:M;var J=[].concat(_.Yj(M));switch(z.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return J.push(z.payload.panelToAdd),J;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return J.splice(J.indexOf(z.payload.panelToRemove),1),J;default:return M}},
playerState:function(M,z){switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return M===void 0?-1:M}},
watchScrollTop:function(M,z){switch(z.type){case "SET_WATCH_SCROLL_TOP":return z.payload.watchScrollTop;default:return M===void 0?0:M}},
watchWindowSize:function(M,z){M=M===void 0?I7p:M;switch(z.type){case "SET_WATCH_WINDOW_SIZE":return z.payload.watchWindowSize;default:return M}}});var oY2={feedbackTokens:[]};var h1G=lS({surveyFeedbackData:function(M,z){M=M===void 0?oY2:M;switch(z.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return z.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},M,z.payload);default:return M}}});var AEb={};var uCw=void 0;_.U("web_enable_redux_store_on_demand")||(uCw=$Ko());var XC$=function(M,z,J){var R=this;this.listId=M;this.JSC$12767_updateCallback=z;this.isOfflineVideoCallback=J;_.rA().subscribe(function(){R.handleUpdate()})};
XC$.prototype.getPlaylistData=function(){var M=_.rA().getState().entities;if(this.listId&&this.listId!=="PPSV"){var z=kCG(M,this.listId,!0),J=_.Tr(this.listId,"mainPlaylistEntity"),R,D;M=M==null?void 0:(R=M.mainPlaylistEntity)==null?void 0:(D=R[J])==null?void 0:D.title;return qQH(z,M,this.listId)}z=_.fBp(K9R(M));M=_.fBp(_.gA(M));M=z.concat(M);return qQH(M)};
XC$.prototype.getPlaylistId=function(){return this.listId};
XC$.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12767_updateCallback(this.listId,this.getPlaylistData(),{})};var KN=function(M,z,J,R){R=R===void 0?[]:R;this.JSC$12770_playlistNetworkManager=M;this.listId=z;this.JSC$12770_updateCallback=J;this.videoIds=R;this.pendingUpdates=[];this.currentIndex=0};
KN.prototype.JSC$12770_setCurrentIndex=function(M){this.currentIndex=M};
KN.prototype.setListId=function(M){this.listId=M};
var l7g=function(M,z){M.currentCreateRequest&&M.currentCreateRequest.cancel(z);M.currentUpdateRequest&&M.currentUpdateRequest.cancel(z);M.currentRefreshRequest&&M.currentRefreshRequest.cancel(z)};
KN.prototype.delete=function(){l7g(this,"PROXY DELETED")};
KN.prototype.addVideos=function(M,z,J){var R=this;J!==void 0?this.videoIds.splice.apply(this.videoIds,[J,0].concat(_.Yj(M))):this.videoIds.push.apply(this.videoIds,_.Yj(M));this.listId||this.currentCreateRequest?(M.forEach(function(D,N){D={addedVideoId:D,action:"ACTION_ADD_VIDEO"};J&&(D.addedVideoPosition=J+N);R.pendingUpdates.push(D)}),$9(this)):ed$(this,z.onCreateListCommand)};
var Q5g=function(M,z,J,R,D){gon(M.videoIds,z,J);z>M.currentIndex&&J<=M.currentIndex?M.JSC$12770_setCurrentIndex(M.currentIndex+1):z===M.currentIndex?M.JSC$12770_setCurrentIndex(J):z<M.currentIndex&&J>=M.currentIndex&&M.JSC$12770_setCurrentIndex(M.currentIndex-1);M.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:R,movedSetVideoIdPredecessor:D});$9(M)},ed$=function(M,z){l7g(M,"OBSOLETE");
M.currentCreateRequest=ULp(M.JSC$12770_playlistNetworkManager,z,M.videoIds);_.mi(M.currentCreateRequest,function(){M.currentCreateRequest=void 0}).then(function(J){M.setListId(J.playlistId);
M.pendingUpdates.length>0?$9(M):vYV(M)})},$9=function(M){if(M.pendingUpdates.length!==0&&(M.currentRefreshRequest&&M.currentRefreshRequest.cancel("OBSOLETE"),!M.currentUpdateRequest&&!M.currentCreateRequest)){var z=M.pendingUpdates.splice(0,M.pendingUpdates.length);
M.currentUpdateRequest=M.JSC$12770_playlistNetworkManager.updatePlaylist(M.listId,z);_.mi(M.currentUpdateRequest,function(){M.currentUpdateRequest=void 0}).then(function(){M.pendingUpdates.length>0?$9(M):vYV(M)}).thenCatch(function(){M.pendingUpdates.unshift.apply(M.pendingUpdates,_.Yj(z))})}},vYV=function(M){M.currentRefreshRequest=_.GMv(M.JSC$12770_playlistNetworkManager,M.listId,M.currentIndex,M.videoIds[M.currentIndex]);
_.mi(M.currentRefreshRequest,function(){M.currentRefreshRequest=void 0}).then(function(z){M.JSC$12770_updateCallback(z.playlistId,z.playlistPanelRenderer,z.autoplayRenderer)})};
KN.prototype.size=function(){return this.videoIds.length};var wCS=function(M,z,J,R){R=R===void 0?[]:R;KN.call(this,M,z,J,R);this.JSC$12770_playlistNetworkManager=M;this.listId=z;this.JSC$12770_updateCallback=J;this.videoIds=R};
_.w(wCS,KN);_.un=function(M,z,J,R,D,N,Z){D=D===void 0?[]:D;Z=Z===void 0?ks:Z;KN.call(this,M,z,J,D);this.JSC$12770_playlistNetworkManager=M;this.listId=z;this.JSC$12770_updateCallback=J;this.onAuthChange=R;this.videoIds=D;this.storage=N;this.cookieReader=Z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.BS(_.no,this.checkLoggedInStatusChange.bind(this),1E3)};
_.w(_.un,KN);_.P=_.un.prototype;_.P.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.BS(_.no,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P.JSC$12770_setCurrentIndex=function(M){KN.prototype.JSC$12770_setCurrentIndex.call(this,M);this.store()};
_.P.delete=function(){_.no.cancelJob(this.queueSapisIdJob);KN.prototype.delete.call(this)};
_.P.setListId=function(M){KN.prototype.setListId.call(this,M);this.store()};
_.P.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var xLv=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],tt$=["playerResponse","videoDetails"],j5B=["response","currentVideoEndpoint","watchEndpoint","videoId"],pCt=["response","currentVideoEndpoint","watchEndpoint","playlistId"],FEu=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],YzB=["response","contents","twoColumnWatchNextResults","playlist","playlist"],mLp=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
gYu=["response","contents","twoColumnWatchNextResults"];var qJ={},fJp=(qJ.WEB_UNPLUGGED="^unplugged/",qJ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",qJ.WEB_UNPLUGGED_OPS="^unplugged/",qJ.WEB_UNPLUGGED_PUBLIC="^unplugged/",qJ.WEB_CREATOR="^creator/",qJ.WEB_KIDS="^kids/",qJ.WEB_EXPERIMENTS="^experiments/",qJ.WEB_MUSIC="^music/",qJ.WEB_REMIX="^music/",qJ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",qJ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",qJ);var mmp,ULp;mmp=function(M,z){this.networkManager=M;this.innertubeTransportService=z};
ULp=function(M,z,J){if(!_.G(z,_.fM))return _.gv(Error("Ef"));_.G(z,_.fM).videoIds=J;J={create_playlist_title:_.e9("QUEUE",void 0,"Queue")};return Vu8(_.fn(M.innertubeTransportService,z,J),Wgo)};
_.GMv=function(M,z,J,R){z={videoId:R,playlistId:z,playlistIndex:J};J=_.MG(gk2);return Vu8(_.W2(M.innertubeTransportService,z,J),EK3)};
mmp.prototype.updatePlaylist=function(M,z){return Vu8(_.fn(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:M,actions:z}}),aJ8)};var s5a=function(M){this.storage=M},nYk;
s5a.prototype.store=function(M,z){z=z===void 0?0:z;if(this.storage&&M.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",M),this.storage.set("TLPQindex",String(z)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(J){}};
s5a.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
s5a.prototype.getPlaylistId=function(){if(!this.storage)return null;var M=null;try{M=this.storage.get("TLPQplaylist")}catch(z){}return M};var CT8=["navigationEndpoint","watchEndpoint","videoId"],iE3=["nextButtonVideo","watchEndpoint","videoId"];_.HP=new _.Nh("NETWORK_TOKEN");_.M6=new _.Nh("PAGE_TOKEN");_.aV=new _.Nh("PLAYLIST_TOKEN");var hdV;hdV=new _.Nh("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.cP=new _.Nh("INNERTUBE_TRANSPORT_TOKEN");var yUt,V6,cUt,dLS,$Lk,uck;yUt=new Set(["ci","cr","carml"]);V6=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12817_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Eb=function(){V6.instance||(V6.instance=new V6);return V6.instance};
V6.prototype.onAny=function(M){return _.H9k(this,M,2)};
V6.prototype.parkOrScheduleJob=function(M,z,J,R,D){_.fN(this,J)?_.sj().addJob(M,z,R):(D&&(M=cUt(M),dLS(this,M,z,J,D)),D=this.JSC$12817_parkedJobs.get(J),D||(this.JSC$12817_parkedJobs.set(J,[]),D=this.JSC$12817_parkedJobs.get(J)),D.push({job:M,priority:z,delay:R}))};
V6.prototype.addListener=function(M,z,J){J&&(z=cUt(z),dLS(this,z,0,M,J));J=this.parkedProcessors.get(M);J||(this.parkedProcessors.set(M,[]),J=this.parkedProcessors.get(M));J.push(z)};
V6.prototype.processSignal=function(M){if(!_.fN(this,M)){this.inProgressSignals.add(M);var z=this.JSC$12817_parkedJobs.get(M);if(z){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,_.sj().addJob(J.job,J.priority,J.delay);this.JSC$12817_parkedJobs.delete(M)}if(z=this.parkedProcessors.get(M)){z=_.S(z);for(J=z.next();!J.done;J=z.next())J=J.value,J();this.parkedProcessors.delete(M)}this.signals.push(M);this.inProgressSignals.delete(M)}};
_.fN=function(M,z){return yUt.has(z)||_.cW("IS_HOMEPAGE_COLD")||_.cW("IS_RESULTS_PAGE_COLD")||_.cW("IS_WATCH_PAGE_COLD")?M.signals.indexOf(z)>=0:!0};
cUt=function(M){var z=!1;return function(){z||(z=!0,M())}};
dLS=function(M,z,J,R,D){if(KEQ.has(R))_.sj().addJob(z,J,D);else{var N=M.compoundSignals.get(R);N&&_.sj().addJob(function(){_.fN(M,R)||(N.isTimeoutConditionSatisfied?_.sj().addJob(z,J):N.timeoutConditionObservers.push(function(){_.sj().addJob(z,J)}))},J,D)}};
_.H9k=function(M,z,J){if(z.length>1){var R=[],D=Object.create(null);z=_.S(z);for(var N=z.next();!N.done;N=z.next())N=N.value,D[N]||(R.push(N),D[N]=!0);z=R}if(z.length===1)return z[0];N=z;R="";D=J===2?"|":"&";N.sort();N=_.S(N);for(var Z=N.next();!Z.done;Z=N.next())R+=Z.value+D;if(!M.compoundSignals.get(R)){D=0;N=[];Z=_.S(z);for(var B=Z.next();!B.done;B=Z.next())B=B.value,D++,_.fN(M,B)||N.push(B);(J=J===2)&&D>N.length||!J&&!N.length?M.signals.push(R):$Lk(M,R,J,z,N)}return R};
$Lk=function(M,z,J,R,D){var N=D.length,Z=function(){J||--N===0?M.processSignal(z):uck(M,z)};
D=_.S(D);for(var B=D.next();!B.done;B=D.next())M.addListener(B.value,Z);M.compoundSignals.set(z,{signals:R,isOnAny:J,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});uck(M,z)};
uck=function(M,z){if(!_.fN(M,z)){var J=M.compoundSignals.get(z);if(J&&!J.isTimeoutConditionSatisfied){for(var R=!1,D=0,N=0,Z=_.S(J.signals),B=Z.next();!B.done;B=Z.next()){var O=B.value;B=!_.fN(M,O);KEQ.has(O)?R=!0:(O=M.compoundSignals.get(O))?B&&!O.isTimeoutConditionSatisfied&&(N++,J.isInitialized||O.timeoutConditionObservers.push(function(){uck(M,z)})):B&&D++}J.isInitialized=!0;
J.isOnAny?R&&(J.isTimeoutConditionSatisfied=!0):D===0&&N===0&&(J.isTimeoutConditionSatisfied=!0);if(J.isTimeoutConditionSatisfied)for(J=_.S(J.timeoutConditionObservers),R=J.next();!R.done;R=J.next())R=R.value,R()}}};
V6.prototype.processSignal=V6.prototype.processSignal;V6.prototype.parkOrScheduleJob=V6.prototype.parkOrScheduleJob;V6.prototype.onAny=V6.prototype.onAny;_.b9("ytsignals.getInstance",_.Eb);V6.prototype.onAny=V6.prototype.onAny;V6.prototype.parkOrScheduleJob=V6.prototype.parkOrScheduleJob;V6.prototype.processSignal=V6.prototype.processSignal;var KEQ=new Set(["eop","eocs","dl","pcl"]);_.q5=new _.Nh("MINIPLAYER_SERVICE");var LN,qzQ,WEB;LN=function(M,z,J){var R=_.VA.getInstance();if(!nYk){var D=new l8p;var N=void 0,Z=_.HW("ID_TOKEN");Z&&D.isAvailable()&&(N=new Fh(D,"yt-queue"+Z));nYk=new s5a(N)}D=nYk;N=_.Eb();this.JSC$12824_actionRouter=R;this.pageManager=M;this.playlistManager=z;this.JSC$12824_playlistNetworkManager=J;this.storage=D;this.signals=N;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Am=function(){if(!qzQ){var M=_.JF(),z=M.resolve(_.zw(_.M6)),J=M.resolve(_.zw(_.HP)),R=M.resolve(_.zw(_.aV));M=M.resolve(_.cP);qzQ=new LN(z,R,new mmp(J,M))}return qzQ};
WEB=function(M,z,J){if(J){var R;if(((R=M.responsePlaylistData)==null?void 0:R.playlistId)!==J)return}M.responsePlaylistData&&(J=Rjp(z,M.responsePlaylistData),M.responsePlaylistData=(0,_.gu.unsafeClone)(M.responsePlaylistData),Nb8(M.responsePlaylistData,J));J=M.temporaryItems.findIndex(function(D){return D.videoId===z});
J>-1&&M.temporaryItems.splice(J,1);_.CN(M,_.bn(M,M.response?M.response.autoplayRenderer:void 0))};
_.a7v=function(M,z){if(M.responsePlaylistData){var J=D4e(z,M.responsePlaylistData);Nb8(M.responsePlaylistData,J);if(M.queueProxy){var R=M.queueProxy;J<0||(R.videoIds.splice(J,1),J<R.currentIndex&&R.JSC$12770_setCurrentIndex(R.currentIndex-1),R.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:z}),$9(R))}}_.CN(M,_.bn(M,M.response?M.response.autoplayRenderer:void 0))};
LN.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.CN(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
LN.prototype.setPlaylistData=function(M,z,J){this.temporaryItems=[];this.listId=M;this.responsePlaylistData=z;_.CN(this,_.bn(this,J))};
var VtB=function(M){return(M==null?0:M.playlistId)?M.playlistId:"PPSV"},EYV=function(M){return M&&M.playlistId?M.playlistId==="PPSV"?!0:Sbc(_.rA().getState().entities,M.playlistId):!1};
LN.prototype.isPlayingOfflineVideo=function(){return this.response?EYV(this.response):!1};
LN.prototype.closeMiniplayer=function(M){var z=this.queueProxy&&this.queueProxy.size()<=1,J=_.JF().resolve(_.q5);if(!this.queueProxy||z)this.queueProxy&&this.clearQueue(),J.close(!0);else{J.pipController.getWindow()&&window.focus();z=this.responsePlaylistData;var R=this.temporaryItems.length+(z&&z.contents?z.contents.length:0);z=_.e9("QUEUE_CLEARED_UNPLURALIZED")||_.QC("QUEUE_CLEARED",R);z=_.J9(z);J=_.e9("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");R=_.e9("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.QC("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",R);var D=_.e9("MINIPLAYER_CLOSE",void 0,"Close"),N=_.e9("CANCEL",void 0,"Cancel");_.uM(this.JSC$12824_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.id(J),dialogMessages:[_.id(R)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.id(D),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
z]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.id(N)}}}}}}],M)}};
_.bn=function(M,z){var J={},R=M.response;J.autoplayRenderer=z;if(!M.responsePlaylistData&&!M.temporaryItems.length)return!R||!R.hasRelatedVideoData&&_.U("kevlar_prefetch_data_augments_network_data")||(J.playerData={rvs:R.relatedVideoArgs,endScreenRenderer:R.endScreenRenderer}),J;J.playerData={};if(M.index===void 0)return _.nc(Error("Gf")),J;J.panel=M.responsePlaylistData?(0,_.gu.unsafeClone)(M.responsePlaylistData):{titleText:_.id(_.e9("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
z=J.panel;if(z.contents)for(var D=_.S(M.temporaryItems),N=D.next();!N.done;N=D.next())z.contents.push({playlistPanelVideoRenderer:N.value});M.queueProxy&&R&&R.playingVideo&&R.playingVideoId&&!Jpp(R.playingVideoId,J.panel)&&(z=R.playingVideo,D=J.panel,N=M.index,D.contents&&D.contents.splice(N===void 0?0:N,0,{playlistPanelVideoRenderer:z}));R&&R.playingVideoId&&(z=M.index,D=J.panel,z=!D.contents||z>=D.contents.length?void 0:D.contents[z].playlistPanelVideoRenderer,z&&z.videoId===R.playingVideoId||(z=
Rjp(R.playingVideoId,J.panel),M.index=z!==-1?z:M.index?M.index-1:0));z=zjc(M.index+1,J.panel);D=void 0;M.index>0&&(D=zjc(M.index-1,J.panel));if(D||z)J.autoplayRenderer=bEc(z,D,J.autoplayRenderer);!z&&(R==null?0:R.relatedVideoArgs)&&(J.playerData.rvs=R.relatedVideoArgs);R=R?R.playlistIndexOffset:0;M.queueProxy?Zk8(J.panel,M.index,R,MC8,!0,!0,!0):Zk8(J.panel,M.index,R);J.playerData.playlistPanelRenderer=J.panel;return J};
LN.prototype.openToast=function(M){_.JF().resolve(_.q5).openToast(M,_.e9("ADDED_TO_QUEUE",void 0,"Added to queue"))};
LN.prototype.isMiniplayerActive=function(){return _.JF().resolve(_.q5).isMiniplayerActive()};
_.CN=function(M,z){M.playlistManager.setAutoplayRenderer(z.autoplayRenderer||null);M.playlistManager.setPlaylistData(z.panel||null);z.playerData&&M.playlistManager.setPlayerPlaybackControlData(z.playerData)};var Bbn="#";var f7J={},LEg={},AUp={},i9J={},Cjp={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:(f7J.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",f7J),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:(LEg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",LEg),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:(AUp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",AUp),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:(i9J.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",i9J),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 E1H=[{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:Cjp},{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:Cjp}}];var Hk3;_.Th=[[["cmtpbmQjNXh1YWY3N2picWo=","dnZhbHVlI3R0N3gxbzVlcms="],"UExBQ0VNRU5UX0tJTkRfU1RBUlQjNmdtZ2NmcGtsdTIxQURf"]];
Hk3=[[["ODZlcWt3aHdjcHJpbWFyeSNsdXQ=",null,null],[null,["ZGVyZXIjeDducmJmY2djMHY1eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","bGUtc2NvcGUjYzNpd2l2ZzV4amJvc3R5"],null],["dGhlYWQtYWQjOWUybXF1MjA4bXMxbWFz",["dGQtcmljaC1ncmlkLXJlbmRlcmVyIzhubzFpdDV0djBxY3k="],null],[null,["dGQtcmljaC1ncmlkLXJlbmRlcmVyI3hocHJ0dmZqZWN3M3k=","bGUtc2NvcGUjanMwcTE1aGZpNTd2c3R5"],null],[null,["bmVyLXByb21vLXJlbmRlcmVyI2QwdGd0a3BuejF0ZHl0ZC1iYW4=","bGUtc2NvcGUjeDNvaXg4NXFlYWUwc3R5"],null],[null,["eHBmeXRkLWFkLXNsb3QtcmVuZGVyZXIjcGdjMTRtdG5t"],
null]],[["cGxheWVyLWFkcyNrbHU5czI4cTllOTc=",null,null]]];_.OA=["IzFjZjN2MWR0c2lqYWdsb2JhbENhbGxiYWNrcw==","OW9uQWJub3JtYWxpdHlEZXRlY3RlZCNqbmhmZHRjendheA==","YnhmbThsb25BZFNraXAjbW52eXlk","NzRmdXlyYXdfcGxheWVyX3Jlc3BvbnNlIzQ4bDdhbXo=","eGU2dzlzYWpuYWRTbG90cyN0NTc="];_.rN="IzFjZjN2MWR0c2lqYWdsb2JhbENhbGxiYWNrcw== OW9uQWJub3JtYWxpdHlEZXRlY3RlZCNqbmhmZHRjendheA== YnhmbThsb25BZFNraXAjbW52eXlk NzRmdXlyYXdfcGxheWVyX3Jlc3BvbnNlIzQ4bDdhbXo= a2lwc19rcyNjYTVsZHBzYWhxeGV3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfcw== bjg0emNmYWJfc2FfZWYjaGdicXkw eGU2dzlzYWpuYWRTbG90cyN0NTc=".split(" ");var Mn;Mn=function(M,z,J){this.zpQ=M;this.isAsync=z;this.avm=J};
_.Dm3=[new Mn("b.f_",!1,0),new Mn("j.s_",!1,2),new Mn("r.s_",!1,4),new Mn("e.h_",!1,6),new Mn("i.s_",!0,8),new Mn("s.t_",!1,10),new Mn("p.h_",!1,12),new Mn("s.i_",!1,14),new Mn("f.i_",!1,16),new Mn("a.b_",!1,18),new Mn("a.o_",!1),new Mn("g.o_",!1,22),new Mn("p.i_",!1,24),new Mn("p.m_",!1),new Mn("n.k_",!0,20),new Mn("i.f_",!1),new Mn("a.s_",!0),new Mn("m.c_",!1),new Mn("n.h_",!1,26),new Mn("o.p_",!1),new Mn("m.p_",!0,28),new Mn("o.a_",!1),new Mn("d.p_",!1),new Mn("e.i_",!1)].reduce(function(M,z){M[z.zpQ]=
z;return M},{});var b9p=function(){};
b9p.prototype.flush=function(M,z){M=M===void 0?[]:M;z=z===void 0?!1:z;if(_.U("enable_client_streamz_web")){M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=KAB(J.value),this.rootSpec&&_.or(J,2,this.rootSpec),J={serializedIncrementBatch:_.YG(J.JSC$9574_serializeBinary())},_.gP("streamzIncremented",J,{sendIsolatedPayload:z})}};
var o1H=function(){};
_.w(o1H,b9p);var rUJ=function(M){var z=new srp;var J=new YwB;J=_.G$(J,1,"botguard");M=_.G$(J,2,M);this.rootSpec=_.Xq(z,1,nq2,M)};
_.w(rUJ,b9p);var ZS,MKV=new Map;var $4b,l2H,jLH,U4G,wg0,hjp,qPb,sL8;$4b=2;l2H=2;jLH=2;U4G=2;wg0=2;hjp=2;qPb=2;sL8=new nF$;var JBv,RWg,DVB;JBv=function(){this.ongoingFlowNonces=new Map};
_.ee=function(){RWg||(RWg=new JBv);return RWg};
_.oz=function(M,z,J){return{eventType:{flowEventNamespace:M,flowEventType:z},metadata:J,statusCode:void 0,csn:void 0,can:void 0}};
_.PA0=function(M,z){var J=_.ee(),R=DVB(J,z,!0);_.l7(J,M,z,R)};
_.l7=function(M,z,J,R){M={flowNonce:R||DVB(M,J),flowType:J,flowEventType:z.eventType};z.metadata&&(M.flowMetadata=z.metadata);z.statusCode!==void 0&&(M.flowEventStatus=z.statusCode);z.csn&&(M.csn=z.csn);z.can&&(M.can=z.can);_.gP("flowEvent",M,void 0)};
DVB=function(M,z,J){J=J===void 0?!1:J;var R=M.ongoingFlowNonces.get(z);if(!R||J)R=sK(16),M.ongoingFlowNonces.set(z,R);return R};_.N2$=new s2$;var B0H={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"};var zN=function(M,z,J,R,D,N,Z){J=J===void 0?!1:J;R=R===void 0?!1:R;N=N===void 0?_.Am():N;this.hasRun=!1;this.ljH=M;this.c3j=z;this.lni=J;this.fromHistory=R;this.previousVideoId=D;this.my1=N;this.tempData=Z;this.ggy=new _.hB$};
_.w(zN,P2);zN.prototype.validate=function(M){return!(!M.data.playerResponse||M.data.page!=="watch"&&M.data.page!=="learning_journey_watch"&&M.data.page!=="shorts"||this.hasRun)};
zN.prototype.handle=function(M){var z=this,J=_.G(M.endpoint,_.Au),R=_.G(M.endpoint,_.je);if(_.U("kevlar_continue_playback_without_player_response")&&(J==null?0:J.videoId)&&this.previousVideoId&&(J==null?void 0:J.videoId)===this.previousVideoId&&(J==null?0:J.continuePlayback)&&!this.fromHistory)this.ljH.resolve();else{var D={};J?D.watch_endpoint=J:R&&(D.watch_endpoint=R,R.endTimeSeconds&&(D.end=R.endTimeSeconds));M.data.page==="watch"?(M.data.filler||this.lni||(_.yC("cfg"),_.VA.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(D,PLg(this,M.endpoint)),_.U("enable_masthead_quartile_ping_fix")&&Object.assign(D,S12(this)),Object.assign(D,void 0),M.data.forceExternalPlaylist&&(D.external_list=!0)):M.data.page==="shorts"?_.VA.getInstance().triggerAction("yt-start-loading-shorts"):M.data.page==="learning_journey_watch"&&_.VA.getInstance().triggerAction("yt-start-loading-learning-journey");if(J=this.c3j()){try{J.loadVideoWithPlayerResponse(M.data.playerResponse,D),J.getPlayerPromise().then(this.ljH.resolve)}catch(N){_.nc(N),
this.ljH.resolve()}this.hasRun=!0;J.getPlayerPromise().then(function(N){N.addEventListener("onAbnormalityDetected",function(){var Z=M.data.playerResponse,B=N.getVideoData().cpn;qPb=0;_.zWV=B;if(B=Rup(Z))z.ggy.increment("IN_PLAYER"),_.QO(5),_.U("ab_st_vid_ks")?N.pauseVideo(!0):N.stopVideo(),Z.playabilityStatus=Object.assign({},Z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:B}}),Z.videoDetails=void 0,_.VA.getInstance().triggerOptionalAction("yt-updated-playability-status",
Z.playabilityStatus)})})}else _.yA(Error("Jf"))}};
var PLg=function(M,z){var J=_.G(z,_.Au);if(z&&J&&J.playlistId&&J.videoId&&(M=M.my1,M.queueProxy?(M=M.queueProxy,J=M.listId===J.playlistId?M.attributionData.get(J.videoId):void 0):J=void 0,J))return{queue_info:J}},S12=function(M){var z;
if((z=M.tempData)==null?0:z.adpings)return{adpings:M.tempData.adpings}};var JE=function(M,z,J){this.hasRun=!1;this.trT=M;this.xwr=z;this.bK5=J};
_.w(JE,P2);JE.prototype.validate=function(M){return!!_.gu.getValueByKeys.apply(null,[M.data].concat(_.Yj(gYu)))};
JE.prototype.handle=function(M){var z=this;this.trT.promise.then(function(){var J=M.data;var R=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(xLv))),D=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(YzB))),N=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(j5B)));var Z=(Z=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(tt$))))?{videoId:Z.videoId,thumbnail:Z.thumbnail,title:Z.title?_.id(Z.title):void 0,shortBylineText:Z.author?_.id(Z.author):void 0}:void 0;var B=void 0;_.U("web_get_playlist_id_from_current_endpoint_ks")||
(B=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(pCt))));var O=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(mLp))),X=_.gu.getValueByKeys.apply(null,[J].concat(_.Yj(FEu))),l=!!O||!!X&&!!X.results&&X.results.length>0,e=0;D&&D.currentIndex&&D.localCurrentIndex&&(e=D.currentIndex-D.localCurrentIndex);D&&D.playlistId&&(B=D.playlistId);J={rawResponse:J,autoplayRenderer:R,hasRelatedVideoData:l,playingVideo:Z,playingVideoId:N,playlistPanelRenderer:D,playlistId:B,playlistIndex:D&&D.currentIndex,relatedVideoArgs:O,
endScreenRenderer:X,playlistIndexOffset:e};a:{R=z.bK5;D=z.xwr;R.response=J;if(EYV(J))R.downloadPlaylistProxy&&R.downloadPlaylistProxy.getPlaylistId()===VtB(J)||(R.downloadPlaylistProxy=new XC$(VtB(J),R.setPlaylistData.bind(R),R.isPlayingOfflineVideo.bind(R))),R.responsePlaylistData=R.downloadPlaylistProxy.getPlaylistData(),R.listId=VtB(J),R.index=0;else if(J.playlistPanelRenderer&&J.playlistId&&J.autoplayRenderer)J.playlistId.startsWith("TLPQ")?R.queueProxy?R.listId===J.playlistId?(R.index=J.playlistIndex,
R.responsePlaylistData=J.playlistPanelRenderer,R.queueProxy.JSC$12770_setCurrentIndex(R.index)):J.playingVideoId&&R.index!==void 0&&D.clientParams.autoSaveToQueue&&(R.index+=1,R.queueProxy.JSC$12770_setCurrentIndex(R.index),R.queueProxy.addVideos([J.playingVideoId],{},R.index)):(R.queueProxy=new _.un(R.JSC$12824_playlistNetworkManager,J.playlistId,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.Pl8(J.playlistPanelRenderer),R.storage),R.responsePlaylistData=J.playlistPanelRenderer,R.listId=J.playlistId,
R.index=J.playlistIndex):(R.index=J.playlistIndex,R.listId!==J.playlistId&&R.clearQueue(),R.responsePlaylistData=J.playlistPanelRenderer,R.listId=J.playlistId,R.playlistProxy=new wCS(R.JSC$12824_playlistNetworkManager,J.playlistId,R.setPlaylistData.bind(R),_.Pl8(J.playlistPanelRenderer)));else if(!R.queueProxy)R.responsePlaylistData=void 0;else if(J.playingVideoId&&D.clientParams.autoSaveToQueue){if(R.index===void 0){_.nc(Error("Ff"));R.clearQueue();break a}R.queueProxy.videoIds.includes(J.playingVideoId)||
(R.index+=1,R.queueProxy.JSC$12770_setCurrentIndex(R.index),R.queueProxy.addVideos([J.playingVideoId],{},R.index))}_.CN(R,_.bn(R,R.response.autoplayRenderer))}})};var ZzB=function(M,z){z=z===void 0?_.Am():z;GC.call(this);this.yo.push(new JE(this.zq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},z));this.yo.push(new zN(this.zq,M,!1,!1));_.U("web_response_commands_chunk_processor")&&this.yo.push(new wN)};
_.w(ZzB,GC);ZzB.prototype.processChunk=function(M){M&&M.data.player===void 0&&this.zq.resolve();GC.prototype.processChunk.call(this,M)};var RQ=function(M,z){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;this.sT1=z};
_.w(RQ,P2);RQ.prototype.validate=function(M){return!(this.hasRun||!M.endpoint)};
RQ.prototype.handle=function(M){var z=_.Gm(),J,R,D=(R=_.G((J=M.endpoint)==null?void 0:J.commandMetadata,_.X9))==null?void 0:R.rootVe;this.sT1&&D?_.Xx(z,D,this.sT1,this.createScreenConfig):CAt(z,M.endpoint,this.createScreenConfig);this.hasRun=!0};var D1=function(M,z){this.hasRun=!1;this.eA5=M;this.previousVideoId=z};
_.w(D1,P2);D1.prototype.validate=function(M){return _.U("kevlar_continue_playback_without_player_response")&&(M=_.G(M.endpoint,_.Au),(M==null?0:M.videoId)&&this.previousVideoId&&(M==null?void 0:M.videoId)===this.previousVideoId&&(M==null?0:M.continuePlayback))?!1:this.eA5.fc0===0};
D1.prototype.handle=function(M){_.VA.getInstance().triggerAction("yt-stop-old-player",M.data,!0)};var kuJ=function(M){M=M===void 0?{layer:0}:M;GC.call(this);this.yo.push(new D1(this));this.yo.push(new RQ(M));this.yo.push(new v2(M))};
_.w(kuJ,GC);var B2V=function(){this.hasRun=this.hasRun=!1};
_.w(B2V,P2);B2V.prototype.validate=function(M){return!this.hasRun&&!(!M.data.csn||!M.data.rootVe)};
B2V.prototype.handle=function(M){this.hasRun=!0;_.cs(M.data.csn,M.data.rootVe,3)};var OzS=function(){P2.apply(this,arguments)};
_.w(OzS,P2);OzS.prototype.validate=function(M){return!!M.data.preconnect};
OzS.prototype.handle=function(M){_.hd("bc");M=_.S(M.data.preconnect);for(var z=M.next();!z.done;z=M.next())z=z.value,(new Image).src=z};var T2g=function(M,z,J){J=J===void 0?{layer:0}:J;GC.call(this);this.yo.push(new zN(this.zq,M));this.yo.push(new RQ(J));this.yo.push(new v2(J))};
_.w(T2g,GC);var ImB=function(M,z,J,R,D){J=J===void 0?{layer:0}:J;R=R===void 0?_.Am():R;GC.call(this);var N=!!z&&!!z.clientParams&&!!z.clientParams.miniplayer;N&&this.yo.push(new B2V);this.yo.push(new JE(this.zq,z,R));this.yo.push(new OzS);var Z,B;this.yo.push(new zN(this.zq,M,N,!((Z=z.clientParams)==null||!Z.fromHistory),(B=z.clientParams)==null?void 0:B.previousVideoId,R,z.tempData));var O;this.yo.push(new D1(this,(O=z.clientParams)==null?void 0:O.previousVideoId));var X;(X=z.clientParams)!=null&&X.fromHistory||
(J.layer||(J=Object.assign({},J,{layer:N?3:0})),this.yo.push(new RQ(J,D)),this.yo.push(new v2(J)));_.U("web_response_commands_chunk_processor")&&this.yo.push(new wN)};
_.w(ImB,GC);var Nn,lma;Nn={};
_.obJ=(Nn["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Nn["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Nn["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Nn["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Nn["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Nn["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Nn["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Nn);_.Pa=new _.dc("yt-edu");_.Xot=function(){this.JSC$12925_eduDisplayedThisLoad_={}};
lma=function(M){var z=_.Xot.getInstance();var J=_.NC("kevlar_tooltip_impression_cap");z=J&&parseInt(_.Pa.get(M+"-impression")||0,10)>=J||_.Pa.get(M+"-dismissed")?!1:(J=_.obJ[M])&&!z.JSC$12925_eduDisplayedThisLoad_[J.setKey||M]&&(J.titleText&&_.e9(J.titleText)||J.bodyText&&_.e9(J.bodyText))?!0:!1;if(!z)return null;z=_.obJ[M];if(!z)return null;J=z.bodyText?_.e9(z.bodyText):void 0;var R=z.titleText?_.e9(z.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:z.position,popup:{bubbleHintRenderer:{text:R?
_.id(R):void 0,detailsText:J?_.id(J):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.id(_.e9("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:M}}]}}}}}}}},{eduImpressionAction:{key:M}}]};
_.P9(_.Xot);var SSn=!1;for(var eW$="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),QP$=[],SE=6;SE>=1;SE--)QP$.push({columnCount:SE,query:SE==1?0:SE*2*107-4+32,className:"grid-"+SE+"-columns",width:SE*2*107+"px"});_.vbS=function(M){this.actionRouter_=M=M===void 0?_.VA.getInstance():M;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.UVk(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.UVk=function(M){var z=M.miniGuideVisible_?72:0,J=M.documentWidth_-(M.guidePersistentAndVisible_?240:z);return QP$.find(function(R){return J>R.query})};
_.P9(_.vbS);var Guu=function(){var M=this;this.JSC$12937_keyboardInUse=!1;document.addEventListener("keydown",function(){M.onKeydown()});
document.addEventListener("mousedown",function(){M.JSC$12937_keyboardInUse=!1})},wog;
Guu.prototype.isKeyBoardInUse=function(){return this.JSC$12937_keyboardInUse};
Guu.prototype.onKeydown=function(){this.JSC$12937_keyboardInUse=!0};var xVS,Ba;_.Z1=new _.dc("yt-mentions");_.k5=function(){};
xVS=function(M,z){return Ba(z,"drag-to-reorder-edu-displayed")};
Ba=function(M,z,J,R,D,N){J=J===void 0?"OPEN_POPUP_POSITION_TOP":J;if(z){if(_.Z1.get(z))return;_.Z1.set(z,!0,R)}if(D&&N!==void 0){z=Number(_.Z1.get(D)||0);if(z>=N)return;_.Z1.set(D,z+1)}return[{openPopupAction:{popupType:"HINT",position:J,popup:{bubbleHintRenderer:{detailsText:M,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.P9(_.k5);var tK2,jPk,poB;tK2=function(M,z,J,R){this.JSC$12947_taskManager_=M;this.onFulfilled_=typeof z==="function"?z:null;this.onRejected_=typeof J==="function"?J:null;this.JSC$12947_context_=R};
jPk=function(M,z){M.onFulfilled_&&_.mn(M.JSC$12947_taskManager_,function(){M.onFulfilled_.call(M.JSC$12947_context_,z)})};
poB=function(M,z){M.onRejected_&&_.mn(M.JSC$12947_taskManager_,function(){M.onRejected_.call(M.JSC$12947_context_,z)})};
_.OE=function(M){this.JSC$12950_taskManager_=M;this.callbacks_=[]};
_.OE.prototype.then=function(M,z,J){this.callbacks_.push(new tK2(this.JSC$12950_taskManager_,M,z,J));return this};
_.OE.prototype.onSuccess=function(M){this.callbacks_.forEach(function(z){jPk(z,M)})};
_.OE.prototype.onFailure=function(M){this.callbacks_.forEach(function(z){poB(z,M)})};
_.OE.prototype.cancel=function(){this.callbacks_.length=0};
qI$(_.OE);_.T0p=null;_.pn=new _.Nh("ACTIVITY_TOKEN");var TN=function(M,z){this.serviceId=new uTS(M,z)};
TN.prototype.toString=function(){return this.serviceId.toString()};var Fm$=function(){this.internalMap={}};
_.P=Fm$.prototype;_.P.contains=function(M){return Object.prototype.hasOwnProperty.call(this.internalMap,M)};
_.P.get=function(M){if(this.contains(M))return this.internalMap[M]};
_.P.set=function(M,z){this.internalMap[M]=z};
_.P.getKeys=function(){return Object.keys(this.internalMap)};
_.P.remove=function(M){delete this.internalMap[M]};var IQ=function(){this.mappings=new Fm$;this.errorCallbacks=new Set};
IQ.prototype.getModuleId=function(M){return M.serviceId.getModuleId()};
IQ.prototype.get=function(M){var z=this.mappings.get(M.toString());return Y1a(this,z,M)};
IQ.prototype.getMultipleAsync=function(){var M=_.H4.apply(0,arguments),z=this,J=M.map(function(O){return z.getModuleId(O)}),R=M.map(function(O){return z.mappings.get(O.toString())}).filter(function(O){return O});
if(R.length===M.length)return _.Of(R.map(function(O,X){return Y1a(z,O,M[X])}));
var D=YF().loadMultiple(J);R=_.Ys(J.map(function(O){return D[O]}));
var N=document.hidden,Z=-1,B=_.NC("get_async_timeout_ms",-1);B>-1&&(Z=setTimeout(function(){_.yA(new _.xN("Module timeout.",J,N,document.hidden))},B));
return _.mi(R.then(function(){return M.map(function(O){return Y1a(z,z.mappings.get(O.toString()),O)})}).thenCatch(function(O){for(var X=_.S(z.errorCallbacks),l=X.next();!l.done;l=X.next())l=l.value,l(O);
throw O;}),function(){clearTimeout(Z)})};
IQ.prototype.registerService=function(M,z){this.mappings.set(M.toString(),{type:"mapping",value:z});return M};
var Y1a=function(M,z,J){switch(z.type){case "mapping":return z.value;case "factory":return z=z.value(),M.mappings.set(J.toString(),{type:"mapping",value:z}),z;default:return _.uJ(z)}};
IQ.prototype.onLoadError=function(M){var z=this;this.errorCallbacks.add(M);return function(){z.errorCallbacks.delete(M)}};
_.oQ=new IQ;var euo=/^[a-zA-Z0-9_\-]{11}$/;var QjY=_.tw(function(){var M,z;return(z=(M=window).matchMedia)==null?void 0:z.call(M,"(prefers-reduced-motion: reduce)").matches});var mV$=_.tw(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var M=_.qH("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");M||(M=_.lm("VIDEO"),_.b9("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
M));return!!(M&&M.canPlayType&&M.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var t0w=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Xf;Xf=function(){this.tokenJars={};if(this.cookiesEnabled=_.vJ()){var M=_.Qy.get("CONSISTENCY",void 0);M&&gba(this,{encryptedTokenJarContents:M})}};
_.pHR=function(){Xf.instance||(Xf.instance=new Xf);return Xf.instance};
Xf.prototype.handleResponse=function(M,z){if(!z)throw Error("Pf");var J,R;z=((J=z.innerTubeRequest.context)==null?void 0:(R=J.request)==null?void 0:R.consistencyTokenJars)||[];var D;(M=(D=M.responseContext)==null?void 0:D.consistencyTokenJar)&&this.replace(z,M)};
Xf.prototype.replace=function(M,z){M=_.S(M);for(var J=M.next();!J.done;J=M.next())delete this.tokenJars[J.value.encryptedTokenJarContents];gba(this,z)};
var gba=function(M,z){if(z.encryptedTokenJarContents&&(M.tokenJars[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var J=Number(z.expirationSeconds);setTimeout(function(){delete M.tokenJars[z.encryptedTokenJarContents]},J*1E3);
M.cookiesEnabled&&_.U7("CONSISTENCY",z.encryptedTokenJarContents,J,void 0,!0)}};var sPp,l_;sPp=window.location.hostname.split(".").slice(-2).join(".");_.h9=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var M=_.HW("LOCATION_PLAYABILITY_TOKEN");_.HW("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=nbJ(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0)};
_.h9.getInstance=function(){l_=_.qH("yt.clientLocationService.instance");l_||(l_=new _.h9,_.b9("yt.clientLocationService.instance",l_));return l_};
_.h9.prototype.setLocationOnInnerTubeContext=function(M){M.client||(M.client={});if(this.mostRecentPosition)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.h9.prototype.handleResponse=function(M){var z;M=(z=M.responseContext)==null?void 0:z.locationPlayabilityToken;M!==void 0&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0,_.HW("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=nbJ(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):_.U7("YT_CL",JSON.stringify({loctok:M}),15552E3,sPp,!0))};
var nbJ=function(M){return M.localStorage===void 0?new _.dc("yt-client-location"):M.localStorage};
_.h9.prototype.clearLocationPlayabilityToken=function(M){M==="TVHTML5"?(this.localStorage=nbJ(this))&&this.localStorage.remove("yt-location-playability-token"):_.ZD0("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.h9.prototype.getCurrentPositionFromGeolocation=function(){var M=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var z=!1,J=1E4;_.HW("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,J=15E3);return new Promise(function(R,D){navigator.geolocation.getCurrentPosition(function(N){M.mostRecentPosition=N;R(N)},function(N){D(N)},{enableHighAccuracy:z,
maximumAge:0,timeout:J})})};
_.h9.prototype.createUnpluggedLocationInfo=function(M){var z={};M=M.coords;if(M==null?0:M.latitude)z.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)z.longitudeE7=Math.floor(M.longitude*1E7);if(M==null?0:M.accuracy)z.locationRadiusMeters=Math.round(M.accuracy);return z};
_.h9.prototype.createLocationInfo=function(M){var z={};M=M.coords;if(M==null?0:M.latitude)z.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)z.longitudeE7=Math.floor(M.longitude*1E7);return z};var hWt=function(){};
_.P=hWt.prototype;
_.P.JSC$13017_getRequest=function(M,z,J){z=z===void 0?{}:z;J=J===void 0?ALk:J;var R=z;if(this.isNavigationCommand()){var D,N=(D=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:D.url;R=_.FSo(M.clickTrackingParams,!0,!1,N,this.JSC$13017_getClientScreen(R))}else R=_.FSo(M.clickTrackingParams,!1,this.includeCsn);R={context:R};if(D=this.getExtension(M))return this.JSC$13017_buildRequest(R,D,z),D=this.getApiUrl(M),N=Object.assign({},{command:M},this.getRequestConfig(M,z)),R={input:D,requestShell:fu(D),
innerTubeRequest:R,config:N},R.config.authStrategy?R.config.authStrategy.identity=J:R.config.authStrategy={identity:J},(M=this.JSC$13017_getRequestKey(M,z))&&!R.config.requestKey&&(R.config.requestKey=M),R;M=new _.xN("Error: Failed to create Request from Command.",M);_.nc(M)};
_.P.getApiUrl=function(M){var z=_.MG(this.getApiPaths(M)),J;(M=(J=_.G(M.commandMetadata,_.X9))==null?void 0:J.apiUrl)&&(z=M);return r$G(bCb(z))};
_.P.isNavigationCommand=function(){return!1};
_.P.JSC$13017_getClientScreen=function(){};
_.P.JSC$13017_getRequestKey=function(){};
_.P.getRequestConfig=function(){};
_.rX.Object.defineProperties(hWt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var eE=function(){};
_.w(eE,hWt);eE.prototype.JSC$13024_getStoreKey=function(){};
eE.prototype.JSC$13017_getRequestKey=function(M,z){z=z===void 0?{}:z;return this.JSC$13024_getStoreKey(M,z)};var HzS;_.Qo=function(M,z,J){var R=J&&J>0?J:0;J=R?Date.now()+R*1E3:0;if((R=R?(0,_.yBV)():HzS())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{R.set(M,z,J)}catch(D){R.remove(M)}}};
_.UE=function(M){var z=HzS(),J=(0,_.yBV)();if(!z&&!J||!window.JSON)return null;try{var R=z.get(M)}catch(D){}if(typeof R!=="string")try{R=J.get(M)}catch(D){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(D){}return R};
_.va=function(M){try{var z=HzS(),J=(0,_.yBV)();z&&z.remove(M);J&&J.remove(M)}catch(R){}};
_.yBV=_.tw(function(){try{var M=$08()}catch(z){return null}return M?new _.ZQ(M):null});
HzS=_.tw(function(){var M=new l8p;return M.isAvailable()?new _.ZQ(M):null});var Pf=new _.Nh("ENTITY_STATE_TOKEN"),GN=new _.Nh("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var cBB=XMLHttpRequest.prototype.fetch,dV$=cBB&&cBB.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!i9?!0:!1;var w_=function(M){this.JSC$13029_storeWithEntities=M};
_.w(w_,eE);_.P=w_.prototype;_.P.getApiPaths=function(){return M0V};
_.P.getExtension=function(M){return _.G(M,_.Au)||_.G(M,_.je)||_.G(M,MOB)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$13024_getStoreKey=function(M){if((_.U("kevlar_cache_on_ttl_player")||_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("mweb_use_new_history_manager")||_.U("web_shorts_prefetch_service_enabled"))&&(M=this.getExtension(M))&&M.videoId){var z={videoId:M.videoId};M.playlistId&&(z.playlistId=M.playlistId);M.playerParams&&(z.params=M.playerParams);return _.Lu("player",z)}};
_.P.JSC$13017_getClientScreen=function(M){var z;return((z=M.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$13017_buildRequest=function(M,z,J){if(_.U("enable_interstitial_entity_check")){var R=this.JSC$13029_storeWithEntities;if(z.videoId)for(var D=_.S(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),N=D.next();!N.done;N=D.next()){N=N.value;var Z;var B=void 0,O=void 0,X=z.videoId,l=N;(Z=R)?(X=_.Tr(X+l,"interstitialInteractionStateEntity"),Z=(B=(O=_.Is(Z.getState().entities,"interstitialInteractionStateEntity",X))==null?void 0:O.primaryButtonClicked)!=null?B:!1):Z=!1;if(Z)switch(N){case "CONTENT_CHECK_REQUIRED":z.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":z.racyCheckOk=!0}}}z.videoId&&(M.videoId=z.videoId);z.playlistId&&(M.playlistId=z.playlistId);z.index!==void 0&&(M.playlistIndex=z.index+1);z.playerParams&&(M.params=z.playerParams);"startTimeSeconds"in z&&z.startTimeSeconds&&(_.U("enable_player_request_builder_start_time_floor")?M.startTimeSecs=Math.floor(z.startTimeSeconds):M.startTimeSecs=z.startTimeSeconds);J.contentPlaybackContext&&(M.playbackContext={contentPlaybackContext:J.contentPlaybackContext});J.prefetchPlaybackContext&&
(M.playbackContext=Object.assign({},M.playbackContext,{prefetchPlaybackContext:J.prefetchPlaybackContext}),M.context.request||(M.context.request={}),M.context.request.isPrefetch=!0);M.playbackContext||(M.playbackContext={});R=mV$();M.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!R,supportXhr:dV$};J.overrideMutedAtStart&&(M.overrideMutedAtStart=J.overrideMutedAtStart);M.racyCheckOk=!!z.racyCheckOk;M.contentCheckOk=!!z.contentCheckOk;!_.U("captions_prefs_killswitch")&&(J=(J=_.UE("yt-player-caption-language-preferences"))?
J:[],J==null?0:J.length)&&(M.captionParams={viewerSelectedCaptionLangs:J})};
_.P.getRequestConfig=function(M){M=this.JSC$13024_getStoreKey(M);var z;M&&(z={storeStrategy:{storeKey:M}});_.U("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="ps_s",z.responseTick="ps_r");return z};
w_[DW]=[Pf];var x5=function(){};
_.w(x5,eE);_.P=x5.prototype;_.P.getApiPaths=function(){return gk2};
_.P.getExtension=function(M){return _.G(M,_.Au)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$13024_getStoreKey=function(M){if((M=this.getExtension(M))&&M.videoId){var z={videoId:M.videoId};M.playlistId&&(z.playlistId=M.playlistId);M.index&&(z.index=M.index);M.params&&(z.params=M.params);return _.Lu("next",z)}};
_.P.JSC$13017_getClientScreen=function(M){var z;return((z=M.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$13017_buildRequest=function(M,z,J){z.videoId&&(M.videoId=z.videoId);z.playlistId&&(M.playlistId=z.playlistId);z.params&&(M.params=z.params);z.index!==void 0&&(M.playlistIndex=z.index);M.racyCheckOk=!(!J.racyCheckOk&&!z.racyCheckOk);M.contentCheckOk=!!z.contentCheckOk;J.contentPlaybackContext&&(M.autonavState=J.contentPlaybackContext.autonavState,M.playbackContext={vis:J.contentPlaybackContext.vis,lactMilliseconds:J.contentPlaybackContext.lactMilliseconds});J.prefetchPlaybackContext&&(M.context.request||
(M.context.request={}),M.context.request.isPrefetch=!0);_.U("captions_hats_killswitch")||(z=_.vv().getFlag(65),z=z!=null?!z:!1,J=!!_.UE("yt-player-sticky-caption"),M.captionsRequested=z&&J)};
_.P.getRequestConfig=function(M){M=this.JSC$13024_getStoreKey(M);var z;M&&(z={storeStrategy:{storeKey:M}});_.U("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="wn_s",z.responseTick="wn_r");return z};
var tE=function(){};
_.w(tE,eE);tE.prototype.getApiPaths=function(){return gk2};
tE.prototype.getExtension=function(M){return _.G(M,_.uP)};
tE.prototype.JSC$13017_buildRequest=function(M,z){z.token&&(M.continuation=z.token)};var jE=function(M,z){this.playerRequestBuilder=M;this.watchNextRequestBuilder=z};
_.w(jE,eE);jE.prototype.getApiPaths=function(){return WGS};
jE.prototype.getExtension=function(M){return _.G(M,_.Au)};
jE.prototype.isNavigationCommand=function(){return!0};
jE.prototype.JSC$13017_buildRequest=function(M,z,J){M.playerRequest={};this.playerRequestBuilder.JSC$13017_buildRequest(M.playerRequest,z,J);_.U("web_streaming_watch")&&(M.watchNextRequest={},this.watchNextRequestBuilder.JSC$13017_buildRequest(M.watchNextRequest,z,J))};
jE[DW]=[w_,x5];var KmV;_.pZ=new _.Nh("SHORTS_CONTROLLER_TOKEN");KmV=new _.Nh("SHORTS_STATE_STORE_TOKEN");var Ff=function(M,z){var J=_.H4.apply(2,arguments);M=M===void 0?0:M;_.xN.call(this,z,J);this.errorType=M;Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(Ff,_.xN);var $V2,uE$,Wm$,$Wc,Vq,DMR,fmJ,Ebp,rBg,iz$,ABt;$V2=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(M){return M+"="}).join("|"));
uE$=RegExp(".*\\?.*playnext=1.*");_.Y5=function(M,z,J,R){this.watchEndpointMap=M;this.reelWatchEndpointMap=z;this.innerTubeTransportService=J;this.fetchPbj=R};
Wm$=function(M,z,J){var R=_.JF().resolve(_.zw(q1a));_.Y5.instance=new _.Y5(M,z,J,R)};
_.amg=function(M,z){var J=_.NC("web_pbj_log_warning_rate",0);J=J>0&&Math.random()<J;var R;if((R=_.G(z.commandMetadata,_.X9))==null||!R.rootVe)return J&&_.yA(Error("Sf")),!1;var D;R=(D=_.G(z.commandMetadata,_.X9))==null?void 0:D.url;if(!R)return J&&_.yA(Error("Tf")),!1;if(uE$.test(R))return!0;if($V2.test(R))return J&&_.yA(Error("Uf`"+R)),!1;if(_.G(z,_.Au)){if(!(M.watchEndpointMap.watchNext&&M.watchEndpointMap.player||_.U("kevlar_fetch_initial_data_op_watch_client")))return J&&_.yA(Error("Lf")),!1;
M=_.NC("web_pbj_log_warning_rate",0);M=M>0&&Math.random()<M;_.G(z,_.Au)?XH8(z)?z=!0:(M&&_.yA(Error("Mf")),z=!1):(M&&_.yA(Error("Lf")),z=!1);return z}if(_.G(z,_.je))return lXR(z);if(_.G(z,_.qj))return!0;M=_.EN(M.innerTubeTransportService,z);!M&&J&&_.nc(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(z)});return M};
$Wc=function(M,z,J,R,D,N){z={url:z};if(J==null?0:J.itct)z.parentTrackingParams=J.itct;var Z=_.MG(kWV);return _.W2(M.innerTubeTransportService,z,Z).then(function(B){(B=B.endpoint)||(B=_.tm);(J==null?0:J.itct)&&B&&!B.trackingParams&&(B.trackingParams=J.itct);var O=xV(B);return Vq(M,B,J,R,O,D,N)})};
Vq=function(M,z,J,R,D,N,Z,B){B=B===void 0?{}:B;if(M.fetchPbj&&!_.amg(M,z)&&!_.U("force_one_platform")){B=M.fetchPbj(z);var O=_.Of(B.then(function(V){if(!V)throw Error("Wf");Z(O)||N(z,V);return V}));
return O}var X,l,e={rootVe:(X=_.G(z.commandMetadata,_.X9))==null?void 0:X.rootVe,url:(l=_.G(z.commandMetadata,_.X9))==null?void 0:l.url,endpoint:z,page:D};if(_.G(z,_.Au)){var Q,v={contentPlaybackContext:_.YV(J,(Q=_.G(z.commandMetadata,_.X9))==null?void 0:Q.url,R)},x=_.Ln();_.U("web_streaming_watch")&&window.TextDecoderStream?(B=VKg(M.innerTubeTransportService,z,v,function(V){!e.response&&V.content&&(e.response=V.content);!e.playerResponse&&V.player&&(e.playerResponse=V.player);N(z,e)}),X=MRp(z),X.length&&
(e.preconnect=X,N(z,e)),Ebp(B,x,e).catch(function(V){V instanceof Ff&&V.errorType===2&&fmJ(M,z,v,e,N,Z,x)})):fmJ(M,z,v,e,N,Z,x);
return x.promise}if(_.G(z,_.je)){var m;if(((m=_.G(z,_.je))==null?void 0:m.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var y=_.Ln();_.Lm2(_.JF().resolve(_.pZ),z).then(function(V){ABt(M,J,R,D,N,y,V)});
return y.promise}B=_.Of();var H;X={contentPlaybackContext:_.YV(J,(H=_.G(z.commandMetadata,_.X9))==null?void 0:H.url,R)};(H=M.reelWatchEndpointMap.player)&&(H=H().JSC$13017_getRequest(z,X))&&(B=_.W2(M.innerTubeTransportService,H.innerTubeRequest,H.input,z.clickTrackingParams,H.config));H=_.Of();(l=M.reelWatchEndpointMap.reelItemWatch)&&(l=l().JSC$13017_getRequest(z))&&(H=_.W2(M.innerTubeTransportService,l.innerTubeRequest,l.input,z.clickTrackingParams,l.config));l=_.Of();(Q=M.reelWatchEndpointMap.reelWatchSequence)&&
_.G(z,_.je).sequenceParams&&(X=Q().JSC$13017_getRequest(z,X))&&(l=_.W2(M.innerTubeTransportService,X.innerTubeRequest,X.input,z.clickTrackingParams,X.config));X=_.Of(e);Q=_.Ln();iz$(z,X,B,H,l,N,Z,Q);return Q.promise}var q;if(_.G(z,Ox8)&&((q=_.G(z.commandMetadata,_.X9))==null?0:q.url))return B=jjG(_.um(hA().location.href),_.um(_.G(z.commandMetadata,_.X9).url)).toString(),$Wc(M,B,J,R,N,function(){return!1});
if(_.G(z,_.qj))return N(z,e),_.Of(e);if(_.EN(M.innerTubeTransportService,z)){B=Object.assign({},{tempData:J,disableCache:J.disableCache},B);var b=_.fn(M.innerTubeTransportService,z,B).then(function(V){e.response=V;Z(b)||N(z,e);return e});
return b}return _.Of(e)};
_.bzv=function(M,z,J,R){if(_.G(z,_.Au)||_.G(z,_.je)&&(_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("kevlar_enable_shorts_prefetch_in_sequence"))||_.G(z,MOB)&&_.U("web_enable_prefetching_videos_on_home")){var D,N={contentPlaybackContext:_.YV(J,(D=_.G(z.commandMetadata,_.X9))==null?void 0:D.url,R),prefetchPlaybackContext:vk8(J)},Z,B,O;if(((Z=_.G(z,_.Au))==null?void 0:(B=Z.watchEndpointSupportedPrefetchConfig)==null?void 0:(O=B.prefetchHintConfig)==null?void 0:O.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(J=
M.watchEndpointMap.watchNext)if(N=J().JSC$13017_getRequest(z,N))return Promise.resolve(_.W2(M.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(e){return e}))}else if(J=M.watchEndpointMap.player)if(N=J().JSC$13017_getRequest(z,N))return Promise.resolve(_.W2(M.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(e){return e}))}else if(_.EN(M.innerTubeTransportService,z)){var X={tempData:J},l=CLB(M.innerTubeTransportService,z);
return l?new Promise(function(e,Q){var v,x;return _.k(function(m){if(m.nextAddress==1)return m.yield(l,2);if(m.nextAddress!=4)return v=m.yieldResult,v.JSC$13024_getStoreKey(z,X)?m.yield(_.fn(M.innerTubeTransportService,z,X),4):(Q(new _.xN("Prefetching request builder with no store key.",z)),m.jumpTo(0));x=m.yieldResult;e(x);_.UI(m)})}):Promise.reject(new _.xN("Prefetching unregistered request builder.",z))}return Promise.reject(new _.xN("No request builder available to prefetch endpoint.",z))};
DMR=function(M,z){var J,R,D;if(_.G(z,_.Au)){var N=M.watchEndpointMap.watchNext;N&&(J=N());(M=M.watchEndpointMap.player)&&(R=M())}else if(_.G(z,_.je))(N=M.reelWatchEndpointMap.reelItemWatch)&&(J=N()),(N=M.reelWatchEndpointMap.player)&&(R=N()),(M=M.reelWatchEndpointMap.reelWatchSequence)&&(D=M());else{a:{M=ITp(z,M.innerTubeTransportService.endpointMap);if(M!==void 0)if(typeof M.then==="function")_.nc(new _.xN("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",z));else break a;
M=void 0}M&&(J=M)}var Z,B,O;return{content:(Z=J)==null?void 0:Z.JSC$13024_getStoreKey(z),player:(B=R)==null?void 0:B.JSC$13024_getStoreKey(z),reelSequence:(O=D)==null?void 0:O.JSC$13024_getStoreKey(z)}};
fmJ=function(M,z,J,R,D,N,Z){var B=_.Of(),O=M.watchEndpointMap.player;_.U("web_streaming_player")&&(O=Fk(jE));O&&(O=O().JSC$13017_getRequest(z,J))&&(B=_.W2(M.innerTubeTransportService,O.innerTubeRequest,O.input,z.clickTrackingParams,O.config));O=_.Of();var X=M.watchEndpointMap.watchNext;X&&(J=X().JSC$13017_getRequest(z,J))&&(O=_.W2(M.innerTubeTransportService,J.innerTubeRequest,J.input,z.clickTrackingParams,J.config));M=_.Of(R);rBg(z,M,B,O,D,N,Z)};
Ebp=function(M,z,J){return _.k(function(R){if(R.nextAddress==1)return R.yield(M,2);z.resolve(J);_.UI(R)})};
rBg=function(M,z,J,R,D,N,Z){var B,O,X,l,e;_.k(function(Q){switch(Q.nextAddress){case 1:return Q.yield(z,2);case 2:B=Q.yieldResult;if(N(Z.promise))return Z.resolve(B),Q.return();D(M,B);O=MRp(M);if(!O.length){Q.jumpTo(3);break}return Q.yield(z,4);case 4:B.preconnect=O,D(M,B);case 3:return _.Io(Q,5),Q.yield(J,7);case 7:X=Q.yieldResult;_.ab(Q,6);break;case 5:return l=_.Qa(Q),Z.reject(l),Q.return();case 6:if(X===void 0)return B.reload=!0,D(M,B),Z.resolve(B),Q.return();if(N(Z.promise))return Z.resolve(B),
Q.return();B.playerResponse=X;D(M,B);_.Io(Q,8);return Q.yield(R,10);case 10:e=Q.yieldResult;_.ab(Q,9);break;case 8:_.Qa(Q);case 9:if(e===void 0)return B.response={responseContext:{}},Z.resolve(B),Q.return();if(N(Z.promise))return Z.resolve(B),Q.return();B.response=e;D(M,B);Z.resolve(B);_.UI(Q)}})};
iz$=function(M,z,J,R,D,N,Z,B){var O,X,l,e,Q,v;_.k(function(x){switch(x.nextAddress){case 1:return x.yield(z,2);case 2:O=x.yieldResult;if(Z(B.promise))return B.resolve(O),x.return();N(M,O);X=MRp(M);if(!X.length){x.jumpTo(3);break}return x.yield(z,4);case 4:O.preconnect=X,N(M,O);case 3:return _.Io(x,5),x.yield(J,7);case 7:l=x.yieldResult;_.ab(x,6);break;case 5:return e=_.Qa(x),B.reject(e),x.return();case 6:if(l===void 0)return O.reload=!0,N(M,O),B.resolve(O),x.return();if(Z(B.promise))return B.resolve(O),
x.return();O.playerResponse=l;N(M,O);_.Io(x,8);return x.yield(R,10);case 10:Q=x.yieldResult;_.ab(x,9);break;case 8:_.Qa(x);case 9:if(Q===void 0)return O.response={responseContext:{}},B.resolve(O),x.return();if(Z(B.promise))return B.resolve(O),x.return();O.response=Q;N(M,O);_.Io(x,11);return x.yield(D,13);case 13:v=x.yieldResult;_.ab(x,12);break;case 11:_.Qa(x);case 12:if(Z(B.promise))return B.resolve(O),x.return();O.reelWatchSequenceResponse=v;N(M,O);B.resolve(O);_.UI(x)}})};
ABt=function(M,z,J,R,D,N,Z){var B,O,X,l,e,Q;_.k(function(v){if((B=Z)==null||!B.replacementEndpoint)return N.reject(),v.return();O=Z.replacementEndpoint;(X=_.G(O,_.je))?(Z.sequenceContinuation&&(X.sequenceParams=Z.sequenceContinuation),l=_.JF().resolve(_.pZ),e=X.sequenceParams,MG$(l,O)&&delete X.sequenceParams,Q=Vq(M,O,z,J,R,D,function(){return!1}),Q.then(function(x){return _.k(function(m){if(m.nextAddress==1)return zsV(l,{reelWatchEndpoint:{sequenceParams:e}},x),m.yield(0,2);
N.resolve(x);_.UI(m)})})):N.reject();
_.UI(v)})};_.JCQ=function(M){if(M.validatedFragments_.length==0)return null;if(!M.mergedPrefetchedData_){for(var z=[],J=_.S(M.validatedFragments_),R=J.next();!R.done;R=J.next()){R=_.S(M.fragmentConfiguration_[R.value].graftedKeys);for(var D=R.next();!D.done;D=R.next())(D=M.prefetchedData_[D.value].trackingParams)&&z.push(D)}M.mergedPrefetchedData_={};Object.assign(M.mergedPrefetchedData_,M.prefetchedData_,{clientSideGrafts:z})}return M.mergedPrefetchedData_};var RsJ;_.m_=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
RsJ=function(M,z,J){if(_.IXc(z))return M.prefetchCache_.get(_.oko(z,J))};_.g_=new _.Nh("NAVIGATION_TOKEN");var DOB=function(M){var z=this;var J=J===void 0?gk0():J;var R=R===void 0?_.JF().resolve(_.g_):R;this.onePickCommand=M;this.JSC$13127_playlistNetworkManager=J;this.navigationManager=R;this.videoPickerBuilder=_.YS8("yt-addtoplaylist");_.S7V(MIJ(zAp(rog(this.videoPickerBuilder.setTitle(M.modalTitle).setSize(1E3).addView(RV$()).addView(JFu())).addView("youtube"),M.selectButtonLabel)),function(D){z.handleAction(D)})};
DOB.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
DOB.prototype.handleAction=function(M){var z=this;if(M&&this.onePickCommand.listId&&M.action==="picked"&&M.docs){var J=[];M.docs.forEach(function(R){J.push({addedVideoId:R.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13127_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,J).then(function(){_.U("playlist_add_video_hard_reload_killswitch")?z.navigationManager.reload():N5k(z.navigationManager)})}};var PV$=function(){if(this.constructor===PV$)throw new TypeError("Xf");};
_.P=PV$.prototype;_.P.dispose=function(){};
_.P.disconnect=function(){};
_.P.reconnect=function(){};
_.P.observe=function(M,z,J){return{element:M,option:J}};
_.P.unobserveByKey=function(){};var sjw=function(M,z){z=z===void 0?0:z;PV$.call(this);this.viewroot=M;this.defaultPrescanHeight=z;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),M?{root:M,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.w(sjw,PV$);_.P=sjw.prototype;_.P.dispose=function(){this.disconnect();this.handlers.clear()};
_.P.disconnect=function(M){this.isConnected=!1;this.pauseObservingUntilReconnect=M===void 0?!1:M;this.observer.disconnect();M=_.S(this.prescanObservers.values());for(var z=M.next();!z.done;z=M.next())z.value.disconnect()};
_.P.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var M=_.S(this.handlers),z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;var R=J.next().value;J=!1;R=_.S(R.keys());for(var D=R.next();!D.done;D=R.next())if((D=D.value)&&D.state==="prescan"){J=!0;break}J&&SOp(this,z).observe(z);this.observer.observe(z)}}};
_.P.handleObserveEvent=function(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=this.handlers.get(z.target);if(J){var R=z.isIntersecting;J=_.S(J);for(var D=J.next();!D.done;D=J.next()){var N=_.S(D.value);D=N.next().value;N=N.next().value;D&&(D.state==="visible"&&R||D.state==="hidden"&&!R)&&(N(z.target,D.state),D.calledOnce&&this.unobserveByKey({element:z.target,option:D}))}}}};
_.P.handlePrescanEvent=function(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=this.handlers.get(z.target);if(J&&z.isIntersecting){J=_.S(J);for(var R=J.next();!R.done;R=J.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;R&&R.state==="prescan"&&(D(z.target,R.state),R.calledOnce&&this.unobserveByKey({element:z.target,option:R}))}}}};
_.P.observe=function(M,z,J){var R=(R=this.handlers.get(M))&&R.has(J)?{element:M,option:J}:void 0;if(R)return R;R={element:M,option:J};this.handlers.has(M)||this.handlers.set(M,new Map);var D=this.handlers.get(M);D&&!D.has(J)&&D.set(J,z);this.pauseObservingUntilReconnect||(J.state==="prescan"&&SOp(this,M).observe(M),this.observer.observe(M));return R};
_.P.unobserveByKey=function(M){var z=this.handlers.get(M.element);if(z&&z.has(M.option)){z.delete(M.option);if(M&&M.option.state==="prescan")for(var J=_.S(this.prescanObservers.values()),R=J.next();!R.done;R=J.next())R.value.unobserve(M.element);z.size===0&&(this.handlers.delete(M.element),this.observer.unobserve(M.element))}};
var SOp=function(M,z){var J=M.defaultPrescanHeight;z.hasAttribute("prescan-height")&&(z=Number(z.getAttribute("prescan-height")),isNaN(z)||(J=z));if(M.prescanObservers.has(J))return M.prescanObservers.get(J);z="-0.1px -0.1px "+J+"px -0.1px";z=new IntersectionObserver(M.handlePrescanEvent.bind(M),M.viewroot?{root:M.viewroot,rootMargin:z}:{rootMargin:z});M.prescanObservers.set(J,z);return z};var ZUg=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],kgt=function(){var M,z=this;this.JSC$13144_actionRouter=M=M===void 0?_.VA.getInstance():M;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return z.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return z.visibilityObservedElementHandlerKeys}}},B5$,T5V,XeV;
kgt.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.U("kevlar_use_vimio_behavior")&&_.HW("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=nkR())};
kgt.prototype.dispose=function(){this.visibilityMonitor&&_.tQ(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
kgt.prototype.handleVisibilityRefreshed=function(){for(var M=_.S(this.targetMap.entries()),z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;_.OUQ(this,z,J)}};
_.oxQ=function(M,z,J){T5V(M,J);var R=_.IqV(M,z);R.element=J;M.targetedElements.set(J,z);_.OUQ(M,z,R)};
T5V=function(M,z){var J=M.targetedElements.get(z);if(J){var R=M.targetMap.get(J);R&&(delete R.element,M.targetMap.set(J,R));M.targetedElements.delete(z);M.visibilityObserver&&M.visibilityObservedElementHandlerKeys&&(J=M.visibilityObservedElementHandlerKeys.get(z))&&(M.visibilityObserver.unobserveByKey(J),M.visibilityObservedElementHandlerKeys.delete(z))}};
_.OUQ=function(M,z,J){var R=J.action,D=J.element;D&&R&&(ZUg.includes(z)||_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||M.visibilityMonitor&&M.visibilityMonitor.isNodeVisible(D)?XeV(M,z,J):M.visibilityObserver&&(M.visibilityObservedElementHandlerKeys||(M.visibilityObservedElementHandlerKeys=new WeakMap),R=M.visibilityObserver.observe(D,function(){XeV(M,z,J);M.visibilityObservedElementHandlerKeys.delete(D)},{calledOnce:!0,
state:"visible"}),M.visibilityObservedElementHandlerKeys.set(D,R)))};
XeV=function(M,z,J){var R=J.action;(J=J.element)&&R&&(_.uM(M.JSC$13144_actionRouter,[R],J),M.targetMap.delete(z),M.targetedElements.delete(J),M.triggeredTargets.add(z))};
_.IqV=function(M,z){var J=M.targetMap.get(z);J||(J={},M.targetMap.set(z,J));return J};
_.sE=function(){B5$||(B5$=new kgt);return B5$};var lqv=document.createElement("div");lqv.style.touchAction="pan-down";var hu8=lqv.style.touchAction==="pan-down";var esV,Q8J;esV=function(){this.hammerFn=rMV();this.JSC$13152_screenManager=_.Gm();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.O3(83615);_.ex(this.JSC$13152_screenManager,this.ve);yX0()};
_.nZ=function(){Q8J||(Q8J=new esV);return Q8J};
esV.prototype.registerTouchEvents=function(M,z,J){var R=_.H4.apply(3,arguments),D=this.hammerFn(M,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});J&&D.set({touchAction:J});this.nodeManagerMapping.set(M,D);var N=
HxR(z);R=_.S(R);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;if(Z.includes("swipe")||Z.includes("pinch")||Z.includes("pan"))Z.includes("swipe")?D.get("swipe").set({enable:!0,direction:N,velocity:.2}):Z.includes("pinch")?D.get("pinch").set({enable:!0}):Z.includes("pan")&&(D.get("pan").set({enable:!0,direction:N}),D.get("swipe").set({enable:!0,direction:N,velocity:.2}),D.get("swipe").recognizeWith("pan"));UOS(this,M,D,Z)}};
var UOS=function(M,z,J,R){J.on(R,function(D){if(R.includes("pinch"))M.lastPinchTime=Date.now();else if(R.includes("swipe")&&Date.now()-M.lastPinchTime<400)return;D.pointerType!=="mouse"&&(D=R==="doubletap"?{coordinates:D.center}:R.includes("pan")?D:R.includes("swipe")?{target:D.target}:{},z.dispatchEvent(new CustomEvent(R,{bubbles:!0,composed:!0,detail:D})))})};
esV.prototype.unregisterTouchEvents=function(M){var z=_.H4.apply(1,arguments),J=this.nodeManagerMapping.get(M);if(J){z=_.S(z);for(var R=z.next();!R.done;R=z.next())J.off(R.value);this.nodeManagerMapping.delete(M);M.style.touchAction="unset"}};var vxJ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var cX3=null;var Gg2=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},zlR=function(){Gg2.instance||(Gg2.instance=new Gg2);
return Gg2.instance},J3e=function(M){var z=M.networkEvents;
M.networkEvents=[];return _.U("enable_network_monitoring")?z:[]};var wea;wea={};_.xOS=Mc("yt-serviceworker-metadata",{objectStores:(wea.auth={addedAtVersion:1},wea["resource-manifest-assets"]={addedAtVersion:2},wea),shared:!0,upgrade:function(M,z){z(1)&&$_(M,"resource-manifest-assets");z(2)&&$_(M,"auth")},
version:2});var WS3=self.location.origin+"/";aX3([/\.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\//]);aX3([/purge_shell=1/]);var tGv=void 0;tGv=tGv===void 0?[]:tGv;for(var j8p=[],pea=_.S(qBS),F02=pea.next();!F02.done;F02=pea.next())j8p.push({key:F02.value});for(var YOJ=_.S(tGv),mOv=YOJ.next();!mOv.done;mOv=YOJ.next())j8p.push(mOv.value);var gxv,dB=_.R3==null?void 0:(gxv=_.R3.performance)==null?void 0:gxv.memory,fXo=!1,Rle={},ixR={},KX={},$V=navigator;var hE=function(M){this.JSC$13196_expiringStorage=new jz(M)};
hE.prototype.set=function(M,z,J){J=J!==void 0?Date.now()+J:void 0;this.JSC$13196_expiringStorage.set(M,z,J)};
hE.prototype.get=function(M){return this.JSC$13196_expiringStorage.get(M)};
hE.prototype.remove=function(M){this.JSC$13196_expiringStorage.remove(M)};var Omo=_.Ca(["https://www.youtube.com/",""]),Tj3=_.Ca(["https://studio.youtube.com/",""]),elH="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",oh8=null,w83;var s8g=_.Ca(["https://www.youtube.com/iframe_api"]),yo=function(){this.playerResolver_=_.Ln();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.xi;this.playbackDurationSeconds_=0},nxB=function(M){var z=function(){return window.YT&&typeof window.YT.ready==="function"};
if(z())return _.Of(window.YT);var J=_.Ln(),R=_.lm("SCRIPT");R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(R.onload=_.xi,R.onreadystatechange=_.xi,R.onerror=_.xi,z()?J.resolve(window.YT):J.reject(new _.xN("Failed to load the iframe player library","script.onload",R.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
R.onerror=function(D){R.onload=_.xi;R.onreadystatechange=_.xi;R.onerror=_.xi;J.reject(new _.xN("Failed to load the iframe player library","script.onerror",D&&D.target&&D.target.src))};
_.is(R,_.Nx(s8g));M.insertBefore(R,M.firstChild);return J.promise},hs$=function(M,z,J){var R,D;
_.k(function(N){switch(N.nextAddress){case 1:return M.playbackEndedCallback_=J,_.Io(N,2),N.yield(nxB(z.parentElement||null),4);case 4:R=N.yieldResult;_.ab(N,3);break;case 2:return D=_.Qa(N),D instanceof _.xN&&D.args&&D.args[0]=="script.onerror"?_.yA(D):_.nc(D),N.return();case 3:R.ready(function(){return new R.Player(z,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:M.onPlayerReady_.bind(M),onStateChange:M.onPlayerStateChange_.bind(M),
onCueRangeExit:M.onCueRangeExit_.bind(M)}})}),_.UI(N)}})};
_.P=yo.prototype;_.P.getPlayerPromise=function(){return this.playerPromise_};
_.P.onPlayerReady_=function(M){this.playerResolver_.resolve(M.target)};
_.P.onPlayerStateChange_=function(M){if(M.data==YT.PlayerState.PLAYING){M=M.target;var z=M.getCurrentTime();M.addCueRange("playback",z,z+this.playbackDurationSeconds_)}};
_.P.onCueRangeExit_=function(M){M.data=="playback"&&(M.target.stopVideo(),this.playbackEndedCallback_())};
_.P.stopVideo=function(){this.playerPromise_.then(function(M){M.stopVideo()})};
var yCQ=function(M){M.playerVars_&&M.playerPromise_.then(function(z){typeof z.cueVideoByPlayerVars!="function"?_.yA(new _.xN("vmh: player API not ready","cueVideoByPlayerVars",typeof z.cueVideoByPlayerVars)):z.cueVideoByPlayerVars(M.playerVars_)})};
yo.prototype.playVideo=function(){var M=this;this.playerVars_&&this.playerPromise_.then(function(z){typeof z.loadVideoByPlayerVars!="function"?(z=new _.xN("vmh: player API not ready","loadVideoByPlayerVars",typeof z.loadVideoByPlayerVars),_.nc(z)):z.loadVideoByPlayerVars(M.playerVars_)})};
var HUS=function(M,z,J,R,D){z&&(J===void 0&&(J=0),R===void 0&&(R=0),M.playbackDurationSeconds_=R/1E3,M.playerVars_={adformat:"17_8",videoId:z,suggestedQuality:"hd720",startSeconds:J/1E3,player_params:D})};
yo.prototype.mute=function(){this.playerPromise_.then(function(M){M.mute()})};
yo.prototype.unMute=function(){this.playerPromise_.then(function(M){M.unMute()})};var cC$=function(M,z){var J=uS();M||(M="unknown");z||(z="unknown");M="MAIN_APP_WEB_PAGE_TYPE_"+M.toUpperCase();M in iCg||(M="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");z="MAIN_APP_WEB_REQUEST_TYPE_"+z.toUpperCase();z in CMJ||(z="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.T0(J,{mainAppWeb:{pageType:M,requestType:z,isShellLoad:_.cW("IS_SHELL_LOAD",!1)}})},dOV={start:function(){_.T0(dhY(),{mainAppWeb:_.fX()})},
success:function(){_.Ih(dhY(),"SUCCESS")},
failure:function(){_.Ih(dhY(),"FAILURE")},
cancelled:function(){_.Ih(dhY(),"CANCELLED")}};var K0g,$Ou,ghY;K0g=_.Ca(["/sw.js"]);$Ou=_.Ca(["/sw.js?0"]);_.uFp=_.Nx(K0g);ghY=_.Nx($Ou);var qOB=function(){var M=Error.apply(this,arguments);this.message=M.message;"stack"in M&&(this.stack=M.stack)};
_.w(qOB,Error);_.i7.prototype.load=function(M){this.megabloxUrl_=_.HW("YPC_MB_URL");_.qI(this.megabloxUrl_,(0,_.xF)(function(){M&&M()},this))};
_.cO8=function(M,z,J,R,D,N,Z,B,O,X,l){_.nhp(O);M.load((0,_.xF)(function(){try{var e=N?N:_.HW("HL"),Q=_.HW("SESSION_INDEX");_.lyo("client",function(){EFt("59",{helpCenterPath:"/youtube",locale:e,window:window}).JSC$9942_loadChatSupport({authuser:String(Q)})})}catch(v){throw LX(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),D&&D(v),_.nc(v),v;
}W0V(this,z,J,R,D,N,Z,B,O,X,l)},M))};
_.i7.prototype.openFixFlowDialog=function(M,z,J,R){this.load((0,_.xF)(function(){try{aqp(this,_.qH("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(M).withIntegratorCallback(z).load(J,R)}catch(D){throw _.nc(D),D;}},this))};
var aqp=function(M,z,J,R){var D=z.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.U("enable_window_constrained_buy_flow_dialog")&&(D=D.usingPopupStyle(_.qH("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));R&&(D=D.usingCloseCallback(R));z.bootstrap.fromPaymentsUrl(M.megabloxUrl_);M=z.bootstrap.asMashupMode(D);J=J?J:_.HW("HL");M.usingGaiaIndex(_.HW("SESSION_INDEX")).usingLocale(J).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.U("enable_google_payments_buyflow_material2_style_web")?
M.usingStyle(":m2;pc=#444;ac=#065fd4"):M.usingStyle(":md;pc=#444;ac=#065fd4");return M},W0V=function(M,z,J,R,D,N,Z,B,O,X,l){try{var e=_.qH("payments.business.integration");
if(!e)throw new qOB("payments.business.integration is undefined");var Q=e.standaloneContextAuthId.forUserId(),v=aqp(M,e,N,function(){y3R(!1);B&&B()});
Z&&v.usingServerAnalyticsEventHandler(Z);var x=v.inStandaloneContext(Q).buyFlow(function(m){if(m&&(!m.integratorData||m.integratorData===""||m.error))if(m.error!=null)if(String(m.error)==="-1")_.hle(O);else{var y=String(m.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";LX(10,l,y,m.debugCode);_.A9(y,O,m.debugCode);y=new _.xN("PAYMENT_ERROR_MESSAGE::"+m.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+m.internalErrorDetails);
_.nc(y)}else LX(10,l,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.A9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",O,"EMPTY_INTEGRATOR_DATA"),_.nc(Error("bg"));J&&(y3R(!1),J(m))}).withEncryptedParameters(z);
X&&x.withClientParameters(Ljp(_.HIw(X)));x.load(function(){LX(24,l);_.Hv("ttc",void 0,"commerce_transaction");NLp("commerce_transaction");R&&(R(),y3R(!0))},function(m){if(m==null?0:m.debugCode)var y=m==null?void 0:m.debugCode;
else if(!m||(m==null?0:m.debugCode))y="EMPTY_LOAD_FAILURE_ERROR",_.nc(Error(y));else{y="EMPTY_LOAD_FAILURE_DEBUG_CODE";var H=new _.xN("LOAD_FAILURE:"+m.message," DEBUG_CODE:"+y);_.nc(H)}LX(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",y);_.A9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O,y);_.nc(m);D&&D(m)})}catch(m){throw m instanceof qOB&&(LX(10,l,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),D&&D(m)),_.nc(m),m;
}};var VGQ;VGQ=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.hmw=function(M,z){z=z===void 0?!1:z;M=VGQ.test(M)?_.wi(M):null;!z&&window.payments||!M?(M=_.Ln(),z=M.promise,M.resolve()):z=_.sbg(M,{attributes:{"data-payments-main":"",id:"payment-lib"}});return z};var ExS;ExS=_.Ca(["//www.googletagmanager.com/gtm.js?id=",""]);_.Ha=function(M,z){_.DU(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:z}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.HW("GL")}),z=_.lm("SCRIPT"),z.async=!0,_.is(z,_.Nx(ExS,M)),z.id="gtm",M=document.getElementsByTagName("script"),M.length==0?document.head.appendChild(z):(M=M[0],M.parentNode.insertBefore(z,M)))};
_.ca=function(M){if(M=JSON.parse(M))window.dataLayer=window.dataLayer||[],window.dataLayer.push(M)};var fq$,L0S;fq$=_.Ca(["https://clients2.google.com/gr/gr_sync.js"]);_.sec=function(){};
_.sec.prototype.init=function(){if(L0S()){var M=_.Ln();M.resolve();return M.promise}return _.sbg(_.Nx(fq$)).then(function(){if(!L0S())throw Error("cg");},function(){throw Error("dg");
})};
_.n6n=function(){if(!L0S())return"";var M=window.google.gr;M.init({async:{schedule:"sync"},merchantId:"youtube"});M.start();M=M.finish();return M==null?"":M};
L0S=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.g=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.w(_.g,PolymerFakeBaseClassWithoutHtml);_.vU=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.w(_.vU,PolymerFakeBaseClassWithoutHtml);var Hmw=window.ShadyDOM;var l7R,oY0,Q5R,ULo,GMp,wCe,d_,PU;l7R=_.U("enable_shadydom_free_scoped_query_methods");oY0=_.U("enable_shadydom_free_scoped_node_methods");Q5R=_.U("enable_shadydom_free_scoped_readonly_properties_batch_one");ULo=_.U("enable_shadydom_free_parent_node");GMp=_.U("enable_shadydom_free_children");wCe=_.U("enable_shadydom_free_last_child");d_=window.ShadyDOM;_.OV=d_&&d_.noPatch&&d_.wrap?d_.wrap:d_?function(M){return d_.patch(M)}:function(M){return M};
PU=function(M){if(M instanceof ShadowRoot)this.host=(0,_.OV)(M.host),this.root=M;else if(M.$$){this.host=(0,_.OV)(M);var z;this.root=(z=M.root)!=null?z:this.host}else if(M.polymerController){this.host=(0,_.OV)(M);var J;this.root=(J=this.host.shadowRoot)!=null?J:this.host}else this.root=this.host=(0,_.OV)(M)};
XCw();edw();xLp();tt8();vYH();var ACa={querySelector:function(M,z){z=dAn(z,M3(M));M=_.zp(M);return JJ(M).prototype.querySelector.call(M,z)},
querySelectorAll:function(M,z){z=dAn(z,M3(M));M=_.zp(M);return JJ(M).prototype.querySelectorAll.call(M,z)}},iUv={appendChild:function(M,z){var J=M3(M),R=_.rB(z);
return _.TGn(_.zp(M),J?_.DE(z,J,R):z)},
cloneNode:function(M,z){var J=_.rB(M);M=_.zp(M);z=JJ(M).prototype.cloneNode.call(M,z);return J?N3(z,J):z},
contains:function(M,z){var J=M3(M),R=_.rB(z);return J!==R?!1:I7o(M,z)},
insertBefore:function(M,z,J){var R=M3(M),D=_.rB(z);M=_.zp(M);z=R?_.DE(z,R,D):z;return JJ(M).prototype.insertBefore.call(M,z,J)},
removeChild:function(M,z){var J=M3(M);M=_.zp(M);z=J?N3(z,J):z;return JJ(M).prototype.removeChild.call(M,z)},
replaceChild:function(M,z,J){var R=M3(M),D=_.rB(z);z=R?_.DE(z,R,D):D?N3(z,D):z;J=R?N3(J,R):J;M=_.zp(M);return JJ(M).prototype.replaceChild.call(M,z,J)},
getRootNode:function(M,z){z=z===void 0?{composed:!0}:z;var J;if(((J=z)!=null?J:{}).composed)M=A3H(M);else{z=M;for(M=$Ap(M);M;)z=M,M=qL8(M);M=z}return M}},pC8=Q5R?{firstChild:Pjp,
nextSibling:Rd8,previousSibling:NG8,firstElementChild:Sz0,lastElementChild:kM0,nextElementSibling:JU0,previousElementSibling:DL8,childNodes:BG0}:{};ULo&&(pC8.parentNode=zdp);GMp&&(pC8.children=O9H);wCe&&(pC8.lastChild=Z9w);l7R&&j5b(ACa);oY0&&j5b(iUv);FEY();var Yzb=function(M){this.node=M instanceof ShadowRoot?M.host:M};
mLo();gYY();var hdc=new WeakMap;var H93=Symbol("ud");var uc3=new Set(["tap","track","down","up"]),qzn=_.U("pbcm_fi_query_decorators");var KZ=function(){return _.vU.apply(this,arguments)||this};
_.w(KZ,_.vU);_.P=KZ.prototype;_.P.getState=function(){return this.store.getState()};
_.P.dispatch=function(M){this.store.dispatch(M)};
_.P.beforeRegister=function(){if(this&&typeof this==="object"){var M;var z=!!this.useSignals||!((M=this.polymerController)==null||!M.useSignals)}else z=!1;if(!z&&this.properties)for(z=_.S(Object.keys(this.properties)),M=z.next();!M.done;M=z.next()){var J=M.value;M=this.properties[J];if(M.selector){if(M.computed)throw Error("jg");J=["reduxPropertiesRecomputeTrigger",'"'+J+'"'].concat(_.Yj(M.selectorArgs||[])).join(",");M.computed="recomputeReduxSelector("+J+")"}}};
_.P.attached=function(){var M=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){M.reduxPropertiesRecomputeTrigger++}));
_.U("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.P.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.P.recomputeReduxSelector=function(M,z){var J=_.H4.apply(2,arguments),R=this.properties[z].selector;if(!R)throw Error("hg`"+z);return R.apply(null,[this.store.getState()].concat(_.Yj(J)))};
_.P.select=function(M){var z=_.H4.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return M.apply(null,[this.store.getState()].concat(_.Yj(z)))};
_.rX.Object.defineProperties(KZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
KZ.prototype.recomputeReduxSelector=KZ.prototype.recomputeReduxSelector;_.u([_.Y(),_.W("design:type",Number)],KZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.u([_.Gp()],KZ);var $5=[],EYc={},HU=function(){return zi.apply(this,arguments)||this};
_.w(HU,zi);HU.prototype._addPropertyEffect=function(M,z,J){if(z==="__observeEffects"&&J){var R,D=(R=J.info.method)!=null?R:J.info.methodName;if(D){var N=this[D];this[D]=function(){$5.push(D);try{N==null||N.apply(this,arguments)}finally{$5.pop()}}}}_.Yt._addPropertyEffect.apply(this,[M,
z,J])};
HU.prototype._setPendingProperty=function(M,z,J){if($5.length){var R=$5[$5.length-1],D;(D=EYc[this.is])!=null&&D.has(R)||(f7G(this.is,R),_.gP("polymerPropertyChangedInObserver",{componentName:this.is,observerName:R}))}return _.Yt._setPendingProperty.apply(this,[M,z,J])};
_.u([eIp()],HU);var LER=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),i9G,tJ={};_.U("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=tJ);var Fw=function(){return _.vU.apply(this,arguments)||this};
_.w(Fw,_.vU);Fw.prototype._setUnmanagedPropertyToNode=function(M,z,J){M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!0);if(J!==M[z]||typeof J==="object")M[z]=J;M.is&&M.polymerController&&M.polymerController!==M&&jN(M.is,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!1)};
_.u([_.Gp()],Fw);AUo()&&(u4.prototype._setUnmanagedPropertyToNode=(new Fw)._setUnmanagedPropertyToNode);_.B2H={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(M){},set polymerController(M){}}]};var yc=function(){var M=zi.apply(this,arguments)||this;M.json=function(){};
return M};
_.w(yc,zi);yc.prototype.equals=function(M,z){return M===z};
yc.prototype.isEmpty=function(M){var z;(z=!M)||(z=_.WY(M)&&M.length===0);return z};
_.u([eIp()],yc);var CVu=function(M){M=oep(M);Ww.call(this,M)};
_.w(CVu,Ww);CVu.prototype.addProvider=function(M){M=M.key?M:oep([M])[0];var z=this.keyIdToIndex.get(M.key.id);if(z){if(zWc(M,this.providers[z]))throw Error("kg`"+M.key.displayName);}else Ww.prototype.addProvider.call(this,M)};
var bUa=new CVu([]);var rC$=!1;var S10={};rC$||(PLR(),rC$=!0);
S10.InjectBehavior={initializeInjection:function(){var M=this.provide;try{if((M=M!=null?M:[])&&M.length>0)for(var z=oep(M),J=_.S(z),R=J.next();!R.done;R=J.next())bUa.addProvider(R.value);var D=new Set;JBp(this.behaviors||[],D);z={};for(var N=_.S(D),Z=N.next();!Z.done;Z=N.next()){var B=Z.value;B.inject&&Object.assign(z,B.inject)}this.inject&&Object.assign(z,this.inject);for(var O=_.S(Object.keys(z)),X=O.next();!X.done;X=O.next()){var l=X.value,e=z[l];try{this[l]=bUa.resolve(e)}catch(Q){throw Q;}}}catch(Q){throw Error(Q.message);
}}};var kuG;var Oze=/\bclass\b/.test(function(){}.toString()),obG=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var MY2=function(M){this.wasDefined=!0;Array.isArray(M)||M instanceof Array?(this.JSC$13325_getImpl=M[0],this.JSC$13325_setImpl=M[1]):this.JSC$13325_getImpl=M};
_.P=MY2.prototype;_.P.getWithPath=function(M){return eW8(this.JSC$13325_getImpl(),M)};
_.P.setWithPath=function(M,z){var J=this;if(M.length)throw Error("lg");if(!this.JSC$13325_setImpl)throw Error("mg");X8(function(){J.JSC$13325_setImpl(z)})};
_.P.notifyPath=function(){throw Error("ng");};
_.P.notifySplices=function(){throw Error("og");};
_.P.getChangeRecordSignal=function(M,z){var J=this;if(M.length)throw Error("pg");return function(){var R=J.getWithPath(M);return{path:z!=null?z:"",base:R,value:R}}};
_.P.getSplicesSignal=function(){throw Error("qg");};
_.P.getPathMutationSignal=function(){throw Error("rg");};
_.P.pop=function(){throw Error("sg");};
_.P.push=function(){throw Error("tg");};
_.P.splice=function(){throw Error("ug");};
_.P.unshift=function(){throw Error("vg");};var u_=function(M){var z=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(M)||M instanceof Array?(this.JSC$13330_getImpl=M[0],this.JSC$13330_setImpl=M[1]):this.JSC$13330_getImpl=M;this.wasDefined=!1;ZZ(function(){z.wasDefined=z.JSC$13330_getImpl()!==void 0})};
u_.prototype.getWithPath=function(M){return eW8(this.JSC$13330_getImpl(),M)};
u_.prototype.setWithPath=function(M,z){var J=this;if(M[M.length-1]!=="*"&&M[M.length-1]!=="splices"){var R=ZZ(function(){return J.getWithPath([])});
if(M.length===0){if(!this.JSC$13330_setImpl)throw Error("wg");if(R===z)return;this.wasDefined||(this.wasDefined=z!==void 0);X8(function(){J.JSC$13330_setImpl(z)})}else{for(var D=0;D<M.length-1;D++){if(!R)return;
R=R[M[D]]}D=M[M.length-1];R&&(R[D]=z);this.wasDefined||(this.wasDefined=M.length>1||z!==void 0)}zFS(this,M,{pathComponents:M,value:z})}};
u_.prototype.notifyPath=function(M,z){M.length===0?z&&this.setWithPath(M,z.value):zFS(this,M,{pathComponents:M,value:z==null?void 0:z.value,fallbackWhenUndefined:z==null?void 0:z.value})};
var zFS=function(M,z,J,R){if(M.setMutationSignal){var D=++M.mutationIndex,N=[M.observedPath],Z=M.observedPath,B;z.length===0&&(B=Z);for(var O=0;O<z.length;O++){var X=Z.subPaths[z[O]];if(!X)break;N.push(X);Z=X;O===z.length-1&&(B=X)}for(z=!1;N.length;)Z=N.shift(),Z.data={index:D,mutation:J,spliceMutationIndex:R},z||(z=Z===B),z&&N.push.apply(N,_.Yj(Object.values(Z.subPaths)));X8(function(){M.setMutationSignal(D)})}};
u_.prototype.notifySplices=function(M,z){var J=this,R=ZZ(function(){return J.getWithPath(M)}),D=[].concat(_.Yj(M),["splices"]);
zFS(this,D,{pathComponents:D,value:{indexSplices:z}});if(R==null?0:R.length)z=this.mutationIndex,D=[].concat(_.Yj(M),["length"]),zFS(this,D,{pathComponents:D,value:R.length},z)};
var J5t=function(M,z,J,R,D,N){M.notifySplices(J,[{index:R,addedCount:D,removed:N,object:z,type:"splice"}])},RF2=function(M,z){M=M.observedPath;
for(var J=0;J<z.length;J++){var R=z[J],D=M.subPaths[R];D||(D={pathComponents:z.slice(0,J+1),subPaths:{}},M.subPaths[R]=D);M=D}},NrQ=function(M,z,J){RF2(M,z);
if(!M.getMutationSignal){var R=_.S(_.kE(M.mutationIndex,void 0,"sNBMCd"));M.getMutationSignal=R.next().value;M.setMutationSignal=R.next().value}var D=M.getMutationSignal;return _.o4(function(){D();return J(DzV(M,z))},void 0,"zvsXEd")};
u_.prototype.getChangeRecordSignal=function(M,z){var J=this,R=this.mutationIndex,D;return NrQ(this,M,function(N){if(N&&N.index>R){var Z=N.mutation;R=N.index;D=void 0}N=ZZ(function(){return J.getWithPath(M)});
if(Z){var B=Z.pathComponents[Z.pathComponents.length-1],O=[].concat(_.Yj(Z.pathComponents));if(B==="splices"||B==="length")return{base:N,path:(z?[z].concat(_.Yj(O)):O).join("."),value:Z.value};var X=M.length>O.length?M:O,l;return{base:N!=null?N:Z.fallbackWhenUndefined,path:(z?[z].concat(_.Yj(X)):X).join("."),value:(l=ZZ(function(){return J.getWithPath(X)}))!=null?l:Z.fallbackWhenUndefined}}D||(D={base:N,
path:(z?[z].concat(_.Yj(M)):M).join("."),value:N});return D})};
u_.prototype.getSplicesSignal=function(M){var z=this.mutationIndex,J;return NrQ(this,M,function(R){if(R&&R.index>z&&R.spliceMutationIndex!==z){var D=R.mutation;z=R.index;J=void 0}return D&&D.pathComponents[D.pathComponents.length-1]==="splices"?J=R=D.value:J})};
u_.prototype.getPathMutationSignal=function(M){var z=this;RF2(this,M);if(!this.getMutationSignal){var J=_.S(_.kE(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=J.next().value;this.setMutationSignal=J.next().value}var R=this.getMutationSignal,D=this.mutationIndex,N;return _.o4(function(){R();var Z=DzV(z,M);if(Z&&Z.index>D&&Z.mutation&&QPw(Z.mutation.pathComponents,M)){var B=Z.mutation;D=Z.index}if(!N||D!==N.index){var O,X;Z=(X=ZZ(function(){return z.getWithPath(M)}))!=null?X:(O=B)==null?
void 0:O.fallbackWhenUndefined;
N={index:D,value:Z}}return N},void 0,"RXYC9b")};
var DzV=function(M,z){M=M.observedPath;z=_.S(z);for(var J=z.next();!J.done;J=z.next())M=M.subPaths[J.value];return M.data};
u_.prototype.pop=function(M){var z=this,J=ZZ(function(){return z.getWithPath(M)});
if(!(J instanceof Array))throw Error("xg");var R=J.length>0,D=J.pop();R&&J5t(this,J,M,J.length,0,[D]);return D};
u_.prototype.push=function(M){var z=_.H4.apply(1,arguments),J=this,R=ZZ(function(){return J.getWithPath(M)});
if(!(R instanceof Array))throw Error("yg");var D=R.length,N=R.push.apply(R,_.Yj(z));z.length&&J5t(this,R,M,D,z.length,[]);return N};
u_.prototype.splice=function(M,z,J){var R=_.H4.apply(3,arguments),D=this,N=ZZ(function(){return D.getWithPath(M)});
if(!(N instanceof Array))throw Error("zg");z<0?z=N.length-Math.floor(-z):z&&(z=Math.floor(z));var Z=N.splice.apply(N,[z,J].concat(_.Yj(R)));(R.length||Z.length)&&J5t(this,N,M,z,R.length,Z);return Z};
u_.prototype.unshift=function(M){var z=_.H4.apply(1,arguments),J=this,R=ZZ(function(){return J.getWithPath(M)});
if(!(R instanceof Array))throw Error("Ag");var D=R.unshift.apply(R,_.Yj(z));z.length&&J5t(this,R,M,0,z.length,[]);return D};var qn=function(M,z,J){this.model=M;this.unknownSignalResolver=z;this.options=J;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];z=_.S(Fmw());M=z.next().value;z=z.next().value;this.owner=M;this.disposeImpl=z};
qn.prototype.dispose=function(){if(!this.isDisposed){for(var M=_.S(this.childSignalProxies),z=M.next();!z.done;z=M.next())z.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var PQg=function(M,z){M=_.AK(M.owner);try{z()}finally{_.AK(M)}};
qn.prototype.effect=function(M){PQg(this,function(){_.mt(M)})};
var S2t=function(M,z){M.options!=null||(M.options={});var J;(J=M.options).immutableProps!=null||(J.immutableProps=new Set);M.options.immutableProps.add(z)},rBR=function(M,z){z=""+z;
Z7a(M,z);var J,R;if((J=M.options)==null?0:(R=J.immutableProps)==null?0:R.has(z))return!0;var D;if((D=M.model.__signalCache)==null?0:D.has(z))J=M.model.__signalCache.get(z),Array.isArray(J)&&S2t(M,z);var N,Z,B;return(B=(N=M.options)==null?void 0:(Z=N.immutableProps)==null?void 0:Z.has(z))!=null?B:!1},kGQ=function(M,z){var J;
M.unknownSignalResolver&&(J=M.unknownSignalResolver(z));var R,D;((R=M.options)==null?0:(D=R.immutableProps)==null?0:D.has(z))?J!=null||(J=new MY2(_.kE(M.model[z],void 0,"By5iP"))):J!=null||(J=new u_(_.kE(M.model[z],void 0,"CXghNc")));var N=M.model.hostElement;Object.defineProperty(M.model,z,{get:function(){b9o(N,z);return J.getWithPath([])},
set:function(Z){pd(N,z);M.setWithPath([z],Z)},
configurable:!0});return J},Z7a=function(M,z){var J,R,D;
((J=M.model.__signalCache)==null||!J.has(z))&&((R=M.options)==null?0:(D=R.externalSignalProps)==null?0:D.has(z))&&M.model[z]},$z=function(M,z){z=""+z;
var J=M.signalCache[z];if(J!==void 0)return J;J=!1;Z7a(M,z);var R;if((R=M.model.__signalCache)==null?0:R.has(z))if(J=M.model.__signalCache.get(z),Array.isArray(J))J=!0,S2t(M,z);else return M.signalCache[z]=M.model.__signalCache.get(z).signal,M.signalCache[z];var D,N;R=(N=(D=M.options)==null?void 0:D.reactivityMode)!=null?N:0;var Z,B;if(!((Z=M.options)==null?0:(B=Z.reactiveProps)==null?0:B.has(z))&&!J&&R===1)throw Error("Bg`"+z);D=J?BrQ(M,z):kGQ(M,z);return M.signalCache[z]=D},BrQ=function(M,z){var J=
Object.getOwnPropertyDescriptor(M.model.constructor.prototype,z),R=function(){return M.model[z]};
return new MY2(J&&J.get&&!J.set?R:[R,function(D){M.model[z]=D}])};
qn.prototype.getWithPath=function(M){var z=_.S(M);M=z.next().value;z=EC(z);b9o(this.model.hostElement,""+M);return $z(this,M).getWithPath(z)};
qn.prototype.setWithPath=function(M,z){if(M.length){pd(this.model.hostElement,M.join("."));var J=_.S(M);M=J.next().value;J=EC(J);$z(this,M).setWithPath(J,z)}};
qn.prototype.getPathMutationSignal=function(M){var z=_.S(M);M=z.next().value;z=EC(z);return $z(this,M).getPathMutationSignal(z)};
qn.prototype.notifyPath=function(M,z){var J=_.S(M);M=J.next().value;J=EC(J);$z(this,M).notifyPath(J,z)};
var O7V=function(M,z){if(z.type==="literal")return function(){return{rootWasDefined:!0,value:z.value}};
var J=dH(z.path),R=_.S(J),D=R.next().value;R=EC(R);var N,Z;if(z.type==="path"&&(J.length===1||((N=M.options)==null?0:(Z=N.immutableProps)==null?0:Z.has(D))))return function(){var e=M.getWithPath(J.slice(0,1));e=eW8(e,J.slice(1));return{rootWasDefined:$z(M,J[0]).wasDefined,value:e}};
var B=$z(M,D);if(z.type==="path"){var O=B.getPathMutationSignal(R);return function(){var e,Q=(e=O())==null?void 0:e.value;return{rootWasDefined:B.wasDefined,value:Q}}}if(z.type==="splices"){var X=B.getSplicesSignal(R);
return function(){var e=X();return{rootWasDefined:B.wasDefined,value:e}}}var l=B.getChangeRecordSignal(R,""+D);
return function(){var e=l();return{rootWasDefined:B.wasDefined,value:e}}},tK0=function(M,z,J){var R=J.map(function(B){return O7V(M,B)}),D=J.length===0,N=[],Z=J.length!==1||J[0].type!=="path"?!1:!0;
M.effect(function(){for(var B=R.length,O=[],X=!!N.length,l=0;l<B;l++){var e=R[l](),Q=e.rootWasDefined;e=e.value;D||(D=Q);O[l]=e;Z&&(O[l+B]=X?N[l]:O[l],N[l]=e)}D&&gf(M.owner,function(){return void z.apply(null,_.Yj(O))})})},UV3=function(M,z,J,R,D){var N=$z(M,z);
D!==void 0&&N.setWithPath([],D);tK0(M,function(){var Z=_.H4.apply(0,arguments);pd(M.model.hostElement,z,!0);N.setWithPath([],J.apply(null,_.Yj(Z)))},R)};
qn.prototype.arrayPush=function(M){var z=_.H4.apply(1,arguments),J=_.S(M),R=J.next().value;J=EC(J);R=$z(this,R);return R.push.apply(R,[J].concat(_.Yj(z)))};
qn.prototype.arraySplice=function(M,z,J){var R=_.H4.apply(3,arguments),D=_.S(M),N=D.next().value;D=EC(D);N=$z(this,N);return N.splice.apply(N,[D,z,J].concat(_.Yj(R)))};
qn.prototype.arrayUnshift=function(M){var z=_.H4.apply(1,arguments),J=_.S(M),R=J.next().value;J=EC(J);R=$z(this,R);return R.unshift.apply(R,[J].concat(_.Yj(z)))};
qn.prototype.notifySplices=function(M,z){var J=_.S(M);M=J.next().value;J=EC(J);$z(this,M).notifySplices(J,z)};var Tr$=!0,IIt=!1,MY0=!1,om2=!1,XpQ=0;om2=!1;XpQ=0;Tr$=!0;IIt=MY0=!1;var hW8=/([^\s]+?)\(([\s\S]*)\)/,gbp=/\.([^.]+)$/,Hze=/\\,/g,Y1p=/&comma;/g,mVw=/\\(.)/g,yBH=[],sPo={"*":"wildcard",splices:"splices"};var Ebo=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"),q1p=/[A-Z]/,lIt=["class","hidden","id","on-dom-change"],Lm0=new Set([].concat(_.Yj(lIt),
["if","notify-dom-change","restamp"])),AB8=new Set([].concat(_.Yj(lIt),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),izw=new Set(["restamp"]);var i73=new Set(["className","id"]);var zsc=Symbol(),ZUR=window;var lqp=window;var xOe=0,UOe=0,ua=[],wep=0,Q8G=!1,Gg0=document.createTextNode("");(new window.MutationObserver(vxG)).observe(Gg0,{characterData:!0});var WU=new Map,q3=0,eFa=function(M){this.mappedHandleId=M},j8o=function(M,z,J,R){this.mappedHandleId=M;
var D=this;this.mappedHandleId=M;this.callback=z;this.waitTime=J;this.schedulerPriority=R;this.handleId=_.no.addJob(function(){D.callback();WU.delete(D.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.w(j8o,eFa);j8o.prototype.cancel=function(){_.no.cancelJob(this.handleId);WU.delete(this.mappedHandleId)};
var pep=function(M,z){this.mappedHandleId=M;var J=this;this.mappedHandleId=M;this.callback=z;this.handleId=tGp(function(){J.callback();WU.delete(J.mappedHandleId)})};
_.w(pep,eFa);pep.prototype.cancel=function(){var M=this.handleId-UOe;M<0||ua.length<=M||(ua[M]=null);WU.delete(this.mappedHandleId)};var gxp=function(){};
gxp.prototype.cancel=function(){this.jobHandle!==void 0&&(F00(this.jobHandle),this.jobHandle=void 0)};
gxp.prototype.run=function(M,z,J){var R=this;this.cancel();this.callback=M;this.jobHandle=_.au(function(){M();R.callback=void 0},z,J)};
gxp.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var YOG=new WeakMap;var QgB=Jn(function(M){for(var z=M,J=0;J<3;J++)z=Object.getPrototypeOf(z);delete z.prototype.connectedCallback;var R=function(){return M.apply(this,arguments)||this};
_.w(R,M);R.prototype._attachDom=function(D){if(!D)return null;var N=(0,_.OV)(this.hostElement);N.attachShadow({mode:"open",shadyUpgradeFragment:D});N.shadowRoot.appendChild(D);return N.shadowRoot};
R.prototype._takeAttributes=function(){for(var D=this.hostElement.attributes,N=0;N<D.length;N++){var Z=D[N],B=void 0,O=void 0;(O=(B=this).__attributeReaction)==null||O.call(B,Z.name,null,Z.value)}};
R.prototype._readyClients=function(){M.prototype._readyClients.call(this);this.root=this};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);M.prototype.connectedCallback.call(this)};
_.rX.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){return R.prototype._template}}});
return R}),UzJ=Jn(function(M){var z=function(){return M.apply(this,arguments)||this};
_.w(z,M);z.prototype.created=function(){if(this.__notifyEffects)for(var J=_.S(Object.values(this.__notifyEffects)),R=J.next();!R.done;R=J.next()){R=_.S(R.value);for(var D=R.next();!D.done;D=R.next())D.value.fn=yCn}if(this.__reflectEffects)for(J=_.S(Object.values(this.__reflectEffects)),R=J.next();!R.done;R=J.next())for(R=_.S(R.value),D=R.next();!D.done;D=R.next())D.value.fn=HUe};
z.prototype._addEventListenerToNode=function(J,R,D){J=EV(J);h1(J,R,D)||M.prototype._addEventListenerToNode.call(this,J,R,D)};
z.prototype._removeEventListenerFromNode=function(J,R,D){J=EV(J);y3(J,R,D)||M.prototype._removeEventListenerFromNode.call(this,J,R,D)};
z.prototype._propertiesChanged=function(J,R,D){if(this.__dataToNotify&&this.__notifyEffects)for(var N=_.S(Object.keys(this.__dataToNotify)),Z=N.next();!Z.done;Z=N.next()){Z=Z.value;var B=hs8(Z);this.__notifyEffects[B]||delete this.__dataToNotify[Z]}else this.__dataToNotify=null;M.prototype._propertiesChanged.call(this,J,R,D)};
z.prototype.fire=function(J,R,D){R=R===void 0?{}:R;var N;return _.Pv(EV((N=D==null?void 0:D.node)!=null?N:this),J,R,D)};
z.prototype._ensureAttribute=function(J,R){var D=EV(this);D.hasAttribute(J)||Kd(D,R,J)};
z.prototype.isLightDescendant=function(J){var R=EV(this);return EV(R)!==J&&_.SN(R).contains(J)&&_.SN(R).getRootNode()===_.SN(J).getRootNode()};
return z});
_.FG.ready=function(){var M;((M=this.hostElement)!=null?M:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var z;((z=this.hostElement)!=null?z:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Hw._subscribeIronResize=function(M){var z;((z=M.hostElement)!=null?z:M).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Hw._unsubscribeIronResize=function(M){var z;((z=M.hostElement)!=null?z:M).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var K0R=[Array,Boolean,Date,Number,Object,String],Ld=function(M,z,J,R){this.polySiInfo=M;this.polySiParams=z;this.polySiContext=J;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;R||this instanceof HTMLElement&&(R=this);if(!R)throw Error("Ig");this.allowedProps=z.allowedProps;this.hostElement=R;this.is=M.is;this.upgradeDisabled=!!z.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");M=new Set(z.reactiveSchemas.filter(function(D){return D.type!==
"observe"}).map(function(D){return D.propertyKey}));
this.signalProxy=new qn(this,void 0,{reactiveProps:M,reactivityMode:z.reactivityMode});this.__dataHasAccessor={};z=_.S(z.reactiveSchemas);for(M=z.next();!M.done;M=z.next())M=M.value,M.type==="signal"&&(this.__dataHasAccessor[M.propertyKey]=!0);this.upgradeDisabled||vmS(this)};
Ld.prototype.getExtraMethodsToForward=function(){return[]};
var vmS=function(M){M.polySiContext.didRegister||(M.registered(),M.polySiContext.didRegister=!0);M.polySiContext.finalizedTemplate||(M.polySiContext.finalizedTemplate={},M.polySiParams.templateGetter&&(M.polySiContext.finalizedTemplate.processedTemplate=esH(M.polySiParams.templateGetter,M.polySiParams.is)));GGJ(M);var z=M.hostElement;z.loggingStatus!=null||(z.loggingStatus={});z.loggingStatus.isInitializing=!0;ZZ(function(){return void M.created()});
z.loggingStatus.isInitializing=!1;M.isPolySiElementConnected&&wpV(M)},wpV=function(M){M.didCallReady||(ZZ(function(){return void M.ready()}),M.didCallReady=!0);
M.isAttached=!0;M.attached()};
_.P=Ld.prototype;_.P.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||wpV(this)};
_.P.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.P.attributeChangedCallback=function(M,z,J){if(this.upgradeDisabled)M==="disable-upgrade"&&J===null&&(this.upgradeDisabled=!1,vmS(this));else if(z!==J){var R=_.UK(M),D=this.polySiContext.typesForSignals[R];if(D&&(!this.reflecting||_.U("polysi_attribute_changed_serializing_killswitch"))){switch(D){case Object:try{var N=JSON.parse(J)}catch(B){N=J}break;case Array:try{N=JSON.parse(J)}catch(B){N=null}break;case Date:N=isNaN(J)?String(J):Number(J);N=new Date(N);break;case Boolean:N=J!==null;break;case Number:N=
Number(J);break;default:N=J}this[R]=N}R=_.S(this.polySiParams.behaviors);for(D=R.next();!D.done;D=R.next())N=void 0,(N=D.value.attributeChanged)==null||N.call(this,M,z,J);var Z;(Z=this.attributeChanged)==null||Z.call(this,M,z,J)}};
_.P.attributeChangedCallbackWrapper=function(M,z,J){this.attributeChangedCallback(M,z,J)};
_.P.setPropertiesFromInitialAttributeValues=function(){for(var M=0;M<this.hostElement.attributes.length;M++){var z=this.hostElement.attributes[M];(z.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(z.name))&&this.attributeChangedCallback(z.name,null,z.value)}};
_.P.created=function(){this.provide=this.polySiParams.provide;var M;(M=this.initializeInjection)==null||M.call(this);M=_.S(this.polySiParams.reactiveSchemas);for(var z=M.next();!z.done;z=M.next())z=z.value,z.type==="signal"&&(this.mutablePropNames.add(z.propertyKey),$z(this.signalProxy,z.propertyKey));dOH(this,this.polySiInfo,this.polySiParams.behaviors);M=_.S(this.polySiParams.reactiveSchemas);for(z=M.next();!z.done;z=M.next())z=z.value,z.type==="signal"&&z.value!==void 0&&(this.signalProxy.model[z.propertyKey]=
typeof z.value==="function"?z.value.call(this):z.value);if(this.polySiParams.signalProperties)for(M=_.S(this.polySiParams.signalProperties),z=M.next();!z.done;z=M.next()){z=z.value;var J=void 0;((J=this.__signalCache)==null?0:J.has(z))||(this.signalProxy.model[z]=void 0)}om2||xzg(this);cCw(this);M=_.S(this.polySiParams.behaviors);for(z=M.next();!z.done;z=M.next())J=void 0,(J=z.value.created)==null||J.call(this);var R;(R=this.polySiInfo.created)==null||R.call(this)};
_.P.registered=function(){var M=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var z=Object.getPrototypeOf(this);z.addReactiveSchema=function(B){M.polySiParams.reactiveSchemas.push(B)};
for(var J=_.S(this.polySiParams.behaviors),R=J.next();!R.done;R=J.next()){var D=void 0;(D=R.value.beforeRegister)==null||D.call(z)}var N;(N=this.polySiInfo.beforeRegister)==null||N.call(z);z.addReactiveSchema=uFo;J=_.S(this.polySiParams.behaviors);for(R=J.next();!R.done;R=J.next())D=void 0,(D=R.value.registered)==null||D.call(z);var Z;(Z=this.polySiInfo.registered)==null||Z.call(z)};
_.P.ready=function(){var M;(M=this.beforeReady)==null||M.call(this);om2&&xzg(this);var z;if(M=(z=this.polySiContext.finalizedTemplate)==null?void 0:z.processedTemplate){M=XeH(M.template,M.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:M.hasInsertionPoint,thisCtx:this});z=M.nodesById;M=M.root;var J=this.hostElement;var R=R===void 0?!1:R;J=(0,_.OV)(J);if(!J.attachShadow)throw Error("Ad");if(!J.shadowRoot||R)J.attachShadow({mode:"open",shadyUpgradeFragment:M}),J.shadowRoot.appendChild(M);
this.root=J.shadowRoot;this.$=z}tYS(this);R=_.S(this.polySiParams.behaviors);for(z=R.next();!z.done;z=R.next())M=void 0,(M=z.value.ready)==null||M.call(this);var D;(D=this.polySiInfo.ready)==null||D.call(this)};
_.P.attached=function(){for(var M=_.S(this.polySiParams.behaviors),z=M.next();!z.done;z=M.next()){var J=void 0;(J=z.value.attached)==null||J.call(this)}var R;(R=this.polySiInfo.attached)==null||R.call(this)};
_.P.detached=function(){for(var M=_.S(this.polySiParams.behaviors),z=M.next();!z.done;z=M.next()){var J=void 0;(J=z.value.detached)==null||J.call(this)}var R;(R=this.polySiInfo.detached)==null||R.call(this)};
var GGJ=function(M){for(var z=_.S(M.polySiParams.behaviors),J=z.next();!J.done;J=z.next())if(J=J.value,J.listeners)for(var R in J.listeners)oxn(M,M.hostElement,R,J.listeners[R]);if(M.polySiInfo.listeners)for(var D in M.polySiInfo.listeners)oxn(M,M.hostElement,D,M.polySiInfo.listeners[D])},oxn=function(M,z,J,R,D){M=lmp(M,R,D);
h1(z,J,M)||z.addEventListener(J,M);return M},xzg=function(M){for(var z=_.S(M.polySiParams.reactiveSchemas),J=z.next();!J.done;J=z.next())J=J.value,J.type==="compute"||J.type==="computeWithMethod"?vbe(M.signalProxy,J,M):J.type==="redux"?xVe(M.signalProxy,J,M.store):J.type==="signal"&&J.readOnly&&woR(M.signalProxy,J)},tYS=function(M){for(var z=_.S(M.polySiParams.reactiveSchemas),J=z.next(),R={};!J.done;R={schema$jscomp$12:void 0},J=z.next())R.schema$jscomp$12=J.value,R.schema$jscomp$12.type==="notify"?
jP3(M.signalProxy,R.schema$jscomp$12,M.hostElement):R.schema$jscomp$12.type==="observe"?pob(M.signalProxy,R.schema$jscomp$12,M):R.schema$jscomp$12.type==="reflect"&&M.signalProxy.effect(function(N){return function(){var Z=M.signalProxy.getWithPath([N.schema$jscomp$12.propertyKey]);
M.reflecting=!0;dVw(M.hostElement,N.schema$jscomp$12.propertyKey,Z,!0);M.reflecting=!1}}(R));
if(M.reflectedAttributes)for(z=_.S(Object.entries(M.reflectedAttributes)),R=z.next(),J={};!R.done;J={key$jscomp$911:void 0,value$jscomp$9159:void 0},R=z.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;J.key$jscomp$911=R;J.value$jscomp$9159=D;M.signalProxy.effect(function(N){return function(){M.reflecting=!0;dVw(M.hostElement,N.key$jscomp$911,(0,N.value$jscomp$9159)(),!0);M.reflecting=!1}}(J))}};
_.P=Ld.prototype;_.P._setPendingProperty=function(M,z){this.set(M,z);return!1};
_.P._enableProperties=function(){};
_.P._setPendingPropertyOrPath=function(M,z){this.notifyPath(M,z);return!1};
_.P._addPropertyEffect=function(){};
_.P._stampTemplate=function(){throw Error("Jg");};
_.P.fire=function(M,z,J){z=z===void 0?{}:z;J=J===void 0?{}:J;var R,D,N={bubbles:(R=J.bubbles)!=null?R:!0,cancelable:!!J.cancelable,composed:(D=J.composed)!=null?D:!0},Z;return _.Pv(qOb((Z=J.node)!=null?Z:this.hostElement),M,z,N)};
_.P.get=function(M,z){var J=dH(M);return z?eW8(z,J):M==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(J)};
_.P.linkPaths=function(){};
_.P.listen=function(M,z,J){M=qOb(M);this.boundListeners!=null||(this.boundListeners=new WeakMap);var R=this.boundListeners.get(M);R||(R={},this.boundListeners.set(M,R));var D=z+J;R[D]||(R[D]=oxn(this,M,z,J))};
_.P.notifyPath=function(M,z){this.signalProxy.notifyPath(dH(M),arguments.length===2?{value:z}:void 0)};
_.P.canNotifyPath=function(M){return this.mutablePropNames.has(M)&&!rBR(this.signalProxy,M)};
_.P.notifySplices=function(M,z){this.signalProxy.notifySplices(dH(M),z)};
_.P.pop=function(M){var z=this.signalProxy;M=dH(M);var J=_.S(M);M=J.next().value;J=EC(J);return $z(z,M).pop(J)};
_.P.push=function(M){var z=_.H4.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[dH(M)].concat(_.Yj(z)))};
_.P.set=function(M,z,J){if(J)throw Error("Kg");M==="hidden"?this.hostElement.hidden=!!z:this.signalProxy.setWithPath(dH(M),z)};
_.P.setProperties=function(M){M=_.S(Object.entries(M));for(var z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;this[z]=J}};
_.P.splice=function(M,z,J){var R=_.H4.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[dH(M),z,J].concat(_.Yj(R)))};
_.P.unlinkPaths=function(){};
_.P.unlisten=function(M,z,J){M=qOb(M);if(this.boundListeners){var R=this.boundListeners.get(M);if(R){J=z+J;var D=R[J];D&&(y3(M,z,D)||M.removeEventListener(z,D),delete R[J])}}};
_.P.unshift=function(M){var z=_.H4.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[dH(M)].concat(_.Yj(z)))};
_.rX.Object.defineProperties(Ld.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 rCw=[Array,Boolean,Date,Number,Object,String];var J58=!1;var Wa=function(){var M=HTMLElement.apply(this,arguments)||this;M.restamp=!1;M.notifyDomChange=!1;M.JSC$13438_didCallConnected=!1;M.JSC$13438_renderDebouncer=null;M.disableTemplateUpdateSignalImpl=AJ()?void 0:_.kE(!1,void 0,"Ofhkwb");var z;M.getDisableTemplateUpdate=(z=M.disableTemplateUpdateSignalImpl)==null?void 0:z[0];var J;M.setDisableTemplateUpdate=(J=M.disableTemplateUpdateSignalImpl)==null?void 0:J[1];return M};
_.w(Wa,HTMLElement);var jgQ=function(M){M.conditionSignalImpl!=null||(M.conditionSignalImpl=new u_(_.kE(!1,void 0,"gE52Fb")));return M.conditionSignalImpl};
_.P=Wa.prototype;_.P.showHideChildren=function(M){pp$(this,M,this.if)};
_.P.attributeChangedCallback=function(M,z,J){if(this.JSC$13438_didCallConnected)throw Error("Og`"+M);M==="notify-dom-change"?this.notifyDomChange=J!==null:M==="restamp"&&(this.restamp=J!==null)};
_.P.debounceRender=function(){this.JSC$13438_renderDebouncer=_.Iq(this.JSC$13438_renderDebouncer,cN,this.JSC$13438_renderImpl.bind(this));_.oq(this.JSC$13438_renderDebouncer)};
_.P.disconnectedCallback=function(){var M=(0,_.OV)(this).parentNode;(!M||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in M&&!M.host)&&FH$(this)};
_.P.connectedCallback=function(){var M=this;this.JSC$13438_didCallConnected=!0;Tr$?RF0():this.style.display="none";this.parentSignalProxy.effect(function(){jgQ(M).getWithPath([]);M.debounceRender()})};
_.P.render=function(){_.Q7()};
_.P.JSC$13438_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var M=this.if,z=!1;if(M){this.hasInstance()||(Y2$(this),z=!0);a:{var J=(0,_.OV)(this).parentNode;if(this.hasInstance()){var R=this.instance.children;if((R==null?0:R.length)&&(0,_.OV)(this).previousSibling!==R[R.length-1])for(var D=0;D<R.length;D++)(0,_.OV)(J).insertBefore(R[D],this)}else{if(!J){J=!1;break a}mzt(this,J)}J=!0}if(!J)return}else this.restamp&&FH$(this);pp$(this,!1,M);M&&!z&&Y2$(this);IIt&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.hasInstance=function(){return!!this.instance};
var mzt=function(M,z){var J=M.parentSignalProxy;if(AJ()){var R=_.S(_.kE(!0,void 0,"yf4Yhf"));var D=R.next().value;R=R.next().value;J=M.parentSignalProxy}else{var N;var Z=new qn((N=gmp(M))!=null?N:{},function(O){var X=$z(M.parentSignalProxy,O).getChangeRecordSignal([]);O=_.kE(void 0,void 0,"oT9mkc");var l=new u_(O);Z.effect(function(){if(M.getDisableTemplateUpdate&&!M.getDisableTemplateUpdate()){var e=X();l.notifyPath(dH(e.path),{value:e.value})}});
return l});
M.parentSignalProxy.childSignalProxies.push(Z);var B=J=Z}J=XeH(M.templateInfo,M.templateInfo.nodeInfoList,J,{eventListenerHost:M.eventListenerHost,hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,enabledSignal:AJ()?D:void 0,getModel:function(){return gmp(M)}}).root;
M.instance={root:J,children:[],hidden:!1,signalProxy:B,getTemplateUpdatesEnabled:D,setTemplateUpdatesEnabled:R};B=_.S(J.childNodes);for(D=B.next();!D.done;D=B.next())M.instance.children.push(D.value);(0,_.OV)(z).insertBefore(M.instance.root,M)},gmp=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var z={},J;
for(J in M)M.hasOwnProperty(J)&&(z[J]=M[J]);return z}},FH$=function(M){if(M.instance){var z=M.instance.children;
if(z.length){var J=(0,_.OV)(z[0]).parentNode;if(J){J=(0,_.OV)(J);for(var R=0;R<z.length;R++)J.removeChild(z[R])}}AJ()?M.instance.setTemplateUpdatesEnabled(!1):M.instance.signalProxy.dispose();M.instance=void 0}},pp$=function(M,z,J){z=z||!J;
M.instance&&M.instance.hidden!==z&&(M.instance.hidden=z,zFe(z,M.instance.children))},Y2$=function(M){if(AJ()){var z=M.instance;
z&&gf(M.parentSignalProxy.owner,function(){return!z.getTemplateUpdatesEnabled()})&&z.setTemplateUpdatesEnabled(!0)}else M.setDisableTemplateUpdate(!1)};
_.rX.Object.defineProperties(Wa.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var M=this;return gf(this.parentSignalProxy.owner,function(){return jgQ(M).getWithPath([])})},
set:function(M){M||(AJ()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));jgQ(this).setWithPath([],!!M)}}});
_.rX.Object.defineProperties(Wa,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Wa);var sg$=[],aQ=function(){var M=HTMLElement.apply(this,arguments)||this;M.as="item";M.indexAs="index";M.itemsIndexAs="itemsIndex";M.targetFramerate=20;M.notifyDomChange=!1;M.isDetached=!1;M.JSC$13445_renderDebouncer=null;M.instances=[];M.chunkingId=null;M.chunkCount=null;M.shouldMeasureChunk=!1;M.shouldContinueChunking=!1;M.renderStartTime=null;M.JSC$13445_didCallConnected=!1;return M};
_.w(aQ,HTMLElement);var nmQ=function(M){M.itemSignalImpl!=null||(M.itemSignalImpl=new u_(_.kE(sg$,void 0,"YBrqgf")));return M.itemSignalImpl},hFV=function(M,z){Array.isArray(z)||(z=sg$);
nmQ(M).setWithPath([],z)};
_.P=aQ.prototype;_.P.showHideChildren=function(M){for(var z=_.S(this.instances),J=z.next();!J.done;J=z.next())zFe(M,J.value.children)};
_.P.notifyPath=function(M,z){M=dH(M);M[0]==="items"&&(M.length===1?hFV(this,z):nmQ(this).setWithPath(M.slice(1),z))};
_.P.canNotifyPath=function(M){return M==="items"};
_.P.attributeChangedCallback=function(M,z,J){if(this.JSC$13445_didCallConnected)throw Error("Pg`"+M);M==="as"?this.as=J:M==="index-as"?this.indexAs=J:M==="items-index-as"?this.itemsIndexAs=J:M==="initial-count"?this.initialCount=Number(J):M==="notify-dom-change"?this.notifyDomChange=J!==null:M==="target-framerate"&&(this.targetFramerate=Number(J))};
_.P.disconnectedCallback=function(){this.isDetached=!0;for(var M=0;M<this.instances.length;M++)y5v(this,M);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.P.connectedCallback=function(){var M=this,z=nmQ(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var D=z(),N=dH(D.path);if(N[0]===void 0||N[0]==="splices"||N[0]==="length")M.debounceRender();else{var Z=N[0];if(Z=M.instances[typeof Z==="string"?Math.floor(Number(Z)):Z])N=[M.as].concat(_.Yj(N.slice(1))),Z.signalProxy.notifyPath(N,D)}});
this.JSC$13445_didCallConnected=!0;Tr$?RF0():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var J=(0,_.OV)((0,_.OV)(this).parentNode),R=0;R<this.instances.length;R++)J.insertBefore(this.instances[R].root,this);this.chunkingId&&this.render()}};
_.P.debounceRender=function(){this.JSC$13445_renderDebouncer=_.Iq(this.JSC$13445_renderDebouncer,cN,this.JSC$13445_renderImpl.bind(this));_.oq(this.JSC$13445_renderDebouncer)};
_.P.render=function(){this.debounceRender();_.Q7()};
_.P.JSC$13445_renderImpl=function(){var M=this;if(!this.parentSignalProxy.isDisposed){var z=this.items,J=H7V(this,z.length);c5u(this,z,J);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){M.chunkingId=null;if(M.shouldMeasureChunk){var R=performance.now()-M.renderStartTime;M.chunkCount=Math.round(Math.ceil(1E3/M.targetFramerate)/R*M.chunkCount)||1}M.shouldContinueChunking&&M.debounceRender()}));
IIt&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var H7V=function(M,z){var J=z,R=M.instances.length;if(M.initialCount){if(M.chunkCount){var D=Math.min(Math.max(z-R,0),M.chunkCount);J=Math.min(R+D,z)}else J=Math.min(z,M.initialCount),D=Math.max(J-R,0),M.chunkCount=D||1;M.shouldMeasureChunk=D===M.chunkCount;M.shouldContinueChunking=J<z;M.renderStartTime=performance.now()}return J},c5u=function(M,z,J){for(var R=0;R<J;R++){var D=M.instances[R],N=z[R];
D?(D.signalProxy.setWithPath([M.as],N),D.signalProxy.setWithPath([M.indexAs],R)):dzS(M,N,R)}for(z=M.instances.length-1;z>=R;z--)J=M,D=z,y5v(J,D),_.S(J.instances.splice(D,1)).next().value.signalProxy.dispose()},y5v=function(M,z){M=M.instances[z];
z=(0,_.OV)(M.root);for(var J=0;J<M.children.length;J++)z.appendChild(M.children[J])},dzS=function(M,z,J){var R={};
z=Object.assign({},KH$(M),(R[M.as]=z,R[M.indexAs]=J,R[M.itemsIndexAs]=J,R));var D=new qn(z,function(Z){if(Z!==M.as&&Z!==M.indexAs){if(Z===M.itemsIndexAs)return $z(D,M.indexAs);var B=$z(M.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.kE(void 0,void 0,"T21Pqc");var O=new u_(Z);D.effect(function(){var X=B();O.notifyPath(dH(X.path),{value:X.value})});
return O}});
M.parentSignalProxy.childSignalProxies.push(D);R=XeH(M.templateInfo,M.templateInfo.nodeInfoList,D,{eventListenerHost:M.eventListenerHost,getModel:function(){var Z={};return Object.assign({},KH$(M),(Z[M.as]=D.model[M.as],Z[M.indexAs]=D.model[M.indexAs],Z[M.itemsIndexAs]=D.model[M.indexAs],Z))},
hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,methodInvocationRequirement:XpQ,enabledSignal:M.stampingEnabled}).root;z={root:R,children:[],signalProxy:D};R=_.S(R.childNodes);for(var N=R.next();!N.done;N=R.next())z.children.push(N.value);R=(R=M.instances[J+1])?R.children[0]:M;(0,_.OV)((0,_.OV)(M).parentNode).insertBefore(z.root,R);M.instances[J]=z},KH$=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var z={},J;
for(J in M)M.hasOwnProperty(J)&&(z[J]=M[J]);return z}};
aQ.prototype.itemForElement=function(M){var z=this,J=this.instances.find(function(R){return R.children.includes(M)});
if(J)return gf(this.parentSignalProxy.owner,function(){return J.signalProxy.getWithPath([z.as])})};
aQ.prototype.indexForElement=function(M){var z=this.instances.findIndex(function(J){return J.children.includes(M)});
return z>=0?z:void 0};
_.rX.Object.defineProperties(aQ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var M=this;return gf(this.parentSignalProxy.owner,function(){return nmQ(M).getWithPath([])})},
set:function(M){hFV(this,M)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.rX.Object.defineProperties(aQ,{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",aQ);var $zp,ubS;_.Vo=new _.Nh("STATE_STORE_TOKEN");$zp=new _.Nh("SELECT_TOKEN");ubS=new _.Nh("DISPATCH_TOKEN");var kGn={getSelectFn:function(){var M;return(M=_.JF().resolve(_.zw($zp)))!=null?M:Dzc},
getDispatchFn:function(){var M;return(M=_.JF().resolve(_.zw(ubS)))!=null?M:_.ia().dispatch.bind(_.ia())},
getAppStore:function(){return _.JF().resolve(_.Vo)}},Nrn,Z7p=!1;var II8=new RlS({traceAllComponents:_.U("web_tracing_all_components"),exportToCsi:_.U("web_tracing_export_to_csi"),exportBreadcrumbs:_.U("web_enable_tracing"),bufferSize:_.NC("web_max_tracing_events"),enabledSpansArray:_.ZR("web_tracing_enabled_spans"),exportToDevTools:_.U("web_tracing_export_to_devtools")});uG8("yt.telemetry.tracingConfig",II8);var Qgb=function(){};var Xpn=void 0;var q2k=function(){};
q2k.prototype.hasAttribute=function(M){if(M==="dir")return!1;if(M==="disable-upgrade"){var z,J;return(J=(z=this.hostElement)==null?void 0:z.hasAttribute("disable-upgrade"))!=null?J:!1}throw Error("Qg`"+M);};
q2k.prototype.attributeChangedCallbackWrapper=function(M,z,J){if(M==="disable-upgrade"&&this.__isUpgradeDisabled&&J===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var R;((R=this.hostElement)!=null?R:this).isConnected&&this.connectedCallback()}else z===J||this.__isReflecting||this.attributeChangedCallback(M,z,J)};
q2k.prototype.getExtraMethodsToForward=function(){for(var M=this,z=[],J=_.S(WH$),R=J.next(),D={};!R.done;D={tagName$jscomp$54:void 0,name$jscomp$573:void 0},R=J.next())D.name$jscomp$573=R.value,R=void 0,D.name$jscomp$573==="_setPendingProperty"?(D.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),R=function(N){return function(Z,B,O){jN(N.tagName$jscomp$54,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return M._setPendingProperty(Z,B,O)}}(D)):R=function(N){return function(){return M[N.name$jscomp$573].apply(M,
_.Yj(_.H4.apply(0,arguments)))}}(D),z.push([D.name$jscomp$573,
R]);return z};
for(var GGG=UzJ(QgB((0,_.Fe)(q2k))),jgn=["disabled","disable-upgrade"],aIu=(0,_.Fe)(function(){}),VYJ=new Set(Object.getOwnPropertyNames(aIu.prototype)),gmo=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Yj(VYJ))),FH8=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),WH$=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),EmJ=new Set([].concat(_.Yj(FH8),_.Yj(WH$),_.Yj(VYJ))),fIv=_.S(EmJ),LHg=fIv.next();!LHg.done;LHg=fIv.next())LER.add(LHg.value);var mz8={created:function(){cCw(this);this.initializeInjection()}};var $zo=!1,Df=window.ShadyDOM,LHR=["appendChild","insertBefore","removeChild","replaceChild"],fIp=[Node];Df&&fIp.push(Df.Wrapper);var Mo0,z5o,DiG={};var S5=new Set,Nf="",Neo="";var P5,Zf=new Set;var oOG=new Set("context didCallReady is info params signalProxy".split(" ")),lAp="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),e53="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var A5J=lS({entities:OMH}),i7k=new bd(A5J);var CQk=function(){return _.vU.apply(this,arguments)||this};
_.w(CQk,_.vU);_.rX.Object.defineProperties(CQk.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return i7k}}});
_.u([_.Gp()],CQk);_.EE=[KZ.prototype,CQk.prototype];_.fZ={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var M=this,z={};setTimeout(function(){var J;return _.Pv((J=M.hostElement)!=null?J:M,"yt-live-chat-add-tooltip-target",z)},0);
this.handler_=z.handler},
detached:function(){if(this.handler_){var M;this.handler_.removeElementFromSupportingTooltips((M=this.hostElement)!=null?M:this)}this.handler_=null}}};_.XH=new _.Nh("ICON_MANAGER_TOKEN");var b7B=[48,20,18,16,15,13,12],$iG=new Map,h5H=new Set,gO3=new Set,nO0=new Set,mic=new Set,sMo=new Set,HL8=new Promise(function(M){var z=!1,J=!1,R=!1,D=[],N=function(Z){if("detail"in Z)if(Z=Z.detail,Z.name==="yt-icons")yjH(Z),z=!0;else if(Z.name==="yt-sys-icons")yjH(Z),J=!0;else{var B;((B=Z.name)==null?0:B.includes("yt-sys-icons"))&&Z.size!==24&&(yjH(Z,!0),D.push(Z.size),D.length===b7B.length&&(R=!0))}z&&J&&R&&(window.removeEventListener("iron-iconset-added",N),M())};
window.addEventListener("iron-iconset-added",N)}),dip=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"]]);_.LZ={};_.LZ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.CD,computeHref_:function(M,z){z=z===void 0?!1:z;if(!M||M.commandExecutorCommand)return null;var J=$6n(M,z);return z||J!==null?J?_.U("enable_polymer_resin")?_.hr(J).toString():J:null:(_.yA(new _.xN("computeHref was null",this.is,M)),null)},
computeOptionalHref_:function(M){return this.computeHref_(M,!0)},
computeNofollow_:function(M){return M?gCe(M)?"nofollow":null:null},
computeIcon_:function(M){return M&&M.iconType?_.oE(M.iconType):""},
resolveCommand:function(M,z,J){z=z===void 0?{}:z;return _.e5(M,this.hostElement,z,J===void 0?!1:J)}};var Mo2,AE;_.r5J={};Mo2=null;
AE={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_=nkR(this.viewroot));_.au(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var M=this;this.unobserve_();if(_.U("kevlar_vimio_use_shared_monitor"))Vow(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 z=[];this.visibilityOptionVisible_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=z}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){uoY(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var M=_.cj(this.parentNode,function(J){var R,D=(R=J.polymerController)!=null?R:J;return!!D.getVisibilityObserverForChild&&D.getVisibilityObserverForChild()},!0);
if(M){var z;this.localVisibilityObserver_=((z=M.polymerController)!=null?z:M).getVisibilityObserverForChild()}else Mo2||(Mo2=nkR()),this.localVisibilityObserver_=Mo2;return this.localVisibilityObserver_},visibilityCallback:function(M){M?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.U("kevlar_use_vimio_behavior")||(AE={});AE&&!_.U("kevlar_use_vimio_behavior")&&(delete AE.attached,delete AE.detached);_.r5J.YtVisibilityObserverBehavior=[AE];var z5p={};z5p.YtVisualElementBehavior=[_.r5J.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.U("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var M=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportShown(this,void 0,M)}},
onHidden:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.U("kevlar_vimio_use_shared_monitor")){var M=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportHidden(this,void 0,M)}},
getVisibilityLogger:function(){return _.U("kevlar_use_vimio_behavior")?_.UU():null},
shouldSkipLogging:function(){if(_.HW("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var M=this.getParentRenderer&&this.getParentRenderer();if(!M)return!1;var z,J=(z=M.polymerController)!=null?z:M;if(!J.data)return!1;M=this.data.trackingParams;M=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:M;var R;z=(R=J.data)==null?void 0:R.trackingParams;var D,N;z=((D=J.data)==null?0:D.loggingDirectives)?(N=J.data)==null?void 0:N.loggingDirectives.trackingParams:z;return M&&z&&M===
z}}];var LJ0=new Map,FH;var xWb=function(M){this.layer=M},oh=function(M){return M.layer!==void 0?M.layer:M.parent?oh(M.parent):M.layer=0};var M18;_.f={};M18=0;_.f.YtRendererBehavior=[_.LZ.YtComponentBehavior,z5p.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_:_.U("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var M,z;(z=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||z.removeEventListener("scroll",_.ou(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();EOn(this.hostElement);T5V(_.sE(),this.hostElement);i3.delete(this.hostElement)},
registerRenderer:function(M){var z;((z=M.polymerController)!=null?z:M).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(M),this.markDirty())},
unregisterRenderer_:function(M){this.useVimio_||(this.childCache_.delete(M),this.markDirty())},
attached:function(){var M=this,z=this.getParentRenderer();if(z){var J,R,D;(R=(J=(D=z.polymerController)!=null?D:z).registerRenderer)==null||R.call(J,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var N,Z;(Z=(N=this.monitorScrollElement)!=null?N:this.hostElement)==null||Z.addEventListener("scroll",_.ou(this,this.onScroll))}_.no.addJob(function(){Aj0(M.hostElement)},8);
J=new xWb(this.screenLayer||void 0);(z=i3.get(z))&&z.layerNode&&(J.parent=z.layerNode);z={};n7w(this.hostElement,(z.isRenderer=!0,z.layerNode=J,z[tSo]=this.data,z))},
getParentRenderer:function(){for(var M=this.hostElement.parentNode,z,J;M&&((z=i3.get(M))==null||!z.isRenderer)&&!((J=M.polymerController)!=null?J:M).isRenderer_;)M=M.parentNode||M.host;return M},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.U("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.cW("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.U("debug_web_ve_data")&&this.data.trackingParams){var M="";try{M=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(J){_.nc(J)}if(M){var z=Dve(M,1);z!==void 0&&(this.hostElement.dataset.veIndex=String(z));M=Dve(M,2);
M!==void 0&&(this.hostElement.dataset.ve=String(M))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.U("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.pe(this.data.loggingDirectives.trackingParams)),this.visualElement=_.v5(_.Gm(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var M=this.data.targetId;_.oxQ(_.sE(),M,this.hostElement)}else T5V(_.sE(),this.hostElement)},
onScroll:function(){var M=Date.now();M-this.lastHandledScroll_<50||(this.lastHandledScroll_=M,this.markDirty())},
markDirty:function(){_.U("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():z3p(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var M=this.getParentRenderer();if(M&&(M=i3.get(M))&&M.layerNode)return oh(M.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Yj(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++)this.sendImpression(this.data.impressionEndpoints[M]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(M){M.clickTrackingParams&&delete M.clickTrackingParams;var z,J;(M==null?0:(z=M.commandMetadata)==null?0:(J=z.webCommandMetadata)==null?0:J.sendPost)?_.kQ(this.hostElement,[M,{impression:!0}]):_.Bv(this.hostElement,[M],this.hostElement)},
logExplicitClick:function(M){var z=_.y5(this.getScreenLayer());if(z){var J,R=(J=M.polymerController)!=null?J:M;M=R.visualElement;R=R.trackingParams||R.clickTrackingParams;!M&&R&&(M=_.pe(R));M&&_.fY(z,M)}}}];var Jjp={},i_=function(){return _.vU.apply(this,arguments)||this};
_.w(i_,_.vU);i_.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
i_.prototype.onPdgItemBehaviorClick=i_.prototype.onPdgItemBehaviorClick;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],i_.prototype,"data",void 0);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],i_.prototype,"onPdgItemBehaviorClick",null);_.u([_.Gp()],i_);Jjp.YtPdgLiveChatItemBehavior=[i_.prototype,_.f.YtRendererBehavior];var R5V;var DiJ;_.CZ={};_.CZ.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var b_=function(){var M=zi.apply(this,arguments)||this;M.switchTemplateAtRegistration=!1;return M};
_.w(b_,zi);b_.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||N93(this),_.s8R(this,"doRender"),this.doRender())};
b_.prototype.debounceRender=function(){this.templatingFn&&_.Vc(this,"doRender",this.doRender)};
b_.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.nc(Error("$g"))};
b_.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.u([eIp()],b_);var Nep=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,r_={},kZH=(r_[1]={filterString:null,isUnwrappable:null,unwrap:null},r_[2]={filterString:function(M,z,J){return Bn(J)},
isUnwrappable:function(M){return M instanceof $q},
unwrap:function(M){return qE(M)}},r_[3]={filterString:function(M,z,J){return Nep.test(J)?J:n3.toString()},
isUnwrappable:function(M){return Fq(M)},
unwrap:function(M){return _.Yq(M)}},r_[4]={filterString:function(){return n3.toString()},
isUnwrappable:function(M){return M instanceof GA},
unwrap:function(M){return _.xq(M).toString()}},r_[5]={filterString:function(M,z,J){return J},
isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M.toString()}},r_[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(M){return M instanceof _.f3},
unwrap:function(M){return NVc(M)}},r_[8]={filterString:function(M,z,J){J=String(J).toLowerCase();
return P40(M,z,J)?J:"zClosurez"},
isUnwrappable:null,unwrap:null},r_[10]={filterString:null,isUnwrappable:null,unwrap:null},r_);rP[Hl["default"]]=O6G;var T98=[];(function(){var M=Lq;Lq=function(z){M==null||M(z);sU(function(){for(var J=0;J<z.length;J++)IO8(z[J])})}})();var PIk=function(){var M=_.vU.apply(this,arguments)||this;M.hasUnmounted=!1;return M};
_.w(PIk,_.vU);_.P=PIk.prototype;_.P.beforeRegister=function(){var M=this.doIdomRender;this.templatingFn?_.nc(Error("Zg")):(this.templatingFn=M,this.switchTemplateAtRegistration=!0,Z6H(this))};
_.P.attached=function(){};
_.P.detached=function(){IO8(this.hostElement)};
_.P.renderIdom=function(){throw Error("bh");};
_.P.doIdomRender=function(){var M=this;bfG(this.hostElement,function(){M.renderIdom()})};
_.u([_.Gp()],PIk);var SWQ=[b_.prototype,PIk.prototype];var ZLg,k1S=function(){return ZLg!==void 0?ZLg:ZLg=document.createElement("template")};
document.head.appendChild(k1S().content);var Be$;var OLv,Tet=function(){return OLv!==void 0?OLv:OLv=document.createElement("template")};
document.head.appendChild(Tet().content);var IAQ;var oOJ=document.head,XB$=oOJ.appendChild,lAv;if(IAQ===void 0){var e5k=document.createElement("template");_.t(e5k,"\x3c!--css-build:shady--\x3e");e5k.content.insertBefore(Tet().content.cloneNode(!0),e5k.content.firstChild);IAQ=e5k}lAv=IAQ;XB$.call(oOJ,lAv.content);var QMa,Ui$=function(){return QMa!==void 0?QMa:QMa=document.createElement("template")};
document.head.appendChild(Ui$().content);var vOp;var G1$=document.head,wBJ=G1$.appendChild,xi2;if(vOp===void 0){var tou=document.createElement("template");_.t(tou,"\x3c!--css-build:shady--\x3e");tou.content.insertBefore(Ui$().content.cloneNode(!0),tou.content.firstChild);vOp=tou}xi2=vOp;wBJ.call(G1$,xi2.content);var jMQ=document.head,pBJ=jMQ.appendChild,FJ$;if(Be$===void 0){var YWk=document.createElement("template");_.t(YWk,"\x3c!--css-build:shady--\x3e");YWk.content.insertBefore(k1S().content.cloneNode(!0),YWk.content.firstChild);Be$=YWk}FJ$=Be$;pBJ.call(jMQ,FJ$.content);var miV,gOk=function(){return miV!==void 0?miV:miV=document.createElement("template")};
document.head.appendChild(gOk().content);var sMp;_.Ah=new _.Nh("DARK_THEME_TOKEN");var JDp=new _.R_("accessibilityProperties");var zeG=new _.R_("layoutProperties");var Ren=new _.R_("imageType");var nO2={};if("ytAttributedStringLinkHoverColor"in nO2)throw Error("eh`ytAttributedStringLinkHoverColor");(function(M,z){nO2[M]="value"in z&&"unit"in z?Ut0(M,z):function(J){try{return z(J)}catch(R){throw Error("ch`"+M+"`"+R.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var h5V=function(M){var z=this;this.holdTime=M===void 0?500:M;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(J){var R=new CustomEvent("LONG_PRESS"),D;(D=J.changedTouches[0].target)==null||D.dispatchEvent(R)};
this.ontouchstart=function(J){z.longPressTimeout=_.xC(_.no,function(){z.onlongpress(J);z.longPressOccurred=!0},z.holdTime)};
this.ontouchmove=function(){_.no.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!0};
this.ontouchend=function(J){if(z.longPressTimeout&&!z.longPressOccurred&&!z.moveOccurred){var R;(R=J.changedTouches[0].target)==null||R.dispatchEvent(new Event("click"))}_.no.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!1}};var dtc=function(M,z){h5V.call(this,z);var J=this;this.callback=M;this.onlongpress=function(R){var D;(D=J.callback)==null||D.call(J,R)}};
_.w(dtc,h5V);var K5p=function(M,z){var J=Object.assign({},z);M=_.S(new Map([["ontouchstart",M.ontouchstart],["ontouchend",M.ontouchend],["ontouchmove",M.ontouchmove]]));for(var R=M.next(),D={};!R.done;D={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},R=M.next()){var N=_.S(R.value);R=N.next().value;N=N.next().value;D.eventName$jscomp$101=R;D.eventHandler$jscomp$1=N;z[D.eventName$jscomp$101]=function(Z){return function(B){var O;(O=J[Z.eventName$jscomp$101])==null||O.call(J,B);(0,Z.eventHandler$jscomp$1)(B)}}(D)}};_.Rb=new _.Nh("COMMAND_HANDLER_TOKEN");var GZG=new _.R_("parallelCommand");var t1p=new _.R_("performOnceCommand");var xt0=new _.R_("serialCommand");var jxw=void 0;var yjV=function(){this.data=[];this.consumer=null};
yjV.prototype.push=function(M){this.consumer?this.consumer(M):this.data.push(M)};var rZ={};_.kE(rZ,void 0,"sgPmTd");_.kE(null,void 0,"jypsq");_.kE(null,void 0,"mWiOof");var yRc=new yjV;var h3H=[IcS,ooJ,XYQ,e0k,lcg,TRv,Q3V,Ub$];var r2G=new _.R_("bracketTextDecorator");var fe=new _.R_("highlightTextDecorator");_.Ce=new _.Nh("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var L5w=function(){},HL$;
(HL$=window.requestIdleCallback)==null||HL$.bind(window);var i6n={calledOnce:!1,state:"visible"},A2R={calledOnce:!1,state:"hidden"};var cjJ=new _.Nh("ICON_WIZ_COMPONENT_TOKEN");_.vS=_.Mf(function(M){var z=M.icon;var J=M.active;var R=M.className;var D=M.style;var N=M.dataSelected;var Z=M.dataDisabled;var B=M.role;var O=M.animateIcon;var X=M.themeOverride;var l=M.ariaHidden;var e=M.ariaExpanded;var Q=M.ariaLabel;var v=M.tabindex;var x=M.id;var m=M.size;var y=M.iconFilter;var H=M.onKeydown;return _.T(_.I,{cond:z,then:function(){var q=_.JF().resolve(cjJ);return _.T(q,{icon:z,dataSelected:N,dataDisabled:Z,animateIcon:O,themeOverride:X,ariaExpanded:e,tabindex:v,id:x,active:J,
size:m,role:B,className:R,ariaHidden:l,ariaLabel:Q,style:function(){return D!=null&&D()||m==null||!m()?D==null?void 0:D():"width: "+(m==null?void 0:m())+"px;height: "+((m==null?void 0:m())+"px;")},
iconFilter:y,onKeydown:H})}})},"b");
_.vS.idomCompat={callbacks:{onKeydown:!0}};var UT8=window.devicePixelRatio||1;var xTR=new Map([["yt_outline_bag_black_24","bag"]]);var MK=function(M){var z=this;this.margin=.1;this.whenInViewportWithMargin=M;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){z.requestScan()});
window.addEventListener("touchend",function(){z.requestScan()});
window.addEventListener("updateui",function(){z.requestScan()});
var J=new _.A_((0,_.xF)(this.requestScan,this),100);window.addEventListener("scroll",function(){J.fire()},!0);
window.addEventListener("resize",(0,_.xF)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){z.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.xF)(this.requestScan,this))};
MK.prototype.observe=function(M){this.observationTargets.includes(M)||this.observationTargets.push(M)};
MK.prototype.unobserve=function(M){this.observationTargets=this.observationTargets.filter(function(z){return z!==M})};
MK.prototype.requestScan=function(){var M=this;this.scanRequested||(sU(function(){dia(M)}),this.scanRequested=!0)};
var dia=function(M){var z=(1+M.margin)*(document.documentElement.clientHeight||window.innerHeight);M.observationTargets=M.observationTargets.filter(function(J){var R=J.getBoundingClientRect();(R=z>R.top&&!!R.height)&&M.whenInViewportWithMargin(J);return!R&&J.parentNode});
M.scanRequested=!1};
MK.prototype.disconnect=function(){this.observationTargets=[]};var KJJ,uou;KJJ=_.S(_.kE(YHb(),void 0,"O3X2wd"));_.$iJ=KJJ.next().value;uou=KJJ.next().value;window.addEventListener("resize",function(){uou(YHb())});var qWa={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},WJ$=void 0,aA$=window.innerWidth,Vo$=window.innerHeight;window.addEventListener("resize",function(){WJ$=void 0});var EOQ;if("IntersectionObserver"in window)EOQ=smG();else{if(WJ$===void 0){var fAv;fAv="matchMedia"in window?window.matchMedia(qWa.landscape+","+qWa.portrait).matches:void 0;WJ$=fAv!==void 0?fAv:aA$>=930&&Vo$>=550||aA$>=550&&Vo$>=930}EOQ=WJ$?{observe:function(M){sU(function(){var z;(z=M.onViewportEntered)==null||z.call(M)})},
unobserve:function(){}}:new MK(function(M){sU(function(){var z;
(z=M.onViewportEntered)==null||z.call(M)})})}var mT3=EOQ;var LJ2=_.Mf(function(M){var z=!1,J=_.AL("img",function(R){_.pq(function(){z=!0;R.onload=null})});
_.jP(function(){var R,D=(R=M.data)==null?void 0:R.call(M),N,Z=(N=M.getSrc)==null?void 0:N.call(M).cb,B;R=(B=M.config)==null?void 0:B.call(M);if(B=J.value)if(N=function(X,l){if(!z)return Z?Z(X,l):X},yDp(B,R),_.U("web_image_dont_reload_same_src")&&he3(B,D,N))_.U("web_image_dont_reload_same_src_simulate_load")&&B.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var O;nHG(B,D||null,N,R,(O=M.lazy)==null?void 0:O.call(M))}},"v0I2p");
return _.T("img",{el:J})},"c");
LJ2.idomCompat=!0;_.rv=_.Mf(function(M){var z=function(){var J,R=M.data(),D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8,I3,vY,te,wR,qb,cY,Pu,yV;var Ik={contentMode:(D=M.contentMode)==null?void 0:D.call(M),loadedClass:(N=M.loadedClass)==null?void 0:N.call(M),isPreloaded:(Z=M.isPreloaded)==null?void 0:Z.call(M),notifyOnLoaded:(B=M.notifyOnLoaded)==null?void 0:B.call(M),notifyOnUnloaded:(O=M.notifyOnUnloaded)==null?void 0:O.call(M),preferredThumbnail:(X=M.preferredThumbnail)==null?void 0:X.call(M),preserveHeight:(l=M.preserveHeight)==
null?void 0:l.call(M),preserveWidth:(e=M.preserveWidth)==null?void 0:e.call(M),objectPosition:(Q=M.objectPosition)==null?void 0:Q.call(M),targetWidth:(v=M.targetWidth)==null?void 0:v.call(M),targetHeight:(x=M.targetHeight)==null?void 0:x.call(M),shouldShowPlaceholder:(m=M.shouldShowPlaceholder)==null?void 0:m.call(M),useWidth:(y=M.useWidth)==null?void 0:y.call(M),isToggled:(H=M.isToggled)==null?void 0:H.call(M),alt:(q=M.alt)==null?void 0:q.call(M),className:(b=M.className)==null?void 0:b.call(M),
onerror:M.onerror,onload:M.onload,style$:((V=M.style$)==null?void 0:V.call(M))||((E=M.style)==null?void 0:E.call(M)),color:(L=M.color)==null?void 0:L.call(M),width:(z8=M.width)==null?void 0:z8.call(M),height:(O8=M.height)==null?void 0:O8.call(M),"aria-hidden$":(Pu=(I3=M["aria-hidden$"])==null?void 0:I3.call(M))!=null?Pu:(vY=M.ariaHidden)==null?void 0:vY.call(M),draggable:(te=M.draggable)==null?void 0:te.call(M),"data-disabled$":(yV=(wR=M["data-disabled$"])==null?void 0:wR.call(M))!=null?yV:(qb=M.dataDisabled)==
null?void 0:qb.call(M),size:(cY=M.size)==null?void 0:cY.call(M)};return dTG(R,Ik,(J=M.hideOn404)==null?void 0:J.call(M))};
return _.T(_.tg,null,_.T(_.w3,{when:function(){var J;return((J=z())==null?void 0:J.type)==="image"}},function(){return _.T(LJ2,{data:function(){return z().image},
getSrc:{cb:function(J,R){var D=z().image.sources,N=z().config.isPreloaded,Z=z().config.useWidth,B=z().config.targetWidth,O=z().config.targetHeight,X=z().config.preferredThumbnail;return _.vH8(R,D,N,Z,B,O,X)||""}},
config:function(){var J=z().config,R;for(R in J)J[R]===void 0&&delete J[R];return J},
lazy:M.renderLazy})}),_.T(_.w3,{when:function(){var J;
return((J=z())==null?void 0:J.type)==="icon"}},function(){return _.T(_.vS,{icon:function(){return z().iconName},
role:function(){return z().config.role},
className:function(){return z().config.className},
style:function(){return z().config.style$+";width: "+(z().config.width+"px;height: ")+(z().config.height+"px;color: ")+(z().config.color+";")},
ariaLabel:function(){return z().config["aria-label$"]},
ariaHidden:function(){return z().config["aria-hidden$"]},
dataDisabled:function(){return z().config["data-disabled$"]},
active:function(){return z().config.isToggled},
size:function(){return z().config.size}})}))},"d");
_.rv.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Aj2=function(M){return function(z){return _.T(XXn,null,function(){var J=z.data(),R=_.YE(z.config);return _.T(Cc,null,function(){return void M(J,R)})})}}(Wfw),uzG=_.Mf(function(M){var z=function(R){var D,N=_.zL(function(Q){D=F8(function(){for(var v=_.S(l()),x=v.next();!x.done;x=v.next()){x=a_H(x.value);
x=typeof x==="string"?document.createTextNode(x):x;if(!(x instanceof Node)){v=new _.xN("Part is not a node",x,typeof x);_.nc(v);break}Q.appendChild(x)}})}),Z=JM(function(){return Nhc(R())},{isEqual:$T8}),B=_.ba(M.config),O=function(){var Q,v=Z();
return!((Q=B())==null||!Q.ariaLabel)||!(v.commandRuns&&v.commandRuns.length!==0||v.paragraphStyleRuns&&v.paragraphStyleRuns.length!==0)},X=JM(B,{isEqual:EHn}),l=function(){var Q=DTo(Z(),X());
SHb(Q,X());return Z().content?I_8(Z().content,Q).parts:[]},e=!0;
_.jP(function(){Z();X();if(e)e=!1;else{var Q=l();Promise.resolve().then(function(){var v=N.value;if(v){v.innerText="";var x;(x=D)==null||x();D=_.ph(v,function(){return _.T(V7w,{parts:Q})})}})}},"YJG4lf");
return _.T("span",{el:N,class:function(){return Z()&&aOc(Z(),B())},
dir:function(){var Q;return((Q=B())==null?0:Q.userInput)?"auto":void 0},
"aria-label":function(){var Q;return O()?(Q=B())==null?void 0:Q.ariaLabel:void 0},
role:function(){return O()?"text":void 0}})},J;
return((J=M.config)==null?0:J.renderedFromFormattedString)?z(M.text):_.T(_.I,{cond:M.text,then:z})},"e");
uzG.idomCompat=!0;_.m3=_.Mf(function(M){var z=_.ba(M.text),J=f_G(M);M.renderedFromFormattedString!==void 0&&(J.renderedFromFormattedString=!0);return _.U("attr_string_reactive")?_.T(uzG,{text:z,config:J}):_.T(_.I,{cond:function(){var R;return z()&&((R=Nhc(z()))==null?void 0:R.content)},
then:function(){return _.T(Aj2,{data:M.text,config:J})},
debugInstance:"Apcuac"})},"f");
_.m3.idomCompat=!0;var AD3=function(M,z,J){z=z===void 0?"unknown":z;J=J===void 0?{}:J;_.xN.call(this,M+" ("+z+")",Object.assign({},{name:"YtWcwError",tagName:z},J));Object.setPrototypeOf(this,this.constructor.prototype)};
_.w(AD3,_.xN);_.zkp=new WeakMap;_.MA0=!1;var rDY,JY8,b2e;_.zn=Symbol("gh");_.Dv=Symbol("hh");rDY=Symbol("ih");JY8=new Set(Object.getOwnPropertyNames(Element.prototype));b2e=Symbol("jh");var iLJ=_.Mf(function(M){return _.T("yt-attributed-string",{"aria-label":M.ariaLabel,hidden:M.hidden,id:M.id,class:M.className,"force-default-style":M.forceDefaultStyle},_.T(_.m3,{text:M.data,ariaLabel:M.ariaLabel,ellipsisTruncate:M.ellipsisTruncate,isOverlay:M.isOverlay,linkInheritColor:M.linkInheritColor,noPreWrap:M.noPreWrap,noWrap:M.noWrap,userInput:M.userInput,noEndpoints:M.noEndpoints,headerRuns:M.headerRuns}))},"g");
_.U("web_wiz_attributed_string")&&_.N7(iLJ,"yt-attributed-string",{props:{ariaHidden:_.zn,ariaLabel:_.zn,className:_.zn,ellipsisTruncate:_.zn,isOverlay:_.zn,linkInheritColor:_.zn,noEndpoints:_.zn,noStyleRuns:_.zn,noLinkColor:_.zn,noPreWrap:_.zn,noWrap:_.zn,skipOnClick:_.zn,userInput:_.zn,headerRuns:_.zn,id:_.zn,data:_.zn,hidden:_.zn,forceDefaultStyle:_.zn,text:_.Dv,stopPropagation:_.Dv,disableUpgrade:_.Dv,disable:_.Dv,slot:_.Dv}});var Js=function(){return _.g.apply(this,arguments)||this};
_.w(Js,_.g);Js.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},Wfw(this.data,this.config))};
_.u([_.p(SWQ),_.W("design:type",Object)],Js.prototype,"ytIdomTemplatingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Js.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Js.prototype,"ariaLabel",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"disable",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"ellipsisTruncate",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"isOverlay",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"linkInheritColor",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"noPreWrap",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"noWrap",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"userInput",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Js.prototype,"noEndpoints",void 0);_.u([_.Y(),_.W("design:type",Array)],Js.prototype,"headerRuns",void 0);
_.u([_.cU({is:"yt-attributed-string",disableElementRegistration:!0})],Js);
_.U("web_wiz_attributed_string")||_.d(Js,"yt-attributed-string",function(){if(sMp===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
M.content.insertBefore(gOk().content.cloneNode(!0),M.content.firstChild);sMp=M}M=sMp;return M},{mode:2});var CIu,bL$,kYH;CIu=function(){this.firstThumbnailLoaded=!1};
_.rjV=function(){bL$||(bL$=new CIu);return bL$};
kYH=function(M){var z=_.rjV();z.firstThumbnailLoaded||(z.firstThumbnailLoaded=!0,_.hd("ftl",M))};
CIu.prototype.reset=function(){this.firstThumbnailLoaded=!1};var D1p=0,ZPH=new WeakMap,Pxw=0,Zv=new Set;var M1t,z3v=function(){return M1t!==void 0?M1t:M1t=document.createElement("template")};
document.head.appendChild(z3v().content);var J2$;var I6Y,XVc,RY;_.ON=_.R3.caches;RY=function(){};
RY.prototype.open=function(M){return _.ON.open(R3t(M))};
RY.prototype.has=function(M){return _.ON.has(R3t(M))};
RY.prototype.delete=function(M){return _.ON.delete(R3t(M))};
RY.prototype.match=function(M,z){var J=this,R,D,N,Z,B,O;return _.k(function(X){switch(X.nextAddress){case 1:return X.yield(J.keys(),2);case 2:R=X.yieldResult,D=_.S(R),N=D.next();case 3:if(N.done){X.jumpTo(5);break}Z=N.value;return X.yield(J.open(Z),6);case 6:return B=X.yieldResult,X.yield(B.match(M,z),7);case 7:if(O=X.yieldResult)return X.return(O);N=D.next();X.jumpTo(3);break;case 5:return X.return()}})};
var l63=function(){};
_.w(l63,RY);var R3t=function(M){if(M.includes(":"))throw Error("mh`"+M);return M+":"+_.Gw("CacheStorage get")};
l63.prototype.keys=function(){var M,z,J,R,D,N,Z,B,O;return _.k(function(X){if(X.nextAddress==1)return M=[],z=_.Gw("CacheStorage keys"),X.yield(_.ON.keys(),2);J=X.yieldResult;R=_.S(J);for(D=R.next();!D.done;D=R.next())N=D.value,Z=_.Tte(N),B=Z.originalName,O=Z.datasyncId,O===z&&M.push(B);return X.return(M)})};var DJ=function(){var M=_.g.apply(this,arguments)||this;M.objectURL=null;M.loadTime=Infinity;return M};
_.w(DJ,_.g);_.P=DJ.prototype;_.P.renderIdom=function(){OPo(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&H2R(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.P.objectFitToContentMode=function(M){switch(M){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.P.logThumbnailFailureVe=function(){var M=_.O3(197497);_.ln(_.Gm(),M);var z=_.y5();z&&M&&z&&_.VC(z,[M])};
_.P.loadImageFromCacheIfExists=function(M){var z=this,J=M.target;(J==null?0:J.src)&&QBR(J.src).then(function(R){z.objectURL=_.yZ(R).toString();z.setSrc(J,z.objectURL)}).catch(function(){})};
_.P.onError=function(M){var z=this;if(_.U("web_use_cache_for_image_fallback")){var J=M.target;J&&QBR(J.src).then(function(R){z.objectURL=_.yZ(R).toString();z.setSrc(J,z.objectURL)}).catch(function(){_.U("kevlar_woffle_log_thumbnail_failure_ve")&&z.logThumbnailFailureVe();
_.U("kevlar_woffle_fallback_image")&&z.setSrc(J,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.P.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.P.setConfig=function(){var M=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(z){M.loadImageFromCacheIfExists(z);M.revokeObjectURL();Btb(M.hostElement)},
onerror:function(z){M.onError(z)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.U("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.P.setSrc=function(M,z){z&&(M.src=z)};
_.u([_.p(SWQ),_.W("design:type",Object)],DJ.prototype,"ytIdomTemplatingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],DJ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],DJ.prototype,"alt",void 0);_.u([_.Y(),_.W("design:type",Boolean)],DJ.prototype,"ftlEligible",void 0);_.u([_.Y(),_.W("design:type",Number)],DJ.prototype,"height",void 0);_.u([_.Y(),_.W("design:type",Boolean)],DJ.prototype,"notifyOnLoaded",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],DJ.prototype,"notifyOnUnloaded",void 0);_.u([_.Y(),_.W("design:type",String)],DJ.prototype,"objectFit",void 0);_.u([_.Y(),_.W("design:type",String)],DJ.prototype,"objectPosition",void 0);_.u([_.Y(),_.W("design:type",String)],DJ.prototype,"preferredThumbnail",void 0);_.u([_.Y(),_.W("design:type",Boolean)],DJ.prototype,"preserveHeight",void 0);_.u([_.Y(),_.W("design:type",Boolean)],DJ.prototype,"preserveWidth",void 0);
_.u([_.Y({value:!0}),_.W("design:type",Boolean)],DJ.prototype,"useWidth",void 0);_.u([_.Y({value:function(){return!_.cW("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.W("design:type",Boolean)],DJ.prototype,"shouldRenderLazy",void 0);_.u([_.Y(),_.W("design:type",Number)],DJ.prototype,"width",void 0);_.u([_.cU({is:"yt-image",disableElementRegistration:!0})],DJ);
_.d(DJ,"yt-image",function(){if(J2$===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(z3v().content.cloneNode(!0),M.content.firstChild);
J2$=M}M=J2$;return M},{mode:2});var NK=function(){return _.g.apply(this,arguments)||this};
_.w(NK,_.g);NK.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var M=_.$S(this.data.onVisibleCommand);M&&this.ytComponentBehavior.resolveCommand(M)}};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],NK.prototype,"ytVisibilityBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NK.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],NK);
_.d(NK,"yt-bumper-user-edu-content-view-model",function(){if(DiJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;R5V===void 0&&(R5V=document.createElement("template"));var R=R5V;J.call(z,R.content.cloneNode(!0),M.content.firstChild);DiJ=M}M=DiJ;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Dtk;var N9k,PX$=function(){if(N9k!==void 0)return N9k;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Dtk===void 0&&(Dtk=document.createElement("template"));var R=Dtk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return N9k=M};var Ssu;_.Pm={};Ssu=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"]);_.Pm.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var M=this.getContext_();return M?M.getTaskManager():_.no},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var M=_.Pv(this.hostElement,"yt-get-context-provider",{});M.detail&&M.detail.contextProvider?this.cachedProviderNode_=M.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Ssu.has(this.hostElement.localName)},
getNetworkManager:function(){var M=this.getContext_();if(M)return M.getNetworkManager()}};var tA3,Z6V,B9t,kZV;_.Su=function(M){var z=Z6V.get(M);if(z&&(z=z.pop()))return kZV++,z;B9t++;try{var J=document.createElement(M)}catch(R){throw new _.xN("ElementPool failed to create element",M,R.message);}return J};
tA3=function(M){var z=M.is;if(z){var J=Z6V.get(z);J||(J=[],Z6V.set(z,J));var R=_.HW("ELEMENT_POOL_CONFIG")||{};J.length>=(R[z]!==void 0?R[z]:_.HW("ELEMENT_POOL_DEFAULT_CAP",0))||J.push(M)}else _.yA(new _.xN("Element pool should only handle custom elements:",M.nodeName))};
Z6V=new Map;B9t=0;kZV=0;var TL=new WeakMap,x1p=new WeakMap;var T9$;_.ZJ=function(M,z,J){J=J===void 0?_.sj():J;this.JSC$13711_defaultPriority=M;this.signal=z;this.scheduler=J;this.nextJobDescriptor=0;this.JSC$13711_parkedJobs=[];this.scheduledJobs=new Map};
_.kK=function(M,z){if(z){var J=_.Eb();M.signal&&!_.fN(J,M.signal)?(J.addListener(M.signal,function(){M.processSignal()}),M.JSC$13711_parkedJobs.push({job:z,
priority:void 0})):O6J(M,z)}};
T9$=function(M,z){if(z!==M.JSC$13711_defaultPriority){M.JSC$13711_defaultPriority=z;for(var J=_.S(M.scheduledJobs.values()),R=J.next();!R.done;R=J.next())R=R.value,M.scheduler.cancelJob(R.jobId),R.jobId=M.scheduler.addJob(R.jobWrapper,z)}};
_.ZJ.prototype.flushJobs=function(){T9$(this,10);this.processSignal()};
_.ZJ.prototype.cancel=function(){for(var M=_.S(this.scheduledJobs),z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;this.scheduler.cancelJob(J.jobId);this.scheduledJobs.delete(z)}this.JSC$13711_parkedJobs=[]};
_.ZJ.prototype.processSignal=function(){for(var M=_.S(this.JSC$13711_parkedJobs),z=M.next();!z.done;z=M.next())z=z.value,O6J(this,z.job,z.priority);this.JSC$13711_parkedJobs=[]};
var O6J=function(M,z,J){J=J||M.JSC$13711_defaultPriority;if(J===10)kn(z);else{var R=M.nextJobDescriptor++,D=function(){z();M.scheduledJobs.delete(R)},N=M.scheduler.addJob(D,J);
M.scheduledJobs.set(R,{jobWrapper:D,jobId:N,priority:J})}};_.RO(Yo3);var m1p={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};eMR({beforeVisit:function(M){if(S5.has(M.type)){var z;(z=M.props).idomKey!=null||(z.idomKey=M.type)}else M.type.TAG_NAME&&(Nf=M.type.TAG_NAME)},
afterRender:function(M,z){var J;Nf=(J=z==null?void 0:z.type)!=null?J:""},
didPatch:function(){Nf=""}});var IO$;_.Bm={};IO$={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Bm.YtRendererstamperBehavior=[_.Pm.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var M in this.stampDom){var z=this.stampDom[M];z&&z.id&&this.addReactiveSchema({type:"observe",method:{methodName:vve(z.id),args:[{type:"wildcard",path:M}]}})}else{(M=(this.constructor.generatedFrom||this).observers)||(M=[]);for(z in this.stampDom){var J=this.stampDom[z];J&&J.id&&M.push(vve(J.id)+"("+z+".*)")}this.constructor.generatedFrom.observers=M}},
addStampDomObserverFns_:function(){for(var M in this.stampDom){var z=this.stampDom[M];z.id?(this[vve(z.id)]=this.rendererStamperObserver_.bind(this,M,z.id),this.hasDataPath_[M]=!1):(z=new _.xN("Bad rendererstamper config",this.is+":"+M),_.nc(z))}},
rendererStamperObserver_:function(M,z,J){if(J.path==M){if(J.value===void 0&&!this.hasDataPath_[M])return;this.hasDataPath_[M]=J.value!==void 0}this.rendererStamperApplyChangeRecord_(M,z,J)},
rendererStamperApplyChangeRecord_:function(M,z,J){var R=this.renderJobsMap_[z],D=null;M==J.path?(J=J.value,_.WY(J)||(J=J===void 0||J===null?[]:[J]),M=this.stampDom[M],M.mapping&&(D=this.stampDomArray_.bind(this,J,z,M.mapping,M.reuseComponents,M.events,M.stamperStableList)),R&&R.cancel(),J=M.usePageScheduler?this.getTaskManager():void 0,R||M.initialRenderPriority==void 0)?M.renderPriority==void 0||R||(R=new _.ZJ(M.renderPriority,M.waitForSignal,J),this.renderJobsMap_[z]=R):(R=new _.ZJ(M.initialRenderPriority,
M.waitForSignal,J),this.renderJobsMap_[z]=R,D=function(N,Z){N();T9$(Z,10)}.bind(this,D,R)):D=M+".splices"==J.path?this.stampDomArraySplices_.bind(this,M,z,J.value):this.forwardRendererStamperChanges_.bind(this,M,z,J);
R?_.kK(R,D):D()},
forwardRendererStamperChanges_:function(M,z,J){var R=J.path.slice(M.length+1),D=this.getStampContainer_(z),N=R.indexOf("."),Z=R.substring(0,N),B=!1,O=0,X=parseInt(Z,0);if(Z[0]=="#"){B=parseInt(Z.substring(1),0);X=this.get(M);var l=this.get([M,Z]);X[B]==l?O=B:O=X.indexOf(l);B=!0}else isNaN(X)||(O=X,B=!0);B&&(R=R.substring(Z.length+1),N=R.indexOf("."));Z=_.pu(D).children[O];var e;if(D=(e=Z==null?void 0:Z.polymerController)!=null?e:Z)R="data"+R.slice(N),typeof D.notifyPath!=="function"?_.yA(new _.xN("notifyPath missing",
this.is+": "+M+", "+z)):J.value?D.notifyPath(R,J.value):D.notifyPath(R)},
stampDomArraySplices_:function(M,z,J){if(J&&J.indexSplices){var R=this.getStampContainer_(z);if(R){for(var D=_.pu(R),N=wVY(this.stampDom[M].reuseComponents),Z=J.indexSplices.length,B=0;B<Z;B++){for(var O=J.indexSplices[B],X=D.children[O.index],l=O.removed.length;l>0;l--)X&&X.parentElement&&(_.pu(X.parentElement).removeChild(X),N&&tA3(X),X=D.children[O.index]);l=this.stampDom[M].mapping;for(var e=O.index+O.addedCount,Q=document.createDocumentFragment(),v=N,x=O.index;x<e;x++){var m=O.object[x],y=U1b(l,
m);if(y){var H=l[y];m=m[y];y=this.getComponentName_(H,m);var q=X?TL.has(X):!1;v&&X&&X.is==y&&q?(y=X,this.telemetry_.reuse++,X=X.nextElementSibling):v&&X&&q?(y=this.createComponent_(H,m,N),q=_.pu(X).nextElementSibling,D.insertBefore(y,q),pV0(this.is,D,X,N),X=q):(v=!1,y=this.createComponent_(H,m,N),Q.appendChild(y));this.deferRenderStamperBinding_(y,H,m)}else H=new _.xN("Unimplemented type",M,z,R.tagName,Object.keys(m)[0]),_.nc(H)}D.insertBefore(Q,X)}this.flushRenderStamperComponentBindings_();this.stampDom[M].events&&
_.Pv(this.hostElement,"yt-rendererstamper-finished",{container:R})}else M=new _.xN("Container object not found",z,this.hostElement?this.hostElement.is:""),_.nc(M)}},
stampDomArray_:function(M,z,J,R,D,N){var Z=this.getStampContainer_(z);if(Z)if(z=_.pu(Z),R=wVY(R),M){var B=0,O=0,X;if(N=N===void 0?_.cW("STAMPER_STABLE_LIST",!1):N||!1)for(X=z.firstElementChild;X&&!TL.has(X)&&M.length>O;){N=M[O];var l=U1b(J,N);if(l){if(this.getComponentName_(J[l],N[l])!=X.is){var e=this.createComponent_(J[l],N[l],R),Q=_.pu(X).nextElementSibling;Q?z.insertBefore(e,Q):z.appendChild(e);pV0(this.is,z,X,R);X=e}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(X,J[l],N[l]);B++;
O++;X=_.pu(X).nextElementSibling}else O++}FLp(this.is,z,B,R);B=X;if(M.length>O){N=document.createDocumentFragment();for(l=M.length;O<l;O++)if(e=M[O],Q=U1b(J,e))X=this.createComponent_(J[Q],e[Q],R),this.deferRenderStamperBinding_(X,J[Q],e[Q]),N.appendChild(X);B&&_.pu(B).parentNode&&X&&!TL.has(X)?z.insertBefore(N,B):z.appendChild(N)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();D&&_.Pv(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else FLp(this.is,z,0,
R);else M=new _.xN("Container object not found",z,this.hostElement?this.hostElement.is:""),_.nc(M)},
getStampContainer_:function(M){return this.$&&this.$[M]||_.SN(this.hostElement).querySelector("#"+M)},
getComponentName_:function(M,z){return typeof M==="string"?M:M.matcher?M.matcher.call(this,z):M.component},
createComponent_:function(M,z,J){M=this.getComponentName_(M,z);try{var R=Zf.has(M)||S5.has(M);if(J&&!R){var D=_.Su(M);try{_.Tp(D)}catch(N){J="Failed to clear styles for "+M+".",N.message&&(J+=" Original error: "+N.message),_.yA(new _.xN(J))}}else D=document.createElement(M)}catch(N){return D="YtRendererStamperBehavior failed to create "+M+".",N.message&&(D+=" Original description: "+N.message),N.message="YtRendererStamperBehavior failed to create element",_.Hb(N,D),IO$.hasOwnProperty(M)?_.yA(N):_.nc(N),
document.createElement("SPAN")}this.telemetry_.create++;return D},
deferRenderStamperBinding_:function(M,z,J){this.deferredBindingTasks_.push({component:M,typeOrConfig:z,data:J})},
flushRenderStamperComponentBindings_:function(){for(var M=0,z=this.deferredBindingTasks_.length;M<z;M++){var J=this.deferredBindingTasks_[M];if(!J)break;var R=void 0,D=void 0,N=void 0,Z=void 0,B=J.component,O=J.typeOrConfig;J=J.data;var X=(Z=B.polymerController)!=null?Z:B;Z=B.loggingStatus;try{Z&&(Z.isRendererStamper=!0);if(typeof O!=="string"){for(N in O.attributes)O.attributes[N]===!0?B.setAttribute(N,""):O.attributes[N]===!1?B.removeAttribute(N):B.setAttribute(N,O.attributes[N]);for(D in O.params)X[D]=
O.params[D],B!==X&&jN(B.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(R in O.properties){var l=O.properties[R];if(l){var e=GYc(l);X[R]=this.get(e);B!==X&&jN(B.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(R==="on-tap"||R==="on-click"){var Q=this.get(e);B.addEventListener("click",Q);x1p.set(B,{property:R,listener:{type:"element",eventName:"click",handler:Q}})}}else{var v=new _.xN("Undefined property binding",R);_.nc(v)}}}if(O.classListBinding){var x=GYc(O.classListBinding),
m=x?this[x]:null;if(m)for(R=0;R<m.length;R++)_.kz(B,m[R],!0)}X.data=J}finally{Z&&(Z.isRendererStamper=!1)}if(R=TL.get(B))B.hidden=!1,TL.delete(B),_.no.cancelJob(R)}this.deferredBindingTasks_.length=0}}];_.OQ=new _.Nh("KEY_MANAGER_TOKEN");var gv8={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"};_.a9=_.Mf(function(M){var z=_.AL("a",M.ref),J=M.aTagConfig?M.aTagConfig:_.o4(function(){var R,D,N,Z,B;var O=(B=_.$S((N=M.command)==null?void 0:N.call(M)))!=null?B:(Z=M.command)==null?void 0:Z.call(M);return _.qf({innertubeCommand:O,skipOnClick:(R=M.skipOnClick)==null?void 0:R.call(M),defaultTarget:(D=M.target)==null?void 0:D.call(M)})||{}},void 0,"I5WLmc");
_.jP(function(){z.value._data=J()._data;z.value.params=J().params},"STb8Se");
return _.T("a",{el:z,href:function(){return J().href$},
rel:function(){return J().rel$},
class:function(){var R,D;return(D=J().className)!=null?D:(R=M.className)==null?void 0:R.call(M)},
style:function(){var R;if((R=M.style)==null?0:R.call(M))return M.style();var D;return((D=M.disabled)==null?0:D.call(M))?"pointer-events:none":""},
"aria-haspopup":function(){return!!J()["aria-haspopup$"]},
"force-new-state":XY(function(){return J()["force-new-state$"]}),
title:XY(function(){var R,D;return(D=J().title$)!=null?D:(R=M.title)==null?void 0:R.call(M)}),
role:XY(function(){var R;return((R=M.role)==null?void 0:R.call(M))||J().role$}),
target:XY(function(){return J().target$}),
dir:XY(function(){var R;return((R=M.dir)==null?void 0:R.call(M))||J().dir}),
tabindex:function(){var R;return J().tabindex$?Number(J().tabindex$):(R=M.tabIndex)==null?void 0:R.call(M)},
"aria-hidden":function(){var R,D;return(D=J()["aria-hidden$"])!=null?D:(R=M.ariaHidden)==null?void 0:R.call(M)},
"aria-label":function(){var R,D;return(D=J()["aria-label$"])!=null?D:(R=M.ariaLabel)==null?void 0:R.call(M)},
"aria-current":M.ariaCurrent,"aria-disabled":M.disabled,"aria-labelledby":M.ariaLabelledby,"aria-describedby":M.ariaDescribedby,"aria-selected":M.ariaSelected,"tab-identifier":M.tabIdentifier,"on:pointerdown":_.ol(function(R){var D,N;return void((N=(D=J()).onpointerdown)==null?void 0:N.call(D,R))}),
"on:click":_.ol(function(R){var D,N;(N=(D=J()).onclick)==null||N.call(D,R);var Z;(Z=M.onClick)==null||Z.call(M,R)}),
"on:focusin":_.ol(function(R){var D;(D=M.onFocusin)==null||D.call(M,R)}),
"on:focusout":_.ol(function(R){var D;(D=M.onFocusout)==null||D.call(M,R)})},M.children)},"h");var KLY={duration:1E3,easing:"ease",fill:"forwards"};_.RO(d1o);var uRR={duration:1E3,easing:"ease",fill:"forwards"},lO2=_.Mf(function(M){var z=_.AL("animated-rolling-character"),J=void 0,R=function(){var D,N;return Cu((D=M.character)==null?void 0:D.call(M))||Cu((N=M.previousCharacter)==null?void 0:N.call(M))};
_.jP(function(){if(M.marginMultiplier()){var D;(D=J)==null||D.cancel();if(R()){var N;D=((N=M.previousCharacter)==null?0:N.call(M))?Number(M.previousCharacter())+10:M.rollUp()?0:30;var Z;if((Z=M.shouldAnimate)==null||!Z.call(M)){var B,O;D-=$13((B=M.character)==null?void 0:B.call(M),(O=M.previousCharacter)==null?void 0:O.call(M),M.rollUp(),D)}}else{D=M.rollUp()?0:2;var X;(X=M.shouldAnimate)!=null&&X.call(M)||(N=D,Z=M.rollUp()?-1:1,D=N-Z)}z.value.style.marginTop="-"+D*M.marginMultiplier()+"px";var l;
if((l=M.shouldAnimate)==null?0:l.call(M)){var e,Q;J=qoo(z.value,(e=M.character)==null?void 0:e.call(M),(Q=M.previousCharacter)==null?void 0:Q.call(M),M.rollUp(),D,R(),M.marginMultiplier())}else{var v;z.value.style.display=((v=M.character)==null?0:v.call(M))?"":"none"}}},"vt9b9b");
return _.T("animated-rolling-character",{el:z,class:"animated-rolling-character-wiz"},_.T(_.I,{cond:R,then:function(){return _.T(oca,null)},
else:function(){return _.T(XL$,{character:M.character})}}))},"i");
lO2.idomCompat=!0;var WLR=_.U("web_enable_sink_animated_rolling_character_and_number")?lO2:d1o,e3g=_.U("web_enable_sink_animated_rolling_character_and_number")?lO2:_.lP(d1o),oca=_.Mf(function(){for(var M=[],z=1;z<30;z++)M.push(_.T("div",null,z%10));return _.T(_.MH,null,_.T("div",null,"\u00a0"),M,_.T("div",null,"\u00a0"))},"j"),XL$=_.Mf(function(M){var z=M.character;
return _.T(_.MH,null,_.T("div",null,"\u00a0"),_.T(_.I,{cond:function(){return!(z==null?0:z())||_.ko(z==null?void 0:z())},
then:function(){return _.T("div",null,"\u00a0")},
else:function(){return _.T("div",null,z)}}),_.T("div",null,"\u00a0"))},"k");_.RO(a68);var Qx2=_.Mf(function(M){var z=void 0,J=void 0,R=function(){var N;return((N=M.fontSizeMultiplier)==null?0:N.call(M))?M.heightPx()*M.fontSizeMultiplier():M.heightPx()},D=_.o4(function(){if(!M.numberText())return[];
var N,Z,B=((N=M.forceRollUp)==null?void 0:N.call(M))||!J||!((Z=M.numberValue)==null?0:Z.call(M))||J<M.numberValue(),O,X=M.numberText();N=R();Z=!((O=M.shouldAnimate)==null||!O.call(M));O=[];var l=0,e=0,Q=(z?z.replace(/\D/g,"").length:0)-(X?X.replace(/\D/g,"").length:0),v=z?z.split(/(\d)/).filter(Boolean):[];for(X=X.split(/(\d)/).filter(Boolean);Q<0;){var x=X[e];O.push({character:x,rollUp:B,marginMultiplier:N,shouldAnimate:Z});e++;Cu(x)&&Q++}for(;l<Q;)x=v[l],O.push({previousCharacter:x,rollUp:B,marginMultiplier:N,
shouldAnimate:Z}),l++,Cu(x)||Q++;for(;e<X.length;)Q=X[e],x=v[l],Cu(Q)===Cu(x)?(e++,l++):Cu(Q)?(l++,Q=void 0):Cu(x)&&(e++,x=void 0),O.push({character:Q,previousCharacter:x,rollUp:B,marginMultiplier:N,shouldAnimate:Z});z=M.numberText();var m;J=(m=M.numberValue)==null?void 0:m.call(M);return O},void 0,"B9AmNd");
return _.T("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return M.numberText()?["height: "+R()+"px;","line-height: "+M.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.T(_.G4,{each:D,keyBy:"INDEX"},function(N){return _.T(e3g,{character:function(){return N().character},
previousCharacter:function(){return N().previousCharacter},
marginMultiplier:function(){return N().marginMultiplier},
rollUp:function(){return N().rollUp},
shouldAnimate:function(){return N().shouldAnimate}})}))},"l");
Qx2.idomCompat=!0;_.Ut2=_.U("web_enable_sink_animated_rolling_character_and_number")?Qx2:a68;_.vc$=_.U("web_enable_sink_animated_rolling_character_and_number")?Qx2:_.lP(a68);var GZJ=function(M,z){this.fillAnimation=new Animation(VAw(M),document.timeline);this.strokeAnimation=new Animation(Ev3(z),document.timeline)};
GZJ.prototype.play=function(){var M,z;(z=(M=this.fillAnimation).play)==null||z.call(M);var J,R;(R=(J=this.strokeAnimation).play)==null||R.call(J)};
GZJ.prototype.cancel=function(){var M,z;(z=(M=this.fillAnimation).cancel)==null||z.call(M);var J,R;(R=(J=this.strokeAnimation).cancel)==null||R.call(J)};_.Tn=_.Mf(function(M){var z=M.model;var J=M.pointerDownEvent;var R=M.pointerUpEvent;var D=M.pointerLeaveEvent;M=_.AL("div");var N=_.UN({"border-radius":function(){return z().borderRadius}}),Z=_.AL("div"),B=_.AL("div"),O=_.S(_.eh(function(){return(R==null?0:R())||(D==null?0:D())?!1:!(J==null||!J())||!1})),X=O.next().value,l=O.next().value,e=void 0,Q=function(){!e&&B.value&&Z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(e=new GZJ(B.value,Z.value));
var q;(q=e)==null||q.play()},v=function(){var q;
(q=e)==null||q.cancel()},x=function(){var q;
(q=e)==null||q.cancel()};
_.jP(function(){(R==null?0:R())&&Q()},"YjVIpd");
_.jP(function(){(J==null?0:J())&&v()},"UrXvqb");
_.jP(function(){(D==null?0:D())&&x()},"QK6L8b");
O=_.ol(function(){Q();l(!1)});
var m=_.ol(function(){v();l(!0)}),y=_.ol(function(){x();
l(!1)});
_.pq(function(){if(e){var q;(q=e)==null||q.cancel();e=void 0}});
var H={};X=_.Qe("yt-spec-touch-feedback-shape",function(){return f6n(z().color)},(H["yt-spec-touch-feedback-shape--focused"]=function(){return!!z().focused&&!z().disabled},H["yt-spec-touch-feedback-shape--circular"]=function(){return!!z().circular},H["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!z().isExtended},H["yt-spec-touch-feedback-shape--down"]=X,H["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!z().triggerEvents},H));
return _.T("yt-touch-feedback-shape",{style:_.UN({"border-radius":"inherit"})},_.T("div",{el:M,class:X,style:_.UN({"margin-top":function(){return z().customTopExtend?"-"+z().customTopExtend+"px":void 0}}),
"on:mousedown":m,"on:mouseup":O,"on:pointerleave":y,"on:touchstart":m,"on:touchend":O,"aria-hidden":!0},_.T("div",{class:"yt-spec-touch-feedback-shape__stroke",style:N,el:Z}),_.T("div",{class:"yt-spec-touch-feedback-shape__fill",style:N,el:B})))},"m");
_.Tn.idomCompat=!0;var wLa={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 IY=_.lG();IY=IY.toLowerCase();if(_.BY(IY,"android")){var xt2=IY.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);xt2&&parseFloat(xt2[1])<100||IY.match("("+Object.keys(wLa).join("|")+")")};var t1a=_.Mf(function(M){return _.T(_.I,{cond:M.aTagConfig,then:function(z){return _.T(_.a9,{aTagConfig:z,disabled:M.disabled,className:M.className,style:M.style,title:M.title,ariaLabel:M.ariaLabel,ariaCurrent:function(){var J,R;return((J=M.toggleable)==null?void 0:J.call(M))&&((R=M.toggled)==null?void 0:R.call(M))},
ref:M.ref},M.children)},
else:function(){return _.T("button",{el:_.zL(M.ref),"on:click":_.ol(function(z){var J;return(J=M.onClick)==null?void 0:J.call(M,z)}),
class:M.className,title:M.title,style:M.style,disabled:M.disabled,"aria-pressed":function(){var z,J;return((z=M.toggleable)==null?0:z.call(M))?!((J=M.toggled)==null||!J.call(M)):void 0},
"aria-label":M.ariaLabel,"aria-disabled":M.visiblyDisabled,"aria-hidden":M.ariaHidden,tabindex:M.tabIndex},M.children)}})},"n"),pLV=_.Mf(function(M){var z=M.data;
var J=M.hasIconLeading;var R=M.hasIconLeadingTrailing;var D=M.hasIconTrailing;var N=M.iconButton;var Z=M.iconClassName;var B=M.secondaryIconClassName;var O=M.icon;var X=M.secondaryIcon;var l=M.textContentClassName;return _.T(oY,{className:"",style:"display: inherit; justify-content: center"},_.T(_.I,{debugInstance:"V4z1Uc",cond:function(){return O&&(J()||R()||(N==null?void 0:N()))},
then:function(){return _.T(oY,null,_.T("div",{class:Z,"aria-hidden":"true"},O==null?void 0:O()))}}),_.T(_.I,{debugInstance:"ok3btb",
cond:function(){return(z().buttonText||z().animatedTextProps||z().formattedButtonText)&&!(N==null?0:N())},
then:function(){return _.T(oY,null,_.T(jx$,{className:l,iconPosition:function(){return z().iconPosition},
text:function(){return z().buttonText},
oneOffCustomTextWrap:function(){return z().oneOffCustomTextWrap},
formattedButtonText:function(){return z().formattedButtonText},
animatedTextProps:function(){return z().animatedTextProps}}))}}),_.T(_.I,{debugInstance:"DO5Rz",
cond:D,then:function(){return _.T(oY,null,_.T("div",{class:Z},O==null?void 0:O()))}}),_.T(_.I,{debugInstance:"bnojSc",
cond:R,then:function(){return _.T(oY,null,_.T("div",{class:B},X==null?void 0:X()))}}),_.T(_.I,{debugInstance:"HN3kad",
cond:function(){return!z().disabled&&!0},
then:function(){return _.T(_.Tn,{model:function(){var e=z();return{color:e.style==="overlay-dark"?4:e.style==="overlay"?e.type==="filled"?4:3:e.type==="filled"||e.style==="call-to-action-inverse"||e.style==="mono-inverse"?2:1}}})}}))},"o"),jx$=_.Mf(function(M){var z=function(){var J,R;
return((J=M.iconPosition)==null?void 0:J.call(M))==="icon-with-label"||((R=M.oneOffCustomTextWrap)==null?void 0:R.call(M))};
return _.T("div",{class:M.className,"aria-hidden":function(){var J,R,D;return((J=M.ariaHidden)==null?void 0:J.call(M))&&(!((R=M.animatedTextProps)==null||!R.call(M))||!((D=M.formattedButtonText)==null||!D.call(M)))}},_.T(_.tg,null,_.T(_.w3,{when:function(){var J;
return(J=M.animatedTextProps)==null?void 0:J.call(M)}},function(){return _.T(_.vc$,{numberText:function(){return M.animatedTextProps().numberText},
numberValue:function(){return M.animatedTextProps().numberValue},
heightPx:function(){return M.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return M.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return M.animatedTextProps().shouldAnimate},
forceRollUp:function(){return M.animatedTextProps().forceRollUp}})}),_.T(_.w3,{when:function(){var J;
return(J=M.formattedButtonText)==null?void 0:J.call(M)}},function(){return _.T(_.m3,{text:function(){return Object.assign({},M.formattedButtonText(),{lineBreakMode:z()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":M.formattedButtonText().lineBreakMode,
alignment:z()?"TEXT_ALIGNMENT_CENTER":M.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!z()}})}),_.T(_.w3,{when:function(){var J,R;
return((J=M.iconPosition)==null?void 0:J.call(M))==="icon-with-label"&&((R=M.text)==null?void 0:R.call(M))}},function(){return _.T(_.m3,{text:function(){return{content:M.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.T(_.xy,null,function(){return M.text})))},"p"),F5S=_.Mf(function(M){return _.T(_.I,{debugInstance:"kM7Sgc",
cond:M.hasLabel,then:function(){var z;return _.T("label",{class:M.className},M.children,(z=M.textContent)==null?void 0:z.call(M))},
else:function(){return M.children}})},"q"),oY=_.Mf(function(M){return M.children},"r");var Ys2=_.Mf(function(M){var z=_.zL(),J=_.S(_.kE(void 0,void 0,"Z7xOte")),R=J.next().value,D=J.next().value;J=_.S(_.kE(void 0,void 0,"ppqp2e"));var N=J.next().value,Z=J.next().value;J=_.S(_.kE(0,void 0,"bD1Mhe"));var B=J.next().value,O=J.next().value;J=_.o4(function(){return B()===3?"ytPopoverComponentClosing":""},void 0,"kVITif");
var X=_.ol(function(){switch(B()){case 1:O(2);break;case 3:var l,e;(e=(l=z.value).hidePopover)==null||e.call(l);O(0);D(void 0);Z(void 0)}});
_.jP(function(){if(M.show()){var l;D((l=M.children)==null?void 0:l.call(M));var e;Z((e=M.location)==null?void 0:e.call(M));switch(B()){case 0:var Q,v;(v=(Q=z.value).showPopover)==null||v.call(Q);O(1);break;case 3:O(1);var x,m;(m=(x=z.value).hidePopover)==null||m.call(x);var y,H;(H=(y=z.value).showPopover)==null||H.call(y)}}else switch(B()){case 2:O(3);break;case 1:var q,b;(b=(q=z.value).hidePopover)==null||b.call(q);D(void 0);Z(void 0);O(0)}},"umhOQd");
_.mF(function(){});
return _.T("yt-popover",{popover:"manual",el:z,style:_.UN({left:function(){var l;return(l=N())==null?void 0:l.left},
top:function(){var l;return(l=N())==null?void 0:l.top},
bottom:function(){var l;return(l=N())==null?void 0:l.bottom},
right:function(){var l;return(l=N())==null?void 0:l.right}}),
class:_.Qe("ytPopoverComponentHost",J,M.classNames),"on:animationend":X},R)},"s");var mtJ={left:"0px",right:"auto",top:"0px",bottom:"auto"},gcv=function(){var M=this;this.registerTooltipElement=function(J){var R;M.tooltipElement=(R=J.querySelector("yt-popover"))!=null?R:void 0};
var z=_.S(_.kE(void 0,void 0,"z4iHWd"));this.state=z.next().value;this.setState=z.next().value;z=_.S(_.kE(void 0,void 0,"uKDcaf"));this.schedulerJobID=z.next().value;this.setSchedulerJobID=z.next().value},Jz3=function(M,z){var J=w4,R=_.no.addJob(function(){var D=sxg(J,M,z);
J.setState({text:z.text,location:D,anchor:M,offset:z.offset})},4,z.delay);
J.setSchedulerJobID(R)},RZn=function(){var M=w4,z=M.schedulerJobID();
z&&(_.no.cancelJob(z),M.setSchedulerJobID(void 0));M.setState(void 0)};
gcv.prototype.notify=function(M,z){var J;((J=this.state())==null?void 0:J.anchor)===M&&(J=sxg(this,M,z),this.setState({text:z.text,location:J,anchor:M,offset:z.offset}))};
var sxg=function(M,z,J){var R=z.getBoundingClientRect();z=window.innerWidth;var D=window.innerHeight,N=J.location,Z=J.offset;J=J.text;if(M=M.tooltipElement){var B=getComputedStyle(M);M=B.font;var O=GL(B.lineHeight),X=GL(B.paddingLeft),l=GL(B.paddingRight),e=GL(B.paddingTop);B=GL(B.paddingBottom);var Q=document.createElement("canvas").getContext("2d");Q.font=M;J={width:Q.measureText(J).width+X+l,height:O+e+B}}else J=void 0;M=J;if(!M)return mtJ;J=M.width;M=M.height;X=Z+M;e=Z+J;O=R.top>=X;X=D-R.bottom>=
X;l=R.left>=e;e=z-R.right>=e;B=N;switch(N){case "top":!O&&X&&(B="bottom");break;case "bottom":!X&&O&&(B="top");break;case "left":!l&&e&&(B="right");break;case "right":!e&&l&&(B="left")}switch(B){case "top":N=R.left+R.width/2-J/2;R=R.top-M-Z;break;case "bottom":N=R.left+R.width/2-J/2;R=R.bottom+Z;break;case "left":N=R.left-J-Z;R=R.top+R.height/2-M/2;break;case "right":N=R.right+Z;R=R.top+R.height/2-M/2;break;default:N=R.left+R.width/2-J/2,R=R.bottom+Z}Z=Object.assign({},mtJ);N+J>z?(Z.right="0px",Z.left=
"auto"):(Z.left=Math.round(Math.max(0,N)+window.scrollX)+"px",Z.right="auto");R+M>D?(Z.bottom="0px",Z.top="auto"):(Z.top=Math.round(Math.max(0,R)+window.scrollY)+"px",Z.bottom="auto");return Z};var w4;w4=new gcv;_.ncV=_.Mf(function(){var M=_.o4(function(){var J;return(J=w4.state())==null?void 0:J.text},void 0,"KoaMVc"),z=_.o4(function(){var J;
return(J=w4.state())==null?void 0:J.location},void 0,"R6s5tc");
return _.T("yt-tooltip",{class:"ytTooltipContainerHost",el:_.zL(w4.registerTooltipElement),"aria-hidden":"true"},_.T(Ys2,{classNames:"ytTooltipContainerContent",location:z,show:function(){return!!M()}},M))},"t");var BFp=CW("stamper-context");_.XC=_.Mf(function(M){var z=M.data;var J=M.icon;var R=M.iconName;var D=M.animateIcon;var N=M.secondaryIcon;var Z=M.secondaryIconName;var B=M.focusedOverride;var O=M.clientOnlyWizTooltipsEnabled;_.xn();var X=LLo(z),l=X.size,e=X.style;M=X.disabled;var Q=X.onTap,v=X.alignByText,x=X.aTagConfig,m=X.customColors,y=X.segmentedPosition,H=X.toggled,q=X.toggleable,b=X.accessibilityLabel,V=X.onToggle,E=X.iconPosition,L=X.oneOffCustomTextWrap,z8=X.disableTextEllipsis,O8=X.disableBackdropFilter,I3=X.tooltipText,
vY=X.ariaHidden,te=X.tabIndex,wR=X.buttonText,qb=X.formattedButtonText,cY=X.animatedTextProps,Pu=bPw(z,J,N,R,Z,B,D),yV=Pu.type;J=Pu.shouldFocus;R=Pu.hasIconLeading;D=Pu.hasIconTrailing;var Ik=Pu.hasIconLeadingTrailing,rR=Pu.hasIconOnly;N=Pu.hasIconOnly40;var ea=Pu.hasIconWithLabel;Z=Pu.iconButton;var ok=Pu.visiblyDisabled;B=Pu.overrideSmallSizeIcon;X=Pu.iconToRender;Pu=Pu.secondaryIconToRender;var s$=_.S(DUe(I3)).next().value,pw={},iJ={};return _.T(F5S,{className:_.Qe("yt-spec-button-shape-with-label",
(pw["yt-spec-button-shape-with-label--is-overlay"]=function(){return e()==="overlay"||e()==="overlay-dark"},pw)),
hasLabel:ea,textContent:function(){return _.T(jx$,{text:wR,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:E,formattedButtonText:qb,animatedTextProps:cY})}},_.T(t1a,{aTagConfig:x,
className:_.Qe("yt-spec-button-shape-next",function(){return rYR(yV())},function(){return ok()?void 0:MDH(e())},function(){return zZH(l())},(iJ["yt-spec-button-shape-next--disabled"]=ok,iJ["yt-spec-button-shape-next--focused"]=J,iJ["yt-spec-button-shape-next--icon-trailing"]=D,iJ["yt-spec-button-shape-next--icon-leading"]=R,iJ["yt-spec-button-shape-next--icon-leading-trailing"]=Ik,iJ["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Ik()&&!(wR()||qb())},iJ["yt-spec-button-shape-next--icon-button"]=
function(){return rR()||ea()},iJ["yt-spec-button-shape-next--icon-only-default"]=N,iJ["yt-spec-button-shape-next--align-by-text"]=v,iJ["yt-spec-button-shape-next--segmented-start"]=function(){return y()==="start"},iJ["yt-spec-button-shape-next--segmented-end"]=function(){return y()==="end"},iJ["yt-spec-button-shape-next--override-small-size-icon"]=B,iJ["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,iJ["yt-spec-button-shape-next--disable-text-ellipsis"]=z8,iJ["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!O8()&&!_.U("web_disable_backdrop_filter")},iJ)),
style:function(){var Nb=m();if(Nb){var MB=Nb.color;var vu=Nb.backgroundColor;Nb=Nb.borderColor;var Tc="";MB&&(Tc+="color: "+MB+";");vu&&(Tc+="background-color: "+vu+";");Nb&&(Tc+="border-color: "+Nb+";");MB={style:Tc}}else MB={};return MB.style},
onClick:function(Nb){Q==null||Q(Nb);q()&&(V==null||V(Nb))},
disabled:M,ariaLabel:b,toggleable:q,toggled:H,title:function(){return(O==null?0:O())||!I3()?"":I3()},
visiblyDisabled:ok,ariaHidden:vY,tabIndex:te,ref:function(Nb){(O==null?0:O())&&s$(Nb)}},_.T(pLV,{data:z,
hasIconLeading:R,hasIconLeadingTrailing:Ik,hasIconTrailing:D,iconButton:Z,icon:X,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:Pu})))},"u");
_.XC.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.N7(_.Mf(function(M){var z=M.data;var J=M.id;var R=M.className;var D=M.iconName;var N=M.animateIcon;var Z=M.secondaryIconName;M=_.S(_.kE(!1,void 0,"RyKHFc"));var B=M.next().value,O=M.next().value,X=function(){var e=_.JF().resolve(_.zw(_.OQ));e&&O(e.isKeyBoardInUse())},l=function(){O(!1)};
M=_.AL("yt-button-shape",function(e){if(_.JF().resolve(_.zw(_.OQ)))return e.addEventListener("focusin",X),e.addEventListener("focusout",l),function(){e.removeEventListener("focusin",X);e.removeEventListener("focusout",l)}});
return _.T("yt-button-shape",{el:M,id:J,class:R},_.T(_.I,{cond:z,then:function(){return _.T(_.XC,{data:z,iconName:D,secondaryIconName:Z,focusedOverride:B,animateIcon:N})}}))},"v"),"yt-button-shape",{props:{data:_.zn,
id:_.zn,className:_.zn,iconName:_.zn,animateIcon:_.zn,secondaryIconName:_.zn,clientOnlyWizTooltipsEnabled:_.zn,disableUpgrade:_.zn},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});_.N7(_.Mf(function(M){function z(){J().seconds&&N(Xaw({seconds:Number(J().seconds)-Date.now()/1E3}))}
var J=M.targetTimestamp;M=M.className;var R=_.S(_.kE("",void 0,"U1Q8Ae")),D=R.next().value,N=R.next().value;_.FT(function(){z();var Z=setInterval(function(){z()},1E3);
_.pq(function(){clearInterval(Z)})});
return _.T("yt-countdown",{class:_.Qe("ytCountDownHost",M)},_.T("div",null,D))},"w"),"yt-countdown",{props:{targetTimestamp:_.zn,
className:_.Dv}});_.lT=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.style;var D=M.useOutlinedIcon;var N=M.buttonOverrides;var Z=M.animatedTextProps;var B=M.onClick;var O=M.target;var X=_.AL("button-view-model",function(q){q.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var b=z().targetId;b&&_.oxQ(_.sE(),b,q);return function(){T5V(_.sE(),q)}}),l=function(){return z().iconName},e,Q=(e=_.JF().resolve(_.zw(_.Ah)))==null?void 0:e(),v=function(){var q=z();
var b=N==null?void 0:N(),V=Z==null?void 0:Z(),E=O==null?void 0:O();if(q){var L=OAH(q.type);var z8=!!q.title||!!q.titleFormatted;var O8=!(!q.iconName&&!q.iconImage);z8=O8&&!z8?"icon-only":O8?q.iconTrailing||q.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;z8==="icon-only-40"&&(L="text");var I3,vY=(I3=b==null?void 0:b.disabled)!=null?I3:q.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||q.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";V=V&&V.numberText&&!isNaN(Number(V.numberValue))?
V:void 0;I3=Object;O8=I3.assign;var te=q.title,wR=q.titleFormatted,qb=q.accessibilityText,cY=BCc(q.style),Pu=TCR(q.state),yV=Itb(q.buttonSize);E=kf8(q,X,vY,B,E);vY=vY&&!q.onDisabledTap;var Ik=SX8(q,X),rR=q.customFontColor,ea=q.customBackgroundColor;var ok=q.customBorderColor;var s$=q.customDarkThemeFontColor,pw=q.customDarkThemeBackgroundColor,iJ=q.customDarkThemeBorderColor;rR=Q&&s$?s$:rR;ea=Q&&pw?pw:ea;ok=Q&&iJ?iJ:ok;ok={color:rR?_.qG(rR):void 0,backgroundColor:ea?_.qG(ea):void 0,borderColor:ok?
_.qG(ok):void 0};q=O8.call(I3,{},{buttonText:te,formattedButtonText:wR,animatedTextProps:V,accessibilityLabel:qb,style:cY,type:L,state:Pu,size:yV,iconPosition:z8,onTap:E,disabled:vY,aTagConfig:Ik,customColors:ok,tooltipText:q.tooltip},b)}else q={style:"mono",type:"text",state:"active",size:"M"};q.focused=y();return q},x=function(){return iPw(v(),!!z().iconName)};
M=_.S(_.kE(!1,void 0,"bl7g4"));e=M.next().value;var m=M.next().value,y=e;M=_.ol(function(){var q=_.JF().resolve(_.zw(_.OQ));q&&m(q.isKeyBoardInUse());return!1});
e=_.ol(function(){m(!1);return!1});
_.jP(function(){var q,b=_.G(z==null?void 0:(q=z())==null?void 0:q.onVisible,_.dv);b&&_.u5(b,{disableClickTracking:!0})},"MLqBF");
var H=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.T("button-view-model",{el:X,class:_.Qe("yt-spec-button-view-model",J),"on:focusin":M,"on:focusout":e},_.T(_.I,{cond:function(){var q;return(z==null?0:(q=z())==null?0:q.iconImage)?{sources:[z().iconImage]}:void 0},
then:function(q){return _.T(_.XC,{data:v,icon:function(){return _.T(_.rv,{data:q,alt:"",targetWidth:x,targetHeight:x,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:H})},
else:function(){return _.T(_.XC,{data:v,icon:function(){return _.T(_.vS,{icon:l,active:function(){return(D==null?0:D())?!1:v().toggled},
animateIcon:function(){var q;return!!(R==null?0:(q=R())==null?0:q.animateIcon)},
size:x})},
clientOnlyWizTooltipsEnabled:H})}}))},"x");
_.lT.idomCompat={callbacks:{onClick:!0}};_.N7(_.Mf(function(M){return _.T("yt-button-view-model",{id:M.id,class:_.Qe(M.scopingClassName,M.classes),icon:function(){var z;return(z=M.icon)==null?void 0:z.call(M)},
"dialog-dismiss":function(){var z;return((z=M.dialogDismiss)==null?0:z.call(M))?"":void 0}},_.T(_.lT,{data:function(){var z;
return(z=M.data)==null?void 0:z.call(M)},
className:function(){var z;return(z=M.className)==null?void 0:z.call(M)},
style:function(){var z;return(z=M.style)==null?void 0:z.call(M)},
useOutlinedIcon:function(){var z;return(z=M.useOutlinedIcon)==null?void 0:z.call(M)},
buttonOverrides:function(){var z;return(z=M.buttonOverrides)==null?void 0:z.call(M)},
animatedTextProps:function(){var z;return(z=M.animatedTextProps)==null?void 0:z.call(M)},
onClick:function(z){var J;return(J=M.onClick)==null?void 0:J.call(M,z)}}))},"y"),"yt-button-view-model",{props:{data:_.zn,
className:_.zn,style:_.zn,useOutlinedIcon:_.zn,buttonOverrides:_.zn,animatedTextProps:_.zn,onClick:_.Dv,scopingClassName:_.zn,id:_.zn,icon:_.zn,dialogDismiss:_.zn,classes:_.zn,target:_.Dv}});var eu=function(){var M=_.g.apply(this,arguments)||this;M.isGoalActive=!0;return M};
_.w(eu,_.g);eu.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
eu.prototype.progressBarChanged=function(){var M=_.SN(this.hostElement).querySelector("#progress-bar-progress"),z,J,R,D=(R=Number((z=this.creatorGoalState)==null?void 0:z.currentGoalCount)/Number((J=this.creatorGoalState)==null?void 0:J.totalGoalCount)*100)!=null?R:0,N;M.style.width=((N=Math.min(D,100))!=null?N:0)+"%"};
eu.prototype.goalStateChanged=function(){var M;this.isGoalActive=((M=this.creatorGoalState)==null?void 0:M.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var z;M={"--yt-progress-bar-color":J28((z=this.creatorGoalState)==null?void 0:z.progressBarColor)};_.Tp(this.hostElement,M)};
eu.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.rX.Object.defineProperties(eu.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var M;return this.isGoalActive&&!((M=this.creatorGoalState)==null||!M.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.endTimestampMs){var z;M=Number((z=this.creatorGoalState)==null?void 0:z.endTimestampMs)/1E3;return{seconds:String(M)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.themedTargetImage){var z;M=_.G((z=this.creatorGoalState)==null?void 0:z.themedTargetImage,YQV);return this.isAppDarkTheme()?M==null?void 0:M.imageDark:M==null?void 0:M.imageLight}}}});
_.rX.Object.defineProperties(eu,{template:{configurable:!0,enumerable:!0,get:function(){return PX$()}}});
eu.prototype.goalStateChanged=eu.prototype.goalStateChanged;eu.prototype.progressBarChanged=eu.prototype.progressBarChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],eu.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);
_.u([_.Y({selectorArgs:["data.creatorGoalEntityKey"],selector:function(M,z){return _.Is(M.entities,"creatorGoalEntity",z)}}),
_.W("design:type",Object)],eu.prototype,"creatorGoalState",void 0);_.u([_.Y(),_.W("design:type",Object)],eu.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],eu.prototype,"isGoalActive",void 0);_.u([_.F("creatorGoalState","isGoalActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eu.prototype,"shouldShowCountdown",null);_.u([_.F("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],eu.prototype,"endTimestamp",null);
_.u([_.F("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],eu.prototype,"targetIconThemedImage",null);_.u([_.la("creatorGoalState.currentGoalCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eu.prototype,"progressBarChanged",null);_.u([_.la("creatorGoalState.creatorGoalState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eu.prototype,"goalStateChanged",null);
_.u([_.cU({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],eu);_.d(eu,"yt-creator-goal-progress-flow-view-model",function(){return PX$()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var h3V;var y2t;var Qn=function(){return _.g.apply(this,arguments)||this};
_.w(Qn,_.g);Qn.prototype.attached=function(){var M,z,J;if(this==null?0:(M=this.data)==null?0:(z=M.pdgPurchasedBumperLoggingDirectives)==null?0:(J=z.loggingDirectives)==null?0:J.trackingParams){var R,D,N;lt8(this==null?void 0:(R=this.data)==null?void 0:(D=R.pdgPurchasedBumperLoggingDirectives)==null?void 0:(N=D.loggingDirectives)==null?void 0:N.trackingParams)}};
Qn.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Qn.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Qn.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Qn.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Qn);
_.d(Qn,"yt-live-chat-item-bumper-view-model",function(){if(y2t===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;h3V===void 0&&(h3V=document.createElement("template"));var R=h3V;J.call(z,R.content.cloneNode(!0),M.content.firstChild);y2t=M}M=y2t;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var H6v;var c2a;_.Cn=function(M,z){this.data=M;this.actions=z;this.data=M;this.actions=z};
_.WS=function(){};_.UQ={};_.UQ.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(M,z){eZp(this.hostElement,M,z)},
getNavigationEndpointPopupAction:function(M){return Qpp(M,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(M,z){UU8(this.hostElement,M,z,this.openPopupConfig)}};var mU8=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Gn={};
_.Gn.YtEndpointBehavior=[_.UQ.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.HW("openPopupConfig");(this.useClickHandler=_.cW("useClickHandler",!1))?this.hostElement.addEventListener("click",Iu(this,this.onEndpointClick_)):(h1(this.hostElement,"tap",Iu(this,this.onEndpointTap_)),h1(this.hostElement,"touchend",Iu(this,this.onEndpointTouchEnd_)));h1(this.hostElement,"touchstart",Iu(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Iu(this,this.onEndpointTapStart_))},
onEndpointClick_:function(M){wZ3(this.hostElement,M,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(M){var z=this.hostElement,J=this.openPopupConfig,R=this.disableCommandHandlerOverride;R=R===void 0?!1:R;var D=vao(M);if(D){D.href&&VO(D.href);var N=M.detail;var Z=N.sourceEvent;N=N.preventer;Z=Z.button!==void 0?Z.button===0&&!jh(Z):N?!jh(N):!0;D.data&&Z&&Gfp(z,D,M,J,R)}},
onEndpointTouchEnd_:function(M){jh(M)||vao(M)&&M.preventDefault()},
onEndpointTapStart_:function(M){FZc(M)}}];_.wx={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(M){for(var z=_.VA.getInstance(),J=_.S(Object.keys(M)),R=J.next();!R.done;R=J.next()){var D=R.value;R=M[D];if(this&&this[R]){var N=z.actionRoutingMap.get(D);N||(N=new Map,z.actionRoutingMap.set(D,N));z.registerActionHandler(this,D,this[R].bind(this),N)}else D=Error("gd"),D.params=R,_.$y(D)}},
unregisterActionMap:function(M){_.fc(_.VA.getInstance(),M,this)}}]};var Yn=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_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.U("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:_.U("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:_.U("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:_.U("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var FY;var mN=new Map;var WZ0=window.matchMedia("(forced-colors: active)").matches;var dtV;var K5a;var $t2=new _.Nh("LOTTIE_LOADER_TOKEN");_.xK=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.animationName;var D=M.animationRef;var N=M.elRefForInterop;var Z=_.iW("lottie-component"),B;_.pq(function(){var X;return void((X=B)==null?void 0:X.destroy())});
var O;_.jP(function(){var X=_.YE(R);if(X!==O){O=X;var l=Object.assign({},{animationName:X,animationRef:_.YE(D)},_.YE(z));try{_.JF().resolve($t2)().then(function(v){var x;(x=B)==null||x.destroy();var m,y;x=(y=N==null?void 0:(m=N())==null?void 0:m.value)!=null?y:Z.value;m=l.animationRef;y=l.listeners;v=v.loadAnimation(Object.assign({},{container:x},l.animationConfig));m&&(m.lottieEl=v);if(y)for(x=_.S(Object.entries(y)),m=x.next();!m.done;m=x.next())y=_.S(m.value),m=y.next().value,(y=y.next().value)&&
v.addEventListener(m,y);B=v})}catch(v){X=v;
var e="LottieComponent error.";X.message&&(e+=" Original description: "+X.message);_.Hb(X,e);_.yA(X);var Q;((Q=l.listeners)==null?0:Q.error)&&l.listeners.error(X)}}},"lbhvPc");
return _.T(K4e,{cond:function(){return!(N==null?0:N())},
then:function(){return _.T("lottie-component",{class:_.Qe("ytLottieComponentHost",J),el:Z})}})},"z");_.N7(_.Mf(function(M){return _.T("ytd-lottie-player",{id:M.id,hidden:M.hidden,class:M.className,"aria-label":M.ariaLabel,style:"display: block;"},_.T(_.xK,{data:M.data,animationName:function(){var z;return((z=M.data().animationConfig)==null?void 0:z.name)||""},
animationRef:function(){return M.data().animationRef}}))},"A"),"ytd-lottie-player",{props:{data:_.zn,
id:_.zn,hidden:_.zn,className:_.zn,ariaLabel:_.zn}});var ts=function(){var M=_.g.apply(this,arguments)||this;M.animationRef={};M.delhiIconsEnabled=_.U("enable_web_delhi_icons");return M};
_.w(ts,_.g);_.P=ts.prototype;
_.P.handlePropertyChange=function(){var M=this.animatedIcon,z=this.active,J=this.isDarkTheme;if(M){var R=this.previousActive!==z;this.previousActive=z;this.animationRef.lottieEl?R&&this.toggleAnimation(z,M.totalFrames):z?this.initializeAnimationAsToggled(M.lottiePlayerProps,M.totalFrames):this.initializeAnimationAsUntoggled(M.lottiePlayerProps);M.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=M.type;this.lottiePlayerProps=this.computeLottiePlayerProps(M,J)}};
_.P.computeLottiePlayerProps=function(M,z){var J=this.deepCloneLottiePlayerProps(M);z?(z=M.nameDarkTheme,M=M.pathDarkTheme):(z=M.name,M=M.path);J.animationConfig.name=z;(z=mN.get(M))?J.animationConfig.animationData=z:J.animationConfig.path=M;return J};
_.P.initializeAnimationAsToggled=function(M,z){M.animationConfig.initialSegment=[z-1,z]};
_.P.initializeAnimationAsUntoggled=function(M){M.animationConfig.initialSegment=void 0};
_.P.toggleAnimation=function(M,z){if(M){var J;(J=this.animationRef.lottieEl)==null||J.playSegments([0,z],!0)}else{var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,1],!0)}};
_.P.deepCloneLottiePlayerProps=function(M){var z=Object.assign({},M.lottiePlayerProps.animationConfig);M=Object.assign({},M.lottiePlayerProps);M.animationConfig=z;return M};
ts.prototype.handlePropertyChange=ts.prototype.handlePropertyChange;_.u([_.Y(),_.W("design:type",Object)],ts.prototype,"animatedIcon",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ts.prototype,"active",void 0);_.u([_.Y(),_.W("design:type",Boolean)],ts.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],ts.prototype,"animatedIconType",void 0);_.u([_.Y(),_.W("design:type",Boolean)],ts.prototype,"previousActive",void 0);
_.u([_.Y(),_.W("design:type",Object)],ts.prototype,"lottiePlayerProps",void 0);_.u([_.Y(),_.W("design:type",Object)],ts.prototype,"animationRef",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ts.prototype,"delhiIconsEnabled",void 0);_.u([_.la("animatedIcon","active","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ts.prototype,"handlePropertyChange",null);_.u([_.cU({is:"yt-animated-icon",disableElementRegistration:!0})],ts);
_.d(ts,"yt-animated-icon",function(){if(K5a===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;dtV===void 0&&(dtV=document.createElement("template"));var R=dtV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);K5a=M}M=K5a;return M},{mode:2});var ug2;var qsa;var Azw=_.Mf(function(M){var z=_.iW("span"),J=g3(function(){return{value:null}});
_.pq(function(){var D;(D=J.value)==null||D.cancel()});
var R=_.o4(M.data,{equals:function(D,N){return D.iconName===N.iconName&&D.iconStyle===N.iconStyle&&D.iconSize===N.iconSize&&D.iconSetName===N.iconSetName&&D.iconSelected===N.iconSelected}},"VprOQb");
_.jP(function(){var D,N=(D=M.options)==null?void 0:D.call(M);LZ8(z,J,R(),N)},"Ybsape");
return _.T("span",{class:"yt-icon-shape",el:z})},"B");
Azw.idomCompat=!0;var RmH=["youtube_fill","youtube_outline"];var W5V=new _.sv({type:"iconset",value:void 0}),ju=function(){var M=_.g.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.iconName="";M.iconsetName="yt-icons";M.iconset=null;M.missingIconSet=!1;M.iconType=null;M.iconShapeDataSignal=_.kE(void 0,void 0,"b0v7Ac");M.renderingOptionsSignal=_.kE({iconWidth:"100%",iconHeight:"100%",iconFilter:M.iconFilter},void 0,"Ls6l3e");M.wizHasRendered=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(ju,_.g);ju.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
ju.prototype.handlePropertyChange=function(){var M=this,z,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H;return _.k(function(q){switch(q.nextAddress){case 1:if(z=!M.icon&&!M.iconName||!M.isAttached)return q.return();J=M;R=J.icon;D=J.size;N=J.defaultToFilled;Z=J.active;B=J.targetContainer;M.toggleContainerClass(B);_.U("kevlar_use_wil_icons")&&R&&(O=YW3(R),M.iconType=O.length?O[1]:null);if(R){q.jumpTo(2);break}M.iconsetName="";M.iconName="";return q.yield(M.renderIcon(B,R),3);case 3:return q.return();case 2:X=aOV(R);
l=YW3(X);l.length&&(M.iconsetName=l[0],M.iconName=l[1]);if(!_.U("kevlar_use_wil_icons")){q.jumpTo(4);break}e=ju;Q=V1a;v=M.iconType;x=M.active;m=M.defaultToFilled;y=M.size;H=M.iconsetName;return q.yield(Ec2(),6);case 6:return q.yield(Q.call(e,v,x,m,y,H,q.yieldResult),5);case 5:M.iconShapeData=q.yieldResult;case 4:if(M.shouldRenderIconShape(B)){q.jumpTo(7);break}return q.yield(M.determineIconSet(X,Z,N,D,B),7);case 7:return q.yield(M.renderIcon(B,R),0)}})};
ju.prototype.toggleContainerClass=function(M){M?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var aOV=function(M){return!_.U("default_to_innertube_icon")||M.indexOf(":")>0?M:_.oE(M)};
_.P=ju.prototype;_.P.determineIconSet=function(M,z,J,R){var D=this;return _.k(function(N){return N.nextAddress==1?_.U("kevlar_system_icons")||_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.HW("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?N.yield(D.switchToYtSysIconset(M,z,J,R),3):N.jumpTo(2):N.nextAddress!=2?N.return():N.yield(D.useYtSysIconsetForMissingIcons(M,z,J,R),0)})};
_.P.switchToYtSysIconset=function(M,z,J,R){var D=this,N,Z,B,O,X,l,e;return _.k(function(Q){switch(Q.nextAddress){case 1:if(!M||D.iconsetName!=="yt-icons"&&D.iconsetName!=="yt-sys-icons"){Q.jumpTo(0);break}N=YW3(M);Z=N[1];Z=_.KJG(Z);_.U("enable_polymer_icons_replace_underscores_dash")&&Z.includes("_filled")&&(Z=Z.replace(/_filled/g,"-filled"));return Q.yield(IE(Z,!0),3);case 3:return B=Q.yieldResult,Q.yield(IE(Z,!1),4);case 4:if((O=Q.yieldResult)||z&&B)D.iconsetName="yt-sys-icons";D.iconName=D.getIconName(Z,
z,J,O,B);if(R===24){Q.jumpTo(0);break}X="yt-sys-icons"+R+":"+D.iconName;return Q.yield(IE(X,!1,!0),6);case 6:return l=Q.yieldResult,Q.yield(IE(X,!0,!0),7);case 7:e=Q.yieldResult;D.iconName=D.getIconName(Z,z,J,l,e);if(!z&&l||z&&e)D.iconsetName="yt-sys-icons"+R;_.UI(Q)}})};
_.P.getIconName=function(M,z,J,R,D){M.includes("-filled")&&(M=M.replace("-filled",""));return D&&(z||J)?M+"-filled":M};
_.P.useYtSysIconsetForMissingIcons=function(M,z,J,R){var D=this,N,Z;return _.k(function(B){if(B.nextAddress==1)return D.iconsetName!=="yt-icons"?B.jumpTo(0):B.yield(IE(D.iconName,!1,!1,!0),3);if(B.nextAddress!=4)return N=B.yieldResult,B.yield(IE(D.iconName,!1),4);Z=B.yieldResult;if(N||!Z)return B.jumpTo(0);D.iconsetName="yt-sys-icons";return B.yield(D.switchToYtSysIconset(M,z,J,R),0)})};
_.P.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Ec2=function(){return _.k(function(M){try{return M.return(_.JF().resolve(_.XH))}catch(z){return M.return(new Promise(function(J){_.Eb().parkOrScheduleJob(function(){J(_.JF().resolve(_.XH))},2,"ci")}))}})},V1a=function(M,z,J,R,D,N){R=R===void 0?24:R;
if(M){M=M.toLowerCase();var Z=M.endsWith("_filled")||M.endsWith("-filled");z={iconName:M,iconStyle:(z===void 0?0:z)||(J===void 0?0:J)||Z?"youtube_fill":"youtube_outline",iconSize:R,iconSetName:D===void 0?"yt-icons":D};J=!!N.resolveIcon(z);J||(z.iconSize=void 0,J=!!N.resolveIcon(z));!J&&Z&&(z.iconName=M.substring(0,M.length-7),z.iconSize=R,J=!!N.resolveIcon(z),J||(z.iconSize=void 0,J=!!N.resolveIcon(z)));J||(z.iconStyle=void 0,J=!!N.resolveIcon(z));J||_.yA(new _.xN("Icon not supported",{iconName:z.iconName,
iconStyle:z.iconStyle,iconSize:z.iconSize,iconType:M}));return J?z:void 0}};
_.P=ju.prototype;_.P.shouldRenderIconShape=function(M){if(!_.U("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;M=this.getContainer(M);return!atp(M,this.icon)};
_.P.renderIcon=function(M,z){var J=this,R,D,N,Z,B,O,X,l;return _.k(function(e){switch(e.nextAddress){case 1:if(z&&J.icon!==z)return e.return();R=J.getContainer(M);D=atp(R,J.icon);if(J.shouldRenderIconShape(M)&&J.iconType)return J.applyIconShape(D,R),e.return();J.removeIconShape();if(!R)return e.return();J.iconName===""&&J.iconset&&R&&(J.removeStaticIcon(J.iconset,R),D&&J.removeAnimatedIcon(R));if(J.iconName===""&&J.iconset||!J.iconsetName||!W5V)return e.return();J.iconset=W5V.byKey(J.iconsetName);
if(!J.iconset)return J.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ou(J,J.onIconsetAdded)),e.return();J.missingIconSet&&(J.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ou(J,J.onIconsetAdded)));Z=(N=D||J.isAnimatedIcon?uto(J.icon):void 0)&&!N.lazyLoad;O=N&&((B=N)==null?void 0:B.lazyLoad)&&(N.lottiePlayerProps.animationConfig.animationData?!0:mN.get(J.isDarkTheme?N.pathDarkTheme:N.path)?!0:!1);if(Z||O)return J.applyAnimatedIcon(R,N,J.iconset),e.return();if(O||
(X=N)==null||!X.lazyLoad){e.jumpTo(2);break}l=Eap(N,J.isDarkTheme);J.applyStaticIcon(J.iconset,R,J.iconName,M,D);return e.yield(l,3);case 3:return e.yield(J.renderIcon(J.targetContainer,J.icon),4);case 4:return e.return();case 2:J.applyStaticIcon(J.iconset,R,J.iconName,M,D),_.UI(e)}})};
_.P.getContainer=function(M){var z,J=(z=A3H(this.hostElement))==null?void 0:z.host;z=!!J&&!!J.polymerController;if(!M||z)return M?this.getTargetContainer(M,J):this.hostElement};
_.P.getTargetContainer=function(M,z){var J=_.SN(z).querySelector("#"+M);J||(M=new _.xN("yt-icon container missing",z.is,M),_.nc(M));return J};
_.P.applyStaticIcon=function(M,z,J,R,D){D&&this.removeAnimatedIcon(z);this.removeIconShape();D=D&&!!this.iconType&&!!this.iconShapeData&&_.U("kevlar_use_wil_icons");try{D?this.applyIconShape(!1,z):M.applyIcon(z,J)}catch(N){this.handleError(N,R,z)}};
_.P.applyIconShape=function(M,z){this.iconset&&z&&(this.removeStaticIcon(this.iconset,z),M&&this.removeAnimatedIcon(z));M={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var J=_.S(this.iconShapeDataSignal);z=J.next().value;J=J.next().value;var R=_.S(this.renderingOptionsSignal),D=R.next().value;R=R.next().value;J(this.iconShapeData);R(M);if(!this.wizHasRendered)for(this.wizHasRendered=!0,M=_.S(iA8(z,D)).next().value;M.firstChild;)_.SN(this.hostElement).appendChild(M.firstChild)};
_.P.removeIconShape=function(){if(_.U("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.P.removeStaticIcon=function(M,z){M.removeIcon(z)};
_.P.applyAnimatedIcon=function(M,z,J){this.removeStaticIcon(J,M);this.removeIconShape();var R;J=this.animatedIconElement&&((R=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:R.type)===z.type;if(this.animatedIconElement&&J){this.animatedIconElement.polymerController.animatedIcon=z;var D;((D=this.animatedIconElement)==null?void 0:D.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(M),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=z,this.animatedIconElement.polymerController.active=this.active,_.U("delhi_modern_web_player_icons")?(z=qXw(M,this.icon)&&M.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=z?z.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.U("kevlar_use_wil_icons")?
M.insertBefore(this.animatedIconElement,M.childNodes[0]):(M=_.SN(M),M.insertBefore(this.animatedIconElement,M.childNodes[0]))};
_.P.removeAnimatedIcon=function(M){_.U("kevlar_use_wil_icons")?this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement):(M=_.SN(M),this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.P.handleError=function(M,z,J){_.Hb(M,this.iconName,z,J);z=atp(J,this.icon);var R=!1;window.location.href.includes("JpymaW6Lh2w")?R=!0:J._svgIcon&&(J=(J=J._svgIcon.parentNode)?J.tagName:"unknown",_.Hb(M,J),J==="YT-ICON"&&M.name==="NotFoundError"?R=!0:M.name==="NotFoundError"&&z&&(R=!0));R?_.yA(M):_.nc(M)};
_.rX.Object.defineProperties(ju,{template:{configurable:!0,enumerable:!0,get:function(){if(qsa===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;
ug2===void 0&&(ug2=document.createElement("template"));var R=ug2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);qsa=M}M=qsa;return M}}});
ju.prototype.handlePropertyChange=ju.prototype.handlePropertyChange;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ju.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",String)],ju.prototype,"icon",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ju.prototype,"active",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ju.prototype,"defaultToFilled",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ju.prototype,"isAnimatedIcon",void 0);
_.u([_.Y({value:24}),_.W("design:type",Number)],ju.prototype,"size",void 0);_.u([_.Y({value:""}),_.W("design:type",String)],ju.prototype,"targetContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],ju.prototype,"animatedIconElement",void 0);_.u([_.Y(),_.W("design:type",Object)],ju.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ju.prototype,"ariaHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],ju.prototype,"ariaLabel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],ju.prototype,"role",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],ju.prototype,"tabindex",void 0);_.u([_.Y(),_.W("design:type",String)],ju.prototype,"style",void 0);_.u([_.Y(),_.W("design:type",String)],ju.prototype,"iconFilter",void 0);
_.u([_.la("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ju.prototype,"handlePropertyChange",null);_.u([_.cU({is:"yt-icon",noInjection:!0})],ju);var Cr8="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),rz8=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var fOp={};fOp.YtPlaintextBehavior=[_.pH,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(M){M.preventDefault();M=M.clipboardData.getData("text/plain");document.execCommand("insertText",!1,M)},
preventRichTextFormatting_:function(M){_.es&&(M=M.detail.keyboardEvent,M.stopImmediatePropagation(),M.preventDefault())}}];var L5$;var A2g;var pE=function(){var M=_.g.apply(this,arguments)||this;M.ignoreShadyDom=!1;M.hasChange_=!1;M.hasSetTitle_=!1;M.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.HW("INNERTUBE_CLIENT_NAME")==="WEB";M.ytFormattedStringObserverHandlerKeys_=void 0;return M};
_.w(pE,_.g);_.P=pE.prototype;_.P.created=function(){this.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.HW("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.P.ready=function(){_.HW("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.P.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.P.detached=function(){this.unobserveIOObservers_()};
_.P.clearContents_=function(){for(var M=this.getRoot(),z=M.lastChild;z&&z.tagName!=="STYLE";){try{M.removeChild(z)}catch(J){break}z=M.lastChild}};
_.P.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var M=_.S(this.ytFormattedStringObserverHandlerKeys_),z=M.next();!z.done;z=M.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(z.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.P.resetForAttributedString=function(){var M=this.getRoot();!M.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),M.appendChild(this.ytAttributedStringElementRef))};
_.P.resetForFormattedString=function(){var M=this.getRoot(),z=M.querySelector("yt-attributed-string");z&&(this.ytAttributedStringElementRef=M.removeChild(z))};
_.P.textChanged=function(){this.textChanged_(this.text)};
_.P.textChanged_=function(M){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!M||!M.runs&&!M.simpleText;if(_.U("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var z=this.hostElement.firstChild;z&&z.nodeName==="FONT";){var J=z;z=z.nextSibling;this.hostElement.removeChild(J)}z=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
J=M.simpleText;var R;!J&&((R=M.runs)==null?void 0:R.length)===1&&this.isSimpleString_(M.runs[0])&&(J=M.runs[0].text);J!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.HW("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(J!==void 0){try{z.textContent=J}catch(D){}z.textContent||(this.isEmpty=!0)}else M=M.runs,J!==void 0&&(M=[{text:J}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),M&&this.updateText_(M),
z.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.P.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.P.computeAriaLabel_=function(M){return M};
_.P.computeEllipsisTruncateStyling=function(M,z){return M&&!z};
_.P.computeUseAttributedString=function(M){return _.U("web_replace_formatted_with_attributed_string")&&Qx0(M)&&!this.disableAttributedString&&!this.enableContentEditable};
_.P.setNodeStyle_=function(M,z){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.U("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?z.removeAttribute("dir"):z.setAttribute("dir","auto");z.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");z.style.color="";var J=null;this.noStyles||(M.bold&&(z.classList.add("bold"),J="bold"),M.deemphasize&&(z.classList.add("deemphasize"),J="deemphasize"),M.italics&&z.classList.add("italic"),
M.strikethrough&&z.classList.add("strikethrough"),M.errorUnderline&&(z.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),M.bracket&&z.classList.add("bracket"),M.textColor&&(z.style.color=_.u7(M.textColor)));J!==z.getAttribute("style-target")&&(J?z.setAttribute("style-target",J):z.removeAttribute("style-target"))};
_.P.setUpVisibilityLogging_=function(M,z){var J=this;this.setNodeTrackingParams_(M,z);var R;((R=z.data)==null?0:R.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(M=this.ytRendererBehavior.visibilityObserver.observe(z,function(D){var N=J.ytRendererBehavior.getVisibilityLogger();N&&N.reportShown(D)},this.ytRendererBehavior.visibilityOptionVisible_),z=this.ytRendererBehavior.visibilityObserver.observe(z,function(D){var N=J.ytRendererBehavior.getVisibilityLogger();
N&&N.reportHidden(D)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(M),this.ytFormattedStringObserverHandlerKeys_.push(z))};
_.P.setNodeTrackingParams_=function(M,z){z.data||(z.data={});if((M=M.loggingDirectives?M.loggingDirectives.trackingParams:null)||z.data.trackingParams)z.data.trackingParams=M};
_.P.computeHasLinkOnly_=function(M){return!(!M||M.length!==1||this.noEndpoints||!M[0].navigationEndpoint)};
_.P.getRoot=function(){var M=this.buildScopeDomOptions();return this.enableContentEditable?_.SN(_.SN(this.hostElement,M).querySelector("[contenteditable]")):_.SN(this.hostElement,M)};
_.P.fixContenteditableScope=function(){var M=function(z){z&&(z.nodeType===1&&z.classList&&(z.classList.add("style-scope"),z.classList.add("yt-formatted-string")),z.childNodes&&z.childNodes.forEach(function(J){M(J)}))};
M(this.getRoot())};
_.P.updateText_=function(M){for(var z=M.length,J=this.getRoot(),R=J.firstChild;R&&R.nodeName==="STYLE";)R=R.nextSibling;for(var D=0;D<z&&R;){var N=M[D],Z=_.U("remove_cr_char")&&N.text?N.text.replace("\r",""):N.text;if(this.isSimpleString_(N)&&!this.useMixedDirectionFormattedStrings)if(R.nodeName==="#text"){R.textContent!=Z&&(R.textContent=Z);D++;R=R.nextSibling;continue}else break;if(_.G(N,H5))break;else if(!this.noEndpoints&&N.navigationEndpoint){if(R.nodeName!=="A")break;this.setDataOnAnchor_(R,
N.navigationEndpoint)}else if(R.nodeName!=="SPAN")break;this.setNodeStyle_(N,R);this.setUpVisibilityLogging_(N,R);R.textContent!=Z&&(R.textContent=Z);D++;R=R.nextSibling}if(R)for(N=J.lastChild,R=D?R.previousSibling:null;N&&N!=R;){try{J.removeChild(N)}catch(B){break}N=J.lastChild}D!==z&&this.addTextNodes_(M,D)};
_.P.addTextNodes_=function(M,z){for(var J=document.createDocumentFragment(),R=M.length;z<R;z++){var D=M[z],N=_.U("remove_cr_char")&&D.text?D.text.replace("\r",""):D.text;if(this.isSimpleString_(D)&&!this.useMixedDirectionFormattedStrings)J.appendChild(document.createTextNode(N));else{var Z=_.G(D,H5);if(Z){if(Z.image){var B=document.createElement("img");Z.isCustomEmoji||B.classList.add("small-emoji");B.classList.add("emoji");Z.isCustomEmoji&&(B.dataset.emojiId=Z.emojiId);B.src=_.PS(Z.image.thumbnails,
this.emojiSize);(D=this.get("image.accessibility.accessibilityData.label",Z))?B.alt=D:Z.shortcuts&&Z.shortcuts.length>0?B.alt=Z.shortcuts[0]:Z.emojiId&&(B.alt=Z.emojiId);J.appendChild(B);this.hasEmoji=!0}}else!this.noEndpoints&&D.navigationEndpoint?(B=document.createElement("a"),B.classList.add("yt-simple-endpoint"),B.setAttribute("spellcheck","false"),this.setDataOnAnchor_(B,D.navigationEndpoint)):B=document.createElement("span"),this.setNodeStyle_(D,B),this.setUpVisibilityLogging_(D,B),B.appendChild(document.createTextNode(N)),
J.appendChild(B)}}this.getRoot().appendChild(J)};
_.P.isSimpleString_=function(M){return(this.noEndpoints||!M.navigationEndpoint)&&!_.G(M,H5)&&(this.noStyles||!(M.bold||M.deemphasize||M.italics||M.strikethrough||M.errorUnderline||M.bracket||M.textColor))&&!M.loggingDirectives};
_.P.getRawText=function(){return _.CD(this.text)};
_.P.getFirstRunText=function(){var M;if(((M=this.text)==null?0:M.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.P.setFirstRunText=function(M){var z;((z=this.text)==null?0:z.runs)&&this.text.runs[0]&&(this.text.runs[0].text=M,this.textChanged_(this.text))};
_.P.setDataOnAnchor_=function(M,z){var J=this;!_.U("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(z)||this.isSignalServiceEndpoint_(z)?(M.onclick=this.serviceEndpointHandler_(z),_.K3(M,"#")):Y33({text:this.text,command:z},function(){uap(M,z,J.target)})};
_.P.isServiceEndpoint_=function(M){var z;return!((z=_.G(M==null?void 0:M.commandMetadata,_.X9))==null||!z.sendPost)};
_.P.isSignalServiceEndpoint_=function(M){return!!_.G(M,_.on)};
_.P.serviceEndpointHandler_=function(M){var z=this;return function(J){_.kQ(z.hostElement,[M]);J.preventDefault()}};
_.P.overrideAriaLabelChanged_=function(){var M=this.getRoot();this.enableContentEditable&&M&&M.setAttribute("aria-label",this.overrideAriaLabel)};
_.P.enableContentEditableChanged_=function(){var M=this,z=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),z=_.SN(this.hostElement,z),!z.lastChild||z.lastChild instanceof HTMLElement&&z.lastChild.id!=="contenteditable-root"){var J=document.createElement("div");J.id="contenteditable-root";J.setAttribute("contenteditable","true");J.setAttribute("dir","auto");J.onfocus=function(){M.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
z.appendChild(J);this.overrideAriaLabel&&J.setAttribute("aria-label",this.overrideAriaLabel)}}else J=_.ZE(this.hostElement).firstChild,J instanceof HTMLElement&&J.id==="contenteditable-root"&&_.SN(this.hostElement,z).removeChild(J)};
_.P.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.P.getNodesForVisibilityLogging_=function(){return _.B9(this.getRoot().childNodes,function(M){var z;return!((z=M.data)==null||!z.trackingParams)})};
_.P.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.P.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(z){M.reportShown(z)})}};
_.P.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(z){M.reportHidden(z)})}};
_.rX.Object.defineProperties(pE.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.U("enable_mixed_direction_formatted_strings")}}});
pE.prototype.enableContentEditableChanged_=pE.prototype.enableContentEditableChanged_;pE.prototype.overrideAriaLabelChanged_=pE.prototype.overrideAriaLabelChanged_;pE.prototype.ellipsisTruncateChanged_=pE.prototype.ellipsisTruncateChanged_;pE.prototype.textChanged=pE.prototype.textChanged;_.u([_.p(fOp.YtPlaintextBehavior),_.W("design:type",Object)],pE.prototype,"ytPlaintextBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pE.prototype,"text",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"noEndpoints",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"noStyles",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],pE.prototype,"isDarkTheme",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],pE.prototype,"splitLines",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],pE.prototype,"forceDefaultStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],pE.prototype,"ellipsisTruncate",void 0);_.u([_.Y(),_.W("design:type",Object)],pE.prototype,"ignoreShadyDom",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.W("design:type",Boolean)],pE.prototype,"ellipsisTruncateStyling",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.W("design:type",String)],pE.prototype,"ariaLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],pE.prototype,"isEmpty",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.W("design:type",Boolean)],pE.prototype,"hasLinkOnly_",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"hasEmoji",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"disableAttributedString",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"isOverlay",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"linkInheritColor",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"noPreWrap",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"userInput",void 0);_.u([_.Y({value:16}),_.W("design:type",Number)],pE.prototype,"emojiSize",void 0);_.u([_.Y(),_.W("design:type",String)],pE.prototype,"target",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"enableContentEditable",void 0);_.u([_.Y(),_.W("design:type",String)],pE.prototype,"overrideAriaLabel",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"respectHtmlDir",void 0);_.u([_.Y(),_.W("design:type",Boolean)],pE.prototype,"respectLangDir",void 0);_.u([_.F("plaintextOnly"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pE.prototype,"useMixedDirectionFormattedStrings",null);_.u([_.Y({computed:"computeUseAttributedString(text)"}),_.W("design:type",Boolean)],pE.prototype,"useYtAttributedString",void 0);
_.u([_.la("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pE.prototype,"textChanged",null);_.u([_.la("ellipsisTruncate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pE.prototype,"ellipsisTruncateChanged_",null);_.u([_.la("overrideAriaLabel"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pE.prototype,"overrideAriaLabelChanged_",null);
_.u([_.la("enableContentEditable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pE.prototype,"enableContentEditableChanged_",null);_.u([_.cU({is:"yt-formatted-string",disableElementRegistration:!0})],pE);
_.d(pE,"yt-formatted-string",function(){if(A2g===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;L5$===void 0&&(L5$=document.createElement("template"));var R=L5$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);A2g=M}M=A2g;return M});var i6Q;var CXQ;var b6u;var r2J;var FC=function(){var M=_.g.apply(this,arguments)||this;M.focused=!1;M.disabled=!1;M.isOverlay=!1;return M};
_.w(FC,_.g);FC.prototype.triggerDown=function(){if(!this.disabled){_.kz(this.hostElement,"down",!0);var M;(M=this.currentAnimation)==null||M.cancel()}};
FC.prototype.triggerUp=function(){if(!this.disabled){_.kz(this.hostElement,"down",!1);var M=this.fillElement;var z=this.strokeElement;typeof GroupEffect==="function"?(M=new GroupEffect([VAw(M),Ev3(z)]),M=new Animation(M,document.timeline)):M=new GZJ(M,z);this.currentAnimation=M;var J;(J=this.currentAnimation)==null||J.play()}};
_.u([_.Qc(".stroke"),_.W("design:type",HTMLElement)],FC.prototype,"strokeElement",void 0);_.u([_.Qc(".fill"),_.W("design:type",HTMLElement)],FC.prototype,"fillElement",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],FC.prototype,"focused",void 0);_.u([_.Y(),_.W("design:type",Object)],FC.prototype,"disabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],FC.prototype,"isOverlay",void 0);_.u([_.cU({is:"yt-interaction",disableElementRegistration:!0})],FC);
_.d(FC,"yt-interaction",function(){if(r2J===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;b6u===void 0&&(b6u=document.createElement("template"));var R=b6u;J.call(z,R.content.cloneNode(!0),M.content.firstChild);r2J=M}M=r2J;return M},{mode:2});var YK=function(){return _.g.apply(this,arguments)||this};
_.w(YK,_.g);_.P=YK.prototype;_.P.ready=function(){var M=this,z=_.SN(this.hostElement).querySelector("#button");z.addEventListener("focus",function(){wog||(wog=new Guu);M.keyboardFocused=wog.isKeyBoardInUse()});
z.addEventListener("blur",function(){M.keyboardFocused=!1;M.rippleUp_()})};
_.P.computeTabIndex_=function(M){return M?-1:0};
_.P.computeButtonAriaPressed_=function(M){if(this.toggleable)return M?"true":"false"};
_.P.rippleDown_=function(){_.SN(this.hostElement).querySelector("#interaction").triggerDown()};
_.P.rippleUp_=function(){_.SN(this.hostElement).querySelector("#interaction").triggerUp()};
_.P.onPressedChanged_=function(){var M=_.ZE(_.SN(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.ZE(_.SN(this.hostElement).querySelector("#button")).children[0];M&&(M.active=this.pressed)};
YK.prototype.onPressedChanged_=YK.prototype.onPressedChanged_;YK.prototype.rippleUp_=YK.prototype.rippleUp_;YK.prototype.rippleDown_=YK.prototype.rippleDown_;_.u([_.Y(),_.W("design:type",String)],YK.prototype,"label",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],YK.prototype,"disabled",void 0);_.u([_.Y(),_.W("design:type",Boolean)],YK.prototype,"pressed",void 0);_.u([_.Y(),_.W("design:type",Object)],YK.prototype,"toggleable",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],YK.prototype,"untabbable",void 0);_.u([_.Y(),_.W("design:type",Boolean)],YK.prototype,"keyboardFocused",void 0);_.u([_.Xw("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YK.prototype,"rippleDown_",null);_.u([_.Xw("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YK.prototype,"rippleUp_",null);
_.u([_.la("pressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YK.prototype,"onPressedChanged_",null);_.u([_.cU({is:"yt-icon-button",disableElementRegistration:!0})],YK);
_.d(YK,"yt-icon-button",function(){if(CXQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;i6Q===void 0&&(i6Q=document.createElement("template"));var R=i6Q;J.call(z,R.content.cloneNode(!0),M.content.firstChild);CXQ=M}M=CXQ;return M},{mode:2});var M7v;var zeJ=function(){var M=document.body,z=M.appendChild;if(M7v===void 0){var J=document.createElement("template");_.t(J,'\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>');
M7v=J}J=M7v;z.call(M,J.content)};
document.body?zeJ():window.addEventListener("DOMContentLoaded",zeJ);var JDa=_.Ca(["aria-"]),mg={};mg.YtRenderButtonBehavior=[_.f.YtRendererBehavior,_.Gn.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!!_.JF().resolve(_.zw(_.OQ))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var M=this.computeHref_(this.endpoint,!0);M?_.K3(this.elements_.endpoint,M):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){M=this.buttonClass.split(" ");M=_.S(M);for(var z=M.next();!z.done;z=M.next())z=z.value,_.kz(this.hostElement,z,!0),this.elements_.button&&_.kz(this.elements_.button,z,!0),this.elements_.text&&_.kz(this.elements_.text,z,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(M=null,this.buttonAccessibility&&(M=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=M:M?_.bs([_.R$(JDa)],this.elements_.button,"aria-label",M):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var M=_.JF().resolve(_.zw(_.OQ));M&&(this.keyboardFocused=M.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Su("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,_.pu(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.pu(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(M,z){if(z)for(M=z.split(" "),M=_.S(M),z=M.next();!z.done;z=M.next())z=z.value,_.kz(this.hostElement,z,!1),this.elements_.button&&_.kz(this.elements_.button,z,!1),this.elements_.text&&_.kz(this.elements_.text,z,!1)},
buttonIconChanged_:function(M){this.elements_.icon?M?(this.elements_.icon.icon=M,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.pu(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.BU(this.hostElement,"is-paper-button-with-icon",!1)):M&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.pu(this.elements_.button).appendChild(this.elements_.icon):_.pu(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.BU(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(M){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,M){var z=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(M){case "yt_icon_button_with_label":z=!0;_.kz(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();M=_.pu(this.elements_.button).firstElementChild;
this.elements_.icon=M;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.pu(this.elements_.endpoint).appendChild(this.elements_.button);_.pu(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Su("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;_.pu(this.elements_.button).appendChild(this.elements_.text);_.pu(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":z=!0,this.elements_.button=this.getYtIconButton_(),M=_.pu(this.elements_.button).firstElementChild,this.elements_.icon=M,this.setIconActive_(this.elements_.icon),
_.pu(this.elements_.endpoint).appendChild(this.elements_.button)}_.BU(this.hostElement,"is-icon-button",z);_.BU(this.hostElement,"is-paper-button",!z);_.BU(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 J;_.SN((J=this.container.hostElement)!=null?J:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.pu(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(M){if(M!=void 0||this.disabled)this.disabled=M,this.elements_.button&&(this.elements_.button.disabled=M)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(M){_.U("kevlar_system_icons")&&M&&this.data&&(this.data.isSelected!==void 0?M.active=this.data.isSelected:this.data.isToggled!==void 0&&(M.active=this.data.isToggled))},
observeBasicPalette_:function(M){_.g4(this.hostElement,M)},
disabledChanged_:function(M){this.data&&this.set("data.isDisabled",M)},
onYtButtonTap_:function(M){if(this.disabled)M.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.kQ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(M=this.disableCommandHandlerOverride,!this.data||!this.data.command||M||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.U("handle_service_request_actions")||_.kQ(this.hostElement,[this.serviceEndpoint]),
_.Pv(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.U("handle_service_request_actions")?(M=[],this.serviceEndpoint&&M.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&M.push(this.data.command),M.length&&_.Bv(this.hostElement,M,this.hostElement)):this.data&&this.data.command&&(M=this.data.command,M.accountUnlinkCommand||M.accountLinkCommand||M.insertAdCommand||M.insertHighlightMarkerCommand||
M.createLivestreamHighlightClipCommand||M.getVideoUploadFeedbackCommand||M.musicDeletePrivatelyOwnedEntityCommand||M.ypcCancelRecurrenceEndpoint||M.getMultiSelectCommandEndpoint?_.kQ(this.hostElement,[M]):_.Bv(this.hostElement,[M],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var M,z=_.SN((M=this.container.hostElement)!=null?M:this.container);z.lastChild&&z.lastChild.tagName!="STYLE";)try{z.removeChild(z.lastChild)}catch(J){break}},
getYtIconButton_:function(){var M=this.reuseEnabled_()?_.Su("yt-icon-button"):document.createElement("yt-icon-button"),z=_.pu(M).firstElementChild;if(z&&z.is!="yt-icon"){for(z=_.pu(M);z.lastChild;)z.removeChild(z.lastChild);z=null}z||(z=this.getIcon_(),this.setIconActive_(z),_.pu(M).appendChild(z));return M},
reuseEnabled_:function(){return _.U("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Su("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Su("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ReQ={};
_.ReQ.YtButtonBehavior=[mg.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var M=this.data;M&&(this._setEndpoint(this.computeEndpoint_(M)),this._setServiceEndpoint(this.computeServiceEndpoint_(M)),this._setCommand(this.computeCommand_(M)),this._setButtonIcon(this.computeButtonIcon_(M)),this._setButtonText(this.computeButtonText_(M,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(M)),this._setButtonTooltip(this.computeTooltip_(M)),this._setButtonClass(this.computeButtonClass_(M)),this._setIconPositionType(this.computeIconPositionType_(M)),this.updateRenderedElements())},
setPressedState:function(M){var z;if((z=this.elements_)==null?0:z.button)this.elements_.button.pressed=!!M},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeEndpoint_:function(M){var z=M&&M.navigationEndpoint,J=this.get("data.command.commandMetadata.webCommandMetadata.url"),R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:M&&M.command&&M.command.modalEndpoint?M.command:J&&!R&&M.command?M.command:null},
computeServiceEndpoint_:function(M){var z=M&&M.serviceEndpoint,J=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:J&&M.command?M.command:null},
computeCommand_:function(M){return M&&M.command||null},
computeButtonIcon_:function(M){return M&&M.icon&&M.icon.iconType?_.oE(M.icon.iconType):null},
computeButtonText_:function(M,z){return!z&&M&&M.text||null},
computeAccessibility_:function(M){return this.get("accessibilityData.accessibilityData",M)||M&&M.accessibility||(M&&M.text?{label:this.getSimpleString(M.text)}:null)},
computeTooltip_:function(M){return M?M.isDisabled&&M.disabledTooltip||M.tooltip||null:null},
computeButtonClass_:function(M){var z=M&&M.style?M.style.toLowerCase().replace(/_/g,"-")+" ":"";z+=M&&M.size?M.size.toLowerCase().replace(/_/g,"-")+" ":"";M.colorData&&M.colorData.basicColorPaletteData&&M.colorData.basicColorPaletteData.borderColor&&(z+="palette-with-border");return z.trim()}}];var sN={};var DTp;var NhV;var POv,SHB=function(){return POv!==void 0?POv:POv=document.createElement("template")};
document.head.appendChild(SHB().content);var Z2$;var kR$,BhQ=function(){return kR$!==void 0?kR$:kR$=document.createElement("template")};
document.head.appendChild(BhQ().content);var O2v;var ThS,I_$=function(){return ThS!==void 0?ThS:ThS=document.createElement("template")};
document.head.appendChild(I_$().content);var oHu;var XGa=document.head,l_u=XGa.appendChild,eek;if(oHu===void 0){var Qm2=document.createElement("template");_.t(Qm2,"\x3c!--css-build:shady--\x3e");Qm2.content.insertBefore(I_$().content.cloneNode(!0),Qm2.content.firstChild);oHu=Qm2}eek=oHu;l_u.call(XGa,eek.content);var UT$=document.head,vHt=UT$.appendChild,GRk;if(O2v===void 0){var wGV=document.createElement("template");_.t(wGV,"\x3c!--css-build:shady--\x3e");wGV.content.insertBefore(BhQ().content.cloneNode(!0),wGV.content.firstChild);O2v=wGV}GRk=O2v;vHt.call(UT$,GRk.content);var xTg=document.head,t7$=xTg.appendChild,jmQ;if(Z2$===void 0){var pGV=document.createElement("template");_.t(pGV,"\x3c!--css-build:shady--\x3e");pGV.content.insertBefore(SHB().content.cloneNode(!0),pGV.content.firstChild);Z2$=pGV}jmQ=Z2$;t7$.call(xTg,jmQ.content);var Ffk;_.nn("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");Ffk=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.gx=function(){return _.g.apply(this,arguments)||this};
_.w(_.gx,_.g);_.gx.prototype.created=function(){this.openPopupConfig=_.HW("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.gx.prototype.onYtNavigate_=function(M){var z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);z&&(this.ytOpenPopupBehavior.openPopup(z),M.stopPropagation(),M.preventDefault())};
_.rX.Object.defineProperties(_.gx,{template:{configurable:!0,enumerable:!0,get:function(){if(NhV===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;DTp===void 0&&(DTp=document.createElement("template"));var R=DTp;J.call(z,R.content.cloneNode(!0),M.content.firstChild);NhV=M}M=NhV;return M}}});
_.gx.prototype.onYtNavigate_=_.gx.prototype.onYtNavigate_;_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],_.gx.prototype,"ytOpenPopupBehavior",void 0);_.u([_.p(_.ReQ.YtButtonBehavior),_.W("design:type",Object)],_.gx.prototype,"ytButtonBehavior",void 0);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.gx.prototype,"onYtNavigate_",null);
_.u([_.cU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:Ffk})],_.gx);var YHB;var mTk=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live"),sQ=function(){var M=_.g.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.skipCommandHandling=!1;M.alignByText=!1;M.fitToVisibleBounds=!0;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};M.onTap=function(z){_.Pv(M.hostElement,"yt-service-request-sent-button-renderer",z)};
return M};
_.w(sQ,_.g);_.P=sQ.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.P.onClick=function(M){var z,J=this.disabled||((z=this.data)==null?void 0:z.isDisabled);z=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");J&&z&&M.stopPropagation()};
_.P.computeIcon=function(){var M,z,J=(M=this.data)==null?void 0:(z=M.icon)==null?void 0:z.iconType;if(J)return _.oE(J)};
_.P.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.P.handleUpdateButtonAction=function(M){M=_.G(M,fC$);var z=_.G(M==null?void 0:M.updatedButton,_.aR);if(this.data&&M&&z){var J=this.data;J.targetId&&M.targetId&&J.targetId===M.targetId&&(this.data=z)}};
_.rX.Object.defineProperties(sQ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var M=this;if(this.data){var z=N68({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Pv(M.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Pv(M.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});z.alignByText=this.alignByText;return z}}}});
_.rX.Object.defineProperties(sQ,{template:{configurable:!0,enumerable:!0,get:function(){if(YHB===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');YHB=M}M=YHB;return M}}});
sQ.prototype.onClick=sQ.prototype.onClick;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"isPressed",void 0);
_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"forceIconButton",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"forceIconOnly",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"forceModernIconButton",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"skipCommandHandling",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"alignByText",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"buttonTooltipPosition",void 0);
_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"fitToVisibleBounds",void 0);_.u([_.Y({computed:"computeTooltip(data)"}),_.W("design:type",Object)],sQ.prototype,"tooltip",void 0);_.u([_.Y(),_.W("design:type",Object)],sQ.prototype,"overrides",void 0);_.u([_.Y(),_.W("design:type",Boolean)],sQ.prototype,"disabled",void 0);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],sQ.prototype,"onClick",null);
_.u([_.F("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.W("design:type",Object),_.W("design:paramtypes",[])],sQ.prototype,"computedButtonShape",null);_.u([_.cU({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!mTk,cssBuildOptOut:!0}),_.cU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!mTk,cssBuildOptOut:!0})],sQ);var gHv;var smJ;var nE=function(){var M=_.g.apply(this,arguments)||this;M.empty_=!0;M.loadTime=Infinity;M.pendingPaint=!1;M.hasChange_=!1;M.oldThumbnail_=null;M.oldDelayedSrc_="";M.objectURL_=null;return M};
_.w(nE,_.g);_.P=nE.prototype;_.P.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.P.ready=function(){var M=this.shouldShowPlaceholder_();_.kz(this.hostElement,"no-transition",!0);M&&this.hostElement.classList.add("with-placeholder")};
_.P.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.P.isThumbPreloaded_=function(M){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",M)};
_.P.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||nHJ};
_.P.computeThumbnailSrc_=function(M){return M&&M.thumbnails?_.PS(M.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.P.computeAlt_=function(){var M=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&M||""};
_.P.thumbnailChanged_=function(){var M=_.S([this.thumbnail,this.oldThumbnail_]),z=M.next().value;M=M.next().value;this.oldThumbnail_=z;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(M=this.computeThumbnailSrc_(M),this.computeThumbnailSrc_(z)===M))return;_.U("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(z)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):z&&_.cW("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.C4(this,this.onReload_):_.C4(this,this.onShow_):this.resetImage_();z&&(this.hostElement.style.opacity=""+z.opacity)}};
_.P.delayedSrcChanged_=function(){var M=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===M||this.resetImage_()};
_.P.setSrc_=function(M){M?(_.SN(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.SN(this.hostElement).querySelector("#img").src=M):(_.SN(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.P.resetImage_=function(){OPo(this.hostElement);this.empty_=!0;this.setSrc_(nHJ);this.ytRendererBehavior.invalidate(!1)};
_.P.observePlaceholderColor_=function(){var M=this.thumbnail&&this.thumbnail.placeholderColor;M?this.hostElement.style.backgroundColor=_.u7(M):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.P.onLoad_=function(){_.SN(this.hostElement).querySelector("#img").src&&_.SN(this.hostElement).querySelector("#img").src!==nHJ&&(Btb(this.hostElement),this.notifyOnLoaded&&_.Pv(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.P.onError_=function(){var M=this;if(_.U("web_use_cache_for_image_fallback"))QBR(_.SN(this.hostElement).querySelector("#img").src).then(function(z){M.objectURL_=_.yZ(z).toString();M.setSrc_(M.objectURL_)}).catch(function(){_.U("kevlar_woffle_fallback_image")&&M.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.P.onPrescanVisible=function(){this.onShow_()};
_.P.onVisible=function(){if(_.U("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.P.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var M=this.computeSrc_();M!==_.SN(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))}};
_.P.onReload_=function(){this.empty_=!1;var M=this.computeSrc_();M!==_.SN(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))};
_.P.shouldShowPlaceholder_=function(){return _.U("kevlar_thumbnail_bg")};
nE.prototype.observePlaceholderColor_=nE.prototype.observePlaceholderColor_;nE.prototype.delayedSrcChanged_=nE.prototype.delayedSrcChanged_;nE.prototype.thumbnailChanged_=nE.prototype.thumbnailChanged_;_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"alt",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],nE.prototype,"ariaHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"ariaLabel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"id",void 0);_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],nE.prototype,"ytVisibilityBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",String)],nE.prototype,"delayedSrc",void 0);
_.u([_.Y(),_.W("design:type",Object)],nE.prototype,"thumbnail",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"loaded",void 0);_.u([_.Y(),_.W("design:type",Boolean)],nE.prototype,"notifyOnLoaded",void 0);_.u([_.Y(),_.W("design:type",Number)],nE.prototype,"height",void 0);_.u([_.Y(),_.W("design:type",Number)],nE.prototype,"width",void 0);_.u([_.Y({value:function(){return"width"}}),
_.W("design:type",String)],nE.prototype,"dimension",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"fit",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"fitHeight",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"fitWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"objectFit",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"objectPosition",void 0);_.u([_.Y(),_.W("design:type",String)],nE.prototype,"preferredThumbnail",void 0);_.u([_.Y({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.W("design:type",String)],nE.prototype,"alt_",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nE.prototype,"sharedTooltipText",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],nE.prototype,"ftlEligible",void 0);_.u([_.Y({value:void 0}),_.W("design:type",String)],nE.prototype,"observeHiddenOption",void 0);_.u([_.Y({value:"observe_once"}),_.W("design:type",String)],nE.prototype,"observePrescanOption",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nE.prototype,"roundedContainer",void 0);
_.u([_.wH("thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nE.prototype,"thumbnailChanged_",null);_.u([_.wH("delayedSrc"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nE.prototype,"delayedSrcChanged_",null);_.u([_.la("thumbnail.placeholderColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nE.prototype,"observePlaceholderColor_",null);
_.u([_.cU({is:"yt-img-shadow",disableElementRegistration:!0})],nE);var nHJ=_.cW("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.kS()(nE,"yt-img-shadow",function(){if(smJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;gHv===void 0&&(gHv=document.createElement("template"));var R=gHv;J.call(z,R.content.cloneNode(!0),M.content.firstChild);smJ=M}M=smJ;return M},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var qM0;_.hs=new _.Nh("SCREEN_MANAGER_TOKEN");qM0=new _.Nh("LOG_INITIAL_SCREEN_TOKEN");var hek=function(M){return Object.fromEntries(Object.keys(M).map(function(z){return[z,z]}))}({entities:{}});var yDv=function(M){return function(z,J){return SuG(M,z,J)}}(hek)(hek.entities,{selectSfvAudioItemPlaybackState:function(M,z){var J,R;
M=(R=_.Is(M,"sfvAudioItemCurrentlyPlayingEntity",z))!=null?R:void 0;return(J=M==null?void 0:M.sfvAudioItemPlaybackState)!=null?J:void 0},
playlistLoopStateEntitySelector:function(M,z){var J;return(J=_.Is(M,"playlistLoopStateEntity",z))!=null?J:void 0}});_.cm=_.Mf(function(M){function z(z8){return _.G(z8,_.s3)}
function J(){var z8=R().isTogglingDisabled||m()&&R().toggledIsTogglingDisabled,O8=z8||Q()?m():!m();y(O8);q(!1);if(!z8){var I3;(I3=Z)==null||I3(!!O8)}var vY;((vY=N)==null?0:vY())||_.Ub(_.JF().resolve(_.hs),R().trackingParams);var te;if(!O8||!z(R().defaultButtonViewModel)||(te=N)!=null&&te()){var wR;!z(R().toggledButtonViewModel)||((wR=N)==null?0:wR())||_.Ub(_.JF().resolve(_.hs),z(R().toggledButtonViewModel).trackingParams)}else _.Ub(_.JF().resolve(_.hs),z(R().defaultButtonViewModel).trackingParams)}
var R=M.data,D=M.buttonShapeOverrides,N=M.disableExplicitClickLogging,Z=M.onToggle,B=M.style,O=M.useOutlinedIcon,X=M.className,l=function(){var z8,O8;return m()?(z8=M.animatedTextPropsToggled)==null?void 0:z8.call(M):(O8=M.animatedTextPropsDefault)==null?void 0:O8.call(M)},e=_.o4(function(){return l()?Object.assign({},l(),{shouldAnimate:H()}):void 0},void 0,"ZKEa0b"),Q=function(){var z8;
return((z8=E())==null?void 0:z8.isToggled)!==void 0},v=_.S(_.eh(function(){var z8,O8,I3;
return Q()?(z8=E())==null?void 0:z8.isToggled:(I3=D==null?void 0:(O8=D())==null?void 0:O8.toggled)!=null?I3:R().isToggled})),x=v.next().value;
v=v.next().value;var m=x,y=v;v=_.S(_.eh(function(){var z8,O8;return(z8=M.animatedTextPropsToggled)==null?void 0:(O8=z8.call(M))==null?void 0:O8.shouldAnimate}));
x=v.next().value;v=v.next().value;var H=x,q=v;x=_.S(_.kE(!1,void 0,"S11hid"));var b=x.next().value,V=x.next().value,E=_.d4(function(z8){a:{var O8=R().entityKey,I3=R().toggledStateEntitySelectorType;if(I3)switch(I3){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!O8)break;z8=yDv.selectSfvAudioItemPlaybackState(z8,O8);if(z8==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){z8={isToggled:!0};break a}if(z8){z8={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":z8=
{isToggled:_.kIp(z8).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":z8={isToggled:_.kIp(z8).includes("engagement-panel-live-chat-item-section")};break a;default:_.yA(new _.xN("Error: entitySelectorType defined but not matched in selector.",z8,I3))}z8=void 0}return z8}),L=function(){return Object.assign({},D==null?void 0:D(),{onToggle:J,
toggleable:!0,toggled:m(),focused:b()})};
return _.T("toggle-button-view-model",{"on:focusin":_.ol(function(){var z8=_.JF().resolve(_.zw(_.OQ));z8&&V(z8.isKeyBoardInUse());return!1}),
"on:focusout":_.ol(function(){V(!1);return!1})},_.T(_.I,{cond:function(){return m()?z(R().toggledButtonViewModel):z(R().defaultButtonViewModel)},
then:function(z8){return _.T(_.lT,{data:z8,className:X,style:B,useOutlinedIcon:O,buttonOverrides:L,animatedTextProps:e})}}))},"C");
_.cm.idomCompat={callbacks:{onToggle:!0}};_.N7(_.Mf(function(M){return _.T("yt-toggle-button-view-model",{class:function(){var z;return(z=M.scopingClassName)==null?void 0:z.call(M)}},_.T(_.cm,{data:function(){var z;
return(z=M.data)==null?void 0:z.call(M)},
buttonShapeOverrides:function(){var z;return(z=M.overrides)==null?void 0:z.call(M)},
animatedTextPropsDefault:function(){var z;return(z=M.animatedTextPropsDefault)==null?void 0:z.call(M)},
animatedTextPropsToggled:function(){var z;return(z=M.animatedTextPropsToggled)==null?void 0:z.call(M)},
disableExplicitClickLogging:function(){var z;return(z=M.disableExplicitClickLogging)==null?void 0:z.call(M)},
onToggle:function(z){var J;return(J=M.onToggle)==null?void 0:J.call(M,z)},
style:function(){var z;return(z=M.style)==null?void 0:z.call(M)},
useOutlinedIcon:function(){var z;return(z=M.useOutlinedIcon)==null?void 0:z.call(M)},
className:function(){var z;return(z=M.className)==null?void 0:z.call(M)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.zn,
buttonShapeOverrides:_.zn,overrides:_.zn,animatedTextPropsDefault:_.zn,animatedTextPropsToggled:_.zn,disableExplicitClickLogging:_.zn,onToggle:_.Dv,style:_.zn,useOutlinedIcon:_.zn,className:_.zn,scopingClassName:_.zn}});var dx=function(){return _.g.apply(this,arguments)||this};
_.w(dx,_.g);dx.prototype.onTap=function(M){M.stopPropagation();M=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.hk("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M})):this.ytLiveChatReduxBehavior.dispatch(_.pf("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M}))};
_.rX.Object.defineProperties(dx.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.G(this.data.toggleButton,_.nf),z;if(Number(((z=this.likeCountState)==null?void 0:z.likeCountIfIndifferentNumber)||"0")===0){var J;z=((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}else{var R,D,N;z=((R=this.likeCountState)==null?void 0:(D=R.likeCountIfIndifferent)==null?void 0:D.content)||((N=this.data.likeCountPlaceholder)==null?void 0:N.content)||""}var Z,B;J=((Z=this.likeCountState)==null?void 0:(B=
Z.likeCountIfLiked)==null?void 0:B.content)||"1";Z=_.G(M.toggledButtonViewModel,_.s3);return Object.assign({},M,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.G(M.defaultButtonViewModel,_.s3),{title:z})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Z,{title:J})}})}}}});
dx.prototype.onTap=dx.prototype.onTap;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],dx.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dx.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.likeCountEntityKey"],selector:B6n}),_.W("design:type",Object)],dx.prototype,"likeCountState",void 0);_.u([_.Y({selectorArgs:["data.engagementStateKey"],selector:oap}),_.W("design:type",Object)],dx.prototype,"engagementState",void 0);_.u([_.F("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dx.prototype,"isLiked",null);
_.u([_.F("data","likeCountState","isLiked"),_.W("design:type",Object),_.W("design:paramtypes",[])],dx.prototype,"toggleButton",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],dx.prototype,"onTap",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],dx);
_.d(dx,"yt-live-chat-like-button-view-model",function(){if(c2a===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;H6v===void 0&&(H6v=document.createElement("template"));var R=H6v;J.call(z,R.content.cloneNode(!0),M.content.firstChild);c2a=M}M=c2a;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var H2g;var cD$;var KE=function(){return _.g.apply(this,arguments)||this};
_.w(KE,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],KE.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],KE);
_.d(KE,"yt-live-chat-paid-message-footer-renderer",function(){if(cD$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;H2g===void 0&&(H2g=document.createElement("template"));var R=H2g;J.call(z,R.content.cloneNode(!0),M.content.firstChild);cD$=M}M=cD$;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var dTJ;var Kf2;var $Tt;var uzJ,qHV=function(){if(uzJ!==void 0)return uzJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;$Tt===void 0&&($Tt=document.createElement("template"));var R=$Tt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return uzJ=M};var $K=function(){return _.g.apply(this,arguments)||this};
_.w($K,_.g);$K.prototype.onTap=function(M){M.stopPropagation()};
_.rX.Object.defineProperties($K.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.G(this.data.replyButton,_.s3),z,J,R,D,N,Z,B,O=Number(((z=this.replyCountState)==null?void 0:z.replyCountNumber)||"0")===0?(J=this.data)==null?void 0:(R=J.replyCountPlaceholder)==null?void 0:R.content:((D=this.replyCountState)==null?void 0:(N=D.replyCount)==null?void 0:N.content)||((Z=this.data)==null?void 0:(B=Z.replyCountPlaceholder)==null?void 0:B.content)||"",X;return Object.assign({},
M,{title:O,accessibilityText:(X=this.replyCountState)==null?void 0:X.replyButtonAccessibilityText})}}}});
_.rX.Object.defineProperties($K,{template:{configurable:!0,enumerable:!0,get:function(){return qHV()}}});
$K.prototype.onTap=$K.prototype.onTap;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$K.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],$K.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$K.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.replyCountEntityKey"],selector:function(M,z){return _.Is(M.entities,"replyCountEntity",z)}}),
_.W("design:type",Object)],$K.prototype,"replyCountState",void 0);_.u([_.F("data","replyCountState"),_.W("design:type",Object),_.W("design:paramtypes",[])],$K.prototype,"buttonViewModel",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],$K.prototype,"onTap",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],$K);
_.d($K,"yt-live-chat-reply-button-view-model",function(){return qHV()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Wf$;var a_V;var uT=function(){var M=_.g.apply(this,arguments)||this;M.ariaLabel="";return M};
_.w(uT,_.g);
uT.prototype.dataChanged=function(){for(var M=(0,_.OV)(_.SN(this.hostElement).querySelector("#image"));M.firstChild;)M.removeChild(M.firstChild);if(this.data)if(this.data.icon){var z=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(z.polymerController.icon="yt-sys-icons:shield-filled",z.polymerController.defaultToFilled=!0):z.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();M.appendChild(z)}else if(this.data.customThumbnail){z=document.createElement("img");
var J=_.RkY(this.data.customThumbnail.thumbnails,16);J?(z.src=J,M.appendChild(z),z.setAttribute("alt",this.hostElement.ariaLabel||"")):_.yA(new _.xN("Could not compute URL for thumbnail",this.data.customThumbnail))}};
uT.prototype.identity=function(M){return M};
uT.prototype.computeType=function(M){return OU(M||void 0)};
uT.prototype.dataChanged=uT.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],uT.prototype,"data",void 0);_.u([_.Y({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.W("design:type",Object)],uT.prototype,"ariaLabel",void 0);_.u([_.Y({computed:"computeType(data)",reflectToAttribute:!0}),_.W("design:type",String)],uT.prototype,"type",void 0);
_.u([_.Y({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.W("design:type",String)],uT.prototype,"sharedTooltipText",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("live_chat_enable_new_moderator_badge")}}),
_.W("design:type",Boolean)],uT.prototype,"enableNewModeratorBadge",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uT.prototype,"dataChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],uT);
_.d(uT,"yt-live-chat-author-badge-renderer",function(){if(a_V===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Wf$===void 0&&(Wf$=document.createElement("template"));var R=Wf$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);a_V=M}M=a_V;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var V7$;var EHQ;var qK=function(){return _.g.apply(this,arguments)||this};
_.w(qK,_.g);_.P=qK.prototype;_.P.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.P.computeBadgesInsideChip=function(M){return M?M.filter(function(z){return OU(z.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.P.computeBadgesOutsideChip=function(M){return this.prependChatBadges||!M?[]:M.filter(function(z){z=OU(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"})};
_.P.computeBadgesBeforeChip=function(M){return this.prependChatBadges&&M?M.filter(function(z){z=OU(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"}):[]};
_.P.computeIsHighlighted=function(M,z){var J=!!vOo(M,"owner"),R=!!vOo(M,"verified");M=!!vOo(M,"moderator");return(J||R&&!M)&&!z};
_.P.computeAuthorType=function(M){return Ui8(M)};
_.P.computeAuthorClass=function(M,z){return z?(M?M+" ":"")+"single-line":M};
_.P.onSeedColorChanged=function(){_.U("live_chat_author_name_color_usernames")||_.U("live_chat_seed_color_usernames")||_.U("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):_.U("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
qK.prototype.onSeedColorChanged=qK.prototype.onSeedColorChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qK.prototype,"authorName",void 0);_.u([_.Y(),_.W("design:type",Array)],qK.prototype,"authorBadges",void 0);
_.u([_.Y({computed:"computeAuthorType(authorBadges)"}),_.W("design:type",String)],qK.prototype,"authorType",void 0);_.u([_.Y({computed:"computeAuthorClass(authorType, singleLine)"}),_.W("design:type",String)],qK.prototype,"authorClass",void 0);_.u([_.Y({computed:"computeBadgesInsideChip(authorBadges)"}),_.W("design:type",Array)],qK.prototype,"badgesInsideChip",void 0);_.u([_.Y({computed:"computeBadgesOutsideChip(authorBadges)"}),_.W("design:type",Array)],qK.prototype,"badgesOutsideChip",void 0);
_.u([_.Y({computed:"computeBadgesBeforeChip(authorBadges)"}),_.W("design:type",Array)],qK.prototype,"badgesBeforeChip",void 0);_.u([_.Y({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.W("design:type",Boolean)],qK.prototype,"isHighlighted",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],qK.prototype,"singleLine",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],qK.prototype,"disableHighlighting",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],qK.prototype,"dashboardMoneyFeed",void 0);_.u([_.Y({value:_.U("live_chat_prepend_badges"),reflectToAttribute:!0}),_.W("design:type",Boolean)],qK.prototype,"prependChatBadges",void 0);_.u([_.Y(),_.W("design:type",String)],qK.prototype,"authorNameColor",void 0);_.u([_.Qc("#author-name"),_.W("design:type",HTMLDivElement)],qK.prototype,"username",void 0);
_.u([_.la("authorNameColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qK.prototype,"onSeedColorChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],qK);
_.d(qK,"yt-live-chat-author-chip",function(){if(EHQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;V7$===void 0&&(V7$=document.createElement("template"));var R=V7$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);EHQ=M}M=EHQ;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var f_J;var LfJ;var Wm=function(){var M=_.g.apply(this,arguments)||this;M.debounceCommand=_.j6(function(z){M.ytComponentBehavior.resolveCommand(z)},1500);
return M};
_.w(Wm,_.g);Wm.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var M=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",z,J,R=this.isHearted?(z=this.data)==null?void 0:z.unheartCommand:(J=this.data)==null?void 0:J.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.hk("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:M}));(M=_.$S(R))&&this.debounceCommand(M)}};
_.rX.Object.defineProperties(Wm.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M,z;if(!((M=this.data)==null?0:(z=M.creatorThumbnail)==null?0:z.sources))return{};M={thumbnails:[]};z={};z.url=this.data.creatorThumbnail.sources[0].url;M.thumbnails.push(z);return M}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((J=this.engagementState)==null?void 0:J.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}}});
Wm.prototype.onTap=Wm.prototype.onTap;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],Wm.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Wm.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.engagementStateKey"],selector:oap}),_.W("design:type",Object)],Wm.prototype,"engagementState",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Wm.prototype,"thumbnailDetails",null);_.u([_.F("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Wm.prototype,"isHearted",null);_.u([_.F("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Wm.prototype,"isEditable",null);
_.u([_.F("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Wm.prototype,"showCreatorView",null);_.u([_.F("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Wm.prototype,"showButton",null);_.u([_.F("data","isHearted"),_.W("design:type",String),_.W("design:paramtypes",[])],Wm.prototype,"label",null);_.u([_.F("data","isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],Wm.prototype,"heartHoverText",null);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Wm.prototype,"onTap",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Wm);
_.d(Wm,"yt-live-chat-creator-heart-view-model",function(){if(LfJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;f_J===void 0&&(f_J=document.createElement("template"));var R=f_J;J.call(z,R.content.cloneNode(!0),M.content.firstChild);LfJ=M}M=LfJ;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var aY=function(){};
_.w(aY,eE);aY.prototype.JSC$13017_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:fu("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
aY.prototype.getApiPaths=function(){return[]};
aY.prototype.getExtension=function(){};
aY.prototype.JSC$13017_buildRequest=function(){};var ADk={},i2Q=(ADk.GET_DATASYNC_IDS=pX(aY),ADk);var COV,b2S,rDu,VKg,Vn,JYt,CLB,zka,MA2;COV="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");b2S=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Ve=function(M,z,J,R,D,N,Z,B,O){this.endpointMap=M;this.networkManager=z;this.authService=J;this.responseProcessorMap=R;this.innertubeResponseStore=D;this.contextProcessors=N;this.asyncContextProcessors=Z;this.localInnertubeRouter=B;this.requestSequencer=O;this.inflightRequests=new Map;M.signalEndpointMap||(M.signalEndpointMap={});M.signalEndpointMap=Object.assign({},i2Q,M.signalEndpointMap)};
rDu=function(M,z,J,R,D,N,Z,B,O){if(_.Ve.instance!==void 0){if(R=_.Ve.instance,M=[M!==R.endpointMap,z!==R.networkManager,J!==R.authService,D!==R.innertubeResponseStore,N!==R.contextProcessors,Z!==R.asyncContextProcessors,B!==R.localInnertubeRouter],M.some(function(X){return X}))throw new _.xN("InnerTubeTransportService is already initialized",M);
}else _.Ve.instance=new _.Ve(M,z,J,R,D,N,Z,B,O)};
_.fn=function(M,z,J){var R=R===void 0?ALk:R;var D=CLB(M,z);return D?new _.If(function(N,Z){var B,O,X,l,e;return _.k(function(Q){switch(Q.nextAddress){case 1:return Q.yield(D,2);case 2:B=Q.yieldResult;O=B.JSC$13017_getRequest(z,J,R);if(!O){Z(new _.xN("Error: Failed to build request for command.",z));Q.jumpTo(0);break}VO(O.input);l=((X=O.requestShell)==null?void 0:X.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){e=MA2(O.config,l);Q.jumpTo(4);break}return Q.yield(zka(O.config,l),5);case 5:e=
Q.yieldResult;case 4:N(JYt(M,O,e)),_.UI(Q)}})}):_.gv(new _.xN("Error: No request builder found for command.",z))};
VKg=function(M,z,J,R){var D=D===void 0?ALk:D;var N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L;return _.k(function(z8){switch(z8.nextAddress){case 1:N=T6c(z,M.endpointMap);if(!N)throw new _.xN("Error: No streaming request builder found for command",z);Z=N.JSC$13017_getRequest(z,J,D);if(!Z)throw new _.xN("Failed to build YtRequest for streaming Command",z);if((B=M.localInnertubeRouter)==null||!B.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){z8.jumpTo(2);break}return z8.yield(M.localInnertubeRouter.localInnertubeResponse(Z.input,
Z.innerTubeRequest),3);case 3:return O=z8.yieldResult,X={},O.playerResponse&&(Vn(M,O.playerResponse,Z),X.player=O.playerResponse,(l=R)==null||l(X,O)),O.watchNextResponse&&(Vn(M,O.watchNextResponse,Z),X.content=O.watchNextResponse,(e=R)==null||e(X,O)),z8.return(X);case 2:v=((Q=Z.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){x=MA2(Z.config,v);z8.jumpTo(4);break}return z8.yield(zka(Z.config,v),5);case 5:x=z8.yieldResult;case 4:return H=(y=(m=Z.requestShell)==
null?void 0:m.headers)!=null?y:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},H,x)}),q=Object.assign({},Z.requestShell),b=JSON.stringify(Z.innerTubeRequest),Z.requestShell.method==="POST"&&(q=Object.assign({},q,{body:b})),V=function(O8,I3){Vn(M,I3.playerResponse||I3.watchNextResponse||I3.reelItemWatchResponse||I3.reelWatchSequenceResponse,Z);R==null||R(O8,I3)},E={},z8.yield(Rku(M.networkManager,Z.input,q,V),6);
case 6:return E=z8.yieldResult,((L=Z.config)==null?0:L.responseTick)&&_.hd(Z.config.responseTick),z8.return(E)}})};
_.W2=function(M,z,J,R,D){D=D===void 0?{authStrategy:{identity:ALk}}:D;var N=N===void 0?!0:N;var Z=function(){};
Z=TL8(BLY(J));z.context||(z.context=_.FSo(R,N));return new _.If(function(B){var O,X,l,e,Q;return _.k(function(v){if(v.nextAddress==1)return O=bCb(J),X=_.EK(O),M.authService.syncHeaders?(l=MA2(D,X),v.jumpTo(2)):v.yield(zka(D,X),3);v.nextAddress!=2&&(l=v.yieldResult);e=r$G(bCb(J));Q={input:e,requestShell:fu(e),innerTubeRequest:z,config:D};B(JYt(M,Q,l,Z));_.UI(v)})})};
Vn=function(M,z,J){var R;if(z&&!(z==null?0:(R=z.sequenceMetaData)==null?0:R.skipProcessing)&&M.responseProcessorMap){R=_.S(COV);for(var D=R.next();!D.done;D=R.next())D=D.value,M.responseProcessorMap[D]&&M.responseProcessorMap[D].handleResponse(z,J)}};
JYt=function(M,z,J,R){R=R===void 0?function(){}:R;
var D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8,I3,vY,te,wR,qb,cY,Pu,yV,Ik,rR,ea,ok,s$,pw,iJ,Nb,MB,vu,Tc;return _.k(function(Gt){switch(Gt.nextAddress){case 1:Z=(D=z.config)==null?void 0:(N=D.storeStrategy)==null?void 0:N.storeKey;if(!(Z&&M.innertubeResponseStore&&M.innertubeResponseStore.has(Z))||((B=z.config)==null?0:(O=B.storeStrategy)==null?0:O.disableCache)){Gt.jumpTo(2);break}return Gt.yield(M.innertubeResponseStore.get(Z),3);case 3:if((X=Gt.yieldResult)&&!X.isExpired())return Gt.return(Promise.resolve(_.Dz(X)));
case 2:if(!((l=z)==null?0:(e=l.innerTubeRequest)==null?0:e.context)){Gt.jumpTo(4);break}Q=z.innerTubeRequest.context;if(!(M.asyncContextProcessors&&M.asyncContextProcessors.length>0)){Gt.jumpTo(5);break}v=[];x=_.S(M.asyncContextProcessors);for(m=x.next();!m.done;m=x.next())y=m.value,H=y.processContext(z),H.wrappedPromise_&&v.push(H.wrappedPromise_);if(!(v.length>0)){Gt.jumpTo(5);break}return Gt.yield(Promise.all(v),5);case 5:q=_.S(M.contextProcessors||[]),b=q.next();case 8:if(b.done){Gt.jumpTo(4);
break}V=b.value;return Gt.yield(V.processContext(Q),9);case 9:b=q.next();Gt.jumpTo(8);break;case 4:if((E=M.localInnertubeRouter)==null||!E.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){Gt.jumpTo(12);break}return Gt.yield(M.localInnertubeRouter.localInnertubeResponse(z.input,z.innerTubeRequest),13);case 13:return L=Gt.yieldResult,Vn(M,L,z),Gt.return(L);case 12:return(I3=(O8=z.config)==null?void 0:O8.requestKey)&&M.inflightRequests.has(I3)?z8=M.inflightRequests.get(I3):(vY=JSON.stringify(z.innerTubeRequest),
qb=(wR=(te=z.requestShell)==null?void 0:te.headers)!=null?wR:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},qb,J)}),cY=Object.assign({},z.requestShell),z.requestShell.method==="POST"&&(cY=Object.assign({},cY,{body:vY})),((Pu=z.config)==null?0:Pu.requestTick)&&_.hd(z.config.requestTick),yV=function(){return M.networkManager.fetch(z.input,cY,z.config)},z8=M.requestSequencer?D1v(M.requestSequencer,z,yV):yV(),I3&&M.inflightRequests.set(I3,z8)),Gt.yield(z8,14);
case 14:(Ik=Gt.yieldResult)&&_.U("web_streaming_player")&&Array.isArray(Ik)&&(Ik=Ik[0].playerResponse);if(Ik&&"error"in Ik&&((rR=Ik)==null?0:(ea=rR.error)==null?0:ea.details))for(ok=Ik.error.details,s$=_.S(ok),pw=s$.next();!pw.done;pw=s$.next())iJ=pw.value,(Nb=iJ["@type"])&&b2S.indexOf(Nb)>-1&&(delete iJ["@type"],Ik=iJ);I3&&M.inflightRequests.has(I3)&&M.inflightRequests.delete(I3);((MB=z.config)==null?0:MB.responseTick)&&_.hd(z.config.responseTick);if(Ik||(vu=M.localInnertubeRouter)==null||!vu.canProvideFallbackResponse(z.input,
z.innerTubeRequest)){Gt.jumpTo(15);break}return Gt.yield(M.localInnertubeRouter.localFallbackInnertubeResponse(z.input,z.innerTubeRequest),16);case 16:Ik=Gt.yieldResult;case 15:return Vn(M,Ik,z),((Tc=z.config)==null?0:Tc.processorTick)&&_.hd(z.config.processorTick),R(),Gt.return(Ik||void 0)}})};
_.EN=function(M,z){return O1e(z,M.endpointMap)};
CLB=function(M,z){M=ITp(z,M.endpointMap);if(M!==void 0)return Promise.resolve(M)};
zka=function(M,z){var J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){D=(J=M)==null?void 0:(R=J.authStrategy)==null?void 0:R.sessionIndex;var B=Z.yield;var O=_.Of(wPc({sessionIndex:D}));return B.call(Z,O,2)}N=Z.yieldResult;return Z.return(Promise.resolve(Object.assign({},odY(z),N)))})};
MA2=function(M,z){var J;M=M==null?void 0:(J=M.authStrategy)==null?void 0:J.sessionIndex;J=wPc({sessionIndex:M});return Object.assign({},odY(z),J)};var Nt2,Px$,So$,ZPV,kYV,BtB,I6u,ovv,LE,XVV,l6k,TtS,ekv;Nt2=0;Px$=/tone[1-5]/;So$=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");ZPV="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
kYV=Number.MAX_SAFE_INTEGER;BtB=RegExp("\ufe0f","g");_.EQ=function(M){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;M&&_.OPp(this,M)};
_.OPp=function(M,z){try{_.ob(z,{context:M,onSuccess:function(R,D){Array.isArray(D)?M.load(D):(R=new _.xN("Emoji manager JSON response was not an array!",{response:D}),_.nc(R))},
onError:function(R){R=new _.xN("Failed to retrieve emoji manager initial JSON data!",{url:z,statusCode:_.kN(R).toString()});_.yA(R)}})}catch(R){var J=new _.xN("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:z});
_.yA(J)}};
_.EQ.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.EQ.prototype.load=function(M,z){if(z)if(M.length)M=M.concat(z.emojis);else{this.emojis=z.emojis;this.emojiMap=z.emojiMap;this.emojiShortcutMap=z.emojiShortcutMap;this.emojiShortcutCharMap=TtS(z);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=z.emojiRegex;return}this.emojis=[].concat(_.Yj(new Set(this.emojis.concat(M))));this.hasInitializedShortcutCharMap=!1;M=Array(this.emojis.length);for(z=0;z<this.emojis.length;z++){var J=this.emojis[z];if(J.emojiId){this.emojiMap[J.emojiId]=J;this.emojiMap[J.emojiId].index=
z;for(var R=0;J.shortcuts&&R<J.shortcuts.length;R++)this.emojiShortcutMap[J.shortcuts[R].toLocaleLowerCase()]=J;M[z]=J.isCustomEmoji&&J.shortcuts?J.shortcuts[0]:J.emojiId}}M.sort(function(D,N){return N.length-D.length});
if(M.length)try{this.emojiRegex=new RegExp(M.join("|").replace("*","\\*"),"gi")}catch(D){this.emojiRegex=/$./}else this.emojiRegex=/$./};
I6u=function(M,z){z=_.S(z);for(var J=z.next();!J.done;J=z.next()){var R=J.value;if(R.emojiId&&M.emojiMap[R.emojiId]){J=Object.assign({},M.emojiMap[R.emojiId],R);M.emojiMap[R.emojiId]=J;var D=void 0;J.index&&((D=M.emojis[J.index])==null?void 0:D.emojiId)===R.emojiId&&(M.emojis[J.index]=J);R=void 0;if((R=J.shortcuts)==null?0:R.length)for(M.hasInitializedShortcutCharMap=!1,R=_.S(J.shortcuts),D=R.next();!D.done;D=R.next())M.emojiShortcutMap[D.value.toLocaleLowerCase()]=J}}};
ovv=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(_.nN.getInstance(),2);if(R.nextAddress!=3)return(z=R.yieldResult)?R.yield(z.get("ytlc-emoji-pref"),3):R.return();(J=R.yieldResult)&&I6u(M,Object.keys(J).map(function(D){return{emojiId:D,stickyPrefId:J[D]}}).filter(function(D){return!!D.emojiId&&!!D.stickyPrefId}));
_.UI(R)})};
_.fE=function(M,z,J){return(M=M.emojiMap[z])&&(!M.isLocked||J!==void 0&&J)?M:void 0};
LE=function(M,z,J){J=_.fE(M,z,J===void 0?!1:J);var R=z.match("\u200d");J&&M.skinTone!==0&&(M=(R==null?void 0:R.length)===1?_.fE(M,z.replace("\u200d",So$[M.skinTone]+"\u200d")):_.fE(M,z+So$[M.skinTone]))&&(J=M);return J};
XVV=function(M,z){var J=M.emojiMap[z];return(J==null?0:J.stickyPrefId)?M.emojiMap[J.stickyPrefId]:LE(M,z)};
_.Ty=function(M,z){M=M.emojiShortcutMap[z.toLocaleLowerCase()];return!M||M.isLocked?null:M};
l6k=function(M,z,J){return TtS(M,J===void 0?!1:J)[z]||{}};
TtS=function(M,z){z=z===void 0?!1:z;if(!M.hasInitializedShortcutCharMap){M.hasInitializedShortcutCharMap=!0;for(var J=0;J<M.emojis.length;J++){var R=M.emojis[J];if(!(R.isLocked||z&&R.isCustomEmoji&&R.emojiId&&!M.pickerCustomEmojiIds.includes(R.emojiId)))for(var D=0;R.shortcuts&&D<R.shortcuts.length;D++){var N=R.shortcuts[D];N.startsWith(":_")&&R.isCustomEmoji&&(M.emojiShortcutCharMap[":_"]==null&&(M.emojiShortcutCharMap[":_"]=Object.create(null)),M.emojiShortcutCharMap[":_"][N]=R);if(!(N.length<3||
!R.isCustomEmoji&&Px$.test(N))){var Z=N.substr(0,3).toLocaleLowerCase();M.emojiShortcutCharMap[Z]==null&&(M.emojiShortcutCharMap[Z]=Object.create(null));M.emojiShortcutCharMap[Z][N]=R}}}}return M.emojiShortcutCharMap};
_.EQ.prototype.createEmoji=function(M,z){z=z===void 0?!0:z;var J=document.createElement("img");M.isCustomEmoji||J.classList.add("small-emoji");J.classList.add("emoji");J.classList.add("yt-formatted-string");J.src=M.image?_.PS(M.image.thumbnails,this.emojiSize)||"":"";var R=void 0;M.image&&M.image.accessibility&&M.image.accessibility.accessibilityData&&(R=M.image.accessibility.accessibilityData.label);J.alt=R?R:(M.isCustomEmoji&&M.shortcuts?M.shortcuts[0]:M.emojiId)||"";M.isCustomEmoji&&(J.dataset.emojiId=
M.emojiId);_.Tj&&(J.setAttribute("contenteditable","false"),J.setAttribute("unselectable","on"));z&&(M.shortcuts&&M.shortcuts.length&&J.setAttribute("shared-tooltip-text",M.shortcuts[0]),J.id="emoji-"+Nt2++);return J};
_.EQ.prototype.createDocumentFragment=function(M,z,J,R){z=z===void 0?!1:z;J=J===void 0?!0:J;R=R===void 0?!1:R;M=M.replace(BtB,"");for(var D=document.createDocumentFragment(),N=0,Z,B=0;(Z=this.emojiRegex.exec(M))!=null;){var O=_.fE(this,Z[0])||_.Ty(this,Z[0]);!O||O.isCustomEmoji&&!z||(O=this.createEmoji(O,J),N!==Z.index&&D.appendChild(document.createTextNode(M.substring(N,Z.index))),D.appendChild(O),N=Z.index+Z[0].length,B++)}if(!R||B)return D.appendChild(document.createTextNode(M.substr(N))),D};
ekv=function(M,z,J){var R,D,N,Z,B,O,X,l,e;return _.k(function(Q){if(Q.nextAddress==1){if(!z.emojiId||!M.emojiMap[z.emojiId])return Q.return();R=Object.assign({},M.emojiMap[z.emojiId],{stickyPrefId:J});M.emojiMap[z.emojiId]=R;z.index&&((D=M.emojis[z.index])==null?void 0:D.emojiId)===z.emojiId&&(M.emojis[z.index]=R);if((N=z.shortcuts)==null?0:N.length)for(M.hasInitializedShortcutCharMap=!1,Z=_.S(z.shortcuts),B=Z.next();!B.done;B=Z.next())O=B.value,M.emojiShortcutMap[O.toLocaleLowerCase()]=R;return Q.yield(_.nN.getInstance(),
2)}if(Q.nextAddress!=4)return(X=Q.yieldResult)?Q.yield(X.get("ytlc-emoji-pref"),4):Q.jumpTo(0);e=(l=Q.yieldResult)!=null?l:{};e[z.emojiId]=J;return Q.yield(X.set("ytlc-emoji-pref",e,kYV),0)})};
_.As=new _.EQ;var vvS;_.iT={};
vvS={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.U("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:_.U("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 LD(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var M=_.SN(this.hostElement||this).querySelector("#inline-action-button-container");M&&M.setAttribute("aria-hidden","true");this.menuButton=_.SN(this.hostElement).querySelector("#menu-button")},
attached:function(){var M=this.menuButton;M&&(M.addEventListener("focusin",_.ou(this,this.onMenuButtonFocus_)),M.addEventListener("focusout",_.ou(this,this.onMenuButtonBlur_)))},
detached:function(){var M=this.menuButton;M&&(M.removeEventListener("focusin",_.ou(this,this.onMenuButtonFocus_)),M.removeEventListener("focusout",_.ou(this,this.onMenuButtonBlur_)))},
identity:_.yH,truthy:function(M){return!!M},
computeTimestampString:function(M){return M?M.timestampText?this.getSimpleString(M.timestampText):this.TIME_FORMATTER.format(new Date(M.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(M){return M},
computeMenuVisible_:function(M,z){return M||z},
computeHasInlineActionButtons:function(M){if(!M)return!1;var z,J;return!((z=M.inlineActionButtons)==null||!z.length)||!((J=M.additionalInlineActionButtons)==null||!J.length)},
createDocumentFragmentFromString:function(M){var z=_.As.createDocumentFragment.bind(_.As),J;if((J=this.participantsManager)==null||!J.viewerRegex)return z(M);J=document.createDocumentFragment();for(var R=0,D;(D=this.participantsManager.viewerRegex.exec(M))!=null;){if(D.index>0){var N=":"+D[0]+":";if((_.fE(_.As,N)||_.Ty(_.As,N))&&M.indexOf(N)===D.index-1)continue}J.appendChild(z(M.substring(R,D.index)));R=document.createElement("span");R.appendChild(z(D[0]));R.classList.add("mention");J.appendChild(R);
R=D.index+D[0].length}J.appendChild(z(M.substring(R)));return J},
createDocumentFragment:function(M){var z=document.createDocumentFragment();if(M.simpleText)return z.appendChild(this.createDocumentFragmentFromString(M.simpleText)),z;if(!M.runs)return z;for(var J=0;J<M.runs.length;J++){var R=M.runs[J];if(R.emoji)z.appendChild(_.As.createEmoji(R.emoji));else if(R.text)if(R.navigationEndpoint){var D=document.createElement("a");D.classList.add("yt-simple-endpoint");uap(D,R.navigationEndpoint);_.SN(D).appendChild(this.createDocumentFragmentFromString(R.text));z.appendChild(D)}else z.appendChild(this.createDocumentFragmentFromString(R.text))}return z},
hasModerationOverlayVisible:function(){var M;return((M=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:M.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(M){M.composedPath().some(function(z){return(z=z instanceof Element?z:null)?z.tagName&&(z.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||z.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.U("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(M)},
colorFromDecimal:function(M){return J28(M)},
markAsDeleted:function(M,z){this.set("data.deletedStateMessage",M);this.set("data.showOriginalContentMessage",z)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(M){if(this.data.contextMenuEndpoint){var z=_.JF().resolve(_.HP),J=this.data.contextMenuEndpoint,R;(R=_.Ve.instance)&&_.EN(R,J)?(z=QBg(z,J),R=_.W2(R,{},z)):R=_.U1B(z,J);R.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);M&&M.stopPropagation()}},
handleGetContextMenuResponse_:function(M){var z=_.Ve.instance;z&&_.EN(z,{liveChatEndpoint:{}})||(M=M.response);M.liveChatItemContextMenuSupportedRenderers&&M.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(M.liveChatItemContextMenuSupportedRenderers.menuRenderer);M.actions&&_.S9(this.hostElement,"yt-live-chat-actions",[M.actions])},
handleGetContextMenuError:function(M){if(M instanceof Error||M instanceof Object||M instanceof String)var z=M;_.nc(new _.xN("Error encountered calling GetLiveChatItemContextMenu",z))},
showContextMenu_:function(M){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:M}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Pv(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Pv(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.iT.YtLiveChatItemBehavior=[vvS,_.LZ.YtComponentBehavior,_.UQ.YtOpenPopupBehavior];_.CE=function(){};var GYV;var wVu;var x1a;var tAk;var bT=function(){var M=_.g.apply(this,arguments)||this;M.active=!1;M.identity=_.yH;return M};
_.w(bT,_.g);bT.prototype.dataChanged=function(){this.active=!1};
bT.prototype.onClick=function(){_.Pv(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
bT.prototype.dataChanged=bT.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],bT.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bT.prototype,"active",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bT.prototype,"dataChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],bT);
_.d(bT,"yt-live-chat-text-input-field-suggestion",function(){if(tAk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;x1a===void 0&&(x1a=document.createElement("template"));var R=x1a;J.call(z,R.content.cloneNode(!0),M.content.firstChild);tAk=M}M=tAk;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});_.rx=function(M,z,J){return CustomEvent.call(this,M,{detail:{value:z,path:J}})||this};
_.w(_.rx,CustomEvent);_.M4=function(){var M=_.g.apply(this,arguments)||this;M.viewerName=null;M.actionMap={"yt-live-chat-actions":"onChatMessage_"};M.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];M.PARTICIPANT_TIME_USEC_=3E8;return M};
_.w(_.M4,_.g);_.P=_.M4.prototype;_.P.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.P.addParticipant=function(M){var z=_.Y8o(this.participants,M,function(R,D){R=R[Object.keys(R)[0]];D=D[Object.keys(D)[0]];R=String(_.CD(R.authorName)).toLowerCase();D=String(_.CD(D.authorName)).toLowerCase();return R<D?-1:R==D?0:1}.bind(this));
if(z>=0){var J=this.participants[z];J[Object.keys(J)[0]].timestampUsec&&this.splice("participants",z,1,M)}else this.splice("participants",-z-1,0,M);M=M[Object.keys(M)[0]];z=_.CD(M.authorName).toLocaleLowerCase();J=z.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(J)||(this.allParticipantsCharMap_[J]={});this.allParticipantsCharMap_[J][z]=M};
_.P.getAuthorsFromPrefix=function(M){return this.allParticipantsCharMap_.hasOwnProperty(M)?this.allParticipantsCharMap_[M]:null};
_.P.computeViewerRegex_=function(M){if(!M)return null;M=M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var z=M.indexOf("@")===0&&_.U("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(z+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.P.checkForStaleParticipants_=function(){var M=this;this.trimOldParticipants_();this.asyncHandle_&&F00(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.au(function(){M.checkForStaleParticipants_()},3E4))};
_.P.onChatMessage_=function(M){var z=this,J=Date.now()*1E3;M.forEach(function(R){if(R=_.G(R,wha)){R=R.item;var D=Object.keys(R)[0];z.SUPPORTED_ITEM_TYPES_.indexOf(D)!=-1&&R[D].timestampUsec>=J-z.PARTICIPANT_TIME_USEC_&&z.addParticipant(R)}},this);
this.checkForStaleParticipants_()};
_.P.trimOldParticipants_=function(){for(var M=Date.now()*1E3,z=this.participants.length-1;z>=0;z--){var J=this.participants[z];J=J[Object.keys(J)[0]];J.timestampUsec&&J.timestampUsec<M-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",z,1)}};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],_.M4.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],_.M4.prototype,"viewerName",void 0);_.u([_.Y({computed:"computeViewerRegex_(viewerName)"}),_.W("design:type",Object)],_.M4.prototype,"viewerRegex",void 0);_.u([_.Y({value:function(){return[]},
notify:!0}),_.W("design:type",Array)],_.M4.prototype,"participants",void 0);_.u([_.cU({is:"yt-live-chat-participants-manager",noInjection:!0})],_.M4);var jBS=/.*([:@#].*?)$/,zs=/\u00a0/g,pV2=String.fromCharCode(160),FLa={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"},Jp=function(){var M=_.g.apply(this,arguments)||this;M.disabled=!1;M.liveChatRichMessageInput=null;M.messageInput=null;M.isValidWithNoInputText=!1;M.suggestions=[];M.emojiManager=_.As;M.inputMethodEditorActive=
!1;M.suggestionIndex=-1;M.JSC$14022_lastSuggestionRange=null;return M};
_.w(Jp,_.g);_.P=Jp.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.P.attached=function(){_.IJ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.P.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.P.dataChanged=function(){if(!this.ignoreColorMapping){var M=!1,z={},J;for(J in FLa)this.data&&this.data.hasOwnProperty(J)&&(z[FLa[J]]=this.colorFromDecimal(this.data[J]),M=!0);M&&_.Tp(this.hostElement,z)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.P.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.P.colorFromDecimal=function(M){M=Math.floor(Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
_.P.preventDrag=function(M){M.dataTransfer&&(M.dataTransfer.dropEffect="none");M.preventDefault()};
_.P.preventResize=function(M){M.returnValue=!1};
_.P.onInputChange=function(){var M=this.characterCount,z=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&z&&z.remove();if(!z&&this.characterCount>this.maxCharacterLimit){var J=window.getSelection();if(J){var R=J.getRangeAt(0);J.removeAllRanges();J.addRange(R)}}if(J=this.getCurrentRange())R=this.calculateTextBeforeRange(J),this.completeEmojisInRange(J,R,!0)||this.updateSuggestions(J,R);R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);
_.Pv(this.hostElement,"yt-live-chat-message-input-change",R);z&&this.characterCount===0&&z.remove();J&&J.commonAncestorContainer.parentElement.id==="input"&&J.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>M):J&&!J.collapsed&&J.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(M=this.input.childNodes.length-1;M>=0;M--)this.input.childNodes[M].nodeName==="BR"&&this.input.childNodes[M].remove()};
_.P.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.P.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var M=this.getCurrentRange();M&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.mergeOverflowText=function(M){if(M){var z=document.createRange();z.selectNodeContents(M);z=z.extractContents();this.input.insertBefore(z,M)}};
_.P.checkRangeAtEndOfInput=function(){var M=this.getCurrentRange();if(M){var z=_.SN(this.hostElement).querySelector("#overflow-text"),J=document.createRange();z&&z.previousSibling?z.previousSibling instanceof HTMLImageElement?J.selectNode(z.previousSibling):J.selectNodeContents(z.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?J.selectNode(this.input.lastChild):J.selectNodeContents(this.input.lastChild));J.collapse(!1);return J.isPointInRange(M.startContainer,
M.startOffset)}return!1};
_.P.handleOverflowText=function(M){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var z=_.SN(this.hostElement).querySelector("#overflow-text"),J=this.getCurrentRange();this.input.normalize();M=this.checkRangeAtEndOfInput()&&M;this.mergeOverflowText(z);for(var R,D=0,N=0,Z,B=this.input.childNodes,O=0;O<B.length;O++){var X=B[O];X instanceof Text?(N+=X.textContent.length,N>this.maxCharacterLimit&&(R=X,D=this.maxCharacterLimit+X.textContent.length-N)):X instanceof HTMLImageElement&&
(R=void 0,N=X.dataset.emojiId&&((R=this.data)==null?0:R.emojiCharacterCount)?N+this.data.emojiCharacterCount:N+X.alt.length,R=this.input,D=O);if(N>this.maxCharacterLimit&&R){Z=document.createRange();Z.collapse(!1);z?(N=this.input.lastChild.previousSibling,N instanceof Text?Z.setEnd(this.input.lastChild.previousSibling,N.textContent.length):N instanceof HTMLImageElement&&Z.setEnd(this.input,this.input.childNodes.length-1)):Z.selectNodeContents(this.input);Z.setStart(R,D);break}}Z&&(R=!1,J&&(M=Z.isPointInRange(J.startContainer,
J.startOffset-1)),z||(z=document.createElement("span"),z.id="overflow-text",z.textContent="",z.setAttribute("contenteditable","true"),_.SN(_.SN(this.hostElement).querySelector("#input")).appendChild(z),R=!0),z&&(J=Z.extractContents(),z.insertBefore(J,z.firstChild),M&&z.firstChild&&(J=document.createRange(),R?J.setStartAfter(z.lastChild):J.setStartAfter(z.firstChild),J.collapse(!0),z=window.getSelection(),z.removeAllRanges(),z.addRange(J))))}};
_.P.checkForDuplicateSpans=function(){for(var M=0;M<this.input.childNodes.length;M++){var z=this.input.childNodes[M];if(z.nodeName==="SPAN"){var J=document.createRange();J.selectNodeContents(z);J=J.extractContents();this.input.insertBefore(J,z);z.remove()}}this.handleOverflowText(!0)};
_.P.getCurrentRange=function(){var M=window.getSelection();return M&&M.rangeCount?M.getRangeAt(0).cloneRange():null};
_.P.getInputRange=function(){var M=this.getCurrentRange();if(M){for(var z=M.commonAncestorContainer,J=!1,R=_.SN(this.hostElement).querySelector("#input");z;){if(z===R){J=!0;break}z=z.parentNode}J||(M=null)}M||(M=this.getRangeAtEnd());return M};
_.P.getRangeAtEnd=function(){var M=document.createRange(),z=_.SN(this.hostElement).querySelector("#input").lastChild;!z||z.nodeName!=="#text"&&z.nodeName!=="SPAN"?(M.selectNodeContents(_.SN(this.hostElement).querySelector("#input")),M.collapse(!1)):z.nodeName==="#text"?M.setStart(z,z.textContent.length):M.setStart(z,z.childNodes.length);return M};
_.P.getChatParticipantSuggestions=function(M,z,J,R){var D=_.U("live_chat_enable_handles_web_text_input_update");if(z)for(var N in z)if(N.indexOf(M)===0||D&&N.indexOf(J+M)===0){var Z=z[N],B=_.CD(Z.authorName);R.push({suggestion:{author:!0,authorType:J,image:Z.authorPhoto,alt:B,text:B}});if(R.length>=64)break}};
_.P.getSuggestions=function(M){var z=[],J=M.substring(0,3),R=l6k(_.As,J,!0);if(R)for(var D in R)if(D.toLocaleLowerCase().indexOf(M)===0){var N=R[D];if(N&&N.emojiId){if(N=XVV(_.As,N.emojiId)){var Z=void 0,B=void 0,O=void 0,X=void 0,l=((Z=N.image)==null?0:(B=Z.accessibility)==null?0:(O=B.accessibilityData)==null?0:O.label)||N.isCustomEmoji?(X=N.shortcuts)==null?void 0:X[0]:N.emojiId;z.push({suggestion:{emoji:!0,image:N.image,alt:l,text:D,textToInsertWhenSelected:N.isCustomEmoji?D:l}})}if(z.length>=
64)break}}if(!this.participantsManager)return null;if(J.indexOf("@")===0||J.indexOf("#")===0)R=J.charAt(0),M=M.substring(1),D=_.U("live_chat_enable_handles_web_text_input_update"),J.indexOf("@")===0&&D&&(D=this.participantsManager.getAuthorsFromPrefix(J.substring(0,2)),this.getChatParticipantSuggestions(M,D,R,z)),J=J.substring(1),J=this.participantsManager.getAuthorsFromPrefix(J),this.getChatParticipantSuggestions(M,J,R,z);return z?z.sort(function(e,Q){return Q.suggestion.text<e.suggestion.text?-1:
Q.suggestion.text===e.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(M){var z=_.U("live_chat_enable_handles_web_text_input_update"),J=M.authorType;z=M.text.indexOf(J)===0&&z?M.text+pV2:J+M.text+pV2;M.emoji?this.insertTextAtRange(this.JSC$14022_lastSuggestionRange,M.textToInsertWhenSelected||""):M.author&&this.insertTextAtRange(this.JSC$14022_lastSuggestionRange,z)};
_.P.updateSuggestionsAtCaret=function(){var M=this.getCurrentRange();M&&this.updateSuggestions(M,this.calculateTextBeforeRange(M))};
_.P.offsetStartOfRangeBy=function(M,z){for(;z>0;)if(M.startOffset-z>=0){M.setStart(M.startContainer,M.startOffset-z);break}else{z=M.startContainer instanceof HTMLImageElement?z-M.startContainer.alt.length:z-M.startOffset;var J=M.startContainer.previousSibling;if(!J){M.setStart(M.startContainer,0);break}if(_.U("live_chat_require_space_for_autocomplete_emoji")){var R=void 0,D=void 0;M.setStart(J,((R=J)==null?void 0:(D=R.textContent)==null?void 0:D.length)||0)}else M.setStart(J,J.childNodes.length||
0)}};
_.P.updateSuggestions=function(M,z){var J=this;this.JSC$14022_lastSuggestionRange&&(this.JSC$14022_lastSuggestionRange.detach(),this.JSC$14022_lastSuggestionRange=null);if((z=jBS.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2&&(this.offsetStartOfRangeBy(M,z.length),this.JSC$14022_lastSuggestionRange=M,(M=this.getSuggestions(z))&&M.length))){this.suggestions=M;_.C4(this,function(){_.SN(J.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.P.completeEmojisInRange=function(M,z,J){var R=z.replace(/[\s\xa0]+$/,"");z=z.length-R.length;R=R.split(" ");R=R[R.length-1].trim().toLocaleLowerCase();var D=R.lastIndexOf(":");if(J&&!z&&D!==R.length-1)return!1;D!==-1&&(J=R.lastIndexOf(":",D-1),J!==-1&&(R=R.substring(J)));if((J=_.Ty(_.As,R))&&J.emojiId){J=XVV(_.As,J.emojiId)||null;this.offsetStartOfRangeBy(M,R.length+z);var N,Z,B,O;R=(((N=J)==null?0:N.isCustomEmoji)?(Z=J)==null?void 0:(B=Z.shortcuts)==null?void 0:B[0]:(O=J)==null?void 0:O.emojiId)||
"";z&&(R+=pV2);this.insertTextAtRange(M,R);this.dropdown.opened=!1;return!0}return!1};
_.P.onSuggestion=function(M){this.insertSuggestion(M.detail);this.dropdown.opened=!1};
_.P.onKeyPress=function(M){M.keyCode===13&&(M.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Pv(this.hostElement,"yt-live-chat-send-message"))};
_.P.completeEmojis=function(){var M=document.createRange(),z=_.SN(this.hostElement).querySelector("#input").lastChild;z?M.setStart(z,z.childNodes.length):(M.selectNodeContents(_.SN(this.hostElement).querySelector("#input")),M.collapse(!1));this.completeEmojisInRange(M,this.calculateTextBeforeRange(M),_.U("live_chat_require_space_for_autocomplete_emoji"))};
_.P.maybePreventTextFormatting=function(M){!_.es||!M.ctrlKey&&!M.metaKey||M.keyCode!==66&&M.keyCode!==73||(M.stopImmediatePropagation(),M.preventDefault())};
_.P.onKeyDown=function(M){this.maybePreventTextFormatting(M);if(this.dropdown.opened)switch(M.keyCode){case 27:this.dropdown.opened=!1;M.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;M.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.P.onKeyUp=function(M){switch(M.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Tj)this.onInputChange()};
_.P.changeSuggestionIndex=function(M){if(this.dropdown.opened){var z=_.SN(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<z.children.length&&(z.children[this.suggestionIndex].active=!1);var J=this.suggestions.length;this.suggestionIndex=(M+J)%J;M=z.children[this.suggestionIndex];M.active=!0;z.scrollTop=M.offsetTop}};
_.P.onInputPaste=function(M){M.preventDefault();(M=M.clipboardData)&&M.types&&(M=M.getData("text/plain")||"",M=M.replace(/\n/g,""),this.insertText(M));(M=this.getCurrentRange())&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.onFocus=function(){this._setFocused(!0)};
_.P.onBlur=function(){this._setFocused(!1)};
_.P.insertText=function(M){this.insertTextAtRange(this.getInputRange(),M)};
_.P.insertTextAtRange=function(M,z){if(M&&(M.collapsed||M.deleteContents(),z=_.As.createDocumentFragment(z,!0,!1))){for(var J=_.S((z==null?void 0:z.childNodes)||[]),R=J.next();!R.done;R=J.next()){R=R.value;var D=void 0,N=void 0,Z=void 0,B=void 0,O=void 0;(Z=(D=window)==null?void 0:(N=D.ShadyCSS)==null?void 0:N.ScopingShim)==null||(O=(B=Z).scopeNode)==null||O.call(B,R,this.hostElement.localName)}J=z.lastChild;M.insertNode(z);this.focused||this.input.focus();if(this.focused){M=M.cloneRange();M.selectNodeContents(J);
M.collapse(!1);if(z=window.getSelection())z.removeAllRanges(),z.addRange(M);M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}M=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(M);_.Pv(this.hostElement,"yt-live-chat-message-input-change",M)}};
_.P.setLiveChatRichMessageInput=function(M){_.SN(_.SN(this.hostElement).querySelector("#input")).textContent="";if(M&&M.textSegments){for(var z=0;z<M.textSegments.length;z++){var J=M.textSegments[z];J.text?_.SN(_.SN(this.hostElement).querySelector("#input")).appendChild(_.As.createDocumentFragment(J.text,!0,!1)):J.emojiId&&(J=_.fE(_.As,J.emojiId))&&_.SN(_.SN(this.hostElement).querySelector("#input")).appendChild(_.As.createEmoji(J,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.P.setText=function(M){this.setLiveChatRichMessageInput(M?{textSegments:[{text:M}]}:null)};
_.P.calculateTextBeforeRange=function(M){var z="",J=M.startContainer;if(J&&J instanceof Text){var R;z=((R=J.textContent)==null?void 0:R.substring(0,M.startOffset))||"";J=J.previousSibling}for(;J&&J instanceof Text;)z=J.textContent+z,J=J.previousSibling;return z.replace(zs," ")};
_.P.calculateLiveChatRichMessageInput=function(){for(var M=[],z="",J=_.SN(_.SN(this.hostElement).querySelector("#input")).childNodes,R=0;R<J.length;R++){var D=J[R];D instanceof Text?z+=D.textContent:D instanceof HTMLImageElement&&(D.dataset.emojiId?(z&&(M.push({text:z.replace(zs," ")}),z=""),M.push({emojiId:D.dataset.emojiId})):z+=D.alt)}z&&M.push({text:z.replace(zs," ")});if(J=_.SN(this.hostElement).querySelector("#overflow-text")){z="";J=J.childNodes;for(R=0;R<J.length;R++)D=J[R],D instanceof Text?
z+=D.textContent:D instanceof HTMLImageElement&&(D.dataset.emojiId?(z&&(M.push({text:z.replace(zs," ")}),z=""),M.push({emojiId:D.dataset.emojiId})):z+=D.alt);z&&M.push({text:z.replace(zs," ")})}return{textSegments:M}};
_.P.computeCharacterCount=function(M){if(!M||!M.textSegments)return 0;for(var z=0,J=0;J<M.textSegments.length;J++){var R=M.textSegments[J];if(R.text)z+=R.text.length;else if(R.emojiId){var D=void 0;if((D=this.data)==null?0:D.emojiCharacterCount)z+=this.data.emojiCharacterCount;else{var N=D=void 0,Z=void 0;z+=((N=_.fE(_.As,(D=R)==null?void 0:D.emojiId))==null?void 0:(Z=N.shortcuts)==null?void 0:Z[0].length)||0}}}return z};
_.P.characterCountChanged=function(){_.Pv(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.P.focusedChanged=function(){this.hostElement.dispatchEvent(new _.rx("focused-changed",this.focused))};
_.P.focus=function(){this.setFocus(!1)};
_.P.focusAtEnd=function(){this.setFocus(!0)};
_.P.setFocus=function(M){M=M?this.getRangeAtEnd():this.getInputRange();_.SN(this.hostElement).querySelector("#input").focus();var z=window.getSelection();z&&(z.removeAllRanges(),z.addRange(M))};
_.P.insertEmoji=function(M){var z,J=((M==null?0:M.isCustomEmoji)?(z=M.shortcuts)==null?void 0:z[0]:M==null?void 0:M.emojiId)||"";this.insertText(J)};
_.P.computeText=function(M){if(!M||!M.textSegments)return"";for(var z="",J=0;J<M.textSegments.length;J++){var R=M.textSegments[J];if(R.text)z+=R.text;else if(R.emojiId){var D=void 0,N=void 0,Z=void 0;z+=((N=_.fE(_.As,(D=R)==null?void 0:D.emojiId))==null?void 0:(Z=N.shortcuts)==null?void 0:Z[0])||""}}return z};
_.P.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.rX.Object.defineProperties(Jp.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
Jp.prototype.focusedChanged=Jp.prototype.focusedChanged;Jp.prototype.characterCountChanged=Jp.prototype.characterCountChanged;Jp.prototype.onSuggestion=Jp.prototype.onSuggestion;Jp.prototype.onMessageSet=Jp.prototype.onMessageSet;Jp.prototype.dataChanged=Jp.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Jp.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Jp.prototype,"disabled",void 0);_.u([_.F("disabled"),_.W("design:type",Number),_.W("design:paramtypes",[])],Jp.prototype,"inputTabIndex",null);_.u([_.F("data.maxCharacterLimit"),_.Y({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jp.prototype,"maxCharacterLimit",null);
_.u([_.F("liveChatRichMessageInput"),_.Y({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jp.prototype,"characterCount",null);_.u([_.F("maxCharacterLimit, characterCount"),_.Y({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],Jp.prototype,"remainingCharacterCount",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Jp.prototype,"isChatMessageInput",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Jp.prototype,"inputExpanded",void 0);_.u([_.Y({readOnly:!0,notify:!0}),_.W("design:type",Object)],Jp.prototype,"liveChatRichMessageInput",void 0);_.u([_.Y(),_.W("design:type",Object)],Jp.prototype,"messageInput",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Jp.prototype,"ignoreColorMapping",void 0);_.u([_.F("characterCount"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Jp.prototype,"hasText",null);
_.u([_.Y(),_.W("design:type",Object)],Jp.prototype,"isValidWithNoInputText",void 0);_.u([_.F("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Y(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Jp.prototype,"isInputValid",null);_.u([_.Y({readOnly:!0,value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Jp.prototype,"focused",void 0);_.u([_.Y(),_.W("design:type",Array)],Jp.prototype,"suggestions",void 0);
_.u([_.Y(),_.W("design:type",_.EQ)],Jp.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",_.M4)],Jp.prototype,"participantsManager",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Jp.prototype,"noUnderline",void 0);_.u([_.Y(),_.W("design:type",Object)],Jp.prototype,"inputMethodEditorActive",void 0);_.u([_.Qc("#dropdown"),_.W("design:type",Object)],Jp.prototype,"dropdown",void 0);_.u([_.Qc("#input"),_.W("design:type",HTMLElement)],Jp.prototype,"input",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jp.prototype,"dataChanged",null);_.u([_.la("messageInput"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jp.prototype,"onMessageSet",null);_.u([_.Xw("yt-live-chat-select-suggestion"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Jp.prototype,"onSuggestion",null);
_.u([_.la("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jp.prototype,"characterCountChanged",null);_.u([_.la("focused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jp.prototype,"focusedChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Jp);
_.Yok=_.d(Jp,"yt-live-chat-text-input-field-renderer",function(){if(wVu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;GYV===void 0&&(GYV=document.createElement("template"));var R=GYV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);wVu=M}M=wVu;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var RL=function(){var M=_.g.apply(this,arguments)||this;M.buttonOverrides={style:"overlay",type:"filled"};M.allowAnimations=!1;M.modern=_.U("web_button_rework_with_live");M.noPadding=!1;return M};
_.w(RL,_.g);_.P=RL.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.P.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.attached=function(){this.allowAnimations=!1};
_.P.dataChanged=function(){if(this.data){var M={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.Tp(this.hostElement,M);this.allowAnimations=!0}};
_.P.messageChanged=function(){var M,z=(M=this.data)==null?void 0:M.message;M=_.SN(_.SN(this.hostElement).querySelector("#message"));M.textContent="";z&&M.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z))};
_.P.computeShowOnlyHeader=function(M,z){return!M||M.pdgLikeButton||M.replyButton||M.buyFlowButton?!1:this.isEmpty(M,z)&&!M.footer};
_.P.computeShowFooterDivider=function(M,z,J){return M?!!M.footer&&!this.isEmpty(M,z)&&!J:!1};
_.P.computeIsUserEditable=function(M){return!!M.inputField};
_.P.computeHasHeartButton=function(M){return(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.P.computeNoveltyImage=function(M){if(M.headerOverlayImage&&M.headerOverlayImage.thumbnails.length){var z=M.headerOverlayImage.thumbnails[0],J,R;if((J=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=J.loggingDirectives)==null?0:R.trackingParams){var D,N;lt8((D=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(N=D.loggingDirectives)==null?void 0:N.trackingParams)}return z.width||0}return 0};
_.P.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.P.inputFocus=function(){var M=_.SN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");M&&M.focus()};
_.P.inputInsertEmoji=function(M){var z=_.SN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");z&&z.insertEmoji(M)};
_.P.inputMessage=function(){var M=_.SN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),z;return M&&((z=this.data)==null?0:z.inputField)?(M.completeEmojis(),_.q7(M.liveChatRichMessageInput)):null};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.P.isEmpty=function(M,z){return M?M.empty||!(M.message||M.inputField||z):!0};
_.P.onLowerBuyButtonClick=function(){var M,z=_.G((M=this.data)==null?void 0:M.buyButton,_.aR);z&&z.trackingParams&&!Dt3(z.command)&&(M=_.pe(z.trackingParams))&&(z=_.y5())&&_.fY(z,M)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.rX.Object.defineProperties(RL.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
RL.prototype.isDeletedChanged=RL.prototype.isDeletedChanged;RL.prototype.messageChanged=RL.prototype.messageChanged;RL.prototype.dataChanged=RL.prototype.dataChanged;_.u([_.p(Jjp.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],RL.prototype,"ytPdgLiveChatItemBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],RL.prototype,"ytLiveChatReduxBehavior",void 0);
_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],RL.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RL.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:oap}),_.W("design:type",Object)],RL.prototype,"engagementState",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.W("design:type",Boolean)],RL.prototype,"isUserEditable",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.W("design:type",Boolean)],RL.prototype,"hasHeartButton",void 0);_.u([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RL.prototype,"showOnlyHeader",void 0);
_.u([_.Y({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RL.prototype,"showFooterDivider",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],RL.prototype,"allowAnimations",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],RL.prototype,"dashboardMoneyFeed",void 0);_.u([_.Y({computed:"computeNoveltyImage(data)"}),_.W("design:type",Number)],RL.prototype,"noveltyWidth",void 0);
_.u([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],RL.prototype,"authorPhotoSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],RL.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],RL.prototype,"noPadding",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"dataChanged",null);
_.u([_.la("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"messageChanged",null);_.u([_.F("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RL.prototype,"hideLowerBumper",null);_.u([_.la("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"isDeletedChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],RL);
_.d(RL,"yt-live-chat-paid-message-renderer",function(){if(Kf2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;dTJ===void 0&&(dTJ=document.createElement("template"));var R=dTJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Kf2=M}M=Kf2;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var m1a;var gv$;var D2=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.w(D2,_.vU);D2.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.HW("openPopupConfig")};
_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],D2.prototype,"ytOpenPopupBehavior",void 0);_.u([_.Gp()],D2);_.N4=[_.UQ.YtOpenPopupBehavior,D2.prototype];var sBJ;var AM=[_.Gh,JQV,_.uU,_.wB,_.Au,_.xDu,_.je,_.HMv,_.Hf,y0n];_.U("web_watch_get_updated_metadata_response_processing")&&AM.push(_.Mx$);_.U("web_continuation_response_processing")&&AM.push(_.uP);var Bab=new _.Nh("RESPONSE_RECEIVED_COMMANDS"),gdp=new _.Nh("RESPONSE_RECEIVED_COMMANDS");var xwo="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),wkp=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],GI3=["GET_UNSEEN_NOTIFICATION_COUNT"];var Pg=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.serviceEndpointHandlers=[];return M};
_.w(Pg,_.vU);Pg.prototype.created=function(){var M=this;this.endpointHandlerActionMap={"yt-service-request":function(z,J,R,D){var N;return vd8(M.hostElement,z,J,R,D,M.serviceEndpointHandlers,(N=M.onEntitiesUpdated)==null?void 0:N.bind(M))}}};
Pg.prototype.attached=function(){_.EB(_.VA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Pg.prototype.detached=function(){_.fc(_.VA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.u([_.Gp()],Pg);_.nvp=[Pg.prototype];var hkp,yYV=function(){return hkp!==void 0?hkp:hkp=document.createElement("template")};
document.head.appendChild(yYV().content);var HPt;var cYB=document.head,d1p=cYB.appendChild,KLu;if(HPt===void 0){var $1k=document.createElement("template");_.t($1k,"\x3c!--css-build:shady--\x3e");$1k.content.insertBefore(yYV().content.cloneNode(!0),$1k.content.firstChild);HPt=$1k}KLu=HPt;d1p.call(cYB,KLu.content);var uRg,qop=function(){return uRg!==void 0?uRg:uRg=document.createElement("template")};
document.head.appendChild(qop().content);var WLg;var a6$=document.head,VA$=a6$.appendChild,Evk;if(WLg===void 0){var f6Q=document.createElement("template");_.t(f6Q,"\x3c!--css-build:shady--\x3e");f6Q.content.insertBefore(qop().content.cloneNode(!0),f6Q.content.firstChild);WLg=f6Q}Evk=WLg;VA$.call(a6$,Evk.content);var LLp;_.nn("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.nn("sharingRendererButtons","buttonRenderer","ytd-button-renderer");LLp=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.SC=function(){var M=_.g.apply(this,arguments)||this;M.isPressed=!1;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return M};
_.w(_.SC,_.g);_.P=_.SC.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.onHintIdChanged=function(){var M=this,z,J,R=(z=this.ytButtonBehavior.data)==null?void 0:(J=z.hint)==null?void 0:J.hintRenderer;if(R&&R.hintId){z=_.ZL(this.hostElement,"yt-get-opened-popups-action");z=(z&&z.length===1?z[0]:[]).length>0;var D=null;R.hintId!=="sponsor-pre-purchase"||z?R.hintId.startsWith("sponsor-post-purchase")&&!z?D=lma("membership-manage"):R.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!z&&(D=lma("membership-freebie-join")):D=lma("membership-join");D&&_.no.addLowPriorityJob(function(){for(var N=
_.S(D),Z=N.next();!Z.done;Z=N.next())M.ytComponentBehavior.resolveCommand(Z.value)})}};
_.P.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.P.onYtNavigate=function(M){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);z&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.P.onYtServiceRequestSent=function(M,z){this.handleServiceRequestActions(z);_.Pv(this.hostElement,"yt-service-request-sent-button-renderer")};
_.P.onServiceRequestCompleted=function(M,z){this.handleServiceRequestActions(z);_.Pv(this.hostElement,"yt-service-request-completed-button-renderer")};
_.P.updateButton=function(M){var z;if(M=(z=_.G(M,fC$))==null?void 0:z.updatedButton)this.ytButtonBehavior.data=_.G(M,_.aR)};
_.P.handleUpdateButtonAction=function(M){var z=this.ytButtonBehavior.data;z.targetId&&M.updateButtonAction.targetId&&z.targetId===M.updateButtonAction.targetId&&this.updateButton(M)};
_.P.handleServiceRequestActions=function(M){if(M=M.actions)for(var z=0;z<M.length;z++)this.updateButton(M[z])};
_.rX.Object.defineProperties(_.SC,{template:{configurable:!0,enumerable:!0,get:function(){if(sBJ===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);sBJ=M}M=sBJ;return M}}});
_.SC.prototype.onServiceRequestCompleted=_.SC.prototype.onServiceRequestCompleted;_.SC.prototype.onYtServiceRequestSent=_.SC.prototype.onYtServiceRequestSent;_.SC.prototype.onYtNavigate=_.SC.prototype.onYtNavigate;_.SC.prototype.onPressedStateChanged=_.SC.prototype.onPressedStateChanged;_.SC.prototype.onHintIdChanged=_.SC.prototype.onHintIdChanged;_.u([_.Y(),_.W("design:type",Object)],_.SC.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],_.SC.prototype,"isPressed",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],_.SC.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.ReQ.YtButtonBehavior),_.W("design:type",Object)],_.SC.prototype,"ytButtonBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],_.SC.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],_.SC.prototype,"ytComponentBehavior",void 0);
_.u([_.p(mg.YtRenderButtonBehavior),_.W("design:type",Object)],_.SC.prototype,"ytRenderButtonBehavior",void 0);_.u([_.la("data.hint.hintRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.SC.prototype,"onHintIdChanged",null);_.u([_.la("isPressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.SC.prototype,"onPressedStateChanged",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.SC.prototype,"onYtNavigate",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],_.SC.prototype,"onYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],_.SC.prototype,"onServiceRequestCompleted",null);_.u([_.c({is:"ytd-button-renderer",disableElementRegistration:LLp})],_.SC);var Z2=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.w(Z2,_.g);_.P=Z2.prototype;_.P.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.P.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.dataChanged=function(){if(this.data&&this.data.sticker){var M=_.PS(this.data.sticker.thumbnails,this.stickerWidth);M||_.dwp(M).thenCatch(function(){_.yA(new _.xN("Failed to load Super Sticker with url",M))})}};
_.P.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)?32:40};
_.P.computeIsV2Style=function(M){return(M==null?0:M.isV2Style)?!0:!1};
_.P.onStickerLoaded=function(M){var z,J,R;(z=_.b7(M))==null||(J=z.parentNode)==null||(R=J.classList)==null||R.add("sticker-loaded")};
_.P.computeNoveltyImageWidth=function(M){var z,J;if(M==null?0:(z=M.headerOverlayImage)==null?0:(J=z.thumbnails)==null?0:J.length){z=M.headerOverlayImage.thumbnails[0];var R,D;if((R=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(D=R.loggingDirectives)==null?0:D.trackingParams){var N,Z;lt8((N=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Z=N.loggingDirectives)==null?void 0:Z.trackingParams)}return z.width||0}return 0};
_.P.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.P.updateStickerStyles=function(){var M=this.data;M&&(M={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.authorNameTextColor)},
_.Tp(this.hostElement,M))};
_.P.onBuyButtonClick=function(){var M,z=_.G((M=this.data)==null?void 0:M.buyButton,_.aR);z&&!Dt3(z.command)&&this.ytRendererBehavior.logExplicitClick(z)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.rX.Object.defineProperties(Z2.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Z2.prototype.updateStickerStyles=Z2.prototype.updateStickerStyles;Z2.prototype.isDeletedChanged=Z2.prototype.isDeletedChanged;Z2.prototype.onStickerLoaded=Z2.prototype.onStickerLoaded;Z2.prototype.dataChanged=Z2.prototype.dataChanged;_.u([_.p(Jjp.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],Z2.prototype,"ytPdgLiveChatItemBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Z2.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],Z2.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Z2.prototype,"data",void 0);
_.u([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],Z2.prototype,"authorPhotoSize",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Z2.prototype,"isDeleted",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Z2.prototype,"dashboardMoneyFeed",void 0);_.u([_.Y({computed:"computeNoveltyImageWidth(data)"}),_.W("design:type",Number)],Z2.prototype,"noveltyWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z2.prototype,"modern",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.W("design:type",Boolean)],Z2.prototype,"isV2Style",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"dataChanged",null);_.u([_.Xw("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Z2.prototype,"onStickerLoaded",null);
_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Z2.prototype,"stickerWidth",null);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Z2.prototype,"stickerHeight",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z2.prototype,"hasHeartButton",null);_.u([_.F("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z2.prototype,"hideLowerBumper",null);
_.u([_.la("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"isDeletedChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"updateStickerStyles",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Z2);
_.d(Z2,"yt-live-chat-paid-sticker-renderer",function(){if(gv$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;m1a===void 0&&(m1a=document.createElement("template"));var R=m1a;J.call(z,R.content.cloneNode(!0),M.content.firstChild);gv$=M}M=gv$;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var AYJ;var iP$;var Cx2,bP$=function(){return Cx2!==void 0?Cx2:Cx2=document.createElement("template")};
document.head.appendChild(bP$().content);var rYg,MDV=function(){return rYg!==void 0?rYg:rYg=document.createElement("template")};
document.head.appendChild(MDV().content);var zZV;var Jzk,RZQ=function(){return Jzk!==void 0?Jzk:Jzk=document.createElement("template")};
document.head.appendChild(RZQ().content);var DUS;var NCv=document.head,PrS=NCv.appendChild,SX$;if(DUS===void 0){var ZAQ=document.createElement("template");_.t(ZAQ,"\x3c!--css-build:shady--\x3e");ZAQ.content.insertBefore(RZQ().content.cloneNode(!0),ZAQ.content.firstChild);DUS=ZAQ}SX$=DUS;PrS.call(NCv,SX$.content);var kf$=document.head,BCV=kf$.appendChild,OAV;if(zZV===void 0){var k1=document.createElement("template");_.t(k1,"\x3c!--css-build:shady--\x3e");k1.content.insertBefore(MDV().content.cloneNode(!0),k1.content.firstChild);k1.content.insertBefore(bP$().content.cloneNode(!0),k1.content.firstChild);zZV=k1}OAV=zZV;BCV.call(kf$,OAV.content);var Bg=function(){var M=_.vU.apply(this,arguments)||this;M.focusedIndex=0;M.verticalOffset=0;M.verticalAlign="top";M.dynamicAlign=!0;return M};
_.w(Bg,_.vU);Bg.prototype.emojiUrl=function(M){M=_.fE(this.emojiManager,M);if(!M)return"";var z;M=(z=M.image)==null?void 0:z.thumbnails;return _.PS(M,24)||""};
var TCg=function(M){var z;M.emojiVariants&&(z=M.data)!=null&&z.target&&_.C4(M,function(){M.set("verticalOffset",-1*M.hostElement.clientHeight);var J=_.SN(M.hostElement).querySelector("img");J&&J.focus()})};
_.P=Bg.prototype;_.P.onKeyboardEnter=function(){};
_.P.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.P.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.P.onKeyDown=function(M){switch(M.keyCode){case 13:this.onKeyboardEnter();M.preventDefault();break;case 40:this.changeFocus(1);M.preventDefault();break;case 38:this.changeFocus(-1);M.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.P.onYtEmojiSelect=function(M){var z=this,J,R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1)return R=(J=z.data)==null?void 0:J.emoji,Z=((D=R)==null?void 0:D.stickyPrefId)||((N=R)==null?void 0:N.emojiId),O=(B=M.detail)==null?void 0:B.emojiId,Z&&O&&Z!==O?l.yield((X=z.emojiManager)==null?void 0:ekv(X,R,O),2):l.return();_.S9(z.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[R,O]);_.UI(l)})};
_.P.changeFocus=function(M){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+M+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(M=_.SN(this.hostElement).querySelector("#variants"))&&M.children[this.focusedIndex].focus())};
_.rX.Object.defineProperties(Bg.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Bg.prototype.onYtEmojiSelect=Bg.prototype.onYtEmojiSelect;Bg.prototype.onKeyDown=Bg.prototype.onKeyDown;Bg.prototype.onEmojiVariantsChanged=Bg.prototype.onEmojiVariantsChanged;Bg.prototype.onVerticalOffsetOrPositionTargetChanged=Bg.prototype.onVerticalOffsetOrPositionTargetChanged;_.u([_.p(_.i$),_.W("design:type",Object)],Bg.prototype,"ironOverlayBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],Bg.prototype,"emojiManager",void 0);
_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"emojiVariants",void 0);_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"focusedIndex",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Bg.prototype,"positionTarget",null);_.u([_.Y({reflectToAttribute:!0}),_.F("verticalOffset","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Bg.prototype,"isPositioned",null);_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"verticalOffset",void 0);
_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"verticalAlign",void 0);_.u([_.Y(),_.W("design:type",Object)],Bg.prototype,"dynamicAlign",void 0);_.u([_.la("verticalOffset","positionTarget"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bg.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.u([_.la("emojiVariants"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bg.prototype,"onEmojiVariantsChanged",null);
_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],Bg.prototype,"onKeyDown",null);_.u([_.Xw("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],Bg.prototype,"onYtEmojiSelect",null);_.u([_.Gp()],Bg);var ItB=[Bg.prototype];var oav;var XZJ;var ltt=/medium-light|medium-dark|light|medium|dark/,eZv=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Qpa=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),OP=function(){var M=_.g.apply(this,arguments)||this;M.userSelection={left:null,right:null};M.scrollAction="lock";M.isEmojiDraftInProgress=!1;return M};
_.w(OP,_.g);_.P=OP.prototype;_.P.onClick=function(M){M=_.b7(M);M instanceof HTMLImageElement&&this.selectOrUpdateEmoji(M)};
_.P.selectOrUpdateEmoji=function(M){var z=M.getAttribute("selection");z&&(z==="default"?_.Pv(this.hostElement,"yt-emoji-select",_.fE(this.emojiManager,M.id)):z==="left"?this.userSelection=Object.assign({},this.userSelection,{left:M.src}):z==="right"?this.userSelection=Object.assign({},this.userSelection,{right:M.src}):z==="user"&&this.userSelection.left&&this.userSelection.right&&_.Pv(this.hostElement,"yt-emoji-select",_.fE(this.emojiManager,M.id)))};
_.P.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.P.onMultiSelectorThumbnailRowChanged=function(){var M,z,J;((M=this.data)==null?0:(z=M.emoji)==null?0:(J=z.multiSelectorThumbnailRow)==null?0:J.length)&&this.openSelector()};
_.P.getThumbnailFromEmojiRow=function(M){var z,J;return(M==null?void 0:(z=M.thumbnails)==null?void 0:(J=z[0])==null?void 0:J.url)||""};
_.P.getEmojiAltTextForPartialSelector=function(M){var z;return((z=this.getThumbnailFromEmojiRow(M).match(eZv))==null?void 0:z[0])||""};
_.P.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.P.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.P.getRowSelection=function(M){return["left","right"][M]};
_.P.getIdFromComposedEmoji=function(M){return(M==null?void 0:M.emojiId)||""};
_.P.getEmojiFromPartialSelections=function(M,z){if(!M&&!z)return null;var J,R,D=(J=this.data)==null?void 0:(R=J.emoji)==null?void 0:R.variantIds;if(!D||!D.length)return null;var N;M=(N=M.match(ltt))==null?void 0:N[0];var Z;z=(Z=z.match(ltt))==null?void 0:Z[0];if(!M||!z)return null;var B=Qpa.get(M);Z=Qpa.get(z);if(B===Z){Z=Array.from(Qpa.values()).filter(function(X){return X!==B}).join("|");
var O=new RegExp("^((?!("+Z+")).)*"+B+"$")}else O=new RegExp(B+".*"+Z);return(D=D.find(function(X){return O.test(X)}))&&_.fE(this.emojiManager,D)||null};
_.P.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var M,z=this.ytEmojiSelectorBehavior.emojiUrl(((M=this.data.emoji)==null?void 0:M.emojiId)||"");_.SN(this.hostElement).querySelector('[selection="user"]').src.includes(z)||(this.isEmojiDraftInProgress=!0)}};
_.P.onDomChange=function(){TCg(this.ytEmojiSelectorBehavior)};
_.P.getFocusableElements=function(){return _.SN(this.hostElement).querySelectorAll("img").filter(function(M){return M.getAttribute("role")==="option"})};
_.P.changeFocus=function(M){var z=this.getFocusableElements();z!=null&&z.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+M+z.length)%z.length,this.ytEmojiSelectorBehavior.focusedIndex<z.length&&(M=z[this.ytEmojiSelectorBehavior.focusedIndex])&&M.focus())};
_.P.onKeyboardEnter=function(){var M=this.getFocusableElements();M!=null&&M.length&&(M=M[this.ytEmojiSelectorBehavior.focusedIndex])&&M instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(M),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.rX.Object.defineProperties(OP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J,R;return this.emojiManager&&((z=this.data)==null?0:(J=z.emoji)==null?0:(R=J.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(D){return!!D&&_.fE(M.emojiManager,D)}).filter(function(D){return!!D}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var M,z=(M=this.userSelection)==null?void 0:M.left,J;M=(J=this.userSelection)==null?void 0:J.right;return z&&M?this.getEmojiFromPartialSelections(z,M):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.composedEmojiSelection)==null?0:M.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var z;M=(z=this.userSelection)==null?void 0:z.left;var J;z=(J=this.userSelection)==null?void 0:J.right;if(!M&&!z){var R;return this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"")}return M&&!z?M:!M&&z?z:""}}});
OP.prototype.onMultiSelectorThumbnailRowChanged=OP.prototype.onMultiSelectorThumbnailRowChanged;OP.prototype.onClick=OP.prototype.onClick;_.u([_.p(_.i$),_.W("design:type",Object)],OP.prototype,"ironOverlayBehavior",void 0);_.u([_.p(ItB),_.W("design:type",Object)],OP.prototype,"ytEmojiSelectorBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],OP.prototype,"emojiManager",void 0);
_.u([_.Y(),_.W("design:type",Object)],OP.prototype,"userSelection",void 0);_.u([_.Y(),_.W("design:type",Object)],OP.prototype,"scrollAction",void 0);_.u([_.Y(),_.W("design:type",Object)],OP.prototype,"isEmojiDraftInProgress",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OP.prototype,"emojiVariants",null);_.u([_.F("data","userSelection"),_.W("design:type",Object),_.W("design:paramtypes",[])],OP.prototype,"composedEmojiSelection",null);
_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],OP.prototype,"onClick",null);_.u([_.la("data.emoji.multiSelectorThumbnailRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OP.prototype,"onMultiSelectorThumbnailRowChanged",null);_.u([_.F("data","userSelection","composedEmojiSelection"),_.W("design:type",String),_.W("design:paramtypes",[])],OP.prototype,"draftEmojiUrl",null);
_.u([_.cU({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],OP);
_.d(OP,"yt-emoji-multi-person-selector",function(){if(XZJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;oav===void 0&&(oav=document.createElement("template"));var R=oav;J.call(z,R.content.cloneNode(!0),M.content.firstChild);XZJ=M}M=XZJ;return M},{mode:2});var UUt;var vap;var Ts=function(){var M=_.g.apply(this,arguments)||this;M.tooltip_=null;return M};
_.w(Ts,_.g);_.P=Ts.prototype;_.P.dataChanged_=function(){var M;if((M=this.data)==null?0:M.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.SN(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.OV)(this.tooltip_).textContent=this.data.tooltip};
_.P.computeTargetId=function(){var M;return((M=this.data)==null?void 0:M.targetId)||""};
_.P.computeId_=function(M){return M};
_.P.computeIcon_=function(M){return _.oE(M)};
_.P.onTap_=function(){this.active=!this.active;_.Pv(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.P.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("active-changed",this.active))};
_.rX.Object.defineProperties(Ts.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var M,z;if((M=this.data)==null?0:(z=M.icon)==null?0:z.iconType)return this.data.icon.iconType==="SUPER_STICKER";var J,R;return((J=this.data)==null?void 0:(R=J.icon)==null?void 0:R.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Ts.prototype.activeChangedForBinding=Ts.prototype.activeChangedForBinding;Ts.prototype.dataChanged_=Ts.prototype.dataChanged_;_.u([_.p(_.fZ.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],Ts.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ts.prototype,"data",void 0);_.u([_.Y({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.W("design:type",String)],Ts.prototype,"id",void 0);
_.u([_.Y({computed:"computeTargetId(data.targetId)"}),_.W("design:type",String)],Ts.prototype,"targetId",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Ts.prototype,"active",void 0);_.u([_.Y({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.W("design:type",String)],Ts.prototype,"icon",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ts.prototype,"dataChanged_",null);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ts.prototype,"iconFilled",null);_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ts.prototype,"activeChangedForBinding",null);_.u([_.cU({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Ts);
_.d(Ts,"yt-emoji-picker-category-button-renderer",function(){if(vap===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;UUt===void 0&&(UUt=document.createElement("template"));var R=UUt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);vap=M}M=vap;return M},{mode:2});var Gfa;var wZk;var IL=function(){var M=_.g.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};M.JSC$14087_ignoreNextFocus_=!1;M.longPressTimeoutId=-1;return M};
_.w(IL,_.g);_.P=IL.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.Gm(),z=0;z<this.emoji.length;z++){var J={veType:88013,elementIndex:z},R=this.emoji[z];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(J=_.v5(M,J))&&(R.visualElement=J)}};
_.P.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.P.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.P.emojiSkinToneChanged_=function(M){this.skinTone=M};
_.P.dataChanged=function(){this.data&&this.data.emojiData&&I6u(this.emojiManager,this.data.emojiData)};
_.P.emojiUrl=function(M){M=this.getEmoji(M);if(!M)return"";var z;M=(z=M.image)==null?void 0:z.thumbnails;return _.PS(M,24)||""};
_.P.emojiAlt=function(M){var z=this.get("image.accessibility.accessibilityData.label",M);return z?z:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.P.emojiAriaLabel=function(M){return M.shortcuts?M.shortcuts[0]:""};
_.P.emojiAriaSelected=function(M,z,J){return M&&J==z?"true":"false"};
_.P.getEmoji=function(M){if(this.emojiManager)return this.shouldUseStickyPreferences?XVV(this.emojiManager,M):LE(this.emojiManager,M)};
_.P.computeId_=function(M){return M.categoryId||""};
_.P.computeEmoji=function(M){var z=this;return this.emojiManager?M.emojiIds?M.emojiIds.map(function(J){return J?_.fE(z.emojiManager,J):null}).filter(KM8):M.emojiData?M.emojiData.map(function(J){var R=!!J.emojiId&&_.fE(z.emojiManager,J.emojiId);
return R?Object.assign({},R,J):null}).filter(KM8):[]:[]};
_.P.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.P.computeAriaLabel_=function(M){return _.CD(M)};
_.P.computeAriaActivedescendant_=function(M,z){return M&&M[z]?M[z].emojiId||"":""};
_.P.handleLongPressEmojiWithVariants=function(M,z){this.changeFocusToEmoji(M.emojiId,!1);this.openVariantSelector(M,z)};
_.P.onMouseDown=function(M){var z=this;this.hostElement!==document.activeElement&&(this.JSC$14087_ignoreNextFocus_=!0);if(M.button===0){var J=_.b7(M);if(J instanceof HTMLImageElement){var R=_.SN(this.hostElement).querySelector("#repeat").itemForElement(J);this.emojiContainsVariants(R)&&(this.longPressTimeoutId=setTimeout(function(){z.handleLongPressEmojiWithVariants(R,J)},500))}}};
_.P.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.P.onFocus=function(){this.JSC$14087_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14087_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.emojiContainsVariants=function(M){return!!(M&&M.variantIds&&M.variantIds.length)};
_.P.onClick=function(M){clearTimeout(this.longPressTimeoutId);M=_.b7(M);if(M instanceof HTMLImageElement){var z=M.id;this.changeFocusToEmoji(z,!1);var J=this.getEmoji(z),R;if(R=this.shouldUseStickyPreferences&&this.emojiContainsVariants(J)){var D;R=!((D=this.emojiManager.emojiMap[z])!=null&&D.stickyPrefId)}R?(D=_.SN(this.hostElement).querySelector("#repeat").itemForElement(M),this.openVariantSelector(D,M)):_.Pv(this.hostElement,"yt-emoji-select",J)}};
_.P.isActiveEmojiWithVariants=function(M,z){return M&&z?z.stickyPrefId?M===z.stickyPrefId:M===z.emojiId:!1};
_.P.onCloseEmojiVariantSelector=function(M){this.activeEmojiWithVariantsId===M&&(this.activeEmojiWithVariantsId="")};
_.P.onMouseOver_=function(M){M=_.b7(M);M instanceof HTMLImageElement&&_.Pv(this.hostElement,"yt-emoji-hover",_.fE(this.emojiManager,M.id))};
_.P.changeFocus_=function(M,z){this.focusedIndex=(this.focusedIndex+M+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(M=this.emoji[this.focusedIndex],z&&(this.showFocus=!0,_.SN(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Pv(this.hostElement,"yt-emoji-hover",M)))};
_.P.changeFocusToEmoji=function(M,z){if(M){var J=this.emoji.findIndex(function(R){return R.emojiId===M});
J!==-1&&this.changeFocus_(J-this.focusedIndex,z)}};
_.P.onKeyDown_=function(M){switch(M.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var z=this.emoji[this.focusedIndex];if(z&&z.emojiId){if(this.emojiContainsVariants(z)){var J=_.SN(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(z,J)}else _.Pv(this.hostElement,"yt-emoji-select",LE(this.emojiManager,z.emojiId)),this.hostElement.focus();M.preventDefault()}}break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),
M.preventDefault()}};
_.P.onEmojiStickyPreferenceChanged=function(M,z){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&M.emojiId&&M.variantIds&&M.variantIds.includes(z)&&this.activeEmojiWithVariantsId!==z&&this.setStickyEmojiPreference(M.emojiId,z)};
_.P.openVariantSelector=function(M,z){this.activeEmojiWithVariantsId=M.stickyPrefId||M.emojiId||"";_.Pv(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:M,target:z})};
_.P.setStickyEmojiPreference=function(M,z){if(this.data){var J=this.emoji.findIndex(function(D){return D.emojiId===M});
if(J!==-1){var R=this.emoji[J];R.stickyPrefId=z;this.set("emoji."+J,Object.assign({},R));this.activeEmojiWithVariantsId=z}}};
IL.prototype.onKeyDown_=IL.prototype.onKeyDown_;IL.prototype.onMouseOver_=IL.prototype.onMouseOver_;IL.prototype.onClick=IL.prototype.onClick;IL.prototype.onBlur_=IL.prototype.onBlur_;IL.prototype.onFocus=IL.prototype.onFocus;IL.prototype.onMouseUp=IL.prototype.onMouseUp;IL.prototype.onMouseDown=IL.prototype.onMouseDown;IL.prototype.dataChanged=IL.prototype.dataChanged;IL.prototype.disableIncrementalLoadingChanged_=IL.prototype.disableIncrementalLoadingChanged_;IL.prototype.emojiManagerChanged_=IL.prototype.emojiManagerChanged_;
IL.prototype.emojiChanged_=IL.prototype.emojiChanged_;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],IL.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],IL.prototype,"data",void 0);_.u([_.Y({computed:"computeId_(data)"}),_.W("design:type",String)],IL.prototype,"id",void 0);_.u([_.Y({computed:"computeEmoji(data)"}),_.W("design:type",Array)],IL.prototype,"emoji",void 0);_.u([_.Y(),_.W("design:type",Number)],IL.prototype,"skinTone",void 0);
_.u([_.Y(),_.W("design:type",_.EQ)],IL.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Boolean)],IL.prototype,"disableIncrementalLoading",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],IL.prototype,"focusedIndex",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],IL.prototype,"showFocus",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.W("design:type",Object)],IL.prototype,"ariaLabel",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.W("design:type",Object)],IL.prototype,"ariaActivedescendant",void 0);_.u([_.Y({value:60}),_.W("design:type",Number)],IL.prototype,"domRepeatTargetFramerate",void 0);_.u([_.Y({value:1}),_.W("design:type",Number)],IL.prototype,"domRepeatInitialCount",void 0);_.u([_.Y({value:""}),_.W("design:type",String)],IL.prototype,"activeEmojiWithVariantsId",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],IL.prototype,"shouldUseStickyPreferences",void 0);_.u([_.la("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"emojiChanged_",null);_.u([_.la("emojiManager"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"emojiManagerChanged_",null);
_.u([_.la("disableIncrementalLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"disableIncrementalLoadingChanged_",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"dataChanged",null);_.u([_.Xw("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],IL.prototype,"onMouseDown",null);
_.u([_.Xw("mouseup"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"onMouseUp",null);_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"onFocus",null);_.u([_.Xw("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"onBlur_",null);
_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],IL.prototype,"onClick",null);_.u([_.Xw("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],IL.prototype,"onMouseOver_",null);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],IL.prototype,"onKeyDown_",null);
_.u([_.cU({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],IL);
_.d(IL,"yt-emoji-picker-category-renderer",function(){if(wZk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Gfa===void 0&&(Gfa=document.createElement("template"));var R=Gfa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);wZk=M}M=wZk;return M},{mode:2});var xUV;var tD2;var jpS;var pZ$;var oL=function(){var M=_.g.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.getFormattedStringRawText=_.CD;M.JSC$14093_ignoreNextFocus_=!1;return M};
_.w(oL,_.g);_.P=oL.prototype;_.P.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.emojiUrl=function(M){var z,J;M=(z=LE(this.emojiManager,M,!0))==null?void 0:(J=z.image)==null?void 0:J.thumbnails;return _.PS(M,24)||""};
_.P.emojiAlt=function(M){var z=this.get("image.accessibility.accessibilityData.label",M);return z?z:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.P.emojiId=function(M){return"emoji"+M};
_.P.computeId_=function(M){return M.categoryId||""};
_.P.computeAriaActivedescendant_=function(M){return this.emoji&&M<this.emoji.length?this.emojiId(M):""};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.Gm(),z=0;z<this.emoji.length;z++){var J={veType:88013,elementIndex:z},R=this.emoji[z];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(J=_.v5(M,J))&&(R.visualElement=J)}};
_.P.computeEmoji_=function(M){var z=this;return this.emojiManager?M.emojiIds.map(function(J){return _.fE(z.emojiManager,J,!0)}).filter($wH):[]};
_.P.titleOffsetChanged_=function(){var M=this.hostElement.getBoundingClientRect(),z=_.SN(this.hostElement).querySelector("#title").getBoundingClientRect();M=Math.max(0,Math.min(this.titleOffset,M.height-z.height));_.SN(this.hostElement).querySelector("#title").style.top=M+"px"};
_.P.onEmojiMouseOver_=function(M){_.Pv(this.hostElement,"yt-emoji-hover",M.model.item)};
_.P.onEmojiTap_=function(M){this.data.command&&(M=tD0(_.JF().resolve(_.zw(Wb)),this.data.command,M),_.Pv(this.hostElement,"yt-navigate",M))};
_.P.emojiAriaLabel=function(M){return M.shortcuts[0]};
_.P.emojiAriaSelected=function(M,z,J){return M&&J==z?"true":"false"};
_.P.changeFocus_=function(M,z){var J=this.emoji.length;this.focusedIndex=(this.focusedIndex+M+J)%J;M=this.emoji[this.focusedIndex];if(z){var R;(R=_.SN(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||R.scrollIntoView(!1);_.Pv(this.hostElement,"yt-emoji-hover",M)}};
_.P.onMouseDown_=function(){this.JSC$14093_ignoreNextFocus_=!0};
_.P.onFocus_=function(){this.JSC$14093_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14093_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.onKeyDown_=function(M){switch(M.keyCode){case 13:this.onEmojiTap_(M);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
oL.prototype.onKeyDown_=oL.prototype.onKeyDown_;oL.prototype.onBlur_=oL.prototype.onBlur_;oL.prototype.onFocus_=oL.prototype.onFocus_;oL.prototype.onMouseDown_=oL.prototype.onMouseDown_;oL.prototype.onEmojiTap_=oL.prototype.onEmojiTap_;oL.prototype.titleOffsetChanged_=oL.prototype.titleOffsetChanged_;oL.prototype.emojiChanged_=oL.prototype.emojiChanged_;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],oL.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],oL.prototype,"data",void 0);_.u([_.Y({computed:"computeId_(data)"}),_.W("design:type",String)],oL.prototype,"id",void 0);_.u([_.Y({computed:"computeEmoji_(data)"}),_.W("design:type",Array)],oL.prototype,"emoji",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],oL.prototype,"titleOffset",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.W("design:type",Object)],oL.prototype,"ariaLabel",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.W("design:type",Object)],oL.prototype,"ariaActivedescendant",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],oL.prototype,"showFocus",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],oL.prototype,"focusedIndex",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],oL.prototype,"emojiManager",void 0);
_.u([_.la("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oL.prototype,"emojiChanged_",null);_.u([_.la("titleOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oL.prototype,"titleOffsetChanged_",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],oL.prototype,"onEmojiTap_",null);
_.u([_.Xw("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oL.prototype,"onMouseDown_",null);_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oL.prototype,"onFocus_",null);_.u([_.Xw("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oL.prototype,"onBlur_",null);
_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],oL.prototype,"onKeyDown_",null);_.u([_.cU({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],oL);
_.d(oL,"yt-emoji-picker-upsell-category-renderer",function(){if(pZ$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;jpS===void 0&&(jpS=document.createElement("template"));var R=jpS;J.call(z,R.content.cloneNode(!0),M.content.firstChild);pZ$=M}M=pZ$;return M},{mode:2});var FZV;var YX2;var Xm=function(){var M=_.g.apply(this,arguments)||this;M.scrollAction="lock";M.verticalAlign="top";return M};
_.w(Xm,_.g);_.P=Xm.prototype;_.P.onClick=function(M){M=_.b7(M);M instanceof HTMLImageElement&&_.Pv(this.hostElement,"yt-emoji-select",_.fE(this.emojiManager,M.id))};
_.P.openSelector=function(){this.ironOverlayBehavior.open()};
_.P.onDomChange=function(){TCg(this.ytEmojiSelectorBehavior)};
_.P.computeIsFamilySelector=function(M){var z;return(M==null?void 0:(z=M.emoji)==null?void 0:z.emojiId)==="\ud83d\udc6a"};
_.P.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var M=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];M&&M.emojiId&&(_.Pv(this.hostElement,"yt-emoji-select",_.fE(this.emojiManager,M.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.rX.Object.defineProperties(Xm.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J,R;return this.emojiManager&&((z=this.data)==null?0:(J=z.emoji)==null?0:(R=J.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(D){return!!D&&_.fE(M.emojiManager,D)}).filter(function(D){return!!D}):[]}}});
Xm.prototype.onClick=Xm.prototype.onClick;_.u([_.p(_.i$),_.W("design:type",Object)],Xm.prototype,"ironOverlayBehavior",void 0);_.u([_.p(ItB),_.W("design:type",Object)],Xm.prototype,"ytEmojiSelectorBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Xm.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],Xm.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Object)],Xm.prototype,"scrollAction",void 0);_.u([_.Y(),_.W("design:type",Object)],Xm.prototype,"verticalAlign",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.W("design:type",Boolean)],Xm.prototype,"isFamilySelector",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Xm.prototype,"emojiVariants",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],Xm.prototype,"onClick",null);_.u([_.cU({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Xm);
_.d(Xm,"yt-emoji-variant-selector",function(){if(YX2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;FZV===void 0&&(FZV=document.createElement("template"));var R=FZV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);YX2=M}M=YX2;return M},{mode:2});var mU$=/:/g,gap=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],ll=function(){var M=_.g.apply(this,arguments)||this;M.emojiVariantSelector=null;M.emojiMultiPersonSelector=null;M.identity=_.yH;M.lastAnimationTime_=0;M.animationStart_=null;M.animationEnd_=null;return M};
_.w(ll,_.g);_.P=ll.prototype;
_.P.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.P.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.As)};
_.P.attached=function(){_.Tj&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ovv(this.emojiManager)};
_.P.dataChanged=function(){var M;if((M=this.data)==null?0:M.categories){M=this.emojiManager;var z=this.getCustomEmojiIds();M.pickerCustomEmojiIds=[].concat(_.Yj(ZPV),_.Yj(z))}};
_.P.getCustomEmojiIds=function(){var M,z=(M=this.data.categories)==null?void 0:M.find(function(N){var Z;return((Z=N.emojiPickerCategoryRenderer)==null?void 0:Z.categoryId)&&gap.includes(N.emojiPickerCategoryRenderer.categoryId)}),J;
M=(J=this.data.categories)==null?void 0:J.find(function(N){return N.emojiPickerUpsellCategoryRenderer});
var R,D;return[z==null?void 0:(R=z.emojiPickerCategoryRenderer)==null?void 0:R.emojiIds,M==null?void 0:(D=M.emojiPickerUpsellCategoryRenderer)==null?void 0:D.emojiIds].flat().filter(function(N){return!!N})};
_.P.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.P.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.P.updateCategoriesAndPlaceholderInternal=function(M,z){var J=this;M&&z&&(this.categories=M.categories||[],this.categoryButtons=M.categoryButtons||[],this.resetPlaceholder(),this.search="",_.au(function(){J.updateButtons_()}))};
_.P.computeId_=function(M){return M.id||""};
_.P.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(M){return M.emojiPickerCategoryRenderer&&M.emojiPickerCategoryRenderer.emojiData}):!1};
_.P.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.P.onShowEmojiVariantSelector=function(M){var z=M.detail.emojiData;z.variantIds&&z.variantIds.length&&(z.multiSelectorThumbnailRow&&z.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:z,target:M.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:z,target:M.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onIronOverlayClosed=function(M){var z=XVV(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");z&&M.composedPath&&(M.composedPath().includes(_.SN(this.hostElement).querySelector("#emoji-variant-selector"))||M.composedPath().includes(_.SN(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.S9(this.hostElement,"yt-close-emoji-variant-selector",[z.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onEmojiVariantSelectorMouseup=function(M){var z=M.target.firstChild;this.variantSelectorOpened&&z&&_.au(function(){z.noCancelOnOutsideClick=!1},100)};
_.P.onEmojiVariantSelectorMousedown=function(M){M=M.target.firstChild;this.variantSelectorOpened&&M&&(M.noCancelOnOutsideClick=!1)};
_.P.onSelectCategory_=function(M){var z=this.search!="";this.search="";for(var J=_.SN(this.hostElement).querySelector("#categories").children,R=0;R<J.length;R++){var D=J[R];if(D.id==M.detail.categoryId){z?(_.SN(this.hostElement).querySelector("#categories").scrollTop=D.offsetTop,this.updateButtons_()):(this.animationStart_=_.SN(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=D.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.P.onEmojiHover_=function(M){this.placeholder=M.detail.shortcuts?M.detail.shortcuts[0]:""};
_.P.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.P.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.P.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.P.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.P.computeSearchCategory_=function(M){M=M.replace(mU$,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();M=M.split(" ");for(var z=[],J=this.emojiManager.emojis,R=0;R<J.length;R++){var D=J[R];if(D.searchTerms)for(var N=0;N<D.searchTerms.length;N++){for(var Z=D.searchTerms[N].toLocaleLowerCase(),B=!1,O=0;O<M.length;O++)if(Z.indexOf(M[O])!=-1){B=!0;break}if(B&&(!D.isCustomEmoji||!D.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(D.emojiId))){z.push(D.emojiId);
break}}}return{categoryId:-1,emojiIds:z}};
_.P.computeSearchEmptyMessage_=function(M,z){return M&&z&&z.emojiIds&&z.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.P.computeSearching_=function(M){return this.emojiManager&&M.replace(mU$,"").length>1};
_.P.computeSkinToneHidden=function(){var M;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((M=this.data)==null||!M.hideSkinTonePicker)};
_.P.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.P.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.P.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.P.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.P.selectSkinTone_=function(M){M=Number(M.target.getAttribute("tone"));this.set("emojiManager.skinTone",M);_.S9(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[M]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.P.skinToneChanged_=function(){_.SN(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var M=_.SN(this.hostElement).querySelector("#dropdown-content").children,z=0;z<M.length;z++)z===this.skinTone?M[z].setAttribute("selected",""):M[z].removeAttribute("selected")};
_.P.animateScroll_=function(M){this.lastAnimationTime_||(this.lastAnimationTime_=M);M-=this.lastAnimationTime_;M<200?(_.SN(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*M/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.SN(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.P.searchChanged_=function(){this.updateButtons_()};
_.P.updateButtons_=function(){var M=null;if(!this.search)for(var z=_.SN(this.hostElement).querySelector("#categories").scrollTop,J=_.SN(this.hostElement).querySelector("#categories").children,R=0;R<J.length;R++){var D=J[R];D.offsetTop<=z&&(M=D.id)}z=_.SN(this.hostElement).querySelector("#category-buttons").children;for(J=0;J<z.length;J++)R=z[J],R.active=R.id===M};
ll.prototype.searchChanged_=ll.prototype.searchChanged_;ll.prototype.skinToneChanged_=ll.prototype.skinToneChanged_;ll.prototype.onEmojiHover_=ll.prototype.onEmojiHover_;ll.prototype.onSelectCategory_=ll.prototype.onSelectCategory_;ll.prototype.onShowEmojiVariantSelector=ll.prototype.onShowEmojiVariantSelector;ll.prototype.updateCategoriesAndPlaceholder_=ll.prototype.updateCategoriesAndPlaceholder_;ll.prototype.dataChanged=ll.prototype.dataChanged;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ll.prototype,"data",void 0);_.u([_.Y({value:function(){return[]}}),
_.W("design:type",Array)],ll.prototype,"categories",void 0);_.u([_.Y({value:function(){return[]}}),
_.W("design:type",Array)],ll.prototype,"categoryButtons",void 0);_.u([_.Y({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.W("design:type",Boolean)],ll.prototype,"disableScroll",void 0);_.u([_.Y({computed:"computeId_(data)",reflectToAttribute:!0}),_.W("design:type",String)],ll.prototype,"id",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ll.prototype,"selected",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ll.prototype,"disableIncrementalLoading",void 0);_.u([_.Y(),_.W("design:type",String)],ll.prototype,"placeholder",void 0);_.u([_.Y({value:""}),_.W("design:type",String)],ll.prototype,"search",void 0);_.u([_.Y({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.W("design:type",Boolean)],ll.prototype,"searching",void 0);_.u([_.Y({computed:"computeSearchCategory_(search)"}),_.W("design:type",Object)],ll.prototype,"searchCategory",void 0);
_.u([_.Y({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.W("design:type",Object)],ll.prototype,"searchEmptyMessage",void 0);_.u([_.Y({computed:"identity(emojiManager.skinTone)"}),_.W("design:type",Number)],ll.prototype,"skinTone",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ll.prototype,"skinToneOpened",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],ll.prototype,"variantSelectorOpened",void 0);
_.u([_.Y({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.W("design:type",Boolean)],ll.prototype,"skinToneHidden",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],ll.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Object)],ll.prototype,"emojiVariantSelector",void 0);_.u([_.Y(),_.W("design:type",Object)],ll.prototype,"emojiMultiPersonSelector",void 0);
_.u([_.Y({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.W("design:type",Boolean)],ll.prototype,"shouldUseStickyPreferences",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ll.prototype,"dataChanged",null);_.u([_.la("data","selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ll.prototype,"updateCategoriesAndPlaceholder_",null);
_.u([_.Xw("yt-show-emoji-variant-selector"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ll.prototype,"onShowEmojiVariantSelector",null);_.u([_.Xw("yt-emoji-picker-select-category"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ll.prototype,"onSelectCategory_",null);_.u([_.Xw("yt-emoji-hover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ll.prototype,"onEmojiHover_",null);
_.u([_.la("skinTone"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ll.prototype,"skinToneChanged_",null);_.u([_.la("search"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ll.prototype,"searchChanged_",null);_.u([_.cU({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],ll);
_.d(ll,"yt-emoji-picker-renderer",function(){if(tD2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;xUV===void 0&&(xUV=document.createElement("template"));var R=xUV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);tD2=M}M=tD2;return M},{mode:2});var eC=function(){var M=_.g.apply(this,arguments)||this;M.emojiManager=_.As;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.selectedIndex=1;M.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return M};
_.w(eC,_.g);_.P=eC.prototype;_.P.handleEmojiCustomizationVisible=function(M){this.emojiPickerRenderer.selected=M;this.selectedIndex=1;M?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.P.emojiCustomizationSetChanged=function(){var M;(M=this.data)!=null&&M.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Lp(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.P.updateSaveButtonState=function(M){var z;(z=this.data)!=null&&z.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.pf("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:M}))};
_.P.emojiUrl=function(M){M=_.fE(this.emojiManager,M);if(!M)return"";var z;M=(z=M.image)==null?void 0:z.thumbnails;return _.PS(M,24)||""};
_.P.emojiAlt=function(M){var z=_.fE(this.emojiManager,M);if(!z)return M;var J,R,D,N=(z==null?void 0:(J=z.image)==null?void 0:(R=J.accessibility)==null?void 0:(D=R.accessibilityData)==null?void 0:D.label)||"";return N?N:z.isCustomEmoji?z.shortcuts[0]:z.emojiId||M};
_.P.emojiAriaLabel=function(M){var z,J;return((z=_.fE(this.emojiManager,M))==null?void 0:(J=z.shortcuts)==null?void 0:J[0])||M};
_.P.onEmojiClick=function(M){M.model.index!==0&&(this.selectedIndex=M.model.index)};
_.P.onEmojiSelect=function(M){M=M.detail;var z,J;((z=this.data)==null?0:z.emojiCustomizationSetEntityKey)&&((J=this.emojiCustomizationSet)==null?0:J.emojiId)&&M.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.pf("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)}))};
_.P.canEditEmoji=function(M,z,J){M=M.indexOf(z);return M===J||M===0||J===0?!1:!0};
_.P.getUpdatedEmojiIdList=function(M,z,J){var R=M.indexOf(z);M=[].concat(_.Yj(M));R>=0&&(M[R]=M[J]);M[J]=z;return M};
_.rX.Object.defineProperties(eC,{template:{configurable:!0,enumerable:!0,get:function(){if(iP$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;AYJ===void 0&&(AYJ=document.createElement("template"));var R=AYJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);iP$=M}M=iP$;return M}}});
eC.prototype.onEmojiSelect=eC.prototype.onEmojiSelect;_.u([_.p(_.EE),_.W("design:type",Object)],eC.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],eC.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Qc("yt-emoji-picker-renderer"),_.W("design:type",Object)],eC.prototype,"emojiPickerRenderer",void 0);
_.u([_.Y({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(M,z){return _.Is(M.entities,"emojiCustomizationSetEntity",z)},
observer:"emojiCustomizationSetChanged"}),_.W("design:type",Object)],eC.prototype,"emojiCustomizationSet",void 0);_.u([_.Y(),_.W("design:type",Object)],eC.prototype,"originalEmojiSet",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],eC.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Object)],eC.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],eC.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],eC.prototype,"selectedIndex",void 0);
_.u([_.Xw("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eC.prototype,"onEmojiSelect",null);_.u([_.cU({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],eC);var spa;var naV;var hZg;var yzt;var Qg=function(){var M=_.g.apply(this,arguments)||this;M.authorBadges=[];return M};
_.w(Qg,_.g);_.P=Qg.prototype;_.P.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.P.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.P.dataChanged=function(){var M=Ui8(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",M)};
_.P.updateMessage=function(){var M=this.data.message,z=_.SN(_.SN(this.hostElement).querySelector("#message"));z.textContent="";M&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.P.onShowOriginalClick=function(M){M.preventDefault();this.showOriginal=!0};
_.P.computeShowBar=function(M,z,J){return M&&z||J};
_.P.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.P.computeAuthorIsOwner=function(M){return!!vOo(M.authorBadges,"owner")};
_.P.computeAuthorNameColor=function(M){var z;if(_.U("live_chat_author_name_color_usernames")&&(M==null?0:(z=M.authorName)==null?0:z.simpleText))return _.pBG(_.FJ8(M.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.pBG(_.Tm(M.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var J;return _.U("live_chat_simple_color_usernames")&&(M==null?0:(J=M.authorName)==null?0:J.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Tm(M.authorUsernameColorDark):_.Tm(M.authorUsernameColorLight):""};
Qg.prototype.updateMessage=Qg.prototype.updateMessage;Qg.prototype.dataChanged=Qg.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],Qg.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Qg.prototype,"data",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"showOriginal",void 0);_.u([_.Y({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"isDimmed",void 0);_.u([_.Y({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"showBar",void 0);
_.u([_.Y({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],Qg.prototype,"authorBadges",void 0);_.u([_.Y({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"authorIsOwner",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"inCollapsedBanner",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"inBanner",void 0);
_.u([_.Y({value:_.U("live_chat_hide_avatars"),reflectToAttribute:!0}),_.W("design:type",Boolean)],Qg.prototype,"avatarHidden",void 0);_.u([_.Y({computed:"computeAuthorNameColor(data)"}),_.W("design:type",String)],Qg.prototype,"authorNameColor",void 0);_.u([_.Y(),_.W("design:type",_.M4)],Qg.prototype,"participantsManager",void 0);_.u([_.Y({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.W("design:type",Object)],Qg.prototype,"filledButtonOverrides",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qg.prototype,"dataChanged",null);_.u([_.la("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qg.prototype,"updateMessage",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Qg);
_.d(Qg,"yt-live-chat-text-message-renderer",function(){if(yzt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;hZg===void 0&&(hZg=document.createElement("template"));var R=hZg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);yzt=M}M=yzt;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var UP=function(){var M=_.g.apply(this,arguments)||this;M.tonalButtonOverrides={type:"tonal",style:"overlay"};return M};
_.w(UP,_.g);
UP.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]]"}}}}}};
UP.prototype.shouldSupportInlineActionButtons=function(){return!0};
UP.prototype.shouldSupportWholeItemClick=function(){return!0};
_.rX.Object.defineProperties(UP.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],UP.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],UP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",_.M4)],UP.prototype,"participantsManager",void 0);
_.u([_.Y(),_.W("design:type",Object)],UP.prototype,"tonalButtonOverrides",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.infoDialogButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],UP.prototype,"hasInfoDialogButton",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],UP);
_.d(UP,"yt-live-chat-auto-mod-message-renderer",function(){if(naV===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;spa===void 0&&(spa=document.createElement("template"));var R=spa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);naV=M}M=naV;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var HAv;var czJ;var dUg;var KZ$=function(){return _.g.apply(this,arguments)||this};
_.w(KZ$,_.g);_.u([_.Y(),_.W("design:type",Object)],KZ$.prototype,"data",void 0);_.u([_.c({is:"ytd-factoid-renderer",disableElementRegistration:!0})],KZ$);
_.d(KZ$,"ytd-factoid-renderer",function(){if(dUg!==void 0)return dUg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dUg=M},{mode:1});var vg=function(){return _.g.apply(this,arguments)||this};
_.w(vg,_.g);vg.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.u([_.Y(),_.W("design:type",Object)],vg.prototype,"data",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],vg);
_.d(vg,"yt-live-chat-channel-activity-reputation-renderer",function(){if(czJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;HAv===void 0&&(HAv=document.createElement("template"));var R=HAv;J.call(z,R.content.cloneNode(!0),M.content.firstChild);czJ=M}M=czJ;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var $U2;var utp;var Gs=function(){return _.g.apply(this,arguments)||this};
_.w(Gs,_.g);Gs.prototype.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Gs.prototype,"menuFocused",void 0);_.u([_.Y(),_.W("design:type",Object)],Gs.prototype,"data",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],Gs.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Gs);
_.d(Gs,"yt-live-chat-donation-announcement-renderer",function(){if(utp===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;$U2===void 0&&($U2=document.createElement("template"));var R=$U2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);utp=M}M=utp;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var qX$;var WZ2,atv=function(){if(WZ2!==void 0)return WZ2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;qX$===void 0&&(qX$=document.createElement("template"));var R=qX$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return WZ2=M};var wb=function(){return _.g.apply(this,arguments)||this};
_.w(wb,_.g);_.rX.Object.defineProperties(wb,{template:{configurable:!0,enumerable:!0,get:function(){return atv()}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wb.prototype,"data",void 0);_.u([_.cU({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],wb);_.d(wb,"yt-live-chat-empty-feed-view-model",function(){return atv()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var VD2;var Eav;var x1=function(){return _.g.apply(this,arguments)||this};
_.w(x1,_.g);x1.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"}}}}}};
_.rX.Object.defineProperties(x1.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var M,z;return{runs:[{text:(M=this.data)==null?void 0:(z=M.channelName)==null?void 0:z.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var M=[],z;if((z=this.data)==null||!z.channelBadges)return M;var J;z=_.S((J=this.data)==null?void 0:J.channelBadges);for(J=z.next();!J.done;J=z.next()){J=_.G(J.value,h_J);var R=void 0,D=void 0;if((R=J)==null?0:(D=R.badgeImage)==null?0:D.sources)R=void 0,D={liveChatAuthorBadgeRenderer:{tooltip:J.tooltip,accessibility:{accessibilityData:{label:(R=_.G(J.rendererContext,_.pM))==null?void 0:R.label}}}},J.badgeImage.sources[0].clientResource?D.liveChatAuthorBadgeRenderer.icon=
{iconType:J.badgeImage.sources[0].clientResource.imageName}:D.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:J.badgeImage.sources},M.push(D)}return M}}});
_.u([_.Y(),_.W("design:type",Object)],x1.prototype,"data",void 0);_.u([_.F("data.channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],x1.prototype,"channelName",null);_.u([_.F("data.channelBadges"),_.W("design:type",Array),_.W("design:paramtypes",[])],x1.prototype,"channelBadges",null);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],x1);
_.d(x1,"yt-live-chat-identity-view-model",function(){if(Eav===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;VD2===void 0&&(VD2=document.createElement("template"));var R=VD2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Eav=M}M=Eav;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ftu;var LZt;var Az$;var iA$;var tp=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;M.supportsInlineActionButtons=!0;return M};
_.w(tp,_.g);tp.prototype.ready=function(){var M;((M=document.querySelector("yt-live-chat-app"))==null?0:M.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
tp.prototype.dataChanged=function(M){var z=(0,_.OV)(_.SN(this.hostElement).querySelector("#detail-text"));z.textContent="";(M==null?0:M.detailText)&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M.detailText))};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],tp.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({observer:"dataChanged"}),_.W("design:type",Object)],tp.prototype,"data",void 0);
_.u([_.Y({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],tp.prototype,"hidden",void 0);_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],tp);
_.d(tp,"yt-live-chat-legacy-paid-message-renderer",function(){if(iA$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Az$===void 0&&(Az$=document.createElement("template"));var R=Az$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);iA$=M}M=iA$;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Crt;var bAk;var rz$={},jC=function(){return _.vU.apply(this,arguments)||this};
_.w(jC,_.vU);jC.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
jC.prototype.onLiveChatMembershipItemBehaviorClick=jC.prototype.onLiveChatMembershipItemBehaviorClick;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jC.prototype,"data",void 0);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jC.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.u([_.Gp()],jC);
rz$.YtLiveChatMembershipItemBehavior=[jC.prototype,_.f.YtRendererBehavior];var pk=function(){var M=_.g.apply(this,arguments)||this;M.supportsInlineActionButtons=!0;M.hasPrimaryHeaderText=!1;M.showOnlyHeader=!1;M.authorBadges=[];M.modern=_.U("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.w(pk,_.g);_.P=pk.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P.messageChanged=function(){var M=this.data.message,z=(0,_.OV)(_.SN(this.hostElement).querySelector("#message"));z.textContent="";M&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.P.computeHasPrimaryHeaderText=function(M){return!(!M||!M.headerPrimaryText)};
_.P.computeShowOnlyHeader=function(M,z){return this.isMessageEmpty(M,z)};
_.P.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.P.isMessageEmpty=function(M,z){return!M||M.empty?!0:!M.message&&!M.inputField&&!z};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.P.getInputElement=function(){return _.SN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.P.inputFocus=function(){var M=this.getInputElement();M&&M.focus()};
_.P.inputInsertEmoji=function(M){var z=this.getInputElement();z&&z.insertEmoji(M)};
_.P.inputMessage=function(){var M=this.getInputElement();return M&&this.data.inputField?(M.completeEmojis(),_.q7(M.liveChatRichMessageInput)):null};
_.P.onFooterButtonClick=function(){this.data.footerButton&&_.Pv(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.P.shouldSupportWholeItemClick=function(){return!0};
pk.prototype.isDeletedChanged=pk.prototype.isDeletedChanged;pk.prototype.messageChanged=pk.prototype.messageChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],pk.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(rz$.YtLiveChatMembershipItemBehavior),_.W("design:type",Object)],pk.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pk.prototype,"data",void 0);_.u([_.Y({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.W("design:type",Object)],pk.prototype,"hasPrimaryHeaderText",void 0);_.u([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],pk.prototype,"showOnlyHeader",void 0);
_.u([_.Y({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],pk.prototype,"authorBadges",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pk.prototype,"modern",void 0);_.u([_.la("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pk.prototype,"messageChanged",null);_.u([_.la("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pk.prototype,"isDeletedChanged",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],pk);
_.d(pk,"yt-live-chat-membership-item-renderer",function(){if(bAk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Crt===void 0&&(Crt=document.createElement("template"));var R=Crt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);bAk=M}M=bAk;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var M$u;var zQ$;var Fm=function(){return _.g.apply(this,arguments)||this};
_.w(Fm,_.g);Fm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fm.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Fm);
_.d(Fm,"yt-live-chat-mode-change-message-renderer",function(){if(zQ$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;M$u===void 0&&(M$u=document.createElement("template"));var R=M$u;J.call(z,R.content.cloneNode(!0),M.content.firstChild);zQ$=M}M=zQ$;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var J0k;var RQa;var Y1=function(){return _.g.apply(this,arguments)||this};
_.w(Y1,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],Y1.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Y1.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Y1);
_.d(Y1,"yt-live-chat-moderation-message-renderer",function(){if(RQa===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;J0k===void 0&&(J0k=document.createElement("template"));var R=J0k;J.call(z,R.content.cloneNode(!0),M.content.firstChild);RQa=M}M=RQa;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Dwa;var N6$;var mG=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework");return M};
_.w(mG,_.g);mG.prototype.onClick=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var z;_.l5.instance.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],mG.prototype,"modern",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],mG.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],mG.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],mG.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],mG);
_.d(mG,"yt-live-chat-offer-click-count-message-renderer",function(){if(N6$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Dwa===void 0&&(Dwa=document.createElement("template"));var R=Dwa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);N6$=M}M=N6$;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var PRt;var SuJ=function(){return _.g.apply(this,arguments)||this};
_.w(SuJ,_.g);_.u([_.Y(),_.W("design:type",Object)],SuJ.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],SuJ);
_.d(SuJ,"yt-live-chat-placeholder-item-renderer",function(){if(PRt===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);PRt=M}M=PRt;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Z1V;var kIv;var B6Q=new LD(7),gb=function(){var M=_.g.apply(this,arguments)||this;M.data={};return M};
_.w(gb,_.g);gb.prototype.dataChanged=function(){var M;((M=this.data)==null?0:M.class)&&_.kz(this.hostElement,this.data.class,!0);var z;((z=this.oldData)==null?0:z.class)&&_.kz(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
gb.prototype.computeTimestampString=function(M){return B6Q.format(new Date(M/1E3))};
gb.prototype.dataChanged=gb.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],gb.prototype,"data",void 0);_.u([_.Y({computed:"computeTimestampString(data.timestampUsec)"}),_.W("design:type",String)],gb.prototype,"timestampString",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gb.prototype,"dataChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],gb);
_.d(gb,"yt-live-chat-server-error-message",function(){if(kIv===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Z1V===void 0&&(Z1V=document.createElement("template"));var R=Z1V;J.call(z,R.content.cloneNode(!0),M.content.firstChild);kIv=M}M=kIv;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var O1S;var T6V;var sP=function(){var M=_.g.apply(this,arguments)||this;M.defaultToFilledIcon=!1;return M};
_.w(sP,_.g);sP.prototype.computeHasPrimaryColorIcon=function(M){return M==="SPARK"||M==="SPONSORSHIP_STAR"};
sP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],sP.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sP.prototype,"defaultToFilledIcon",void 0);_.u([_.Y(),_.W("design:type",Object)],sP.prototype,"data",void 0);
_.u([_.Y({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.W("design:type",Boolean)],sP.prototype,"hasPrimaryColorIcon",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],sP);
_.d(sP,"yt-live-chat-viewer-engagement-message-renderer",function(){if(T6V===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;O1S===void 0&&(O1S=document.createElement("template"));var R=O1S;J.call(z,R.content.cloneNode(!0),M.content.firstChild);T6V=M}M=T6V;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ITv;var nk=function(){var M=_.g.apply(this,arguments)||this;M.modernUpdate=!1;M.buttonStyle="overlay";M.buttonType="filled";return M};
_.w(nk,_.g);nk.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
nk.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nk.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],nk.prototype,"modernUpdate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nk.prototype,"buttonStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],nk.prototype,"buttonType",void 0);
_.u([_.c({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],nk);
_.d(nk,"ytd-ad-hover-text-button-renderer",function(){if(ITv!==void 0)return ITv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ITv=M},{mode:1});var odu;var hp=function(){var M=_.g.apply(this,arguments)||this;M.buttonOverrides={size:"XS"};M.modern=_.U("web_button_rework");return M};
_.w(hp,_.g);hp.prototype.onHelpTap=function(M){this.data&&this.data.informationDialog&&(_.Pv(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),M.preventDefault(),M.stopPropagation())};
_.u([_.Y(),_.W("design:type",Object)],hp.prototype,"buttonOverrides",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hp.prototype,"modern",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hp.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],hp);
_.d(hp,"ytd-live-chat-purchased-product-message-renderer",function(){if(odu!==void 0)return odu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return odu=M},{mode:1});var Xkt;var lTV;var yg=function(){var M=_.g.apply(this,arguments)||this;M.isContainerDeleted=!1;return M};
_.w(yg,_.g);yg.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
yg.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))};
yg.prototype.isContainerDeletedChanged=yg.prototype.isContainerDeletedChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],yg.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yg.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],yg.prototype,"isContainerDeleted",void 0);
_.u([_.Y(),_.W("design:type",String)],yg.prototype,"deletedStateMessage",void 0);_.u([_.la("isContainerDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yg.prototype,"isContainerDeletedChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],yg);
_.d(yg,"ytd-sponsorships-live-chat-header-renderer",function(){if(lTV!==void 0)return lTV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return lTV=M},{mode:1});var Hg=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.w(Hg,_.g);Hg.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]]"}}}}}};
Hg.prototype.onCtaButtonClick=function(){var M,z=_.G((M=this.data)==null?void 0:M.optInPrompt,_.aR);if(M=this.maybeGetButtonCommand(z)){var J;(J=_.Gm())==null||J.clickCommand(M)}};
Hg.prototype.maybeGetButtonCommand=function(M){return!M||!M.command||_.G(M.command,ONa)===void 0&&_.G(M.command,BNt)===void 0?null:M.command};
Hg.prototype.shouldHideOptinPrompt=function(M,z){return!M||z};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],Hg.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Hg.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Hg.prototype,"modern",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Hg);
_.d(Hg,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Xkt!==void 0)return Xkt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Xkt=M},{mode:1});var eQV;var cg=function(){return _.g.apply(this,arguments)||this};
_.w(cg,_.g);cg.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
cg.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))};
cg.prototype.isDeletedChanged=cg.prototype.isDeletedChanged;_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],cg.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cg.prototype,"data",void 0);_.u([_.la("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cg.prototype,"isDeletedChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],cg);
_.d(cg,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(eQV!==void 0)return eQV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return eQV=M},{mode:1});var db=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return M};
_.w(db,_.g);_.P=db.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.P.handleLiveChatAction=function(M){_.G(M,tlV)?this.handleMarkChatItemAsDeletedAction(_.G(M,tlV)):_.G(M,xht)&&this.handleRemoveChatItemAction(_.G(M,xht))};
_.P.handleLiveChatActions=function(M){M.forEach(this.handleLiveChatAction,this)};
_.P.handleMarkChatItemAsDeletedAction=function(M){var z=this,J;((J=this.data)==null?0:J.items)&&this.data.items.forEach(function(R,D){var N=Object.keys(R)[0];Object.values(R)[0].id===M.targetItemId&&z.markAsDeleted("data.items",D,N,M.deletedStateMessage,M.showOriginalContentMessage)})};
_.P.handleRemoveChatItemAction=function(M){var z=this,J;((J=this.data)==null?0:J.items)&&this.data.items.forEach(function(R,D){Object.values(R)[0].id===M.targetItemId&&z.splice("data.items",D,1)})};
_.P.markAsDeleted=function(M,z,J,R,D){M=[M,z,J].join(".");this.set(M+".deletedStateMessage",R);this.set(M+".showOriginalContentMessage",D)};
_.u([_.Y(),_.W("design:type",Object)],db.prototype,"data",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],db.prototype,"ytActionHandlerBehavior",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],db);
_.d(db,"yt-live-chat-item-display-list-renderer",function(){if(LZt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;ftu===void 0&&(ftu=document.createElement("template"));var R=ftu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);LZt=M}M=LZt;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var QGu;var Uwt,vdt=function(){if(Uwt!==void 0)return Uwt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;QGu===void 0&&(QGu=document.createElement("template"));var R=QGu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Uwt=M};var Kk=function(){var M=_.g.apply(this,arguments)||this;M.isHeader=!1;return M};
_.w(Kk,_.g);Kk.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.rX.Object.defineProperties(Kk,{template:{configurable:!0,enumerable:!0,get:function(){return vdt()}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Kk.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Kk.prototype,"isHeader",void 0);_.u([_.cU({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Kk);_.d(Kk,"yt-live-chat-item-display-renderer",function(){return vdt()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var GIk,wkv,FM$,pkQ;
GIk={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}};wkv={home:"eohps",search:"eosps",watch:"eowps"};_.xwp=["watch","search","home"];
_.$1=function(){this.JSC$14204_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14204_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.HW("PRECONSTRUCTION_DELAY",0);this.signals_=_.Eb();this.targetPage_=""};
_.$1.prototype.init=function(M,z){M=M===void 0?"":M;z=z===void 0?null:z;if(this.JSC$14204_isInitialized_)this.abort();else if(this.JSC$14204_isInitialized_=!0,M&&_.t$t(this,M),z){var J=_.fN(this.signals_,"pcl")?0:10,R=function(){for(var D=0,N;N=_.xwp[D++];)N!=M&&N!=z&&this.pendingPages_.push(N);_.jGu(this)}.bind(this);
this.signals_.parkOrScheduleJob(R,J,"pcl")}};
_.$1.prototype.abort=function(){this.fragmentJobId_&&(_.no.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);pkQ(this)};
_.t$t=function(M,z){M.JSC$14204_isInitialized_&&!M.targetPage_&&(M.targetPage_=z,FM$(M,z),M.isInitialPass_=!1,FM$(M,z),M.signals_.processSignal(wkv[M.targetPage_]),pkQ(M),_.jGu(M))};
_.jGu=function(M){M.pendingPages_.length&&!M.pagePreparerJobId_&&(M.pagePreparerJobId_=_.x4(_.no,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.t$t(this,this.pendingPages_.shift())}.bind(M),M.DEFAULT_DELAY_))};
FM$=function(M,z){if(z=GIk[z])for(var J in z){var R=!1,D=J;J.charAt(0)=="~"&&(R=!0,D=J.substring(1));var N=z[J];N=typeof N=="object"?N:{count:N};z[J]=N;N.componentName=D;N.count>0&&(M.isInitialPass_?R||M.isSeenDuringInitialPass_[D]||(M.JSC$14204_queue_.push({componentName:D,count:1,signals:N.signals}),M.isSeenDuringInitialPass_[D]=!0,N.count--):M.JSC$14204_queue_.push(N))}};
pkQ=function(M){M.JSC$14204_queue_.length=0;M.targetPage_="";M.isInitialPass_=!0;M.signals_.processSignal("eop")};
_.$1.getInstance=function(){return _.Jx(_.$1)};var YuQ=function(){this.signals=_.Eb();this.init()};
YuQ.prototype.startPreconstruction=function(){_.$1.getInstance().init(_.cW("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
YuQ.prototype.init=function(){mwg(this);window.Polymer&&hAB&&ZxH();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var M=_.R3.ytcsi;if(M&&M.gt&&(M=M.gt())&&M.tick&&(M.tick.aft>0||M.tick.pbs>0)&&(_.cW("IS_HOMEPAGE_COLD")||_.cW("IS_RESULTS_PAGE_COLD")||_.cW("IS_WATCH_PAGE_COLD"))){gdv(this);break a}oz0(Mc3,this.onNotifications,this)}};
var mwg=function(M){var z=function(){M.signals.processSignal("dl")};
document.readyState==="complete"?(_.WW(Error("sh"),"WARNING"),z()):_.afp(window,"load",z)};
YuQ.prototype.onNotifications=function(M){M.timer||(_.cW("IS_HOMEPAGE_COLD")||_.cW("IS_RESULTS_PAGE_COLD")||_.cW("IS_WATCH_PAGE_COLD"))&&gdv(this)};
var gdv=function(M){M.signals.parkOrScheduleJob(function(){M.signals.processSignal("eocs")},10,"eor")};
new YuQ;var ul,sGS=function(){return _.vU.apply(this,arguments)||this};
_.w(sGS,_.vU);_.P=sGS.prototype;_.P.enableActiveViewMeasurement=function(M){if(this.isActiveViewEnabled(M)){var z=this.getUrlPrefixesFromCommand(M.viewableCommands);M=this.getUrlPrefixesFromCommand(M.endOfSessionCommands);if(!ul){var J=_.NC("custom_active_view_tos_timeout_ms");ul=J>0&&J!==36E5?new ERw(this.getVersion(),J):new ERw(this.getVersion())}LOp(ul,this.hostElement);A4G(ul,this.hostElement,z,M)}};
_.P.stopActiveViewMeasurement=function(){ul&&LOp(ul,this.hostElement)};
_.P.isActiveViewEnabled=function(M){return!!M&&(this.hasAtLeastOneUrl(M.viewableCommands)||this.hasAtLeastOneUrl(M.endOfSessionCommands))};
_.P.hasAtLeastOneUrl=function(M){return!!M&&M.length>0&&M[0].loggingUrls!=null&&M[0].loggingUrls.length>0};
_.P.getVersion=function(){var M=_.HW("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
_.P.getUrlPrefixesFromCommand=function(M){if(!M)return[];var z=[];M=_.S(M);for(var J=M.next();!J.done;J=M.next())if(J=J.value,J.loggingUrls){J=_.S(J.loggingUrls);for(var R=J.next();!R.done;R=J.next())R=R.value,R.baseUrl&&z.push(R.baseUrl)}return z};
_.u([_.Gp()],sGS);var q4=[sGS.prototype];var nd2=function(){return _.vU.apply(this,arguments)||this};
_.w(nd2,_.vU);_.rX.Object.defineProperties(nd2.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_entity_store_from_dependency_injection")?_.ia():_.rA()}}});
_.u([_.Gp()],nd2);_.Wg=[KZ.prototype,nd2.prototype];var hQJ=["ytd-rich-shelf-renderer"],aL=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";M.followUpDialogPromise=null;M.followUpDialogPromiseResolve=null;M.followUpDialogPromiseReject=null;return M};
_.w(aL,_.vU);_.P=aL.prototype;_.P.dismissibleItemIsDismissedChanged_=function(M){_.U("kevlar_fluid_dismiss")&&(M?_.Pv(this.hostElement,"yt-dismissible-item-dismissed"):_.Pv(this.hostElement,"yt-dismissible-item-undismissed"))};
_.P.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.P.dismissibleItemReset_=function(){var M=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.If(function(z,J){M.followUpDialogPromiseResolve=z;M.followUpDialogPromiseReject=J});
_.Pv(this.hostElement,"yt-enable-lockup-interaction")};
_.P.dismissibleItemOnYtServiceRequestSent_=function(M,z){z.actions&&this.dismissibleItemProcessActions(z.actions,M)};
_.P.dismissibleItemOnRequestSent=function(M){if(_.U("web_button_rework"))for(var z=_.S(M.detail),J=z.next();!J.done;J=z.next()){var R=void 0;(J=(R=_.G(J.value,_.on))==null?void 0:R.actions)&&this.dismissibleItemProcessActions(J,M)}};
_.P.dismissibleItemOnCommandSent=function(M,z){z&&this.dismissibleItemProcessActions(z,M)};
_.P.setAndGetDismissedContentId=function(M){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+M};
_.P.replayDismissAction=function(M){this.dismissibleItemProcessActions([M])};
_.P.dismissibleItemProcessActions=function(M,z){for(var J=0;J<M.length;J++){var R=M[J],D=void 0;((D=_.G(R,_.TV))==null?0:D.commands)&&this.dismissibleItemProcessActions(_.G(R,_.TV).commands,z);if(_.G(R,_.YB)){if(D=_.G(R,_.YB),!D.replaceParentSection||hQJ.includes(this.hostElement.nodeName.toLowerCase()))D.groupDismissal&&uiH(this,D.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(D),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.pf("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:R})),R=void 0,(R=z)==null||R.stopPropagation()}else if(_.G(R,xo$))this.dismissibleItemHandleHideEnclosingAction_(),R=void 0,(R=z)==null||R.stopPropagation();else if(_.G(R,Esu))R=_.G(R,Esu),D=void 0,((D=R)==null?0:D.targetGroupId)&&uiH(this,{targetGroupId:R.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.pf("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
R=void 0,(R=z)==null||R.stopPropagation();else if(_.G(R,_.on))(R=_.G(R,_.on).actions)&&_.Bv(this.hostElement,R,this.hostElement),R=void 0,(R=z)==null||R.stopPropagation();else{var N=D=void 0;((D=_.G(R,_.qp))==null?void 0:D.signal)!=="TELL_US_WHY"||((N=_.G(R,_.qp))==null?0:N.targetId)&&_.U("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),R=void 0,(R=z)==null||R.stopPropagation())}}};
_.P.dismissibleItemOnYtServiceRequestCompleted_=function(M,z){var J=this.get("feedbackResponses.0.followUpDialog",z.data);J?this.followUpDialogPromiseResolve(J):z.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(z.actions,M)};
_.P.dismissibleItemHandleReplaceEnclosingAction_=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0;var z=null;(z=_.SN(this.hostElement).querySelector("#dismissed"))&&_.C4(this,function(){_.Ao(z)});
_.Pv(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.P.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.P.dismissibleItemHandleUndoFeedbackAction_=function(){_.Pv(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.P.dismissibleItemHandleTellUsWhySignalAction_=function(){var M=this;this.followUpDialogPromise.then(function(z){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:z}})})};
aL.prototype.dismissibleItemOnYtServiceRequestCompleted_=aL.prototype.dismissibleItemOnYtServiceRequestCompleted_;aL.prototype.dismissibleItemOnCommandSent=aL.prototype.dismissibleItemOnCommandSent;aL.prototype.dismissibleItemOnRequestSent=aL.prototype.dismissibleItemOnRequestSent;aL.prototype.dismissibleItemOnYtServiceRequestSent_=aL.prototype.dismissibleItemOnYtServiceRequestSent_;aL.prototype.dismissibleItemDataChanged_=aL.prototype.dismissibleItemDataChanged_;
aL.prototype.dismissibleItemIsDismissedChanged_=aL.prototype.dismissibleItemIsDismissedChanged_;_.u([_.p(_.N4),_.W("design:type",Object)],aL.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],aL.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aL.prototype,"isDismissed",void 0);_.u([_.Y(),_.W("design:type",Object)],aL.prototype,"dismissedRenderer",void 0);
_.u([_.la("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],aL.prototype,"dismissibleItemIsDismissedChanged_",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aL.prototype,"dismissibleItemDataChanged_",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],aL.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.u([_.Xw("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aL.prototype,"dismissibleItemOnRequestSent",null);
_.u([_.Xw("yt-dismissible-item-action"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Array]),_.W("design:returntype")],aL.prototype,"dismissibleItemOnCommandSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],aL.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.u([_.Gp()],aL);_.Vg=[_.N4,_.Wg,aL.prototype];var EP=function(){var M=_.vU.apply(this,arguments)||this;M.disableGridStateAware=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.currentGridClass="";return M};
_.w(EP,_.vU);EP.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.C4(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var M=this.gridStateAwareGetElement();_.kz(M,"grid",!0)}};
EP.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
EP.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.SN(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
EP.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var M="grid-disabled";else{M=_.vbS.getInstance();var z=this.get("pageSubtype");M=z&&eW$.includes(z)?"grid-disabled":M.currentSnapState_?M.currentSnapState_.className:null}(z=this.gridStateAwareGetElement())&&M!==this.currentGridClass&&(M&&_.kz(z,M,!0),this.currentGridClass&&_.kz(z,this.currentGridClass,!1),this.currentGridClass=M)};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",String)],EP.prototype,"gridStateAwareSizingElementSelector",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],EP.prototype,"disableGridStateAware",void 0);_.u([_.Gp()],EP);_.fk=[EP.prototype,_.wx.YtActionHandlerBehavior];_.Lk=new _.Nh("GUIDE_TOKEN");var il;_.Ap={};il=function(){var M=_.vU.apply(this,arguments)||this;M.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return M};
_.w(il,_.vU);_.P=il.prototype;_.P.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var M=_.JF().resolve(_.zw(_.Lk));M&&(this.guidePersistentAndVisible=M.getGuidePersistentAndVisible(),this.activeEndpoint=M.getActiveEndpoint(),this.guideOpened=M.getGuideOpened(),this.miniGuideVisible=M.getMiniGuideVisible())};
_.P.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.P.handleGuideStateAction=function(M){this.guidePersistentAndVisible=M};
_.P.handleMiniGuideStateAction=function(M){this.miniGuideVisible=M};
_.P.handleGuideOpenedAction=function(M){this.guideOpened=M};
_.P.handleActiveEndpointAction=function(M){this.activeEndpoint=M};
il.prototype.onActiveEndpointChange=il.prototype.onActiveEndpointChange;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],il.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],il.prototype,"guidePersistentAndVisible",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],il.prototype,"miniGuideVisible",void 0);_.u([_.Y(),_.W("design:type",Object)],il.prototype,"activeEndpoint",void 0);
_.u([_.la("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],il.prototype,"onActiveEndpointChange",null);_.u([_.Y(),_.W("design:type",Boolean)],il.prototype,"guideOpened",void 0);_.u([_.Gp()],il);_.Ap.YtdGuideStateAwareBehavior=[];_.Ap.YtdGuideStateAwareBehavior.push(il.prototype,_.wx.YtActionHandlerBehavior);var y0Q=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Ck=function(){var M=_.vU.apply(this,arguments)||this;M.hoverJobId=0;M.JSC$14235_touched=!1;return M};
_.w(Ck,_.vU);_.P=Ck.prototype;_.P.created=function(){this.useExpandableTooltip=!y0Q.includes(this.is)};
_.P.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.P.detached=function(){this.useExpandableTooltip=!1};
_.P.lockupOnDown=function(M){this.interactionElement&&!_.bP(_.CX(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.P.lockupOnUp=function(M){this.interactionElement&&!_.bP(_.CX(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.P.onTouchStart=function(){this.JSC$14235_touched=!0};
_.P.lockupOnMouseEnter=function(){var M=this,z=_.NC("kevlar_lockup_hover_delay",-1);this.JSC$14235_touched&&z>=0?(_.no.cancelJob(this.hoverJobId),this.hoverJobId=_.no.addJob(function(){M.lockupIsHovered=!0},8,z),this.JSC$14235_touched=!1):this.lockupIsHovered=!0};
_.P.lockupOnMouseLeave=function(){this.hoverJobId&&(_.no.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.P.lockupOnPopupClosed=function(M,z){var J;((J=z.popupRenderer)==null?void 0:J.is)==="ytd-menu-popup-renderer"&&(M=z.popupRenderer.veData,z=_.y5(),M&&z&&_.Ef(z,[M]))};
_.P.lockupOnLockupRequested=function(M){var z=M.detail.videoIds[0],J;M.detail&&z===((J=this.data)==null?void 0:J.videoId)&&(M.detail.returnValue=[this.data])};
_.P.lockupOnYtServiceRequestSent=function(M,z){if(M=z.actions)for(var J=0;J<M.length;J++){var R=M[J];if(R.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&z.ajaxPromise){var D=void 0,N=(D=_.G(z.endpoint,_.uU))==null?void 0:D.playlistId;D=void 0;R=(D=R.removedVideoId)!=null?D:"";WEB(_.Am(),R,N)}else R.action==="ACTION_REMOVE_VIDEO"&&z.ajaxPromise&&(N=void 0,R=(N=R.setVideoId)!=null?N:"",_.a7v(_.Am(),R))}};
_.P.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.P.lockupOnLockupEnabled=function(){if(!this.$){var M=_.JF().resolve(_.M6).getCurrentPage(),z=this.getParentRenderer?this.getParentRenderer():void 0;_.yA(new _.xN("component not ready",this.is,this.isAttached,M==null?void 0:M.is,z==null?void 0:z.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Ck.prototype.lockupOnLockupEnabled=Ck.prototype.lockupOnLockupEnabled;Ck.prototype.lockupOnLockupDisabled=Ck.prototype.lockupOnLockupDisabled;Ck.prototype.lockupOnYtServiceRequestSent=Ck.prototype.lockupOnYtServiceRequestSent;Ck.prototype.lockupOnLockupRequested=Ck.prototype.lockupOnLockupRequested;Ck.prototype.lockupOnPopupClosed=Ck.prototype.lockupOnPopupClosed;Ck.prototype.lockupOnMouseLeave=Ck.prototype.lockupOnMouseLeave;Ck.prototype.lockupOnMouseEnter=Ck.prototype.lockupOnMouseEnter;
Ck.prototype.onTouchStart=Ck.prototype.onTouchStart;Ck.prototype.lockupOnUp=Ck.prototype.lockupOnUp;Ck.prototype.lockupOnDown=Ck.prototype.lockupOnDown;_.u([_.Y(),_.W("design:type",Object)],Ck.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Ck.prototype,"lockupIsHovered",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Ck.prototype,"lockupTouchTriggered",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Ck.prototype,"useExpandableTooltip",void 0);
_.u([_.Qc("#interaction"),_.W("design:type",Object)],Ck.prototype,"interactionElement",void 0);_.u([_.Xw("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ck.prototype,"lockupOnDown",null);_.u([_.Xw("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ck.prototype,"lockupOnUp",null);
_.u([_.Xw("touchstart"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ck.prototype,"onTouchStart",null);_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ck.prototype,"lockupOnMouseEnter",null);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ck.prototype,"lockupOnMouseLeave",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Ck.prototype,"lockupOnPopupClosed",null);_.u([_.Xw("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ck.prototype,"lockupOnLockupRequested",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],Ck.prototype,"lockupOnYtServiceRequestSent",null);_.u([_.Xw("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ck.prototype,"lockupOnLockupDisabled",null);
_.u([_.Xw("yt-enable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ck.prototype,"lockupOnLockupEnabled",null);_.u([_.Gp()],Ck);_.bl=[Ck.prototype];_.H1k={YtdReduxBehavior:[]};_.H1k.YtdReduxBehavior.push.apply(_.H1k.YtdReduxBehavior,_.Wg);var rb=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.disableNowPlaying=!1;M.disableTooltips=!1;M.useHoveredProperty=!1;M.hovered=!1;M.isThumbnailHovered_=!1;M.addBackground=_.U("kevlar_thumbnail_bg");M.nowPlaying=!1;M.disableRounding=!1;M.size="small";return M};
_.w(rb,_.vU);_.P=rb.prototype;_.P.computeThumbnailOverlaySidePanelWidth_=function(M,z){return M-z};
_.P.computeSize=function(M,z){if(!this.disableRounding){if(!M&&!z)return"small";M=Math.max(M||0,z||0);return M>=256?"large":M>=96?"medium":"small"}};
_.P.computeFinalHoveredState_=function(M,z,J){return this.nowPlaying?!1:_.U("kevlar_thumbnail_fluid")&&M?z:J};
_.P.computeHoverOverlays_=function(M,z){return M&&z?z:void 0};
_.P.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.P.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.P.checkMiniplayer_=function(){var M;if(((M=this.data)==null?0:M.playlistSetVideoId)&&_.U("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{M=_.x9();var z=M.currentEndpoint;!this.disableNowPlaying&&z&&_.G(z,_.Au)&&this.data?(z=_.G(z,_.Au),this.nowPlaying=this.data.playlistId?z.playlistId===this.data.playlistId:z.videoId===this.data.videoId,this.isVideoPlaying=M==null?void 0:M.isVideoPlaying):this.nowPlaying=!1}};
rb.prototype.checkMiniplayer_=rb.prototype.checkMiniplayer_;rb.prototype.onMouseLeave_=rb.prototype.onMouseLeave_;rb.prototype.onMouseEnter_=rb.prototype.onMouseEnter_;rb.prototype.computeHoverOverlays_=rb.prototype.computeHoverOverlays_;rb.prototype.computeFinalHoveredState_=rb.prototype.computeFinalHoveredState_;rb.prototype.computeSize=rb.prototype.computeSize;rb.prototype.computeThumbnailOverlaySidePanelWidth_=rb.prototype.computeThumbnailOverlaySidePanelWidth_;
_.u([_.p(_.Wg),_.W("design:type",Object)],rb.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],rb.prototype,"height",void 0);_.u([_.Y(),_.W("design:type",Boolean)],rb.prototype,"bottomSidePanel",void 0);_.u([_.Y(),_.W("design:type",Number)],rb.prototype,"width",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"disableNowPlaying",void 0);
_.u([_.Y({selector:_.HA}),_.W("design:type",Boolean)],rb.prototype,"miniplayerIsActive",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"disableTooltips",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"useHoveredProperty",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"hovered",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"isThumbnailHovered_",void 0);
_.u([_.Y({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.W("design:type",Boolean)],rb.prototype,"finalHoveredState_",void 0);_.u([_.Y({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.W("design:type",Number)],rb.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rb.prototype,"addBackground",void 0);
_.u([_.Y({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.W("design:type",Object)],rb.prototype,"hoverOverlays_",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rb.prototype,"nowPlaying",void 0);_.u([_.Y(),_.W("design:type",Boolean)],rb.prototype,"isVideoPlaying",void 0);_.u([_.Y(),_.W("design:type",Object)],rb.prototype,"disableRounding",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.W("design:type",Object)],rb.prototype,"size",void 0);_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rb.prototype,"onMouseEnter_",null);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rb.prototype,"onMouseLeave_",null);
_.u([_.la("data","disableNowPlaying","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rb.prototype,"checkMiniplayer_",null);_.u([_.Gp()],rb);var c0t=[rb.prototype];_.Mm={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(M,z){return M+":"+_.fp(z)},
getPlayerListener_:function(M,z,J){M=this.getPlayerListenerKey_(M,z);z=this.playerListeners_.get(M);J&&this.playerListeners_.delete(M);return z},
savePlayerListener_:function(M,z){var J=z.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(M,z),J);return J},
listenToPlayerEvent:function(M,z,J){J=this.savePlayerListener_(z,J);M.addEventListener(z,J)},
listenToPlayerEvents:function(M,z){z.forEach(function(J,R){this.listenToPlayerEvent(M,R,J)}.bind(this))},
unlistenFromPlayerEvent:function(M,z,J){J=this.getPlayerListener_(z,J,!0);M.removeEventListener(z,J)},
unlistenFromPlayerEvents:function(M,z){z.forEach(function(J,R){this.unlistenFromPlayerEvent(M,R,J)}.bind(this))}}};
_.zW=function(){};_.dwv=new _.Nh("PLAYER_API_TOKEN");var LM8=!1,b18,i1e=!1,Mk0;var N6=function(M,z,J,R,D){_.wS.call(this);var N=this;this.playerId=z;this.webPlayerContextConfig=R;this.xTB=D;this.itM=!1;this.api={};this.qFN=this.uB8=null;this.nHx=new _.l9;this.qY={};this.e5w=this.mHo=this.elementId=this.cXl=this.config=null;this.nvO=!1;this.nM=this.hpr=null;this.xMy={};this.qDW=["onReady"];this.lastError=null;this.iOy=NaN;this.nkR={};this.r9r=0;this.sh=this.targetElement=M;_.OC(this,this.nHx);KM$(this);J?this.r9r=setTimeout(function(){N.loadNewVideoConfig(J)},0):R&&($wV(this),
uiV(this))};
_.w(N6,_.wS);N6.prototype.getId=function(){return this.playerId};
N6.prototype.loadNewVideoConfig=function(M){if(!this.isDisposed()){this.r9r&&(clearTimeout(this.r9r),this.r9r=0);var z=M||{};z instanceof bEV||(z=new bEV(z));this.config=z;this.setConfig(M);uiV(this);this.isReady()&&quV(this)}};
var $wV=function(M){var z;M.webPlayerContextConfig?z=M.webPlayerContextConfig.rootElementId:z=M.config.attrs.id;M.elementId=z||M.elementId;M.elementId==="video-player"&&(M.elementId=M.playerId,M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.playerId:M.config.attrs.id=M.playerId);var J;((J=M.sh)==null?void 0:J.id)===M.elementId&&(M.elementId+="-player",M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.elementId:M.config.attrs.id=M.elementId)};
N6.prototype.setConfig=function(M){this.cXl=M;this.config=WMu(M);$wV(this);if(!this.mHo){var z;this.mHo=aTp(this,((z=this.config.args)==null?void 0:z.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var J;if((J=this.config)==null?0:J.attrs)M=this.config.attrs,(z=M.width)&&this.sh&&(this.sh.style.width=qo(Number(z)||z,!0)),(M=M.height)&&this.sh&&(this.sh.style.height=qo(Number(M)||M,!0))};
var quV=function(M){if(M.config&&M.config.loaded!==!0)if(M.config.loaded=!0,!M.config.args||M.config.args.autoplay!=="0"&&M.config.args.autoplay!==0&&M.config.args.autoplay!==!1){var z;M.api.loadVideoByPlayerVars((z=M.config.args)!=null?z:null)}else M.api.cueVideoByPlayerVars(M.config.args)},EdS=function(M){var z=!0,J=M.getPlayerElement();
J&&M.config&&(z=J.dataset.version===V$V(M));return z&&!!_.qH("yt.player.Application.create")},uiV=function(M){if(!M.isDisposed()&&!M.nvO){var z=EdS(M);
if(z&&(M.getPlayerElement()?"html5":null)==="html5")M.e5w="html5",M.isReady()||fTv(M);else if(LM$(M),M.e5w="html5",z&&M.nM&&M.targetElement)M.targetElement.appendChild(M.nM),fTv(M);else{M.config&&(M.config.loaded=!0);var J=!1;M.hpr=function(){J=!0;var R=A0V(M,"player_bootstrap_method")?_.qH("yt.player.Application.createAlternate")||_.qH("yt.player.Application.create"):_.qH("yt.player.Application.create");var D=M.config?WMu(M.config):void 0;R&&R(M.targetElement,D,M.webPlayerContextConfig,M.xTB);fTv(M)};
M.nvO=!0;z?M.hpr():(_.qI(V$V(M),M.hpr),(z=i1S(M))&&vt3(z||""),CRS(M)&&!J&&_.b9("yt.player.Application.create",null))}}};
N6.prototype.getPlayerElement=function(){var M=_.DU(document,this.elementId);!M&&this.sh&&this.sh.querySelector&&(M=this.sh.querySelector("#"+this.elementId));return M};
var fTv=function(M){if(!M.isDisposed()){var z=M.getPlayerElement(),J=!1;z&&z.getApiInterface&&z.getApiInterface()&&(J=!0);if(J){M.nvO=!1;if(!A0V(M,"html5_remove_not_servable_check_killswitch")){var R;if((z==null?0:z.isNotServable)&&M.config&&(z==null?0:z.isNotServable((R=M.config.args)==null?void 0:R.video_id)))return}b1t(M)}else M.iOy=setTimeout(function(){fTv(M)},50)}},b1t=function(M){KM$(M);
M.itM=!0;var z=M.getPlayerElement();if(z){M.uB8=r0p(M,z,"addEventListener");M.qFN=r0p(M,z,"removeEventListener");var J=z.getApiInterface();J=J.concat(z.getInternalApiInterface());for(var R=M.api,D=0;D<J.length;D++){var N=J[D];R[N]||(R[N]=r0p(M,z,N))}}for(var Z in M.qY)M.qY.hasOwnProperty(Z)&&M.uB8&&M.uB8(Z,M.qY[Z]);quV(M);M.mHo&&M.mHo(M.api);M.nHx.publish("onReady",M.api)},r0p=function(M,z,J){var R=z[J];
return function(){var D=_.H4.apply(0,arguments);try{return M.lastError=null,R.apply(z,D)}catch(N){if(J!=="sendAbandonmentPing")throw N.params=J,M.lastError=N,D=new _.xN("PlayerProxy error in method call",{error:N,method:J,playerId:M.playerId}),D.level="WARNING",D;}}},KM$=function(M){M.itM=!1;
if(M.qFN)for(var z in M.qY)M.qY.hasOwnProperty(z)&&M.qFN(z,M.qY[z]);for(var J in M.nkR)M.nkR.hasOwnProperty(J)&&clearTimeout(Number(J));M.nkR={};M.uB8=null;M.qFN=null;z=M.api;for(var R in z)z.hasOwnProperty(R)&&(z[R]=null);z.addEventListener=function(D,N){M.addEventListener(D,N)};
z.removeEventListener=function(D,N){M.removeEventListener(D,N)};
z.destroy=function(){M.dispose()};
z.getLastError=function(){return M.getLastError()};
z.getPlayerType=function(){return M.getPlayerType()};
z.getCurrentVideoConfig=function(){return M.cXl};
z.loadNewVideoConfig=function(D){M.loadNewVideoConfig(D)};
z.isReady=function(){return M.isReady()}};
N6.prototype.isReady=function(){return this.itM};
N6.prototype.addEventListener=function(M,z){var J=this;this.isDisposed();var R=aTp(this,z);R&&(_.Kp(this.qDW,M)||this.qY[M]||(z=Mk2(this,M),this.uB8&&this.uB8(M,z)),this.nHx.subscribe(M,R),M==="onReady"&&this.isReady()&&setTimeout(function(){R(J.api)},0))};
N6.prototype.removeEventListener=function(M,z){this.isDisposed()||(z=aTp(this,z))&&this.nHx.unsubscribe(M,z)};
var aTp=function(M,z){var J=z;if(typeof z==="string"){if(M.xMy[z])return M.xMy[z];J=function(){var R=_.H4.apply(0,arguments),D=_.qH(z);if(D)try{D.apply(_.R3,R)}catch(N){throw R=new _.xN("PlayerProxy error when executing callback",{error:N}),R.level="ERROR",R;}};
M.xMy[z]=J}return J?J:null},Mk2=function(M,z){var J=function(R){var D=function(){M.isDisposed();
if(!M.isDisposed())try{M.nHx.publish(z,R!=null?R:void 0)}catch(B){var Z=new _.xN("PlayerProxy error when creating global callback",{error:B.message,event:z,playerId:M.playerId,data:R,originalStack:B.stack,componentStack:B.componentStack});Z.level="WARNING";throw Z;}};
if(A0V(M,"web_player_publish_events_immediately"))D();else{var N=setTimeout(function(){D();_.gu.remove(M.nkR,String(N))},0);
_.gu.add(M.nkR,String(N),!0)}};
return M.qY[z]=J};
N6.prototype.getPlayerType=function(){return this.e5w||(this.getPlayerElement()?"html5":null)};
N6.prototype.getLastError=function(){return this.lastError};
var LM$=function(M){M.cancel();KM$(M);M.e5w=null;M.config&&(M.config.loaded=!1);var z=M.getPlayerElement();z&&(EdS(M)||!CRS(M)?M.nM=z:(z&&z.destroy&&z.destroy(),M.nM=null));M.targetElement&&_.yD(M.targetElement)};
N6.prototype.cancel=function(){this.hpr&&_.A$b(V$V(this),this.hpr);clearTimeout(this.iOy);this.nvO=!1};
N6.prototype.disposeInternal=function(){LM$(this);if(this.nM&&this.config&&this.nM.destroy)try{this.nM.destroy()}catch(z){var M=new _.xN("PlayerProxy error during disposal",{error:z});M.level="ERROR";throw M;}this.xMy=null;for(M in this.qY)this.qY.hasOwnProperty(M)&&delete this.qY[M];this.cXl=this.config=this.api=null;delete this.targetElement;delete this.sh;_.wS.prototype.disposeInternal.call(this)};
var CRS=function(M){var z,J;M=(z=M.config)==null?void 0:(J=z.args)==null?void 0:J.fflags;return!!M&&M.indexOf("player_destroy_old_version=true")!==-1},V$V=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.jsUrl:(M=M.config.assets)?M.js:""},i1S=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.cssUrl:(M=M.config.assets)?M.css:""},A0V=function(M,z){if(M.webPlayerContextConfig)var J=M.webPlayerContextConfig.serializedExperimentFlags;
else{var R;if((R=M.config)==null?0:R.args)J=M.config.args.fflags}return(J||"").split("&").includes(z+"=true")},WMu=function(M){for(var z={},J=_.S(Object.keys(M)),R=J.next();!R.done;R=J.next()){R=R.value;
var D=M[R];z[R]=typeof D==="object"?_.gu.clone(D):D}return z};var N18={},Ddw="player_uid_"+(Math.random()*1E9>>>0);var JX=function(M,z,J,R,D,N){z=z===void 0?document.createElement("div"):z;this.webPlayerContextConfig=M;this.container=z;this.commandResolver=J;this.apiResolver=Z8c();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Iz;R||N?zoa(this):J7B(this);this.pendingPlayerResponse=R;this.pendingWatchNextResponse=D;this.pendingPlayerVars=N;Ro$(this)};
JX.prototype.loadVideoWithPlayerResponse=function(M,z,J){this.loadVideo(M,z,J)};
JX.prototype.loadVideoWithPlayerVars=function(M){return this.loadVideo(void 0,void 0,M)};
JX.prototype.destroy=function(M){if(M=_.DU(document,M))M=Ddw+"_"+_.fp(M),(M=N18[M])&&M.dispose()};
var N1t=function(M,z){var J;_.k(function(R){if(R.nextAddress==1)return M.pendingWatchNextResponse=z,M.synchronousApi?(J=M.synchronousApi,R.jumpTo(2)):R.yield(M.api,3);R.nextAddress!=2&&(J=R.yieldResult);if(!Dd$(M,J))return R.return();M.pendingWatchNextResponse&&(J.updateVideoData({raw_watch_next_response:M.pendingWatchNextResponse}),M.pendingWatchNextResponse=void 0);_.UI(R)})},Dd$=function(M,z){var J;
if(!(z==null?0:(J=z.isReady)==null?0:J.call(z))){var R;_.yA(new _.xN("playerApi is falsey",{synchronousApi:M.synchronousApi,apiResolved:M.apiResolver.resolved,playerApiUndefined:z===void 0,playerApiNull:z===null,playerApiReady:(z==null?void 0:(R=z.isReady)==null?void 0:R.call(z))===!0,playerApiMethods:z?Object.keys(z):[]}));return!1}return!0},PgJ=function(M,z){if(typeof M[z]==="function")return M[z]()},S9t=function(M){var z=window,J,R=(J=z.ytplayer)==null?void 0:J.bootstrapPlayerContainer;
if((J=R==null?void 0:R.firstElementChild)&&_.Ee(J,"html5-video-player")){var D,N,Z=(D=z.ytplayer)==null?void 0:(N=D.bootstrapWebPlayerContextConfig)==null?void 0:N.contextId;D=M.webPlayerContextConfig.contextId;if(Z&&Z===D){R!==M.container&&(R=!1,PgJ(J,"getPlayerState")===2&&(R=!0),M.container.appendChild(J),R||PgJ(J,"playVideo"));var B;if((B=z.ytplayer)==null?0:B.bootstrapPlayerResponse)M.bootstrapPlayerResponse=z.ytplayer.bootstrapPlayerResponse}}},Ro$=function(M){var z,J,R,D,N;
_.k(function(Z){if(Z.nextAddress==1)return M.pageReadyOrDataAvailable?Z.jumpTo(2):Z.yield(M.pageReadyOrDataAvailableResolver.promise,2);if(Z.nextAddress!=4)return!_.U("kevlar_player_unified_player_loading")||A0H()&&CRe()?Z.jumpTo(4):Z.yield(J7b(),4);S9t(M);if(M.pendingPlayerResponse||M.pendingPlayerVars)z=Row(M.pendingPlayerResponse,M.pendingWatchNextResponse,M.pendingPlayerVars),M.pendingPlayerResponse&&M.pendingPlayerResponse===M.bootstrapPlayerResponse&&(z.loaded=!0),M.bootstrapPlayerResponse=
void 0;J=S98(M.container,z,M.webPlayerContextConfig);((R=z)==null?0:R.loaded)&&M.pendingWatchNextResponse?(N1t(M,M.pendingWatchNextResponse),M.pendingPlayerResponse=void 0,M.pendingPlayerVars=void 0):Z8V(M);D=function(B){J.removeEventListener("onReady",D);M.synchronousApi=B;M.apiResolver.resolve(B)};
J.addEventListener("onReady",D);M.commandResolver!==void 0&&(N=M.commandResolver,J.addEventListener("innertubeCommand",function(B){N(B)}));
_.UI(Z)})};
JX.prototype.loadVideo=function(M,z,J){var R=this,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){if(v.nextAddress==1)return R.pendingPlayerResponse=M,R.pendingWatchNextResponse=z,R.pendingPlayerVars=J,zoa(R),R.synchronousApi?(D=R.synchronousApi,v.jumpTo(2)):v.yield(R.api,3);v.nextAddress!=2&&(D=v.yieldResult);if(!Dd$(R,D))return v.return(new Promise(function(){}));
Z=new Promise(function(x){N=x});
B=function(){var x=D.getPlayerResponse();x&&(D.removeEventListener("onVideoDataChange",B),N(x))};
D.addEventListener("onVideoDataChange",B);if(R.pendingPlayerResponse||R.pendingPlayerVars)R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse?(N(R.pendingPlayerResponse),R.pendingWatchNextResponse&&N1t(R,R.pendingWatchNextResponse)):(O=Row(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),(Q=(X=R.pendingPlayerResponse)==null?void 0:(l=X.playerConfig)==null?void 0:(e=l.playbackStartConfig)==null?void 0:e.startPaused)?D.cueVideoByPlayerVars(O.args):D.loadVideoByPlayerVars(O.args)),
Z8V(R),R.bootstrapPlayerResponse=void 0;return v.return(Z)})};
var J7B=function(M){if(document.readyState==="complete"||document.readyState==="interactive")zoa(M);else{var z=function(){document.removeEventListener("DOMContentLoaded",z);zoa(M)};
document.addEventListener("DOMContentLoaded",z)}},zoa=function(M){M.pageReadyOrDataAvailable=!0;
M.pageReadyOrDataAvailableResolver.resolve()},Z8V=function(M){M.pendingPlayerResponse=void 0;
M.pendingWatchNextResponse=void 0;M.pendingPlayerVars=void 0};
_.rX.Object.defineProperties(JX.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Rj=function(M){KC.call(this,M===void 0?"document_active":M);var z=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(J){z.transition("document_disposed",{event:J})});
window.addEventListener("beforeunload",function(J){z.transition("document_disposed_preventable",{event:J})});
window.addEventListener("unload",function(J){z.transition("document_disposed",{event:J});z.hasRun=new Map})};
_.w(Rj,KC);
Rj.prototype.runPreventableDispose=function(M,z){if(!this.hasRun.get("document_disposed_preventable")){M(z==null?void 0:z.event);var J,R;if((z==null?0:(J=z.event)==null?0:J.defaultPrevented)||(z==null?0:(R=z.event)==null?0:R.returnValue)){z.event.returnValue||(z.event.returnValue=!0);z.event.defaultPrevented||z.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Rj.prototype.runDispose=function(M,z){this.hasRun.get("document_disposed")?this.transition("document_active"):(M(z==null?void 0:z.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Rj.prototype.runFlush=function(M,z){M(z==null?void 0:z.event);this.transition("document_active")};
Rj.prototype.runActive=function(){};var DX=function(M){KC.call(this,M===void 0?"document_visibility_unknown":M);var z=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(J){document.visibilityState==="visible"?z.transition("document_visible",{event:J}):z.transition("document_hidden",
{event:J})});
_.U("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(J){z.transition("document_backgrounded",{event:J})}),window.addEventListener("focus",function(J){z.transition("document_foregrounded",{event:J})}))};
_.w(DX,KC);DX.prototype.runVisible=function(M,z){M(z==null?void 0:z.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
DX.prototype.runHidden=function(M,z){M(z==null?void 0:z.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
DX.prototype.runBackgrounded=function(M,z){M(z==null?void 0:z.event)};
DX.prototype.runForegrounded=function(M,z){M(z==null?void 0:z.event)};var Nm=function(){this.teardownLifecycle=new Rj;this.visibilityLifecycle=new DX};
Nm.prototype.install=function(){var M=_.H4.apply(0,arguments),z=this;M.forEach(function(J){z.teardownLifecycle.install(J)});
M.forEach(function(J){z.visibilityLifecycle.install(J)})};var PH=function(){Nm.call(this);var M={};this.install((M.document_disposed={callback:this.abortSlisAndFlush},M));_.U("combine_ve_grafts")&&(M={},this.install((M.document_disposed={callback:this.flushInteractionLoggingAttachVes},M)));M={};this.install((M.flush_logs={callback:this.logFinalPayload},M));_.U("web_log_cfg_cee_ks")||_.x4(_.no,kJB)};
_.w(PH,Nm);var kJb=function(){PH.loggingInstance||(PH.loggingInstance=new PH);return PH.loggingInstance};
PH.prototype.logFinalPayload=function(){if(_.U("web_fp_via_jspb")){var M=new Zuv,z=_.y5();z&&_.G$(M,1,z);z=_.U("jspb_sparse_encoded_pivot")?new wP([{}]):new wP;_.Xq(z,380,ki$,M);K7b("finalPayload",z);_.U("web_fp_via_jspb_and_json")&&_.gP("finalPayload",{csn:_.y5()})}else _.gP("finalPayload",{csn:_.y5()})};
PH.prototype.abortSlisAndFlush=function(){csg(iU);CM!=null&&CM.flush()};
PH.prototype.flushInteractionLoggingAttachVes=function(){zlg(_.Gm())};
var kJB=function(){var M=_.HW("CLIENT_EXPERIMENT_EVENTS");if(M){var z=Aep();M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,z(J)&&_.gP("genericClientExperimentEvent",{eventType:J});delete _.hg.CLIENT_EXPERIMENT_EVENTS}};var B1p={};
B1p.YtPlayerBehavior=[_.Mm.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var M=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Iz;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;B1o(function(){M.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.HN(this,"pan-down"),_.U("kevlar_pinch_fullscreen")&&_.nZ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.U("kevlar_pinch_fullscreen")&&_.nZ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(M,z,J){var R=this;Pn(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Pn(!1,"MainAppPlayer already created.");else{var D=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.SN(this.hostElement).querySelector("#container");this.mainAppPlayer_=new JX(this.getWebPlayerContextConfig_(),D,function(N){return _.e5(N,R.hostElement)},M,z,J);
this.mainAppPlayer_.api.then(function(N){R.player_=N;R.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zda.resolve(N)})}},
loadVideoWithPlayerResponse:function(M,z){var J=this;if(this.useUnifiedPlayer_()){var R=this.watchNextData,D,N=(D=M.videoDetails)==null?void 0:D.videoId,Z,B,O;(D=(Z=this.watchNextData)==null?void 0:(B=Z.currentVideoEndpoint)==null?void 0:(O=B.watchEndpoint)==null?void 0:O.videoId)&&N!=D&&(R=void 0,_.U("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(M,R,z):this.createMainAppPlayer_(M,R,z);this.mainAppPlayer_.api.then(function(){_.Pv(J.hostElement,
"yt-player-updated")})}else this.update(V$H(M,z))},
loadVideoWithPlayerVars:function(M){var z=this;this.useUnifiedPlayer_()?(_.U("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(M):this.createMainAppPlayer_(void 0,void 0,M),this.mainAppPlayer_.api.then(function(){_.Pv(z.hostElement,"yt-player-updated")})):this.update({args:M})},
update:function(M){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(M);var J=DPc(M.args);J&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==J&&Object.assign(M.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(M).then(function(R){_.Pv(z.hostElement,"yt-player-updated",_.U("kevlar_player_updated_obsolete_player_killswitch")?
R:void 0)})}_.hL(new _.xN("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.getPlayerPromise(),2);J=R.yieldResult;if(!J)throw Error("uh");M&&z.updatePlayerPlaylist_(M);_.UI(R)})},
acquireApi_:function(M){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return _.no.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Pn(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(J){z.shouldAutoplay_(M)?J.loadVideoByPlayerVars(M.args):J.cueVideoByPlayerVars(M.args)})):this.initPlayerPromise_=this.initPlayerContainer_(M),this.initPlayerPromise_},
initPlayerContainer_:function(M){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return Pn(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.yA(Error("vh")),Pn(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.SN(this.hostElement).querySelector("#container"),J7b().then(function(){var J=z.initPlayer_(M);z.playerResolver_.resolve(J);
return J})},
onPlayerReady_:function(M,z){this.useUnifiedPlayer_()?Pn(!1,"Invalid method call in kevlar_unified_player."):(M.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&zda.resolve(M),z(M))},
maybeCallApiMethodOnElement_:function(M,z){if(typeof M[z]==="function")return M[z]()},
maybeAdoptBootstrapPlayer_:function(){var M=window,z,J=(z=M.ytplayer)==null?void 0:z.bootstrapPlayerContainer;if((z=J==null?void 0:J.firstElementChild)&&z.classList.contains("html5-video-player")){var R,D,N=(R=M.ytplayer)==null?void 0:(D=R.bootstrapWebPlayerContextConfig)==null?void 0:D.contextId;R=this.getWebPlayerContextConfig_().contextId;if(N&&N===R){J!==this.playerContainer_&&(J=!1,this.maybeCallApiMethodOnElement_(z,"getPlayerState")===2&&(J=!0),this.playerContainer_.appendChild(z),J||this.maybeCallApiMethodOnElement_(z,
"playVideo"));var Z;if((Z=M.ytplayer)==null?0:Z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=M.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(M){var z=this;if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(J){z.maybeAdoptBootstrapPlayer_();var R=M?Ede(M):void 0;R&&R==z.bootstrapPlayerResponse_&&(M.loaded=!0);R=z.playerContainer_;var D=z.getWebPlayerContextConfig_();R=S98(R,M,D);z.player_=R;z.onPlayerReadyEvent_=z.onPlayerReady_.bind(z,z.player_,J);z.player_.addEventListener("onReady",z.onPlayerReadyEvent_);z.player_.addEventListener("innertubeCommand",
z.onPlayerInnerTubeCommand_.bind(z));_.U("enable_web_shorts_captions_language_command")&&z.player_.addEventListener("captionschanged",z.storePlayerCaptionLanguage_.bind(z))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(M){M.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(M){M.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var M=_.JF().resolve(_.M6).getCurrentPage();M&&M.getScrollTop()<=0?_.HN(this,"pan-down"):_.HN(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()||M.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()&&M.toggleFullscreen()})},
updatePlayerPlaylist_:function(M){var z=this,J,R,D;return _.k(function(N){if(N.nextAddress==1)return J=_.JF().resolve(_.zw(_.aV)),R=!!(J&&J.playlistComponent&&J.playlistComponent.loopOn),N.yield(z.getPlayerPromise(),2);var Z=D=N.yieldResult,B=Z.updatePlaylist,O=[];if(_.U("kevlar_player_playlist_use_local_index")){var X,l;var e=(l=(X=M.localCurrentIndex)!=null?X:M.currentIndex)!=null?l:0}else{var Q;e=(Q=M.currentIndex)!=null?Q:0}if(M.contents)for(X=0;X<M.contents.length;X++)if((l=M.contents[X])&&l.playlistPanelVideoRenderer)if(rs8(l)){l=
l.playlistPanelVideoRenderer;Q="";l.shortBylineText&&(Q=_.CD(l.shortBylineText));var v="";l.title?v=_.CD(l.title):l.unplayableText&&(v=_.CD(l.unplayableText));O.push({author:Q,title:v,encrypted_id:l.videoId})}else X<e&&--e;B.call(Z,{index:e,list:M.playlistId?M.playlistId:"",loop:R,playlist_title:M.title,playlist_length:O.length,video:O,fetch:0,external_list:"1",title:M.title?M.title:"",playlist_author:M.ownerName?_.CD(M.ownerName):void 0});_.UI(N)})},
focusOnPlayer:function(){_.C4(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var M=this.playerContainer_.querySelector(".html5-video-player");M&&(_.S0(_.JF().resolve(_.pn)),M.focus())}})},
preparePlayer:function(){var M=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(z){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")z();else{var J=function(){document.removeEventListener("DOMContentLoaded",J);z()};
document.addEventListener("DOMContentLoaded",J)}})).then(function(){return J7b()}).then(function(){M.initPlayerPromise_||M.preparePlayerJobId_||(M.preparePlayerJobId_=_.x4(_.no,function(){M.initPlayerPromise_||(M.initPlayerPromise_=M.initPlayerContainer_())}))}):_.hL(new _.xN("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(M){this.useUnifiedPlayer_()?Pn(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(M)||(M.args.autoplay="0")},
shouldAutoplay_:function(M){if(this.useUnifiedPlayer_())Pn(!1,"Invalid method call in kevlar_unified_player.");else{var z=this.get("args.el",M);return z&&z!="detailpage"&&this.isMiniplayerActive_()||z&&(z=="sponsorshipsoffer"||z=="handlesclaiming")&&this.get("args.autoplay",M)=="0"?!1:(M=Ede(M))&&this.get("playerConfig.playbackStartConfig.startPaused",M)?!1:!0}},
isMiniplayerActive_:function(){return _.JF().resolve(_.q5).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var M=this.getPlayer();if(M){var z=M.getPlayerState();_.U("kevlar_player_check_ad_state_on_stop")&&(z=M.getPlayerState(M.getPresentingPlayerType()));z!=5&&M.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(M,z,J){J=J===void 0?!1:J;var R=this,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return z||(z=R.hostElement),D=R.useUnifiedPlayer_()?!!R.mainAppPlayer_:!!R.initPlayerPromise_,D?O.yield(R.getPlayerPromise(),2):(J?M.insertBefore(z,M.firstChild):M.appendChild(z),O.return());N=O.yieldResult;Z=N.getPlayerState(N.getPresentingPlayerType());B=!1;if(Z==-1||Z==1||Z==3)B=!0;J?M.insertBefore(z,M.firstChild):M.appendChild(z);B&&N.playVideo();N.setSize(NaN,NaN);_.UI(O)})},
watchNextDataChanged_:function(M){var z=this;M&&(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&N1t(this.mainAppPlayer_,M):this.getPlayerPromise().then(function(J){J.updateVideoData(z.computeWatchNextPlayerVars_(M))}))},
computeWatchNextPlayerVars_:function(M){if(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch"))Pn(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:M}},
maybeSendAbandonmentPing_:function(){var M=this.getPlayer();M&&M.getPlayerState()!=5&&M.getPlayerState()!=0&&M.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var M=_.HW("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(M=Object.assign({},M),M.rootElementId=this.playerId);M.serializedExperimentIds&&M.serializedExperimentFlags||_.yA(Error("wh"));return M},
hasWebPlayerContextConfig_:function(){return!!_.HW("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(M){this.useUnifiedPlayer_()?Pn(!1,"Invalid method call in kevlar_unified_player."):_.e5(M,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(M){var z=_.JF().resolve(_.pZ);M=M==null?void 0:M.getOption("captions","track");var J=_.Tr("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(M){var R,D=(R=_.U3(_.$n,J)())==null?void 0:R.value,N;R=typeof(M==null?void 0:M.translationLanguage)==="object"&&((N=M.translationLanguage)==null?void 0:N.languageName)||M.displayName||"";D!==R&&z.store.dispatch(_.pf("stringEntity",J,{key:J,value:R.toString()}))}else z.store.dispatch(_.pf("stringEntity",
J,{key:J,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var M=_.U("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.U("kevlar_unified_player")||M}}];var O82={};O82.YtPlaylistPanelBehavior=[_.f.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(M){M=M.detail;if(M.actions.loop!=void 0||M.actions["yt-icons:loop"]!=void 0)this.loopOn=M.actions.loop||M.actions["yt-icons:loop"];if(M.actions.shuffle!=void 0||M.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=M.actions.shuffle||M.actions["yt-icons:shuffle"]},
setMenuData_:function(M){if(!M||!M.playlistButtons||M.isInfinite)return null;for(var z=M.playlistButtons.menuRenderer.topLevelButtons,J=z.length,R=0;R<J;R++)if(z[R].toggleButtonRenderer){var D=z[R].toggleButtonRenderer;D.defaultIcon.iconType=="LOOP"&&this.loopOn?D.isToggled=this.loopOn:D.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(D.isToggled=this.shuffleOn)}return M.playlistButtons}}];var T1u=function(M){Sn.call(this,M,132);this.isDocument=M===document.documentElement};
_.w(T1u,Sn);T1u.prototype.calculateScrollDelta=function(M,z,J){var R=0;M<z?R=M<z-100?-48:-8:M>z+J&&(R=M>z+J+100?48:8);return R};
T1u.prototype.JSC$11306_onMouseMove=function(M){this.isDocument||(M.clientX=M.event_.pageX,M.clientY=M.event_.pageY);Sn.prototype.JSC$11306_onMouseMove.call(this,M)};var ZX=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.scrollElement=document.documentElement;M.JSC$14294_dragListGroup=null;M.dragScrollSupport=null;M.onDraggerCreated=function(z){var J=z.JSC$11302_dragger;J.scrollTarget_=M.scrollElement;z=z.draggerEl;J&&z.menuOpened&&J.setEnabled(!1)};
M.onDragStart=function(z){var J=z.draggerEl;z=z.currDragItem;var R=Object.assign({},z==null?void 0:z.data);R.trackingParams=void 0;J.data=R;J.style.position="absolute";J.style.width=(z==null?void 0:z.clientWidth)+"px";J.style.zIndex="2030";J.onDrag&&J.onDrag();_.U("web_owner_document_fallback_killswitch")?(z=document.querySelector("ytd-app"))&&_.SN(z).appendChild(J):(z=_.yW(J),(R=z.querySelector("ytd-app"))?_.SN(R).appendChild(J):z.body.appendChild(J));M.dragScrollSupport=new T1u(M.scrollElement);
M.dragScrollSupport.horizontalScrolling_=!1;J=M.dragScrollSupport;J.constrainScroll_=!!J.margin_&&!1};
M.onDrop=function(z){M.handleDrop(z);M.dragScrollSupport&&(_.bv(M.dragScrollSupport),M.dragScrollSupport=null)};
M.onReorderableScroll=function(){if(M.JSC$14294_dragListGroup){var z=M.JSC$14294_dragListGroup;JJV(z,z.currDragItem_)}};
return M};
_.w(ZX,_.vU);ZX.prototype.detached=function(){_.I4$(this)};
_.I4$=function(M){M.JSC$14294_dragListGroup&&(_.tQ(M.JSC$14294_dragListGroup,fSV,M.onDragStart),_.tQ(M.JSC$14294_dragListGroup,C72,M.onDragStart),M.JSC$14294_dragListGroup.dispose(),M.JSC$14294_dragListGroup=null);M.dragScrollSupport&&(_.bv(M.dragScrollSupport),M.dragScrollSupport=null);M.scrollElement.removeEventListener("scroll",M.onReorderableScroll)};
_.oMQ=function(M,z,J,R){R=R===void 0?"":R;_.I4$(M);J&&(M.scrollElement=J);M.JSC$14294_dragListGroup=new V7;M.JSC$14294_dragListGroup.hysteresisDistance_=2;r9$(M.JSC$14294_dragListGroup,z);M.JSC$14294_dragListGroup.draggerElClasses_=o3("dragging").split(" ");R&&MNB(M.JSC$14294_dragListGroup,function(D){var N=D||document,Z=null;N.getElementsByClassName?Z=N.getElementsByClassName(R)[0]:Z=h2$("*",R,D);return Z||D});
_.YS(M.JSC$14294_dragListGroup,Ve$,M.onDraggerCreated);_.YS(M.JSC$14294_dragListGroup,fSV,M.onDragStart);_.YS(M.JSC$14294_dragListGroup,C72,M.onDrop);M.JSC$14294_dragListGroup.init();M.scrollElement.addEventListener("scroll",M.onReorderableScroll,{passive:!0})};
ZX.prototype.handleDrop=function(){};
_.rX.Object.defineProperties(ZX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.u([_.Y({value:100}),_.W("design:type",Number)],ZX.prototype,"scrollMargin",void 0);_.u([_.Gp()],ZX);_.X$p=[ZX.prototype];_.kk={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(M,z,J){var R=this.getClickTarget_(z);if(R&&this.isClickAllowed_(R)){z.preventDefault();M=(0,_.gu.unsafeClone)(M);var D=this.getContainerBoundingRect();z=this.getRelativeClickXy_(z,D);this.expandEndpointUrlMacros_(M,{NX:z[0],NY:z[1],NB:R.code});J&&this.truncateWebCommendMetadataUrl_(M);_.Pv(this.hostElement,"yt-navigate",{endpoint:M})}},
getClickTarget_:function(M){if(!this.clickTargetMap)return null;M=_.CX(M)||[];M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;if(z===_.SN(this.hostElement).querySelector("#menu"))break;if(z=this.clickTargetMap.get(z.id))return z}return null},
getRelativeClickXy_:function(M,z){var J=M.detail.x,R=M.detail.y;_.U("use_on_click_for_desktop_display_ad")&&M.clientX!=null&&M.clientY!=null&&(J=M.clientX,R=M.clientY);M=Math.round(J-z.left);z=Math.round(R-z.top);return M<0||z<0?[null,null]:[M,z]},
getContainerBoundingRect:function(){return _.SN(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(M,z){for(var J=_.S(M.loggingUrls||[]),R=J.next();!R.done;R=J.next())R=R.value,R.baseUrl&&(R.baseUrl=Cmb(R.baseUrl,z));M.urlEndpoint&&M.urlEndpoint.url&&(M.urlEndpoint.url=Cmb(M.urlEndpoint.url,z));M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url&&(M.commandMetadata.webCommandMetadata.url=Cmb(M.commandMetadata.webCommandMetadata.url,z))},
truncateWebCommendMetadataUrl_:function(M){if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url){var z=M.commandMetadata.webCommandMetadata.url,J=z.indexOf("&pp=");if(J>0){var R=z.indexOf("&",J+1);M.commandMetadata.webCommandMetadata.url=R>J&&R<z.length?z.slice(0,J)+z.slice(R):z.slice(0,J)}}},
configureClickTargets:function(M,z,J){this.containerId=M;this.clickTargetMap=new Map;M=_.S(z);for(z=M.next();!z.done;z=M.next())if(z=z.value,z.location){var R=J.get(z.location);R&&(_.kz(_.SN(this.hostElement).querySelector("#"+R),"yt-simple-endpoint",this.isClickAllowed_(z)),this.clickTargetMap.set(R,z))}},
isClickAllowed_:function(M){return M.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.BH={};
_.BH.YtLazyListBehavior=[_.Pm.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var M=(this.constructor.generatedFrom||this).observers;M||(M=[]);M.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
M}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var M=this.renderElementsOutsideVisibleArea_;M&&(T9$(M,4),M.processSignal())},
deepLazyListObserver_:function(M){var z=this;if(M){var J=M.value||[];if(this.itemsPath==M.path){var R=this.nonDeferredItemCount;M=0;R>-1&&J.length>R&&(M=_.HW("REMAINING_DOVA_DEFERRED_CHUNKS",-1));M>0?(R>0&&(R=J.slice(0,R),this.setInitialItemsOnDataChanged(R)),(R=this.renderElementsOutsideVisibleArea_)?R.cancel():(R=this.renderElementsOutsideVisibleArea_=new _.ZJ(2,"eocs"),_.afp(window,"scroll",function(){return z.renderDeferredElements()})),_.kK(R,function(){z.setInitialItemsOnDataChanged(J)}),_.yU("REMAINING_DOVA_DEFERRED_CHUNKS",
M-1)):this.setInitialItemsOnDataChanged(J)}else if(this.itemsPath+".splices"==M.path)this.onItemsUpdated_(J);
else R="shownItems"+M.path.substr(this.itemsPath.length),this.useSignals&&R==="shownItems.length"||this.notifyPath(R,M.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(M){M&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(M),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(M){M=M.indexSplices;for(var z=0,J=M.length;z<J;z++){var R=M[z];if(R.index<this.shownCount&&(R.removed&&this.splice("shownItems",R.index,R.removed.length),R.addedCount)){var D=R.object.slice(R.index,R.index+R.addedCount);R=["shownItems",R.index,0];R.push.apply(R,D);this.splice.apply(this,R)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(M){this.cancelPendingTasks_();M||(M=[]);this.items_=M;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.cW("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.C4(this,this.tryRenderChunk_)))},
fillRange_:function(M,z){this.canShowMore&&this.items_&&(M=this.items_.slice(M,z),M.unshift("shownItems"),this.push.apply(this,M),this.shownCount=z,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var M=this;this.canShowMore&&_.Vc(this,"renderChunk",function(){M.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.cW("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.mn(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var M=this.renderElementsOutsideVisibleArea_;M&&(M.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var M=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(M-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=M;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(M){return Math.ceil(1E3/M)},
onCanShowMoreUpdated_:function(M){this.data&&this.items_!==null&&(M?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(M){!this.shouldUseTaskManager()&&this.data&&(!M&&this.canShowMore?(_.s8R(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):M&&this.partiallyRenderedItems_.has(this.items_)&&(_.U("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Ij;_.OS={};
Ij=function(){var M=_.vU.apply(this,arguments)||this;M.atStart=!0;M.atEnd=!0;M.startIndex=0;M.endIndex=0;M.scrollCount=0;M.initialStartIndex=0;M.disableScrollEventListener=!1;M.useFloorScrolling=!1;M.isSearch=!1;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.disableWheelScroll=!1;M.centerListItems=!1;M.offset=0;M.minComponentWidth=0;M.marginWidthRight=0;M.marginWidthLeft=0;M.setButtonsStateRequested=!1;M.itemsVisibilityObserver=null;M.fullyVisibleItemsIndices=[];M.JSC$14305_onWheelScroll=function(z){if(M.isSearch&&
!M.disableWheelScroll&&_.U("desktop_enable_dmpanel_wheel_scroll")){var J=z.shiftKey?Math.abs(z.deltaY)>Math.abs(z.deltaX)?z.deltaY:z.deltaX:z.deltaX;J!==0&&(z.preventDefault(),M.ytLazyListBehavior.fillRemainingListItems(),M.offset+=J,TW(M),M.reposition_())}};
M.onPointerDown=function(z){l4V(M)&&(M.dragMouseStart=z.clientX,M.dragOffsetStart=M.offset,M.dragging=!0)};
M.onPointerMove=function(z){l4V(M)&&M.dragging&&(M.ytLazyListBehavior.fillRemainingListItems(),M.offset=M.dragOffsetStart-(z.clientX-M.dragMouseStart),TW(M),M.reposition_())};
M.onPointerUp=function(){l4V(M)&&(M.dragging=!1)};
return M};
_.w(Ij,_.vU);var eoV=function(M){var z=_.SN(M.hostElement).querySelector("#items").children;if(!z)return 0;var J=0;M=_.S(M.fullyVisibleItemsIndices);for(var R=M.next();!R.done;R=M.next())J+=z[R.value].clientWidth;return J},l4V=function(M){return M.isSearch&&_.U("desktop_enable_dmpanel_click_drag_scroll")};
Ij.prototype.created=function(){this.cachedViewportWidth=_.HW("initialInnerWidth")||window.innerWidth;this.JSC$14305_cachedViewportHeight=_.HW("initialInnerHeight")||window.innerHeight;_.HW("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.yU("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Ij.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Qtt(this)};
Ij.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var M;(M=this.itemsVisibilityObserver)==null||M.disconnect();this.itemsVisibilityObserver=null;var z;(z=this.itemsObserver)==null||z.disconnect()};
var Qtt=function(M){var z=_.SN(M.hostElement).querySelector("#scroll-container");if(z){if(!M.itemsVisibilityObserver){var J=window.getComputedStyle(z).marginRight;M.itemsVisibilityObserver=new IntersectionObserver(function(R){Udk(M,R)},{root:z,
rootMargin:J,threshold:.98})}if(z=_.SN(M.hostElement).querySelector("#items"))M.itemsObserver=new ssk(z,function(R){vM$(M,R)})}},vM$=function(M,z){GJB(M)&&(Array.from(z.addedNodes).filter(function(J){return J.nodeType===Node.ELEMENT_NODE}).forEach(function(J){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.observe(J)}),Array.from(z.removedNodes).filter(function(J){return J.nodeType===Node.ELEMENT_NODE}).forEach(function(J){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.unobserve(J)}))},
Udk=function(M,z){var J=new Set(M.fullyVisibleItemsIndices);
z=_.S(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;var D=R.target.parentElement;D?(D=Array.from(D.children).indexOf(R.target),R.isIntersecting?J.add(D):J.has(D)&&J.delete(D)):_.yA(new _.xN("Parent element not found",R.target.nodeName))}M.fullyVisibleItemsIndices=Array.from(J).sort(function(N,Z){return N-Z});
J.size===0?_.yA(new _.xN("No visible entries in horizontal list")):(M.startIndex=M.fullyVisibleItemsIndices[0],M.endIndex=M.fullyVisibleItemsIndices[M.fullyVisibleItemsIndices.length-1])},GJB=function(M){M.data?M=(M=M.data)&&M.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===M.itemSizeConstraint:!1:M=!1;
return M};
_.P=Ij.prototype;_.P.addScrollEventListeners=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container");M.style.touchAction="pan-y";M.addEventListener("wheel",this.JSC$14305_onWheelScroll);M.addEventListener("pointerdown",this.onPointerDown);M.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.P.removeScrollEventListeners=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.JSC$14305_onWheelScroll);M.removeEventListener("pointerdown",this.onPointerDown);M.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.P.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.C4(this,this.setStartIndex,[this.initialStartIndex])};
_.P.reposition_=function(){var M=_.HW("HTML_DIR")=="rtl"?"":"-",z=_.SN(this.hostElement).querySelector("#items");z&&(z.style.transform="translateX("+M+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.P.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.C4(this,this.setButtonsState_))};
_.P.setButtonsState_=function(){this.setButtonsStateRequested=!1;var M=_.SN(this.hostElement).querySelector("#items").firstElementChild;if(M){this.minComponentWidth||(this.minComponentWidth=w$t(this,M));M=_.SN(this.hostElement).querySelector("#scroll-container").clientWidth;var z=_.SN(this.hostElement).querySelector("#items");z=_.U("kevlar_horizontal_list_scroll_width_killswitch")?z.clientWidth:z.scrollWidth;var J=this.get(this.ytLazyListBehavior.itemsPath,this);if(J){var R=Math.round(M/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+R,J.length)-1)}this.ytLazyListBehavior.canShowMore?z+this.minComponentWidth>=this.offset+M&&(this.atEnd=!1):this.atEnd=this.offset+M>=z-20?!0:!1;this.atStart=this.offset<=20}};
_.P.setStartIndex=function(M){if(!this.minComponentWidth){var z=_.SN(this.hostElement).querySelector("#items").firstElementChild;if(!z)return;this.minComponentWidth=w$t(this,z)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*M;TW(this);this.reposition_()};
_.P.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Q7();var M=_.SN(this.hostElement).querySelector("#scroll-container").clientWidth;_.U("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=w$t(this,_.SN(this.hostElement).querySelector("#items").firstElementChild));M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&xdQ(this);this.offset+=GJB(this)?
eoV(this):M*this.minComponentWidth;TW(this);this.reposition_();this.scrollCount++};
_.P.prevClick_=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container").clientWidth;M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=GJB(this)?eoV(this):this.minComponentWidth*this.scrollCount-1):this.offset-=GJB(this)?eoV(this):M*this.minComponentWidth;this.centerListItems&&xdQ(this);TW(this);this.reposition_()};
_.P.onIronResize_=function(){this.resizeSupportEnabled&&_.C4(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.P.onItemsTransitionEnd_=function(M){_.b7(M)===_.SN(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.P.onChildElementFocus_=function(M){M=M.target.closest("#items > *");var z=_.SN(this.hostElement).querySelector("#scroll-container");if(z.contains(M)){if(_.U("web_horizontal_list_behavior_focus_killswitch"))if(M.offsetLeft<this.offset)this.offset=Math.abs(M.offsetLeft)<M.clientWidth?0:M.offsetLeft;else if(M.offsetLeft+M.clientWidth>this.offset+z.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Q7(),this.offset=M.offsetLeft+M.clientWidth-z.clientWidth;else return;else{var J=_.SN(this.hostElement).querySelector("#items"),
R=_.HW("HTML_DIR")==="rtl",D=R?J.clientWidth-M.offsetLeft:M.offsetLeft;J=R?J.clientWidth-(M.offsetLeft+M.clientWidth):M.offsetLeft+M.clientWidth;var N=R?D>this.offset+z.clientWidth:D<this.offset,Z=R?J<this.offset:J>this.offset+z.clientWidth,B=R?N:Z;if(R?Z:N)z=R?J:D,this.offset=Math.abs(z)<M.clientWidth?0:z;else if(B)this.ytLazyListBehavior.fillRemainingListItems(),_.Q7(),this.offset=(R?D:J)-z.clientWidth;else return}TW(this);this.reposition_()}};
_.P.observeShownItems_=function(){this.reset()};
_.P.checkComponentWidthResize=function(){var M=_.SN(this.hostElement).querySelector("#items").firstElementChild;M&&(M=w$t(this,M),this.centerListItems||M!==this.minComponentWidth)&&(this.minComponentWidth=M,this.offset=M*this.scrollCount,this.centerListItems&&xdQ(this),TW(this),this.reposition_())};
var w$t=function(M,z){var J=window.getComputedStyle(z).marginRight;J=Math.floor(Number(J.replace("px","")));var R=window.getComputedStyle(z).marginLeft;R=Math.floor(Number(R.replace("px","")));M.centerListItems&&!M.marginWidthRight&&(M.marginWidthRight=J,M.marginWidthLeft=R);return M.resizeSupportEnabled?z.getBoundingClientRect().width+J:z.offsetWidth+J},TW=function(M){var z=_.SN(M.hostElement).querySelector("#scroll-container").clientWidth,J=_.SN(M.hostElement).querySelector("#items").clientWidth;
M.offset<0?M.offset=0:M.offset+z>=J&&(M.offset=J-z)},xdQ=function(M){M.offset-=(_.SN(M.hostElement).querySelector("#scroll-container").clientWidth+M.marginWidthRight-M.minComponentWidth)/2-M.marginWidthLeft};
_.rX.Object.defineProperties(Ij.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var M=_.HW("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(M==-1)M=this.JSC$14305_cachedViewportHeight,M=M>1320?5:M>1020?4:M>730?3:M>430?2:1;else if(M==0)return 0;_.yU("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",M-1);M=_.HW("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(M>-1)return M;M=this.cachedViewportWidth;M=M>1600?6:M>1400?5:M>1300?4:M>1090?5:M>870?4:M>660?3:2;_.yU("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
M);return M},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.U("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Ij.prototype.observeShownItems_=Ij.prototype.observeShownItems_;Ij.prototype.onChildElementFocus_=Ij.prototype.onChildElementFocus_;Ij.prototype.onItemsTransitionEnd_=Ij.prototype.onItemsTransitionEnd_;Ij.prototype.onIronResize_=Ij.prototype.onIronResize_;Ij.prototype.prevClick_=Ij.prototype.prevClick_;Ij.prototype.nextClick_=Ij.prototype.nextClick_;Ij.prototype.setButtonsState_=Ij.prototype.setButtonsState_;Ij.prototype.requestButtonsStateUpdate_=Ij.prototype.requestButtonsStateUpdate_;
Ij.prototype.reposition_=Ij.prototype.reposition_;Ij.prototype.reset=Ij.prototype.reset;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],Ij.prototype,"ytLazyListBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ij.prototype,"atStart",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ij.prototype,"atEnd",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"startIndex",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"endIndex",void 0);_.u([_.Y({value:6}),_.W("design:type",Number)],Ij.prototype,"initialCount",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"scrollCount",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"initialStartIndex",void 0);
_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"disableScrollEventListener",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"supportComponentResize",void 0);_.u([_.Y({value:function(){var M=this;return function(){return M.prevClick_()}}}),
_.W("design:type",Function)],Ij.prototype,"boundPrevClick",void 0);_.u([_.Y({value:function(){var M=this;return function(){return M.nextClick_()}}}),
_.W("design:type",Function)],Ij.prototype,"boundNextClick",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"useFloorScrolling",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"isSearch",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"dragging",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"dragMouseStart",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"dragOffsetStart",void 0);
_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"disableWheelScroll",void 0);_.u([_.Y(),_.W("design:type",Object)],Ij.prototype,"centerListItems",void 0);_.u([_.Xw("iron-resize"),_.la("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ij.prototype,"onIronResize_",null);_.u([_.Xw("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ij.prototype,"onItemsTransitionEnd_",null);
_.u([_.Xw("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Ij.prototype,"onChildElementFocus_",null);_.u([_.la("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ij.prototype,"observeShownItems_",null);_.u([_.Gp()],Ij);_.OS.YtdHorizontalListBehavior=[];_.OS.YtdHorizontalListBehavior.push(_.Hw,_.f.YtRendererBehavior,_.BH.YtLazyListBehavior,_.Ap.YtdGuideStateAwareBehavior,Ij.prototype);var T1Y=["APP_STATE","PI"];var tkV=_.Ca(["about:blank"]),jtB={pushState:window.history.pushState,replaceState:window.history.replaceState};var oj=function(M){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=M;this.internalPushState=M.pushState.bind(M);this.internalReplaceState=M.replaceState.bind(M)};
oj.prototype.init=function(){this.initialized=!0};
oj.prototype.pushState=function(M,z){this.initialized||this.init();this.internalPushState&&this.internalPushState(M,"",z)};
oj.prototype.replaceState=function(M,z){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(M,"",z)};
oj.prototype.getState=function(){return this.history&&this.history.state};var p$a=function(M){var z=function(){var J=M.apply(this,arguments)||this;J.boundHistoryPushState=!1;J.boundHistoryReplaceState=!1;J.debugInfo={};return J};
_.w(z,M);z.prototype.init=function(){var J=_.lm("IFRAME");_.W4(J,_.Nx(tkV));J.sandbox="allow-same-origin";J.style.display="none";this.iframe=J;document.body.appendChild(J);this.bindHistoryStateFunctions();M.prototype.init.call(this)};
z.prototype.bindHistoryStateFunctions=function(){var J=this,R=[],D;this.iframe&&((D=this.iframe.contentWindow)==null?0:D.history)&&(D=this.iframe.contentWindow.history)&&(R.push(D),Object.getPrototypeOf(D)&&R.push(Object.getPrototypeOf(D)));window.history&&R.push(window.history);D=window.history;Object.getPrototypeOf(D)&&R.push(Object.getPrototypeOf(D));R.push(jtB);D=function(Z){for(var B=null,O=0;O<R.length;O++){var X=R[O][Z];if(typeof X==="function"){B=X.bind(window.history);J.debugInfo[Z]=O;break}}return B};
if(!this.boundHistoryReplaceState){var N=D("replaceState");N&&(this.internalReplaceState=N,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(D=D("pushState"))&&(this.internalPushState=D,this.boundHistoryPushState=!0)};
return z}(oj),FsQ=function(){return p$a.call(this,window.history)||this};
_.w(FsQ,p$a);FsQ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Xy=function(M){this.browserHistory=M;this.initialized=!1};
Xy.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Xy.prototype.pushState=function(M,z){this.initialized||this.init();this.browserHistory.pushState(M,z)};
Xy.prototype.replaceState=function(M,z){this.initialized||this.init();this.browserHistory.replaceState(M,z)};
Xy.prototype.handlePopstate=function(M){return M.state};_.Y9$=function(M,z,J,R,D){this.endpoint=M;this.forward=z;this.historyEntry=J;this.JSC$30004_savedComponentState=R;this.legacyBorder=D===void 0?!1:D};var md$=function(M,z){this.rootData=M;this.scrollTop=z};var tx=new _.Nh("PAGE_REQUEST_TOKEN"),q1a=new _.Nh("FETCH_PBJ_TOKEN");_.lA=new _.Nh("EPHEMERAL_STORE_TOKEN");_.e0=function(M){this.data=Object.assign({},M);var z;(z=this.data.innertubeResponse)==null||delete z.frameworkUpdates};
_.e0.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.zU)()};
_.Dz=function(M){return Object.assign({},M.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var gMJ=function(){this.maxSize=100;this.timeToDataCache=new Map};
gMJ.prototype.get=function(M){var z=this.timeToDataCache.get(M);z&&(this.timeToDataCache.delete(M),this.timeToDataCache.set(M,z));if(z&&z.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var J=_.JF().resolve(_.lA),R=stJ(z),D=!!R;if(R){if(R.content){var N=Qw(J,R.content);D&&N?z.rootData.response=_.Dz(N):D=!1}R.player&&(N=Qw(J,R.player),D&&N?z.rootData.playerResponse=_.Dz(N):D=!1);R.reelSequence&&(J=Qw(J,R.reelSequence),D&&J?z.rootData.reelWatchSequenceResponse=
_.Dz(J):D=!1)}D||(this.timeToDataCache.delete(M),z=void 0)}return z};
gMJ.prototype.set=function(M,z){if(z.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var J=stJ(z),R=Object.assign({},z.rootData);J&&(J.content&&z.rootData.response&&(nM$(this,J.content,z.rootData.response),R.response=null),J.player&&z.rootData.playerResponse&&(nM$(this,J.player,z.rootData.playerResponse),R.playerResponse=null),J.reelSequence&&z.rootData.reelWatchSequenceResponse&&(nM$(this,J.reelSequence,z.rootData.reelWatchSequenceResponse),R.reelWatchSequenceResponse=
null));z=new md$(R,z.scrollTop)}this.timeToDataCache.has(M)?this.timeToDataCache.delete(M):this.timeToDataCache.size>=this.maxSize&&(J=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(J.value));this.maxSize!==0&&this.timeToDataCache.set(M,z)};
gMJ.prototype.clear=function(){this.timeToDataCache.clear()};
var stJ=function(M){var z=_.JF().resolve(_.zw(tx)),J;if((J=M.rootData)==null?0:J.endpoint)return z==null?void 0:DMR(z,M.rootData.endpoint);var R;_.yA(new _.xN("History snapshot response data does not contain endpoint",(R=M.rootData)==null?void 0:R.url));return null},nM$=function(M,z,J){if(M.maxSize>0){var R;
(M=(R=J.responseContext)==null?void 0:R.maxAgeSeconds)&&Number(M)>0&&(R=_.JF().resolve(_.lA),J=kC(J,M),R.put(z,new _.e0(J)))}};var hot=function(M,z,J){this.endpoint=z;this.JSC$30009_savedComponentState=J===void 0?null:J;this.entryTime=M};var Qt8=1;var US=function(M){var z=function(){var J=M.apply(this,[].concat(_.Yj(_.H4.apply(0,arguments))))||this;J.historyEntryTime=0;J.historySnapshotCache=J.createHistoryCache();return J};
_.w(z,M);z.prototype.createHistoryCache=function(){return new gMJ};
z.prototype.saveAndReplace=function(J,R,D){var N=window.location.href;var Z=Z===void 0?{}:Z;var B=(B=this.browserHistory.getState())&&B.entryTime?B.entryTime:Ud3();J=this.createNewHistoryEntry(J,Z,B);this.saveSnapshot(B,R,D);this.replaceState(J,N||window.location.href)};
z.prototype.saveAndPush=function(J,R,D,N,Z){Z=Z===void 0?{}:Z;this.saveSnapshot(this.historyEntryTime,D,N);D=this.historySnapshotCache;N=this.historyEntryTime;var B=D.timeToDataCache.keys();B=_.S(B);for(var O=B.next();!O.done;O=B.next())O=O.value,O>N&&D.timeToDataCache.delete(O);R=this.createNewHistoryEntry(R,Z);this.pushState(R,J)};
z.prototype.saveSnapshot=function(J,R,D){this.historySnapshotCache.set(J,new md$(R,D))};
z.prototype.createNewHistoryEntry=function(J,R,D){D=D===void 0?Ud3():D;return new hot(D,J,R)};
z.prototype.handlePopstate=function(J){var R=M.prototype.handlePopstate.call(this,J),D=null,N=null,Z=!1,B=null;R&&R.entryTime&&(B=this.historySnapshotCache.get(R.entryTime)||null,Z=R.entryTime>this.historyEntryTime,this.historyEntryTime=R.entryTime,D=R.endpoint,N=R.JSC$30009_savedComponentState);this.handleHistoryCacheLoad(new _.Y9$(D,Z,B,N),J);return R};
z.prototype.pushState=function(J,R){Number(J==null?void 0:J.entryTime)>=0&&(this.historyEntryTime=J.entryTime);M.prototype.pushState.call(this,J,R)};
z.prototype.replaceState=function(J,R){Number(J==null?void 0:J.entryTime)>=0&&(this.historyEntryTime=J.entryTime);M.prototype.replaceState.call(this,J,R)};
z.prototype.handleHistoryCacheLoad=function(){};
return z}(Xy),y7S=function(){var M=US.call(this,new FsQ)||this;
M.dispatchElement=null;M.entryIndex=0;return M};
_.w(y7S,US);_.P=y7S.prototype;_.P.init=function(M){M=M===void 0?!0:M;US.prototype.init.call(this);this.initialized||(M||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.P.handlePopstate=function(M){var z=null;M.state||(z="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return US.prototype.handlePopstate.call(this,M);var J=new CustomEvent("yt-history-pop",{cancelable:!0});_.S9(this.dispatchElement,"yt-history-pop",[J,{errorMsg:z}]);_.ZL(this.dispatchElement,"yt-close-all-popups-action");if(!J.defaultPrevented){J=_.JF().resolve(_.M6);z=J.getCurrentData();var R=J.getCurrentPage();J=0;R?(R=_.S9(this.dispatchElement,"yt-get-page-offset",
[R]),R.length>0&&(J=R[0])):_.yA(new _.xN("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:z?z.page:"undefined"}));z&&(z.csn=_.y5());this.saveSnapshot(this.historyEntryTime,z,J)}return US.prototype.handlePopstate.call(this,M)};
_.P.handleHistoryCacheLoad=function(M,z){M.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.S(_.ZL(this.dispatchElement,"yt-history-will-navigate",[z])).next().value||_.S9(this.dispatchElement,"yt-history-load",[z,M]))};
_.P.pushState=function(M,z){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var J=new _.xN("history.pushState is not a function",this.getDebugString());_.nc(J)}US.prototype.pushState.call(this,M,z)};
_.P.replaceState=function(M,z){if(!this.browserHistory.boundHistoryReplaceState){var J=new _.xN("history.replaceState is not a function",this.getDebugString());_.nc(J)}US.prototype.replaceState.call(this,M,z)};
_.P.saveAndPush=function(M,z,J,R,D){D=D===void 0?{}:D;J&&(J.csn=_.y5());US.prototype.saveAndPush.call(this,M,z,J,R,D)};
_.P.getDebugString=function(){var M=[];this.initialized&&M.push("i");this.browserHistory.boundHistoryReplaceState&&M.push("bhr");this.browserHistory.boundHistoryPushState&&M.push("bhs");"replaceState"in this.browserHistory.debugInfo&&M.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&M.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&M.push("ei:"+String(this.entryIndex));return M.join(",")};
_.vH=function(M,z){M.init(!0);var J=M.browserHistory.getState();M.replaceState(J,ZU(z))};
y7S.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.GW=new _.Nh("DESKTOP_HISTORY_MANAGER_TOKEN");var H8g=[10,20,30,40,50,60],w0=function(){this.currentPartitionIndex=0},c7g=function(M){Vut({mainAppWeb:_.fX(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},dd$=function(M){Vut({mainAppWeb:_.fX(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Kst=function(M){return M.currentPartitionIndex>=0&&M.currentPartitionIndex<H8g.length?H8g[M.currentPartitionIndex]:-1},$dp=function(M){return M.currentPartitionIndex>0&&M.currentPartitionIndex-1<H8g.length?H8g[M.currentPartitionIndex-1]:-1};
w0.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var M=$dp(this);M>0&&dd$(M);M=Kst(this);M>0&&c7g(M);us$(this)}};
var us$=function(M){var z=Kst(M);if(z>0){var J=$dp(M);J<0&&(J=0);M.intervalId=_.no.addJob(function(){var R=$dp(M);R>0&&dd$(R);R=Kst(M);R>0&&c7g(R);us$(M)},3,(z-J)*6E4);
M.currentPartitionIndex+=1}else M.currentPartitionIndex=-1};var q9V=function(){this.skipNextNavigation=!1},Ws$=function(M,z,J){if(!z)return!1;
if(M.skipNextNavigation)return M.skipNextNavigation=!1;if(_.G(J,_.af))return!1;var R,D,N;if((R=_.G(J,_.Gh))==null?0:(D=R.browseEndpointContextSupportedConfigs)==null?0:(N=D.browseEndpointContextMainConfig)==null?0:N.skipConfirmation)return!1;var Z;return((Z=_.G(z.commandMetadata,_.X9))==null?void 0:Z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
q9V.prototype.showConfirmationDialog=function(M,z){this.navigateParams=z;this.customConfirmationCommand?_.JF().resolve(_.Rb).resolveCommand(this.customConfirmationCommand):(z={openPopupAction:{popup:{confirmDialogRenderer:{title:_.id(_.e9("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.id(_.e9("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.id(_.e9("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.id(_.e9("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.VA.getInstance().triggerAction("yt-open-popup-action",z,M))};
q9V.prototype.cancelPendingNavigation=function(){var M;((M=this.navigateParams)==null?void 0:M.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var a4V=function(){},EM2=function(M,z,J,R,D,N,Z){J=J===void 0?{}:J;
Z=Z===void 0?{}:Z;var B=_.Y5.instance,O,X=(O=_.G(z,_.af))==null?void 0:O.url;return X?$Wc(B,X,J,window.location.href,function(l,e){Vk$(M,l,e,!1,!0,J,N,R)},function(){return!1}):Vq(B,z,J,window.location.href,xV(z),function(l,e){Vk$(M,l,e,!1,!0,J,N,R)},D,Z)},Vk$=function(M,z,J,R,D,N,Z,B){if(!M.JSC$14363_chunkHandler)if(J.page==="watch"||J.page==="learning_journey_watch")if(D||R){if(_.U("kevlar_continue_playback_without_player_response")){var O;
var X=(O=_.G(B,_.Au))==null?void 0:O.videoId}M.JSC$14363_chunkHandler=new ImB(_.J_,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:X},tempData:N},Z)}else M.JSC$14363_chunkHandler=new ZzB(_.J_);else J.page==="shorts"&&D&&!R?M.JSC$14363_chunkHandler=new T2g(_.J_,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:N},Z):M.JSC$14363_chunkHandler=new kuJ(Z);M.JSC$14363_chunkHandler.processChunk({endpoint:z,data:J});return M.JSC$14363_chunkHandler.zq.promise},
f4p=function(M,z,J,R,D){(J=_.JCQ(J))&&Vk$(M,z,J,!1,!0,R,void 0,D)};var LsQ=function(){this.pendingNavigationPromise=null};
_.P=LsQ.prototype;_.P.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.P.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.P.addEventListener=function(){throw Error("xh");};
_.P.dispatchEvent=function(){throw Error("xh");};
_.P.removeEventListener=function(){throw Error("xh");};var A7J=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],xk=function(){_.jB.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];i8a(this)};
_.w(xk,_.jB);xk.prototype.verifyUser=function(){var M=i8a(this),z=M.logout;if(!M.sessionChange)return!0;this.dispatchEvent("ytsessionchange");z&&this.dispatchEvent("ytuserinvalid");return!1};
var i8a=function(M){var z=A7J.map(function(D){var N;return(N=_.Qy.get(D))!=null?N:""}),J=z.some(function(D,N){return M.sessionCookies&&M.sessionCookies[N]!==""&&D===""}),R=z.some(function(D,N){return M.sessionCookies&&M.sessionCookies[N]!==D});
M.sessionCookies=z;return{logout:J,sessionChange:R}};
xk.prototype.clearTimeout=function(){this.scheduledJobId&&(_.no.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var tkc=new _.Nh("POSTMESSAGE_TUNNEL_TOKEN");var GJb=["/parent_tools","/file_download","/artist_roster"],Fsn=[IcS,ooJ,XYQ,e0k,lcg,TRv,Q3V,Ub$];var Cgv=new _.Nh("APP_ROOT");var tX=new _.Nh("NAVIGATION_CONFIRMATION_SERVICE");var b8t="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /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(" "),r7Q=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
j0=function(M,z){this.pendingNavigationPromise=null;this.JSC$14381_clientRoot=M;this.historyManager=z;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 a4V;this.debugString=M.is;M={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.EB(_.VA.getInstance(),M,this.JSC$14381_clientRoot)},D2u,Nk$,PKp,SJu,RK$;
_.w(j0,LsQ);j0.prototype.reload=function(){_.EA(window.location.href)};
var N5k=function(M){M.currentEndpoint&&_.G(M.currentEndpoint,_.je)?M.reload():M.currentEndpoint&&M.navigate(M.currentEndpoint,!0,void 0,{disableCache:!0})};
j0.prototype.navigate=function(M,z,J,R,D,N,Z,B){z=z===void 0?!1:z;J=J===void 0?{}:J;R=R===void 0?{}:R;var O=_.JF().resolve(tX),X;if(!Z&&Ws$(O,(X=this.currentEndpoint)!=null?X:void 0,M))return O.showConfirmationDialog(this.JSC$14381_clientRoot.parentElement,{endpoint:M,reload:z,params:J,tempData:R,requestType:D,createScreenConfig:N}),!1;var l=_.Eb();_.fN(l,"eocs")||l.parkOrScheduleJob(function(){l.processSignal("eocs")},10,"eor");
Z=xV(M);O=R.autonav==="1";X=_.y5();xk.instance||(xk.instance=new xk);var e=xk.instance.verifyUser(),Q;if(_.U("enable_dark_theme_only_on_shorts")){var v=document.documentElement.hasAttribute("dark"),x=_.gB(!0)==="USER_INTERFACE_THEME_DARK";if(Z==="shorts"){if(!v)if(_.U("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var m;_.EA((m=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:m.url,void 0,void 0,window.top)}}else{var y;_.EA(_.Lh((y=_.G(M==null?
void 0:M.commandMetadata,_.X9))==null?void 0:y.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.U("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!v){var H;_.EA(_.Lh((H=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:H.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(x!==v){var q;_.EA(_.Lh((q=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:q.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Z==="watch"){if(MdV(_.JF().resolve(_.q5),
M)&&(e||_.U("fix_miniplayer_navigation_killswitch")))return!1;_.U("block_all_player_prefetch_requests")||(Q=RsJ(_.Jx(_.m_),M,O))}else{var b,V=(b=_.G(this.currentEndpoint,_.Au))==null?void 0:b.videoId;V&&_.nN.getInstance().then(function(te){te&&te.set("yt-miniplayer-shown-video-id",V)})}Q&&(J.frags=Q.missingFragments_.join(","));
m=null;var E;y=(E=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:E.ignoreNavigation;if(!y)if(_.U("kevlar_command_url")){var L;m=(L=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?void 0:L.url}else m=_.m68(M,J);if(m&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&m==this.lastNavigationUrl)return _.sf({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Ih(uS(),"CANCELLED")}m&&(this.lastNavigationUrl=m);N0w();_.yU("IS_HOMEPAGE_COLD",
!1);_.yU("IS_RESULTS_PAGE_COLD",!1);_.yU("IS_WATCH_PAGE_COLD",!1);M.loggingUrls&&M.loggingUrls.forEach(function(te){te.baseUrl&&_.WI(te.baseUrl)});
_.stG(M,N?N.layer:0)&&_.U("kevlar_flush_logs_on_away_navigation")&&_.sB();if(Y9w(M))return!1;cC$(Z,D);if(!m)return y||_.yA(new _.xN("Can't construct url for endpoint",M)),_.Ih(uS(),"FAILURE"),!1;_.vMw();E=M&&_.G(M,_.Gh)&&_.G(M,_.Gh).browseId.startsWith("UC");J=(L=_.U("enable_dark_theme_only_on_shorts")&&Z==="shorts"?!1:_.sA()&&document.documentElement.hasAttribute("dark")!==_.mQ())?{themeRefresh:1}:{};L&&!_.vJ()&&_.gB()==="USER_INTERFACE_THEME_DARK"&&(J.theme="dark");E=L||zKt(m)&&!E&&!_.U("kevlar_disable_url_allowlist");
e||(E=!0);if(E||_.HW("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var z8;var O8=(z8=window.top)==null?void 0:z8.location.href}catch(te){var I3;O8=(I3=te)==null?void 0:I3.message}_.yA(new _.xN("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:O8}))}M=_.U("kevlar_redirect_on_window_killswitch")?window.top:window;VO(m);_.EA(_.Lh(m,J),void 0,void 0,M);_.Ih(uS(),"ABORTED");return!1}_.U("kevlar_early_popup_close")&&_.S9(this.JSC$14381_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14363_chunkHandler=void 0;var vY;O8=xV((vY=this.currentEndpoint)!=null?vY:void 0);(vY=Z==="shorts"&&O8==="shorts")||_.D0R();_.ui(ayY)("nr",void 0);O&&_.sf({webInfo:{navigationReason:"an"}});M.clickTrackingParams&&(R.itct=M.clickTrackingParams,R.csn=X);lnp(R);R.endpoint=JSON.stringify(M);_.U("enable_unknown_lact_fix_on_html5")&&(_.JF().resolve(_.pn),R.lact=_.Rf());_.gu.isEmpty(R)||_.rM(m,R);!_.U("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(N=Object.assign({},{layer:0},N,{parentLayer:3}));this.pendingNavigationPromise=N=EM2(this.pageFetcher,M,R,this.currentEndpoint,this.JSC$14381_isNetworkPromiseStale.bind(this),N,B);N=N.then(this.handleNavigateSuccess.bind(this,N,M,Q,R),this.handleNavigateFail.bind(this,N,M));_.x9().navigationFinishPromise=N;z={endpoint:M,pageType:Z,url:ZU(m),reload:!!z,noProgressBar:vY};D&&(z.type=D);this.fireEvent("yt-navigate-start",z);Q&&f4p(this.pageFetcher,M,Q,R,this.currentEndpoint);
return!0};
j0.prototype.JSC$14381_isNetworkPromiseStale=function(M){return M!=this.pendingNavigationPromise};
var JaS=function(M,z,J,R,D){var N=xV(z);z={endpoint:z,pageType:N};D&&(z.errorMessage=D);_.yA(J);z.navigationDoneMs=_.hd("nd");z.navigationErrorReason=R;M.fireEvent("yt-navigate-error",z)};
j0.prototype.handleNavigateFail=function(M,z,J){var R=void 0;J instanceof _.q9&&(R=J,FnY(J));if(this.JSC$14381_isNetworkPromiseStale(M))return _.gv(R);_.Ih(uS(),"FAILURE");JaS(this,z,J,"101");return _.gv(J)};
j0.prototype.handleNavigateSuccess=function(M,z,J,R,D){if(this.JSC$14381_isNetworkPromiseStale(M))return _.Of();this.pendingNavigationPromise=null;if(!D)return z=new _.xN("Missing data in response for navigation endpoint",z),_.gv(z);if(D.reload)return window.location.reload(!0),_.Of();J&&(M={},_.gu.extend(M,_.JCQ(J),D),D=M);var N,Z;J=(N=D)==null?void 0:(Z=N.timing)==null?void 0:Z.responseStart;J!=null&&_.hd("srt",J);_.hd("pdc");var B,O;N=(B=D)==null?void 0:(O=B.timing)==null?void 0:O.info;N!=null&&
(B=_.ui(_.L7e)(N),_.sf(B));_.Ih(uS(),"SUCCESS");RK$(this,z,D,1,R);return _.Of()};
var zKt=function(M){var z=M;_.U("kevlar_no_redirect_to_classic_2_ks")||(z=(new _.iS(M)).getPath());if(z==="/"||z==="/red")return!1;var J=!0;b8t.forEach(function(R){M.indexOf(R)===0&&(J=!1)});
r7Q.forEach(function(R){var D=R.url;_.U(R.expFlag)&&M.indexOf(D)===0&&(J=!1)});
return J};
j0.prototype.publishPageData=function(M){this.fireEvent("yt-page-data-fetched",{pageData:M})};
D2u=function(M,z,J,R,D,N){var Z=null;z.page!=="watch"&&z.page!=="learning_journey_watch"||R?z.filler||_.S9(M.JSC$14381_clientRoot,"yt-stop-old-player",[z]):Z=Vk$(M.pageFetcher,D,z,J,!1,N,void 0,M.currentEndpoint);if(Z)return Z.then(M.publishPageData.bind(M,z));M.publishPageData(z);return _.Of()};
Nk$=function(M,z,J){var R=null;if(!J)return R=new _.xN("Empty data",M.debugString,z);var D=J.response;if(!D)return R;var N={endpointType:xV(z)||"unknown"};D.responseContext?(D=D.responseContext.errors)&&(R=new _.xN("Errors in response context",M.debugString,z,D,N)):R=D.error||D.errorMetadata?new _.xN("Errors in response",M.debugString,z,D.error,D.errorMetadata,N):new _.xN("responseContext missing",M.debugString,z,Object.keys(D).sort().join(","),N);var Z,B,O,X;if(M=J==null?void 0:(Z=J.response)==null?
void 0:(B=Z.responseContext)==null?void 0:(O=B.webResponseContextExtensionData)==null?void 0:(X=O.webResponseContextDebugData)==null?void 0:X.debugErrorMessages)for(Z=0;Z<M.length;Z++);return R};
PKp=function(M){var z,J,R,D;return M==null?void 0:(z=M.response)==null?void 0:(J=z.responseContext)==null?void 0:(R=J.errors)==null?void 0:(D=R.error)==null?void 0:D["0"]};
SJu=function(M,z){var J;if(J=z.url&&!z.url.startsWith("/clip"))J=z.url,J=!_.U("webfe_parse_debug_param_in_resolveurl_service")&&M.searchDebugUrlMatcher.test(J)||cdG(J)?!0:!1;if(J)cdG(z.url)&&_.fh(window.location.href).themeRefresh?(z=_.Ms(z.url,"themeRefresh"),_.vH(M.historyManager,z)):z.url&&!l4H(z.url)&&_.vH(M.historyManager,z.url);else if(z.endpoint){var R,D,N;(J=(R=z.endpoint)==null?void 0:(D=R.commandMetadata)==null?void 0:(N=D.webCommandMetadata)==null?void 0:N.url)&&!l4H(J)&&_.vH(M.historyManager,
J);J&&z.url&&J!=z.url&&!z.url.match("playnext=1")&&new _.xN("Response url mismatch in response data",M.debugString,J,z.url)}};
_.ZJB=function(M,z,J,R,D,N,Z,B){N=N===void 0?!1:N;var O=_.JF().resolve(tX),X;if(!B&&Ws$(O,(X=M.currentEndpoint)!=null?X:void 0,z))return O.showConfirmationDialog(M.JSC$14381_clientRoot.parentElement,{endpoint:z,data:J,navigationType:R,tempData:D,isMiniplayer:N,isForwardHistoryNavigation:Z==null?void 0:Z.forward}),_.Of();M.pageFetcher.JSC$14363_chunkHandler=void 0;return RK$(M,z,J,R,D,N)};
RK$=function(M,z,J,R,D,N){N=N===void 0?!1:N;M.isMiniplayerExpansion=N;var Z=R===2;M.currentEndpoint=z;M.numNavigations++;M.numNavigations&&(Rle.navigationCount=M.numNavigations);_.yU("NUM_NAV",M.numNavigations);var B=Nk$(M,z,J);if(B)return JaS(M,z,B,"102",PKp(J)),_.gv(B);var O,X,l,e;B=J.rootVe||(J==null?void 0:(O=J.response)==null?void 0:(X=O.responseContext)==null?void 0:(l=X.webResponseContextExtensionData)==null?void 0:(e=l.ytConfigData)==null?void 0:e.rootVisualElementType);!Z&&J&&SJu(M,J);var Q,
v;O=J==null?void 0:(Q=J.response)==null?void 0:(v=Q.responseContext)==null?void 0:v.maxAgeSeconds;if(!Z&&!isNaN(O)){var x;_.U("kevlar_use_response_ttl_to_invalidate_cache")?x=(0,_.zU)()+1E3*O:_.U("kevlar_always_invalidate_cache")&&(x=0);isNaN(x)||(J.expirationTime=x)}_.Jx(_.m_).prefetchCache_.clear();Z||J.page!=="watch"||J.type!=="reduced"&&R!==1?R=D2u(M,J,Z,!!N,z,D):(M.publishPageData(J),R=_.Of());D=R.then(function(){var m=xV(z);m={endpoint:z,pageType:m,fromHistory:Z,response:J};m.navigationDoneMs=
_.hd("nd");M.fireEvent("yt-navigate-finish",m)});
J.csn&&B&&J.clientSideGrafts&&R.then(M.attachClientSideGrafts.bind(M,J,_.hu()));return D};
_.P=j0.prototype;_.P.attachClientSideGrafts=function(M,z){M.clientSideGrafts&&z&&M.clientSideGrafts.forEach(function(J){if(z&&J){var R=_.pe(J);_.U("combine_ve_grafts")?_.Gm().graftServerVe(J,z):_.qs(M.csn,z,R)}})};
_.P.handleSignalActionHistoryBack=function(){window.history.back()};
_.P.handleSignalActionCloseWindow=function(){window.close()};
_.P.handleSignalActionReloadPage=function(){this.reload()};
_.P.handleSignalActionSoftReloadPage=function(){N5k(this)};
_.P.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.P.fireEvent=function(M,z){M=new CustomEvent(M,{bubbles:!0,cancelable:!1,composed:!0,detail:z});this.dispatchEvent(M)};
_.P.addEventListener=function(M,z){this.JSC$14381_clientRoot.addEventListener(M,z)};
_.P.dispatchEvent=function(M){return this.JSC$14381_clientRoot.dispatchEvent(M)};
_.P.removeEventListener=function(M,z){this.JSC$14381_clientRoot.removeEventListener(M,z)};
j0[DW]=[Cgv,_.GW];_.WBH=new TN("browse","h8y2qb");_.alG=new TN("search","JzFVk");_.VL0=new TN("shorts","xwEKAe");_.Ew8=new TN("watchFixie","nmfa2d");_.flH=new TN("watchFlexy","CF909");_.LBp=new TN("watchGrid","Tm0L3c");_.Afw=new TN("watchLearningJourney","L3n37");var kbv;var Bk$=function(){return _.g.apply(this,arguments)||this};
_.w(Bk$,_.g);_.rX.Object.defineProperties(Bk$,{template:{configurable:!0,enumerable:!0,get:function(){if(kbv===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);kbv=M}M=kbv;return M}}});
_.u([_.p(B1p.YtPlayerBehavior),_.W("design:type",Object)],Bk$.prototype,"ytPlayerBehavior",void 0);_.u([_.c({is:"ytd-player"})],Bk$);var OJp;var Tk$;var Irt;var px=function(){var M=_.g.apply(this,arguments)||this;M.forceModernIconButton=!1;M.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return M};
_.w(px,_.g);px.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]]"}}}}}};
px.prototype.handleAccountLinkingStateChangedCommand=function(M){if(M=_.G(M,MlQ)){var z,J=(z=this.data)==null?void 0:z.providerKey;z=M.providerKey;J&&z&&J.id===z.id&&J.subject===z.subject&&(M=M.linked,M!==void 0&&(this.set("data.linked",M),this.notifyPath("data.linked"),_.U("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(M)))}};
px.prototype.setPlayerAccountLinkState=function(M){var z=new L8p;A$B(z,EDV(new Vla,M));var J=_.J_();J&&J.getPlayerPromise().then(function(R){R.setAccountLinkState(_.YG(z.JSC$12080_serializeBinary(),4));R.updateAccountLinkingConfig(M)})};
px.prototype.handleShowAccountLinkDialog=function(){var M=this.get("button.buttonRenderer.command");M&&_.In([M],this.hostElement)};
_.rX.Object.defineProperties(px.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}}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],px.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],px.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],px.prototype,"overrides",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],px.prototype,"forceModernIconButton",void 0);_.u([_.Y({value:"bottom"}),_.W("design:type",String)],px.prototype,"buttonTooltipPosition",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],px.prototype,"forceIconButton",void 0);_.u([_.Y(),_.W("design:type",Boolean)],px.prototype,"disableTextTransform",void 0);
_.u([_.F("data","data.linked","data.isWarning"),_.W("design:type",Object),_.W("design:paramtypes",[])],px.prototype,"button",null);_.u([_.c({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],px);
_.d(px,"ytd-account-link-button-renderer",function(){if(Irt!==void 0)return Irt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Irt=M},{mode:1});var oWp;var XEt=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Fy=function(){return _.g.apply(this,arguments)||this};
_.w(Fy,_.g);Fy.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Fy.prototype.updateButtonActiveState=function(){var M=this,z=!!XEt.find(function(J){return M.currentState===J});
this.button&&(this.button.isPressed=z)};
_.rX.Object.defineProperties(Fy.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.playlistLoopStateEntity)==null?void 0:M.state)||((z=this.data)==null?void 0:z.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=void 0,z;if(this.currentState&&((z=this.data)==null?0:z.states)){z=_.S(this.data.states);for(var J=z.next();!J.done;J=z.next()){J=_.G(J.value,_.UDp);var R=void 0;if(((R=J)==null?void 0:R.state)===this.currentState){M=J;break}}}return M}}});
Fy.prototype.updateButtonActiveState=Fy.prototype.updateButtonActiveState;_.u([_.p(_.Wg),_.W("design:type",Object)],Fy.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Ks8}),_.W("design:type",Object)],Fy.prototype,"playlistLoopStateEntity",void 0);_.u([_.Y(),_.W("design:type",Object)],Fy.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Fy.prototype,"forceIconOnly",void 0);_.u([_.Qc("ytd-button-renderer"),_.W("design:type",_.SC)],Fy.prototype,"button",void 0);
_.u([_.F("data","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],Fy.prototype,"currentState",null);_.u([_.la("currentButtonStateRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fy.prototype,"updateButtonActiveState",null);_.u([_.F("currentState"),_.W("design:type",Object),_.W("design:paramtypes",[])],Fy.prototype,"currentButtonStateRenderer",null);
_.u([_.c({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Fy);
_.d(Fy,"ytd-playlist-loop-button-renderer",function(){if(oWp!==void 0)return oWp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oWp=M},
{mode:1});var lrp;var eK2=_.e9("DOWNLOAD",{},"Download"),Qd$=_.e9("DOWNLOADING",{},"Downloading"),U2B=_.e9("DOWNLOADED",{},"Downloaded"),vWV=_.e9("RETRY",{},"Retry"),Yk=function(){var M=_.g.apply(this,arguments)||this;M.forceIconButton=!1;M.forceIconOnly=!1;M.overrides=!1;M.buttonTooltipPosition=!1;M.styleActionButton=!1;M.disableTextTransform=!1;M.downloadProgress=0;M.isDownloadComplete=!1;M.isHidden=!0;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return M};
_.w(Yk,_.g);_.P=Yk.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var M;(M=this.data)!=null&&M.text||(M=_.KD(_.rA().getState(),this.videoId),this.updateButtonState(M))};
_.P.computeVideoId=function(M){return M};
_.P.showHideButton=function(){this.updateButtonVisibility()};
_.P.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(M){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Qd$||!_.xf(M))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=eK2;var z="OFFLINE_DOWNLOAD";var J="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":M=vWV;z="OFFLINE_DOWNLOAD";J="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":M=U2B;z="OFFLINE_PIN";J="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":M=
Qd$;z="OFFLINE_DOWNLOADING_ZERO";J="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":M=vWV;z="OFFLINE_DOWNLOAD";J="ACTION_RETRY";break;default:M=eK2,z="OFFLINE_DOWNLOAD",J="ACTION_ADD"}this.isVideoDeletedByUser&&(M=eK2,z="OFFLINE_DOWNLOAD",J="ACTION_ADD");var R=Object.assign({},this.data);R.text=_.id(M);R.tooltip=M;R.icon={iconType:z};R.size="SIZE_DEFAULT";R.style="STYLE_DEFAULT";_.G(R.command,_.lE)&&(_.G(R.command,_.lE).action=J);this.set("data",R)}};
_.P.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?M="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var z;M!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.text=_.id(Qd$),z.tooltip=Qd$,z.icon={iconType:M},_.G(z.command,_.lE)&&(_.G(z.command,_.lE).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
Yk.prototype.updateProgress=Yk.prototype.updateProgress;Yk.prototype.onTransferStateChanged=Yk.prototype.onTransferStateChanged;Yk.prototype.showHideButton=Yk.prototype.showHideButton;Yk.prototype.dataChanged=Yk.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Yk.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"forceIconButton",void 0);
_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"forceIconOnly",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"overrides",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"buttonTooltipPosition",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"styleActionButton",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"disableTextTransform",void 0);
_.u([_.Y({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.W("design:type",String)],Yk.prototype,"videoId",void 0);_.u([_.Y(),_.W("design:type",Object)],Yk.prototype,"data",void 0);_.u([_.Y({selector:ud,selectorArgs:["videoId"]}),_.W("design:type",Object)],Yk.prototype,"downloadProgress",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Yk.prototype,"isDownloadComplete",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Yk.prototype,"isHidden",void 0);_.u([_.Y({selector:_.KD,selectorArgs:["videoId"]}),_.W("design:type",String)],Yk.prototype,"transferState",void 0);_.u([_.Y({selector:_.B_3,selectorArgs:["videoId"]}),_.W("design:type",Object)],Yk.prototype,"isVideoDeletedByUser",void 0);_.u([_.Y({selector:Dn0,selectorArgs:["videoId"]}),_.W("design:type",Object)],Yk.prototype,"offlineabilityState",void 0);
_.u([_.Y({value:!0}),_.W("design:type",Boolean)],Yk.prototype,"showTooltips",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],Yk.prototype,"sendCommandWhenDisabled",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Yk.prototype,"disabled",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yk.prototype,"dataChanged",null);
_.u([_.wH("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yk.prototype,"showHideButton",null);_.u([_.wH("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yk.prototype,"onTransferStateChanged",null);_.u([_.wH("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yk.prototype,"updateProgress",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Yk);
_.d(Yk,"ytd-download-button-renderer",function(){if(lrp!==void 0)return lrp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return lrp=M},{mode:2});var GbS;var wE2,x2$=function(){if(wE2!==void 0)return wE2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return wE2=M};var tdV=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live"),jdJ=_.NC("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,mS=function(){var M=_.g.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.alignByText=!1;M.isShorts=!1;M.animatedText=!1;M.shouldAnimate=!1;M.JSC$14418_browserSupportsAnimation=_.U("web_supports_animations_api");M.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};M.onTap=function(){var z;if((z=M.data)==null||!z.defaultNavigationEndpoint){var J;z=!((J=M.data)==null?0:J.isToggled);var R;if((R=M.data)==null||!R.preventAutoToggle){M.shouldAnimate=!1;M.disableTextUpdateJobId&&_.no.cancelJob(M.disableTextUpdateJobId);M.disableTextUpdateJobId=_.no.addLowPriorityJob(function(){M.disableTextUpdateJobId=void 0},jdJ);
var D;M.set("data.isToggled",!((D=M.data)==null?0:D.isToggled));J=M.getInnertubeIcon();R={toggled:z,actions:{}};J&&(R.actions[J.toLowerCase()]=z);_.Pv(M.hostElement,"yt-toggle-button",R)}}};
return M};
_.w(mS,_.g);_.P=mS.prototype;_.P.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.no.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.toggle=function(M){var z;this.set("data.isToggled",M!==void 0?M:!((z=this.data)==null?0:z.isToggled))};
_.P.handleUpdateToggleButtonStateCommand=function(M){if(this.data){M=_.G(M,Bqg);var z,J,R,D=(z=this.data)==null?void 0:(J=z.toggleButtonSupportedData)==null?void 0:(R=J.toggleButtonIdData)==null?void 0:R.id;D&&M&&D===(M==null?void 0:M.buttonId)&&this.set("data.isToggled",M.toggled)}};
_.P.handleUpdateToggleButtonTextAction=function(M){if(this.data){M=_.G(M,rE$);var z,J,R,D=(z=this.data)==null?void 0:(J=z.toggleButtonSupportedData)==null?void 0:(R=J.toggleButtonIdData)==null?void 0:R.id;D&&M&&D===(M==null?void 0:M.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=M.defaultNumericalValue,this.set("data.defaultText",M.defaultText),this.set("data.toggledText",M.toggledText),this.shouldAnimate=!1)}};
_.P.getInnertubeIcon=function(){var M=this.data;if(M){var z,J,R=((z=M.defaultIcon)==null?0:z.iconType)?(J=M.defaultIcon)==null?void 0:J.iconType:null,D,N;z=((D=M.toggledIcon)==null?0:D.iconType)?(N=M.toggledIcon)==null?void 0:N.iconType:R;return M.isToggled?z:R}};
_.P.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.rX.Object.defineProperties(mS.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14418_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var z=M.renderer;var J=M.element;var R=M.toggled;var D=M.onTapCallback;var N=M.commandClientArgs;var Z=M.overrides;var B=M.forceIcon;var O=M.forceModernIconButton;var X=M.forceDisabled;var l=M.useAnimatedText;var e=M.animatedTextProps;M=Wsw(z,R);B=!z.defaultIcon||!B&&z.defaultText?z.defaultIcon?"leading":void 0:O?"icon-only":"icon-only-40";B==="icon-only-40"&&(M.type="text");var Q;O=Object;var v=O.assign,x;a:switch((x=
z.style)==null?void 0:x.styleType){case "STYLE_COMPACT_GRAY":x={size:"S"};break a;default:x={size:"M"}}var m=!!R;var y=(y=R&&z.toggledText||z.defaultText)?_.y1(y):void 0;l?(l=_.CD(R&&z.toggledText||z.defaultText))&&e&&!isNaN(Number(e.numberValue))?(e.numberText=l,R&&(e.numberValue+=1),l=e):l=void 0:l=void 0;var H,q,b,V;var E=(e=((q=R?z.toggledAccessibilityData||((E=z.toggledText)==null?void 0:E.accessibility):z.accessibilityData||((H=z.defaultText)==null?void 0:H.accessibility))==null?void 0:(b=q.accessibilityData)==
null?void 0:b.label)||((V=z.accessibility)==null?void 0:V.label))?e:_.CD(R&&z.toggledText||z.defaultText);X=X===void 0?z.isDisabled:X;J=q9c(z,R,D,J,N);R=usw(z,R);R!=null&&R.length?(R=_.qf({innertubeCommand:sxR(R),forceNewState:!0}),R=W5(R)?R:void 0):R=void 0;z=v.call(O,{},M,x,{iconPosition:B},Z,{focused:!1,toggled:m,toggleable:!0,formattedButtonText:y,animatedTextProps:l,accessibilityLabel:E,disabled:X,onTap:J,aTagConfig:R},M$Y((Q=z.colorData)==null?void 0:Q.basicColorPaletteData));z.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(z.type="filled");return z}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.getInnertubeIcon();if(M)return _.oE(M)}}});
mS.prototype.resetAnimation=mS.prototype.resetAnimation;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],mS.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],mS.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"isPressed",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"forceIconButton",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"forceIconOnly",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"forceModernIconButton",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"alignByText",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"overrides",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],mS.prototype,"disabled",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"isShorts",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"buttonTooltipPosition",void 0);_.u([_.Y(),_.W("design:type",Object)],mS.prototype,"animatedText",void 0);_.u([_.Y(),_.W("design:type",String)],mS.prototype,"textNumberValue",void 0);_.u([_.Y({computed:"computeTooltip(data, data.isToggled)"}),_.W("design:type",Object)],mS.prototype,"tooltip",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mS.prototype,"resetAnimation",null);_.u([_.F("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.W("design:type",Object),_.W("design:paramtypes",[])],mS.prototype,"computedButtonShape",null);_.u([_.F("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],mS.prototype,"computedIcon",null);
_.u([_.c({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],mS);tdV&&_.d(mS,"ytd-toggle-button-renderer",x2$,{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var $8=_.Mf(function(M){function z(X){var l;return _.k(function(e){if(e.nextAddress==1)return(l=!Vk8(X,B())||!B().enabled)?e.jumpTo(2):e.yield(i8p(),3);e.nextAddress!=2&&(l=e.yieldResult);if(l)return e.return();J();setTimeout(function(){Z(!1)},1500);
_.UI(e)})}
function J(){setTimeout(function(){Z(!0);var X;(X=R.lottieEl)==null||X.goToAndPlay(0)},150)}
var R=_.o9(),D=_.S(_.kE(!1,void 0,"JJXzp")),N=D.next().value,Z=D.next().value,B=_.ba(M.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.mF(function(){var X,l;((X=M.settings)==null?void 0:(l=X.call(M))==null?void 0:l.uniqueId)==="this is not intended behavior"&&_.yA(new _.xN("Smartimation Settings is undefined"))});
_.jP(function(){B().experimentEnabled&&(B().enabled?EM0(z):(Z(!1),f4o(z)),_.pq(function(){f4o(z)}))},"FRiAUe");
_.jP(function(){B().timings.join("");B().experimentEnabled&&(Lsn(B()),_.pq(function(){A7G(B())}))},"VKiJOe");
var O=_.o4(function(){var X=R,l=B().uniqueId+"-border",e,Q;var v="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Q=(e=_.JF().resolve(_.zw(_.Ah)))==null?void 0:e())!=null&&Q?"dark":"light")+"_v2.json";return{animationRef:X,animationConfig:{name:l,autoplay:!1,loop:!1,path:v}}},void 0,"tgykab");
D={};return _.T("yt-smartimation",{class:_.Qe(M.className,"smartimation",(D["smartimation--experiment-enabled"]=function(){return B().experimentEnabled},D["smartimation--active-border"]=N,D["smartimation--enable-masking"]=Cgp(),D))},_.T(_.I,{cond:function(){return B().experimentEnabled},
then:function(){return _.T("div",{class:"smartimation__border"},_.T(_.xK,{className:"smartimation__border-gradient",data:O,animationName:function(){return O().animationConfig.name}}))}}),_.T("div",{class:"smartimation__content"},M.children))},"E");
$8.idomCompat=!0;_.N7($8,"yt-smartimation",{props:{className:_.zn,settings:_.zn}});var g0=function(){var M=_.g.apply(this,arguments)||this;M.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};M.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};M.shouldEnableSmartimation=!1;return M};
_.w(g0,_.g);g0.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
g0.prototype.onDataChanged=function(){var M,z;this.shouldEnableSmartimation=(((M=this.data)==null?void 0:(z=M.timedAnimationData)==null?void 0:z.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
g0.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var M=_.G(this.data.likeButton,_.Vz),z=_.G(this.data.dislikeButton,_.Vz);return!!((M==null?0:M.isToggled)||(z==null?0:z.isToggled))};
g0.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]]"}}}}}};
_.rX.Object.defineProperties(g0.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,z,J=((M=this.data)==null?void 0:(z=M.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:this.shouldEnableSmartimation,experimentEnabled:J.length>0}}}});
g0.prototype.onDataChanged=g0.prototype.onDataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],g0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],g0.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],g0.prototype,"likeButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],g0.prototype,"dislikeButtonOverride",void 0);
_.u([_.F("shouldEnableSmartimation"),_.W("design:type",Object),_.W("design:paramtypes",[])],g0.prototype,"smartimationSettings",null);_.u([_.la("data"),_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g0.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],g0);
_.d(g0,"ytd-segmented-like-dislike-button-renderer",function(){if(GbS!==void 0)return GbS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return GbS=M},{mode:1});var pEk;var FUV;(FUV=document.body)==null||FUV.setAttribute("rounded-container","");var YJt={};YJt.YtToggleButtonBehavior=[_.wx.YtActionHandlerBehavior,mg.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var M=this.data.isToggled;if(!this.isModal_(M)){if(!this.data.preventAutoToggle){this.toggle();var z={toggled:this.data.isToggled,actions:{}};z.actions[this.buttonIcon]=this.data.isToggled;_.Pv(this.hostElement,"yt-toggle-button",z)}z=this.data.defaultServiceEndpoint||null;var J=this.data.toggledServiceEndpoint||null;if(z&&J||z&&this.data.preventAutoToggle)M=M?J:z,z=this.disableCommandHandlerOverride,_.U("killswitch_toggle_button_behavior_resolve_command")||z?_.kQ(this.hostElement,
[M]):_.e5(M,this.hostElement),_.Pv(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:M})}},
stateChanged_:function(){var M=this.data;if(M){var z=M.isToggled;this._setEndpoint(this.computeEndpoint_(M));this._setServiceEndpoint(this.computeServiceEndpoint_(M));this._setButtonIcon(this.computeButtonIcon_(M,z));this._setButtonText(this.computeButtonText_(M,z));this._setButtonAccessibility(this.computeAccessibility_(M,z));this._setButtonTooltip(this.computeTooltip_(M,z));this._setButtonClass(this.computeButtonClass_(M,z));this._setIconPositionType(this.computeIconPositionType_(M));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=z):this.elements_.button.setAttribute("aria-pressed",z));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=z)}},
shouldSetIconActiveState_:function(){return _.U("kevlar_system_icons")},
toggle:function(M){this.set("data.isToggled",M!==void 0?M:!this.data.isToggled);_.U("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(M){if(M){var z,J;return!!((z=this.data)==null?0:(J=z.toggledServiceEndpoint)==null?0:J.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(M){return M&&M.defaultNavigationEndpoint||null},
computeButtonIcon_:function(M,z){var J=M&&M.defaultIcon?_.oE(M.defaultIcon.iconType):null;M=M&&M.toggledIcon?_.oE(M.toggledIcon.iconType):J;return z?M:J},
handleUpdateToggleButtonStateCommand_:function(M){M=M.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&this.toggle(M.toggled)},
computeButtonText_:function(M,z){return M?z&&M.toggledText||M.defaultText||null:null},
computeAccessibility_:function(M,z){return M?(z?this.get("toggledAccessibilityData.accessibilityData",M):this.get("accessibilityData.accessibilityData",M))||M.accessibility||null:null},
computeTooltip_:function(M,z){return M?z&&M.toggledTooltip||M.defaultTooltip||null:null},
computeButtonClass_:function(M,z){if(!M)return"";var J="",R=M.toggledStyle||M.style;if(z=z?R:M.style){z.styleType&&(z=z.styleType);try{J+=z.toLowerCase().replace(/_/g,"-")+" "}catch(D){_.Hb(D,z,typeof z),_.yA(D)}}if(M=M.size){M.sizeType&&(M=M.sizeType);try{J+=M.toLowerCase().replace(/_/g,"-")+" "}catch(D){_.Hb(D,M,typeof M),_.yA(D)}}return J.trim()},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeServiceEndpoint_:function(M){var z=M&&M.serviceEndpoint,J=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:J&&M.command?M.command:null},
handleUpdateToggleButtonTextAction_:function(M){M=M.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&(this.set("data.defaultText",M.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",M.toggledText),this.notifyPath("data.toggledText"))}}];_.nn("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var m2B=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live"),sS=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.roundedContainer=!0;return M};
_.w(sS,_.g);sS.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sS.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var M=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var z={toggled:!!this.data.isToggled,actions:{}};z.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var J,R;z.actions.playlistId=(J=this.data.defaultServiceEndpoint)==null?void 0:(R=J.playlistEditEndpoint)==null?void 0:R.playlistId;_.Pv(this.hostElement,"yt-toggle-button",z)}(M=M?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(M)}};
sS.prototype.onYtNavigate=function(M){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);z&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.rX.Object.defineProperties(sS,{template:{configurable:!0,enumerable:!0,get:function(){if(pEk===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);pEk=M}M=pEk;return M}}});
sS.prototype.onYtNavigate=sS.prototype.onYtNavigate;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],sS.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(YJt.YtToggleButtonBehavior),_.W("design:type",Object)],sS.prototype,"ytToggleButtonBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],sS.prototype,"data",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],sS.prototype,"showTooltips",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],sS.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],sS.prototype,"roundedContainer",void 0);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],sS.prototype,"onYtNavigate",null);
_.u([_.c({is:"ytd-toggle-button-renderer",disableElementRegistration:m2B})],sS);var gWv;_.nx=new _.Nh("PANEL_CONTROLLER_TOKEN");_.hX=new _.Nh("SHEET_CONTROLLER_TOKEN");_.yw=new _.Nh("DIALOG_CONTROLLER_TOKEN");gWv=new _.Nh("DIALOG_CONTAINER_TOKEN");var PKo=_.e9("DOWNLOAD",{},"Download"),SJY=_.e9("DOWNLOADING",{},"Downloading"),ZJb=_.e9("DOWNLOADED",{},"Downloaded"),kbp=_.e9("RETRY",{},"Retry");var OJo=[],Tk8=!1;var sdS=_.Mf(function(M){var z=U2b,J=function(){return""},R=XE8(M.data),D=lro(M.data),N=eK0(M.data),Z=Qdw(M.data);
z=function(){var B=M.data(),O=D2Y(B,R(),D(),N(),Z()),X=!!B.videoId,l=O.text;return{title:X?l:void 0,tooltip:X?void 0:l,accessibilityText:l,onTap:O.onTap,iconName:O.iconType,style:B.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:O.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:B.buttonSize}};
J={};J=_.Qe("ytDownloadButtonViewModelHost",(J.ytDownloadButtonViewModelIsHidden=function(){var B=M.data(),O=Z();return B.playlistId||O()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},J));
return _.T("download-button-view-model",{class:J},_.T(_.lT,{data:z}))},"F");
sdS.idomCompat=!0;var yaH=new _.Nh("RENDERER_LOGGER_TOKEN");var vWc=new _.Nh("RENDERER_STAMPER_OPTIONS_TOKEN");var wZ;_.G_=new nSg;wZ=new Map;var sde="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),hKR=["notificationTextRenderer","notificationMultiActionRenderer"],
nWo="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),gWp=Gbe(function(M){return _.YE(M==null?void 0:M.targetId)}).useUpdatableData;var m2b=0;_.t_.debugName="EjJbCe";var nWp=_.Mf(function(M){var z=M.data;M=M.className;_.FT(function(){z().formId||_.nc(Error("zh"))});
var J=function(){return{state:z().isDisabled?"disabled":"active"}};
return _.T("yt-submit-button-view-model",{class:_.Qe("ytSubmitButtonViewModelHost",M)},_.T(_.t_,{data:function(){return z().button}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
buttonOverrides:J})}}))},"G");var yaV=_.Mf(function(M){var z=M.backgroundLottieRef;var J=M.foregroundLottieRef;var R=M.children;var D=M.wrapperClass;var N=M.disableAnimation;M=function(){return(_.U("web_animated_actions")||_.U("web_animated_actions_v2"))&&!(N==null?0:N())};
return _.T("yt-animated-action",{class:_.Qe("animated-action__container",D)},_.T("div",{class:"animated-action__content-with-background"},_.T(_.I,{cond:M,then:function(){return _.T(hKg,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:z==null?void 0:z(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(HJY()?"dark":"light")+"_v5.json"}}}})}}),R),_.T(_.I,{cond:M,
then:function(){return _.T(hKg,{lottiePlayerProps:function(){return{animationRef:J==null?void 0:J(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(HJY()?"dark":"light")+"_v4.json"}}}})}}))},"H");
yaV.idomCompat=!0;var hKg=_.Mf(function(M){var z=M.wrapperClass;var J=M.lottieClass;var R=M.lottiePlayerProps;return _.T("div",{class:_.Qe("animated-action__lottie",z),"aria-hidden":"true"},_.T(_.xK,{className:J,data:R,animationName:function(){return R().animationConfig.name}}))},"I");var cap={isOpen:!1};var KU3={isAllowed:!1};var u6w={errorMessage:"",title:"",privacy:"",isDisabled:!0};var WUY={isOpen:!1};var Vdp={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var HJu={response:void 0};var fr3=function(M,z){M=M===void 0?HJu:M;switch(z.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},M,{response:z.payload});default:return M}};var cav={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var LUR=function(M,z){M=M===void 0?cav:M;switch(z.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},M,{nextDisabled:z.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},M,{nextCommand:z.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},M,{footerSubmissionData:z.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},M,{isImpersonationValid:z.payload});default:return M}};var d2Q={reportFormData:void 0,reportDetailsFormData:void 0};var Aao=function(M,z){M=M===void 0?d2Q:M;switch(z.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportFormData:z.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportDetailsFormData:z.payload});default:return M}};var KUk=void 0;_.U("mweb_enable_redux_store_on_demand")||(KUk=new bd(iJ3()));var HH=_.U("enable_web_delhi_icons");var $2S=_.Mf(function(M){M=_.rH(M,{themeOverride:void 0,animationRef:{}});var z=M.animatedIconType,J=M.active,R=M.themeOverride,D=M.animationRef;M=M.staticIconFn;var N=_.S(_.kE(void 0,void 0,"P5a72b")),Z=N.next().value,B=N.next().value,O=function(){a:{var y=z();var H=R==null?void 0:R();var q;H=(H==null?void 0:H.useDarkTheme)||((q=_.JF().resolve(_.zw(_.Ah)))==null?void 0:q());switch(y){case "LIKE":KUk||(KUk=new bd(iJ3()));y=(y=czG(KUk.getState()))&&y.animationLightUrl&&y.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:H?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:H?y.animationDarkUrl:y.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(y){H=y;break a}H="animated_like_icon_"+(H?"dark":"light")+"_"+(HH?"v5":"v4");H={lottiePlayerProps:{animationConfig:{name:H,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+H+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(HH?" animated-like-icon-delhi":"")}}},totalFrames:HH?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":H={lottiePlayerProps:{animationConfig:{name:H?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(H?"dark":"light")+(HH?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(HH?" animated-subscribe-icon-delhi":"")}}},totalFrames:HH?120:79,lazyLoad:!1};break a}H=
void 0}return H},X=function(){var y,H;
return(H=(y=O())==null?void 0:y.lottiePlayerProps.animationConfig.name)!=null?H:""},l=function(){if(O()){var y=O().lottiePlayerProps.animationConfig.path;
return mN.get(y)||Z()}};
N=_.S(_.kE(!1,void 0,"h6xR3c"));var e=N.next().value;N=N.next().value;var Q=bJH(N),v=function(){var y=O(),H,q,b;return(b=y==null?void 0:(H=y.lottiePlayerProps.animationConfig)==null?void 0:(q=H.rendererSettings)==null?void 0:q.className)!=null?b:""},x=void 0,m=void 0;
_.jP(function(){var y=O(),H=X(),q=l(),b=e(),V=J();if(y&&(m!==H&&(m=H,x=V,H=D(),Q.animationConfig=y.lottiePlayerProps.animationConfig,Q.animationRef=H,q&&(Q.animationConfig.animationData=q,Q.animationConfig.path=void 0),H=y.lottiePlayerProps.animationConfig.path,!mN.get(H)&&y.lazyLoad&&H&&CKp(H,B)),!(b||y.lazyLoad&&!q))){if(q=!D().lottieEl)V?(b=y.totalFrames,Q.animationConfig.initialSegment=[b-1,b]):Q.animationConfig.initialSegment=void 0;if(x!==V&&!q)if(q=D(),V){var E;(E=q.lottieEl)==null||E.playSegments([0,
y.totalFrames],!0)}else{var L;(L=q.lottieEl)==null||L.playSegments([0,1],!0)}x=V}},"YCYOCe");
return _.T("animated-icon",{class:"ytAnimatedIconHost"},_.T(_.I,{cond:function(){var y,H;return!((y=O())==null||!y.lottiePlayerProps.animationConfig.path||((H=O())==null?0:H.lazyLoad)&&!l()||e())},
then:function(){return _.T(_.xK,{data:Q,animationName:X,className:v,animationRef:D})},
else:M}))},"J");_.cH=_.Mf(function(M){var z=_.AL("yt-subscribe-button-view-model"),J=_.AL("div"),R=_.AL("div"),D=_.o9(),N=_.o9(),Z=_.o9(),B=_.U3(nM8,function(){return M.data().stateEntityStoreKey}),O=_.U3(ho8,function(){var rR,ea;
return(ea=(rR=M.data().notificationStateEntityStoreKeys)==null?void 0:rR.subsNotificationStateKey)!=null?ea:""}),X=function(){return!M.data().enableSubscribeButtonPostClickAnimation},l=_.S(_.kE(0,void 0,"eTsWvc")),e=l.next().value,Q=l.next().value;
l=_.S(_.kE(0,void 0,"dniDQ"));var v=l.next().value,x=l.next().value;l=_.S(_.kE(!1,void 0,"EluPic"));var m=l.next().value,y=l.next().value;l=_.S(_.kE(!1,void 0,"r0jnre"));var H=l.next().value,q=l.next().value;l=_.S(_.kE(!1,void 0,"KMvoQe"));var b=l.next().value,V=l.next().value,E;l=_.S(_.kE(!1,void 0,"aSENce"));var L=l.next().value,z8=l.next().value,O8=function(){q(!0);_.mn(_.no,function(){q(!1)},1500)};
_.jP(function(){var rR=H();ZZ(function(){rR&&!X()&&B()&&Zg0(D,N,Z)})},"LgmX6c");
_.jP(function(){var rR=B();ZZ(function(){if(!X()&&rR){var ea;((ea=M.animateWidth)==null?0:ea.call(M))&&S08(z.value,!!rR.subscribed,e(),v());var ok,s$;((ok=E)==null?0:ok.subscribed)||!rR.subscribed||rR.key!==((s$=E)==null?void 0:s$.key)||O8();E=rR}})},"iZzoUb");
l=_.o4(function(){var rR,ea,ok,s$=M.data(),pw=!((rR=B())==null||!rR.subscribed);rR=!((ea=M.isOverlay)==null||!ea.call(M));ea=m()?z:void 0;var iJ=(ok=O())==null?void 0:ok.state;ok=L();Pk3(s$,iJ);return zze({model:s$,subscribed:pw,isOverlay:rR,element:ea,notificationState:iJ,disableTextEllipsis:!0,focused:ok})},void 0,"yGQGue");
var I3=function(){var rR;if(!X()&&((rR=M.animateWidth)==null?0:rR.call(M))&&(J==null?0:J.value)&&(R==null?0:R.value)&&!b()){rR=B();var ea=_.S((rR==null?0:rR.subscribed)?[J,R]:[R,J]),ok=ea.next().value;ea=ea.next().value;ok=Math.ceil(ok.value.getBoundingClientRect().width);ea=Math.ceil(ea.value.getBoundingClientRect().width);Q(ok);x(ea);S08(z.value,!(rR==null||!rR.subscribed),ok,ea);V(!0)}},vY=_.ol(function(rR){I3();
var ea=B();ea&&(rR.detail.endpoint.subscribeEndpoint||rR.detail.endpoint.unsubscribeEndpoint)&&Rz8(z.value,!ea.subscribed,ea)}),te=function(){var rR=_.JF().resolve(_.zw(_.OQ));
rR&&z8(rR.isKeyBoardInUse())},wR=function(){z8(!1)};
_.Lc("yt-player-subscribe",function(rR){var ea=B();ea&&rR===M.data().channelId&&Rz8(z.value,!0,ea)});
_.Lc("yt-player-unsubscribe",function(rR){var ea=B();ea&&rR===M.data().channelId&&Rz8(z.value,!1,ea)});
_.Lc("yt-update-subscribe-button-action",function(rR){rR=_.G(rR,Lia);var ea=B();ea&&rR&&rR.channelId===M.data().channelId&&Rz8(z.value,!!rR.subscribed,ea)});
_.mF(function(){z.value&&(z.value.addEventListener("focusin",te),z.value.addEventListener("focusout",wR));var rR=_.x4(_.no,function(){I3()});
y(!0);_.pq(function(){_.no.cancelJob(rR);z.value&&(z.value.removeEventListener("focusin",te),z.value.removeEventListener("focusout",wR))})});
var qb=function(){var rR,ea,ok;if(ok=!((rR=B())==null||!rR.subscribed))rR=!!M.data().disableNotificationBell,ok=(ea=O())==null?void 0:ea.state,ok=!rR&&!!ok;return ok},cY=function(){var rR;
return!((rR=B())==null?0:rR.subscribed)},Pu=function(){var rR,ea;
if(ea=cY()){ea=!!M.data().disableNotificationBell;var ok=(rR=O())==null?void 0:rR.state;ea=!ea&&!!ok}return ea},yV={},Ik={};
return _.T("yt-subscribe-button-view-model",{class:_.Qe(M.className,"yt-subscribe-button-view-model-wiz",(yV["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var rR,ea;return!((rR=B())==null||!rR.subscribed)&&((ea=M.animateWidth)==null?void 0:ea.call(M))&&H()},yV["yt-subscribe-button-view-model-wiz--hidden"]=function(){var rR;
return!((rR=B())==null?0:rR.subscribed)&&M.data().hideWhenUnsubscribed},yV)),
el:z,"on:yt-service-request-sent":vY},_.T(yaV,{backgroundLottieRef:D,foregroundLottieRef:N,wrapperClass:_.Qe("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Ik["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var rR;return((rR=M.animateWidth)==null?void 0:rR.call(M))&&H()},Ik["yt-subscribe-button-view-model-wiz__static-width"]=function(){var rR;
return!((rR=M.animateWidth)==null?0:rR.call(M))},Ik)),
disableAnimation:X},_.T("div",{el:J,class:"yt-subscribe-button-view-model-wiz__container"},_.T(_.XC,{data:l,icon:function(){return _.T(_.I,{cond:qb,then:function(){var rR=function(){var ea;return J8H((ea=O())==null?void 0:ea.state)};
return _.T(_.I,{cond:function(){return X()||rR()!=="NOTIFICATIONS_NONE"},
then:function(){return _.T(_.vS,{icon:rR})},
else:function(){return _.T($2S,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Z})}})}})},
secondaryIconName:function(){return qb()?"EXPAND":void 0}}))),_.T("div",{el:R,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.T(_.I,{cond:function(){var rR;return((rR=M.animateWidth)==null?void 0:rR.call(M))&&!X()&&!b()},
then:function(){return _.T(_.XC,{data:_.o4(function(){var rR;return zze({model:M.data(),subscribed:cY(),isOverlay:!((rR=M.isOverlay)==null||!rR.call(M)),element:z,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var rR;return Pu()?J8H((rR=O())==null?void 0:rR.state):void 0},
secondaryIconName:function(){return Pu()?"EXPAND":void 0}})}})))},"K");
_.cH.idomCompat=!0;var u6$=_.Mf(function(M){var z=M.data;var J=_.U3(nM8,function(){return z().subscriptionStateEntityKey});
return _.T(_.I,{cond:function(){var R=z(),D=J();return!R.hideWhenUnsubscribed||(D==null?0:D.subscribed)?_.G(z().button,_.s3):void 0},
then:function(R){return _.T("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.T(_.lT,{data:R,buttonOverrides:function(){return{toggled:!0}}}))}})},"L");
u6$.idomCompat=!0;var Q7o=_.gZ({buttonViewModel:_.lT,subscribeButtonViewModel:_.cH,downloadButtonViewModel:sdS,toggleButtonViewModel:_.cm,subscribePlusButtonViewModel:u6$,submitButtonViewModel:nWp});_.RO(vJ3);var qJp,d0,WUu;qJp=_.Mf(function(M){return _.T(_.t_,{data:function(){return M.actionRow().actions}},{buttonViewModel:function(z){var J=z.data;
return _.T(d0,{isRow:M.isRow,isIconOnlyButton:function(){return GD8(J())},
useIntrinsicWidth:M.useIntrinsicWidth},_.T(_.lT,{data:J}))},
subscribeButtonViewModel:function(z){return _.T(d0,{isRow:M.isRow},_.T(_.cH,{data:z.data,isOverlay:!1,animateWidth:function(){return!M.isRow()}}))},
downloadButtonViewModel:function(z){var J=z.data;return _.T(d0,{isRow:M.isRow,isIconOnlyButton:function(){return!!J().playlistId}},_.T(sdS,{data:J}))},
submitButtonViewModel:function(z){var J=z.data;return _.T(d0,{isRow:M.isRow,isIconOnlyButton:function(){var R=J();return GD8(_.G(R==null?void 0:R.button,_.s3))}},_.T(nWp,{data:J}))},
toggleButtonViewModel:function(z){var J=z.data;return _.T(d0,{isRow:M.isRow,isIconOnlyButton:function(){var R=J();return GD8(_.G(R.isToggled?R.toggledButtonViewModel:R.defaultButtonViewModel,_.s3))}},_.T(_.cm,{data:J}))},
subscribePlusButtonViewModel:function(z){return _.T(d0,{isRow:M.isRow},_.T(u6$,{data:z.data}))}})},"M");
d0=_.Mf(function(M){var z={};return _.T("div",{class:_.Qe("yt-flexible-actions-view-model-wiz__action",(z["yt-flexible-actions-view-model-wiz__action--row-action"]=M.isRow,z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=M.useIntrinsicWidth,z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M.isIconOnlyButton,z))},M.children)},"N");
WUu=_.Mf(function(M){var z=function(){var R;return((R=M.layout)==null?void 0:R.call(M))===1},J={};
return _.T("yt-flexible-actions-view-model",{class:_.Qe("yt-flexible-actions-view-model-wiz",M.className,(J["yt-flexible-actions-view-model-wiz--inline"]=function(){return!z()},J["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return M.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},J))},_.T(_.G4,{each:function(){return M.data().actionsRows||[]}},function(R){return _.T(_.I,{cond:z,
then:function(){return _.T("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.T(qJp,{actionRow:R,isRow:z,useIntrinsicWidth:function(){return!!M.data().respectActionIntrinsicWidth}}))},
else:function(){return _.T(qJp,{actionRow:R,isRow:z})}})}))},"O");
_.Kx=_.U("web_enable_sink_yt_flexible_actions_view_model")?WUu:_.lP(vJ3);WUu.idomCompat=!0;_.N7(_.Kx,"yt-flexible-actions-view-model",{props:{data:_.zn,layout:_.zn,justifyContentOverride:_.zn,className:_.zn}});_.$k=_.Mf(function(M){var z=_.U3(Kn,function(){var D;return(D=M.data().dislikeEntityKey)!=null?D:""}),J=_.o4(function(){var D=z();
return D?D.likeStatus==="DISLIKE":_.G(M.data().toggleButtonViewModel,_.nf).isToggled},void 0,"B2tgKf"),R=_.o4(function(){return Object.assign({},_.G(M.data().toggleButtonViewModel,_.nf),{isToggled:J()})},void 0,"otfIbf");
return _.T("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.T(_.cm,{data:R,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(D){var N=z();N&&D!==(N.likeStatus==="DISLIKE")&&N.key&&_.Cd(_.hk("likeStatusEntity",N.key,{likeStatus:D?"DISLIKE":"INDIFFERENT",hadUserInteraction:D}))}}))},"P");
_.$k.idomCompat=!0;_.uA=_.Mf(function(M){var z=_.U("web_supports_animations_api"),J=JM(function(Q){var v=X();if(!Q){var x,m;return{numberText:(m=v==null?void 0:(x=v.likeCountIfIndifferent)==null?void 0:x.content)!=null?m:"",numberValue:Number(v==null?void 0:v.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var y;x=(v==null?void 0:(y=v.likeCountIfIndifferent)==null?void 0:y.content)!==Q.numberText;if(B()||!x)return Q;var H;return{numberText:(v==null?void 0:(H=v.likeCountIfIndifferent)==null?void 0:H.content)||
"",numberValue:Number(v==null?void 0:v.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!v}}),R=JM(function(Q){var v=X();
if(!Q){var x,m;return{numberText:(m=v==null?void 0:(x=v.likeCountIfLiked)==null?void 0:x.content)!=null?m:"",numberValue:Number(v==null?void 0:v.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var y;x=(v==null?void 0:(y=v.likeCountIfIndifferent)==null?void 0:y.content)!==Q.numberText;if(B()||!x)return Q;var H;return{numberText:(v==null?void 0:(H=v.likeCountIfLiked)==null?void 0:H.content)||"",numberValue:Number(v==null?void 0:v.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!v}}),D=_.S(_.kE(void 0,
void 0,"xYSlUe")),N=D.next().value,Z=D.next().value,B=N,O=_.U3(Kn,function(){var Q,v;
return(v=(Q=M.data())==null?void 0:Q.likeStatusEntityKey)!=null?v:""}),X=_.U3(B6n,function(){var Q,v;
return((Q=M.likeCountEntity)==null?void 0:(v=Q.call(M))==null?void 0:v.key)||""}),l=_.o4(function(){var Q;
return((Q=O())==null?void 0:Q.likeStatus)==="LIKE"},void 0,"DG5Osd"),e=function(){var Q;
return z&&!((Q=M.likeCountEntity)==null||!Q.call(M))};
return _.T("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.T(_.cm,{data:function(){var Q=Object,v=Q.assign,x;var m=_.G((x=M.data())==null?void 0:x.toggleButtonViewModel,_.nf);return v.call(Q,{},m||{},{isToggled:l()})},
buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:function(){return e()?J():void 0},
animatedTextPropsToggled:function(){return e()?R():void 0},
onToggle:function(Q){wDb(Q,O(),B(),Z)},
style:function(){var Q;return((Q=M.disableIconAnimation)==null?0:Q.call(M))?void 0:{animateIcon:"true"}}}))},"Q");
_.uA.idomCompat=!0;var arJ=_.Mf(function(M){var z=function(){return _.G(M.data().likeButtonViewModel,_.KM)},J=function(){var D;
return((D=z())==null?void 0:D.likeStatusEntityKey)||""},R=_.o4(function(){var D,N;
var Z=(N=_.U3(Kn,J)())!=null?N:(D=z())==null?void 0:D.likeStatusEntity;D=M.data();var B;D=(D==null?void 0:(B=D.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"like-dislike",timings:D,enabled:(Z==null?void 0:Z.likeStatus)==="INDIFFERENT"&&D.length>0,experimentEnabled:D.length>0}},void 0,"hGh9Td");
return _.T("segmented-like-dislike-button-view-model",{class:_.Qe("ytSegmentedLikeDislikeButtonViewModelHost",M.className),"button-renderer":!0},_.T($8,{settings:R},_.T("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.T(_.I,{cond:z,then:function(D){return _.T(_.uA,{data:D,likeCountEntity:function(){return M.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.T(_.I,{cond:function(){return _.G(M.data().dislikeButtonViewModel,_.d$)},
then:function(D){return _.T(_.$k,{data:D,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"R");
arJ.idomCompat=!0;_.N7(arJ,"segmented-like-dislike-button-view-model",{props:{data:_.zn,className:_.zn}});var Vdv=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.setMinWidth;var D=M.forceIconOnly;var N=_.AL("account-link-button-view-model"),Z=_.U3(_.xZH,function(){var Q;return(Q=z().accountLinkStatusEntityKey)!=null?Q:""}),B=_.U3(_.xZH,function(){var Q;
return(Q=z().accountLinkStatusSecondaryEntityKey)!=null?Q:""}),O=function(){if(!_.U("web_account_link_secondary_killswitch")){var Q,v;
return((Q=Z())==null?void 0:Q.linked)||((v=B())==null?void 0:v.linked)}var x;return(x=Z())==null?void 0:x.linked};
_.jP(function(){var Q=Z();if(Q){var v=A$B(new L8p,EDV(new Vla,!!Q.linked));_.T_().then(function(x){x&&(x.setAccountLinkState(_.YG(v.JSC$12080_serializeBinary(),4)),x.updateAccountLinkingConfig(!!Q.linked))})}},"b9pSsf");
var X=function(){return _.G(z().toggleButtonViewModel,_.nf)};
_.Lc("yt-signal-action-show-account-link-dialog",function(){if(X()){var Q=O()?X().toggledButtonViewModel:X().defaultButtonViewModel;Q=_.G(Q,_.s3);var v;if((v=Z())==null?0:v.isWarning){v=_.G(z().warningButtonViewModel,_.s3);if(!v){_.WW(Error("Ah"));return}Q=v}var x;(v=_.$S((x=Q)==null?void 0:x.onTap))&&_.In([v],N.value)}else _.WW(Error("Bh"))});
var l=function(){var Q=X();return Object.assign({},Q,{isToggled:O()})},e=function(){return(D==null?0:D())?{iconPosition:"icon-only"}:{}};
return _.T("account-link-button-view-model",{class:_.Qe("ytwAccountLinkButtonViewModelHost",J,function(){return(R==null?0:R())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:N,"button-renderer":!0},_.T("div",null,_.T(_.I,{cond:function(){var Q;if((Q=Z())==null?0:Q.isWarning)return(Q=_.G(z().warningButtonViewModel,_.s3))||_.WW(Error("Ah")),Q},
then:function(Q){return _.T(_.lT,{data:Q,buttonOverrides:e})},
else:function(){return _.T(_.cm,{data:l,buttonShapeOverrides:e})}})))},"S");_.N7(Vdv,"account-link-button-view-model",{props:{data:_.zn,className:_.Dv,setMinWidth:_.Dv,forceIconOnly:_.Dv}});_.nn("menuRenderer","menuRenderer","ytd-menu-renderer");
var EWu={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"}},
frk=_.U("web_fix_missing_action_buttons")?100:200,qm=function(){var M=_.g.apply(this,arguments)||this;M.safeArea=!_.U("kevlar_flex_menu_safe_area_killswitch");M.tonalOverride=!1;M.threeDotSize="M";M.isOverlay=!1;M.useOverlayDark=!1;M.topLevelIconsOnly=!1;M.JSC$14552_lastWidth=0;M.maybeUpdateFlexibleMenu=function(){_.U("web_fix_missing_action_buttons")?requestAnimationFrame(M.maybeUpdateFlexibleMenuImpl):M.maybeUpdateFlexibleMenuImpl()};
M.maybeUpdateFlexibleMenuImpl=function(){var z;if((z=M.data)!=null&&z.flexibleItems){M.maybeFlushDebouncer();z=M.hostElement.clientWidth;var J=z>M.JSC$14552_lastWidth,R,D=((R=M.topLevelButtonsContainer)==null?void 0:R.scrollHeight)||0,N;R=((N=M.flexibleItemButtonsContainer)==null?void 0:N.scrollHeight)||0;N=M.hostElement.scrollHeight>Math.max(D,R)+8;J?(M.resetFlexibleItems(),M.JSC$14552_lastWidth=M.hostElement.clientWidth,M.maybeUpdateFlexibleMenu()):N&&(M.shrinkFlexibleMenu(),M.JSC$14552_lastWidth=
z)}};
M.computeThreeDotButtonShape=function(){if(M.tonalOverride)return Object.assign({},{onTap:function(){M.onOverflowTap()},
iconPosition:"icon-only",style:M.isOverlay?M.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:M.threeDotSize,state:"active",accessibilityLabel:M.computeAccessibilityLabel(M.data)},M.threeDotButtonOverride)};
M.onOverflowTap=function(){if(M.data.fetchMenuCommand)_.JF().resolve(_.Rb).resolveCommand(M.data.fetchMenuCommand,{form:{element:M.hostElement}});else if(M.data.isDisabled&&M.data.disabledCommand)_.e5(M.data.disabledCommand,M.hostElement);else{var z=M.createMenuRendererVe(),J={items:M.items};M.data.menuPopupAccessibility&&(J.menuPopupAccessibility=M.data.menuPopupAccessibility);M.data.footer&&(J.footer=M.data.footer);z={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:J},veData:z}};
_.JF().resolve(_.hX).openSheet({openPopupActionCommand:z},M.hostElement)}};
return M};
_.w(qm,_.g);_.P=qm.prototype;_.P.updateButtonOverrides=function(){if(!_.U("menu_renderer_label_update_upkillswitch")){var M=_.SN(this.hostElement).querySelector("yt-button-view-model");M&&(M.buttonOverrides=this.buttonOverrides)}};
_.P.computeHasItems=function(){var M;return((M=this.topLevelButtonData)==null?void 0:M.length)||this.hasFlexibleItems};
_.P.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.P.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Tp(this.hostElement,{"--ytd-menu-renderer-button-color":_.u7(this.data.iconColor)}))};
_.P.onStamperFinished=function(){this.JSC$14552_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.P.setupFlexibleMenu=function(){var M=this,z;(z=this.data)!=null&&z.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.A_(this.maybeUpdateFlexibleMenu,frk,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.P.maybeFlushDebouncer=function(){if(_.U("web_replace_formatted_with_attributed_string")){var M;(M=this.topLevelButtons)==null||M.forEach(function(J){var R;(J=(R=J.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&nxb(J)});
var z;(z=this.flexibleItemButtons)==null||z.forEach(function(J){var R;(J=(R=J.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&nxb(J)})}};
_.P.resetFlexibleItems=function(){var M;if((M=this.data)!=null&&M.flexibleItems){_.U("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var z;this.flexAsTopLevelButtons=(z=this.data.flexibleItems)==null?void 0:z.map(function(J){return _.G(J,_.xjV).topLevelButton});
_.U("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.P.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.P.shrinkFlexibleMenu=function(){var M;(M=this.flexAsTopLevelButtons)!=null&&M.length&&(this.flexAsTopLevelButtons=[].concat(_.Yj(this.flexAsTopLevelButtons.slice(0,-1))))};
_.P.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:EWu,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:EWu,events:!0}}};
_.P.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.detached=function(){this.icon="MORE_VERT"};
_.P.computeTopLevelButtonData=function(M){if(!M)return[];var z;M=(z=M==null?void 0:M.topLevelButtons)!=null?z:[];return _.gu.unsafeClone([].concat(_.Yj(M)))};
_.P.computeItems=function(M,z){if(!M)return[];var J=[];if(z){var R=(M.flexibleItems||[]).map(function(Z){return _.G(Z,_.xjV)});
R=_.S(R);for(var D=R.next();!D.done;D=R.next())D=D.value,z.includes(D.topLevelButton)||(D=D.menuItem)&&J.push(D)}var N;M=(N=M==null?void 0:M.items)!=null?N:[];return[].concat(_.Yj(J),_.Yj(M))};
_.P.computeMenuActive=function(M,z){return M||z};
_.P.onPopupOpened=function(){this.overlayOpen=!0;_.Pv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.P.onPopupClosed=function(){this.overlayOpen=!1;_.Pv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.onPopupCanceled=function(){this.overlayOpen=!1;_.Pv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.computeAccessibilityLabel=function(M){return this.get("accessibility.accessibilityData.label",M)};
_.P.isHidden=function(M,z){return this.tonalOverride||!M?!0:M.fetchMenuCommand||M.isDisabled&&M.disabledCommand?!1:!(z==null?0:z.length)};
_.P.isModernOverflowHidden=function(M,z){return this.tonalOverride&&M?M.fetchMenuCommand?!1:!(z==null?0:z.length):!0};
_.P.createMenuRendererVe=function(){var M=this.data.trackingParams,z=_.y5(),J=_.hu();return M&&z&&J?(M=_.pe(M),J=_.O3(7591),_.U("combine_ve_grafts")?_.ln(_.Gm(),J,M):_.qs(z,M,J),J):null};
_.rX.Object.defineProperties(qm.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.flexAsTopLevelButtons)==null||!M.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
qm.prototype.onPopupCanceled=qm.prototype.onPopupCanceled;qm.prototype.onPopupClosed=qm.prototype.onPopupClosed;qm.prototype.onPopupOpened=qm.prototype.onPopupOpened;qm.prototype.tonalOverrideChanged=qm.prototype.tonalOverrideChanged;qm.prototype.resetFlexibleItems=qm.prototype.resetFlexibleItems;qm.prototype.setupFlexibleMenu=qm.prototype.setupFlexibleMenu;qm.prototype.iconButtonColorChanged=qm.prototype.iconButtonColorChanged;qm.prototype.updateButtonOverrides=qm.prototype.updateButtonOverrides;
_.u([_.p(_.N4),_.W("design:type",Object)],qm.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#button-shape"),_.W("design:type",HTMLElement)],qm.prototype,"buttonShape",void 0);_.u([_.Qc("#button"),_.W("design:type",Object)],qm.prototype,"button",void 0);
_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"data",void 0);_.u([_.Y({computed:"computeTopLevelButtonData(data)"}),_.W("design:type",Array)],qm.prototype,"topLevelButtonData",void 0);_.u([_.Y(),_.W("design:type",Array)],qm.prototype,"flexAsTopLevelButtons",void 0);_.u([_.Y({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.W("design:type",Array)],qm.prototype,"items",void 0);_.u([_.Y({value:"MORE_VERT"}),_.W("design:type",String)],qm.prototype,"icon",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qm.prototype,"safeArea",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.W("design:type",Boolean)],qm.prototype,"menuActive",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qm.prototype,"menuFocused",void 0);_.u([_.Y({value:"bottom"}),_.W("design:type",String)],qm.prototype,"buttonTooltipPosition",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qm.prototype,"overlayOpen",void 0);
_.u([_.Y({value:!0}),_.W("design:type",Boolean)],qm.prototype,"forceIconButton",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qm.prototype,"styleActionButton",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qm.prototype,"disableTextTransformOnButtons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qm.prototype,"tonalOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"threeDotSize",void 0);
_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"threeDotButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"isOverlay",void 0);_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"useOverlayDark",void 0);_.u([_.Y({computed:"computeButtonOverride(tonalOverride)"}),_.W("design:type",Object)],qm.prototype,"buttonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],qm.prototype,"hasCustomIconColor",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("flexAsTopLevelButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],qm.prototype,"hasFlexibleItems",null);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.W("design:type",Boolean)],qm.prototype,"hasItems",void 0);_.u([_.Y(),_.W("design:type",Object)],qm.prototype,"topLevelIconsOnly",void 0);
_.u([_.la("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"updateButtonOverrides",null);_.u([_.F("topLevelIconsOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],qm.prototype,"buttonOverrides",null);_.u([_.Qc("#top-level-buttons-computed"),_.W("design:type",HTMLElement)],qm.prototype,"topLevelButtonsContainer",void 0);_.u([_.UV(".top-level-buttons > *"),_.W("design:type",Array)],qm.prototype,"topLevelButtons",void 0);
_.u([_.Qc("#flexible-item-buttons"),_.W("design:type",HTMLElement)],qm.prototype,"flexibleItemButtonsContainer",void 0);_.u([_.UV("#flexible-item-buttons > *"),_.W("design:type",Array)],qm.prototype,"flexibleItemButtons",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"iconButtonColorChanged",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"setupFlexibleMenu",null);_.u([_.wH("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"resetFlexibleItems",null);_.u([_.la("tonalOverride"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"tonalOverrideChanged",null);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"onPopupOpened",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"onPopupClosed",null);_.u([_.Xw("yt-popup-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qm.prototype,"onPopupCanceled",null);
_.d(qm,"ytd-menu-renderer",function(){if(Tk$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);Tk$=M}M=Tk$;return M},{mode:2});var LUg;var Aap;_.WH=_.Mf(function(M){var z=M.data;var J=function(){if(z().icon)a:{var R={iconName:z().icon};for(var D=_.JF().resolve(_.XH),N=_.S([12,24]),Z=N.next();!Z.done;Z=N.next()){var B=Z.value;Z=Object.assign({},R,{iconStyle:"youtube_fill",iconSize:B});B=Object.assign({},R,{iconStyle:"youtube_outline",iconSize:B});if(D.resolveIcon(Z)){R=Z;break a}if(D.resolveIcon(B)){R=B;break a}}R=void 0}else R=void 0;return R};
M={};return _.T("badge-shape",{class:_.Qe("badge-shape-wiz",function(){return mZ8(z().type)},(M["badge-shape-wiz--overlay"]=function(){return z().isOverlay},M["badge-shape-wiz--ads-include-dot"]=function(){return z().adsIncludeDot},M["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(z().type){case 17:case 18:case 19:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--status-badge"]=function(){a:switch(z().type){case 12:case 13:case 14:case 15:case 16:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--no-text"]=function(){return!z().text},M["badge-shape-wiz--modern"]=function(){return z().modern||_.U("web_modern_badge_shape")},M)),
style:_.UN({"background-color":function(){var R;return(R=z().customColors)==null?void 0:R.backgroundColor}}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},_.T(_.I,{cond:function(){return z().animation},
then:function(R){return _.T(_.xK,{className:"badge-shape-wiz__icon",data:R,animationName:function(){return R().animationConfig.name||""}})}}),_.T(_.I,{cond:function(){var R;
return J()&&!((R=z())==null?0:R.animation)},
then:function(){return _.T("div",{class:"badge-shape-wiz__icon"},_.T(Azw,{data:function(){return J()}}))}}),_.T("div",{class:"badge-shape-wiz__text"},function(){var R;
return(R=z())==null?void 0:R.text}))},"T");
_.WH.idomCompat=!0;_.N7(_.WH,"badge-shape",{props:{data:_.zn}});var aj=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.animated=_.U("animated_live_badge_icon");M.useBadgeShape=_.U("web_badge_shape_defrag");return M};
_.w(aj,_.g);_.P=aj.prototype;_.P.addTooltips=function(){for(var M=_.SN(this.hostElement).querySelectorAll(".badge"),z=0,J;J=M[z++];){var R=this.repeatElement.itemForElement(J);J=_.SN(J);J.lastChild&&J.lastChild.is==="tp-yt-paper-tooltip"&&J.removeChild(J.lastChild);if(R=R.metadataBadgeRenderer&&R.metadataBadgeRenderer.tooltip){var D=_.Su("tp-yt-paper-tooltip");(0,_.OV)(D).textContent=R;D.setAttribute("position","top");D.setAttribute("aria-hidden","true");J.appendChild(D)}}};
_.P.badgesChanged=function(){var M=this;_.Eb().parkOrScheduleJob(function(){M.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.P.standaloneRoundedBadgeChanged=function(){var M=this.useRoundedBadge?this.useRoundedBadge:void 0;M&&(this.useRoundedBadge=M)};
_.P.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.computeStyle=function(M){_.U("enable_html5_teal_ad_badge")&&M==="BADGE_STYLE_TYPE_AD"&&(M="badge-style-type-ad-alternate");_.U("kevlar_ytb_live_badges")&&M==="BADGE_STYLE_TYPE_LIVE_NOW"&&(M="badge-style-type-live-now-alternate");return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeRole=function(M){return this.computeAriaLabel(M)?"img":"status"};
_.P.computeAriaLabel=function(M){var z;return(M==null?void 0:(z=M.accessibilityData)==null?void 0:z.label)||(M==null?void 0:M.label)};
_.P.computeBadgeShape=function(M){var z;if(M){var J,R=Fr0(M.style),D=Y0p(M.style),N=M.label,Z=((J=M.accessibilityData)==null?void 0:J.label)||M.label;M=(z=M.icon)==null?void 0:z.iconType;z={type:R,brNzRatingBadgeType:D,text:N,accessibilityText:Z,icon:M!=="PREMIUM"?M:void 0}}else z={};return z};
_.P.updateComputedBadges=function(M,z,J){var R=this;(z=z?[z]:J?[J]:void 0)?this.computedBadges=z:this.computedBadges=M==null?void 0:M.filter(function(D){var N;if((N=D.metadataBadgeRenderer)==null?0:N.groups){N=!1;D=_.S(D.metadataBadgeRenderer.groups);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;var B=void 0;N=N||((B=R.hiddenBadgeGroups)==null?void 0:B.includes(Z))}return!N}return!0})};
_.P.useFilledIcons=function(M){return _.U("kevlar_system_icons")&&(M==="AUDIO_BADGE"||M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE"||M==="SPONSORSHIP_STAR"||M==="PERSON_RADAR_FILLED"||M==="PERSON_RADAR")};
_.P.computeBadgeShapeStyle=function(M){return this.useBadgeShape?M==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||M==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.P.computeIcon=function(M){var z,J;M=M==null?void 0:(z=M.metadataBadgeRenderer)==null?void 0:(J=z.icon)==null?void 0:J.iconType;if(M!=="PREMIUM"&&M)return _.oE(M)};
_.P.computeStandaloneBadge=function(M){var z;M=M==null?void 0:(z=M.icon)==null?void 0:z.iconType;return M==="PREMIUM_STANDALONE"||M==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
aj.prototype.hiddenBadgeGroupsChanged=aj.prototype.hiddenBadgeGroupsChanged;aj.prototype.standaloneBadgeChanged=aj.prototype.standaloneBadgeChanged;aj.prototype.standaloneRoundedBadgeChanged=aj.prototype.standaloneRoundedBadgeChanged;aj.prototype.badgesChanged=aj.prototype.badgesChanged;_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"hidden",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],aj.prototype,"componentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Array)],aj.prototype,"badges",void 0);_.u([_.Y(),_.W("design:type",Object)],aj.prototype,"topStandaloneBadge",void 0);_.u([_.Y(),_.W("design:type",Object)],aj.prototype,"bottomStandaloneBadge",void 0);_.u([_.Y(),_.W("design:type",Object)],aj.prototype,"computedBadges",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"mediumFontAdBadge",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"useRoundedBadge",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"largeFontAdBadge",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"overlayAd",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"overlayPremium",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"noDotAdBadge",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"collectionTruncate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"isThumbnailBadge",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],aj.prototype,"wrapBadges",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],aj.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],aj.prototype,"animated",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],aj.prototype,"useBadgeShape",void 0);_.u([_.Y({value:[]}),_.W("design:type",Array)],aj.prototype,"hiddenBadgeGroups",void 0);_.u([_.Qc("#repeat"),_.W("design:type",nd)],aj.prototype,"repeatElement",void 0);_.u([_.wH("badges"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aj.prototype,"badgesChanged",null);
_.u([_.wH("useRoundedBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aj.prototype,"standaloneRoundedBadgeChanged",null);_.u([_.wH("topStandaloneBadge","bottomStandaloneBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aj.prototype,"standaloneBadgeChanged",null);_.u([_.wH("hiddenBadgeGroups"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aj.prototype,"hiddenBadgeGroupsChanged",null);
_.u([_.c({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],aj);
var iJk=_.kS()(aj,"ytd-badge-supported-renderer",function(){if(Aap===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);Aap=M}M=Aap;return M},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.B5("kevlar_poly_si_batch_j053")?1:2});var Vw=function(){var M=_.g.apply(this,arguments)||this;M.iconType="STAR";M.standardizeIconSize=_.U("kevlar_system_icons");M.mediaHoverOverlayInitialVisibility=_.U("enable_top_landscape_image_button_command_web");M.noBottomMargin=!1;M.thumbnailObjectFit="CONTAIN";M.thumbnailFitHeight=!0;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.w(Vw,_.g);_.P=Vw.prototype;
_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",Vw.JSC$14564_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vw.JSC$14564_CLICK_LOCATION_ID_MAP))};
_.P.onTap=function(M){if(!_.U("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.P.onClick=function(M){if(_.U("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.P.onTapOrClick=function(M){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,M,!1)};
_.P.updateMediaBackgroundImage=function(){var M=this.get("data.image.thumbnail.thumbnails");M&&(M=_.PS(M,0))&&_.Tp(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+M+")"})};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var M=0;M<this.data.impressionEndpoints.length;M++){var z=this.data.impressionEndpoints[M];z.clickTrackingParams&&delete z.clickTrackingParams;_.JF().resolve(_.Rb).resolveCommand(z,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var J;((J=this.data)==null?0:J.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.P.handleMuteAd=function(){};
_.P.attached=function(){var M=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rX.Object.defineProperties(Vw.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.titleText)return"";var z;return _.e9("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((z=this.data)==null?void 0:z.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
Vw.prototype.onClick=Vw.prototype.onClick;Vw.prototype.onTap=Vw.prototype.onTap;Vw.prototype.dataChanged=Vw.prototype.dataChanged;
Vw.JSC$14564_CLICK_LOCATION_ID_MAP=_.U("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"]]);
Vw.JSC$14564_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.U("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"}];_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Vg),_.W("design:type",Object)],Vw.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Vw.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Vw.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],Vw.prototype,"ytdActiveViewBehavior",void 0);_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],Vw.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Vw.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Vw.prototype,"clickCommand",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],Vw.prototype,"miniMode",void 0);_.u([_.Y(),_.W("design:type",String)],Vw.prototype,"iconType",void 0);_.u([_.F("data.titleText"),_.W("design:type",String),_.W("design:paramtypes",[])],Vw.prototype,"titleAriaLabel",null);
_.u([_.F("data.rating"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"getRating",null);_.u([_.F("data.price"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"getPrice",null);_.u([_.F("data.thirdLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"getThirdLine",null);_.u([_.F("data.fourthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"getFourthLine",null);
_.u([_.F("data.fifthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"getFifthLine",null);_.u([_.F("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computeRatingHidden",null);_.u([_.F("getPrice"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computePriceHidden",null);_.u([_.F("getThirdLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computeThirdLineHidden",null);
_.u([_.F("getFourthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computeFourthLineHidden",null);_.u([_.F("getFifthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computeFifthLineHidden",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.energyIcon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"hasEnergyIcon",null);
_.u([_.F("computePriceHidden","computeRatingHidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"computeSecondaryTextHidden",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Vw.prototype,"standardizeIconSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Vw.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Vw.prototype,"noBottomMargin",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.layout"),_.W("design:type",String),_.W("design:paramtypes",[])],Vw.prototype,"layout",null);_.u([_.F("data.layout"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vw.prototype,"mediaThumbnailWidth",null);_.u([_.F("layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Vw.prototype,"useRoundedBadge",null);_.u([_.Y(),_.W("design:type",String)],Vw.prototype,"thumbnailObjectFit",void 0);
_.u([_.Y(),_.W("design:type",Object)],Vw.prototype,"thumbnailFitHeight",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vw.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vw.prototype,"onTap",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Vw.prototype,"onClick",null);
_.u([_.c({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Vw);
_.d(Vw,"ytd-display-ad-renderer",function(){if(LUg!==void 0)return LUg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return LUg=M},{mode:1});var CKa;var bJV;var raa;var gJc=new Map;var MyJ=!1;var ES=function(){var M=_.g.apply(this,arguments)||this;M.DEFAULT_TOOLTIP_OFFSET="10";M.TOOLTIP_OFFSET_NO_BANNER="-8";M.badges=null;M.noEndpoints=!1;M.wrapText=!1;M.forceVerified=!1;M.tooltipPosition="top";M.compactStyle=!1;M.height=0;M.lineHeight=0;return M};
_.w(ES,_.g);_.P=ES.prototype;_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.P.attached=function(){var M=this;this.observer=new MutationObserver(function(z,J){M.handleResized();J.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.P.detached=function(){this.observer&&this.observer.disconnect()};
_.P.logTooltipEvent=function(){_.U("kevlar_wiz_tooltip_event_killswitch")||MyJ||(_.s7R("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),MyJ=!0)};
_.P.handleWindowResized=function(){this.handleResized()};
_.P.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.P.onHeightChanged=function(){if(this.verified){var M=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.HW("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=M:this.textContainerEl.style.marginRight=M}};
_.P.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.HW("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.P.handleResized=function(){var M=this;this.verified&&_.no.addLowPriorityJob(function(){M.fitBackgroundToText();var z=getComputedStyle(M.hostElement).lineHeight;z&&(z=z.match(/\d+/))&&z.length&&(M.lineHeight=Number(z[0]));M.height=M.lineHeight&&!M.wrapText?M.lineHeight:M.textEl.offsetHeight})};
_.P.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var M=document.createRange(),z=_.SN(this.textEl).children;z.length>0?M.selectNodeContents(z[0]):M.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(M.getBoundingClientRect().width)+"px"}};
_.P.computeChannelBadgeStyle=function(M){var z;if((M==null?0:(z=M.runs)==null?0:z.length)&&M.runs[0].textColor)return"--ytd-badge-icon-color:"+_.u7(M.runs[0].textColor)+";"};
_.rX.Object.defineProperties(ES.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"?_.id(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var M=this.get("badges.0.metadataBadgeRenderer.tooltip");if(M)return M}return _.CD(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
ES.prototype.onLineHeightChanged=ES.prototype.onLineHeightChanged;ES.prototype.onHeightChanged=ES.prototype.onHeightChanged;ES.prototype.onChannelNameChanged=ES.prototype.onChannelNameChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"badges",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"channelName",void 0);
_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"noEndpoints",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"wrapText",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"forceVerified",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"tooltipPosition",void 0);_.u([_.Y(),_.W("design:type",String)],ES.prototype,"tooltip",void 0);_.u([_.Y(),_.W("design:type",Boolean)],ES.prototype,"hasChannelArt",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ES.prototype,"compactStyle",void 0);_.u([_.Qc("#text-container"),_.W("design:type",HTMLElement)],ES.prototype,"textContainerEl",void 0);_.u([_.Qc("#text"),_.W("design:type",Object)],ES.prototype,"textEl",void 0);_.u([_.Qc("#verified-tooltip"),_.W("design:type",HTMLElement)],ES.prototype,"verifiedTooltip",void 0);_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"height",void 0);
_.u([_.Y(),_.W("design:type",Object)],ES.prototype,"lineHeight",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("badges","forceVerified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ES.prototype,"verified",null);_.u([_.F("badges","verified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ES.prototype,"hideBadges",null);_.u([_.F("channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],ES.prototype,"formattedName",null);
_.u([_.F("badges","verified","formattedName"),_.W("design:type",String),_.W("design:paramtypes",[])],ES.prototype,"tooltipText",null);_.u([_.F("hasChannelArt"),_.W("design:type",String),_.W("design:paramtypes",[])],ES.prototype,"tooltipOffset",null);_.u([_.la("channelName"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ES.prototype,"onChannelNameChanged",null);
_.u([_.la("height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ES.prototype,"onHeightChanged",null);_.u([_.la("lineHeight","height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ES.prototype,"onLineHeightChanged",null);_.u([_.c({is:"ytd-channel-name",disableElementRegistration:!0})],ES);
_.d(ES,"ytd-channel-name",function(){if(raa!==void 0)return raa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return raa=M},{mode:_.B5("kevlar_poly_si_batch_j036")?1:2});var fx=function(){var M=_.g.apply(this,arguments)||this;M.standardizeIconSize=_.U("kevlar_system_icons");return M};
_.w(fx,_.g);fx.prototype.basicPaletteChanged=function(){var M;(M=this.data.color)!=null&&M.basicColorPaletteData&&_.g4(this.hostElement,this.data.color.basicColorPaletteData)};
fx.prototype.useFilledIcons=function(M){return _.U("kevlar_system_icons")&&(M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE")};
_.rX.Object.defineProperties(fx.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return this.data.authorCreator||((M=this.data)==null?void 0:(z=M.color)==null?void 0:(J=z.basicColorPaletteData)==null?void 0:J.backgroundColor)}}});
fx.prototype.basicPaletteChanged=fx.prototype.basicPaletteChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fx.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],fx.prototype,"standardizeIconSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.authorUnifiedVerified"),_.W("design:type",Object),_.W("design:paramtypes",[])],fx.prototype,"verified",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],fx.prototype,"creator",null);_.u([_.la("data.color.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fx.prototype,"basicPaletteChanged",null);_.u([_.c({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],fx);
_.d(fx,"ytd-author-comment-badge-renderer",function(){if(bJV!==void 0)return bJV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return bJV=M},{mode:1});var zzS;var Lx=function(){return _.g.apply(this,arguments)||this};
_.w(Lx,_.g);Lx.prototype.computeThumbnailWidth=function(M){if(M==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Lx.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],Lx.prototype,"icon",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],Lx.prototype,"surface",void 0);
_.u([_.Y({reflectToAttribute:!0,value:_.U("enable_shrink_image_size_on_web_posts_singleton")}),_.W("design:type",Boolean)],Lx.prototype,"searchSxsUx",void 0);_.u([_.c({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Lx);
_.d(Lx,"ytd-backstage-image-renderer",function(){if(zzS!==void 0)return zzS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return zzS=M},{mode:1});var J8V;var AX=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;M.selectedItemIndex=-1;return M};
_.w(AX,_.g);_.P=AX.prototype;_.P.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.P.computeIsImagePoll=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.P.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.P.thumbnailSrc=function(M){var z,J,R,D;return(M==null?0:(z=M.thumbnails)==null?0:(J=z[0])==null?0:J.url)?_.hr((R=M.thumbnails)==null?void 0:(D=R[0])==null?void 0:D.url):void 0};
_.P.progressWidth=function(M){return"width:"+(M?M*100:0)+"%;"};
_.P.textAreaWidth=function(M){return this.isImagePoll?null:"width:"+(M?M*100:0)+"%;"};
_.P.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.P.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var M=this.data.choices,z=0;z<M.length;z++)if(M[z].selected){this.selectedItemIndex=z;break}};
_.P.onPopupClosed=function(M,z){M=Number(this.pollVotes.selected);z.confirmed&&(this.selectChoice(M,!1),_.S9(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.P.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.P.onYtCommentPollRevert=function(M,z){z&&(this.selectChoice(z.selectedChoiceIndex,!0),this.set("data.totalVotes",z.totalVotes))};
_.P.onYtServiceRequestSent=function(M,z){if(z.actions)for(M=0;M<z.actions.length;M++){var J=z.actions[M];_.G(J,s4)&&this.set("data.totalVotes",_.G(J,s4).totalVotes)}};
_.P.onYtServiceRequestCompleted=function(M){var z=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.Pv(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.P.getEndpoint=function(M,z){return z===M?this.data.choices[z].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.P.selectChoice=function(M,z){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var J=0;J<this.data.choices.length;J++){var R;if(M===this.selectedItemIndex){var D=!1;var N=R=null}else R=(D=J===M)?this.data.choices[J].voteRatioIfSelected:this.data.choices[J].voteRatioIfNotSelected,N=D?this.data.choices[J].votePercentageIfSelected:this.data.choices[J].votePercentageIfNotSelected;this.set("data.choices."+J+".voteRatio",R);
this.set("data.choices."+J+".votePercentage",N);this.set("data.choices."+J+".selected",D)}z||(this.isLoading=!0,(z=this.getEndpoint(M,this.selectedItemIndex))&&_.JF().resolve(_.Rb).resolveCommand(z,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.rX.Object.defineProperties(AX.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
AX.prototype.onYtServiceRequestCompleted=AX.prototype.onYtServiceRequestCompleted;AX.prototype.onYtServiceRequestSent=AX.prototype.onYtServiceRequestSent;AX.prototype.onYtCommentPollRevert=AX.prototype.onYtCommentPollRevert;AX.prototype.onPopupClosed=AX.prototype.onPopupClosed;AX.prototype.dataChanged=AX.prototype.dataChanged;_.u([_.p(_.Mj),_.W("design:type",Object)],AX.prototype,"paperItemBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],AX.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AX.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],AX.prototype,"isLoading",void 0);_.u([_.Y({computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],AX.prototype,"isChannelOwner",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.W("design:type",Boolean)],AX.prototype,"isImagePoll",void 0);_.u([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],AX.prototype,"isTotalVotesDisabled",void 0);_.u([_.Y(),_.W("design:type",Object)],AX.prototype,"previousPollInfo",void 0);_.u([_.Y(),_.W("design:type",Object)],AX.prototype,"selectedItemIndex",void 0);_.u([_.Qc("#poll-votes"),_.W("design:type",Object)],AX.prototype,"pollVotes",void 0);
_.u([_.F("isChannelOwner"),_.W("design:type",Object),_.W("design:paramtypes",[])],AX.prototype,"endpointStyle",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AX.prototype,"dataChanged",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],AX.prototype,"onPopupClosed",null);
_.u([_.Xw("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],AX.prototype,"onYtCommentPollRevert",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],AX.prototype,"onYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AX.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],AX);
_.d(AX,"ytd-backstage-poll-renderer",function(){if(J8V!==void 0)return J8V;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return J8V=M},{mode:2});var Rz$;var DZk={autoplay:!1,loop:!1},NwV={simpleText:""},iA=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;M.usesPanelLockup=!1;M.selectedItemIndex=-1;M.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},DZk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});M.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},DZk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});M.correctnessAnimationProps=[];M.correctnessAnimationRefs=[];return M};
_.w(iA,_.g);_.P=iA.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.P.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.P.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.P.computeIsImageQuiz=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.P.onExplanationChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var M=this.data.choices;if(M){this.maybeInitializeQuizLotties(M);for(var z=0;z<M.length;z++)if(M[z].isSelected||this.isChannelOwner&&M[z].isCorrect){this.selectedItemIndex=z;return}this.selectedItemIndex=-1}}};
_.P.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var M=this.selectedItemIndex,z=Number(this.quizVotes.selected);this.selectChoice(z);this.sendVoteAction(z,M);this.quizVotes.selected=-1;var J;M=!((J=this.data)==null?0:J.enableAnimation);this.maybePlayAnswerAnimations(M)}};
_.P.onYtCommentPollRevert=function(M,z){z&&(this.selectChoice(z.selectedChoiceIndex),this.set("data.totalVotes",z.totalVotes))};
_.P.onYtServiceRequestSent=function(M,z){if(z.actions)for(M=_.S(z.actions),z=M.next();!z.done;z=M.next())(z=_.G(z.value,s4))&&this.set("data.totalVotes",z.totalVotes)};
_.P.onYtServiceRequestCompleted=function(M){var z=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.Pv(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.P.getAnimationPropsForChoiceIndex=function(M,z){return z[M]};
_.P.maybePlayAnswerAnimations=function(M){M=M===void 0?!1:M;var z;if((z=this.data)!=null&&z.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){z=_.S(this.correctnessAnimationRefs);for(var J=z.next();!J.done;J=z.next()){var R=void 0,D=void 0;(R=J.value)==null||(D=R.lottieEl)==null||D.stop()}if(!(this.selectedItemIndex<0)){z=0;M&&(z=this.isCorrect?37:25);var N,Z;(N=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Z=N.lottieEl)==null||Z.goToAndPlay(M?z:0,!0);if(!(this.isCorrect||
(N=this.data.choices.findIndex(function(l){return l.isCorrect}),N<0))){var B,O;
(O=(B=this.correctnessAnimationRefs[N])==null?void 0:B.lottieEl)==null||O.goToAndPlay(37,!0);var X;B=(X=this.fadeContainers)==null?void 0:X.item(N);!M&&B&&this.fadeIn(B)}}}};
_.P.thumbnailSrc=function(M){var z,J,R,D;return(M==null?0:(z=M.thumbnails)==null?0:(J=z[0])==null?0:J.url)?_.hr((R=M.thumbnails)==null?void 0:(D=R[0])==null?void 0:D.url):void 0};
_.P.a11yVotedText=function(M,z){var J,R,D=((J=this.data)==null?void 0:(R=J.correctVotedText)==null?void 0:R.simpleText)||"",N,Z;J=((N=this.data)==null?void 0:(Z=N.votedText)==null?void 0:Z.simpleText)||"";if(!z)return"";var B,O;if((B=this.data)==null?0:(O=B.choices)==null?0:O[M].isCorrect)return D;var X,l;return((X=this.data)==null?0:(l=X.choices)==null?0:l[M].isSelected)?J:""};
_.P.getEndpoint=function(M,z){return z===M?this.data.choices[M].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.P.sendVoteAction=function(M,z){if(M=this.getEndpoint(M,z))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(M)};
_.P.selectChoice=function(M){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var z=0;z<this.data.choices.length;z++)this.set("data.choices."+z+".isSelected",M===this.selectedItemIndex?!1:z===M);this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.P.maybeInitializeQuizLotties=function(M){var z=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=M.map(function(J){return{animationConfig:J.isCorrect?z.baseCorrectLottiePlayerAnimationConfig:z.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){z.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(J){return J.animationRef||{}})};
_.P.fadeIn=function(M){M.classList.add("fade-in");_.BS(_.no,function(){M.classList.remove("fade-in")},900)};
_.rX.Object.defineProperties(iA.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.CD(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.choices)==null?void 0:z.some(function(J){return J.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?NwV:this.data.choices[this.selectedItemIndex].explanation||NwV}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
iA.prototype.onYtServiceRequestCompleted=iA.prototype.onYtServiceRequestCompleted;iA.prototype.onYtServiceRequestSent=iA.prototype.onYtServiceRequestSent;iA.prototype.onYtCommentPollRevert=iA.prototype.onYtCommentPollRevert;iA.prototype.dataChanged=iA.prototype.dataChanged;iA.prototype.onExplanationChanged=iA.prototype.onExplanationChanged;_.u([_.p(_.Mj),_.W("design:type",Object)],iA.prototype,"paperItemBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],iA.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Pm.YtTaskEmitterBehavior),_.W("design:type",Object)],iA.prototype,"ytTaskEmitterBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],iA.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iA.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],iA.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Object)],iA.prototype,"usesPanelLockup",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],iA.prototype,"isChannelOwner",void 0);_.u([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],iA.prototype,"isTotalVotesDisabled",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.W("design:type",Boolean)],iA.prototype,"isImageQuiz",void 0);_.u([_.Y(),_.W("design:type",Object)],iA.prototype,"previousQuizInfo",void 0);_.u([_.Y(),_.W("design:type",Object)],iA.prototype,"selectedItemIndex",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data","usesPanelLockup"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"shouldUseModernUi",null);
_.u([_.UV(".fade-container"),_.W("design:type",Object)],iA.prototype,"fadeContainers",void 0);_.u([_.Y(),_.W("design:type",Array)],iA.prototype,"correctnessAnimationProps",void 0);_.u([_.F("explanation","showCorrectAnswer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"showExplanation",null);_.u([_.F("isChannelOwner","isAttempted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"showCorrectAnswer",null);
_.u([_.F("isChannelOwner","isAttempted","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"isQuizAnsweringDisabled",null);_.u([_.F("isQuizAnsweringDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],iA.prototype,"endpointStyle",null);_.u([_.F("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"isAttempted",null);
_.u([_.F("data","selectedItemIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],iA.prototype,"explanation",null);_.u([_.F("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iA.prototype,"isCorrect",null);_.u([_.Qc("ytd-expander"),_.W("design:type",Object)],iA.prototype,"expander",void 0);_.u([_.Qc("#quiz-votes"),_.W("design:type",Object)],iA.prototype,"quizVotes",void 0);
_.u([_.la("explanation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iA.prototype,"onExplanationChanged",null);_.u([_.la("data","isChannelOwner"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iA.prototype,"dataChanged",null);_.u([_.Xw("yt-comment-quiz-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],iA.prototype,"onYtCommentPollRevert",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],iA.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iA.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],iA);
_.d(iA,"ytd-backstage-quiz-renderer",function(){if(Rz$!==void 0)return Rz$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Rz$=M},{mode:1});var Pkk;var Cx=function(){return _.g.apply(this,arguments)||this};
_.w(Cx,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Cx.prototype,"data",void 0);_.u([_.c({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Cx);
_.d(Cx,"ytd-post-uploaded-video-renderer",function(){if(Pkk!==void 0)return Pkk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Pkk=M},{mode:1});var S0$;var bA=function(){return _.g.apply(this,arguments)||this};
_.w(bA,_.g);bA.prototype.useFilledIcons=function(M){return M==="SPONSORSHIP_STAR"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bA.prototype,"data",void 0);_.u([_.c({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],bA);
var Zg2=_.kS()(bA,"ytd-sponsors-only-badge-renderer",function(){if(S0$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);S0$=M}M=S0$;return M},{allowedProps:["data"],
mode:1});var kDB;var r0=function(){return _.g.apply(this,arguments)||this};
_.w(r0,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],r0.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],r0.prototype,"data",void 0);_.u([_.c({is:"ytd-child-video-renderer",disableElementRegistration:!0})],r0);
_.d(r0,"ytd-child-video-renderer",function(){if(kDB!==void 0)return kDB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return kDB=M},{mode:1});var Bwk;var Ogp;var MA=function(){var M=_.g.apply(this,arguments)||this;M.size=0;M.enableWebModernCollectionsV2=_.U("web_modern_collections_v2");M.fallbackImageSize={height:void 0,width:9999};M.webModernCollections=!1;return M};
_.w(MA,_.g);_.P=MA.prototype;_.P.computeBlurredImageSize=function(M){return M?{height:M*2,width:M*2}:this.fallbackImageSize};
_.P.computeImageSize=function(M){return M?{height:M,width:M}:this.fallbackImageSize};
_.P.computeObjectFit=function(M){return M?"FILL":"CONTAIN"};
_.P.computePreserve=function(M){return M?!0:!1};
_.P.setBackground=function(){var M,z;_.U("web_modern_collections_v2")&&((M=this.data)==null?0:(z=M.thumbnail)==null?0:z.sampledThumbnailColor)&&(M=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+M.red+","+M.green+","+M.blue+",1)")};
MA.prototype.setBackground=MA.prototype.setBackground;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],MA.prototype,"watchFeedThumbnail",void 0);_.u([_.Y(),_.W("design:type",Object)],MA.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],MA.prototype,"size",void 0);
_.u([_.Y({computed:"computeBlurredImageSize(size)"}),_.W("design:type",Object)],MA.prototype,"blurredImageSize",void 0);_.u([_.Y({computed:"computeImageSize(size)"}),_.W("design:type",Object)],MA.prototype,"imageSize",void 0);_.u([_.Y({computed:"computePreserve(size)"}),_.W("design:type",String)],MA.prototype,"preserve",void 0);_.u([_.Y({computed:"computeObjectFit(size)"}),_.W("design:type",String)],MA.prototype,"objectFit",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],MA.prototype,"enableWebModernCollectionsV2",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],MA.prototype,"webModernCollections",void 0);_.u([_.la("data.thumbnail.sampledThumbnailColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MA.prototype,"setBackground",null);_.u([_.c({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],MA);
_.d(MA,"ytd-playlist-custom-thumbnail-renderer",function(){if(Ogp!==void 0)return Ogp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Ogp=M},{mode:1});var TwB;var zP=function(){return _.g.apply(this,arguments)||this};
_.w(zP,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],zP.prototype,"width",void 0);_.u([_.c({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],zP);
_.d(zP,"ytd-playlist-video-thumbnail-renderer",function(){if(TwB!==void 0)return TwB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return TwB=M},{mode:1});var Ibv;var J3=function(){return _.g.apply(this,arguments)||this};
_.w(J3,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],J3.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],J3.prototype,"width",void 0);_.u([_.c({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],J3);
_.d(J3,"ytd-show-custom-thumbnail-renderer",function(){if(Ibv!==void 0)return Ibv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Ibv=M},{mode:1});var oJa;var RS=function(){return _.g.apply(this,arguments)||this};
_.w(RS,_.g);RS.prototype.useFilledIcons=function(M){return M==="MUSIC"||M==="COURSE"};
RS.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=WP(this.overlayColor,"0.8");else if(this.overlayColor){var M=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+M.red+","+M.green+","+M.blue+",0.8)"}};
_.rX.Object.defineProperties(RS.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)}}});
RS.prototype.overlayColorChanged=RS.prototype.overlayColorChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RS.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],RS.prototype,"overlayColor",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],RS.prototype,"overlayStyle",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],RS.prototype,"overlayTextStyle",null);_.u([_.la("overlayColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RS.prototype,"overlayColorChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],RS);
_.d(RS,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(oJa!==void 0)return oJa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oJa=M},{mode:1});var XDB;var Dn=function(){var M=_.g.apply(this,arguments)||this;M.active=!1;return M};
_.w(Dn,_.g);Dn.prototype.computeIsSpinnerHidden=function(M){return(M==null?void 0:M.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Dn.prototype.computeOverlayIcon=function(M){return(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Dn.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Dn.prototype,"active",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Dn);
_.d(Dn,"ytd-thumbnail-overlay-downloading-renderer",function(){if(XDB!==void 0)return XDB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return XDB=M},{mode:1});var lb$;var NA=function(){return _.g.apply(this,arguments)||this};
_.w(NA,_.g);_.rX.Object.defineProperties(NA.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NA.prototype,"data",void 0);_.u([_.F("data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],NA.prototype,"text",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],NA);
_.d(NA,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(lb$!==void 0)return lb$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return lb$=M},{mode:1});var ez$,Q7p=function(){if(ez$!==void 0)return ez$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return ez$=M};var P8=function(){return _.g.apply(this,arguments)||this};
_.w(P8,_.g);_.rX.Object.defineProperties(P8,{template:{configurable:!0,enumerable:!0,get:function(){return Q7p()}}});
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],P8.prototype,"animateEqualizer",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],P8);_.kS()(P8,"ytd-thumbnail-overlay-equalizer",function(){return Q7p()},{allowedProps:["animateEqualizer"],
mode:1});var UZk;var Sb=function(){var M=_.g.apply(this,arguments)||this;M.nowPlayingBadge=_.U("web_now_playing_badge");M.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return M};
_.w(Sb,_.g);Sb.prototype.activeChanged=function(){var M=this;_.U("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.C4(this,function(){_.Pv(M.hostElement,"yt-playlist-lockup-now-playing-active",M)})};
Sb.prototype.onMiniplayerPlayStateChanged=function(M){var z,J=(z=_.G(_.x9().currentEndpoint,_.Au))==null?void 0:z.videoId;this.isVideoPlaying=M&&(_.U("web_limit_now_playing_animation_killswitch")||this.videoId===J)};
Sb.prototype.activeChanged=Sb.prototype.activeChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Sb.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Sb.prototype,"isVideoPlaying",void 0);_.u([_.Y(),_.W("design:type",String)],Sb.prototype,"videoId",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Sb.prototype,"equalizerOnly",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Sb.prototype,"isActive",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Sb.prototype,"nowPlayingBadge",void 0);_.u([_.la("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sb.prototype,"activeChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Sb);
_.d(Sb,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(UZk!==void 0)return UZk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return UZk=M},{mode:1});var vJk;var Zn=function(){return _.g.apply(this,arguments)||this};
_.w(Zn,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Zn.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Zn);
_.d(Zn,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(vJk!==void 0)return vJk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vJk=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var GDt;var kh=function(){return _.g.apply(this,arguments)||this};
_.w(kh,_.g);kh.prototype.onDurationChanged=function(){var M,z;_.SN(this.hostElement).querySelector("#progress").style.width=((z=(M=this.data)==null?void 0:M.percentDurationWatched)!=null?z:0)+"%"};
kh.prototype.onDurationChanged=kh.prototype.onDurationChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],kh.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kh.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kh.prototype,"isLive",void 0);_.u([_.la("data.percentDurationWatched"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kh.prototype,"onDurationChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],kh);
_.d(kh,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(GDt!==void 0)return GDt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return GDt=M},{mode:1});var wDB;var B8=function(){var M=_.g.apply(this,arguments)||this;M.bottomPanel=!1;M.richGridOverlay=!1;M.watchFeedOverlay=!1;M.isCompact=!1;return M};
_.w(B8,_.g);B8.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.rX.Object.defineProperties(B8.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.icon)==null?void 0:z.iconType)==="PLAY_ALL"&&_.U("kevlar_system_icons")}}});
B8.prototype.widthChanged=B8.prototype.widthChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],B8.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],B8.prototype,"width",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"bottomPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"richGridOverlay",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"watchFeedOverlay",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"isCompact",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B8.prototype,"isIconFilled",null);_.u([_.la("width","watchFeedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"widthChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],B8);
_.d(B8,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(wDB!==void 0)return wDB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wDB=M},{mode:1});var xZV;var typ=["CLIP","SHORTS"],OL=function(){var M=_.g.apply(this,arguments)||this;M.animated=_.U("animated_live_badge_icon");M.hasIcon=!1;M.updateTimerIntervalId=0;M.timeSinceLive=0;return M};
_.w(OL,_.g);_.P=OL.prototype;_.P.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.P.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.P.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.P.hasIconOrText=function(){var M,z;return!!(((M=this.data)==null?0:M.icon)||((z=this.data)==null?0:z.text))};
_.P.initializeLiveBadgeTimer=function(){var M=this,z,J=(z=this.liveBadgeData)==null?void 0:z.startTimestampSec;if(J&&this.canShowLiveBadgeTimer()){var R;z=Number((R=this.liveBadgeData)==null?void 0:R.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(J);this.updateTimerIntervalId=_.O7(function(){M.canShowLiveBadgeTimer()?M.timeSinceLive++:(M.timeSinceLive=0,window.clearInterval(M.updateTimerIntervalId))},z)}else this.timeSinceLive=0};
_.P.canShowLiveBadgeTimer=function(){var M=Date.now(),z,J;return M<(Number((z=this.liveBadgeData)==null?void 0:z.endTimestampSec)-1)*1E3&&M>Number((J=this.liveBadgeData)==null?void 0:J.startTimestampSec)*1E3};
_.rX.Object.defineProperties(OL.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data;var z=this.timeSinceLive;var J,R,D,N;a:{var Z=M.style;if(Z===void 0)Z=17;else switch(Z){case "LIVE":Z=18;break a;default:Z=17}}z={type:Z,text:z?Xaw({seconds:z}):_.CD(M.text),accessibilityText:(J=M.text)==null?void 0:(R=J.accessibility)==null?void 0:(D=R.accessibilityData)==null?void 0:D.label,icon:(N=M.icon)==null?void 0:N.iconType}}else z={};return z}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return typ.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
OL.prototype.initializeLiveBadgeTimer=OL.prototype.initializeLiveBadgeTimer;OL.prototype.dataChanged=OL.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],OL.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OL.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],OL.prototype,"icon",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],OL.prototype,"animated",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.W("design:type",Boolean)],OL.prototype,"hideTimeStatus",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],OL.prototype,"hasIcon",void 0);_.u([_.Y(),_.W("design:type",Object)],OL.prototype,"timeSinceLive",void 0);_.u([_.F("data","timeSinceLive"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"badgeShapeData",null);
_.u([_.F("data","overlayType"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OL.prototype,"hideBadgeShape",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"dataChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"overlayStyle",null);
_.u([_.F("data.liveBadgeData"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"liveBadgeData",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.type"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"overlayType",null);_.u([_.F("overlayType","overlayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OL.prototype,"useFilledIcon",null);
_.u([_.wH("liveBadgeData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"initializeLiveBadgeTimer",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],OL);
_.d(OL,"ytd-thumbnail-overlay-time-status-renderer",function(){if(xZV!==void 0)return xZV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xZV=M},{mode:_.B5("kevlar_poly_si_batch_j035")?1:2});var j7V;var TP=function(){return _.g.apply(this,arguments)||this};
_.w(TP,_.g);TP.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"}}}}};
TP.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(M){if(this.hasPlaybackProgressBar)return{percentDurationWatched:M.percentDurationWatched}};
TP.prototype.computeHasPlaybackProgressBar=function(M){return!!M.percentDurationWatched&&M.percentDurationWatched>0};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],TP.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.W("design:type",Boolean)],TP.prototype,"hasPlaybackProgressBar",void 0);
_.u([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],TP);
_.d(TP,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(j7V!==void 0)return j7V;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return j7V=M},{mode:1});var pDV;var Fr2=_.Mf(function(M){var z=M.data;var J=M.children;var R=function(){return!!z().doubleStack},D=function(){return!!z().includeStackHeight};
return _.T("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!z().experimentEnabled}},_.T(_.I,{cond:z,
then:function(){var N={};return _.T(_.MH,null,_.T(_.I,{cond:D,then:function(){var Z={};return _.T("div",{class:_.Qe("collections-stack-wiz__spacer",(Z["collections-stack-wiz__spacer--double-stack"]=R,Z))})}}),_.T("div",{class:_.Qe((N["collections-stack-wiz__relative-stack"]=D,N))},_.T(_.I,{cond:R,
then:function(){var Z={};return _.T("div",{class:_.Qe("collections-stack-wiz__collection-stack2",function(){return z().customClassName2ndStack},(Z["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return z().enableResponsiveMode},Z)),
style:_.UN({"background-color":function(){return hzH(z())}})})}}),_.T("div",{class:_.Qe("collections-stack-wiz__collection-stack1",function(){return z().customClassName1stStack},function(){return nJe(z().thumbnailSize?z().thumbnailSize:"medium")}),
style:_.UN({"background-color":function(){return hzH(z())}})}),J))}}))},"U");_.N7(Fr2,"yt-collections-stack",{props:{data:_.zn}});var IS=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};M.webModernCollections=!1;M.isSearch=!1;M.isDoubleStack=!1;M.thumbnailSize="medium";M.enableWebModernCollectionsV2=_.U("web_modern_collections_v2");return M};
_.w(IS,_.g);_.P=IS.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.P.getThumbnailDetails=function(M){if(M!=null&&M.thumbnailRenderer){var z=M.thumbnailRenderer,J;if((J=z.playlistVideoThumbnailRenderer)==null?0:J.thumbnail)return z.playlistVideoThumbnailRenderer.thumbnail;var R;if((R=z.playlistCustomThumbnailRenderer)==null?0:R.thumbnail)return z.playlistCustomThumbnailRenderer.thumbnail;M=M.thumbnailRenderer;var D;if((D=M.showCustomThumbnailRenderer)==null?0:D.thumbnail)return M.showCustomThumbnailRenderer.thumbnail}};
_.P.computeOverlayColor=function(M){var z,J;if((z=this.getThumbnailDetails(M))==null?0:(J=z.darkColorPalette)==null?0:J.section2Color)return this.getThumbnailDetails(M).darkColorPalette.section2Color;var R;return(R=this.getThumbnailDetails(M))==null?void 0:R.sampledThumbnailColor};
_.P.computeWebModernCollections=function(M){if(M==null||!M.thumbnailOverlays)return!1;M=_.S(M.thumbnailOverlays);for(var z=M.next();!z.done;z=M.next()){var J=void 0;if((J=z.value)==null?0:J.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.P.computeNavigationEndpoint=function(M){return LT8(M==null?void 0:M.navigationEndpoint)};
_.rX.Object.defineProperties(IS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:M==null?void 0:M.sampledThumbnailColor,vibrantColorPalette:M==null?void 0:M.vibrantColorPalette,darkColorPalette:M==null?void 0:M.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(c0t),_.W("design:type",Object)],IS.prototype,"ytdThumbnailBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],IS.prototype,"componentBehavior",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],IS.prototype,"watchFeedThumbnail",void 0);_.u([_.Y(),_.W("design:type",Number)],IS.prototype,"customThumbnailSize",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],IS.prototype,"hideAria",void 0);_.u([_.Y(),_.W("design:type",Object)],IS.prototype,"data",void 0);_.u([_.Y({computed:"computeOverlayColor(data)"}),_.W("design:type",Object)],IS.prototype,"overlayColor",void 0);
_.u([_.Y({computed:"computeWebModernCollections(data)"}),_.W("design:type",Object)],IS.prototype,"webModernCollections",void 0);_.u([_.Y({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],IS.prototype,"computedNavigationEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],IS.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],IS.prototype,"isDoubleStack",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],IS.prototype,"thumbnailSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IS.prototype,"enableWebModernCollectionsV2",void 0);_.u([_.F("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],IS.prototype,"collectionStack",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],IS);
_.d(IS,"ytd-playlist-thumbnail",function(){if(pDV!==void 0)return pDV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return pDV=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var Y0a;var oS=function(){var M=_.g.apply(this,arguments)||this;M.noEndpoints=!1;M.amsterdamPostMvp=_.U("web_amsterdam_post_mvp_playlists");M.badges=[];M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.w(oS,_.g);_.P=oS.prototype;_.P.getMetadata=function(M){if(!M)return[];var z=[],J=M.shortViewCountText||M.viewCountText;J&&z.push(_.CD(J));M.publishedTimeText&&z.push(_.CD(M.publishedTimeText));M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&z.push(_.h_(_.CD(M.upcomingEventData.upcomingEventText),Number(M.upcomingEventData.startTime)));return z};
_.P.observeDataForBylineSeparator=function(){this.data&&_.kz(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.P.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.u7(this.metadataColor)};
_.P.getSimpleString=function(M){return _.CD(M)};
_.P.isBylineHidden=function(M){return this.noByline||!((M==null?0:M.longBylineText)||(M==null?0:M.shortBylineText))};
_.P.isMetadataHidden=function(M){var z;return((z=this.getMetadata(M))==null?void 0:z.length)===0};
_.P.isBylineMetadataSeparatorHidden=function(M){return this.isMetadataHidden(M)||!this.shouldShowVideoInfo};
_.P.isLongByline=function(M,z){return z&&!(M==null||!M.longBylineText)};
_.rX.Object.defineProperties(oS.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var M;return this.amsterdamPostMvp&&!((M=this.data)==null||!M.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
oS.prototype.metadataColorChanged=oS.prototype.metadataColorChanged;oS.prototype.observeDataForBylineSeparator=oS.prototype.observeDataForBylineSeparator;_.u([_.p(_.Wg),_.W("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oS.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],oS.prototype,"noEndpoints",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"isSlimShort",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"radioMeta",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],oS.prototype,"isGridViewEnabled",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"richMeta",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oS.prototype,"amsterdamPostMvp",void 0);_.u([_.Y(),_.W("design:type",Boolean)],oS.prototype,"noByline",void 0);
_.u([_.Y({computed:"isLongByline(data, radioMeta)"}),_.W("design:type",Boolean)],oS.prototype,"longByline",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"truncateMetadataLine",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"miniMode",void 0);_.u([_.Y(),_.W("design:type",Number)],oS.prototype,"metadataColor",void 0);_.u([_.Y(),_.W("design:type",Array)],oS.prototype,"badges",void 0);
_.u([_.Y({selector:_.KD,selectorArgs:["data.videoId"]}),_.W("design:type",String)],oS.prototype,"transferState",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"isDownloading",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oS.prototype,"typographyBump",void 0);_.u([_.Qc("#metadata-line"),_.W("design:type",HTMLElement)],oS.prototype,"metadataLine",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oS.prototype,"observeDataForBylineSeparator",null);_.u([_.la("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oS.prototype,"metadataColorChanged",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oS.prototype,"shouldShowVideoInfo",null);
_.u([_.F("badges"),_.W("design:type",String),_.W("design:paramtypes",[])],oS.prototype,"inlineBadgeClass",null);_.u([_.F("longByline"),_.W("design:type",String),_.W("design:paramtypes",[])],oS.prototype,"longBylineClass",null);_.u([_.F("data","longByline"),_.W("design:type",Object),_.W("design:paramtypes",[])],oS.prototype,"bylineText",null);_.u([_.F("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oS.prototype,"watchFeedBigThumbs",null);
_.u([_.c({is:"ytd-video-meta-block",disableElementRegistration:!0})],oS);
_.d(oS,"ytd-video-meta-block",function(){if(Y0a!==void 0)return Y0a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Y0a=M},{mode:_.B5("kevlar_poly_si_batch_j080")?1:2});_.nn("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var XP=function(){var M=_.g.apply(this,arguments)||this;M.displayItemCount=2;M.isBackstagePlaylist=!1;M.isPostCompactPlaylist=!1;M.shouldShowChannelThumbnail=!1;M.useModernCollectionsV2=_.U("web_modern_collections_v2");return M};
_.w(XP,_.g);_.P=XP.prototype;_.P.computeFirstVideos=function(M,z){return M===void 0||z===void 0?[]:M.slice(0,z)};
_.P.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var M=this.data.thumbnailRenderer;M.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",M.playlistVideoThumbnailRenderer.thumbnail);M.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",M.playlistCustomThumbnailRenderer.thumbnail)}};
_.P.computeThumbnailHeight=function(M,z,J,R,D){return R?D==="BIG"?280:D==="MASSIVE"?337:234:J?240:z?72:M?118:138};
_.P.computeThumbnailWidth=function(M,z,J,R,D){return R?D==="MEDIUM"?450:D==="BIG"?500:D==="MASSIVE"?600:420:J?360:z?128:M?210:246};
_.P.computeUseBiggerThumbs=function(M){return M&&_.U("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelThumbnail=function(M,z){return M&&!(z==null||!z.channelThumbnail)};
_.rX.Object.defineProperties(XP.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
XP.prototype.dataChanged=XP.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],XP.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],XP.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],XP.prototype,"displayItemCount",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XP.prototype,"isBackstagePlaylist",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XP.prototype,"isPostCompactPlaylist",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],XP.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.W("design:type",Boolean)],XP.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],XP.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],XP.prototype,"isDownloads",void 0);_.u([_.Y({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.W("design:type",Object)],XP.prototype,"shouldShowChannelThumbnail",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XP.prototype,"useModernCollectionsV2",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XP.prototype,"dataChanged",null);_.u([_.F("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],XP.prototype,"stackThumbnailSize",null);_.u([_.c({is:"ytd-playlist-renderer",disableElementRegistration:!0})],XP);
_.d(XP,"ytd-playlist-renderer",function(){if(Bwk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);Bwk=M}M=Bwk;return M},{mode:1});var mZt;var gJV;var l1=function(){var M=_.g.apply(this,arguments)||this;M.collections=!!_.U("web_modern_collections_v2");M.startX=0;return M};
_.w(l1,_.g);l1.prototype.onEndpointMouseDown=function(M){this.startX=M.clientX};
l1.prototype.onEndpointClick=function(M){this.startX!==M.clientX&&(M.preventDefault(),M.stopPropagation())};
l1.prototype.computeObjectFit=function(M){return M==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
l1.prototype.computeCardStyle=function(M){return M?M.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.rX.Object.defineProperties(l1.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.collections&&((M=this.data)==null?void 0:(z=M.searchRefinementCardRendererStyle)==null?void 0:z.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],l1.prototype,"data",void 0);_.u([_.Y({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",Number)],l1.prototype,"objectFit",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",String)],l1.prototype,"cardStyle",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],l1.prototype,"roundContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],l1.prototype,"collections",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],l1.prototype,"isAlbumCard",null);_.u([_.F("data","collections","isAlbumCard"),_.W("design:type",Object),_.W("design:paramtypes",[])],l1.prototype,"collectionStack",null);
_.u([_.c({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],l1);
_.d(l1,"ytd-search-refinement-card-renderer",function(){if(gJV!==void 0)return gJV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return gJV=M},{mode:1});var s7g;var eb=function(){var M=_.g.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.w(eb,_.g);_.u([_.Y(),_.W("design:type",Object)],eb.prototype,"data",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],eb.prototype,"componentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],eb.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],eb.prototype,"isRichGrid",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],eb.prototype,"miniMode",void 0);
_.u([_.c({is:"ytd-game-details-renderer",disableElementRegistration:!0})],eb);
_.d(eb,"ytd-game-details-renderer",function(){if(s7g!==void 0)return s7g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return s7g=M},{mode:1});var nJS;var hzV;var Q4=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return M};
_.w(Q4,_.g);_.P=Q4.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(M){var z=M||this.data;return z&&z.states&&z.currentStateId!=null?z.states.find(function(J){return J.stateId===z.currentStateId})||null:null};
_.P.currentStateRendererData=function(M){return(M=this.currentStateData(M))&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.P.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.P.computeButtonIcon=function(M){M=this.currentStateRendererData(M);var z;return(M==null?0:(z=M.icon)==null?0:z.iconType)?M.icon.iconType.toLowerCase():null};
_.P.computeAccessibility=function(M){return(M=this.currentStateRendererData(M))&&M.accessibilityData?M.accessibilityData.accessibilityData||null:null};
_.P.computeButtonClass=function(M){var z=this.currentStateRendererData(M);if(!z)return"";M="";var J=z.style;J&&(M+=J.toLowerCase().replace(/_/g,"-")+" ");(z=z.size)&&(M+=z.toLowerCase().replace(/_/g,"-")+" ");return M.trim()};
_.P.computeServiceEndpoint=function(M){if(!M)return null;var z=M&&M.serviceEndpoint,J=this.get("command.commandMetadata.webCommandMetadata.sendPost",M);return z?z:J&&M.command?M.command:null};
_.P.computeBellMenuItemParams=function(M){var z;M=(z=_.G(M==null?void 0:M.command,_.TV))==null?void 0:z.commands;if(!M||M.length===0)return null;z=_.G(M[0],_.nM);var J,R;return(z==null?0:(J=z.popup)==null?0:(R=J.menuPopupRenderer)==null?0:R.items)?z.popup.menuPopupRenderer.items.map(function(D){return D.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(M){var z=M.trackingParams,J=this.computeBellMenuItemParams(this.data);this.data&&z&&J&&J.includes(z)&&this.ytRenderButtonBehavior._setButtonIcon(M.icon.iconType.toLowerCase())};
_.P.onYtServiceRequestCompleted=function(M,z){(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))&&this.set("data",M)};
_.P.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.P.resetState=function(){this.set("data.currentStateId",3)};
_.P.onYtButtonTapHandler=function(){if(this.data){var M=this.currentStateRendererData(this.data);M&&this.ytRendererBehavior.logExplicitClick(M)}};
Q4.prototype.onYtServiceRequestError=Q4.prototype.onYtServiceRequestError;Q4.prototype.onYtServiceRequestCompleted=Q4.prototype.onYtServiceRequestCompleted;Q4.prototype.stateChanged=Q4.prototype.stateChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Q4.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(mg.YtRenderButtonBehavior),_.W("design:type",Object)],Q4.prototype,"ytRenderButtonBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Q4.prototype,"data",void 0);_.u([_.wH("data","data.currentStateId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q4.prototype,"stateChanged",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],Q4.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Q4.prototype,"onYtServiceRequestError",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Q4);
_.d(Q4,"ytd-subscription-notification-toggle-button-renderer",function(){if(hzV!==void 0)return hzV;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return hzV=M},{mode:1});var y8$;var UL=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};M.tapHandler=function(){if(M.data){var z=M.currentStateRendererData();z&&M.ytRendererBehavior.logExplicitClick(z)}};
return M};
_.w(UL,_.g);_.P=UL.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(){var M=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(z){return z.stateId===M.data.currentStateId})||null:null};
_.P.currentStateRendererData=function(){var M=this.currentStateData();return M&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.P.computeAccessibilityLabel=function(){var M,z,J;return(M=this.currentStateRendererData())==null?void 0:(z=M.accessibilityData)==null?void 0:(J=z.accessibilityData)==null?void 0:J.label};
_.P.computeBellMenuItemParams=function(){var M,z,J=(z=_.G((M=this.data)==null?void 0:M.command,_.TV))==null?void 0:z.commands;if(!J||J.length===0)return null;M=_.G(J[0],_.nM);var R,D;return(M==null?0:(R=M.popup)==null?0:(D=R.menuPopupRenderer)==null?0:D.items)?M.popup.menuPopupRenderer.items.map(function(N){return N.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(M){var z=M.trackingParams,J=this.computeBellMenuItemParams();if(this.data&&z&&J&&J.includes(z)&&(M==null||!M.isDisabled)){var R;((R=_.G(M.serviceEndpoint,_.on))==null?void 0:R.signal)!=="CLIENT_SIGNAL"&&(this.icon=M.icon.iconType)}};
_.P.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.P.onYtServiceRequestCompleted=function(M,z){if(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))this.icon=void 0,this.set("data",M)};
_.P.onYtServiceRequestError=function(){this.icon=void 0};
_.rX.Object.defineProperties(UL.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data,z=this.textLabel,J=this.hostElement,R=this.computeAccessibilityLabel(),D=this.tapHandler,N=this.isOverlay?"overlay":"mono",Z=(M==null?0:M.disableButton)?"disabled":"active";z=z?_.y1(z):void 0;return{style:N,type:"tonal",state:Z,size:"M",focused:!1,formattedButtonText:z,iconPosition:"leading-trailing",onTap:HgY(M,D,J),accessibilityLabel:R}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.currentStateRendererData(),z,J,R=(J=this.icon)!=null?J:M==null?void 0:(z=M.icon)==null?void 0:z.iconType;if(R)return _.oE(R)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.secondaryIcon)==null?void 0:z.iconType;if(J)return _.oE(J)}}});
UL.prototype.onYtServiceRequestError=UL.prototype.onYtServiceRequestError;UL.prototype.onYtServiceRequestCompleted=UL.prototype.onYtServiceRequestCompleted;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],UL.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],UL.prototype,"textLabel",void 0);
_.u([_.Y(),_.W("design:type",String)],UL.prototype,"icon",void 0);_.u([_.Y(),_.W("design:type",Boolean)],UL.prototype,"isOverlay",void 0);_.u([_.F("data.*","textLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"computedButtonShape",null);_.u([_.F("data.*","icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"computedIcon",null);_.u([_.F("computedIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"computedAnimateIcon",null);
_.u([_.F("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"computedSecondaryIcon",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],UL.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UL.prototype,"onYtServiceRequestError",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],UL);
_.d(UL,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(y8$!==void 0)return y8$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return y8$=M},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var Hgu;_.N7(yaV,"yt-animated-action",{props:{backgroundLottieRef:_.zn,foregroundLottieRef:_.zn,wrapperClass:_.zn,disableAnimation:_.zn},unsafeExternallySettableAttributes:new Set(["key"])});var GP=function(){var M=_.g.apply(this,arguments)||this;M.animatedActionEnabled=_.U("web_animated_actions");M.foregroundLottieRef={};M.backgroundLottieRef={};M.forceIconOnly=!1;M.showTextWhileAnimating=!1;M.keyboardFocused=!1;M.isAnimating=!1;M.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return M};
_.w(GP,_.g);_.P=GP.prototype;_.P.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.P.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onYtServiceRequestSent=function(M,z){(this.get("endpoint.subscribeEndpoint",z)||this.get("endpoint.unsubscribeEndpoint",z))&&this.updateSubscriptionState(!this.subscribed)};
_.P.onYtServiceRequestCompleted=function(M,z){(M=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",z.data))&&this.bellButton&&(this.bellButton.data=M)};
_.P.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Tp(this.hostElement)};
_.P.onPlayerSubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.P.onPlayerUnsubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||this.updateSubscriptionState(!1)};
_.P.handleUpdateSubscribeButtonAction=function(M){M=_.G(M,Lia);var z;M&&M.channelId===((z=this.data)==null?void 0:z.channelId)&&this.updateSubscriptionState(!!M.subscribed)};
_.P.computeButtonStyle=function(M){return this.get("style.styleType",M)||null};
_.P.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.P.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.P.updateSubscriptionState=function(M){if(M!==this.subscribed){this.set("data.subscribed",M);var z,J=(z=this.data)==null?void 0:z.subscribedEntityKey;J&&this.ytdReduxBehavior.dispatch(_.pf("subscriptionStateEntity",J,{key:J,subscribed:M}));this.isCompactRed()||_.Pv(this.hostElement,"yt-subscription-changed",M);M||(_.S9(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!M),M&&this.hasBellButton&&this.startAnimation())}};
_.P.startAnimation=function(){var M=this;if(!this.isAnimating){var z=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var J;(J=this.backgroundLottieRef.lottieEl)==null||J.goToAndPlay(0);var R;(R=this.foregroundLottieRef.lottieEl)==null||R.goToAndPlay(0);_.no.addJob(function(){M.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.no.addJob(function(){M.updateContainerToFitContent(!!M.subscribed,!0)},2,1500);
_.no.addJob(function(){M.isAnimating=!1},2,z)}};
_.P.maybeAnimateBellIcon=function(){var M=_.ZE(this.hostElement).querySelector("yt-animated-icon");if(M){var z;(z=M.animationRef.lottieEl)==null||z.goToAndPlay(0)}};
_.P.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.P.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.P.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var M;this.unsubscribedWidth=(M=this.subscribeButtonShape)==null?void 0:M.getBoundingClientRect().width}var z;this.subscribedWidth=(z=this.bellButton)==null?void 0:z.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.P.updateContainerToFitContent=function(M,z){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(M?(M=this.subscribedWidth,z=this.isAnimating&&!z,this.subscribedIconOnlyWidth===void 0||z||(M=this.subscribedIconOnlyWidth),this.hostElement.style.width=M+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.P.clearContainerSize=function(){this.hostElement.style.width=""};
_.P.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.P.maybeSetSubscribedButtonIconOnlyWidth=function(){var M=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var z;M.subscribedIconOnlyWidth=(z=M.bellButton)==null?void 0:z.getBoundingClientRect().width;requestAnimationFrame(function(){if(M.bellButton){var J;M.bellButton.textLabel=
(J=M.data)==null?void 0:J.subscribedButtonText}})})))};
_.rX.Object.defineProperties(GP.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var M;return(M=this.data)==null?void 0:M.subscribedButtonText}var z;return this.forceIconOnly?void 0:(z=this.data)==null?void 0:z.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,z,J=((M=this.data)==null?void 0:(z=M.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"subscribe",timings:J,enabled:J.length>0&&!this.subscribed,experimentEnabled:J.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!this.subscribed&&((M=this.data)==null?void 0:M.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var z=M.renderer;var J=M.element;var R=M.subscribed;var D=M.commandController;var N=M.isOverlay;M=M.stopPropagation;var Z=$Z0(z,R);N&&(Z.style="overlay");N=Object;var B=N.assign,O;a:switch((O=z.style)==null?void 0:O.styleType){case "COMPACT_GRAY":case "COMPACT_RED":O={size:"S"};break a;default:O={size:"M"}}var X=Kr8(z,
R);var l=(l=R?z.subscribedButtonText:z.unsubscribedButtonText)?_.y1(l):void 0;return B.call(N,{},Z,O,{focused:!1,toggled:R,accessibilityLabel:X,formattedButtonText:l,onTap:dZc(z,R,J,D,M)})}}}});
GP.prototype.onMouseDown=GP.prototype.onMouseDown;GP.prototype.onDataChanged=GP.prototype.onDataChanged;GP.prototype.observedSubscribed=GP.prototype.observedSubscribed;GP.prototype.onYtServiceRequestCompleted=GP.prototype.onYtServiceRequestCompleted;GP.prototype.onYtServiceRequestSent=GP.prototype.onYtServiceRequestSent;GP.prototype.maybeUpdateBellButtonText=GP.prototype.maybeUpdateBellButtonText;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],GP.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],GP.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GP.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.subscribedEntityKey"],selector:nM8}),_.W("design:type",Object)],GP.prototype,"subscriptionStateEntity",void 0);_.u([_.Y({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"subscribed",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"branded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"animatedActionEnabled",void 0);
_.u([_.Y(),_.W("design:type",Object)],GP.prototype,"foregroundLottieRef",void 0);_.u([_.Y(),_.W("design:type",Object)],GP.prototype,"backgroundLottieRef",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"overlayButton",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.W("design:type",Object)],GP.prototype,"buttonStyle",void 0);_.u([_.Y(),_.W("design:type",Object)],GP.prototype,"forceIconOnly",void 0);
_.u([_.Y(),_.W("design:type",Object)],GP.prototype,"showTextWhileAnimating",void 0);_.u([_.Y({value:function(){return!!_.JF().resolve(_.zw(_.OQ))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"useKeyboardFocused",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"keyboardFocused",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"isAnimating",void 0);_.u([_.F("data.notificationPreferenceButton.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"hasBellButton",null);
_.u([_.la("subscribedButtonText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"maybeUpdateBellButtonText",null);_.u([_.F("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"subscribedButtonText",null);_.u([_.F("data.timedAnimationData.animationTiming","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"smartimationSettings",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"subscribeButtonHidden",null);_.u([_.Y({reflectToAttribute:!0}),_.F("subscribed","hasBellButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"subscribeButtonInvisible",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"unsubscribeButtonHidden",null);_.u([_.Qc("ytd-subscription-notification-toggle-button-renderer-next"),_.W("design:type",Object)],GP.prototype,"bellButton",void 0);_.u([_.Qc("#subscribe-button-shape"),_.W("design:type",HTMLElement)],GP.prototype,"subscribeButtonShape",void 0);
_.u([_.F("overlayButton","subscribed","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"buttonShape",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],GP.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],GP.prototype,"onYtServiceRequestCompleted",null);
_.u([_.la("subscribed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"observedSubscribed",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GP.prototype,"onDataChanged",null);_.u([_.Xw("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GP.prototype,"onMouseDown",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],GP);
_.d(GP,"ytd-subscribe-button-renderer",function(){if(Hgu!==void 0)return Hgu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Hgu=M},{mode:1});var wj=function(){var M=_.g.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.w(wj,_.g);wj.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wj.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wj.prototype,"isRichGrid",void 0);_.u([_.c({is:"ytd-game-card-renderer",disableElementRegistration:!0})],wj);
_.d(wj,"ytd-game-card-renderer",function(){if(nJS!==void 0)return nJS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nJS=M},{mode:1});var xh={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.U("defer_menus")&&!vxJ?0:void 0,waitForSignal:"eocs"};var c8$;var dZV;var t3=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return M};
_.w(t3,_.g);_.P=t3.prototype;_.P.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.P.onSeriesReminderStateEntityChange=function(){var M,z,J;((M=this.eventReminderStateEntity)==null?0:M.key)&&((z=this.seriesReminderStateEntity)==null?void 0:z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((J=this.eventReminderStateEntity)==null?void 0:J.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.pf("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.P.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.P.onYtServiceRequestError=function(){var M;this.updateReminderStateEntitiesFromButtonState((M=this.data)==null?void 0:M.currentState)};
_.P.handleUpdateUpcomingEventReminderButtonStateCommand=function(M){if(M=_.G(M,Iuk)){var z,J=(z=this.data)==null?void 0:z.targetId;J&&M.targetId===J&&_.au(this.updateReminderStateEntitiesFromButtonState.bind(this,M.state))}};
_.P.getButtonStateFromReminderState=function(){var M;if(((M=this.seriesReminderStateEntity)==null?void 0:M.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var z;if(((z=this.eventReminderStateEntity)==null?void 0:z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var J,R;if(((J=this.seriesReminderStateEntity)==null?void 0:J.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((R=this.eventReminderStateEntity)==
null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var D;return(D=this.data)==null?void 0:D.currentState};
_.P.updateReminderStateEntitiesFromButtonState=function(M){if(M){switch(M){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":M="UPCOMING_EVENT_REMINDER_STATE_NONE";var z="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":M="UPCOMING_EVENT_REMINDER_STATE_SINGLE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":M="UPCOMING_EVENT_REMINDER_STATE_NONE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var J;
((J=this.eventReminderStateEntity)==null?0:J.key)&&this.ytdReduxBehavior.dispatch(_.pf("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:M})));var R;((R=this.seriesReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.pf("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:z})))}};
_.rX.Object.defineProperties(t3.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.getButtonStateFromReminderState(),z,J;if(M&&((z=this.data)==null?0:(J=z.states)==null?0:J.length))for(z=_.S(this.data.states),J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;if(((R=_.G(J,o9V))==null?void 0:R.state)===M)return _.G(J,o9V)}}}});
t3.prototype.onYtServiceRequestError=t3.prototype.onYtServiceRequestError;t3.prototype.onYtServiceRequestCompleted=t3.prototype.onYtServiceRequestCompleted;t3.prototype.onSeriesReminderStateEntityChange=t3.prototype.onSeriesReminderStateEntityChange;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],t3.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],t3.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],t3.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:y7e}),_.W("design:type",Object)],t3.prototype,"eventReminderStateEntity",void 0);
_.u([_.Y({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(M,z){return _.Is(M.entities,"sportsSeriesReminderStateEntity",z)}}),
_.W("design:type",Object)],t3.prototype,"seriesReminderStateEntity",void 0);_.u([_.F("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],t3.prototype,"currentButtonStateRenderer",null);_.u([_.la("seriesReminderStateEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t3.prototype,"onSeriesReminderStateEntityChange",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t3.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t3.prototype,"onYtServiceRequestError",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],t3);
_.d(t3,"ytd-upcoming-event-reminder-button-renderer",function(){if(dZV!==void 0)return dZV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return dZV=M},{mode:1});var Krt;var jb=function(){return _.g.apply(this,arguments)||this};
_.w(jb,_.g);jb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.rX.Object.defineProperties(jb.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(_.U("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jb.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],jb.prototype,"shelfDismissal",void 0);_.u([_.F("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],jb.prototype,"text",null);
_.u([_.F("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],jb.prototype,"textAriaLabel",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],jb);
_.d(jb,"ytd-notification-multi-action-renderer",function(){if(Krt!==void 0)return Krt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Krt=M},{mode:1});var $Z2;var pm=function(){return _.g.apply(this,arguments)||this};
_.w(pm,_.g);pm.prototype.ready=function(){var M=this;_.SN(this.hostElement).querySelector("#undo").addEventListener("tap",function(){M.onUndoTap()})};
pm.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pm.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],pm);
_.d(pm,"ytd-notification-text-renderer",function(){if($Z2!==void 0)return $Z2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $Z2=M},{mode:1});var uDJ;var FP=function(){var M=_.g.apply(this,arguments)||this;M.mouseOverDelayJobId=0;M.fadeInImageDelayJobId=0;M.startTimeMs=-1;M.loadingStartTimeMs=-1;M.loadingEndTimeMs=-1;M.hasVideoPreview=!1;return M};
_.w(FP,_.g);_.P=FP.prototype;_.P.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.P.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.showThumbnail=function(){var M=this;this.csn=_.y5();_.yC("fmth");_.no.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.BS(_.no,function(){M.loadingStartTimeMs=(0,_.zU)();var z=_.SN(M.hostElement).querySelector("#thumbnail");z.complete?M.displayMouseOverImage():z.addEventListener("load",_.ou(M,M.displayMouseOverImage))},150):_.kz(_.SN(this.hostElement).querySelector("#play"),"show",!0)};
_.P.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.P.onTap=function(){this.removeVideoPreview()};
_.P.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var M=this.videoId,z=this.csn,J=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,R=this.startTimeMs,D=this.hasVideoPreview,N=_.pe(this.trackingParams),Z={isMovingThumbnail:D};D&&R>0&&(J>0&&(Z.movingThumbnailLoadingDurationMs=Math.round(J)),Z.durationHoveredMs=Math.round((0,_.zU)()-R));M&&(Z.videoId=M);_.LY(z,N,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.P.removeVideoPreview=function(){_.no.cancelJob(this.mouseOverDelayJobId);_.no.cancelJob(this.fadeInImageDelayJobId);var M=_.SN(this.hostElement).querySelector("#thumbnail");_.kz(M,"fade-in",!1);M.removeEventListener("load",_.ou(this,this.displayMouseOverImage));M=_.SN(this.hostElement).querySelector("#play");_.kz(M,"fade-in",!1);_.kz(M,"show",!1)};
_.P.displayMouseOverImage=function(){var M=_.SN(this.hostElement).querySelector("#thumbnail"),z=_.SN(this.hostElement).querySelector("#play");this.isImageAvailable(M)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.zU)(),this.startTimeMs=(0,_.zU)(),this.fadeInImageDelayJobId=_.BS(_.no,function(){_.kz(M,"fade-in",!0)},50)):_.kz(z,"fade-in",!0)};
_.P.computeThumbnail=function(M,z){var J;M&&M.movingThumbnailDetails&&M.movingThumbnailDetails.thumbnails&&z?J=_.PS(M.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):J=z?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(J)return _.hr(J)};
_.P.isImageAvailable=function(M){return!(!M.src||M.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||M.naturalWidth===120)};
FP.prototype.onTap=FP.prototype.onTap;FP.prototype.dataChanged=FP.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],FP.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],FP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],FP.prototype,"csn",void 0);_.u([_.Y(),_.W("design:type",Object)],FP.prototype,"trackingParams",void 0);
_.u([_.Y(),_.W("design:type",String)],FP.prototype,"videoId",void 0);_.u([_.Y(),_.W("design:type",Boolean)],FP.prototype,"isAttachedAndDataSet",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FP.prototype,"dataChanged",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FP.prototype,"onTap",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],FP);
_.d(FP,"ytd-moving-thumbnail-renderer",function(){if(uDJ!==void 0)return uDJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return uDJ=M},{mode:1});var q0t;_.Zz=function(M){this.hostElement=M;this.eventSink=null;this.eventList=[]};
_.Zz.prototype.shouldForward=function(){var M,z;return(z=(M=this.eventSink)==null?void 0:M.isConnected)!=null?z:document.body.contains(this.eventSink)};
_.Zz.prototype.start=function(M,z){this.eventSink&&this.stop();for(var J=0;J<M.length;J++)this.hostElement.addEventListener(M[J],_.ou(this,this.forwardEvent));var R;this.eventSink=(R=z.hostElement)!=null?R:z;this.eventList=M};
_.Zz.prototype.stop=function(){for(var M=0;M<this.eventList.length;M++)this.hostElement.removeEventListener(this.eventList[M],_.ou(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Zz.prototype.forwardEvent=function(M,z){this.shouldForward()&&(M.stopPropagation(),this.eventSink instanceof Element?_.Pv(this.eventSink,M.type,z):_.yA(new _.xN("eventSink is not an element")))};_.Yh={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Zz(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(M,z){this.forwarder_.start(M,z)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var mY=function(){return _.g.apply(this,arguments)||this};
_.w(mY,_.g);_.P=mY.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.HW("HTML_DIR")==="rtl"?"right":"left"};
_.P.dataChanged=function(){this.popupOpen=!1};
_.P.computeAriaLabel=function(M){return _.G(M,lkp).label};
_.P.onTap=function(M){M.stopPropagation();M.preventDefault();this.data.command&&_.JF().resolve(_.Rb).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
mY.prototype.onPopupClosed=mY.prototype.onPopupClosed;mY.prototype.onPopupOpened=mY.prototype.onPopupOpened;mY.prototype.onTap=mY.prototype.onTap;mY.prototype.dataChanged=mY.prototype.dataChanged;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],mY.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.dL),_.W("design:type",Object)],mY.prototype,"ironButtonState",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],mY.prototype,"componentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],mY.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:-1}),_.W("design:type",Number)],mY.prototype,"tabindex",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.W("design:type",Object)],mY.prototype,"ariaLabel",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],mY.prototype,"disableTooltips",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],mY.prototype,"popupOpen",void 0);
_.u([_.Y(),_.W("design:type",Element)],mY.prototype,"eventSink",void 0);_.u([_.Qc("#tooltip"),_.W("design:type",Object)],mY.prototype,"tooltip",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mY.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mY.prototype,"onTap",null);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mY.prototype,"onPopupOpened",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mY.prototype,"onPopupClosed",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],mY);
_.d(mY,"ytd-thumbnail-overlay-button-renderer",function(){if(q0t!==void 0)return q0t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return q0t=M},{mode:1});var WrQ;var gj=function(){return _.g.apply(this,arguments)||this};
_.w(gj,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gj.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],gj.prototype,"disableAnimation",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],gj.prototype,"rounded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],gj.prototype,"transparentBackground",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],gj.prototype,"noPadding",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],gj);
_.d(gj,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(WrQ!==void 0)return WrQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return WrQ=M},{mode:1});var ab$;var sL=function(){return _.g.apply(this,arguments)||this};
_.w(sL,_.g);sL.prototype.computeIconPosition=function(M){return this.get("iconPosition",M)||null};
sL.prototype.computeIconStyle=function(M){return this.get("iconStyle",M)||null};
sL.prototype.computeIsIconStyleFilled=function(M){if(!M)return!1;var z;return M.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((z=M.icon)==null?void 0:z.iconType)==="ERROR_BLACK"};
_.u([_.Y(),_.W("design:type",Object)],sL.prototype,"data",void 0);_.u([_.Y({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.W("design:type",Object)],sL.prototype,"iconPosition",void 0);_.u([_.Y({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.W("design:type",Object)],sL.prototype,"iconStyle",void 0);_.u([_.Y({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],sL.prototype,"iconStyleFilled",void 0);
_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],sL);
_.d(sL,"ytd-thumbnail-overlay-icon-renderer",function(){if(ab$!==void 0)return ab$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ab$=M},{mode:1});var Vya;var nm=function(){return _.g.apply(this,arguments)||this};
_.w(nm,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nm.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],nm);
_.d(nm,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Vya!==void 0)return Vya;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Vya=M},{mode:1});var EJ2;var h3=function(){var M=_.g.apply(this,arguments)||this;M.isPreviewLoading=!1;return M};
_.w(h3,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],h3.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],h3.prototype,"isPreviewLoading",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],h3);
_.d(h3,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(EJ2!==void 0)return EJ2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return EJ2=M},{mode:1});var fb$;var y4=function(){return _.g.apply(this,arguments)||this};
_.w(y4,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],y4.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],y4);
_.d(y4,"ytd-thumbnail-overlay-pinking-renderer",function(){if(fb$!==void 0)return fb$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fb$=M},{mode:1});var LrV;var H8=function(){var M=_.g.apply(this,arguments)||this;M.disableTooltips=!1;M.isLoading=!1;M.useExpandableTooltip=!1;M.toggled=!1;M.hovered=!1;M.mouseoverDelayJobId=0;M.toggleDelayJobId=0;M.expandAnimationDelayJobId=0;return M};
_.w(H8,_.g);_.P=H8.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.SN(this.hostElement).querySelector("#tooltip").position=_.HW("HTML_DIR")==="rtl"?"right":"left"};
_.P.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.no.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.no.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.no.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.P.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.no.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.no.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.no.cancelJob(this.expandAnimationDelayJobId)};
_.P.computeIcon=function(M,z,J){return(M=J?z:M)&&M.iconType?_.oE(M.iconType):void 0};
_.P.computeAriaLabel=function(M,z,J){return _.G(J?z:M,lkp).label};
_.P.computeTooltip=function(M,z,J){return J?z:M};
_.P.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.P.computeIconOnHover=function(M,z){if((M==null?0:M.iconType)&&!z)return _.oE(M.iconType)};
_.P.onTap=function(M){var z=this;M.stopPropagation();M.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(M),this.useExpandableTooltip&&(this.toggleDelayJobId=_.BS(_.no,function(){z.hovered=!1;z.data&&!z.data.toggledServiceEndpoint&&(z.expandAnimationDelayJobId=_.BS(_.no,function(){z.set("data.isToggled",
!1)},200))},2E3))};
_.P.onMouseenter=function(){var M=this;this.mouseoverDelayJobId=_.BS(_.no,function(){M.hovered=!0},300)};
_.P.onMouseleave=function(){_.no.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.P.onServiceRequestCompleted=function(M,z){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(z)||this.set("data.isToggled",!this.data.isToggled)};
_.P.serviceRequestWasSuccessful=function(M){return _.G(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.uU)?M.data.status==="STATUS_SUCCEEDED":!0};
H8.prototype.onServiceRequestCompleted=H8.prototype.onServiceRequestCompleted;H8.prototype.onPopupClosed=H8.prototype.onPopupClosed;H8.prototype.onPopupOpened=H8.prototype.onPopupOpened;H8.prototype.onMouseleave=H8.prototype.onMouseleave;H8.prototype.dataChanged=H8.prototype.dataChanged;_.u([_.p(_.dL),_.W("design:type",Object)],H8.prototype,"ironButtonState",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],H8.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],H8.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],H8.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.W("design:type",Object)],H8.prototype,"ariaLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],H8.prototype,"disableTooltips",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],H8.prototype,"popupOpen",void 0);_.u([_.Y(),_.W("design:type",Object)],H8.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Element)],H8.prototype,"eventSink",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],H8.prototype,"useExpandableTooltip",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.W("design:type",Object)],H8.prototype,"toggled",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],H8.prototype,"hovered",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.W("design:type",Object)],H8.prototype,"iconOnHover",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H8.prototype,"dataChanged",null);
_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H8.prototype,"onMouseleave",null);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H8.prototype,"onPopupOpened",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H8.prototype,"onPopupClosed",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],H8.prototype,"onServiceRequestCompleted",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],H8);
_.d(H8,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(LrV!==void 0)return LrV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return LrV=M},{mode:_.B5("kevlar_poly_si_batch_j053")?1:2});var A8a;var igv=_.Mf(function(M){var z=M.data;var J=M.thumbnailSize;var R=function(){return z().enableSegmentView};
return _.T("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Qe("ytThumbnailOverlayProgressBarHost",function(){return uDG(J==null?void 0:J())})},_.T(_.I,{cond:R,
then:function(){return _.T("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.T("div",{class:_.jF("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+z().startPercent+"%"}}),_.T("div",{class:_.jF("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+z().segmentDurationPercent+"%"}},_.T("div",{class:_.jF("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.T("div",null," ",function(){return z().segmentLabel})),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.T("div",{class:_.jF("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.T(_.I,{cond:function(){return!R()&&z().startPercent},
then:function(){var D={};return _.T("div",{class:_.jF("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(D.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.U("web_enable_modern_progress_bar_overlay"),D))},_.T("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+z().startPercent+"%"}}))}}))},"V");
igv.idomCompat=!0;var CkJ=_.Mf(function(M){var z=_.o9(),J=_.d4(function(D){var N,Z,B;a:{var O=(N=M.data())==null?void 0:N.animationActivationTargetId;N=((Z=M.data())==null?void 0:Z.animationActivationEntityKey)||"";Z=(B=M.data())==null?void 0:B.animationActivationEntitySelectorType;if(N&&O)switch(Z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":D=_.Is(D.entities,"playerStateEntity",N);B=_.JF().resolve(_.zw(_.q5));O=!!(D&&D.videoId===O&&(B==null?0:B.isMiniplayerActive()));O={activated:O,playAnimation:O&&
D.playerState==="PLAYER_STATE_PLAYING"};break a}O=void 0}return O});
_.jP(function(){var D;if((D=J())==null?0:D.activated){var N;if((N=J())==null?0:N.playAnimation){var Z;(Z=z.lottieEl)==null||Z.goToAndPlay(0)}else{var B;(B=z.lottieEl)==null||B.goToAndStop(0)}}},"MDTl2e");
var R=function(){var D,N=!((D=J())==null||!D.activated);if(M.data()){D=M.data();var Z=void 0;D.icon&&(Z=_.ee3(D.icon),Z=t7w(Z));var B=void 0,O;if((O=D.backgroundColor)==null?0:O.lightTheme){var X;B={backgroundColor:WP((X=D.backgroundColor)==null?void 0:X.lightTheme,"0.8")}}if(D.text||Z||N){if(N&&D.lottieData&&z){X=D.lottieData;var l,e,Q;O={animationConfig:{name:X.url,path:X.url,autoplay:(l=X.settings)==null?void 0:l.autoplay,loop:(Q=(e=X.settings)==null?void 0:e.loop)!=null?Q:!0},animationRef:z}}else O=
void 0;if(N)l=17;else b:switch(D.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":l=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":l=19;break b;default:l=17}N={type:l,text:N&&D.animatedText?D.animatedText:D.text,icon:Z,customColors:B,animation:O}}else N=void 0}else N=void 0;return N};
return _.T("yt-thumbnail-badge-view-model",{class:_.Qe("yt-thumbnail-badge-view-model-wiz",M.class)},_.T(_.I,{cond:R,then:function(){return _.T(_.WH,{data:function(){return R()}})}}))},"W");var bgB=_.Mf(function(M){var z={},J={};return _.T("yt-thumbnail-bottom-overlay-view-model",{class:_.Qe("ytThumbnailBottomOverlayViewModelHost",(z.ytThumbnailBottomOverlayViewModelHostBackground=function(){return M.data().enableGradientBackground},z))},_.T(_.t_,{data:function(){return M.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(R){return _.T(igv,{data:R.data,
thumbnailSize:M.thumbnailSize})}}),_.T("div",{class:_.Qe("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var R;
return q08((R=M.thumbnailSize)==null?void 0:R.call(M))},(J.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var R;
return(R=M.isClip)==null?void 0:R.call(M)},J.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var R;
return!_.U("web_enable_modern_progress_bar_overlay")&&((R=M.thumbnailSize)==null?void 0:R.call(M))==="small"},J))},_.T(_.t_,{data:function(){return M.data().badge}},{thumbnailBadgeViewModel:function(R){return _.T(CkJ,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.T(_.t_,{data:function(){return M.data().badges}},{thumbnailBadgeViewModel:function(R){return _.T(CkJ,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"X");
bgB.idomCompat=!0;_.N7(bgB,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Dv,thumbnailSize:_.Dv,isClip:_.Dv}});var bgb={calledOnce:!1,state:"visible"},r8p={calledOnce:!1,state:"hidden"};var c8=_.Mf(function(M){var z=M.data;var J=M.className;M=M.alwaysShow;var R=_.Vyp(),D={};return _.T("thumbnail-hover-overlay-view-model",{el:_.zL(_.uE(function(){return z().rendererContext})),
class:_.Qe("ytThumbnailHoverOverlayViewModelHost",J,(D.ytThumbnailHoverOverlayViewModelHostForceHover=M,D)),"aria-label":function(){var N;return(N=_.G(z().rendererContext,_.pM))==null?void 0:N.label},
role:function(){return _.dZ(z().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.dZ(z().rendererContext)!==void 0?0:void 0},
"on:keypress":R},_.T("div",{class:_.Qe("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(z().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var N="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:N="ytThumbnailHoverOverlayViewModelStyleCover"}return N})},_.T(_.I,{cond:function(){return z().icon},
then:function(N){return _.T(_.rv,{data:N,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.T(_.I,{cond:function(){return z().text},
then:function(N){return _.T(_.m3,{text:N,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Y");
c8.idomCompat=!0;var r8v=_.Mf(function(M){var z=M.data;return _.T(_.t_,{data:function(){return z==null?void 0:z().overlays}},{thumbnailHoverOverlayViewModel:c8})},"Z");
r8v.idomCompat=!0;var M8$={};var zHS=_.Mf(function(M){var z=M.data;var J=M.image;var R=M.state;var D=M.iconType;var N=M.overlays;var Z=M.isOverlay;var B=_.iW("div");M=_.S(_.kE(!0,void 0,"sUzEZ"));var O=M.next().value,X=M.next().value,l=function(){return!!z().onTap},e=_.ba(D,"LIVE");
_.jP(function(){var v=z();requestAnimationFrame(function(){if(B.value===null)var x=!0;else{var m=B.value;x=v.badgeText;var y=JtH(v.size);x in M8$?m=M8$[x]:(m=m.clientWidth,M8$[x]=m);(x=m>y)?B.value.style.display="none":B.value.style.visibility="visible"}X(x)})},"SpVcNb");
var Q=function(){var v={};return v["yt-spec-avatar-shape__image"]=!0,v["yt-spec-avatar-shape__image--ads-app"]=z().type===1,v};
return _.T("yt-avatar-shape",null,_.T("div",{el:_.zL(D_8(l,{keydown:function(v){if(v.key==="Enter"){var x;(x=v.currentTarget)==null||x.click()}},
click:function(v){var x,m;return void((m=(x=z()).onTap)==null?void 0:m.call(x,v))}})),
class:function(){var v={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},x=z();v=(v[x.clusterLayoutConfig?Srw(x.clusterLayoutConfig):ZTp(x.size)]=!0,v["yt-spec-avatar-shape__button--tappable"]=l(),v);(x=z().avatarButtonCustomClassName)&&(v[x]=!0);return _.jF(v)},
"aria-label":function(){return l()?z().accessibilityText:""},
role:function(){return l()?"button":void 0},
tabindex:function(){return l()?0:void 0}},_.T("div",{class:function(){var v,x=z(),m=R==null?void 0:R(),y=Z==null?void 0:Z(),H=!((v=x.decorations)==null||!v.includes(2)||x.size!=="medium"&&x.size!=="large"),q=x.size==="tiny"||x.size==="extra-small",b,V,E,L,z8={};
v=(z8["yt-spec-avatar-shape--live-ring"]=!!(((b=x.decorations)==null?0:b.includes(0))&&BDH(x.size)),z8["yt-spec-avatar-shape--stories-watched"]=H&&!(m==null||!m.storiesWatched),z8["yt-spec-avatar-shape--stories-unwatched"]=H&&!(m==null?0:m.storiesWatched),z8["yt-spec-avatar-shape--background-border"]=OT8(x.decorations)&&!q,z8["yt-spec-avatar-shape--background-border-thin"]=OT8(x.decorations)&&q,z8["yt-spec-avatar-shape__on-select-border"]=!((V=x.decorations)==null||!V.includes(4)),z8["yt-spec-avatar-shape__white-border"]=
!((E=x.decorations)==null||!E.includes(5)),z8["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((L=x.decorations)==null?0:L.includes(5))&&q),z8["yt-spec-avatar-shape--is-overlay"]=!!y,z8);return _.jF(v)},
style:function(){a:{var v=z().clusterLayoutConfig;if(v){b:{var x=v.numAvatarsInCluster;var m=v.avatarIndex;if(m!==x-1){switch(v.clusterSize){case "small":v="32";break;case "medium":v="36";break;case "40":v="40";break;default:x=void 0;break b}x="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+v+"x"+v+"_avatars_"+x+"_index_"+m+".svg"}else x=void 0}if(x){x=_.UN({"-webkit-mask-image":"url("+x+")","mask-image":"url("+x+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}x=void 0}return x}},_.T("div",{class:function(){var v={};
var x=z();v=(v[x.clusterLayoutConfig?NDw(x.clusterLayoutConfig):P6w(x.size)]=!0,v["yt-spec-avatar-shape--no-margin"]=OT8(z().decorations),v);return _.jF(v)}},_.T(_.rv,{data:J,
alt:function(){return!l()&&z().accessibilityText?z().accessibilityText:""},
targetWidth:function(){return kv0(z().size)},
targetHeight:function(){return kv0(z().size)},
className:function(){return _.jF(Q())}}),_.T(_.I,{cond:function(){var v;
return((v=z().decorations)==null?void 0:v.includes(0))&&BDH(z().size)},
then:function(){return _.T("div",{class:function(){var v={};v=(v["yt-spec-avatar-shape__live-badge"]=!0,v["yt-spec-avatar-shape__live-badge--badge-small"]=z().size==="small",v["yt-spec-avatar-shape__live-badge--badge-medium"]=z().size==="medium"||z().size==="48",v["yt-spec-avatar-shape__live-badge--badge-large"]=z().size==="large",v["yt-spec-avatar-shape__live-badge--badge-extra-large"]=z().size==="extra-large"||z().size==="extra-extra-large"||z().size==="giant",v);return _.jF(v)}},_.T(_.I,{cond:function(){return z().badgeText},
then:function(v){return _.T("div",{class:"yt-spec-avatar-shape__badge-text",el:B},v)}}),_.T(_.I,{cond:O,
then:function(){return _.T("div",{class:"yt-spec-avatar-shape__badge-icon"},_.T(_.vS,{icon:e,size:function(){a:switch(z().size){case "extra-large":var v=16;break a;default:v=13}return v}}))}}))}}),_.T(_.I,{cond:function(){var v,x;
return((v=z().decorations)==null?void 0:v.includes(1))||((x=z().decorations)==null?void 0:x.includes(0))&&!BDH(z().size)},
then:function(){return _.T("div",{class:function(){var v=z(),x,m,y={};var H=(y["yt-spec-avatar-shape__live-dot"]=!((x=v.decorations)==null||!x.includes(0)||BDH(v.size)),y["yt-spec-avatar-shape__new-content"]=!((m=v.decorations)==null||!m.includes(1)),y);return _.jF(H)}})}}),_.T(_.I,{cond:function(){return!!N},
then:function(){return _.T("div",{class:function(){var v={};v=Object.assign((v["yt-spec-avatar-shape__image-overlays"]=!0,v),Q());return _.jF(v)}},N==null?void 0:N())}})))))},"$");
zHS.idomCompat={callbacks:{overlays:!0}};_.dj=_.Mf(function(M){function z(){J().endpoint&&_.aE(J().endpoint)}
var J=M.data;var R=M.decorations;var D=M.avatarButtonCustomClassName;var N=M.isOverlay;var Z=M.clusterLayoutConfig;return _.T("avatar-view-model",null,_.T(_.I,{cond:function(){return J().image},
then:function(B){return _.T(zHS,{data:function(){return Ije({data:J(),onTap:J().endpoint?z:void 0,decorations:R==null?void 0:R(),badgeText:void 0,accessibilityText:J().accessibilityText,avatarButtonCustomClassName:D==null?void 0:D(),clusterLayoutConfig:Z==null?void 0:Z()})},
image:B,iconType:"RADAR_LIVE",overlays:function(){return _.T(r8v,{data:J})},
isOverlay:N})}}))},"aa");
_.dj.idomCompat=!0;_.Km=_.Mf(function(M){var z=M.data;M=M.className;var J=_.iW("yt-decorated-avatar-view-model"),R=function(){return _.G(z().avatar,_.q6)},D=_.o4(function(){var N,Z=z(),B=R(),O=_.dZ(z().rendererContext),X=(N=J.value)!=null?N:void 0,l;
if(B){X={data:Z,avatar:B,onTap:O,element:X};N=X.data;Z=X.avatar;B=X.onTap;O=X.element;X=X.commandController;B=B?eHn(B,O,X):void 0;O=[];N.liveData&&O.push(0);var e;X=(e=N.liveData)==null?void 0:e.liveBadgeText;e=(l=_.G(N.rendererContext,_.pM))==null?void 0:l.label;l=Ije({data:Z,onTap:B,decorations:O,badgeText:X,accessibilityText:e?e:N.a11yLabel})}else l={size:"medium"};return l},void 0,"H8tk9d");
return _.T("yt-decorated-avatar-view-model",{class:_.Qe("yt-decorated-avatar-view-model-wiz",M),el:J},_.T(_.I,{cond:function(){var N;return(N=R())==null?void 0:N.image},
then:function(N){return _.T(zHS,{data:D,image:N,iconType:"RADAR_LIVE",overlays:function(){return _.T(r8v,{data:R})}})}}))},"ba");
_.Km.idomCompat=!0;_.$h=_.Mf(function(M){var z=function(){var B;return Object.assign({},M.data(),(B=M.overrides)==null?void 0:B.call(M))},J=function(){return _.$C(z().rendererContext)},R=function(){var B=z().avatars,O,X;
return(X=(O=(B==null?0:B[0])?_.G(B[0],_.q6):void 0)==null?void 0:O.avatarImageSize)!=null?X:"AVATAR_SIZE_UNKNOWN"},D=function(){return ljn(z())},N=function(){if(z().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var B=void 0;
else if((B=M.decorations)==null?0:B.call(M))B=M.decorations();else{B=z();var O=0;B.avatars&&(O+=B.avatars.length);B.decoratedText&&(O+=1);B=O>1?[3]:[]}return B},Z={};
return _.T("yt-avatar-stack-view-model",{el:_.zL(_.uE(function(){return z().rendererContext})),
class:_.Qe("yt-avatar-stack-view-model-wiz",M.className,(Z["yt-avatar-stack-view-model-wiz--tappable"]=J,Z["yt-avatar-stack-view-model-wiz--is-overlay"]=M.isOverlay,Z["yt-avatar-stack-view-model-wiz--medium-text"]=M.useMediumText,Z)),tabindex:function(){return J()?0:void 0},
role:function(){return J()?"link":void 0},
"aria-label":function(){var B,O;return(O=(B=_.G(z().rendererContext,_.pM))==null?void 0:B.label)!=null?O:""}},_.T(_.I,{cond:function(){var B;
return z().avatars&&!((B=M.hideAvatar)==null?0:B.call(M))},
then:function(){return _.T("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.T(_.I,{cond:function(){return z().decoratedText},
then:function(B){var O={};return _.T("div",{class:_.Qe("yt-avatar-stack-view-model-wiz__text-container",(O["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS"},O["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var X;
return((X=M.isOverlay)==null?void 0:X.call(M))&&(R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS")},O)),
style:_.UN({width:function(){return D().avatarSizeInPx+"px"},
height:function(){return D().avatarSizeInPx+"px"}})},_.T(_.m3,{text:B,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.T("div",{style:function(){return _.UN(D().avatarStackStyle)()},
class:function(){return D().avatarStackClass}},_.T(_.t_,{data:function(){return D().avatars.reverse()}},{avatarViewModel:function(B,O){return _.T("div",{style:function(){var X,l;
return _.UN((l=(X=D()).avatarStyle)==null?void 0:l.call(X,O()))()},
class:function(){return D().avatarClass}},_.T(_.dj,{data:B.data,
decorations:N,avatarButtonCustomClassName:function(){return D().avatarButtonCustomClassName},
isOverlay:M.isOverlay,clusterLayoutConfig:function(){var X,l;return(l=(X=D()).clusterLayoutConfig)==null?void 0:l.call(X,O())}}))},
decoratedAvatarViewModel:function(B,O){return _.T("div",{style:function(){var X,l;return _.UN((l=(X=D()).avatarStyle)==null?void 0:l.call(X,O()))()},
class:function(){return D().avatarClass}},_.T(_.Km,{data:B.data}))}})))}}),_.T(_.I,{cond:function(){return z().text},
then:function(B){return _.T(_.m3,{text:B,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ca");
_.$h.idomCompat=!0;_.N7(_.Mf(function(M){var z=M.data;var J=M.thumbnailSize;return _.T("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.T("div",{class:_.Qe("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Q6w(J==null?void 0:J())})},_.T(_.t_,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(R){return _.T(_.$h,{data:R.data,
decorations:[5]})}})))},"da"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.zn,
thumbnailSize:_.zn}});var JtV=_.Mf(function(M){M=_.rH(M,{hidden:!1});var z=M.data;return _.T("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:M.hidden},_.T(_.m3,{text:function(){return z().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.T(_.I,{cond:function(){return z().subtitle},
then:function(){return _.T(_.m3,{text:function(){return z().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ea");
JtV.idomCompat=!0;_.N7(JtV,"yt-thumbnail-overlay-title-view-model",{props:{data:_.zn,hidden:_.zn}});var RHS=_.Mf(function(M){M=_.rH(M,{isClip:!1});var z=M.data,J=M.thumbnailSize,R={};return _.T("yt-thumbnail-overlay-badge-view-model",{class:_.Qe("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(z().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var D="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:D="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return D},function(){return U_G(J==null?void 0:J())},(R["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
M.isClip,R))},_.T(_.t_,{data:function(){return z().thumbnailBadges}},{thumbnailBadgeViewModel:function(D){return _.T(CkJ,{data:D.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"fa");
RHS.idomCompat=!0;_.N7(RHS,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.zn,thumbnailSize:_.zn,isClip:_.zn}});_.RO(vZ0);var D_$=_.Mf(function(M){var z=M.data;M=M.hidden;var J=_.o4(function(){return z().indicatorCount||0},void 0,"ItxFlc"),R={};
return _.T("yt-page-indicator-view-model",{class:_.Qe("yt-page-indicator-view-model",(R["yt-page-indicator-view-model__indicator--hidden"]=function(){return!z().indicatorCount},R)),
hidden:M},_.T(_.G4,{each:function(){return Array(J())}},function(D,N){var Z={};
return _.T("div",{class:_.Qe("yt-page-indicator-view-model__indicator",(Z["yt-page-indicator-view-model__indicator--selected"]=function(){return z().selectedIndex===N()},Z))})}))},"ga"),ND$=_.U("mweb_enable_sink_page_indicator_view_model_ks")?vZ0:D_$,P6$=_.U("mweb_enable_sink_page_indicator_view_model_ks")?_.lP(vZ0):D_$;
D_$.idomCompat=!0;_.U("mweb_enable_sink_page_indicator_view_model_ks")?_.Il(ND$,"yt-page-indicator-view-model",{propNames:["data","hidden"]}):_.N7(P6$,"yt-page-indicator-view-model",{props:{data:_.zn,hidden:_.zn}});var u1=function(){var M=_.g.apply(this,arguments)||this;M.eventSink=function(){return M};
M.disableInteraction=!1;M.noRoundedCorners=!1;M.isPreviewLoading=!1;M.isOriginalAspectRatio=!1;M.computedObjectFit=!1;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return M};
_.w(u1,_.g);_.P=u1.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.U("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.P.onImageLoaded=function(){this.loaded=!0};
_.P.onImageUnloaded=function(){this.loaded=!1};
_.P.computeRichThumbnail=function(M,z,J,R){if(M&&z&&!R&&!_.U("disable_moving_thumbs_handling")&&!J)return z};
_.P.computeImageWidth=function(M,z){return z||9999};
_.P.computeIsOriginalAspectRatio=function(M){return M};
_.P.computeIsLive=function(M){if(M==null?0:M.badges)for(var z=0;z<M.badges.length;z++){var J=M.badges[z];if(J.metadataBadgeRenderer&&J.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(M==null?0:M.thumbnailOverlays)for(z=0;z<M.thumbnailOverlays.length;z++)if(J=M.thumbnailOverlays[z],J.thumbnailOverlayTimeStatusRenderer&&J.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.P.computeObjectFit=function(M,z){return z||(M?"CONTAIN":"")};
_.P.computeNavigationEndpoint=function(M,z,J){return M?z:J};
_.P.computeHasClip=function(M){M=_.S(M||[]);for(var z=M.next();!z.done;z=M.next())if(z.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.P.computeOverlayColor=function(M){var z;return(M==null?0:(z=M.darkColorPalette)==null?0:z.section2Color)?M.darkColorPalette.section2Color:M==null?void 0:M.sampledThumbnailColor};
_.rX.Object.defineProperties(u1.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return WMY(this.width)}}});
u1.prototype.onImageUnloaded=u1.prototype.onImageUnloaded;u1.prototype.onImageLoaded=u1.prototype.onImageLoaded;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],u1.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(c0t),_.W("design:type",Object)],u1.prototype,"ytdThumbnailBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],u1.prototype,"componentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],u1.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],u1.prototype,"circular",void 0);
_.u([_.Y({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.W("design:type",Object)],u1.prototype,"richThumbnail",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.W("design:type",Boolean)],u1.prototype,"hasClip",void 0);_.u([_.Y(),_.W("design:type",Object)],u1.prototype,"eventSink",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],u1.prototype,"queued",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],u1.prototype,"richGridThumbnail",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],u1.prototype,"useExpandableTooltip",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],u1.prototype,"useUntranslatedNavigationEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],u1.prototype,"disableInteraction",void 0);
_.u([_.Y({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.W("design:type",Object)],u1.prototype,"computedNavigationEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],u1.prototype,"nowPlayingEqualizerOnly",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],u1.prototype,"hidePlaybackStatus",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],u1.prototype,"objectFit",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],u1.prototype,"noRoundedCorners",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],u1.prototype,"watchFeedThumbnail",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],u1.prototype,"isPreviewLoading",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.W("design:type",Object)],u1.prototype,"isOriginalAspectRatio",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.W("design:type",Object)],u1.prototype,"computedObjectFit",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.W("design:type",Boolean)],u1.prototype,"isLiveVideo",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],u1.prototype,"loaded",void 0);_.u([_.Y({computed:"computeOverlayColor(data.thumbnail)"}),_.W("design:type",Object)],u1.prototype,"overlayColor",void 0);_.u([_.Y({selector:_.fuo}),_.W("design:type",Boolean)],u1.prototype,"inlinePreviewIsEnabled",void 0);_.u([_.Y(),_.W("design:type",Number)],u1.prototype,"width",void 0);
_.u([_.F("inlinePreviewIsEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],u1.prototype,"isPreviewDisabled",null);_.u([_.F("width"),_.W("design:type",String),_.W("design:paramtypes",[])],u1.prototype,"thumbnailSize",null);_.u([_.Xw("image-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u1.prototype,"onImageLoaded",null);
_.u([_.Xw("image-unloaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u1.prototype,"onImageUnloaded",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-thumbnail"})],u1);
var Sr$=_.kS()(u1,"ytd-thumbnail",function(){if(A8a===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);A8a=M}M=A8a;return M},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var x_3=function(M){var z=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14828_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14828_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(J){ZTa(z,J)};
this.onLockupMouseLeaveFn=function(J){J=J.relatedTarget;var R,D;((R=document.getElementsByTagName("ytd-video-preview"))==null?0:(D=R.item(0))==null?0:D.contains(J))||(z.terminateVideoPreview(),qA(z))};
this.onThumbnailMouseDownFn=function(){z.terminateVideoPreview();qA(z)};
this.onTouchStart=function(){z.JSC$14828_touched=!0};
this.mediaRenderer=M.mediaRenderer;this.thumbnailElement=M.thumbnailElement;this.lockupElement=M.lockupElement;this.videoPreviewOptsInput=M.videoPreviewOpts;kv2(this);W8(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)):
_.yA(Error("Ch")):_.yA(Error("Dh")):BDV(this)},M5=function(M){BDV(M);
var z;(z=M.lockupElement)==null||z.removeEventListener("mouseenter",M.onMouseMoveFn);var J;(J=M.lockupElement)==null||J.removeEventListener("mouseleave",M.onLockupMouseLeaveFn);var R;(R=M.lockupElement)==null||R.removeEventListener("touchstart",M.onTouchStart);var D;(D=M.thumbnailElement)==null||D.removeEventListener("mousedown",M.onThumbnailMouseDownFn);qA(M)},kv2=function(M){M.inlinePreviewIsEnabledForUser=_.rA().getState().ui.inlinePreviewIsEnabled;
M.unsubscribeFromInlinePreviewIsEnabled=_.jx(_.rA(),_.fuo,function(z){(M.inlinePreviewIsEnabledForUser=z)||qA(M)});
M.JSC$14828_unsubscribeFromInlinePreviewIsActive=_.jx(_.rA(),_.E98,function(z){(M.inlinePreviewIsActive=z)||qA(M)})},BDV=function(M){M.unsubscribeFromInlinePreviewIsEnabled();
M.unsubscribeFromInlinePreviewIsEnabled=function(){};
M.JSC$14828_unsubscribeFromInlinePreviewIsActive();M.JSC$14828_unsubscribeFromInlinePreviewIsActive=function(){}},ZTa=function(M,z){z.buttons>0||(z=_.NC("kevlar_lockup_hover_delay",-1),M.JSC$14828_touched&&z>=0?(_.no.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.BS(_.no,function(){OTt(M)},z),M.JSC$14828_touched=!1):OTt(M))},B8b=function(M){M.videoPreviewJobId=_.BS(_.no,function(){return _.k(function(z){return z.yield(TDV(M,{isAutoplay:!0}),0)})})},OTt=function(M){!M.previewTriggered&&W8(M)&&
(M.inlinePreviewIsActive&&M.terminateVideoPreview(),M.previewTriggered=!0,M.mediaRenderer.isInlinePreviewTriggered=!0,_.no.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.BS(_.no,function(){return _.k(function(z){return z.yield(TDV(M),0)})}))},TDV=function(M,z){z=z===void 0?{}:z;
var J=z.isAutoplay===void 0?!1:z.isAutoplay;var R,D,N,Z;return _.k(function(B){if(B.nextAddress==1){if(!W8(M))return B.return();R=M.getVideoPreviewOpts();if(!R)return B.return();J&&(R.isAutoplay=!0);return(N=(D=_.ZL(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&D[0])?B.yield(D[0],3):B.jumpTo(2)}B.nextAddress!=2&&(N=B.yieldResult===1);if(N){var O=(Z=M.mediaRenderer)==null?void 0:Z.data;O&&(w1w(O)?delete O.inlinePlayerData:"inlinePlaybackEndpoint"in O&&delete O.inlinePlaybackEndpoint)}_.UI(B)})};
x_3.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var M,z;if((z=(M=this.videoPreviewOptsInput)==null?void 0:M.videoPreviewData)!=null)M=z;else if(M=this.mediaRenderer.data)if(w1w(M))M={inlinePlaybackEndpoint:_.$S(M.inlinePlayerData.onVisible),navigationEndpoint:_.$S(M.onTap),thumbnail:"image"in M?M.image:M.thumbnail,thumbnailOverlays:void 0,accessibilityText:Gvp(M)};else if("multipleInlinePlaybackEndpoint"in M){var J=_.G(_.G(M.multipleInlinePlaybackEndpoint,Yk$),mDQ);if(J!=
null&&J.playerDescriptors){z=[];J=_.S(J.playerDescriptors);for(var R=J.next();!R.done;R=J.next())R=R.value,z.push({inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:Gvp(M)});M=z}else M=void 0}else M={inlinePlaybackEndpoint:M.inlinePlaybackEndpoint,navigationEndpoint:M.navigationEndpoint,thumbnail:M.thumbnail,thumbnailOverlays:M.thumbnailOverlays,accessibilityText:Gvp(M)};else M=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:M,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var W8=function(M){var z;if(z=M.inlinePreviewIsEnabledForUser)z=(M=M.mediaRenderer.data)?"inlinePlaybackEndpoint"in M&&M.inlinePlaybackEndpoint||w1w(M)&&M.inlinePlayerData||"multipleInlinePlaybackEndpoint"in M&&M.multipleInlinePlaybackEndpoint?!0:!1:!1;return z};
x_3.prototype.terminateVideoPreview=function(){_.S9(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var qA=function(M){_.no.cancelJob(M.videoPreviewJobId);M.inlinePreviewIsActive=!1;M.previewTriggered=!1;M.mediaRenderer.isInlinePreviewTriggered=!1};var IjS=_.Ca(["#"]),aS=function(){var M=_.g.apply(this,arguments)||this;M.isDisabled=!1;return M};
_.w(aS,_.g);_.P=aS.prototype;_.P.configureRendererStamper=function(){return{"data.menu":xh,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.getMetadata=function(M){var z=[];if(M.metadataText&&Object.keys(M.metadataText).length>0){var J=this.ytRendererBehavior.getSimpleString(M.metadataText);M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&(J=_.h_(J,Number(M.upcomingEventData.startTime)));z.push(J)}else M.shortViewCountText&&z.push(this.ytRendererBehavior.getSimpleString(M.shortViewCountText)),M.publishedTimeText&&z.push(this.ytRendererBehavior.getSimpleString(M.publishedTimeText)),M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&
(J=this.ytRendererBehavior.getSimpleString(M.upcomingEventData.upcomingEventText),z.push(_.h_(J,Number(M.upcomingEventData.startTime))));return z};
_.P.calculateBylineText=function(M){return M.shortBylineText?M.shortBylineText:M.bylineText?M.bylineText:null};
_.P.calculateIsDisabled=function(M){return!!M.isDisabled};
_.P.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.b30(IjS)};
_.P.onDetailsTap=function(M){var z=this.data&&this.data.navigationEndpoint;z&&!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.U("kevlar_grid_video_renderer_killswitch")?_.Pv(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14835_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:_.SN(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.SN(this.hostElement).querySelector("ytd-thumbnail")})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$14835_inlinePreviewHoverListener)==null||M5(M)};
_.P.computeThumbnailWidth=function(M,z){return z&&z>0?z:M?360:210};
_.P.computeShowChannelThumbnail=function(M,z){var J;return z&&!!(M==null?0:(J=M.channelThumbnailSupportedRenderers)==null?0:J.channelThumbnailWithLinkRenderer)};
_.rX.Object.defineProperties(aS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$14835_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
aS.prototype.dataChanged=aS.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],aS.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],aS.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.bl),_.W("design:type",Object)],aS.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],aS.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],aS.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],aS.prototype,"noEndpoints",void 0);_.u([_.Y({computed:"calculateBylineText(data)"}),_.W("design:type",Object)],aS.prototype,"bylineText",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],aS.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],aS.prototype,"isDownloading",void 0);_.u([_.Y({reflectToAttribute:!0,value:0}),_.W("design:type",Number)],aS.prototype,"width",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.W("design:type",Object)],aS.prototype,"isDisabled",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aS.prototype,"dataChanged",null);_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aS.prototype,"isHovered",null);_.u([_.c({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],aS);
_.d(aS,"ytd-grid-video-renderer",function(){if(c8$!==void 0)return c8$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return c8$=M},{mode:_.B5("kevlar_poly_si_batch_j047")?1:2});var oZQ;var V4=function(){var M=_.g.apply(this,arguments)||this;M.roundedContainer=!0;M.skipRoundingTop=!1;M.disableTopPadding=!1;M.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return M};
_.w(V4,_.g);V4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
V4.prototype.onClick=function(M){var z,J=(z=this.data)==null?void 0:z.sourceEndpoint;!_.bP(_.CX(M),this.hostElement,["A".toString()])&&J&&_.Pv(this.hostElement,"yt-navigate",{endpoint:J})};
_.rX.Object.defineProperties(V4.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.data)==null?void 0:M.paragraphMaxLines)!=null?z:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],V4.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],V4.prototype,"showVerticalDividers",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],V4.prototype,"roundedContainer",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],V4.prototype,"skipRoundingTop",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],V4.prototype,"disableTopPadding",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],V4.prototype,"amsterdamEnabled",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],V4.prototype,"showMetadataAtTop",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],V4.prototype,"showMetadataBelowTitle",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],V4.prototype,"hasMenu",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.truncateParagraphs"),_.W("design:type",Object),_.W("design:paramtypes",[])],V4.prototype,"truncateParagraphs",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.paragraphMaxLines"),_.W("design:type",Number),_.W("design:paramtypes",[])],V4.prototype,"paragraphMaxLines",null);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.F("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],V4.prototype,"background",null);_.u([_.c({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],V4);
_.d(V4,"ytd-info-panel-content-renderer",function(){if(oZQ!==void 0)return oZQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oZQ=M},{mode:_.B5("kevlar_poly_si_batch_j076")?1:2});var X1B;var ljQ;var eHQ;var Q6$;var EL=function(){return _.g.apply(this,arguments)||this};
_.w(EL,_.g);EL.prototype.computeStyle=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],EL.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],EL.prototype,"style_",void 0);_.u([_.cU({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],EL);
_.d(EL,"yt-channel-thumbnail-with-link-renderer",function(){if(Q6$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;eHQ===void 0&&(eHQ=document.createElement("template"));var R=eHQ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Q6$=M}M=Q6$;return M},{mode:2});var fm=function(){var M=_.g.apply(this,arguments)||this;M.modernTypography=_.U("web_modern_typography");return M};
_.w(fm,_.g);fm.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"}}}};
fm.prototype.computeTitleStyle=function(M){return M||null};
fm.prototype.computeAvatarStyle=function(M){return M||null};
fm.prototype.computeShowNavigationButton=function(M,z){return!(M==null||!M.navigationButton||z)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fm.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.W("design:type",String)],fm.prototype,"titleStyle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.W("design:type",String)],fm.prototype,"avatarStyle",void 0);_.u([_.Y(),_.W("design:type",Boolean)],fm.prototype,"hideNavigationButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],fm.prototype,"isModernSd",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],fm.prototype,"modernTypography",void 0);
_.u([_.c({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],fm);
_.d(fm,"ytd-rich-list-header-renderer",function(){if(ljQ!==void 0)return ljQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ljQ=M},{mode:_.B5("kevlar_poly_si_batch_j058")?1:2});var Lm=function(){return _.g.apply(this,arguments)||this};
_.w(Lm,_.g);Lm.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]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Lm.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Lm.prototype,"isSearch",void 0);_.u([_.c({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Lm);
_.d(Lm,"ytd-preview-card-renderer",function(){if(X1B!==void 0)return X1B;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return X1B=M},{mode:1});var U_J;var A3=function(){return _.g.apply(this,arguments)||this};
_.w(A3,_.g);A3.prototype.configureRendererStamper=function(){return{"data.menu":xh}};
A3.prototype.dataChanged=function(){var M=this.get("colorExtractionPalette.section1Color",this.data);M=_.u7(M);_.Tp(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":M})};
A3.prototype.computeCardStyle=function(M){return this.get("style.value",M)||null};
A3.prototype.dataChanged=A3.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],A3.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],A3.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.W("design:type",String)],A3.prototype,"cardStyle",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],A3);
_.d(A3,"ytd-compact-channel-recommendation-card-renderer",function(){if(U_J!==void 0)return U_J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return U_J=M},{mode:1});var vZ2;var Gva;var i1=function(){var M=_.g.apply(this,arguments)||this;M.alignAuto=!1;M.collapsed=!0;M.isToggled=!1;M.alwaysCollapsed=!1;M.canToggle=!0;M.collapsedHeight=80;M.disableToggle=!1;M.alwaysToggleable=!1;M.reversed=!1;M.shouldUseNumberOfLines=!1;M.recomputeOnResize=!1;M.canToggleJobId=0;M.lastReversed=!1;return M};
_.w(i1,_.g);_.P=i1.prototype;_.P.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.P.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.P.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var M=_.SN(this.hostElement),z=M.childNodes,J=document.createDocumentFragment(),R=M.childNodes.length-1;R>=0;R--)_.SN(J).appendChild(z[R]);_.U("enable_shadydom_free_scoped_node_methods")?_.ZE(this.hostElement).appendChild(J):M.appendChild(J)}};
_.P.ready=function(){var M=this;_.au(function(){M.initChildrenObserver()},1)};
_.P.attached=function(){var M;(M=this.resizeObserver)==null||M.observe(this.content)};
_.P.detached=function(){this.detachObserver()};
_.P.toggle=function(M,z){this.canToggle&&(this.isToggled=z,_.Pv(this.hostElement,"yt-refit"),M&&M.stopPropagation())};
_.P.reset=function(){this.childrenChanged()};
_.P.onIronResize=function(){this.recomputeOnResize&&!_.U("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.P.computeIsMoreVisible=function(M,z){return M&&!z};
_.P.computeShouldUseNumberOfLines=function(M){try{return!!M&&window.CSS.supports("-webkit-line-clamp","1")}catch(z){}return!1};
_.P.computeIsLessVisible=function(M,z){return M&&z};
_.P.observeCollapsedHeightAndMaxLines=function(){var M=this.collapsedHeight,z=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Tp(this.hostElement,{"--ytd-expander-max-lines":""+z,"--ytd-expander-collapsed-height":""}):_.Tp(this.hostElement,{"--ytd-expander-collapsed-height":M+"px","--ytd-expander-max-lines":""})};
_.P.handleMoreTap=function(M){this.disableToggle||(_.Pv(this.hostElement,"yt-expander-more-tapped"),this.toggle(M,!0))};
_.P.handleLessTap=function(M){_.Pv(this.hostElement,"yt-expander-less-tapped");this.toggle(M,!1)};
_.P.initChildrenObserver=function(){var M=this;this.observer=new MutationObserver(function(){M.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.U("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.A_(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var z;(z=M.resizeThrottle)==null||z.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.P.childrenChanged=function(){var M=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){kn(function(){M.canToggleJobId=0;M.calculateCanCollapse()})}))};
_.P.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.P.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.P.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("collapsed-changed",this.collapsed))};
_.P.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("is-toggled-changed",this.isToggled))};
_.P.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("can-toggle-changed",this.canToggle))};
_.rX.Object.defineProperties(i1.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
i1.prototype.canToggleChangedForBinding=i1.prototype.canToggleChangedForBinding;i1.prototype.isToggledChangedForBinding=i1.prototype.isToggledChangedForBinding;i1.prototype.collapsedChangedForBinding=i1.prototype.collapsedChangedForBinding;i1.prototype.observeCollapsedHeightAndMaxLines=i1.prototype.observeCollapsedHeightAndMaxLines;i1.prototype.onIronResize=i1.prototype.onIronResize;i1.prototype.reversedChanged=i1.prototype.reversedChanged;i1.prototype.toggledChanged=i1.prototype.toggledChanged;
i1.prototype.alwaysToggleableChanged=i1.prototype.alwaysToggleableChanged;_.u([_.p(_.Hw),_.W("design:type",Object)],i1.prototype,"ironResizableBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"alignAuto",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"collapsed",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"isToggled",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"alwaysCollapsed",void 0);
_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"canToggle",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"collapsedHeight",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"disableToggle",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"alwaysToggleable",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"reversed",void 0);_.u([_.Y(),_.W("design:type",Number)],i1.prototype,"maxNumberOfLines",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.W("design:type",Object)],i1.prototype,"shouldUseNumberOfLines",void 0);_.u([_.Y(),_.W("design:type",Object)],i1.prototype,"recomputeOnResize",void 0);_.u([_.Qc("#content"),_.W("design:type",HTMLDivElement)],i1.prototype,"content",void 0);_.u([_.wH("alwaysToggleable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"alwaysToggleableChanged",null);
_.u([_.wH("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"toggledChanged",null);_.u([_.F("canToggleJobId"),_.W("design:type",Object),_.W("design:paramtypes",[])],i1.prototype,"isResetting",null);_.u([_.la("reversed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"reversedChanged",null);
_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onIronResize",null);_.u([_.la("maxNumberOfLines","collapsedHeight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"observeCollapsedHeightAndMaxLines",null);_.u([_.la("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"collapsedChangedForBinding",null);
_.u([_.la("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"isToggledChangedForBinding",null);_.u([_.la("canToggle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"canToggleChangedForBinding",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-expander"})],i1);
_.d(i1,"ytd-expander",function(){if(Gva!==void 0)return Gva;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Gva=M},{mode:1});var Cm=function(){return _.g.apply(this,arguments)||this};
_.w(Cm,_.g);Cm.prototype.computeIsCarousel=function(M){return!!M.isCarousel};
Cm.prototype.observeLightsourcePalette=function(){var M,z=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;z&&_.g4(this.hostElement,z)};
Cm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Cm.prototype.observeLightsourcePalette=Cm.prototype.observeLightsourcePalette;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Cm.prototype,"data",void 0);_.u([_.Y({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Cm.prototype,"isCarousel",void 0);
_.u([_.la("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Cm.prototype,"observeLightsourcePalette",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Cm);
_.d(Cm,"ytd-media-upsell-renderer",function(){if(vZ2!==void 0)return vZ2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vZ2=M},{mode:2});var w1$;var b1=function(){var M=_.g.apply(this,arguments)||this;M.JSC$14863_playerEvents=new Map;M.listeningToPlayer=!1;M.startX=0;M.active=!1;M.shouldShowButtons=_.U("web_buttons_hidden_killswitch");M.isHighlighted=!1;M.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");M.modern=_.U("kevlar_modern_sd");M.enableProblemWalkthrough=_.U("problem_walkthrough_sd");return M};
_.w(b1,_.g);_.P=b1.prototype;
_.P.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.P.created=function(){this.JSC$14863_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ou(this,this.onRepeatButtonToggle));_.U("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ou(this,this.onActiveUpdate))};
_.P.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ou(this,this.onRepeatButtonToggle));_.U("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ou(this,this.onActiveUpdate))};
_.P.onDataChanged=function(){this.removePlayerListeners()};
_.P.onColorPaletteChange=function(){var M={},z;if(_.gB()==="USER_INTERFACE_THEME_DARK"&&((z=this.data)==null?0:z.darkColorPalette)){var J=this.data.darkColorPalette;M["--ytd-macro-markers-list-item-background-color"]=_.qG(this.get("section2Color",J))}else{var R;_.gB()==="USER_INTERFACE_THEME_LIGHT"&&((R=this.data)==null?0:R.lightColorPalette)&&(J=this.data.lightColorPalette,M["--ytd-macro-markers-list-item-background-color"]=_.qG(this.get("section3Color",J)))}J?(M["--ytd-macro-markers-list-item-title-color"]=
_.qG(this.get("primaryTitleColor",J)),M["--ytd-macro-markers-list-item-secondary-color"]=_.qG(this.get("secondaryTitleColor",J)),M["--ytd-macro-markers-list-item-timestamp-background-color"]=_.qG(this.get("section1Color",J)),this.customButtonProperties={customColors:{color:_.qG(this.get("primaryTitleColor",J))}},this.useColorSampling=!0):(M["--ytd-macro-markers-list-item-background-color"]="initial",M["--ytd-macro-markers-list-item-title-color"]="initial",M["--ytd-macro-markers-list-item-secondary-color"]=
"initial",M["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Tp(this.hostElement,M)};
_.P.onEndpointMouseDown=function(M){this.startX=M.clientX};
_.P.onEndpointClick=function(M){var z=this,J,R,D;return _.k(function(N){if(N.nextAddress==1){if(z.startX!==M.clientX)return M.preventDefault(),N.return();z.data&&z.ytRendererBehavior.logExplicitClick(z.data);if(!z.seekWithAnimationOnClick)return N.jumpTo(0);if(M.button!==0||M.shiftKey||M.altKey||M.metaKey||M.ctrlKey||_.bP(_.CX(M),z.hostElement,["BUTTON".toString()]))return N.return();M.stopPropagation();M.preventDefault();return z.data?N.yield(_.R9().getPlayerPromise(),3):N.return()}J=N.yieldResult;
D=(R=_.G(z.data.onTap,_.Au))==null?void 0:R.startTimeSeconds;D!==void 0&&J.seekToTimeWithAnimation(D*1E3,_.CD(z.data.title));_.UI(N)})};
_.P.computeLayout=function(M){return M};
_.P.computeIsHighlighted=function(M){return!!M};
_.P.computeCarouselType=function(M){return M};
_.P.hideModernCarousel=function(M){return this.modern&&this.hideThumbnail(M)};
_.P.hideThumbnail=function(M){return this.enableProblemWalkthrough&&M!==null&&M==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.P.onRepeatButtonToggle=function(M){var z=this;M.detail.toggled&&_.R9().getPlayerPromise().then(function(J){z.ytPlayerListenerBehavior.listenToPlayerEvents(J,z.JSC$14863_playerEvents);z.listeningToPlayer=!0})};
_.P.onLoopRangeChange=function(M){var z=_.SN(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(z){var J=z.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",z.polymerController.data);if(J){var R=Number(J.endTimeMs);if(Number(J.startTimeMs)!==(M==null?void 0:M.startTimeMs)||R!==(M==null?void 0:M.endTimeMs))z.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.P.removePlayerListeners=function(){var M=this;this.listeningToPlayer&&_.R9().getPlayerPromise().then(function(z){M.ytPlayerListenerBehavior.unlistenFromPlayerEvents(z,M.JSC$14863_playerEvents);M.listeningToPlayer=!1})};
_.P.onActiveUpdate=function(M){this.active=M.detail.active};
b1.prototype.onColorPaletteChange=b1.prototype.onColorPaletteChange;b1.prototype.onDataChanged=b1.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],b1.prototype,"ytPlayerListenerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],b1.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],b1.prototype,"useCustomColors",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],b1.prototype,"active",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],b1.prototype,"shouldShowButtons",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.W("design:type",String)],b1.prototype,"layout",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.W("design:type",Object)],b1.prototype,"isHighlighted",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],b1.prototype,"useHighlightStyling",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],b1.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],b1.prototype,"enableProblemWalkthrough",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.W("design:type",String)],b1.prototype,"carouselType",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],b1.prototype,"useColorSampling",void 0);_.u([_.Y(),_.W("design:type",Boolean)],b1.prototype,"seekWithAnimationOnClick",void 0);_.u([_.Y(),_.W("design:type",Object)],b1.prototype,"customButtonProperties",void 0);
_.u([_.Qc("#repeat-button"),_.W("design:type",HTMLElement)],b1.prototype,"repeatButton",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onDataChanged",null);_.u([_.la("data.lightColorPalette","data.darkColorPalette"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onColorPaletteChange",null);_.u([_.c({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],b1);
_.d(b1,"ytd-macro-markers-list-item-renderer",function(){if(w1$!==void 0)return w1$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return w1$=M},{mode:1});var x_k;var t8Q;var rj=function(){var M=_.g.apply(this,arguments)||this;M.modernTypography=_.U("web_modern_typography");return M};
_.w(rj,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rj.prototype,"modernTypography",void 0);_.u([_.Y(),_.W("design:type",Object)],rj.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],rj);
_.d(rj,"ytd-title-and-button-list-header-renderer",function(){if(t8Q!==void 0)return t8Q;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return t8Q=M},{mode:1});var j6J;var p1B=new _.Nh("BUTTON_RENDERER_WIZ_TOKEN"),FDt=new _.Nh("BUTTON_RENDERER_TOKEN");_.ML=_.Mf(function(M){var z=_.JF().resolve(_.zw(p1B));if(z)return _.T(z,Object.assign({},M));var J=_.JF().resolve(FDt);return J?_.T(XXn,null,function(){return _.T(Cc,null,function(){var R,D,N,Z,B,O,X,l,e,Q,v,x;return void J(M.data(),{onButtonClickCallback:M.onButtonClickCallback,shouldShowIcons:(R=M.shouldShowIcons)==null?void 0:R.call(M),icon:(D=M.icon)==null?void 0:D.call(M),processAllEndpoints:(N=M.processAllEndpoints)==null?void 0:N.call(M),preventDefault:(Z=M.preventDefault)==null?void 0:Z.call(M),
stopPropagation:(B=M.stopPropagation)==null?void 0:B.call(M),disableButtonRendererClickHandling:(O=M.disableButtonRendererClickHandling)==null?void 0:O.call(M),className:(X=M.className)==null?void 0:X.call(M),buttonOverrides:(l=M.buttonOverrides)==null?void 0:l.call(M),forceModernIconButton:(e=M.forceModernIconButton)==null?void 0:e.call(M),isSubscribe:(Q=M.isSubscribe)==null?void 0:Q.call(M),alignByText:(v=M.alignByText)==null?void 0:v.call(M),forceDisabled:(x=M.forceDisabled)==null?void 0:x.call(M)})})}):
_.T(_.MH,null)},"ha");
_.ML.idomCompat=!0;var Yrg=_.Mf(function(M){var z=M.data,J=_.ba(M.useSquareAspectRatio,!1);return _.T("dismissed-mini-game-card-view-model",null,_.T(_.I,{cond:function(){var R,D;return(R=z().responseText)==null?void 0:(D=R.runs)==null?void 0:D.length},
then:function(){var R={};return _.T("div",{class:_.Qe("yt-mini-game-card-view-model__dismissed-card",(R["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!J()},R["yt-mini-game-card-view-model--dismissed-square-card"]=J,R))},_.T("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.T(_.I,{cond:function(){return z().responseText.runs[0].text},
then:function(D){return _.T("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:D},D)}}),_.T(_.t_,{data:function(){return z().buttons}},{buttonRenderer:_.ML,
buttonViewModel:_.lT})))}}))},"ia");var HTu=_.Mf(function(M){M=_.rH(M,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var z=M.data,J=M.useFullWidth,R=M.isDesktopWeb,D=M.addSearchResultTopMargin,N=function(){return z().layout},Z=function(){return z().title},B=function(){return z().metadataText?z().metadataText:z().genre},O=function(){return z().channelName},X=function(){return z().image},l=function(){return z().colorPalette},e=function(){return z().actionButton},Q=function(){return z().overflowButton},
v=function(){return z().avatar},x=function(){var q={};
q=_.Qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(q["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return R()},q));
return _.T("div",{class:q},_.T(m_S,{imageData:X,colorPalette:l}),_.T(gZg,{onTap:function(){return z().onTap},
imageData:X,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.T(_.I,{cond:function(){return!R()},
then:function(){return _.T(_.MH,null,_.T(s6p,{layout:N,colorPalette:l,isDesktopWeb:R,overflowButton:Q,avatar:v,onTap:function(){return z().onTap},
genre:B,title:Z,channelName:O}),_.T(nZQ,{actionButton:e}))}}))},m=function(){var q={};
q=_.Qe((q["yt-mini-game-card-view-model--search-result-desktop"]=function(){return R()},q["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!R()},q["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return D()},q));
return _.T("div",{class:q},x(),_.T(hH$,{description:function(){return z().description},
isDesktopWeb:R,title:Z,genre:B,onTap:function(){return z().onTap},
actionButton:e,overflowButton:Q,avatar:v,channelName:O}))},y=function(){var q={};
q=_.Qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(q["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return R()},q["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return R()&&z().width===135},q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return R()},q["yt-mini-game-card-view-model--big-metadata-font"]=function(){return z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},q["yt-mini-game-card-view-model--use-full-width"]=
function(){return J()},q["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!e()},q));
return _.T("div",{class:q},_.T(ytQ,{colorPalette:l,isDesktopWeb:R,onTap:function(){return z().onTap},
accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
actionButton:e,imageData:X}),_.T(s6p,{layout:N,colorPalette:l,isDesktopWeb:R,overflowButton:Q,avatar:v,onTap:function(){return z().onTap},
genre:B,title:Z,channelName:O}))},H=function(){var q={};
q=_.Qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(q["yt-mini-game-card-view-model--square-card-desktop"]=function(){return R()},q["yt-mini-game-card-view-model--use-full-width"]=function(){return J()},q));
return _.T("div",{class:q},_.T(gZg,{onTap:function(){return z().onTap},
imageData:X,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.T(s6p,{layout:N,colorPalette:l,isDesktopWeb:R,overflowButton:Q,avatar:v,onTap:function(){return z().onTap},
genre:B,title:Z,channelName:O}))};
return _.T("mini-game-card-view-model",{class:M.className},_.T(_.tg,null,_.T(_.w3,{when:function(){return N()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return y()}),_.T(_.w3,{when:function(){return N()==="MINI_APP_LAYOUT_SQUARE"}},function(){return H()}),_.T(_.w3,{when:function(){return N()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return m()})))},"ja");
HTu.idomCompat=!0;var nZQ=_.Mf(function(M){var z=_.ba(M.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.T(_.t_,{data:M.actionButton},{buttonViewModel:function(J){return _.T("div",{class:z},_.T(_.lT,{data:J.data}))}})},"ka"),gZg=_.Mf(function(M){var z=M.onTap;
var J=M.imageData;var R=M.accessibilityText;var D=M.overlayBadgeText;var N=M.iconName;var Z=M.unplayableInlinePlaybackIconName;M=M.isDesktopWeb;return _.T(_.a9,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:z},_.T(_.rv,{data:J,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(R==null?void 0:R())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.T(ctu,{overlayBadgeText:D,iconName:N,unplayableInlinePlaybackIconName:Z,isDesktopWeb:M}))},"la"),ctu=_.Mf(function(M){var z=M.overlayBadgeText;
var J=M.iconName;var R=M.unplayableInlinePlaybackIconName;var D=M.isDesktopWeb;return _.T("div",{class:"yt-mini-game-card-view-model__badge-container"},_.T(_.I,{cond:J,then:function(N){return _.T("div",{class:"yt-mini-game-card-view-model__badge"},_.T("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.T(_.vS,{icon:N,className:"yt-mini-game-card-view-model__icon",size:12}),_.T("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},z)))}}),_.T(_.I,{cond:function(){return!J()&&
z()},
then:function(){return _.T("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},z)}}),_.T(_.I,{cond:function(){return R()&&D()},
then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.T(_.vS,{icon:R,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ma"),m_S=_.Mf(function(M){var z=M.colorPalette;
var J=M.imageData;var R=function(){return z().vibrantColorPalette?z().vibrantColorPalette.section2Color:z().sectionTwoColor};
return _.T(_.MH,null,_.T("div",{class:"yt-mini-game-card-view-model__background-base",style:_.UN({"background-color":function(){return WP(R(),"1")}})}),_.T("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.UN({"background-image":function(){return"url("+J().sources[0].url+")"}})}),_.T("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.UN({background:function(){return"linear-gradient(180deg,\n    "+WP(R(),".8")+" 0%,\n    "+WP(R(),".4")+" 25%,\n    "+WP(z().vibrantColorPalette?z().vibrantColorPalette.section4Color:z().sectionFourColor,".8")+" 100%)"}})}))},"na"),s6p=_.Mf(function(M){var z=M.layout;
var J=M.colorPalette;var R=M.overflowButton;var D=M.avatar;var N=M.onTap;var Z=M.title;var B=M.channelName;var O=M.genre;var X=function(){var l;return z()!=="MINI_APP_LAYOUT_SQUARE"&&((l=J())==null?0:l.textPrimaryColor)?"color: "+WP(J().textPrimaryColor,".7"):""};
return _.T("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.T(_.I,{cond:D,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.t_,{data:D},{avatarViewModel:_.dj}))}}),_.T(_.a9,{command:N,
className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.T(_.I,{cond:D,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.T("span",{class:"yt-mini-game-card-view-model__genre",title:B,style:X},B),_.T("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:X},O))},
else:function(){return _.T("span",{class:"yt-mini-game-card-view-model__genre",title:O},O)}})),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.t_,{data:R},{buttonViewModel:function(l){var e=l.data;
return _.T(_.lT,{data:function(){return Object.assign({},e(),{customFontColor:z()==="MINI_APP_LAYOUT_SINGLETON"?e().customFontColor:void 0})}})}})))},"oa"),ytQ=_.Mf(function(M){var z=M.colorPalette;
var J=M.isDesktopWeb;var R=M.onTap;var D=M.accessibilityText;var N=M.overlayBadgeText;var Z=M.iconName;var B=M.unplayableInlinePlaybackIconName;var O=M.actionButton;M=M.imageData;return _.T("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.T(m_S,{imageData:M,colorPalette:z}),_.T(gZg,{onTap:R,imageData:M,accessibilityText:D,overlayBadgeText:N,iconName:Z,unplayableInlinePlaybackIconName:B,isDesktopWeb:J}),_.T(_.I,{cond:function(){return O==null?void 0:O()},
then:function(){return _.T(nZQ,{actionButton:O})}}))},"pa"),hH$=_.Mf(function(M){var z=M.description;
var J=M.isDesktopWeb;var R=M.title;var D=M.genre;var N=M.onTap;var Z=M.actionButton;var B=M.overflowButton;var O=M.avatar;M=M.channelName;var X={};X=_.Qe("yt-mini-game-card-view-model--search-result-metadata-wrapper",(X["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=J,X["yt-mini-game-card-view-model--show-unplayable-on-hover"]=J,X["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!J()},X));
var l={};l=_.Qe("yt-mini-game-card-view-model__search-result-info-row",(l["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!J()},l));
return _.T("div",{class:X},_.T("div",{class:l},_.T(_.a9,{command:N,className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.T("span",{class:"yt-mini-game-card-view-model__genre",title:D},D)),_.T(nZQ,{actionButton:Z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.t_,{data:B},{buttonViewModel:_.lT}))),_.T("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.T("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.t_,{data:O},{avatarViewModel:function(e){var Q=e.data;return _.T(_.dj,{data:function(){return Object.assign({},Q(),{avatarImageSize:J()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.T(_.a9,{command:N,
className:"yt-mini-game-card-view-model__description"},_.T("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},M)),_.T(_.a9,{command:N,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.T("div",null)))),_.T(_.I,{cond:J,then:function(){return _.T(_.a9,{command:N,className:"yt-mini-game-card-view-model__description"},z)}}))},"qa");_.N7(HTu,"mini-game-card-view-model",{props:{data:_.zn,className:_.zn,useFullWidth:_.zn,isDesktopWeb:_.zn,addSearchResultTopMargin:_.zn}});_.N7(Yrg,"dismissed-mini-game-card-view-model",{props:{data:_.zn,useSquareAspectRatio:_.zn}});var zM=function(){var M=_.g.apply(this,arguments)||this;M.isSearch=!1;M.isRichGrid=!1;return M};
_.w(zM,_.g);_.P=zM.prototype;_.P.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.P.dismissibleItemOnYtServiceRequestSent=function(M,z){z.actions&&this.dismissibleItemProcessActions(M,z.actions)};
_.P.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.P.dataChanged=function(){this.dismissibleItemReset()};
_.P.dismissibleItemProcessActions=function(M,z){for(var J=0;J<z.length;J++){var R=z[J];_.G(R,_.YB)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.G(R,_.YB)),M.stopPropagation())}};
_.P.dismissibleItemHandleReplaceEnclosingAction=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0};
_.rX.Object.defineProperties(zM.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var M;return!!this.data&&!((M=this.dismissedRenderer)==null?0:M.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.dismissedRenderer)==null||!M.notificationMultiActionRenderer)}}});
zM.prototype.dataChanged=zM.prototype.dataChanged;zM.prototype.dismissibleItemOnRequestSent=zM.prototype.dismissibleItemOnRequestSent;zM.prototype.dismissibleItemOnYtServiceRequestSent=zM.prototype.dismissibleItemOnYtServiceRequestSent;_.u([_.Y(),_.W("design:type",Object)],zM.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],zM.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],zM.prototype,"isDismissed",void 0);
_.u([_.Y(),_.W("design:type",Object)],zM.prototype,"dismissedRenderer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],zM.prototype,"isRichGrid",void 0);_.u([_.F("data.layout"),_.W("design:type",Object),_.W("design:paramtypes",[])],zM.prototype,"useSquareAspectRatio",null);_.u([_.F("data","dismissedRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],zM.prototype,"showCard",null);
_.u([_.F("data","dismissedRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],zM.prototype,"showDismissed",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],zM.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],zM.prototype,"dismissibleItemOnRequestSent",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zM.prototype,"dataChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],zM);
_.d(zM,"ytd-mini-game-card-view-model",function(){if(j6J!==void 0)return j6J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return j6J=M},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var d_2;var KDV;var JU=function(){return _.MI.apply(this,arguments)||this};
_.w(JU,_.MI);JU.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
JU.prototype.getContinuationUrl=function(M){var z={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.Ag(M,z)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JU.prototype,"data",void 0);_.u([_.cU({is:"yt-reload-continuation",noInjection:!0})],JU);var $_2;var uWg;var R5=function(){var M=_.g.apply(this,arguments)||this;M.notificationData={};return M};
_.w(R5,_.g);_.P=R5.prototype;_.P.isMenuExpanded=function(M){return M&&M.length<=1?"undefined":"false"};
_.P.dataChanged_=function(){this.selected=void 0;var M=this.computeSelectedIndex_(this.data);M>=0&&(this.selected=M);M=this.data&&this.data.length>1;_.kz(this.hostElement,"has-items",M);_.SN(this.hostElement).querySelector("#label").tabIndex=M?0:-1};
_.P.onDropdownOpen=function(){var M=_.y5();if(this.parentTrackingParams&&this.data){var z=_.pe(this.parentTrackingParams);this.data.forEach(function(J){M&&z&&J.trackingParams&&(J=_.pe(J.trackingParams),_.qs(M,z,J),_.VC(M,[J]))})}else this.parentTrackingParams||_.yA(new _.xN("No parent tracking params passed in for yt-dropdown-menu."))};
_.P.hasNotification=function(M){var z;if(M.targetId&&((z=this.notificationData)==null?0:z.targetId)){var J;return M.targetId===((J=this.notificationData)==null?void 0:J.targetId)}};
_.P.computeSelectedIndex_=function(M){if(M)for(var z=0,J=M.length;z<J;z++)if(M[z].selected)return z;return-1};
_.P.computeLabel_=function(M){return this.data&&M!=void 0?this.data[M].title:""};
_.P.computeShowIcon_=function(M,z){return!z&&!!M};
_.P.computeVerticalOffset_=function(M){return M?36:0};
_.P.computeEndpoint_=function(M){return M.endpoint||M.navigationEndpoint};
_.P.onLabelClick_=function(M){this.data&&this.data.length<=1?M.stopPropagation():this.menuExpanded="true"};
_.P.onIronActivate_=function(M){M=M.detail.item;var z=_.SN(this.hostElement).querySelector("#repeat").itemForElement(M);if(z&&z.trackingParams){var J=_.y5(),R=_.pe(z.trackingParams);J&&_.fY(J,R)}if(z&&z.serviceEndpoint)_.U("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(z.serviceEndpoint):_.kQ(this.hostElement,[z.serviceEndpoint]),_.Pv(this.hostElement,"yt-playlist-reloading");else a:{if((z=M.querySelector("yt-supported-renderers"))&&
(z=z.rendererElement)&&z.is=="yt-reload-continuation"){z.trigger();break a}(M=M.querySelector("yt-reload-continuation"))&&M.trigger()}};
_.P.onTap_=function(M){M.preventDefault()};
_.P.onItemTap_=function(M){this.ytEndpointBehavior.onEndpointTap_(M)};
_.P.onLinkFocus_=function(M){try{var z=M.target}catch(R){}if(z){var J=z.querySelector("tp-yt-paper-item");J&&_.Vc(this,"focus",function(){J.focus()})}};
_.P.onMenuClose_=function(){this.menuExpanded="false"};
_.P.isLabelIconActive_=function(M){return M==="true"};
_.P.computeHasSubtitle_=function(M){return!!M};
_.P.computeHrefForItem_=function(M){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(M))};
_.P.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
_.rX.Object.defineProperties(R5.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
R5.prototype.onMenuClose_=R5.prototype.onMenuClose_;R5.prototype.onTap_=R5.prototype.onTap_;R5.prototype.onIronActivate_=R5.prototype.onIronActivate_;R5.prototype.onDropdownOpen=R5.prototype.onDropdownOpen;R5.prototype.dataChanged_=R5.prototype.dataChanged_;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],R5.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],R5.prototype,"ytEndpointBehavior",void 0);
_.u([_.Y(),_.W("design:type",Array)],R5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],R5.prototype,"parentTrackingParams",void 0);_.u([_.Y(),_.W("design:type",Object)],R5.prototype,"selected",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],R5.prototype,"useLabel",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],R5.prototype,"useComputedAriaLabel",void 0);_.u([_.Y(),_.W("design:type",String)],R5.prototype,"icon",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],R5.prototype,"iconLabel",void 0);_.u([_.Y(),_.W("design:type",String)],R5.prototype,"ariaLabel",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],R5.prototype,"disabled",void 0);_.u([_.Y({computed:"isMenuExpanded(data)"}),_.W("design:type",String)],R5.prototype,"menuExpanded",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],R5.prototype,"closeOnActivate",void 0);
_.u([_.Y({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.W("design:type",Boolean)],R5.prototype,"modernButtons",void 0);_.u([_.Y(),_.W("design:type",Object)],R5.prototype,"notificationData",void 0);_.u([_.F("ariaLabel, selected"),_.Y(),_.W("design:type",String),_.W("design:paramtypes",[])],R5.prototype,"computedAriaLabel",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R5.prototype,"dataChanged_",null);
_.u([_.Xw("paper-dropdown-open"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],R5.prototype,"onDropdownOpen",null);_.u([_.Xw("iron-activate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],R5.prototype,"onIronActivate_",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],R5.prototype,"onTap_",null);
_.u([_.Xw("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],R5.prototype,"onMenuClose_",null);_.u([_.cU({is:"yt-dropdown-menu",disableElementRegistration:!0})],R5);
_.d(R5,"yt-dropdown-menu",function(){if(uWg===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;$_2===void 0&&($_2=document.createElement("template"));var R=$_2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);uWg=M}M=uWg;return M},{mode:2});var D7=function(){var M=_.g.apply(this,arguments)||this;M.hasNotification=!1;return M};
_.w(D7,_.g);D7.prototype.computeId=function(M){return M};
D7.prototype.computeHorizontalAlign=function(M){return M?"right":"left"};
D7.prototype.computeAccessibilityLabel=function(M){var z,J;return((z=M.accessibility)==null?void 0:(J=z.accessibilityData)==null?void 0:J.label)||null};
D7.prototype.notificationDataChanged=function(){var M;this.hasNotification=!!this.notificationData&&!((M=this.data)==null?0:M.icon)};
D7.prototype.notificationDataChanged=D7.prototype.notificationDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.fZ.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],D7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],D7.prototype,"data",void 0);_.u([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],D7.prototype,"id",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],D7.prototype,"isRightAligned",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],D7.prototype,"disabled",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],D7.prototype,"closeOnActivate",void 0);_.u([_.Y(),_.W("design:type",Object)],D7.prototype,"notificationData",void 0);_.u([_.Y(),_.W("design:type",Object)],D7.prototype,"hasNotification",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],D7.prototype,"useComputedAriaLabel",void 0);_.u([_.la("notificationData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"notificationDataChanged",null);_.u([_.cU({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],D7);
_.d(D7,"yt-sort-filter-sub-menu-renderer",function(){if(KDV===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;d_2===void 0&&(d_2=document.createElement("template"));var R=d_2;J.call(z,R.content.cloneNode(!0),M.content.firstChild);KDV=M}M=KDV;return M},{mode:2});var qr$=_.lP(t8n);_.RO(t8n);_.N7(qr$,"place-data-view-model",{props:{data:_.zn}});var WDk=new _.Nh("INLINE_PLAYBACK_HOOK_TOKEN");var aj2=function(M){this.setActiveSlideIndex=M;this.jobIds=[];this.isSlideshowPlaying=!1},fjQ=function(M,z){M.isSlideshowPlaying||(M.isSlideshowPlaying=!0,V8$(M),EZV(M,z,0))},V8$=function(M){_.BS(_.no,function(){M.setActiveSlideIndex(0)},1)},EZV=function(M,z,J){M.jobIds.push(_.BS(_.no,function(){var R=J<z-1?J+1:0;
M.setActiveSlideIndex(R);EZV(M,z,R)},1800))};var LDu=new _.Nh("IMAGE_ON_LOAD_HANDLER_TOKEN");var At2=_.Mf(function(M){return _.T("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.T(_.I,{cond:function(){var z;return(z=M.data())==null?void 0:z.thumbnail},
then:function(z){return _.T(_.rv,{data:z,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ra");_.iTJ=_.Mf(function(M){var z=M.data;var J=M.lockupExperiments;M={};return _.T("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.T("div",{class:_.Qe("ytThumbnailOverlayButtonViewModelButton",(M.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var R;return J&&((R=J())==null?void 0:R.useLegacySizedIconButton)},M))},_.T(_.t_,{data:function(){return z().overlayButton}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
buttonOverrides:function(){var D;return J&&((D=J())==null?0:D.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"sa");
_.iTJ.idomCompat=!0;var C6a=_.Mf(function(M){return _.T("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.ol(function(z){z.preventDefault();return!1})},_.T(_.t_,{data:function(){return M.data().buttons}},{toggleButtonViewModel:function(z){return _.T("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.T(_.cm,{data:z.data}))}}))},"ta");
C6a.idomCompat=!0;var bT$=_.Mf(function(M){var z=function(){var J;return((J=_.G(M.data().rendererContext,_.pM))==null?void 0:J.label)||""};
return _.T("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.T(_.I,{cond:function(){return M.data().image},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.T(_.rv,{data:function(){return M.data().image},
alt:z}))}}),_.T(_.I,{cond:function(){return M.data().text},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return M.data().text})}}))},"ua");_.NL=_.Mf(function(M){var z=[],J=function(){var Q,v;return WMY((Q=M.width)==null?void 0:Q.call(M),(v=M.height)==null?void 0:v.call(M))},R=_.JF().resolve(_.zw(LDu)),D=_.AL("yt-thumbnail-view-model",function(){z.push("elRef.value set");
var Q;(Q=M.playbackRef)==null||Q.call(M,{thumbnailElRef:D,thumbnail:M.data().image,thumbnailOverlays:M.data().overlays,thumbnailSize:J()})});
_.mF(function(){z.push("onInit");_.pq(function(){z.push("onCleanup")})});
var N=_.d4(p1b),Z=function(){var Q,v;return(v=(Q=M.aspectRatio)==null?void 0:Q.call(M))!=null?v:0},B=function(){return(M.data().image?_.l_Y(M.data().image):Z())<=1&&Z()===0},O=function(){return B()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},X=function(){D.value||_.yA(new _.xN("Thumbnail elRef.value is null",z.join("\n")));
R&&D.value&&R(D.value)},l=function(){var Q,v;
return((Q=M.hovered)==null?void 0:Q.call(M))&&J()!=="large"&&((v=M.data().overlays)==null?void 0:v.some(function(x){return _.G(x,K_p)}))},e={};
return _.T("yt-thumbnail-view-model",{class:_.Qe("yt-thumbnail-view-model",M.className,function(){return m_e(Z())},function(){var Q,v;
a:{var x=J(),m=(Q=M.disableRounding)==null?void 0:Q.call(M);Q=(v=M.isClip)==null?void 0:v.call(M);if(!m&&!Q)switch(x){case "large":v="yt-thumbnail-view-model--large";break a;case "small":v="yt-thumbnail-view-model--small";break a;default:v="yt-thumbnail-view-model--medium";break a}v=void 0}return v},(e["yt-thumbnail-view-model--cinematic"]=B,e)),
style:_.UN({"background-color":function(){var Q,v=B()?(Q=M.data().backgroundColor)==null?void 0:Q.lightTheme:void 0;return v?WP(v,"1"):void 0}}),
el:D},_.T(_.I,{cond:B,then:function(){return _.T("div",{class:"yt-thumbnail-view-model__blurred-image"},_.T(_.rv,{data:function(){return M.data().image},
alt:"",contentMode:O,targetWidth:M.width,onload:X}))}}),_.T("div",{class:"yt-thumbnail-view-model__image"},_.T(_.rv,{data:function(){return M.data().image},
alt:"",contentMode:O,targetWidth:M.width,onload:X}),null),_.T(_.t_,{data:function(){return l()?void 0:M.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:JtV,thumbnailOverlayBadgeViewModel:function(Q){return _.T(RHS,{data:Q.data,thumbnailSize:J,isClip:M.isClip})},
thumbnailBottomOverlayViewModel:function(Q){return _.T(bgB,{data:Q.data,thumbnailSize:J,isClip:M.isClip})},
thumbnailOverlayFullViewModel:bT$,thumbnailOverlayButtonViewModel:function(Q){return _.T(_.iTJ,{data:Q.data,lockupExperiments:M.lockupExperiments})}}),_.T(_.t_,{data:function(){var Q;
return((Q=M.hovered)==null?0:Q.call(M))?M.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Q){return _.T(c8,{data:Q.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:C6a}),_.T(_.t_,{data:function(){var Q;return((Q=M.hovered)==null?0:Q.call(M))&&N()?M.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:At2}),_.T(_.I,{cond:M.isClip,then:function(){return _.T("div",{class:"yt-pinking"},_.T("svg",{class:"yt-pinking__pinking-left"},_.T("defs",null,_.T("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.T("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.T("svg",{class:"yt-pinking__pinking-right"},_.T("defs",null,_.T("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.T("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"va");
_.NL.idomCompat={callbacks:{playbackRef:!0}};var rta=_.Mf(function(M){var z=_.S(_.kE(-1,void 0,"IOLZ0b")),J=z.next().value,R=z.next().value;_.mF(function(){var D=new aj2(R);fjQ(D,M.data().thumbnails.length);_.pq(function(){if(D.isSlideshowPlaying){D.isSlideshowPlaying=!1;for(var N=D.jobIds,Z=0,B=N.length;Z<B;Z++)_.no.cancelJob(N[Z]);D.jobIds.length=0}})});
return _.T("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.T(_.t_,{data:function(){return M.data().thumbnails}},{thumbnailViewModel:function(D,N){return _.T("div",{class:function(){var Z=!M.data().primaryThumbnail,B=N(),O=J(),X=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Z&&B===0&&X.push("yt-collection-thumbnail-slideshow--first-slide");B<=O&&X.push("yt-collection-thumbnail-slideshow--show-slide");return X.join(" ")}},_.T(_.NL,{data:D.data,
disableRounding:M.disableRounding}))}}))},"wa");
rta.idomCompat=!0;var gZR=new _.Nh("DWELL_DETECTOR_REGISTRY_TOKEN");var z6$=_.Mf(function(M){var z=s6o(M.triggeringElement),J=function(){return!!M.data().primaryThumbnail},R=function(){var N,Z=(N=M.data())==null?void 0:N.maxHeight,B;
N=(B=M.maxHeight)==null?void 0:B.call(M);return Z!=null&&N!=null?Math.min(Z,N):N!=null?N:Z},D=function(){var N=R();
if(N){var Z;if(J()&&(Z=M.includeStackHeight)!=null&&Z.call(M)){var B;Z=((B=M.doubleStack)==null?0:B.call(M))?8:4}else Z=0;N=N-Z-1;if(!(N<0)){B=Math;Z=B.ceil;var O,X;var l=quH((X=(O=M.aspectRatio)==null?void 0:O.call(M))!=null?X:0);return Z.call(B,N*l)}}};
return _.T("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.UN({height:function(){return R()?R()+"px":void 0},
width:function(){return D()?D()+"px":void 0}})},_.T(MwQ,{stackEnabled:J,
thumbnailSize:function(){var N,Z;return WMY((N=M.width)==null?void 0:N.call(M),(Z=M.height)==null?void 0:Z.call(M))},
doubleStack:M.doubleStack,stackColor:function(){return M.data().stackColor},
includeStackHeight:M.includeStackHeight},_.T(_.t_,{data:function(){return M.data().primaryThumbnail}},{thumbnailViewModel:function(N){var Z={};
return _.T(_.NL,{data:N.data,width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:_.Qe((Z["yt-collection-thumbnail-view-model--has-stacks"]=J,Z)),hovered:M.hovered,playbackRef:M.playbackRef})}}),_.T(_.I,{cond:function(){var N;
return z()&&((N=M.data().thumbnails)==null?void 0:N.length)},
then:function(){return _.T("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.T(rta,{data:M.data,disableRounding:function(){return!J()}}))}})))},"xa");
z6$.idomCompat={callbacks:{playbackRef:!0}};
var MwQ=_.Mf(function(M){var z=M.children;var J=M.stackEnabled;var R=M.thumbnailSize;var D=M.doubleStack;var N=M.stackColor;var Z=M.includeStackHeight;var B,O=(B=_.JF().resolve(_.zw(_.Ah)))==null?void 0:B();return _.T(_.I,{cond:J,then:function(){return _.T(Fr2,{data:function(){var X,l;return{experimentEnabled:!0,thumbnailSize:R(),doubleStack:D==null?void 0:D(),color:O?N==null?void 0:(X=N())==null?void 0:X.darkTheme:N==null?void 0:(l=N())==null?void 0:l.lightTheme,enableResponsiveMode:!1,includeStackHeight:Z==
null?void 0:Z()}}},z)},
else:function(){return z}})},"ya");var J4g=new _.Nh("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var St;_.PC={calledOnce:!0,state:"visible"};St={calledOnce:!0,state:"hidden"};_.Z7=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;var R=M.className;var D=M.delayedClassName;var N=M.animationEntityKey;var Z=M.isCompactWidth;M=_.S(_.kE(!1,void 0,"aSkCmb"));var B=M.next().value,O=M.next().value,X=_.ba(N,""),l=_.U3(yz8,X),e=function(){var vY,te;return(te=(vY=l())==null?void 0:vY.value)!=null?te:!1},Q=function(){_.Cd(_.pf("booleanEntity",X(),{key:X(),
value:!0}));V=void 0};
N=_.S(_.eh(e));var v=N.next().value,x=N.next().value;N=_.S(_.eh(e));var m=N.next().value,y=N.next().value;N=_.S(_.eh(function(){var vY;return e()?(vY=z().styleTransitionConfig)==null?void 0:vY.destinationStyle:void 0}));
var H=N.next().value,q=N.next().value,b=function(){var vY=Object.assign({},z(),H()&&{style:H()});var te,wR,qb=vY.label,cY=(te=vY.interaction)==null?void 0:(wR=te.accessibility)==null?void 0:wR.label;te=vY.iconImage?vY.label&&vY.label.content?vY.iconLeading?"leading":"trailing":"icon-only":void 0;vY={formattedButtonText:qb,accessibilityLabel:cY,style:HTY(vY.style),type:ctY(vY.style),state:"active",size:ytn(vY.size),iconPosition:te,disabled:!1,aTagConfig:hHw(vY,J)};_.U("enable_desktop_vdcbg_components")&&
(vY.focused=B());return vY},V;
N=_.J1({visibilityCallback:function(vY){var te,wR=(te=z().interaction)==null?void 0:te.onFirstVisible;vY&&wR&&_.aE(wR)},
showOption:_.PC});var E=function(){return iPw(b(),!!z().iconImage)};
M={};R=_.Qe(function(){return"ytwAdButtonViewModelHost"},function(){return z().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var vY=!!z().delayedAppearanceConfig,te=v();
return vY?te?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var vY=!!z().delayedAppearanceConfig,te=m();
return vY?te?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!z().delayedAppearanceConfig||v()?D==null?void 0:D():""},(M.ytwAdButtonViewModelHostCompactWidth=function(){return Z==null?void 0:Z()},M),R!=null?R:"");
var L=function(){var vY,te=(vY=z().delayedAppearanceConfig)==null?void 0:vY.delayedInvisibleSeconds;te&&(V=_.mn(_.no,function(){x(!0);z8()},te*1E3))},z8=function(){var vY,te=(vY=z().delayedAppearanceConfig)==null?void 0:vY.delayedVisibleSeconds;
te&&(V=_.mn(_.no,function(){y(!0);O8()},te*1E3))},O8=function(){var vY,te=(vY=z().styleTransitionConfig)==null?void 0:vY.styleTransitionSeconds,wR,qb=(wR=z().styleTransitionConfig)==null?void 0:wR.destinationStyle;
te&&qb?V=_.mn(_.no,function(){q(qb);Q()},te*1E3):Q()},I3=function(){var vY;
return(vY=z().delayedAppearanceConfig)==null?void 0:vY.transitionDurationSeconds};
_.mF(function(){L()});
_.pq(function(){V&&_.no.cancelJob(V)});
return _.T("ad-button-view-model",{"on:focusin":_.ol(_.U("enable_desktop_vdcbg_components")?function(){var vY=_.JF().resolve(_.zw(_.OQ));vY&&O(vY.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.ol(_.U("enable_desktop_vdcbg_components")?function(){O(!1);return!1}:void 0),
class:R,el:_.zL(N),style:_.UN({"transition-duration":function(){return I3()?I3()+"s":void 0}})},_.T(_.I,{cond:b,
then:function(){return _.T(_.XC,{data:b,icon:function(){return _.T(_.I,{cond:function(){return z().iconImage},
then:function(vY){return _.T(_.rv,{data:vY,alt:"",targetWidth:E,targetHeight:E,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"za");var R6J=_.Mf(function(M){var z=M.data;M=_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC});var J={};return _.T("ad-button-group-view-model",{class:_.Qe("ytwAdButtonGroupViewModelHost",(J.ytwAdButtonGroupViewModelHostCompactWidth=function(){return z().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},J)),
el:_.zL(M)},_.T("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.T(_.t_,{data:function(){return z().secondaryAdButton}},{adButtonViewModel:function(R){return _.T(_.Z7,{data:R.data})}})),_.T("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.T(_.t_,{data:function(){return z().primaryAdButton}},{adButtonViewModel:function(R){return _.T(_.Z7,{data:R.data})}})))},"Aa");var DFJ=_.Mf(function(M){var z=function(){var J;return((J=M.data())==null?void 0:J.answers)||[]};
return _.T("yt-survey-icons",{class:"ytSurveyIconsHost"},_.T("div",{class:"ytSurveyIconsHeader"},_.T("div",{class:"ytSurveyIconsTitle"},function(){var J;return(J=M.data())==null?void 0:J.text}),_.T("div",null,_.T(_.XC,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var J;(J=M.onDismiss)==null||J.call(M)}}},
iconName:"DISMISSAL"}))),_.T("div",null,_.T("div",{class:"ytSurveyIconsAnswers"},_.T(_.G4,{each:function(){return z()},
keyBy:"INDEX"},function(J,R){return _.T("div",null,_.T(_.XC,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var D;(D=M.onSelect)==null||D.call(M,J(),R)}}},
icon:function(){return _.T(_.vS,{icon:function(){var D,N;return(D=J())==null?void 0:(N=D.icon)==null?void 0:N.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.T("div",{class:"ytSurveyIconsAnswersText"},_.T("div",null,function(){return z().length?z()[0].text:""}),_.T("div",null,function(){return z().length?z()[z().length-1].text:""}))))},"Ba");var NIV=_.Mf(function(M){var z=_.zL(_.uE(function(){var O;return(O=M.data())==null?void 0:O.rendererContext},void 0,void 0,void 0,!0)),J=_.S(_.kE(!1,void 0,"YxWRNc")),R=J.next().value,D=J.next().value,N=_.U3(tyo,function(){var O;
return(O=M.data().keys)==null?void 0:O.surveyEntityKey}),Z=_.U3(j7H,function(){var O;
return(O=M.data().keys)==null?void 0:O.surveyStateEntityKey});
_.Lc("ytd-slimline-survey-show-action",function(){D(!1)});
var B=function(){var O,X;var l=(O=Z())==null?void 0:(X=O.questionStack)==null?void 0:X[0];if(l!==void 0){var e,Q;return(e=N())==null?void 0:(Q=e.questions)==null?void 0:Q[l]}};
J={};return _.T("yt-slimline-survey-view-model",{el:z,class:_.Qe("ytSlimlineSurveyViewModelHost",(J.ytSlimlineSurveyViewModelCollapsed=function(){return R()},J))},_.T("div",{class:"ytSlimlineSurveyViewModelContainer"},_.T(_.I,{cond:function(){var O;
return((O=B())==null?void 0:O.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.T(DFJ,{data:function(){return B()},
onSelect:function(O,X){var l,e;return _.k(function(Q){D(!0);if(e=(l=M.data())==null?void 0:l.onSelectRating)_.aE(e),_.Cd(Sz2(X));_.UI(Q)})},
onDismiss:function(){D(!0);var O;var X=(O=N())==null?void 0:O.dismissalFeedbackToken;O=X?{feedbackEndpoint:{feedbackToken:X}}:void 0;O&&_.u5(O,{form:{element:z.value}})}})}})))},"Ca");var Pba=_.Mf(function(M){return _.T("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.T(_.t_,{data:function(){var z;return(z=M.data())==null?void 0:z.attachments}},{flexibleActionsViewModel:function(z){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(WUu,{data:z.data,
layout:function(){var J;return((J=M.lockupStyle())==null?void 0:J.arrangement)===1?0:1},
justifyContentOverride:function(){var J;return((J=M.lockupStyle())==null?void 0:J.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(z){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(NIV,{data:z.data}))},
expandableMetadataViewModel:function(z){z=z.data;var J;return _.T("div",{class:_.Qe("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(J=_.JF().resolve(_.zw(J4g)))==null?void 0:J({data:z}))},
adButtonGroupViewModel:function(z){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(R6J,{data:z.data}))},
adButtonViewModel:function(z){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.Z7,{data:z.data,isCompactWidth:!0}))}}))},"Da");var WD3=_.NC("rich_grid_min_item_width",310),uWR=_.NC("rich_grid_max_item_width",500);var Sdg=_.Mf(function(M){var z=M.data;return _.T("br-nz-badge-shape",{class:_.Qe(function(){return C6p(z().brNzRatingBadgeType)}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},function(){var J;
return(J=z())==null?void 0:J.text})},"Ea");_.kY=_.Mf(function(M){var z=function(){var J=M.data(),R,D;if(J){var N=!((R=M.workaroundShortsIsThumbnailBadge)==null||!R.call(M));R=(D=M.modern)==null?void 0:D.call(M);var Z;a:switch(J.badgeStyle){case "BADGE_OVERLAY":D=!0;break a;default:D=!1}J={type:N?17:bT8(J.badgeStyle),brNzRatingBadgeType:rtp(J.badgeStyle),text:J.badgeText,icon:J.iconName,isOverlay:D,modern:R||_.U("web_modern_badge_view_model"),accessibilityText:J.accessibilityLabel||((Z=_.G(J.rendererContext,_.pM))==null?void 0:Z.label)}}else J=
void 0;return J};
return _.T("yt-badge-view-model",{class:_.Qe("yt-badge-view-model-wiz",M.class)},_.T(_.tg,null,_.T(_.w3,{when:function(){var J;return!((J=z())==null||!J.brNzRatingBadgeType)}},function(){return _.T(Sdg,{data:function(){return z()}})}),_.T(_.w3,{when:function(){return!!z()&&!z().brNzRatingBadgeType}},function(){return _.T(_.WH,{data:function(){return z()}})})))},"Fa");
_.kY.idomCompat=!0;var z68,Mwn;z68=16/9;Mwn=2/3;_.BC=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.imageSizeConfig;var D=M.notifyOnLoaded;var N=function(){return z().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Z=function(){var Q;
return _.$C((Q=z())==null?void 0:Q.rendererContext)};
M={};M=(M["yt-content-preview-image-view-model-wiz"]=!0,M["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return N()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Z()},M);
var B=function(){var Q,v;return(v=(Q=_.G(z().rendererContext,_.pM))==null?void 0:Q.label)!=null?v:""},O=function(){return R6G(z())},X=function(){var Q=J4R(N(),z().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",R==null?void 0:R(),DFG(O()),z().layoutWidth,z().layoutHeight),v=Object.assign({},Q);
Q.width&&(v.width=Math.round(Q.width));Q.height&&(v.height=Math.round(Q.height));Q.maxWidth&&(v.maxWidth=Math.round(Q.maxWidth));Q.maxHeight&&(v.maxHeight=Math.round(Q.maxHeight));return v},l=_.o4(function(){return X().height},void 0,"Cn10Ce"),e=_.o4(function(){return X().width},void 0,"laoove");
return _.T("yt-content-preview-image-view-model",{el:_.zL(_.uE(function(){var Q;return(Q=z())==null?void 0:Q.rendererContext})),
role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.Qe(J,M,function(){var Q=N();var v=R==null?void 0:R();Q=Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(v==null?void 0:v.size)!=null&&v.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(v==null?void 0:v.size)!=null&&v.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return Q}),
style:function(){var Q=X(),v=[];Q.width&&v.push("width: "+Q.width+"px");Q.height&&v.push("height: "+Q.height+"px");Q.maxWidth&&v.push("max-width: "+Q.maxWidth+"px");Q.maxHeight&&v.push("max-height: "+Q.maxHeight+"px");Q.fullWidth&&v.push("width: 100%");return v.join(";")}},_.T(_.I,{cond:O,
then:function(Q){return _.T(_.rv,{data:Q,alt:B,"data-disabled$":function(){return!B()},
notifyOnLoaded:D,targetWidth:e,targetHeight:l,preserveWidth:function(){return!!e()},
preserveHeight:function(){return!!l()}})}}),_.T(_.t_,{data:function(){var Q;
return(Q=z())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:c8,
thumbnailOverlayButtonViewModel:_.iTJ}))},"Ga");
_.BC.idomCompat=!0;var klt=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.useSmallLayout;M=M.useMediumText;var D={};M=(D["yt-attribution-view-model-wiz"]=!0,D["yt-attribution-view-model-wiz--medium-text"]=M,D);return _.T("yt-attribution-view-model",{el:_.zL(_.uE(function(){var N;return(N=z())==null?void 0:N.rendererContext})),
class:_.Qe(J,M)},_.T(_.I,{cond:function(){return _.$C(z().rendererContext)},
then:function(){return _.T("button",{class:"yt-attribution-view-model-wiz--tappable"},_.T(ZlS,{data:z,useSmallLayout:R}))},
else:function(){return _.T(ZlS,{data:z,useSmallLayout:R})}}))},"Ha"),ZlS=_.Mf(function(M){var z=M.data;
var J=M.useSmallLayout;var R=function(){return{size:(J==null?0:J())?16:24}};
return _.T(_.MH,null,_.T(_.t_,{data:function(){return z().contentPreviewImage}},{contentPreviewImageViewModel:function(D){return _.T(_.BC,{data:D.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:R})}}),_.T(_.t_,{data:function(){return z().badge}},{badgeViewModel:function(D){return _.T(_.kY,{data:D.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.T(_.I,{cond:function(){return z().text},
then:function(){return _.T(_.m3,{text:function(){return z().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.T(_.I,{cond:function(){return z().suffix},
then:function(){return _.T(_.m3,{text:function(){return z().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ia");
klt.idomCompat=!0;var BIV,Ol2,TIQ,IgV,oRv;BIV=_.Mf(function(M){var z=M.delimiter;var J=M.max;var R=M.index;var D=M.isStandalone;return _.T(_.I,{cond:function(){return J()-1>R()},
then:function(){var N={};return _.T("span",{class:_.Qe("yt-content-metadata-view-model-wiz__delimiter",(N["yt-content-metadata-view-model-wiz__delimiter--standalone"]=D,N)),"aria-hidden":!0},z)}})},"Ja");
Ol2=_.Mf(function(M){var z=M.metadataPart;var J=M.maxLines;return _.T(_.m3,{text:function(){return z().text},
linkInheritColor:!0,className:function(){return NIH(J())},
userInput:!0})},"Ka");
TIQ=_.Mf(function(M){var z=M.metadataPart;var J=M.maxLines;return _.T(_.I,{cond:function(){return z().tooltip},
then:function(R){return _.T("span",{title:R,role:"tooltip"},_.T(Ol2,{metadataPart:z,maxLines:J}))},
else:function(){return _.T(Ol2,{metadataPart:z,maxLines:J})}})},"La");
IgV=_.Mf(function(M){var z=M.metadataPart;var J=M.isOverlay;var R=M.useMediumText;var D=M.hideAvatar;var N=function(){return z().maxLines!==void 0?z().maxLines:1};
return _.T(_.MH,null,_.T(_.t_,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(Z){return _.T(_.$h,{data:Z.data,
isOverlay:J,useMediumText:R,hideAvatar:D})},
badgeViewModel:_.kY}),_.T(_.I,{cond:function(){return z().leadingIcon},
then:function(Z){return _.T(_.vS,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}),_.T(_.I,{cond:function(){return z().text},
then:function(){return _.T(TIQ,{metadataPart:z,maxLines:N})}}),_.T(_.I,{cond:function(){return z().icon},
then:function(Z){return _.T(_.vS,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}))},"Ma");
oRv=_.Mf(function(M){var z=M.metadataRow;var J=M.isInline;var R=M.delimiter;var D=M.isOverlay;var N=M.useMediumText;var Z=M.extensions;var B=function(){var X,l=Z==null?void 0:(X=Z())==null?void 0:X.lockupMetadata;X=z();var e,Q;return!!((l==null?0:(e=l.byline)==null?0:e.hideAvatar)&&((Q=_.G(X,p2V))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},O=function(){return z().metadataParts||[]};
M={};return _.T("div",{class:_.Qe("yt-content-metadata-view-model-wiz__metadata-row",(M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=J,M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var X,l=Z==null?void 0:(X=Z())==null?void 0:X.lockupMetadata;X=z();var e,Q;return!!((l==null?0:(e=l.byline)==null?0:e.addPadding)&&((Q=_.G(X,p2V))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var X;
return!!(Z==null?0:(X=Z())==null?0:X.lockupMetadata)&&z().badges&&!z().metadataParts},M))},_.T(_.t_,{data:function(){return z().badges}},{badgeViewModel:function(X){return _.T("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.T(_.kY,{data:X.data}))}}),_.T(_.G4,{each:O},function(X,l){return _.T(_.MH,null,_.T(IgV,{metadataPart:X,
isOverlay:D,useMediumText:N,hideAvatar:B}),_.T(BIV,{delimiter:R,max:function(){return O().length},
index:l,isStandalone:!1}))}),_.T(_.I,{cond:function(){return z().isSpacerRow&&!J()},
then:function(){return _.T("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Na");
_.Oz=_.Mf(function(M){M=_.rH(M,{layout:0,isOverlay:!1});var z=M.data,J=M.layout,R=M.isOverlay,D=M.useMediumText,N=M.extensions,Z=function(){return J()===0},B=function(){var X;
return((X=z().metadataRows)==null?void 0:X.filter(function(l){var e,Q=N==null?void 0:(e=N())==null?void 0:e.lockupMetadata,v,x;e=!!((Q==null?0:(v=Q.description)==null?0:v.hideDescription)&&((x=_.G(l,p2V))==null?void 0:x.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var m,y;return!((Q==null?0:(m=Q.spacer)==null?0:m.hideSpacer)&&((y=_.G(l,p2V))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||e)}))||[]},O={};
return _.T("yt-content-metadata-view-model",{class:_.Qe(M.className,"yt-content-metadata-view-model-wiz",(O["yt-content-metadata-view-model-wiz--inline"]=Z,O["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.$C(z().rendererContext)},O["yt-content-metadata-view-model-wiz--medium-text"]=D,O)),
el:_.zL(_.uE(function(){return z().rendererContext}))},_.T(_.G4,{each:B},function(X,l){return _.T(_.MH,null,_.T(oRv,{metadataRow:X,
isInline:Z,delimiter:function(){return z().delimiter},
isOverlay:R,useMediumText:D,extensions:N}),_.T(_.I,{cond:function(){return Z()&&!X.isSpacerRow},
then:function(){return _.T(BIV,{delimiter:function(){return z().delimiter},
max:function(){return B().length},
index:l,isStandalone:!0})}}))}))},"Oa");
_.Oz.idomCompat=!0;var X_$=_.Mf(function(M){var z={};return _.T("yt-lockup-metadata-view-model",{class:_.Qe("yt-lockup-metadata-view-model-wiz",function(){a:{var J=M.lockupStyle();if(J==null?0:J.isOverlay)J="yt-lockup-metadata-view-model-wiz--overlay";else switch(J==null?void 0:J.arrangement){case 1:J="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:J="yt-lockup-metadata-view-model-wiz--vertical"}}return J},function(){a:{var J=M.lockupStyle();
if(J==null?0:J.isTiny)J="yt-lockup-metadata-view-model-wiz--tiny";else switch(J==null?void 0:J.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":J="yt-lockup-metadata-view-model-wiz--compact";break a;default:J="yt-lockup-metadata-view-model-wiz--standard"}}return J},(z["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.isOverlay},z["yt-lockup-metadata-view-model-wiz--card"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.isCard},z["yt-lockup-metadata-view-model-wiz--centered"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.isCentered},z["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.typographyBump},z["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.useLegacyTypography},z["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var J;
return(J=M.lockupStyle())==null?void 0:J.useRichGridLegacyTypography},z))},_.T(_.t_,{data:function(){return M.data().image}},{avatarStackViewModel:function(J){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.$h,{data:J.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(J){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.dj,{data:J.data}))},
decoratedAvatarViewModel:function(J){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.Km,{data:J.data}))}}),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.T("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var J;return(J=M.data().title)==null?void 0:J.content}},_.T(_.I,{cond:function(){return M.data().title},
then:function(J){return _.T(_.a9,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:M.lockupAccessibilityLabel},_.T(_.m3,{text:J,userInput:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.T(_.t_,{data:function(){return M.data().metadata}},{contentMetadataViewModel:function(J){return _.T(_.Oz,{data:J.data,
layout:1,useMediumText:function(){var R,D;return((R=M.lockupStyle())==null?void 0:R.typographyBump)||((D=M.lockupStyle())==null?void 0:D.useRichGridLegacyTypography)},
extensions:function(){var R,D,N,Z;return{lockupMetadata:{byline:{hideAvatar:((R=M.lockupStyle())==null?void 0:R.arrangement)===0,addPadding:((D=M.lockupStyle())==null?void 0:D.arrangement)===1},description:{hideDescription:!((N=M.lockupStyle())==null||!N.compactMetadata)},spacer:{hideSpacer:!((Z=M.lockupStyle())==null||!Z.compactMetadata)}}}}})}})),_.T(_.t_,{data:function(){return M.data().attribution}},{attributionViewModel:function(J){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.T(klt,{data:J.data,
useSmallLayout:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.T(_.t_,{data:function(){return M.data().menuButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
buttonOverrides:function(){var R;return((R=M.lockupStyle())==null?0:R.isOverlay)?{style:"overlay"}:void 0}})}})))},"Pa");
X_$.idomCompat=!0;var lgt=_.Mf(function(M){var z=_.AL("notification-multi-action-renderer");_.FT(function(){requestAnimationFrame(function(){_.Ao(z.value)})});
var J={},R={},D={};return _.T("notification-multi-action-renderer",{class:_.Qe("ytNotificationMultiActionRendererHost",(J.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var N;return(N=M.useLegacyShelfStyle)==null?void 0:N.call(M)},J)),
el:z},_.T("span",{"aria-live":"polite",class:_.Qe("ytNotificationMultiActionRendererTextContainer",(R.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var N;return(N=M.useLegacyShelfStyle)==null?void 0:N.call(M)},R))},_.T(_.m3,{text:function(){return M.data().responseText}})),_.T("div",{class:_.Qe("ytNotificationMultiActionRendererButtonContainer",(D.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var N;
return(N=M.useLegacyShelfStyle)==null?void 0:N.call(M)},D))},_.T(_.t_,{data:function(){var N;
return(N=M.data().buttons)==null?void 0:N.map(function(Z){if(Z=Z.buttonRenderer){var B,O=Object,X=O.assign,l=(B=Z.icon)==null?void 0:B.iconType;B=(B=Z.command||Z.serviceEndpoint||Z.navigationEndpoint)?{innertubeCommand:B}:void 0;Z={buttonViewModel:X.call(O,{},{iconName:l,onTap:B,trackingParams:Z.trackingParams,titleFormatted:Z.text?_.y1(Z.text):void 0},SdR(Z))}}else Z=void 0;return Z}).filter(function(Z){return!!Z})}},{buttonViewModel:function(N,Z){return _.T("div",null,_.T(_.lT,{data:N.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var B;return((B=M.useModernStyles)==null?0:B.call(M))?{type:Z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Qa");var e6B=_.Mf(function(M){var z=_.AL("notification-text-renderer");_.FT(function(){requestAnimationFrame(function(){_.Ao(z.value)})});
return _.T("notification-text-renderer",{el:z,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.T(_.m3,{text:function(){return M.data().successResponseText}}))},"Ra");_.TM=_.Mf(function(M){var z=_.U3($do,function(){var R;return Zle((R=M.contentId)==null?void 0:R.call(M))}),J=function(){var R;
return _.G((R=z())==null?void 0:R.command,_.YB)};
return _.T(_.I,{cond:function(){var R;if(!(R=J())){var D;R=_.G((D=z())==null?void 0:D.command,xo$)}return R},
then:function(){return _.T(_.I,{cond:J,then:function(){var R={};return _.T("div",{class:_.Qe("ytDismissibleItemReplacedContent",function(){var D;return kl8((D=M.aspectRatio)==null?void 0:D.call(M))})},_.T("div",{class:_.Qe((R.ytDismissibleItemAspectRatioContainer=function(){var D;
return((D=M.aspectRatio)==null?void 0:D.call(M))!==void 0},R))},_.T(_.t_,{data:function(){var D;
return(D=J())==null?void 0:D.item}},{notificationMultiActionRenderer:function(D){return _.T(lgt,{data:D.data,
useModernStyles:M.useModernStyle,useLegacyShelfStyle:M.useLegacyShelfStyle})},
notificationTextRenderer:e6B})))}})},
else:M.children})},"Sa");_.QKJ=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;M=_.zL(_.J1({visibilityCallback:function(N){var Z,B=(Z=z().interaction)==null?void 0:Z.onFirstVisible;N&&B&&_.aE(B)},
showOption:_.PC}));var R=function(){var N;return((N=z().interaction)==null?0:N.onTap)?function(Z){var B;nZn(Z,(B=z().interaction)==null?void 0:B.onTap,J)}:void 0},D=function(){var N,Z=z(),B=R(),O=(N=_.G(z().rendererContext,_.pM))==null?void 0:N.label;
a:switch(Z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":N=1;break a;default:N=0}return{size:TIn(Z.size),type:N,onTap:B,accessibilityText:O}};
return _.T("ad-avatar-view-model",{class:function(){var N;return((N=z().interaction)==null?0:N.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:M},_.T(_.I,{cond:function(){return z().image},
then:function(N){return _.T(zHS,{data:D,image:N})}}))},"Ta");_.I5=_.Mf(function(M){var z=_.rH(M,{hasDot:!1});M=Object.assign({},z);var J=z.data,R=z.hasDot;z=z.customCommandResolver;var D=(delete M.data,delete M.hasDot,delete M.customCommandResolver,M);M=function(){return J().style};
M!==void 0&&M!==null||_.WW(Error("Eh"));M=_.E3(function(){return J().interaction},z);
return _.T("ad-badge-view-model",{class:_.Qe(function(){var N;return((N=J().interaction)==null?0:N.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var N=D.adRenderingContextType();
J();return N==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.zL(M)},_.T(_.WH,{data:function(){var N;J();return{type:2,text:(N=J().label)==null?void 0:N.content,adsIncludeDot:R(),isOverlay:J().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ua");var UFQ;_.o5=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;var R=M.adRenderingContextType;return _.T("ad-details-line-view-model",{class:function(){var D;return((D=z().interaction)==null?0:D.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(D){var N,Z=(N=z().interaction)==null?void 0:N.onFirstVisible;D&&Z&&_.aE(Z)},
showOption:_.PC}),_.E3(function(){return z().interaction},J))},_.T(_.I,{cond:function(){return z().style},
then:function(D){return _.T(_.G4,{each:function(){var N;return((N=z())==null?void 0:N.attributes)||[]},
keyBy:"INDEX"},function(N){return _.T(UFQ,{attribute:N,style:D,adRenderingContextType:function(){return R()}})})}}))},"Va");
UFQ=_.Mf(function(M){var z=M.attribute;var J=M.style;var R=M.adRenderingContextType;return _.T(_.I,{cond:function(){return z().text},
then:function(D){return _.T(_.m3,{text:D,className:function(){var N=R();J();return N==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Wa");var vR$=_.Mf(function(M){var z=M.data;var J=M.typographyBump;var R=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
M={};return _.T(_.MH,null,_.T("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.T(_.m3,{text:function(){return z().headline},
className:_.Qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return R==null?void 0:R()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(J==null?void 0:J())&&!(R==null?0:R())},M)),
linkInheritColor:!0}),_.T(_.I,{cond:function(){return z().description},
then:function(D){var N={};return _.T(_.m3,{text:D,className:_.Qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return R==null?void 0:R()},N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(J==null?void 0:J())&&!(R==null?0:R())},N)),
linkInheritColor:!0})}}),_.T(_.I,{cond:function(){return z().secondaryDescription},
then:function(D){var N={};return _.T(_.m3,{text:D,className:_.Qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return J==null?void 0:J()},N)),
linkInheritColor:!0})}}),_.T("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.T(_.I,{cond:function(){return z().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.T(_.t_,{data:function(){return z().adAvatar}},{adAvatarViewModel:_.QKJ}))}}),_.T(_.t_,{data:function(){return z().adBadge}},{adBadgeViewModel:function(D){return _.T(_.I5,{data:D.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.T(_.t_,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(D){return _.T(_.o5,{data:D.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}}))),_.T("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
buttonOverrides:function(){a:switch(z().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var N="S";break a;default:N="M"}return{size:N}}})}})))},"Xa"),Glv=_.Mf(function(M){var z=M.data;
var J=M.noBottomMargin;var R=M.useVideoLockupTopPadding;var D=M.typographyBump;M={};M=_.Qe("ytwFeedAdMetadataViewModelHostMetadata",(M.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return J==null?void 0:J()},M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},M));
var N=function(){return z().adBadge};
N!==void 0&&N!==null||_.WW(Error("Fh"));N={};var Z={};return _.T(_.MH,null,_.T(_.I,{cond:function(){return z().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.T(_.t_,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(B){return _.T(_.QKJ,{data:B.data})}}))}}),_.T("div",{class:M},_.T("div",{class:_.Qe("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(N.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return D==null?void 0:D()},N.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(D==
null?void 0:D())&&_.U("web_enable_typography_bump_v2")},N))},_.T(_.m3,{text:function(){return z().headline},
linkInheritColor:!0})),_.T(_.I,{cond:function(){return z().description},
then:function(B){return _.T(_.m3,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.T("div",{class:function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.U("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.T(_.t_,{data:function(){return z().adBadge}},
{adBadgeViewModel:function(B){return _.T(_.I5,{data:B.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.T(_.t_,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(B){return _.T(_.o5,{data:B.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}})),_.T(_.I,{cond:function(){return z().secondaryDescription},
then:function(B){return _.T(_.m3,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.T("div",{class:_.Qe("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},Z))},_.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:_.lT})))},"Ya"),w_2=_.Mf(function(M){var z=M.data;
var J=M.noBottomMargin;var R=M.listenToTapEvent;var D=M.setTouchEndHandler;var N=M.useVideoLockupTopPadding;var Z=M.typographyBump;M=_.J1({visibilityCallback:function(e){var Q,v=(Q=z().interaction)==null?void 0:Q.onFirstVisible;e&&v&&_.aE(v)},
showOption:_.PC});var B=_.E3(function(){return z().interaction},void 0,function(){return R==null?void 0:R()}),O=_.S(_.kE(!1,void 0,"p7Js8e")),X=O.next().value,l=O.next().value;
O=_.ol(function(e){(D==null?0:D())&&!X()&&(e.currentTarget.click(),l(!0),setTimeout(function(){l(!1)},100));
return!1});
return _.T("feed-ad-metadata-view-model",{class:function(){var e;return((e=z().interaction)==null?0:e.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.zL(M,B),"on:touchend":O},_.T(_.tg,null,_.T(_.w3,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.T(vR$,{data:z,
typographyBump:Z})}),_.T(_.w3,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.T(Glv,{data:z,
noBottomMargin:J,useVideoLockupTopPadding:N,typographyBump:Z})})))},"Za");var xFJ;_.Xc=_.Mf(function(M){return _.T("yt-lockup-view-model",{class:_.Qe(M.className)},_.T(_.TM,{contentId:function(){return M.data().contentId},
useModernStyle:!0,aspectRatio:function(){var z,J;return((z=M.containerType)==null?void 0:z.call(M))!==3?At0(M.data().contentType,(J=M.force16By9ThumbnailAspectRatio)==null?void 0:J.call(M)):void 0}},function(){return _.T(xFJ,Object.assign({},M))}))},"$a");
xFJ=_.Mf(function(M){M=_.rH(M,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var z=M.data,J=M.containerLayoutConfig,R=M.containerType,D=M.sizing,N=M.protectBackground,Z=M.typographyBump,B=M.force16By9ThumbnailAspectRatio,O=M.thumbnailFixedWidth,X=M.thumbnailTargetWidth,l=M.lockupExperiments,e=M.elementsPerRow;
M=_.zL(_.uE(function(){var wR;return(wR=z())==null?void 0:wR.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 Q=_.d4(FD8),v=_.JF().resolve(_.zw(WDk)),x=v?{}:void 0,m=function(){var wR,qb,cY;return(cY=(qb=_.G((wR=z())==null?void 0:wR.rendererContext,_.pM))==null?void 0:qb.label)!=null?cY:void 0},y=function(){var wR=J==null?void 0:J(),qb;
if(wR==null?0:wR.containerType){var cY=(qb=z())==null?void 0:qb.contentType;qb=l();var Pu=Z(),yV=X(),Ik=N();wR=Object.assign({},iTG(EZH(wR),aj0(wR.responsiveSize),Pu,cY,wR.force16By9ThumbnailAspectRatio,yV,Ik,qb),{thumbnailFixedWidth:wR.contentPreviewWidth})}else wR=iTG(R(),D(),Z(),(cY=z())==null?void 0:cY.contentType,B(),X(),N(),l());return wR};
v&&x&&v({enabled:function(){return Q()},
itemPlaybackModel:function(){return z().itemPlayback},
thumbnailElRef:function(){return x.thumbnailElRef},
containerElRef:M,options:function(){var wR,qb=(wR=_.G(z().metadata,_.F9a))==null?void 0:wR.endorsement;wR=x.thumbnailOverlays||[];qb&&wR.push(qb);var cY,Pu;return{thumbnail:x.thumbnail,thumbnailOverlays:wR,accessibilityText:m(),thumbnailSize:x.thumbnailSize,enableRounding:y().isCollection,containPlayerWithinThumbnail:y().isCollection,trackingParams:(cY=_.G(z().rendererContext,_.wv))==null?void 0:(Pu=cY.loggingDirectives)==null?void 0:Pu.trackingParams}}});
var H=0;v=_.S(_.kE(!1,void 0,"HzAs3"));var q=v.next().value,b=v.next().value;v=_.S(_.kE(!1,void 0,"ujOXud"));var V=v.next().value,E=v.next().value;v=_.ol(function(){var wR=Q()&&z().itemPlayback;V()?(_.no.cancelJob(H),H=_.no.addJob(function(){b(!wR)},8,32)):b(!wR);
return!0});
var L=_.ol(function(){H&&(_.no.cancelJob(H),H=0);b(!1)});
_.pq(function(){H&&(_.no.cancelJob(H),H=0)});
var z8=Ol0(function(){E(!0)}),O8=z8.touchFeedbackEvents,I3=z8.touchFeedbackOnPointerUp,vY=z8.touchFeedbackOnPointerDown;
z8=z8.touchFeedbackOnPointerLeave;var te={};return _.T("div",{el:M,class:_.Qe("yt-lockup-view-model-wiz",function(){a:{var wR=y();if(wR.isOverlay)wR="yt-lockup-view-model-wiz--overlay";else switch(wR.arrangement){case 1:wR="yt-lockup-view-model-wiz--horizontal";break a;default:wR="yt-lockup-view-model-wiz--vertical"}}return wR},function(){a:{var wR=y();
if(wR.isOverlay)wR="yt-lockup-view-model-wiz--overlay";else{switch(wR.collectionStackNumber){case 1:wR="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:wR="yt-lockup-view-model-wiz--collection-stack-2";break a}wR=void 0}}return wR},function(){var wR;
return _.Pbp((wR=z())==null?void 0:wR.contentId)},(te["yt-lockup-view-model-wiz--card"]=function(){return y().isCard},te["yt-lockup-view-model-wiz--compact"]=function(){return y().isTiny||y().sizing!=="STANDARD"},te["yt-lockup-view-model-wiz--protect-background"]=N,te["yt-lockup-view-model-wiz--add-margins"]=function(){return y().addMarginForFullbleed},te["yt-lockup-view-model-wiz--centered"]=function(){return y().isCentered},te["yt-lockup-view-model-wiz--fullbleed"]=function(){return y().fullbleed},
te["yt-lockup-view-model-wiz--single-column-grid"]=function(){return e()===1&&R()===2},te["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var wR;
return(wR=l())==null?void 0:wR.useRichGridLegacyMargin},te)),
"on:mousedown":vY,"on:mouseleave":L,"on:mouseup":I3,"on:mouseover":v,"on:touchstart":vY,"on:touchend":I3,"on:pointerleave":z8},_.T(_.a9,{command:function(){var wR;return _.dZ((wR=z())==null?void 0:wR.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return O()&&y().arrangement===1?"width: "+O():""}},_.T(_.t_,{data:function(){var wR;
return(wR=z())==null?void 0:wR.contentImage}},{thumbnailViewModel:function(wR){return _.T(_.NL,{data:wR.data,
aspectRatio:function(){return y().aspectRatio},
disableRounding:function(){return y().disableRounding},
width:X,hovered:q,isClip:function(){var qb;return((qb=z())==null?void 0:qb.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:j6G(x),lockupExperiments:function(){return l()}})},
collectionThumbnailViewModel:function(wR){return _.T(z6$,{data:wR.data,aspectRatio:function(){return y().aspectRatio},
disableRounding:function(){return y().disableRounding},
width:X,doubleStack:function(){return y().collectionStackNumber===2},
hovered:q,playbackRef:j6G(x)})},
decoratedAvatarViewModel:_.Km})),_.T("div",{class:"yt-lockup-view-model-wiz__metadata"},_.T(_.t_,{data:function(){var wR;return(wR=z())==null?void 0:wR.metadata}},{lockupMetadataViewModel:function(wR){return _.T(X_$,{data:wR.data,
lockupStyle:y,lockupCommand:function(){var qb;return _.dZ((qb=z())==null?void 0:qb.rendererContext)},
lockupAccessibilityLabel:function(){return m()}})},
feedAdMetadataViewModel:function(wR){return _.T(w_2,{data:wR.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Z})}}),_.T(_.t_,{data:function(){var wR;
return(wR=z())==null?void 0:wR.attachmentSlot}},{lockupAttachmentsViewModel:function(wR){return _.T(Pba,{data:wR.data,
lockupStyle:y})}})),_.T(_.Tn,{model:function(){a:{switch(y().collectionStackNumber){case 1:var wR=8;
break a;case 2:wR=12;break a}wR=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:wR}},
pointerDownEvent:O8.pointerDownEvent,pointerUpEvent:O8.pointerUpEvent,pointerLeaveEvent:O8.pointerLeaveEvent}))},"ab");
_.Xc.idomCompat=!0;_.N7(_.Xc,"yt-lockup-view-model",{props:{data:_.zn,containerLayoutConfig:_.zn,containerType:_.zn,sizing:_.zn,protectBackground:_.zn,typographyBump:_.zn,thumbnailFixedWidth:_.zn,thumbnailTargetWidth:_.zn,force16By9ThumbnailAspectRatio:_.zn,className:_.zn,lockupExperiments:_.zn,elementsPerRow:_.zn}});var lg8,tw2=_.Mf(function(M){var z=_.rH(M,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),J=z.text,R=z.alwaysShowTruncationText;M=z.truncationText;var D=z.onTextClick,N=z.maxLines,Z=z.disableTextMask,B=z.textStyle,O=z.accessibilityLabel,X=z.textSize,l=z.alwaysTruncateAtMaxLines,e=z.expandOnClick;z=_.S(_.kE(!1,void 0,"lWDnae"));var Q=z.next().value,v=z.next().value;z=_.ol(function(){e()&&v(!Q());D==null||D()});
var x=function(){a:switch(X()){case "medium":var L=2;break a;case "large":L=2.2;break a;default:L=1.8}return L},m=UFn(J,function(){return Q()?Infinity:N()},x,Z,l,Q),y=m.isTruncated;
J=m.displayText;l=m.contentRef;var H=m.hiddenRef,q=m.placeholderTruncationTextRef,b=m.hiddenTruncationTextRef;m=m.truncationTextRef;var V={},E={};return _.T("truncated-text",{class:_.Qe((V["truncated-text-wiz"]=!0,V["truncated-text-wiz--overlay"]=function(){return B()==="overlay"},V["truncated-text-wiz--medium-text"]=function(){return X()==="medium"},V["truncated-text-wiz--large-text"]=function(){return X()==="large"},V["truncated-text-wiz--primary-text"]=function(){return B()==="primary-text"},V)),
"on:click":z,style:function(){return"line-height: "+x()+"rem;"}},_.T("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:l,style:function(){return Q()?"":"max-height: "+N()*x()+"rem;"}},_.T(_.m3,{text:J}),_.T("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:q,style:function(){return"line-height: "+x()+"rem;"}},_.T(_.m3,{text:M}))),_.T("truncated-text-content",{class:_.Qe("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:H,style:function(){return Q()?"":"max-height: "+N()*x()+"rem;"},
"aria-hidden":"true"},_.T(_.m3,{text:J}),_.T("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:b,style:function(){return"line-height: "+x()+"rem;"}},_.T(_.m3,{text:M}))),_.T("button",{"aria-label":O,
class:_.Qe((E["truncated-text-wiz__absolute-button"]=function(){return!Z()},E["truncated-text-wiz__bottom-button"]=function(){return Z()},E["truncated-text-wiz--hidden"]=function(){return!(!Q()&&(R!=null&&R()||y()))},E)),
el:m,style:function(){return"line-height: "+x()+"rem;"}},_.T(_.m3,{text:M})))},"bb");
tw2.idomCompat={callbacks:{onTextClick:!0}};var FOv=_.Mf(function(M){var z=M.data;M=M.className;var J=_.o4(function(){return Glp(z())},void 0,"sR58pd");
return _.T("yt-video-attribute-view-model",{class:M},_.T("div",{class:function(){var R=z();a:switch(R.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var D="yt-video-attribute-view-model--vertical";break a;default:D="yt-video-attribute-view-model--horizontal"}a:switch(R.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var N="yt-video-attribute-view-model--image-small";break a;default:N="yt-video-attribute-view-model--image-large"}a:switch(R.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var Z=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":Z="yt-video-attribute-view-model--image-avatar";break a;default:Z=""}a:switch(R.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var B="yt-video-attribute-view-model--metadata-header";break a;default:B=""}a:switch(R.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var O="yt-video-attribute-view-model--container-card";break a;default:O=""}return["yt-video-attribute-view-model",D,N,
Z,B,O,Glp(R)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.UN({"background-color":function(){var R=z();if(R.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var D="";else{D=R.lightColorPalette;R=R.darkColorPalette;var N,Z=((N=_.JF().resolve(_.zw(_.Ah)))==null?0:N())&&R?R:D;D=(D=Z==null?void 0:Z.section2Color)?_.qG(D):""}return D}})},_.T(_.I,{cond:function(){return J()||!_.U("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.T(_.a9,{className:"yt-video-attribute-view-model__content-container",command:J,role:"group",ariaLabel:function(){return z().title}},_.T(_.I,{cond:function(){return z().heroText||z().image},
then:function(){return _.T(jKV,{data:z})}}),_.T(p_g,{data:z,
sizeSmall:function(){return z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.T("div",{class:"yt-video-attribute-view-model__content-container"},_.T(_.I,{cond:function(){return z().heroText||z().image},
then:function(){return _.T(jKV,{data:z})}}),_.T(p_g,{data:z,
sizeSmall:function(){return z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"cb");
FOv.idomCompat=!0;var jKV=_.Mf(function(M){var z=M.data;var J,R=(J=_.JF().resolve(_.zw(_.Ah)))==null?void 0:J(),D=function(){return R&&z().darkThemeImage?z().darkThemeImage:z().image},N=_.o4(function(){return w_0(z())},void 0,"zGDeMe");
return _.T("div",{class:"yt-video-attribute-view-model__hero-section"},_.T(_.tg,null,_.T(_.w3,{when:D},function(){return _.T(_.rv,{data:function(){return D()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.T(_.w3,{when:function(){return z().heroText}},function(){return _.T("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.T("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return z().heroText}))})),_.T(_.I,{cond:function(){return z().overflowMenuOnTap},
then:function(){return _.T("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.T(_.XC,{data:N,iconName:"MORE_VERT"}))}}))},"db");
jKV.idomCompat=!0;var p_g=_.Mf(function(M){var z=M.data;M=M.sizeSmall;var J=function(){return z().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},R=_.o4(function(){return W5(_.qf({innertubeCommand:Glp(z())}))?"link":"group"},void 0,"kGuRzd"),D={};
return _.T("div",{class:_.Qe("yt-video-attribute-view-model__metadata",(D["yt-video-attribute-view-model--small-font"]=M,D)),role:R},_.T("h1",{class:"yt-video-attribute-view-model__title"},function(){return z().title}),_.T(_.I,{cond:function(){return z().subtitle},
then:function(){return _.T("h4",{class:"yt-video-attribute-view-model__subtitle"},_.T(_.I,{cond:J,then:function(){return _.T(tw2,{text:function(){return vR8(z().subtitle)},
truncationText:function(){return vR8(z().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.T("span",null,function(){return z().subtitle})}}))}}),_.T(_.I,{cond:function(){return z().secondarySubtitle},
then:function(N){return _.T("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.T(_.m3,{text:function(){var Z=N();if(Z!=null&&Z.attachmentRuns){for(var B=[],O=_.S(Z.attachmentRuns),X=O.next();!X.done;X=O.next())X=X.value,X.element&&B.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}}}})}));Z=Object.assign({},Z,{attachmentRuns:B})}return Z}}))}}),_.T(_.t_,
{data:function(){return z().buttonViewModel}},{buttonViewModel:function(N){return _.T(_.lT,{data:N.data,
className:"yt-video-attribute-view-model__button"})}}))},"eb");
p_g.idomCompat=!0;_.N7(FOv,"yt-video-attribute-view-model",{props:{data:_.zn,className:_.zn}});var lj=function(){var M=_.g.apply(this,arguments)||this;M.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");M.isSearch=!1;M.JSC$15066_lastScrollContainerWidth=NaN;M.pageLoadingFromNavigation=!1;M.currentIndex=0;M.supportComponentResize=!1;return M};
_.w(lj,_.g);_.P=lj.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.ou(this,this.onPageChange))};
_.P.detached=function(){document.removeEventListener("yt-page-type-changed",_.ou(this,this.onPageChange))};
_.P.getItemsPath=function(){return"data.cards"};
_.P.onIronResize=function(){this.updateListStyles()};
_.P.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var M;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(M=this.data)==null?void 0:M.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.U("problem_walkthrough_sd")&&!!this.centerItems};
_.P.computeCardListStyle=function(M){return M||null};
_.P.computeEmpty=function(M){return!this.get("cards.length",M)};
_.P.computeThumbnailStyle=function(M){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",M)||null};
_.P.computeHasSubtitle=function(M){return!!this.get("header.richListHeaderRenderer.subtitle",M)};
_.P.computeInitialCountNumber=function(M){return this.hasSquareMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.P.computeUseFloorScrolling=function(M){return M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.P.computeHasGameCard=function(M){return(M=this.get("cards",M))?M.some(function(z){return z.gameCardRenderer}):!1};
_.P.computeCenterHeaderTitle=function(M){return!(M==null||!M.centerHeaderTitle)};
_.P.computeHasPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.P.computeHasSquareMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.P.computeHasSkinnyWidthPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.width===135}):!1};
_.P.computeCenterItems=function(M){return!!M};
_.P.computeHasInfoPanel=function(M){var z;return M==null?void 0:(z=M.cards)==null?void 0:z.some(function(J){return J.infoPanelContentRenderer})};
_.P.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.P.getItemByIndex=function(M){var z=this.items.children;return z&&z.length>M?z[M]:void 0};
_.P.onPageChange=function(){var M=this;this.pageLoadingFromNavigation=!0;_.no.addJob(function(){M.pageLoadingFromNavigation=!1;_.ZL(M.hostElement,"yt-terminate-video-preview-action")},8)};
_.P.updateListStyles=function(){if(_.U("problem_walkthrough_sd")&&this.JSC$15066_scrollContainer!==void 0){var M=this.JSC$15066_scrollContainer.clientWidth;M!==this.JSC$15066_lastScrollContainerWidth&&(this.JSC$15066_lastScrollContainerWidth=M,_.Tp(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(M*.8,415)+"px"}),_.Pv(this.hostElement,"iron-resize"))}};
_.rX.Object.defineProperties(lj.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.U("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.cards)==null?0:(J=z[0])==null?0:J.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.cards)==null?0:(J=z[0])==null?0:J.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return _.U("enable_desktop_amsterdam_info_panels")&&!!((M=this.data)==null?0:(z=M.cards)==null?0:(J=z[0])==null?0:J.infoPanelContentRenderer)}}});
lj.prototype.dataChanged=lj.prototype.dataChanged;lj.prototype.onIronResize=lj.prototype.onIronResize;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],lj.prototype,"ytdHorizontalListBehavior",void 0);
_.u([_.p(_.Vg),_.W("design:type",Object)],lj.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lj.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lj.prototype,"useCustomColors",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lj.prototype,"useHighlightStyling",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.W("design:type",Object)],lj.prototype,"cardListStyle",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.W("design:type",Boolean)],lj.prototype,"empty",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasSubtitle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.W("design:type",Boolean)],lj.prototype,"thumbnailStyle",void 0);_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasGameCard",void 0);_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.W("design:type",Boolean)],lj.prototype,"centerHeaderTitle",void 0);
_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasPortraitMiniApp",void 0);_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasSquareMiniApp",void 0);_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.u([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.W("design:type",Boolean)],lj.prototype,"hasInfoPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lj.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],lj.prototype,"inlineStructuredDescription",void 0);_.u([_.Qc("#scroll-container"),_.W("design:type",HTMLDivElement)],lj.prototype,"JSC$15066_scrollContainer",void 0);
_.u([_.Y({computed:"computeInitialCountNumber(data.style.type)"}),_.W("design:type",Number)],lj.prototype,"initialCount",void 0);_.u([_.Y({computed:"computeUseFloorScrolling(data.style.type)"}),_.W("design:type",Boolean)],lj.prototype,"useFloorScrolling",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.W("design:type",Boolean)],lj.prototype,"centerItems",void 0);_.u([_.Y(),_.W("design:type",Object)],lj.prototype,"pageLoadingFromNavigation",void 0);
_.u([_.Y(),_.W("design:type",Object)],lj.prototype,"currentIndex",void 0);_.u([_.Y(),_.W("design:type",Number)],lj.prototype,"scrollCount",void 0);_.u([_.Y(),_.W("design:type",Object)],lj.prototype,"supportComponentResize",void 0);_.u([_.Qc("#items"),_.W("design:type",HTMLDivElement)],lj.prototype,"items",void 0);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lj.prototype,"onIronResize",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lj.prototype,"dataChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.F("inlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lj.prototype,"hideNavigationButton",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lj.prototype,"modernChapters",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lj.prototype,"hasVideoAttributeViewModels",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lj.prototype,"modernInfoPanels",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],lj);
_.d(lj,"ytd-horizontal-card-list-renderer",function(){if(x_k!==void 0)return x_k;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return x_k=M},{mode:_.B5("kevlar_poly_si_batch_j072")?1:2});var Yd$=_.Mf(function(M){var z=M.data;var J={};return _.T("video-summary-content-view-model",{class:_.Qe("video-summary-content-view-model-wiz",M.className,(J["video-summary-content-view-model-wiz--is-search"]=M.isSearch,J))},_.T(_.G4,{each:function(){var R=[],D=z().paragraphs;if(D==null||!D.length)return[];for(var N=0;N<D.length;N++){var Z=_.G(D[N],HRg),B=void 0;N>0&&(B=_.G(D[N-1],HRg));B&&!!B.marker===!!Z.marker?R[R.length-1].paragraphs.push(Z):R.push({isList:!!Z.marker,paragraphs:[Z]})}return R},
keyBy:"INDEX"},function(R){return _.T(_.I,{cond:function(){return R().isList},
then:function(){return _.T("ul",{class:"video-summary-content-view-model-wiz__list"},_.T(_.G4,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(D){return _.T("li",{class:"video-summary-content-view-model-wiz__list-item"},_.T(_.m3,{text:function(){return D().text}}))}))},
else:function(){return _.T(_.G4,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(D){return _.T("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.T(_.m3,{text:function(){return D().text}}))})}})}),_.T(_.I,{cond:function(){return!!_.G(z().likeButtonViewModel,_.KM)&&!!_.G(z().dislikeButtonViewModel,_.d$)},
then:function(){return _.T("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.T("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.T(_.uA,{data:function(){return _.G(z().likeButtonViewModel,_.KM)},
disableIconAnimation:!0})),_.T(_.$k,{data:function(){return _.G(z().dislikeButtonViewModel,_.d$)}}))}}))},"fb");
Yd$.idomCompat=!0;_.N7(Yd$,"video-summary-content-view-model",{props:{data:_.zn,isSearch:_.zn,className:_.zn}});var et=function(){var M=_.g.apply(this,arguments)||this;var z,J;M.isExpanded=(J=(z=M.data)==null?void 0:z.isExpanded)!=null?J:!1;M.disableExpand=!1;M.showProminentLabel=!1;M.showRightSideLabel=!0;M.toggleExpandableContent=function(R){M.disableExpand||(R.stopPropagation(),_.r4(_.CX(R),M.hostElement,["info","expanded-subtitle"])||(M.isExpanded=!M.isExpanded,M.ytRendererBehavior.logExplicitClick(M.data),M.JSC$15077_cardList&&!_.U("expandable_metadata_a11y_fix_ks")&&_.C4(M,function(){_.Lo(M.hostElement)})))};
M.useSquareThumbnail=!1;M.contentHiddenWithDisplayNone=_.U("web_expandable_metadata_content_hidden_with_display_none");M.startX=0;return M};
_.w(et,_.g);_.P=et.prototype;_.P.computeUseSquareThumbnail=function(){var M;return(M=this.data)==null?void 0:M.useSquareThumbnail};
_.P.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.P.dataChanged=function(){if(this.data){var M,z;this.isExpanded=(z=(M=this.data)==null?void 0:M.isExpanded)!=null?z:!1;var J,R,D,N;if(M=this.isDarkTheme()?(J=this.data)==null?void 0:(R=J.colorData)==null?void 0:R.darkColorPalette:(D=this.data)==null?void 0:(N=D.colorData)==null?void 0:N.lightColorPalette){var Z,B;if((Z=this.data)==null?0:(B=Z.colorData)==null?0:B.vibrantColorPalette)M.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.g4(this.hostElement,M)}}};
_.P.isExpandedChanged=function(){this.isExpanded&&this.JSC$15077_cardList&&_.Pv(this.JSC$15077_cardList,"iron-resize")};
_.P.computeIsExpanded=function(M){return!!M.isExpanded};
_.P.computeShowProminentLabel=function(M,z){var J;return!!(M==null?0:(J=M.header)==null?0:J.showLeadingCollapsedLabel)&&!z};
_.P.computeShowRightSideLabel=function(M,z){var J;return!(M==null?0:(J=M.header)==null?0:J.showLeadingCollapsedLabel)&&!z};
_.P.captureContentClick=function(M){if(!this.disableExpand)if(_.U("expandable_metadata_fix_killswitch")){var z=M.target;_.DNV(z,"ytd-macro-markers-list-item-renderer")||M.stopPropagation();(z==null?void 0:z.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.r4(_.CX(M),this.hostElement,["items"])||_.bP(_.CX(M),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.P.timestampClick=function(M){M.stopPropagation();var z,J;(M=(z=this.data)==null?void 0:(J=z.header)==null?void 0:J.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(M)};
_.P.onDown=function(M){M.stopPropagation();this.startX=M.detail?M.detail.x:0};
_.P.onUp=function(M){this.skipKeyInteraction(M)&&M.stopPropagation()};
_.P.skipKeyInteraction=function(M){var z=M.target;if((z==null?void 0:z.id)==="scroll-container"||(z==null?void 0:z.id)==="items"||M.detail&&M.detail.x!==this.startX)return!0;M=_.CX(M);M=_.S(M);for(z=M.next();!z.done;z=M.next()){z=z.value;if(z===this.hostElement)break;if(z.hasAttribute&&z.hasAttribute("skip-key-interaction"))return!0}return!1};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.rX.Object.defineProperties(et.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.G((M=this.data)==null?void 0:M.expandedContent,yng)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.G((M=this.data)==null?void 0:M.expandedContent,_.Ybp)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.useCustomColors)&&!((z=this.data)==null||!z.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!((M=this.data)==null?0:(z=M.header)==null?0:z.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!((M=this.data)==null?0:(z=M.header)==null?0:z.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!((M=this.data)==null?0:(z=M.header)==null?0:z.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.U("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
et.prototype.onUp=et.prototype.onUp;et.prototype.onDown=et.prototype.onDown;et.prototype.isExpandedChanged=et.prototype.isExpandedChanged;et.prototype.dataChanged=et.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],et.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],et.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],et.prototype,"isExpanded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],et.prototype,"disableExpand",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],et.prototype,"isSearch",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],et.prototype,"isWatch",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.W("design:type",Object)],et.prototype,"showProminentLabel",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.W("design:type",Object)],et.prototype,"showRightSideLabel",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"hasVideoSummary",null);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"hasLockupViewModel",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data","isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"useCustomColors",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"showInfoButton",null);_.u([_.F("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"showTimestamp",null);_.u([_.F("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"showExpandedSubtitle",null);
_.u([_.F("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"showThumbnail",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],et.prototype,"useVppShoppingDestinationStyle",null);_.u([_.Y(),_.W("design:type",Object)],et.prototype,"toggleExpandableContent",void 0);_.u([_.Qc("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],et.prototype,"JSC$15077_cardList",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.W("design:type",Object)],et.prototype,"useSquareThumbnail",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],et.prototype,"contentHiddenWithDisplayNone",void 0);_.u([_.F("isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],et.prototype,"contentHidden",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],et.prototype,"dataChanged",null);_.u([_.la("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],et.prototype,"isExpandedChanged",null);_.u([_.Xw("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],et.prototype,"onDown",null);
_.u([_.Xw("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],et.prototype,"onUp",null);_.u([_.c({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],et);
_.d(et,"ytd-expandable-metadata-renderer",function(){if(mZt!==void 0)return mZt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return mZt=M},{mode:1});var mFg,gRt=function(){if(mFg!==void 0)return mFg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mFg=M};_.N7(_.$h,"yt-avatar-stack-view-model",{props:{className:_.zn,data:_.zn,overrides:_.zn,isOverlay:_.zn,useMediumText:_.zn,decorations:_.zn,hideAvatar:_.zn}});_.nn("itemSectionRenderer","videoRenderer","ytd-video-renderer");var QX=function(){var M=_.g.apply(this,arguments)||this;M.disableExpand=!1;M.shouldShowChannelInfo=!1;M.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return M};
_.w(QX,_.g);_.P=QX.prototype;_.P.computeUseSearchUi=function(){var M,z;return this.isSearch||((M=this.data)==null?void 0:(z=M.style)==null?void 0:z.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.computeUseThreeLineTitle=function(){var M;return((M=this.data)==null?void 0:M.maxTitleLines)===3};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.U("polymer_video_renderer_defer_menu")&&!vxJ?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.P.attached=function(){_.kz(this.hostElement,"blue-links",_.U("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.BU(_.SN(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;M&&((z=_.G(M.commandMetadata,_.hV))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M);this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15082_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.JSC$15082_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15082_inlinePreviewHoverListener)==null||M5(M)};
_.P.onTextWrapperClick=function(M){var z,J,R=this.hideTranslation?(z=this.data)==null?void 0:z.untranslatedNavigationEndpoint:(J=this.data)==null?void 0:J.navigationEndpoint;z=_.r4(_.CX(M),this.hostElement,["expandable-metadata"]);!R||z&&!_.U("expandable_metadata_fix_killswitch")||_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Pv(this.hostElement,"yt-navigate",{endpoint:R})};
_.P.computeThumbnailWidth=function(M,z,J,R,D){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:R?D==="MASSIVE"?600:D==="BIG"?500:D==="MEDIUM"?450:420:J?360:z?128:M?210:246};
_.P.computeUseBiggerThumbs=function(M){return M&&_.U("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.P.computeVideoStyle=function(){if(_.U("enable_video_style")){var M,z;return(M=this.data)==null?void 0:(z=M.style)==null?void 0:z.value}};
_.P.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.handleHideItemSectionVideosByIdCommand=function(M){var z;M=(z=_.G(M,RTQ))==null?void 0:z.videoId;this.data&&this.data.videoId===M&&(this.isHidden=!0)};
_.P.getMetadataSnippetContainerClass=function(M){return M?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.P.computeTitleText=function(M,z,J){return M?J:z};
_.P.computeDescriptionSnippet=function(M,z,J){return M?J:z};
_.P.computeSnippetText=function(M,z,J){return M?J:z};
_.P.computeNavigationEndpoint=function(M,z){return M?z==null?void 0:z.untranslatedNavigationEndpoint:z==null?void 0:z.navigationEndpoint};
_.P.hideInlineTitleIcon=function(M,z){return M||!z};
_.rX.Object.defineProperties(QX.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var M;return(M=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?M:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!(this==null?0:(M=this.data)==null?0:(z=M.channelThumbnailSupportedRenderers)==null?0:(J=z.channelThumbnailWithLinkRenderer)==null?0:J.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.G((M=this.data)==null?void 0:M.avatar,mJt)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15082_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.rX.Object.defineProperties(QX,{template:{configurable:!0,enumerable:!0,get:function(){return gRt()}}});
QX.prototype.dataChanged=QX.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],QX.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],QX.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.bl),_.W("design:type",Object)],QX.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],QX.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QX.prototype,"isBackstageVideo",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QX.prototype,"isPostCompactVideo",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],QX.prototype,"isHistory",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QX.prototype,"isRichGridVideoPost",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QX.prototype,"isHidden",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QX.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.W("design:type",Boolean)],QX.prototype,"useSearchUi",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.W("design:type",Boolean)],QX.prototype,"useThreeLineTitle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.W("design:type",Boolean)],QX.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.W("design:type",Object)],QX.prototype,"videoStyle",void 0);_.u([_.Y({computed:"computeDisableExpand(videoStyle)"}),_.W("design:type",Object)],QX.prototype,"disableExpand",void 0);
_.u([_.Y({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.W("design:type",Object)],QX.prototype,"shouldShowChannelInfo",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],QX.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.W("design:type",String)],QX.prototype,"inlineTitleIcon",void 0);_.u([_.Y({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.W("design:type",Object)],QX.prototype,"computedNavigationEndpoint",void 0);_.u([_.Y({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(M,z){return _.Is(M.entities,"searchVideoResultEntity",z)}}),
_.W("design:type",Object)],QX.prototype,"searchVideoResultEntity",void 0);_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],QX.prototype,"thumbnail",void 0);_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],QX.prototype,"JSC$15082_dismissibleMedia",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QX.prototype,"dataChanged",null);
_.u([_.F("searchVideoResultEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QX.prototype,"hideTranslation",null);_.u([_.F("searchVideoResultEntity"),_.W("design:type",Array),_.W("design:paramtypes",[])],QX.prototype,"hiddenBadgeGroups",null);_.u([_.F("data","useAvatar"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QX.prototype,"shouldShowChannelThumbnail",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QX.prototype,"useAvatar",null);
_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QX.prototype,"isHovered",null);_.u([_.c({is:"ytd-video-renderer",disableElementRegistration:!0})],QX);_.d(QX,"ytd-video-renderer",function(){return gRt()},{mode:_.B5("kevlar_poly_si_batch_j047")?1:2});var Uz=function(){var M=_.g.apply(this,arguments)||this;M.editDialog=null;M.roundedContainer=!0;M.isLoading=!1;M.isRichGrid=!1;M.isRichGridRepost=!1;M.reduceSidePaddings=_.U("reduce_side_paddings_in_shelf");M.JSC$15089_spinnerEl=null;return M};
_.w(Uz,_.g);_.P=Uz.prototype;
_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){var M=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var z=0,J=this.data.actions&&this.data.actions.length;z<J;z++)this.openEditDialog(_.G(this.data.actions[z],osS));if((z=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(z=this.get("buttonRenderer.hint.hintRenderer.hintId",z))&&z.startsWith("share-post-hint")){var R=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(R){_.k5.getInstance();var D=Ba(_.id(_.e9("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.no.addLowPriorityJob(function(){_.Bv(M.hostElement,D,R)})}}}};
_.P.updatePoll=function(M){M>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15089_spinnerEl||(this.JSC$15089_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SN(this.hostElement).appendChild(this.JSC$15089_spinnerEl));this.JSC$15089_spinnerEl&&(this.JSC$15089_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(M){var z=this.get("updateCommentDialogEndpoint",M.detail.endpoint);z&&(this.openEditDialog(z),M.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(M,z){z&&this.updatePoll(z.selectedChoiceIndex)};
_.P.onYtServiceRequestSent=function(M,z){var J;z.endpoint&&(_.G(z.endpoint,VOg)||_.G(z.endpoint,aB$)&&((J=_.G(z.endpoint,aB$))==null||!J.clientActions))&&(this.isLoading=!0);if(z.actions)for(M=0;M<z.actions.length;M++)J=z.actions[M],_.G(J,s4)&&(J=this.get("updateBackstagePollAction.selectedChoiceIndex",J),J==void 0&&(J=-1),this.updatePoll(J))};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.P.computeIsPostHidden=function(M,z){return!!M||z};
_.P.computeSurfaceType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeShowWithoutToolbar=function(M){return!M.actionButtons&&!M.actionMenu};
_.P.computePostAttachment=function(M){if(M.backstageAttachment){if(_.G(M.backstageAttachment,tOu))return"poll";if(_.G(M.backstageAttachment,ZMV))return"quiz";if(_.G(M.backstageAttachment,_.E4))return"video";if(_.G(M.backstageAttachment,kOB))return"uploaded-videos";if(_.G(M.backstageAttachment,KcQ))return M.contentText?"image":"image-only";if(_.G(M.backstageAttachment,Djp))return"playlist"}return"none"};
_.P.computePostTabIndex=function(M){return M?0:-1};
_.P.computeButtonTooltipPosition=function(M){return this.computeUsesCompactLockup(M)?"top":"bottom"};
_.P.computeHasText=function(M){return!(M==null||!M.contentText)};
_.P.onTap=function(M){var z,J;if(((z=this.data)==null?0:z.navigationEndpoint)&&((J=this.data)==null?void 0:J.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.rX.Object.defineProperties(Uz.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.id("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,tOu))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,kOB))}}});
Uz.prototype.onYtServiceRequestCompleted=Uz.prototype.onYtServiceRequestCompleted;Uz.prototype.onYtServiceRequestSent=Uz.prototype.onYtServiceRequestSent;Uz.prototype.onYtCommentPollRevert=Uz.prototype.onYtCommentPollRevert;Uz.prototype.onYtCommentboxDismiss=Uz.prototype.onYtCommentboxDismiss;Uz.prototype.onYtNavigate=Uz.prototype.onYtNavigate;Uz.prototype.isLoadingChanged=Uz.prototype.isLoadingChanged;Uz.prototype.dataChanged=Uz.prototype.dataChanged;Uz.prototype.contentTextChanged=Uz.prototype.contentTextChanged;
_.u([_.p(_.Vg),_.W("design:type",Object)],Uz.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Uz.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Uz.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],Uz.prototype,"editDialog",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Uz.prototype,"roundedContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],Uz.prototype,"isLoading",void 0);_.u([_.Y({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.W("design:type",String)],Uz.prototype,"surface",void 0);
_.u([_.Y({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Uz.prototype,"usesCompactLockup",void 0);_.u([_.Y({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Uz.prototype,"showWithoutToolbar",void 0);_.u([_.Y({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.W("design:type",String)],Uz.prototype,"attachment",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Uz.prototype,"isRichGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Uz.prototype,"isRichGridRepost",void 0);_.u([_.Y({reflectToAttribute:!0,value:_.U("use_better_post_dismissals")}),_.W("design:type",Boolean)],Uz.prototype,"useBetterPostDismissals",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Uz.prototype,"reduceSidePaddings",void 0);
_.u([_.Y({computed:"computeHasText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Uz.prototype,"hasText",void 0);_.u([_.Qc("#expander"),_.W("design:type",Object)],Uz.prototype,"expander",void 0);_.u([_.Qc("#action-buttons"),_.W("design:type",Object)],Uz.prototype,"actionButtons",void 0);_.u([_.Qc("#edit-dialog"),_.W("design:type",HTMLElement)],Uz.prototype,"editDialogEl",void 0);
_.u([_.la("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uz.prototype,"contentTextChanged",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uz.prototype,"dataChanged",null);_.u([_.la("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uz.prototype,"isLoadingChanged",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Uz.prototype,"onYtNavigate",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Uz.prototype,"onYtCommentboxDismiss",null);_.u([_.Xw("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Uz.prototype,"onYtCommentPollRevert",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],Uz.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],Uz.prototype,"onYtServiceRequestCompleted",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uz.prototype,"voteCount",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Uz.prototype,"commentCount",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uz.prototype,"hasPoll",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Uz.prototype,"hasUploadedVideo",null);_.u([_.c({is:"ytd-post-renderer",disableElementRegistration:!0})],Uz);
_.d(Uz,"ytd-post-renderer",function(){if(CKa!==void 0)return CKa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return CKa=M},{mode:1});var sKS;var nRv;var vC=function(){return _.g.apply(this,arguments)||this};
_.w(vC,_.g);vC.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],vC.prototype,"ytdHorizontalListBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],vC.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vC.prototype,"data",void 0);
_.u([_.Y({value:"$.items.children"}),_.W("design:type",String)],vC.prototype,"itemsPath",void 0);_.u([_.Y({value:1}),_.W("design:type",Number)],vC.prototype,"initialCount",void 0);_.u([_.Y(),_.W("design:type",String)],vC.prototype,"surface",void 0);_.u([_.c({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],vC);
_.d(vC,"ytd-post-multi-image-renderer",function(){if(nRv!==void 0)return nRv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nRv=M},{mode:_.B5("kevlar_poly_si_batch_j079")?1:2});var h6J={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},GM=function(){var M=_.g.apply(this,arguments)||this;M.hasInlineCommentSection=!1;M.editDialog=null;M.isLoading=!1;M.shouldHideAuthor=!1;M.shouldShowVideoTime=!1;
M.isInEngagementPanel=!1;M.hideBorder=!1;M.usesFullLockup=!1;M.shouldShowMenuInCompactView=!1;M.JSC$15105_spinnerEl=null;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.w(GM,_.g);_.P=GM.prototype;_.P.configureRendererStamper=function(){return h6J};
_.P.computeIsPollHeaderEnabled=function(M){return(M==null?void 0:M.pollMetadataIcon)!=null};
_.P.getPublishTimeStampString=function(M,z){z=new Date((Number(z)-60*((new Date).getTimezoneOffset()-(new Date(Number(z)*1E3)).getTimezoneOffset()))*1E3);z=(new LD(10)).format(z);if(M&&M.runs&&M.runs.length)for(var J=0;J<M.runs.length;J++)M.runs[J].text&&(M.runs[J].text=M.runs[J].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",z));return M};
_.P.created=function(){this.JSC$15105_spinnerEl=null};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var M;if((M=this.data)==null?0:M.actions){M=_.S(this.data.actions);for(var z=M.next();!z.done;z=M.next())this.openEditDialog(_.G(z.value,osS))}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){_.SN(this.hostElement).querySelector("#action-buttons").reply()};
_.P.updatePoll=function(M,z){z&&this.set("data.pollMetadataVoteCountText",z);this.hasInlineCommentSection&&(M=M>=0,z=_.SN(this.hostElement).querySelector("#action-buttons"),M?z.reply():z.hideReplyDialog())};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15105_spinnerEl||(this.JSC$15105_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SN(this.hostElement).appendChild(this.JSC$15105_spinnerEl));this.JSC$15105_spinnerEl&&(this.JSC$15105_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(M){var z=this.get("updateCommentDialogEndpoint",M.detail.endpoint);z&&(this.openEditDialog(z),M.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(M,z){z&&this.updatePoll(z.selectedChoiceIndex,z.totalVotes)};
_.P.onYtServiceRequestSent=function(M,z){M.stopPropagation();M=_.G(z.endpoint,aB$);if(_.G(z.endpoint,VOg)||M&&!M.clientActions)this.isLoading=!0;if(z.actions)for(M=0;M<z.actions.length;M++){var J=z.actions[M],R=_.G(J,s4);R&&(J=this.get("updateBackstagePollAction.selectedChoiceIndex",J),J===void 0&&(J=-1),this.updatePoll(J,R.totalVotes))}};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogElement.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.P.computeIsBodyHidden=function(M,z){return!!M||z};
_.rX.Object.defineProperties(GM.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var M,z;if((M=this.data)==null?0:(z=M.pollMetadataIcon)==null?0:z.iconType)return _.oE(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.id("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,tOu))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,ZMV))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,kOB))}}});
GM.prototype.onYtServiceRequestCompleted=GM.prototype.onYtServiceRequestCompleted;GM.prototype.onYtServiceRequestSent=GM.prototype.onYtServiceRequestSent;GM.prototype.onYtCommentPollRevert=GM.prototype.onYtCommentPollRevert;GM.prototype.onYtCommentboxDismiss=GM.prototype.onYtCommentboxDismiss;GM.prototype.onYtNavigate=GM.prototype.onYtNavigate;GM.prototype.isLoadingChanged=GM.prototype.isLoadingChanged;GM.prototype.dataChanged=GM.prototype.dataChanged;GM.prototype.contentTextChanged=GM.prototype.contentTextChanged;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],GM.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GM.prototype,"rendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],GM.prototype,"rendererstamperBehavior",void 0);_.u([_.Qc("#contentTextExpander"),_.W("design:type",Object)],GM.prototype,"expander",void 0);
_.u([_.Qc("#edit-dialog"),_.W("design:type",Element)],GM.prototype,"editDialogElement",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"hasInlineCommentSection",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"editDialog",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"isLoading",void 0);
_.u([_.Y({computed:"computeIsPollHeaderEnabled(data)"}),_.W("design:type",Boolean)],GM.prototype,"isPollHeaderEnabled",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"shouldHideAuthor",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"shouldShowVideoTime",void 0);_.u([_.Y(),_.W("design:type",Object)],GM.prototype,"isInEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GM.prototype,"hideBorder",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GM.prototype,"usesFullLockup",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GM.prototype,"shouldShowMenuInCompactView",void 0);_.u([_.F("isInEngagementPanel"),_.W("design:type",Number),_.W("design:paramtypes",[])],GM.prototype,"postTextMaxLines",null);_.u([_.F("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"pollIcon",null);
_.u([_.la("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"contentTextChanged",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"dataChanged",null);_.u([_.la("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"isLoadingChanged",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GM.prototype,"onYtNavigate",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"onYtCommentboxDismiss",null);_.u([_.Xw("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],GM.prototype,"onYtCommentPollRevert",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],GM.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GM.prototype,"onYtServiceRequestCompleted",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"voteCount",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"commentCount",null);_.u([_.F("data.backstageAttachment"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GM.prototype,"hasPoll",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GM.prototype,"hasQuiz",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GM.prototype,"hasUploadedVideo",null);
_.u([_.c({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],GM);
_.d(GM,"ytd-backstage-post-renderer",function(){if(sKS!==void 0)return sKS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return sKS=M},{mode:1});var y4p;var wG=function(){var M=_.g.apply(this,arguments)||this;M.editDialog=null;M.showExpandButton=!1;M.isRichGrid=!1;M.usesFullLockup=!1;return M};
_.w(wG,_.g);_.P=wG.prototype;_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.P.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.P.computeShowExpandButton=function(M){return this.usesCompactLockup||M&&M.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.P.computeUsesCompactLockup=function(M){return!!M.condensedContent};
_.P.computeShowFullContentText=function(M){return!M};
_.P.onYtNavigate=function(M){M=this.get("updateCommentDialogEndpoint",M.detail.endpoint);this.openEditDialog(M)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.repostEditDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.P.onTap=function(M){if(this.data){var z=null;this.usesCompactLockup&&!_.bP(_.CX(M)||[],this.hostElement,["YT-IMG-SHADOW"])?z=this.get("navigationEndpoint",this.data):M.target===this.moreButtonEl&&(z=this.get("navigationEndpoint",M.target.data));z&&_.Pv(this.hostElement,"yt-navigate",{endpoint:z})}};
wG.prototype.onYtCommentboxDismiss=wG.prototype.onYtCommentboxDismiss;wG.prototype.onYtNavigate=wG.prototype.onYtNavigate;wG.prototype.dataChanged=wG.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wG.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],wG.prototype,"editDialog",void 0);_.u([_.Y({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],wG.prototype,"usesCompactLockup",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wG.prototype,"showExpandButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wG.prototype,"isRichGrid",void 0);
_.u([_.Y({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.W("design:type",Boolean)],wG.prototype,"showFullContentText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wG.prototype,"usesFullLockup",void 0);_.u([_.Qc("#more"),_.W("design:type",Object)],wG.prototype,"moreButtonEl",void 0);_.u([_.Qc("#repost-content-text"),_.W("design:type",HTMLElement)],wG.prototype,"repostContentTextEl",void 0);
_.u([_.Qc("#repost-edit-dialog"),_.W("design:type",HTMLElement)],wG.prototype,"repostEditDialogEl",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wG.prototype,"dataChanged",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wG.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wG.prototype,"onYtCommentboxDismiss",null);_.u([_.c({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],wG);
_.d(wG,"ytd-shared-post-renderer",function(){if(y4p!==void 0)return y4p;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return y4p=M},{mode:1});var Hlk;var c4a;var xY=function(){return _.g.apply(this,arguments)||this};
_.w(xY,_.g);xY.prototype.attached=function(){var M=this;this.networkStatusManager||(this.networkStatusManager=new _.VS,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){M.onlineHandler()}))};
xY.prototype.detached=function(){var M=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){M.onlineHandler()}),delete this.networkStatusManager)};
xY.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xY.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],xY);
_.d(xY,"ytd-reload-page-button-renderer",function(){if(c4a!==void 0)return c4a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return c4a=M},{mode:1});var dFV={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"},tU=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(tU,_.g);_.P=tU.prototype;_.P.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P.computeHasBodyText=function(M){return!!M.bodyText};
_.P.computeButtons=function(M){var z=[];M.ctaButton&&z.push(M.ctaButton);M.secondaryButton&&z.push(M.secondaryButton);return z};
_.P.computeRendererStyle=function(M){return M.style?M.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():M.icon?"":"no-icon"};
_.P.getIconName=function(M,z){z=z===void 0?!1:z;if(M===void 0)return"";M=this.get("icon.iconType",M);var J;_.U("enable_hlp_client_icon_pick")?J=this.getThemedIcon(M,z):J=M;(z=dFV[J])||(z="yt-icons");return[z,J].join(":")};
_.P.getThemedIcon=function(M,z){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(M)?z?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(M)?z?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":M};
_.P.isThumbnail=function(M){return!!M.thumbnail};
_.P.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],tU.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tU.prototype,"data",void 0);
_.u([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],tU.prototype,"rendererStyle",void 0);_.u([_.Y({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.W("design:type",String)],tU.prototype,"iconName",void 0);_.u([_.Y({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],tU.prototype,"thumbnail",void 0);_.u([_.Y({computed:"computeButtons(data)"}),_.W("design:type",Array)],tU.prototype,"buttons",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],tU.prototype,"isDarkTheme",void 0);_.u([_.Y({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],tU.prototype,"hasBodyText",void 0);_.u([_.c({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],tU);
_.d(tU,"ytd-background-promo-renderer",function(){if(Hlk!==void 0)return Hlk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Hlk=M},{mode:1});var KOu;var jt=function(){var M=_.g.apply(this,arguments)||this;M.collections=_.U("web_modern_collections_v2");return M};
_.w(jt,_.g);_.rX.Object.defineProperties(jt.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(z=M.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(J=this.data)==null?void 0:(R=J.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(N=D.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jt.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],jt.prototype,"collections",void 0);_.u([_.F("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],jt.prototype,"collectionStack",null);_.u([_.c({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],jt);
_.d(jt,"ytd-compact-station-renderer",function(){if(KOu!==void 0)return KOu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return KOu=M},{mode:1});var $Fp;var p9=function(){var M=_.g.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.w(p9,_.g);p9.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]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p9.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],p9.prototype,"isRichGrid",void 0);_.u([_.c({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],p9);
_.d(p9,"ytd-grid-channel-renderer",function(){if($Fp!==void 0)return $Fp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return $Fp=M},{mode:1});var uUB;var Fc=function(){return _.g.apply(this,arguments)||this};
_.w(Fc,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fc.prototype,"data",void 0);_.u([_.c({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Fc);
_.d(Fc,"ytd-grid-movie-playlist-renderer",function(){if(uUB!==void 0)return uUB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uUB=M},{mode:1});var qdk;var YY=function(){var M=_.g.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.modernButtons=_.U("web_modern_buttons");M.useModernCollectionsV2=_.U("web_modern_collections_v2");return M};
_.w(YY,_.g);YY.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
YY.prototype.configureRendererStamper=function(){return{"data.menu":xh}};
YY.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
YY.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.U("woffle_playlist_renderer_killswitch")){var M,z=uf0(this.entityInfo,this.transferState,this.downloadProgress,(M=this.data)==null?void 0:M.playlistId,this.isOnline);M=z.viewPlaylistText;var J=z.badges;z=z.thumbnailOverlays;this.isDownloads=!!M||!!J;this.set("data.viewPlaylistText",M);J&&J.length>0&&this.set("data.badges",J);z&&z.length>0&&this.set("data.thumbnailOverlays",
z)}};
_.rX.Object.defineProperties(YY.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.menu)}}});
YY.prototype.transferStateChanged=YY.prototype.transferStateChanged;YY.prototype.dataChanged=YY.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],YY.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y({selector:_.zyc,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],YY.prototype,"downloadProgress",void 0);_.u([_.Y({selector:_.$f,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],YY.prototype,"transferState",void 0);_.u([_.Y({selector:ME8,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],YY.prototype,"entityInfo",void 0);_.u([_.Y({selector:_.dA}),_.W("design:type",Boolean)],YY.prototype,"isOnline",void 0);
_.u([_.Y(),_.W("design:type",Object)],YY.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],YY.prototype,"downloadRenderData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],YY.prototype,"modernButtons",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],YY.prototype,"isDownloads",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],YY.prototype,"useModernCollectionsV2",void 0);
_.u([_.F("transferState"),_.Y({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],YY.prototype,"downloadState",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YY.prototype,"menuHidden",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YY.prototype,"dataChanged",null);
_.u([_.wH("transferState","downloadProgress","isOnline"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YY.prototype,"transferStateChanged",null);_.u([_.c({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],YY);
_.d(YY,"ytd-grid-playlist-renderer",function(){if(qdk!==void 0)return qdk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qdk=M},{mode:1});var WO2;var mE=function(){var M=_.g.apply(this,arguments)||this;M.collections=_.U("web_modern_collections_v2");return M};
_.w(mE,_.g);mE.prototype.configureRendererStamper=function(){return{"data.menu":xh,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.rX.Object.defineProperties(mE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(z=M.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(J=this.data)==null?void 0:(R=J.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(N=D.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],mE.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],mE.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mE.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],mE.prototype,"collections",void 0);_.u([_.F("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],mE.prototype,"collectionStack",null);_.u([_.c({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],mE);
_.d(mE,"ytd-grid-radio-renderer",function(){if(WO2!==void 0)return WO2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return WO2=M},{mode:1});var agp;var gG=function(){var M=_.g.apply(this,arguments)||this;M.useModernCollectionsV2=_.U("web_modern_collections_v2");return M};
_.w(gG,_.g);gG.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
gG.prototype.computeNavigationEndpoint=function(M){return LT8(M==null?void 0:M.navigationEndpoint)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],gG.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gG.prototype,"data",void 0);_.u([_.Y({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],gG.prototype,"computedNavigationEndpoint",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],gG.prototype,"useModernCollectionsV2",void 0);_.u([_.c({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],gG);
_.d(gG,"ytd-grid-show-renderer",function(){if(agp!==void 0)return agp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return agp=M},{mode:1});var Vw2;_.sz=function(M){this.playerClient=M};
_.ER$=function(M,z,J){J=J===void 0?{}:J;return M.playerClient.setOption("ad",z,J)};
_.sz.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.sz.prototype.executeCommand=function(M,z){this.getOptions().includes("executeCommand")?_.ER$(this,"executeCommand",{command:M,layoutId:z}):_.iE("Calling executeCommand when adModule is not loaded")};var n9=function(){return _.g.apply(this,arguments)||this};
_.w(n9,_.g);n9.prototype.getLayoutId=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
n9.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var M=_.J_(),z=this.getLayoutId(),J=this.data.clickthroughEndpoint;M&&z&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.sz(R)).executeCommand(J,z)}):_.Pv(this.hostElement,"yt-navigate",{endpoint:J})}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],n9.prototype,"data",void 0);_.u([_.c({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],n9);
_.d(n9,"ytd-shopping-companion-item-renderer",function(){if(Vw2!==void 0)return Vw2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Vw2=M},{mode:1});var fgu;var hU=function(){var M=_.g.apply(this,arguments)||this;M.isExpandableContent=!1;return M};
_.w(hU,_.g);_.rX.Object.defineProperties(hU.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?void 0:M.price)||((z=this.data)==null?void 0:(J=z.dealsData)==null?void 0:J.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var M,z;if((M=this.data)!=null&&M.dealsData&&((z=this.data)==null||!z.priceReplacementText)){M=this.data.dealsData;var J,R,D;return((J=M.salesData)==null?void 0:J.originalPrice)||((R=M.priceDropData)==null?void 0:R.referencePrice)||((D=M.promotionData)==null?void 0:D.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var M,z;return(M=this.data)==null?void 0:(z=M.dealsData)==null?void 0:z.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],hU.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hU.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hU.prototype,"isExpandableContent",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"showCta",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"ctaText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"hasPriceTopPosition",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"hasPriceBottomPosition",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"useNewStyle",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"showPriceReplacementText",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"priceValue",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"showDeal",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"showAffiliateDisclaimer",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"useSaleStyle",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"useFromBrandCtaStyle",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"useFromVendorCtaStyle",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hU.prototype,"useShoppingCollectionCtaStyle",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],hU);
_.d(hU,"ytd-vertical-product-card-renderer",function(){if(fgu!==void 0)return fgu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fgu=M},{mode:1});var LOa;var yX=function(){return _.g.apply(this,arguments)||this};
_.w(yX,_.g);yX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],yX.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yX.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],yX);
_.d(yX,"ytd-grid-movie-renderer",function(){if(LOa!==void 0)return LOa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return LOa=M},{mode:1});var A4J;var HC=function(){var M=_.g.apply(this,arguments)||this;M.rounded=!0;M.itemStyle="small-item";return M};
_.w(HC,_.g);HC.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,z,J,R,D=(z=_.G((M=this.data)==null?void 0:M.buttonCommand,_.F7))==null?void 0:(J=z.item)==null?void 0:(R=J.notificationTextRenderer)==null?void 0:R.successResponseText;D&&_.xFG(this.hostElement,D)}};
_.rX.Object.defineProperties(HC.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.isProductPlaceholder)!==void 0&&((z=this.data)==null?void 0:z.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],HC.prototype,"rounded",void 0);_.u([_.Y(),_.W("design:type",Object)],HC.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],HC.prototype,"itemStyle",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"hasPrice",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"hasPriceReplacementText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"hasAdditionalFeesText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"hasAffiliateDisclaimer",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"isProductPlaceholder",null);
_.u([_.Y(),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"hideOpenInNewIcon",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],HC.prototype,"ariaLabel",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],HC);
_.d(HC,"ytd-merch-shelf-item-renderer",function(){if(A4J!==void 0)return A4J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return A4J=M},{mode:1});var ilS=_.Mf(function(M){return _.T("button-card-view-model",{el:_.zL(_.uE(function(){return M.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return M.data().title},
role:"button"},_.T(_.Tn,{model:{}}),_.T("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.T("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.T(_.I,{cond:function(){return M.data().image},
then:function(z){return _.T(_.rv,{data:z,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.T("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return M.data().title})))},"gb");_.U("web_button_view_model_wcw_registration_killswitch")||_.N7(ilS,"button-card-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){M=_.rH(M,{className:void 0});var z=M.data;M=M.className;var J=_.o4(function(){return z().onTapCommand},void 0,"NprDr");
return _.T("ytd-shopping-item-card",{class:_.Qe("ytdShoppingItemCardHost",M)},_.T(_.a9,{command:J,className:"ytdShoppingItemCardHostLink"},_.T("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.T(_.t_,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.T(_.NL,{data:R.data,
aspectRatio:3})}})),_.T("div",null,_.T("p",{class:"ytdShoppingItemCardHostItemTitle"},_.T(_.m3,{text:function(){return z().itemTitle}})),_.T("p",{class:"ytdShoppingItemCardHostPrice"},_.T(_.m3,{text:function(){return z().priceOrStatus}})))))},"hb"),"ytd-shopping-item-card",{props:{data:_.zn,
className:_.zn}});var Cbv={isAdsVideo:!0},blu={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},r4p={showPlayerControls:!1,videoPreviewDurationMs:15E3},MrB={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.U("web_shorts_imp_fullwidth_killswitch")};var bE=null,tw0={};var FOp="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(" "),cC={},Yd8=(cC.FEwhat_to_watch="home",cC.FEhashtag="hashtag",cC.FEtrending="trending",cC.FEhistory="history",cC.SPunlimited="premium",cC.FEmemberships_and_purchases="paid_memberships",cC.SPredeem_code="redeem",cC.SPverify_location="locate",cC.SPminor_moment="minor_moment",
cC.FEmini_app_container="mini_app",cC.FEnews_destination="news",cC.SPopen_in_app="open_in_app",cC.FEexplore="explore",cC.FEsubscriptions="subscriptions",cC.FEsfv_audio_pivot="sfv_audio_pivot",cC.FEplaylist_aggregation="playlist_aggregation",cC);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");_.Of("init");var zx$=function(){},N7$=_.Mf(function(M){var z=M.data;
var J=M.inlineMetadata;var R=M.aspectRatio;var D=M.scrimStyle;var N=M.className;var Z=M.useDefaultStyle;var B=new zx$,O=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.o4(function(){return(Z==null?0:Z())?O==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),l=_.o4(function(){return _.YE(J)||X()||!1},void 0,"F6KaVc"),e=function(){return(D==null?void 0:D())!==void 0?D==null?void 0:D():1},Q=_.o4(function(){return z().belowThumbnailMetadata||
!l()},void 0,"t2xwLe");
M=_.J1({visibilityCallback:function(L){var z8=z().onFirstVisible;L&&z8&&_.aE(z8)},
showOption:{calledOnce:!0,state:"visible"}});var v=_.zL(),x={},m=_.Qe(function(){return X(),"shortsLockupViewModelHostThumbnailContainer"},(x.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.YE(R)===1},x.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.YE(R)===2},x.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!X()},x.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.U("web_shorts_2_by_3_lockups_study")&&
!_.U("desktop_search_enable_two_by_three_shorts_aspect_ratio")},x)),y=_.o4(function(){if(_.YE(R)===1)return 1;
_.YE(R);return 2},void 0,"No1ZPc"),H,q=function(){if(B){var L;
(L=H)==null||M5(L);var z8;if(B.hostElement&&((z8=B.data)==null?0:z8.inlinePlayerData)){L=Object.assign({},MrB);var O8,I3;((O8=B.data)==null?void 0:(I3=O8.inlinePlayerData)==null?void 0:I3.maxPlaybackLengthSec)!==void 0&&(L.videoPreviewDurationMs=B.data.inlinePlayerData.maxPlaybackLengthSec*1E3);H=Wn({mediaRenderer:B,lockupElement:B.hostElement,thumbnailElement:v.value,videoPreviewOpts:L})}}};
_.jP(function(){B&&(B.data=z(),q())},"ou3rue");
var b=_.o4(function(){return z().thumbnail},void 0,"F8lWDd");
x=_.o4(function(){return z().badge},void 0,"IWPLte");
var V=_.o4(function(){return z().onTap},void 0,"G1C37d"),E={};
return _.T("ytm-shorts-lockup-view-model",{el:_.zL(function(L){B&&(B.hostElement=L)},q,M),
class:_.Qe("shortsLockupViewModelHost",N)},_.T(_.MH,null,_.T(_.a9,{command:V,className:_.Qe("shortsLockupViewModelHostEndpoint",(E.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!Q()},E),"reel-item-endpoint",""),
ariaHidden:function(){return!l()},
tabIndex:function(){return l()?0:-1}},_.T("div",{el:v,
class:"shortsLockupViewModelHostThumbnailParentContainer"},_.T(_.I,{cond:b,then:function(){return _.T("div",{class:m},_.T(_.rv,{data:function(){var L;return(L=b==null?void 0:b())!=null?L:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.T(_.t_,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(L){return _.T(_.NL,{data:L.data,
aspectRatio:function(){return y()},
disableRounding:function(){return X()}})}}),null),_.T(_.I,{cond:l,
then:function(){return _.T(JyB,{data:z,scrimStyle:e,useDefaultStyle:Z})}}),_.T(_.t_,{data:x},{badgeViewModel:function(L){return _.T(_.kY,{data:L.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.T(_.I,{cond:function(){return l()&&z().menuOnTap},
then:function(){return _.T(RxV,{data:z,inlineMetadata:!0})}}),_.T(_.I,{cond:Q,
then:function(){return _.T(DuQ,{data:z,useDefaultStyle:Z,inlineMetadata:l})}})))},"ib"),JyB=_.Mf(function(M){var z=M.data;
var J=M.scrimStyle;var R=M.useDefaultStyle;var D=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=R&&_.U("web_hide_primary_text_for_pivot_panel"),Z=_.o4(function(){return(R==null?0:R())?D==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"NcNabd");
M={};M=_.Qe("shortsLockupViewModelHostInlineMetadata",(M.shortsLockupViewModelHostMetadataRounded=function(){return!Z()},M.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(J==null?void 0:J())===3&&!_.U("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(J==null?void 0:J())===3&&_.U("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(J==null?void 0:J())===2||(J==null?void 0:
J())===4},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
var B={};return _.T("div",{class:M},_.T("h3",{class:_.Qe("shortsLockupViewModelHostMetadataTitle",(B.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(J==null?void 0:J())===4},B.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return z().belowThumbnailMetadata},B)),
"aria-label":function(){return z().accessibilityText}},_.T(_.I,{cond:function(){var O;
return!((O=z().overlayMetadata)==null||!O.primaryText)&&!N},
then:function(){return _.T(_.m3,{text:function(){var O;return(O=z().overlayMetadata)==null?void 0:O.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.T(_.I,{cond:function(){var O;
return(O=z().overlayMetadata)==null?void 0:O.secondaryText},
then:function(){return _.T(PpV,{data:z,scrimStyle:J,className:void 0})}}))},"jb"),DuQ=_.Mf(function(M){var z=M.data;
var J=M.useDefaultStyle;var R=M.inlineMetadata;var D=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.o4(function(){return(J==null?0:J())?D==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"UBARTb"),Z=_.zL(),B;
M=_.ol(function(v){if(_.cn(_.Hn(v),Z.value,["AVATAR-VIEW-MODEL"]))return!1;var x;(x=B)==null||x.click();return!1});
var O=_.o4(function(){return z().belowThumbnailMetadata||z().overlayMetadata},void 0,"nD3Z0"),X=function(){return z().menuOnTap&&!R()},l=function(){var v;
return(v=O())==null?void 0:v.avatar},e={},Q={};
return _.T("div",{class:_.Qe(function(){return N()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(e.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!l()},e.shortsLockupViewModelHostOutsideMetadataHasMenu=X,e)),
"on:click":M,el:Z,role:"presentation"},_.T(_.t_,{data:l},{avatarViewModel:function(v){return _.T("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.T(_.dj,{data:v.data}))}}),_.T("div",null,_.T("h3",{class:_.Qe("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Q.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var v,x;
return!((v=O())==null?0:(x=v.primaryText)==null?0:x.content)},Q.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=R,Q)),
role:"presentation"},_.T(_.a9,{ref:function(v){return void(B=v)},
command:function(){return z().onTap},
className:_.Qe("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var v,x;return(v=O())==null?void 0:(x=v.primaryText)==null?void 0:x.content},
"aria-label":function(){return z().accessibilityText}},_.T(_.I,{cond:function(){var v;
return(v=O())==null?void 0:v.primaryText},
then:function(v){return _.T(_.m3,{text:v,noEndpoints:!0,noStyleRuns:!0})}}))),_.T(_.I,{cond:function(){var v;
return(v=O())==null?void 0:v.secondaryText},
then:function(v){return _.T("div",{class:_.Qe("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.T(_.m3,{text:v,noStyleRuns:!0}))}})),_.T(_.I,{cond:X,
then:function(){return _.T(RxV,{data:z,inlineMetadata:!1})}}))},"kb"),PpV=_.Mf(function(M){var z=M.data;
var J=M.scrimStyle;M=M.className;var R={};return _.T("div",{class:_.Qe((R.shortsLockupViewModelHostMetadataSubhead=function(){return(J==null?void 0:J())!==4},R.shortsLockupViewModelHostMetadataSubheadNew=_.U("enable_shorts_lockup_new_scrim"),R.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(J==null?void 0:J())===4},R),M),
"aria-hidden":"true"},_.T(_.m3,{text:function(){var D;return(D=z().overlayMetadata)==null?void 0:D.secondaryText},
noStyleRuns:!0}))},"lb"),RxV=_.Mf(function(M){var z=M.data;
var J=M.inlineMetadata;M={};M=_.Qe((M.shortsLockupViewModelHostInlineMetadataMenu=function(){return J()},M.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!J()},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
return _.T("div",{class:M},_.T(_.XC,{data:function(){return{style:J()?"overlay":"mono",accessibilityLabel:z().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(R){R.preventDefault();R.stopPropagation();var D=_.qf({elementsCommand:z().menuOnTap,forceNewState:!0});if(D==null?0:D.onclick)D.onclick(R)}}},
iconName:"MORE_VERT"}))},"mb");var St2=_.Mf(function(M){var z=M.data;var J=M.inlineMetadata;var R=M.aspectRatio;var D=M.scrimStyle;var N=M.className;var Z=M.useDefaultStyle;M=_.o4(function(){var B=z().entityId;return B?B.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.T("ytm-shorts-lockup-view-model-v2",{class:_.Qe("shortsLockupViewModelHost",N)},_.T(_.TM,{contentId:M,aspectRatio:function(){return(R==null?void 0:R())===1?1:(R==null?void 0:R())===2?2:4}},function(){return _.T(N7$,{data:z,
inlineMetadata:J,aspectRatio:R,scrimStyle:D,className:N,useDefaultStyle:Z})}))},"nb");_.N7(St2,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Dv,inlineMetadata:_.Dv,aspectRatio:_.Dv,scrimStyle:_.Dv,className:_.Dv,useDefaultStyle:_.Dv}});var ZGu=16/9*210,dG=function(){var M=_.g.apply(this,arguments)||this;M.isExpandableContent=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.buttonClasses=["arrow"];M.isSearch=!1;M.disableScrollEventListener=!1;M.containsLockup=!1;M.overrideArrowPositionForProductCard=!1;M.overrideArrowPositionForShoppingItemCard=!1;M.overrideArrowPositionForReelItems=!1;M.overrideArrowPositionForGridMovie=!1;M.overrideArrowPositionToCenter=!1;M.isSearchPostShelf=!1;M.overrideArrowPositionForMixedShelf=!1;M.overrideArrowPositionForMixedShelfShortsOnly=
!1;M.hasBigThumbsReelItems=!1;M.shouldUseMixedListHeight=!1;M.shouldUseShortsListHeight=!1;M.gridVideoWidth=0;M.isSearchVodShelf=!1;M.disableWheelScroll=!1;M.sizing="COMPACT";M.shortsLockupAspectRatio=0;return M};
_.w(dG,_.g);_.P=dG.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.U("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.P.computeInitialCountNumber=function(M){if(!M)return 6;var z=M.items.some(function(N){return!!N.topicRecommendationsChipRenderer}),J=M.items.some(function(N){return!!N.displayAdRenderer}),R=this.computeShouldListItemsHaveEqualHeight(M),D=M.items.some(function(N){return!!N.gridPlaylistRenderer});
M=M.items.some(function(N){return!!N.shoppingItemCardViewModel});
return z?9:J?8:D||R?10:M?7:6};
_.P.computeContainsPost=function(M){return!!M&&!!M.items&&M.items.some(function(z){return!!z.postRenderer})};
_.P.computeContainsLockup=function(){if(_.U("web_horizontal_list_lockup_arrow_killswitch"))return!1;var M,z;return(M=this.data)==null?void 0:(z=M.items)==null?void 0:z.some(function(J){return!!J.lockupViewModel})};
_.P.maybeUpdateLockupAspectRatio=function(){var M,z;if(this.computeContainsLockup()&&((M=this.data)==null?0:(z=M.items)==null?0:z.length)){var J;M=At0((J=this.data.items[0].lockupViewModel)==null?void 0:J.contentType,this.data.force16By9ThumbnailAspectRatio);J=aTo(M);J=this.computeLockupWidth()/J;_.Tp(this.hostElement,{"--yt-horizontal-list-content-height":J+"px"})}};
_.P.computeOverrideArrowPositionForProductCard=function(M){if(this.isExpandableContent)return!1;var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){return!!J.verticalProductCardRenderer}))};
_.P.computeOverrideArrowPositionForShoppingItemCard=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){return!!J.shoppingItemCardViewModel}))};
_.P.computeOverrideArrowPositionForReelItemRenderer=function(M){return this.containsReelItemRenderer(M)};
_.P.computeHasBigThumbsReelItems=function(M,z){return M&&this.containsReelItemRenderer(z)};
_.P.computeShouldListItemsHaveEqualHeight=function(M){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(M==null?void 0:M.itemSizeConstraint)};
_.P.computeShouldListItemsHaveShortsHeight=function(M){return this.computeShouldListItemsHaveEqualHeight(M)&&!this.containsGridVideoRenderer(M)};
_.P.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.P.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.P.containsReelItemRenderer=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){return!(!J.reelItemRenderer&&!J.shortsLockupViewModel)}))};
_.P.containsGridVideoRenderer=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){return!!J.gridVideoRenderer||!!J.lockupViewModel}))};
_.P.computeContainsGridMovieRenderer=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){return!!J.gridMovieRenderer}))};
_.P.computeOverrideArrowPositionToCenter=function(M){return this.computeIsSearchPostShelf(M)};
_.P.computeIsSearchPostShelf=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){var R,D;return((D=(R=J.postRenderer)==null?void 0:R.surface)!=null?D:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.P.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(M){var z;return!!(M==null?0:(z=M.items)==null?0:z.some(function(J){var R,D,N;return((N=(R=J.backgroundPromoRenderer)==null?void 0:(D=R.style)==null?void 0:D.value)!=null?N:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.P.computeIsSearchVodShelf=function(M,z){return M&&this.containsGridVideoRenderer(z)};
_.P.computeDisableWheelScroll=function(M,z){return this.computeIsSearchVodShelf(M,z)};
_.P.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.P.computeShortsLockupAspectRatio=function(){return 1};
_.P.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Tp(this.hostElement,{"--ytd-reel-item-thumbnail-height":ZGu+"px"})};
dG.prototype.dataChanged=dG.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],dG.prototype,"ytdHorizontalListBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dG.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],dG.prototype,"isExpandableContent",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"hideShelfHeader",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Array)],dG.prototype,"buttonClasses",void 0);_.u([_.Y(),_.W("design:type",Object)],dG.prototype,"isSearch",void 0);
_.u([_.Y(),_.W("design:type",Object)],dG.prototype,"disableScrollEventListener",void 0);_.u([_.Y({computed:"computeInitialCountNumber(data)"}),_.W("design:type",Number)],dG.prototype,"initialCount",void 0);_.u([_.Y({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],dG.prototype,"supportComponentResize",void 0);_.u([_.Y({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],dG.prototype,"containsPost",void 0);
_.u([_.Y({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"containsLockup",void 0);_.u([_.Y({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],dG.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.u([_.Y({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForProductCard",void 0);_.u([_.Y({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.u([_.Y({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForReelItems",void 0);_.u([_.Y({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForGridMovie",void 0);
_.u([_.Y({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionToCenter",void 0);_.u([_.Y({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"isSearchPostShelf",void 0);_.u([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.u([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.u([_.Y({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"hasBigThumbsReelItems",void 0);
_.u([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"shouldUseMixedListHeight",void 0);_.u([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"shouldUseShortsListHeight",void 0);_.u([_.Y({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"gridVideoWidth",void 0);
_.u([_.Y({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"isSearchVodShelf",void 0);_.u([_.Y({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],dG.prototype,"disableWheelScroll",void 0);_.u([_.Y({computed:"computeSizing(isSearch)"}),_.W("design:type",Object)],dG.prototype,"sizing",void 0);
_.u([_.Y({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.W("design:type",Object)],dG.prototype,"shortsLockupAspectRatio",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dG.prototype,"dataChanged",null);
_.d(dG,"yt-horizontal-list-renderer",function(){if(OJp===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);OJp=M}M=OJp;return M},{mode:1});var k9S;var B7t=[10,12,14,16,18,20,24,28,32,36],OGJ=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],K9=function(){var M=_.g.apply(this,arguments)||this;M.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";M.hideOverflow=!1;M.useRoboto=!1;M.fontClass="";M.overflown=!1;M.actionMap={"yt-window-resized":"resize"};return M};
_.w(K9,_.g);_.P=K9.prototype;
_.P.attached=function(){var M=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.C4(this,function(){M.resize()});
if(!_.Tj){var z,J,R;(z=document)==null||(J=z.fonts)==null||(R=J.ready)==null||R.then(function(){M.resize()})}};
_.P.dataChanged=function(){this.resize()};
_.P.guideIsExpandedChanged=function(){this.resize()};
_.P.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var M=this.getMaxNumLines(),z=this.getMinFont(),J=this.getMaxFont(),R=this.useRoboto?B7t:OGJ;for(R=R.filter(function(N){return N<=J&&N>=z});R.length>1;){var D=Math.floor(R.length/2);
this.updateFontSize(R[D]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=M)R=R.slice(D,R.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>M)R=R.slice(0,D);else break}this.updateFontSize(R[R.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(M)}};
_.P.handleOverflow=function(M){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>M&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",M.toString()))};
_.P.updateFontSize=function(M){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+M;this.textNode.classList.add(this.fontClass)};
_.P.getMaxFont=function(){var M=this.useRoboto?B7t:OGJ;M=M[M.length-1];return this.maxFontSize&&this.maxFontSize<=M?this.maxFontSize:M};
_.P.getMinFont=function(){var M=(this.useRoboto?B7t:OGJ)[0];return this.minFontSize&&this.minFontSize>=M?this.minFontSize:M};
_.P.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.P.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.P.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.CD(this.text).split("\n").length-1:Infinity};
_.P.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
K9.prototype.guideIsExpandedChanged=K9.prototype.guideIsExpandedChanged;K9.prototype.dataChanged=K9.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],K9.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],K9.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],K9.prototype,"text",void 0);
_.u([_.Y(),_.W("design:type",String)],K9.prototype,"fontFamily",void 0);_.u([_.Y(),_.W("design:type",Number)],K9.prototype,"maxWidth",void 0);_.u([_.Y(),_.W("design:type",Number)],K9.prototype,"maxHeight",void 0);_.u([_.Y(),_.W("design:type",Number)],K9.prototype,"maxFontSize",void 0);_.u([_.Y(),_.W("design:type",Number)],K9.prototype,"minFontSize",void 0);_.u([_.Y(),_.W("design:type",Number)],K9.prototype,"maxLines",void 0);_.u([_.Y(),_.W("design:type",Object)],K9.prototype,"hideOverflow",void 0);
_.u([_.Y({selector:_.qb3}),_.W("design:type",Boolean)],K9.prototype,"guideIsExpanded",void 0);_.u([_.Qc("#container"),_.W("design:type",HTMLElement)],K9.prototype,"containerNode",void 0);_.u([_.Qc("#text"),_.W("design:type",HTMLElement)],K9.prototype,"textNode",void 0);_.u([_.wH("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K9.prototype,"dataChanged",null);
_.u([_.wH("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K9.prototype,"guideIsExpandedChanged",null);_.u([_.c({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],K9);
_.d(K9,"yt-dynamic-sizing-formatted-string",function(){if(k9S!==void 0)return k9S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return k9S=M},{mode:1});var T7t;_.Ie$=function(M){_.Mb.call(this,M)};
_.w(_.Ie$,_.Mb);var oup=function(M){_.Mb.call(this,M)};
_.w(oup,_.Ie$);var $Y=function(){return _.g.apply(this,arguments)||this};
_.w($Y,_.g);$Y.prototype.onTapSuspendedChannel=function(){var M;if((M=this.data)!=null&&M.serviceEndpoint){var z,J;(M=(J=_.G((z=this.data)==null?void 0:z.serviceEndpoint,_.af))==null?void 0:J.url)?_.EA(M,void 0,void 0,window.top):(z=new oup("Did not handle suspended account tap. No appealUrl."),_.nc(z))}else z=new oup("Did not handle suspended account tap. No serviceEndpoint."),_.nc(z)};
$Y.prototype.onTap=function(){var M=this,z=_.Gm(),J,R=(J=_.v5(z,{veType:7116}))!=null?J:void 0;_.al(z,{visualElement:R});_.az();this.saveRoleText();var D;if((D=this.data)==null?0:D.youtubeSuspended)this.onTapSuspendedChannel();else{var N=!1,Z,B;(z=(B=_.G((Z=this.data)==null?void 0:Z.serviceEndpoint,_.CUp))==null?void 0:B.supportedTokens)&&z.forEach(function(O){if(O.accountSigninToken)if(N=!0,M.onAccountItemTap)M.onAccountItemTap(O.accountSigninToken.signinUrl);else _.EA(O.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!N){if(Z=this.get("serviceEndpoint",this.data))N=!0,this.ytComponentBehavior.resolveCommand(Z);N||_.hL(new oup("Did not handle account switch tap. No token."))}}};
$Y.prototype.saveRoleText=function(){if(this.data){var M=this.data,z=M.channelDelegationRole;if(z){var J,R=(J=_.G(M==null?void 0:M.serviceEndpoint,_.CUp))==null?void 0:J.supportedTokens;if(!R){var D,N,Z,B;R=(D=_.G(M==null?void 0:M.serviceEndpoint,_.nM))==null?void 0:(N=D.popup)==null?void 0:(Z=N.confirmDialogRenderer)==null?void 0:(B=Z.confirmButton)==null?void 0:B.buttonRenderer;var O;R=(O=_.G(R==null?void 0:R.command,_.TV))==null?void 0:O.commands;if(!R)return;var X;R=(X=_.G(R[1],_.CUp))==null?
void 0:X.supportedTokens}if(R){O=void 0;X=_.S(R);for(R=X.next();!R.done;R=X.next())if(R=R.value,R.datasyncIdToken){O=R.datasyncIdToken.datasyncIdToken;break}if(O){var l;a:{if(_.kPR()&&(X=_.ebR(O+"::pom"))){X=new hE(X);break a}X=void 0}(l=X)==null||l.set("role_text",z);if((w83?w83:window.location).href.indexOf("studio")!==-1&&(l=Bjp())){X=l.src?(new URL(l.src)).origin:"*";var e;(e=l.contentWindow)==null||e.postMessage({action:"save_pom_role",datasyncId:O,roleText:z},X)}}}}}};
_.rX.Object.defineProperties($Y.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.accountPhoto)==null?void 0:z.thumbnails;return J&&J.length>0&&(J[0].height===36||J[0].height===48)?J[0].height:40}}});
$Y.prototype.onTap=$Y.prototype.onTap;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$Y.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Function)],$Y.prototype,"onAccountItemTap",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$Y.prototype,"enableRingForActiveAccount",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],$Y.prototype,"thumbnailSize",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$Y.prototype,"onTap",null);_.u([_.c({is:"ytd-account-item-renderer",disableElementRegistration:!0})],$Y);
_.d($Y,"ytd-account-item-renderer",function(){if(T7t!==void 0)return T7t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return T7t=M},{mode:1});var XTp;var uj=function(){return _.g.apply(this,arguments)||this};
_.w(uj,_.g);uj.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.JF().resolve(_.Rb).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uj.prototype,"data",void 0);_.u([_.c({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],uj);
_.d(uj,"ytd-identity-chip-renderer",function(){if(XTp!==void 0)return XTp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return XTp=M},{mode:1});var le$;var exJ;var QF$;var UuQ;var qL=function(){var M=_.g.apply(this,arguments)||this;M.richItemMinWidth=_.NC("wn_grid_min_item_width",310);M.isShorts=!1;M.isWatchNext=!1;M.isExploreHub=!1;return M};
_.w(qL,_.g);_.rX.Object.defineProperties(qL.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var M=[],z=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Tp(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var J;if(((J=this.data)==null?0:J.rows)&&z)for(z*=this.data.rows,J=0;J<z;J++)M.push({});return M}}});
_.u([_.p(_.Wg),_.W("design:type",Object)],qL.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qL.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.y$,value:3}),_.W("design:type",Number)],qL.prototype,"itemsPerRow",void 0);_.u([_.Y({selector:_.ux3,value:6}),_.W("design:type",Number)],qL.prototype,"slimItemsPerRow",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Number)],qL.prototype,"richItemMinWidth",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],qL.prototype,"miniMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qL.prototype,"isShorts",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qL.prototype,"isWatchNext",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qL.prototype,"isExploreHub",void 0);
_.u([_.F("isExploreHub"),_.Y({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],qL.prototype,"shimmerAnimation",null);_.u([_.F("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.W("design:type",Array),_.W("design:paramtypes",[])],qL.prototype,"cardItems",null);_.u([_.c({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],qL);
_.vu2=_.kS()(qL,"ytd-ghost-grid-renderer",function(){if(UuQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);UuQ=M}M=UuQ;return M},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.N7(_.Mf(function(M){var z=_.rH(M,{numberOfComments:3}).numberOfComments,J=_.rH(M,{isInitialLoad:!1}).isInitialLoad,R=_.rH(M,{engagementPanel:!1}).engagementPanel,D=function(){return Math.min(Number(z==null?void 0:z())||20,20)};
return _.T("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.T(_.I,{cond:function(){return!(R==null?0:R())&&(J==null?void 0:J())},
then:function(){return _.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.T("div",{class:_.Qe("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Qe("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.Qe("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.T("div",{class:_.Qe("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.T("div",{class:"ytGhostCommentsComments"},_.T(_.G4,{each:function(){return Array((D==null?void 0:D())||3)}},function(){return _.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsHost"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.Qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.T("div",{class:_.Qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:"ytGhostCommentsGhostLikeDislike"},_.T("div",{class:_.Qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ob"),"yt-ghost-comments",{props:{numberOfComments:_.zn,
isInitialLoad:_.zn,engagementPanel:_.zn}});_.nn("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var WC=function(){var M=_.g.apply(this,arguments)||this;M.isOverridable=!1;M.spinnerActive=!1;M.showButton=!1;M.isCommentsSection=!1;M.engagementPanel=!0;M.isShortsGrid=!1;M.isShortsPage=!1;M.isWatchPage=!1;M.ghostCardExperimentEnabled=_.U("show_ghost_comments_shorts_watch")||_.U("show_ghost_comments_desktop_watch");M.originalShowButton=!1;M.endOfList=!1;return M};
_.w(WC,_.g);_.P=WC.prototype;_.P.resetIntersectionObserver=function(){var M;(M=this.observer)==null||M.disconnect();this.observer=void 0};
_.P.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var M,z;((M=this.data)==null?void 0:M.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((z=this.data)==null?0:z.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.P.initializeIntersectionObserver=function(){var M=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(z){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J.value.isIntersecting&&(M.triggerContinuation(),M.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.P.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var M;((M=this.data)==null?0:M.continuationEndpoint)&&(M=_.G(this.data.continuationEndpoint,_.uP))&&this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:M}}))};
_.P.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.P.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.P.onServiceRequestCompleted=function(M,z){if(!_.U("kevlar_hide_spinner_on_empty_continuation_killswitch")){var J;(J=z.actions)!=null&&J.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.P.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.P.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.P.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.P.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var M=3;if(this.engagementPanel){var z,J,R;M=Math.floor(((((z=this.hostElement)==null?void 0:(J=z.parentElement)==null?void 0:(R=J.parentElement)==null?void 0:R.scrollHeight)||108)-108)/108);M=this.isInitialLoad?Math.max(M,3):3}z=[].concat(_.Yj(this.hostElement.querySelectorAll("yt-ghost-comments")));z=_.S(z);for(J=z.next();!J.done;J=z.next())J=J.value,J.numberOfComments=M,J.isInitialLoad=this.isInitialLoad,J.engagementPanel=
this.engagementPanel}};
_.P.detached=function(){this.resetIntersectionObserver()};
_.rX.Object.defineProperties(WC.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.U("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.U("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
WC.prototype.numberOfGhostCommentsChanged=WC.prototype.numberOfGhostCommentsChanged;WC.prototype.continuationTriggerOffsetChanged=WC.prototype.continuationTriggerOffsetChanged;WC.prototype.showButtonChanged=WC.prototype.showButtonChanged;WC.prototype.onYtServiceRequestCompletedForButtonRenderer=WC.prototype.onYtServiceRequestCompletedForButtonRenderer;WC.prototype.onServiceRequestCompleted=WC.prototype.onServiceRequestCompleted;WC.prototype.onYtServiceRequestSentForButtonRenderer=WC.prototype.onYtServiceRequestSentForButtonRenderer;
WC.prototype.observeData=WC.prototype.observeData;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],WC.prototype,"ytVisibilityBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],WC.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],WC.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"isOverridable",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"spinnerActive",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"showButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WC.prototype,"isCommentsSection",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WC.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"isShortsGrid",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.Vx8}),_.W("design:type",Object)],WC.prototype,"isShortsPage",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.aup}),_.W("design:type",Object)],WC.prototype,"isWatchPage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WC.prototype,"ghostCardExperimentEnabled",void 0);
_.u([_.Y(),_.W("design:type",Number)],WC.prototype,"continuationTriggerOffset",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"endOfList",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],WC.prototype,"isInitialLoad",void 0);_.u([_.Qc("ytd-button-renderer"),_.W("design:type",_.SC)],WC.prototype,"buttonRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],WC.prototype,"buttonOverrides",void 0);
_.u([_.Y(),_.F("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.W("design:type",Object),_.W("design:paramtypes",[])],WC.prototype,"isShortsCommentsSection",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"observeData",null);
_.u([_.Xw("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],WC.prototype,"onServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-completed-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.u([_.wH("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"showButtonChanged",null);
_.u([_.wH("continuationTriggerOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"continuationTriggerOffsetChanged",null);_.u([_.la("isInitialLoad","engagementPanel"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WC.prototype,"numberOfGhostCommentsChanged",null);_.u([_.c({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],WC);
_.d(WC,"ytd-continuation-item-renderer",function(){if(QF$!==void 0)return QF$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return QF$=M},{mode:1});var G9$;var a5=function(){var M=_.g.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;M.downloadedVideoPlaybackPosition=0;return M};
_.w(a5,_.g);a5.prototype.dataChanged=function(){var M;this.videoData=_.G((M=this.data)==null?void 0:M.renderer,mjv);this.transferStateChanged()};
a5.prototype.downloadProgressChanged=function(){if(this.entityInfo){var M=Object.assign({},this.videoData),z=qEG(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),J=z.publishedTimeText,R=z.badges;M.shortViewCountText=z.shortViewCountText;M.publishedTimeText=J;M.badges=R;this.set("videoData",M)}};
a5.prototype.transferStateChanged=function(){if(this.entityInfo){var M=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",z=_.xf(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wA(this.entityInfo.policyEntity),J=Object.assign({},this.videoData),R=qEG(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),D=R.publishedTimeText,N=R.badges;J.shortViewCountText=
R.shortViewCountText;J.publishedTimeText=D;J.badges=N;J.isDisabled=z;J.isWatched=this.downloadedVideoPlaybackPosition>0;J.navigationEndpoint=z?void 0:E73(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Z;M&&((Z=this.videoData)==null?0:Z.videoId)&&!_.U("dl_resume_click_killswitch")&&(J.isDisabled=!1,J.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});J.thumbnailOverlays=$n8(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",J)}};
a5.prototype.transferStateChanged=a5.prototype.transferStateChanged;a5.prototype.downloadProgressChanged=a5.prototype.downloadProgressChanged;a5.prototype.dataChanged=a5.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],a5.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],a5.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],a5.prototype,"videoData",void 0);_.u([_.Y({selector:ud,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"downloadProgress",void 0);_.u([_.Y(),_.W("design:type",Number)],a5.prototype,"relativeDateReference",void 0);_.u([_.Y({selector:_.KD,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"transferState",void 0);
_.u([_.Y({selector:OZH,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"downloadState",void 0);_.u([_.Y({selector:iNG,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"offlinePolicyAction",void 0);_.u([_.Y({selector:Cnb,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.u([_.Y({selector:qv,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"downloadedVideoPlaybackPosition",void 0);_.u([_.Y({selector:rm0,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],a5.prototype,"entityInfo",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],a5.prototype,"isDownloading",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a5.prototype,"dataChanged",null);
_.u([_.wH("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a5.prototype,"downloadProgressChanged",null);_.u([_.wH("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a5.prototype,"transferStateChanged",null);
_.u([_.c({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],a5);
_.d(a5,"ytd-downloaded-video-grid-video-renderer",function(){if(G9$!==void 0)return G9$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return G9$=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var wTJ;var VX=function(){};
VX.prototype.resolve=function(M,z){var J=this;return _.k(function(R){return R.yield(J.resolveCommand(M,z),0)})};var xuB,Ez;xuB=Gbe(function(M){return M.targetId},{shouldPersist:!1});
Ez=xuB.updateData;_.trk=xuB.useUpdatableData;var jF2,pTQ;jF2=Gbe(function(M){return M.targetId});
pTQ=jF2.updateData;_.FXp=jF2.useUpdatableData;var Ytg=sKe.bind(null,Ez),muk=sKe.bind(null,pTQ);(function(M,z,J){var R=_.G(J==null?void 0:J.updatedRenderer,_.N$$);return R?M({targetId:z},function(){return R}):!1}).bind(null,Ez);var f9=function(){};
_.w(f9,VX);f9.prototype.resolveCommand=function(M){var z;return _.k(function(J){z=_.G(M,_.nd0);if(!z)return J.return();Ytg(z.targetId,z);_.UI(J)})};var L9=function(){var M=_.vU.apply(this,arguments)||this;M.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return M};
_.w(L9,_.vU);_.P=L9.prototype;_.P.configureContinuationPathMap=function(){return{}};
_.P.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.P.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.P.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.P.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.P.handleAppendContinuationItemsAction=function(M){var z=_.G(M,_.mkQ);if(this.data&&this.data.targetId&&z&&this.continuationPathMap&&z.targetId===this.data.targetId){var J=h$w(M),R=J&&this.continuationPathMap[J];if(R&&J)if(M=this.get(R,this.data)){a:{for(J=0;J<M.length;J++){var D=M[J],N=void 0,Z=!!_.G((N=_.G(D,X3$))==null?void 0:N.content,_.jRu);if(_.G(D,_.z0)||Z)break a}J=M.length}R="data."+R;z.continuationItems?J===M.length-1?(this.pop(R),this.push.apply(this,[R].concat(_.Yj(z.continuationItems)))):
J===M.length?this.push.apply(this,[R].concat(_.Yj(z.continuationItems))):this.splice.apply(this,[R,J,1].concat(_.Yj(z.continuationItems))):this.splice(R,J,1);(_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation"))&&_.Pv(this.hostElement,"yt-append-continuation-items-action-finished");_.Pv(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.yA(new _.xN("append continuation items does not exist",J));else _.yA(new _.xN("append continuation path does not exist",
J))}};
_.P.handleReloadContinuationItemsCommand=function(M){var z=_.G(M,_.nd0);if(this.data&&z){if(_.U("web_client_explore_hub")||_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))try{_.JF().resolve(f9).resolveCommand(M)}catch(N){}if(this.data.targetId&&this.continuationPathMap&&z.targetId===this.data.targetId&&(!_.U("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||z.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var J,R=(J=z.slot)==null?void 0:
J.replace("RELOAD_CONTINUATION_SLOT_","");J=(M=h$w(M)+"-"+(R==null?void 0:R.toLowerCase()))&&this.continuationPathMap[M];if(!J||!M||!R)_.yA(new _.xN("reload continuation path does not exist",M));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(z)){if(z.replaceWithFirstItem){var D;this.set("data."+J,((D=z.continuationItems)==null?0:D.length)?z.continuationItems[0]:{})}else this.set("data."+J,z.continuationItems?z.continuationItems:[]);this.continuationIsReloading=
!1;_.Pv(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.P.handleShowReloadUiCommand=function(M){M=_.G(M,VBV);var z;((z=this.data)==null?0:z.targetId)&&(M==null?0:M.targetId)&&M.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
L9.prototype.observeData=L9.prototype.observeData;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],L9.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],L9.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L9.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],L9.prototype,"continuationIsReloading",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"observeData",null);_.u([_.Gp()],L9);_.AU=[_.LZ.YtComponentBehavior,_.wx.YtActionHandlerBehavior,L9.prototype];_.ij={};_.ij.YtNextContinuationBehavior=[_.Pm.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",_.ou(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ou(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(M,z){M.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,z,{}):(M={locationRetrieved:function(J){this.makeNextContinuationRequest_(J,z,{})}.bind(this)},_.Pv(this.hostElement,"yt-retrieve-location",M))},
makeNextContinuationRequest_:function(M,z,J){_.yC("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();M=z(M);var R;this.canUseContextualNetworkManager_()&&(R=this.getNetworkManager());R||(R=_.JF().resolve(_.HP));z=_.Ve.instance;if(_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&z){R=_.MG([M.startsWith("/")?M.substr(1):M]);var D,N;J=_.W2(z,{},R,J==null?void 0:(D=J.context)==null?void 0:(N=D.clickTracking)==null?void 0:N.clickTrackingParams).then(function(Z){return{response:Z}})}else J=
this.nextContinuation.usePost?R.postData(M,J):R.fetchData(M);
J.then(this.updateNextContinuationData_.bind(this,M));this.pendingContinuationRequest_=J;this.startListeningForNavigate_()},
updateNextContinuationData_:function(M,z){var J=this;_.yC("ncl");this.pendingContinuationRequest_=void 0;if(z){var R={};this.nextContinuation&&(R=this.nextContinuation);if(z.response&&z.response.continuationContents&&z.response.continuationContents[R.continuationType]){M=z.response.continuationContents[R.continuationType];var D=R.header||"data.header",N=M[R.responseHeaderKey||"header"];N&&this.set(D,N);D=R.contentsArray||"data.contents";N=this.getContents_(M,R.responseContentsKey||"contents")||[];
this.pathExists_(D)?(N.unshift(D),this.push.apply(this,N)):this.set(D,N);N&&(nRp(_.Gm(),z.response,this.hostElement,function(Z){_.S9(J.hostElement,"yt-store-grafted-ve-action",[Z])}),_.Pv(this.hostElement,"yt-next-continuation-data-updated",{continuationData:z,
page:this,contentsArray:D}));this.set(R.continuationsArray||"data.continuations",M[R.responseContinuationsKey||"continuations"]||[])}else z.reload?_.yA(new _.xN("Reloading from continuation is unsupported")):z.responseContext&&z.responseContext.errors||(delete z.xsrf_token,delete z.timing,delete z.endpoint,delete z.csn,z.responseContext&&delete z.responseContext.serviceTrackingParams,D={request:_.Lh(M,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(z).sort()},z.response&&(D.responseContentKeys=
Object.keys(z.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(D.continuationType=this.nextContinuation.continuationType.substr(0,256)),z=new _.xN("Malformed continuation",D),M.indexOf("/comment_service_ajax")==0?_.yA(z):_.nc(z)),this.set(R.continuationsArray||"data.continuations",[])}else _.hL(new _.xN("Missing continuation response",M))},
getContents_:function(M,z){z=z.split(".");return _.gu.getValueByKeys(M,z)},
pathExists_:function(M){var z=this;M=M.toString().split(".");for(var J=0;J<M.length;J++)if(z=z[M[J]],z===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var guk;var sF2;var C9=function(){var M=_.g.apply(this,arguments)||this;M.triggered_=!1;return M};
_.w(C9,_.g);_.P=C9.prototype;_.P.attached=function(){this.maybeTriggerAutoload()};
_.P.detached=function(){this.hasBeenTriggered_=!1};
_.P.onPrescanVisible=function(){this.onShow()};
_.P.onShow=function(){this.showButton||this.trigger()};
_.P.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Pv(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.P.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.P.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.P.computeLabel_=function(M,z){return M===void 0?null:M.label||!z?M.label:this.showMoreText_};
_.P.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.P.getContinuationUrl=function(M){var z={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.Ag(M,z)};
_.P.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
C9.prototype.showButtonChanged_=C9.prototype.showButtonChanged_;C9.prototype.observeData_=C9.prototype.observeData_;_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],C9.prototype,"ytVisibilityBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],C9.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],C9.prototype,"showButton",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],C9.prototype,"showIcon",void 0);_.u([_.Y({computed:"computeLabel_(data, showButton)"}),_.W("design:type",Object)],C9.prototype,"label",void 0);_.u([_.Y({value:_.id(_.e9("SHOW_MORE",void 0,"Show More"))}),_.W("design:type",Object)],C9.prototype,"showMoreText_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],C9.prototype,"spinnerActive_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],C9.prototype,"hasBeenTriggered_",void 0);
_.u([_.Y({value:void 0}),_.W("design:type",String)],C9.prototype,"observeVisibleOption",void 0);_.u([_.Y({value:void 0}),_.W("design:type",String)],C9.prototype,"observeHiddenOption",void 0);_.u([_.Y({value:"observe_once"}),_.W("design:type",Object)],C9.prototype,"observePrescanOption",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C9.prototype,"observeData_",null);
_.u([_.la("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C9.prototype,"showButtonChanged_",null);_.u([_.cU({is:"yt-next-continuation",disableElementRegistration:!0})],C9);
_.d(C9,"yt-next-continuation",function(){if(sF2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;guk===void 0&&(guk=document.createElement("template"));var R=guk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);sF2=M}M=sF2;return M},{mode:2});var nuV;var hx$;var bj=function(){return _.g.apply(this,arguments)||this};
_.w(bj,_.g);bj.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bj.prototype,"data",void 0);_.u([_.cU({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],bj);
_.d(bj,"yt-music-pass-small-feature-info-renderer",function(){if(hx$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;nuV===void 0&&(nuV=document.createElement("template"));var R=nuV;J.call(z,R.content.cloneNode(!0),M.content.firstChild);hx$=M}M=hx$;return M},{mode:2});_.nn("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var rG=function(){var M=_.g.apply(this,arguments)||this;M.isCollapsible=!1;M.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return M};
_.w(rG,_.g);_.P=rG.prototype;_.P.computeIsCollapsible=function(M){return!!(((M==null?0:M.showMoreText)||(M==null?0:M.visibleRowCount))&&(M==null?0:M.isCollapsible))};
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.P.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.P.onIronResize=function(){var M=this;_.Vc(this,"updateGridInitItems",function(){M.maybeUpdateInitialItemsDisplayed()})};
_.P.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var M=this.getVisibleWidth();M!==0&&(M=Math.floor(M/214)*(this.data.visibleRowCount||2),M!==this.initialCount&&(this.initialCount=M,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.P.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.P.computeExpandVisible=function(M,z,J,R){return M&&z&&J&&!!R&&!!R.showMoreText};
_.P.computeShowMoreButton=function(M){return{text:M,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.P.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.P.initCollapsed=function(){var M=this;this.ytLazyListBehavior.canShowMore=!1;var z;(this.collapsed=!((z=this.data)==null||!z.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.C4(this,function(){_.ZL(M.hostElement,"yt-refit-popups-action")})};
_.P.fillRestIfNotCollapsible=function(){var M=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!M||this.ytLazyListBehavior.fillRemainingListItems()};
_.P.computeViewAllHidden=function(M,z){return M||!z.viewAllEndpoint};
rG.prototype.fillRestIfNotCollapsible=rG.prototype.fillRestIfNotCollapsible;rG.prototype.initCollapsed=rG.prototype.initCollapsed;rG.prototype.onIronResize=rG.prototype.onIronResize;rG.prototype.persistentGuideChanged=rG.prototype.persistentGuideChanged;_.u([_.p(_.Hw),_.W("design:type",Object)],rG.prototype,"ironResizableBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],rG.prototype,"ytLazyListBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],rG.prototype,"ytNextContinuationBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],rG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.p(_.AU),_.W("design:type",Object)],rG.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rG.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],rG.prototype,"collapsed",void 0);_.u([_.Y(),_.W("design:type",Number)],rG.prototype,"initialCount",void 0);_.u([_.Y({computed:"computeShowMoreButton(data.showMoreText)"}),_.W("design:type",Object)],rG.prototype,"showMoreButton",void 0);
_.u([_.Y({computed:"computeIsCollapsible(data)"}),_.W("design:type",Object)],rG.prototype,"isCollapsible",void 0);_.u([_.Qc("#items"),_.W("design:type",HTMLElement)],rG.prototype,"items",void 0);_.u([_.wH("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rG.prototype,"persistentGuideChanged",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rG.prototype,"onIronResize",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rG.prototype,"initCollapsed",null);_.u([_.wH("canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rG.prototype,"fillRestIfNotCollapsible",null);_.u([_.c({is:"ytd-grid-renderer",disableElementRegistration:!0})],rG);
_.d(rG,"ytd-grid-renderer",function(){if(wTJ!==void 0)return wTJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wTJ=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var MV=function(){return _.g.apply(this,arguments)||this};
_.w(MV,_.g);
MV.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"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],MV.prototype,"data",void 0);_.u([_.c({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],MV);
_.d(MV,"ytd-carousel-ad-renderer",function(){if(exJ!==void 0)return exJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return exJ=M},{mode:1});var yyJ;var zu=function(){return _.g.apply(this,arguments)||this};
_.w(zu,_.g);_.P=zu.prototype;_.P.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,zu.JSC$15281_CLICK_LOCATION_ID_MAP))};
_.P.onSitelinkTap=function(M){M.stopPropagation();var z,J,R=M==null?void 0:(z=M.model)==null?void 0:(J=z.item)==null?void 0:J.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.P.onTap=function(M){var z=this.data&&this.data.content&&this.data.content.navigationEndpoint;z&&this.ytSparklesClickLocationBehavior.handleClick(z,M,!1)};
_.P.sendImpression=function(){if(this.data&&this.data.content)for(var M=_.S(this.data.content.impressionEndpoints||[]),z=M.next();!z.done;z=M.next()){z=_.S(z.value.loggingUrls||[]);for(var J=z.next();!J.done;J=z.next())J=J.value,J.baseUrl&&aH(J.baseUrl,J.attributionSrcMode)}};
zu.prototype.onTap=zu.prototype.onTap;zu.prototype.dataChanged=zu.prototype.dataChanged;zu.JSC$15281_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"]]);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],zu.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zu.prototype,"data",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zu.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],zu.prototype,"onTap",null);_.u([_.c({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],zu);
_.d(zu,"ytd-promoted-sparkles-text-search-renderer",function(){if(yyJ!==void 0)return yyJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return yyJ=M},{mode:1});var HGv;var JB=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.w(JB,_.g);_.P=JB.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.U("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.P.computeHasAdBadge=function(M){return!(M==null||!M.adBadge)};
_.P.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",JB.JSC$15290_DEFAULT_AD_BADGE_RENDERER),_.kz(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,JB.JSC$15290_CLICK_LOCATION_ID_MAP))};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var M;(((M=this.data)==null?void 0:M.impressionCommands)||[]).forEach(function(z){z=_.S(z.loggingUrls||[]);for(var J=z.next();!J.done;J=z.next())J=J.value,J.baseUrl&&aH(J.baseUrl,J.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.P.onTap=function(M){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint,R;(z=(R=this.data)==null?void 0:R.thumbnailNavigationEndpoint)&&_.r4(_.CX(M),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(z,M,!1):J&&this.ytSparklesClickLocationBehavior.handleClick(J,M,!1)};
_.P.handleMuteAd=function(){this.collapsed=!0};
_.P.attached=function(){var M=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rX.Object.defineProperties(JB.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
JB.prototype.dataChanged=JB.prototype.dataChanged;
JB.JSC$15290_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"]]);
JB.JSC$15290_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e9("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],JB.prototype,"ytdActiveViewBehavior",void 0);
_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],JB.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],JB.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JB.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],JB.prototype,"collapsed",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],JB.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],JB.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.W("design:type",Boolean)],JB.prototype,"fixAlignmentSmallScreens",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs_square")}}),
_.W("design:type",Boolean)],JB.prototype,"useBiggerThumbsSquare",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.mediaHoverOverlay"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"hideHoverOverlay",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"webSearchLayout",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"webSearchLayoutLandscape",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"webSearchLayoutSquare",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"sparklesCtaNoBackground",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.actionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"hideActionButton",null);_.u([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],JB.prototype,"buttonOverride",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.W("design:type",Boolean)],JB.prototype,"hasNewAdBadge",void 0);_.u([_.F("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JB.prototype,"useRoundedBadge",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JB.prototype,"dataChanged",null);_.u([_.c({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],JB);
_.d(JB,"ytd-promoted-sparkles-web-renderer",function(){if(HGv!==void 0)return HGv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return HGv=M},{mode:1});var cyu;var RP=function(){var M=_.g.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");return M};
_.w(RP,_.g);_.P=RP.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.computeShowCta=function(M){return!(M==null||!M.ctaRenderer)};
_.P.onCtaClick=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.ctaRenderer)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.P.onWatchButtonClick=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.watchButtonRenderer)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.P.onTap=function(){};
_.P.dataChanged=function(){if(this.data){var M;_.U("enable_inline_muted_playback_on_web_search")&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",RP.JSC$15294_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",RP.JSC$15294_DEFAULT_CLICK_LOCATION_BEHAVIOR,RP.JSC$15294_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))}};
_.P.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var M=_.S(this.data.impressionUrls),z=M.next();!z.done;z=M.next())z=z.value,QE8(z,vSp(z));this.data.impressionsFired=!0}};
_.P.maybeComputeHref=function(){return null};
_.P.computeIsShortDR=function(M){return!(M==null||!M.watchButtonRenderer)&&!(M==null||!M.ctaRenderer)&&!!this.enableShortDR};
_.P.computeIsNewUiOrShortDr=function(M){return!!this.enableUiUpdate||this.computeIsShortDR(M)};
_.P.computeIsNewUiAndNotShortDr=function(M){return!!this.enableUiUpdate&&!this.computeIsShortDR(M)};
_.P.computeHideAvatar=function(M){return!((M==null?0:M.channelThumbnail)&&this.computeIsNewUiOrShortDr(M))};
_.P.onClick=function(M){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;if(this.enableShortDR&&J&&(_.G(J,_.Au)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(J,M,!!_.G(J,_.Au)),M.stopPropagation();else if(J&&_.G(J,_.Au))this.ytSparklesClickLocationBehavior.handleClick(J,M,!0),M.stopPropagation();else if(J){var R,D;((R=this.data)==null?0:R.navigationEndpoint)&&((D=this.data)==null?0:D.adPlaybackContextParams)&&(z=this.data.navigationEndpoint,M=this.data.adPlaybackContextParams,
z.commandMetadata&&_.G(z.commandMetadata,_.X9)&&_.G(z.commandMetadata,_.X9).url&&(z=_.fh(_.G(z.commandMetadata,_.X9).url).adurl)&&_.vQ3(z)&&_.rM(_.aT(z),{encoded_ad_playback_context:M}));this.ytComponentBehavior.resolveCommand(J)}};
_.P.computeButtonOverride=function(M){if(this.computeIsNewUiOrShortDr(M))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.P.onThumbnailContainerClick=function(M){this.onClick(M)};
_.P.computeThumbnailWidth=function(M,z){return M?z==="MASSIVE"?600:z==="BIG"?500:z==="MEDIUM"?450:420:360};
_.P.attached=function(){var M=this,z;_.U("enable_inline_muted_playback_on_web_search")&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){var M;_.U("enable_inline_muted_playback_on_web_search")&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15295_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Cbv})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15295_inlinePreviewHoverListener)==null||M5(M)};
RP.prototype.dataChanged=RP.prototype.dataChanged;RP.prototype.onTap=RP.prototype.onTap;RP.JSC$15294_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e9("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};RP.JSC$15294_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
RP.JSC$15294_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"}];_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],RP.prototype,"ytdActiveViewBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],RP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.u([_.Qc("#main-container"),_.W("design:type",HTMLElement)],RP.prototype,"mainContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],RP.prototype,"isInlinePreviewTriggered",void 0);_.u([_.Y(),_.W("design:type",Object)],RP.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],RP.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_video_display_compact_button_group_for_desktop_search")}}),
_.W("design:type",Boolean)],RP.prototype,"enableShortDR",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_vac_ui_update_for_desktop_search")}}),
_.W("design:type",Boolean)],RP.prototype,"enableUiUpdate",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],RP.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.W("design:type",Boolean)],RP.prototype,"showCta",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.W("design:type",Boolean)],RP.prototype,"isShortDr",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.W("design:type",Boolean)],RP.prototype,"isShortDrOrNewUi",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.W("design:type",Boolean)],RP.prototype,"isNewUiAndNotShortDr",void 0);_.u([_.Y({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],RP.prototype,"buttonOverride",void 0);_.u([_.Y({computed:"computeSecondaryButtonOverride(data)"}),_.W("design:type",Object)],RP.prototype,"secondaryButtonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],RP.prototype,"enableMonoStyle",void 0);
_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],RP.prototype,"thumbnail",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RP.prototype,"onTap",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RP.prototype,"dataChanged",null);_.u([_.c({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],RP);
_.d(RP,"ytd-promoted-video-renderer",function(){if(cyu!==void 0)return cyu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return cyu=M},{mode:1});var duJ;var Dm=function(){var M=_.g.apply(this,arguments)||this;M.useRoundedBadge=!0;M.sitelinkIds=[];return M};
_.w(Dm,_.g);_.P=Dm.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.U("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.dataChanged=function(){var M;(M=this.data)!=null&&M.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Dm.JSC$15300_CLICK_LOCATION_ID_MAP)};
_.P.onTap=function(M){var z,J=(z=this.data)==null?void 0:z.navigationCommand;J&&!_.r4(_.CX(M),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(J,M,!1)};
_.P.onSitelinkTap=function(M){var z,J,R=M==null?void 0:(z=M.model)==null?void 0:(J=z.item)==null?void 0:J.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.P.configureSitelinkClickTargets=function(){var M=this,z,J,R=(z=this.data)==null?void 0:(J=z.clickLocationTargets)==null?void 0:J.find(function(D){return D.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
R&&_.SN(this.hostElement).querySelectorAll(".sitelink").forEach(function(D){_.kz(D,"yt-simple-endpoint",!0);M.sitelinkIds.push(D.id);var N,Z;(N=M.ytSparklesClickLocationBehavior)==null||(Z=N.clickTargetMap)==null||Z.set(D.id,R)})};
_.P.sendImpression=function(){var M,z,J=((M=this.data)==null?void 0:(z=M.impressionCommand)==null?void 0:z.loggingUrls)||[];M=_.S(J);for(z=M.next();!z.done;z=M.next())z=z.value,z.baseUrl&&aH(z.baseUrl,z.attributionSrcMode)};
_.P.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.rX.Object.defineProperties(Dm.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Dm.prototype.onTap=Dm.prototype.onTap;Dm.prototype.dataChanged=Dm.prototype.dataChanged;Dm.JSC$15300_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"]]);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Dm.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Dm.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Dm.prototype,"showFavicon",null);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],Dm.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],Dm.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.W("design:type",Boolean)],Dm.prototype,"enableThumbnailScalingFix",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Dm.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Dm.prototype,"onTap",null);_.u([_.c({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Dm);
_.d(Dm,"ytd-text-image-no-button-layout-renderer",function(){if(duJ!==void 0)return duJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return duJ=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var KXu;var NV=function(){var M=_.g.apply(this,arguments)||this;M.isInlinePlaybackState=!1;M.uiUpdate=_.U("web_modern_buttons");M.hideCta=_.U("hide_cta_for_home_web_video_ads");M.noBottomMargin=!1;M.animateInTimeStamp=_.NC("hide_cta_for_home_web_video_ads_animate_in_time");M.animateInCta=!1;M.isHovered=!1;M.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");M.player=null;M.JSC$15307_playerEvents=new Map;M.JSC$15307_preventProgressSaveTimer=null;M.delayedCtaJobId=null;return M};
_.w(NV,_.g);_.P=NV.prototype;_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.attached=function(){this.JSC$15307_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15307_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.U("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.P.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15307_playerEvents)};
_.P.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",NV.JSC$15306_DEFAULT_CLICK_LOCATION_BEHAVIOR,NV.JSC$15306_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.P.hoverChanged=function(){var M=this;this.delayedCtaJobId&&(_.no.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.U("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.mn(_.no,function(){M.buttonContainer.classList.add("show-delayed-buttons")},_.NC("delayed_cta_on_web_delay_milliseconds")))};
_.P.setPlayer=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return(z=_.ZL(M.hostElement,"yt-get-inline-preview-player-action"))&&z[0]?J.yield(z[0].getPlayerPromise(),3):J.jumpTo(0);M.player=J.yieldResult;M.ytPlayerListenerBehavior.listenToPlayerEvents(M.player,M.JSC$15307_playerEvents);_.UI(J)})};
_.P.onPlaybackStart=function(){var M=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15307_preventProgressSaveTimer=_.BS(_.no,function(){M.JSC$15307_preventProgressSaveTimer=null},1E4))};
_.P.onVideoProgress=function(M){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&M>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.P.resetPreventProgressSaveTimer=function(){_.no.cancelJob(this.JSC$15307_preventProgressSaveTimer);this.JSC$15307_preventProgressSaveTimer=null};
_.P.getSimpleString=function(M){return _.CD(M)};
_.P.onClick=function(M){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint,R;z=(R=this.data)==null?void 0:R.channelEndpoint;var D,N;(R=(N=_.G((D=this.data)==null?void 0:D.adCtaButton,_.aR))==null?void 0:N.command)&&_.r4(_.CX(M),this.hostElement,["call-to-action"])?_.U("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(R,M,!1):z&&_.r4(_.CX(M),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(z,M,!1):!_.r4(_.CX(M),this.hostElement,["secondary-button"])&&J&&(_.U("enable_short_dr_for_desktop_launchable")?(D=!!_.G(J,_.Au),this.isInlinePlaybackState&&D&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(J,M,D)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(J,M,!0)))}};
_.P.updateWatchEndpointStartTime=function(){var M,z;this.player&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&((z=this.data)==null?0:z.navigationEndpoint)&&!this.JSC$15307_preventProgressSaveTimer&&(M=Math.floor(this.player.getCurrentTime()),_.G(this.data.navigationEndpoint,_.Au).startTimeSeconds=M,_.G(this.data.inlinePlaybackEndpoint,_.Au).startTimeSeconds=M)};
_.P.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.rX.Object.defineProperties(NV.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.watchButton)&&!((z=this.data)==null||!z.adCtaButton)}}});
NV.prototype.hoverChanged=NV.prototype.hoverChanged;NV.prototype.dataChanged=NV.prototype.dataChanged;
NV.JSC$15306_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"]]);
NV.JSC$15306_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"}];
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],NV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],NV.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NV.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"isInlinePlaybackState",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],NV.prototype,"miniMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"uiUpdate",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"hideCta",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"noBottomMargin",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"animateInCta",void 0);_.u([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],NV.prototype,"buttonOverride",void 0);
_.u([_.Y({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.W("design:type",Object)],NV.prototype,"secondaryButtonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"isHovered",void 0);_.u([_.Qc("#button-container"),_.W("design:type",HTMLElement)],NV.prototype,"buttonContainer",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],NV.prototype,"typographyBump",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("typographyBump"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NV.prototype,"typographyBumpV2",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NV.prototype,"enableMonoStyle",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NV.prototype,"dataChanged",null);
_.u([_.la("isHovered"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NV.prototype,"hoverChanged",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NV.prototype,"isButtonGroup",null);_.u([_.c({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],NV);
_.d(NV,"ytd-ad-inline-playback-meta-block",function(){if(KXu!==void 0)return KXu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return KXu=M},{mode:_.B5("kevlar_poly_si_batch_j065")?1:2});var $uQ;var Po=function(){var M=_.g.apply(this,arguments)||this;M.noBottomMargin=!1;M.isInlinePreviewTriggered=!1;M.JSC$15312_activeViewMeasurementDataResolver=_.Ln();return M};
_.w(Po,_.g);_.P=Po.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$15312_activeViewMeasurementDataResolver.promise.then(function(z){M.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15312_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.JSC$15312_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Cbv})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15312_inlinePreviewHoverListener)==null||M5(M)};
_.P.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$15312_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Po.JSC$15311_DEFAULT_CLICK_LOCATION_BEHAVIOR,Po.JSC$15311_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"));var z;if((z=this.data)==
null?0:z.forceImpAutoplay){var J;(J=this.JSC$15312_inlinePreviewHoverListener)==null||B8b(J)}};
_.P.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.P.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(J,M,!!_.G(J,_.Au));M.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,J,R=(J=_.G((z=this.data)==null?void 0:z.onImpression,_.TV))==null?void 0:J.commands;R&&(R.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;M.ytComponentBehavior.resolveCommand(D)}),this.data.impressionsFired=!0)}};
_.rX.Object.defineProperties(Po.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15312_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Po.prototype.onTypographyBumpChanged=Po.prototype.onTypographyBumpChanged;Po.prototype.onDataChanged=Po.prototype.onDataChanged;Po.JSC$15311_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Po.JSC$15311_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"}];
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],Po.prototype,"ytdActiveViewBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],Po.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.bl),_.W("design:type",Object)],Po.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Po.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Po.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Po.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Po.prototype,"noBottomMargin",void 0);
_.u([_.Y(),_.W("design:type",Object)],Po.prototype,"isInlinePreviewTriggered",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],Po.prototype,"miniMode",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Po.prototype,"typographyBump",void 0);_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],Po.prototype,"thumbnail",void 0);_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],Po.prototype,"JSC$15312_dismissibleMedia",void 0);
_.u([_.Qc("ytd-ad-inline-playback-meta-block"),_.W("design:type",HTMLElement)],Po.prototype,"adInlinePlaybackMetaBlock",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"onDataChanged",null);_.u([_.wH("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Po.prototype,"onTypographyBumpChanged",null);
_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Po.prototype,"isHovered",null);_.u([_.c({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Po);
_.d(Po,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if($uQ!==void 0)return $uQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $uQ=M},{mode:1});var uAv;var SK=function(){var M=_.g.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.JSC$15315_activeViewMeasurementDataResolver=_.Ln();return M};
_.w(SK,_.g);_.P=SK.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$15315_activeViewMeasurementDataResolver.promise.then(function(z){M.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15315_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.JSC$15315_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Cbv})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15315_inlinePreviewHoverListener)==null||M5(M)};
_.P.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$15315_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",SK.JSC$15314_DEFAULT_CLICK_LOCATION_BEHAVIOR,SK.JSC$15314_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))};
_.P.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(J,M,!0);M.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,J,R=(J=_.G((z=this.data)==null?void 0:z.onImpression,_.TV))==null?void 0:J.commands;R&&(R.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;_.JF().resolve(_.Rb).resolveCommand(D,{form:{element:M.hostElement}})}),this.data.impressionsFired=!0)}};
_.rX.Object.defineProperties(SK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15315_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
SK.prototype.onDataChanged=SK.prototype.onDataChanged;SK.JSC$15314_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);SK.JSC$15314_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"}];_.u([_.p(q4),_.W("design:type",Object)],SK.prototype,"ytdActiveViewBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],SK.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],SK.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);
_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],SK.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SK.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],SK.prototype,"isInlinePreviewTriggered",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],SK.prototype,"miniMode",void 0);_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],SK.prototype,"thumbnail",void 0);
_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],SK.prototype,"JSC$15315_dismissibleMedia",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SK.prototype,"onDataChanged",null);_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SK.prototype,"isHovered",null);_.u([_.c({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],SK);
_.d(SK,"ytd-video-display-full-buttoned-renderer",function(){if(uAv!==void 0)return uAv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return uAv=M},{mode:1});var N9=function(M,z,J,R){R=R===void 0?!1:R;_.Mb.call(this,M);this.adsClientErrorMessage=J;this.aggressivelySample=R;this.args=[];z&&this.args.push(z)};
_.w(N9,_.Mb);var RZ=function(M,z,J,R){R=R===void 0?!1:R;_.Mb.call(this,M);this.adsClientErrorMessage=J;this.aggressivelySample=R;this.args=[];z&&this.args.push(z)};
_.w(RZ,_.Mb);var qtt=function(M){_.wS.call(this);var z=this;this.initializationFunction=M;this.instance=null;this.addOnDisposeCallback(function(){_.bv(z.instance);z.instance=null})};
_.w(qtt,_.wS);qtt.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.iE("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var uUb=function(){var M=new Map;[].forEach(function(z){M.set(z.JSC$30310_getType(),z)});
this.getters=M};new Promise(function(){});var Hl3=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"]]),h6G=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"}]]),WXQ=function(M){this.experimentApiProvider=M;M=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=M<.1};var Zm=function(M,z,J,R){_.wS.call(this);this.adsControlFlowEventListeners=z;this.adEventLogger=J;this.experimentApiProvider=R;this.adsControlFlowManagerHelper=M(this,this,this,this,this);_.OC(this,this.adsControlFlowManagerHelper);M=_.S(z);for(z=M.next();!z.done;z=M.next())_.OC(this,z.value)};
_.w(Zm,_.wS);var aeQ=function(M,z,J,R){kb(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",z,J,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);M=_.S(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())aeQ(R.value,z,J)};
_.P=Zm.prototype;_.P.onOpportunityProcessedExternallyManaged=function(M,z,J,R){kb(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",M,J,z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)};
_.P.onSlotReceivedExternallyManaged=function(M,z){Bo(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M,z)};
_.P.onSlotEntered=function(M){if(O1(this.adsControlFlowManagerHelper,M)!=null){Bo(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",M);this.adsControlFlowManagerHelper.onSlotEntered(M);for(var z=_.S(this.adsControlFlowEventListeners),J=z.next();!J.done;J=z.next())J.value.onSlotEntered(M);if(O1(this.adsControlFlowManagerHelper,M)!=null&&O1(this.adsControlFlowManagerHelper,M).isOccupyingSlotType()&&Tu(this.adsControlFlowManagerHelper,M)&&!Vr$(this.adsControlFlowManagerHelper,M)){var R;IP(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",M,(R=Tu(this.adsControlFlowManagerHelper,M))!=null?R:void 0);M=O1(this.adsControlFlowManagerHelper,M);M.slotLifecycleStage!=="entered"&&oP(M.slot,M.slotLifecycleStage,"enterLayoutForSlot");M.slotLifecycleStage="rendering";M.registeredLayoutRenderingAdapter.startRendering(M.layout)}}};
_.P.onSlotExited=function(M){if(O1(this.adsControlFlowManagerHelper,M)!=null){Bo(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",M);this.adsControlFlowManagerHelper.onSlotExited(M);for(var z=_.S(this.adsControlFlowEventListeners),J=z.next();!J.done;J=z.next())J.value.onSlotExited(M);O1(this.adsControlFlowManagerHelper,M)!=null&&O1(this.adsControlFlowManagerHelper,M).markedForUnscheduleAfterOutboundAdapterRequests&&Euv(this,M)}};
_.P.onLayoutReceivedExternallyManaged=function(M,z,J){M.managerLayer!=="core"&&IP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",M,z,J)};
var fet=function(M,z,J){if(O1(M.adsControlFlowManagerHelper,z)!=null){IP(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,J);M=_.S(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())fet(R.value,z,J)}};
Zm.prototype.onLayoutExited=function(M,z,J){if(O1(this.adsControlFlowManagerHelper,M)!=null){IP(this.adEventLogger,y4o(J),M,z);this.adsControlFlowManagerHelper.onLayoutExited(M,z);for(var R=_.S(this.adsControlFlowEventListeners),D=R.next();!D.done;D=R.next())D.value.onLayoutExited(M,z,J);(J=Tu(this.adsControlFlowManagerHelper,M))&&z.layoutId===J.layoutId&&LXg(this,M)}};
Zm.prototype.disposeInternal=function(){var M=Ayu(this.adsControlFlowManagerHelper);M=_.S(M);for(var z=M.next();!z.done;z=M.next())Euv(this,z.value);_.wS.prototype.disposeInternal.call(this)};
var Euv=function(M,z){if(O1(M.adsControlFlowManagerHelper,z)!=null)if(O1(M.adsControlFlowManagerHelper,z).JSC$30340_isSlotExitRequested()||O1(M.adsControlFlowManagerHelper,z).JSC$30340_isLayoutExitRequested())O1(M.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(O1(M.adsControlFlowManagerHelper,z).isOccupyingSlotType())O1(M.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0,LXg(M,z);else if(O1(M.adsControlFlowManagerHelper,z).JSC$30340_isSlotFillRequested())O1(M.adsControlFlowManagerHelper,
z).markedForUnscheduleAfterOutboundAdapterRequests=!0,O1(M.adsControlFlowManagerHelper,z)!=null&&(Bo(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",z),z=O1(M.adsControlFlowManagerHelper,z),z.fulfillmentLifecycleStage="fill_cancel_requested",z.registeredFulfillmentAdapter.cancelSlotFilling());else{var J=Tu(M.adsControlFlowManagerHelper,z),R;M.experimentApiProvider.get();(R=_.U("h5_enable_layout_unscheduling_events"))&&(J?iGV(M,z,J):_.iE(Error("Ih"),z,J,void 0,!1));Bo(M.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",z);var D=O1(M.adsControlFlowManagerHelper,z),N=z.slotEntryTrigger,Z=D.registeredSlotEntryTriggerAdapters.get(N.triggerId);Z&&(Z.unregisterTrigger(N),D.registeredSlotEntryTriggerAdapters.delete(N.triggerId));N=_.S(z.slotFulfillmentTriggers);for(Z=N.next();!Z.done;Z=N.next()){Z=Z.value;var B=D.registeredFulfillmentTriggerAdapters.get(Z.triggerId);B&&(B.unregisterTrigger(Z),D.registeredFulfillmentTriggerAdapters.delete(Z.triggerId))}N=_.S(z.slotExpirationTriggers);
for(Z=N.next();!Z.done;Z=N.next())if(Z=Z.value,B=D.registeredExpirationTriggerAdapters.get(Z.triggerId))B.unregisterTrigger(Z),D.registeredExpirationTriggerAdapters.delete(Z.triggerId);D.hasLayout()&&(N=D.layout,XE(D,N.layoutExitNormalTriggers),XE(D,N.layoutExitSkipTriggers),XE(D,N.layoutExitMuteTriggers),XE(D,N.layoutExitUserInputSubmittedTriggers),XE(D,N.layoutExitUserCancelledTriggers));D.registeredFulfillmentAdapter=void 0;D.registeredSlotAdapter!=null&&(D.registeredSlotAdapter.release(),D.registeredSlotAdapter=
void 0);D.registeredLayoutRenderingAdapter!=null&&(D.registeredLayoutRenderingAdapter.release(),D.registeredLayoutRenderingAdapter=void 0);D=M.adsControlFlowManagerHelper;O1(D,z)&&(D=Cp2(D,z.slotType+"_"+z.slotPhysicalPosition))&&D.delete(z.slotId);Bo(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);M=_.S(M.adsControlFlowEventListeners);for(D=M.next();!D.done;D=M.next())D=D.value,D.onSlotUnscheduled(z),J&&!R&&iGV(D,z,J)}},iGV=function(M,z,J){IP(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
z,J);
IP(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",z,J);M=_.S(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())R=R.value,J&&iGV(R,z,J)},LXg=function(M,z){if(O1(M.adsControlFlowManagerHelper,z)!=null&&O1(M.adsControlFlowManagerHelper,z).isOccupyingSlotType()){var J=Tu(M.adsControlFlowManagerHelper,z);
if(J&&Vr$(M.adsControlFlowManagerHelper,z)){if(O1(M.adsControlFlowManagerHelper,z)!=null){var R=M.adEventLogger,D;var N=((D=h6G.get("abandoned"))==null?void 0:D.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";IP(R,N,z,J);M=O1(M.adsControlFlowManagerHelper,z);M.slotLifecycleStage!=="rendering"&&oP(M.slot,M.slotLifecycleStage,"exitLayout");M.slotLifecycleStage="rendering_stop_requested";M.registeredLayoutRenderingAdapter.stopRendering(J,"abandoned")}}else{Bo(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
z);try{R=O1(M.adsControlFlowManagerHelper,z);if(!R)throw new RZ("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");R.slotLifecycleStage!=="enter_requested"&&R.slotLifecycleStage!=="entered"&&R.slotLifecycleStage!=="rendering"&&oP(R.slot,R.slotLifecycleStage,"exitSlot");R.slotLifecycleStage="exit_requested";if(R.registeredSlotAdapter===void 0)throw R.slotLifecycleStage="scheduled",new RZ("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
R.registeredSlotAdapter.exit()}catch(Z){Z instanceof RZ&&Z.adsClientErrorMessage?(bGk(M.adEventLogger,Z.adsClientErrorMessage,z),_.iE(Z,z,void 0,void 0,Z.aggressivelySample)):(bGk(M.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z),_.iE(Z,z))}}}};var lL=function(M,z,J,R,D,N){_.wS.call(this);this.registry=M;this.experimentApiProvider=N;this.slotMap=new Map};
_.w(lL,_.wS);var Cp2=function(M,z){return(M=M.slotMap.get(z))?M:new Map},O1=function(M,z){return Cp2(M,z.slotType+"_"+z.slotPhysicalPosition).get(z.slotId)},Ayu=function(M){var z=[];
M.slotMap.forEach(function(J){J=_.S(J.values());for(var R=J.next();!R.done;R=J.next())z.push(R.value.slot)});
return z};
lL.prototype.onSlotEntered=function(M){M=O1(this,M);M.slotLifecycleStage!=="enter_requested"&&oP(M.slot,M.slotLifecycleStage,"onSlotEntered");M.slotLifecycleStage="entered"};
var Vr$=function(M,z){M=O1(M,z);return M.hasLayout()&&M.isRendering()},Tu=function(M,z){(M=O1(M,z))?M.hasLayout()&&!M.layout&&_.iE("Unexpected empty layout",z):_.iE("Unexpected undefined slotState",z);
return(M==null?void 0:M.layout)||null};
lL.prototype.onSlotExited=function(M){M=O1(this,M);M.slotLifecycleStage!=="exit_requested"&&oP(M.slot,M.slotLifecycleStage,"onSlotExited");M.slotLifecycleStage="scheduled"};
lL.prototype.onLayoutExited=function(M,z){M=O1(this,M);M.isPrimaryLayout(z)&&(M.slotLifecycleStage!=="rendering_stop_requested"&&oP(M.slot,M.slotLifecycleStage,"onLayoutExited"),M.slotLifecycleStage="entered")};
var XE=function(M,z){z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=M.registeredLayoutExitTriggerAdapters.get(J.triggerId);R&&(R.unregisterTrigger(J),M.registeredLayoutExitTriggerAdapters.delete(J.triggerId))}},oP=function(M,z,J){_.iE("Slot stage was "+z+" when calling method "+J,M)};var M2$=function(M){_.wS.call(this);this.deps=M;this.JSC$15365_adsControlFlowManager=ryk(this)};
_.w(M2$,_.wS);var ryk=function(M){var z=new Zm(function(J,R,D,N){return new lL(M.deps.registry,J,R,D,N,M.deps.experimentApiProvider)},new Set($Fo(M.deps.registry).concat(M.deps.listeners)),M.deps.adEventLogger,M.deps.experimentApiProvider);
_.OC(M,z);return z};var jnR=function(){};var zNt=function(M,z){_.wS.call(this);this.experimentApiProvider=M;this.eventLoggingSettingsProvider=z;this.eventCount=0;this.premiumAdSeenEventLogger=pvb()()};
_.w(zNt,_.wS);zNt.prototype.logEvent=function(M){kb(this,M)};
var Bo=function(M,z,J,R){kb(M,z,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,R)},IP=function(M,z,J,R,D){kb(M,z,void 0,void 0,void 0,J,R?R:void 0,void 0,void 0,J.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,void 0,D);
J=_.JF().resolve(_.zw(tL))==null?void 0:jI();z=J==null?void 0:J.adsSeenHotConfig;J=J==null?void 0:J.adsHotConfig;(z==null?0:z.logOnAdsSeen)&&(J==null?0:J.webEnablePremiumAdsSeenLogging)&&Jqu(M,R?R:void 0,D)},bGk=function(M,z,J){kb(M,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:z})},kb=function(M,z,J,R,D,N,Z,B,O,X,l,e,Q){Q=Q===void 0?0:Q;
RNt(M.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",N,"layout:",Z,"ping:",B,"Opportunity:",{opportunityType:J,associatedSlotId:R,slotsFromOpportunity:D,triggerBundle:O,adSlotLoggingData:X,adLayoutLoggingData:l});try{var v=function(){M.experimentApiProvider.get();if(z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||_.iE("Empty PACF event type",N,Z);var x=M.eventLoggingSettingsProvider.get();var m;(m=x.alwaysIncludeDebugData)||(x.experimentApiProvider.get(),m=
!1);x=m;m={eventType:z,eventOrder:++M.eventCount};var y={};N&&(y.slotData=dFH(x,N));if(Z){var H={type:Z.layoutType,controlFlowManagerLayer:Hl3.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};x&&(H.debugData={layoutId:Z.layoutId});y.layoutData=H}B&&(y.pingData={pingDispatchStatus:B.dispatchStatus,serializedAdPingMetadata:B.ping.serializedAdPingMetadata,pingIndex:B.index});O&&(y.triggerData=c4p(O.trigger,O.category));J&&(y.opportunityData=KOY(x,J,R,D));m.adClientData=y;X&&(m.serializedSlotAdServingData=
X.serializedSlotAdServingDataEntry);l&&(m.serializedAdServingData=l.serializedAdServingDataEntry);e&&(m.errorInfo=e);_.gP("adsClientStateChange",{adsClientEvent:m})}};
Q&&Q>0?_.x4(_.sj(),function(){return v()},Q):v()}catch(x){RNt(M.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.x4(_.sj(),function(){_.iE(x instanceof Error?x:String(x),N,Z,{pacf_message:"exception during pacf logging"})})}},Jqu=function(M,z,J){if(z){var R=z.adLayoutLoggingData;
_.x4(_.sj(),function(){M.premiumAdSeenEventLogger!=null&&R&&_.gP("adsSeenClientLogging",{serializedAdServingDataEntry:R.serializedAdServingDataEntry})},J!=null?J:0)}};var DYg=function(M,z){zNt.call(this,M,z)};
_.w(DYg,zNt);var NKJ=function(){},RNt=function(M,z){return _.U(z)};var S6a=function(){var M=new P8$;this.JSC$15390_adsControlFlowManager=(new M2$(M)).JSC$15365_adsControlFlowManager},P8$=function(){_.wS.call(this);
var M=this;this.experimentApiProvider=new qtt(function(){return new NKJ});
var z=new qtt(function(){return new WXQ(M.experimentApiProvider)});
this.adEventLogger=new DYg(this.experimentApiProvider,z);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.w(P8$,_.wS);var ZbQ=function(){},kog,eK=function(){kog||(kog=new ZbQ);
return kog},QP=function(M){if(!M.JSC$15401_externallyManagedSlotAdapterCallback){var z=(new S6a).JSC$15390_adsControlFlowManager;
M.JSC$15401_externallyManagedSlotAdapterCallback=z}return M.JSC$15401_externallyManagedSlotAdapterCallback},BKk=function(M,z,J){var R=z.opportunityType,D=Error("Jh");
if(R!==void 0){var N=QP(M);aeQ(N,R,void 0,J)}else _.iE(D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});N=[];if(z.adSlotAndLayoutMetadata!==void 0){z=_.S(z.adSlotAndLayoutMetadata);for(var Z=z.next();!Z.done;Z=z.next()){var B=Z.value;if(Z=B.adSlotMetadata)if(N.push(Z),M.onSlotReceivedExternallyManaged(Z,J),B.adLayoutMetadata){B=_.S(B.adLayoutMetadata);for(var O=B.next();!O.done;O=B.next())M.onLayoutReceivedExternallyManaged(Z,O.value,J)}else J>0&&_.iE("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else J>0&&_.iE("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else J>0&&_.iE("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(R!==void 0)M.onOpportunityProcessedExternallyManaged(R,N,void 0,J);else _.iE(D,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
ZbQ.prototype.onSlotReceivedExternallyManaged=function(M,z){M=DK(M);if(M instanceof RZ)_.iE(M,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else QP(this).onSlotReceivedExternallyManaged(M,z)};
ZbQ.prototype.onLayoutReceivedExternallyManaged=function(M,z,J){M=DK(M);z=qd3(z);if(M instanceof RZ)_.iE(M,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(z instanceof N9)_.iE(z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else QP(this).onLayoutReceivedExternallyManaged(M,z,J)};
ZbQ.prototype.onOpportunityProcessedExternallyManaged=function(M,z,J,R){var D=[];z=_.S(z);for(var N=z.next();!N.done;N=z.next())N=DK(N.value),N instanceof RZ?_.iE(N,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):D.push(N);QP(this).onOpportunityProcessedExternallyManaged(M,D,J,R)};
var ObV=function(M,z){z=DK(z);if(z instanceof RZ)_.iE(z,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var J=QP(M);Bo(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",z);J=_.S(J.adsControlFlowEventListeners);for(var R=J.next();!R.done;R=J.next())R=O1(R.value,z),R.slotLifecycleStage!=="not_scheduled"&&oP(R.slot,R.slotLifecycleStage,"onSlotScheduled"),R.slotLifecycleStage="scheduled";M=QP(M);Bo(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",z);M=_.S(M.adsControlFlowEventListeners);
for(J=M.next();!J.done;J=M.next())J.value.onSlotEntered(z)}},TK$=function(M,z){z=DK(z);
if(z instanceof RZ)_.iE(z,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var J=QP(M);Bo(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",z);J=_.S(J.adsControlFlowEventListeners);for(var R=J.next();!R.done;R=J.next())R.value.onSlotExited(z);M=QP(M);Bo(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);M=_.S(M.adsControlFlowEventListeners);for(J=M.next();!J.done;J=M.next())J.value.onSlotUnscheduled(z)}},I9p=function(M,z,J){z=DK(z);
J=qd3(J);if(z instanceof RZ)_.iE(z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(J instanceof N9)_.iE(J,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var R=QP(M);IP(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",z,J);R=_.S(R.adsControlFlowEventListeners);for(var D=R.next();!D.done;D=R.next())D.value.onLayoutScheduled(z,J);M=QP(M);IP(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,J);M=_.S(M.adsControlFlowEventListeners);
for(R=M.next();!R.done;R=M.next())fet(R.value,z,J)}},U1=function(M,z,J){z=DK(z);
J=qd3(J);if(z instanceof RZ)_.iE(z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(J instanceof N9)_.iE(J,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var R=QP(M);IP(R.adEventLogger,y4o("normal"),z,J);R=_.S(R.adsControlFlowEventListeners);for(var D=R.next();!D.done;D=R.next())D.value.onLayoutExited(z,J,"normal");M=QP(M);M=_.S(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())iGV(R.value,z,J)}};_.vo=_.Mf(function(M){var z=_.rH(M,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});M=Object.assign({},z);var J=z.data;z=z.customCommandResolver;var R=(delete M.data,delete M.customCommandResolver,M);M=_.J1({visibilityCallback:function(B,O){var X,l=(X=J().interaction)==null?void 0:X.onFirstVisible;B&&(l&&_.aE(l),R.setOnErrorHandler()&&WO0(O))},
showOption:_.PC});z=_.E3(function(){return J().interaction},z,function(){var B;
return(B=R.listenToTapEvent)==null?void 0:B.call(R)});
var D=_.S(_.kE(!1,void 0,"nqIeMd")),N=D.next().value,Z=D.next().value;D=_.ol(function(B){var O;((O=R.setTouchEndHandler)==null?0:O.call(R))&&!N()&&(B.currentTarget.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
return _.T("ad-image-view-model",{class:function(){var B,O=[((B=J().interaction)==null?0:B.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],X;((X=R.isGridViewEnabled)==null?0:X.call(R))&&O.push("ytwAdImageViewModelHostInGridView");return O.join(" ")},
el:_.zL(M,z),"on:touchend":D},_.T("div",{class:"ytwAdImageViewModelHostImageContainer"},_.T(_.rv,{data:function(){var B;return{sources:J().imageSources,contentMode:(B=J().imageProperties)==null?void 0:B.contentMode}},
alt:function(){var B,O;return((B=J().interaction)==null?void 0:(O=B.accessibility)==null?void 0:O.label)||""},
targetHeight:R.targetHeight,targetWidth:R.targetWidth,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,useWidth:R.useWidth,style:function(){var B,O;return"vertical-align: bottom;"+(((B=J().background)==null?0:B.color)?"background-color:"+_.u7((O=J().background)==null?void 0:O.color)+";":"")},
className:function(){return R.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var B,O;return(O=(B=R.setDraggable)==null?void 0:B.call(R))!=null?O:void 0}})))},"pb");var oUV=_.Mf(function(M){var z=M.data,J=M.listenToTapEvent,R=function(){};
return _.T("ad-button-hover-overlay-view-model",{"on:click":_.ol(function(D){if(_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")){var N,Z=(N=z().interaction)==null?void 0:N.onTap;Z&&_.Pv(D.currentTarget,"yt-navigate",{endpoint:_.$S(Z)})}}),
class:function(){var D;return((D=z().interaction)==null?0:D.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(D){var N,Z=(N=z().interaction)==null?void 0:N.onFirstVisible;D&&Z&&_.aE(Z)},
showOption:_.PC}),_.E3(function(){return z().interaction},void 0,function(){return!_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(J==null?void 0:J())}))},function(){return _.U("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.T(_.t_,{data:function(){return z().button}},{adButtonViewModel:function(D){return _.T(_.Z7,{data:D.data,
customCommandResolver:R})}}):_.T(_.t_,{data:function(){return z().button}},{adButtonViewModel:_.Z7})}())},"qb");var PX;_.N7(_.Mf(function(M){var z=M.data;M=_.J1({visibilityCallback:function(B,O){if(B){var X;(B=(X=z().interaction)==null?void 0:X.onFirstVisible)&&_.aE(B);var l;if(X=(l=z().adLayoutData)==null?void 0:l.activeViewData)S4(O,X),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZK(O)})}else _.U("stop_av_measurement_on_detach")&&ZK(O)},
showOption:_.PC,hideOption:St});var J=_.E3(function(){return z().interaction},void 0,function(){return!0}),R=_.S(_.kE(!1,void 0,"K1MNM")),D=R.next().value,N=R.next().value;
R=_.ol(function(){N(!0)});
var Z=_.ol(function(){N(!1)});
return _.T("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.zL(M,ile,J),"on:mouseenter":R,"on:mouseleave":Z},_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.UN({"max-width":function(){return _.U("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.T("div",{class:function(){var B;
a:{var O;switch((B=_.G(z().thumbnailImage,yw$))==null?void 0:(O=B.imageProperties)==null?void 0:O.renderingAspect){case "RENDERING_ASPECT_SQUARE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}B=void 0}return B}},_.T(_.t_,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(B){return _.T(_.vo,
{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.I,{cond:function(){var B,O,X;
return(B=_.G(z().thumbnailImage,yw$))==null?void 0:(O=B.imageProperties)==null?void 0:(X=O.overlayIcon)==null?void 0:X.iconImage},
then:function(B){return _.T(_.rv,{data:B,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.T("div",{class:function(){return D()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.t_,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(B){return _.T(oUV,
{data:B.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.T(_.t_,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(B){return _.T(w_2,{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})))},"rb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;M=_.J1({visibilityCallback:function(B,O){if(B){var X;(B=(X=z().interaction)==null?void 0:X.onFirstVisible)&&_.aE(B);var l;if(X=(l=z().adLayoutData)==null?void 0:l.activeViewData)S4(O,X),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZK(O)})}else _.U("stop_av_measurement_on_detach")&&ZK(O)},
showOption:_.PC,hideOption:St});var J=_.d4(_.cS),R=_.E3(function(){return z().interaction}),D={},N={},Z={};
return _.T("square-image-layout-view-model",{class:_.Qe("ytwSquareImageLayoutViewModelHost",(D.ytwSquareImageLayoutViewModelHostColumn=J,D)),el:_.zL(M,Cbp,R)},_.T("div",{class:_.Qe("ytwSquareImageLayoutViewModelHostImage",(N.ytwSquareImageLayoutViewModelHostColumnImage=J,N))},function(){return _.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(B){return _.T(_.vo,{data:B.data,
isGridViewEnabled:J,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.T("div",{class:_.Qe("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=J,Z))},_.T(_.t_,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:w_2}),function(){return _.T(_.t_,{data:function(){return z().adButton}},{adButtonViewModel:function(B){var O={};
return _.T(_.Z7,{data:B.data,className:_.Qe((O.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=J,O))})}})}()))},"sb"),"square-image-layout-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.noBottomMargin;var R=M.typographyBump;M=_.J1({visibilityCallback:function(e,Q){if(e){var v;(e=(v=z().interaction)==null?void 0:v.onFirstVisible)&&_.aE(e);var x;if(v=(x=z().adLayoutData)==null?void 0:x.activeViewData)S4(Q,v),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZK(Q)})}else _.U("stop_av_measurement_on_detach")&&ZK(Q)},
showOption:_.PC,hideOption:St});var D=_.E3(function(){return z().interaction},void 0,function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")}),N=function(){return z().interaction};
N!==void 0&&N!==null||_.WW(Error("Kh"));var Z=function(){var e,Q,v;return(e=_.G(z().thumbnailImage,yw$))==null?void 0:(Q=e.background)==null?void 0:(v=Q.backgroundImageSource)==null?void 0:v.imageSources};
N=_.S(_.kE(!1,void 0,"pZPLOd"));var B=N.next().value,O=N.next().value;N=_.ol(function(){O(!0)});
var X=_.ol(function(){O(!1)}),l=function(){return B()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.T("top-landscape-image-layout-view-model",{class:function(){var e;return((e=z().interaction)==null?0:e.onTap)&&_.U("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.zL(M,blY,D),"on:mouseenter":N,"on:mouseleave":X},_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.T(_.I,{cond:function(){return Z()&&Z().length>0},
then:function(){return _.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.UN({top:"0","background-image":function(){return"url("+String(Z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.T(_.I,{cond:function(){return!!z().adButtonHoverOverlay},
then:function(){return _.T("div",{class:l},_.T(_.t_,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:oUV}))}}),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.T(_.t_,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(e){return _.T(_.vo,{data:e.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.U("enable_web_home_top_landscape_image_layout_level_click")})}})),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.rv,{data:{sources:[{clientResource:{imageName:_.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.T(_.t_,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(e){return _.T(w_2,{data:e.data,
noBottomMargin:function(){return J==null?void 0:J()},
listenToTapEvent:function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return R==null?void 0:R()}})}})))},"tb"),"top-landscape-image-layout-view-model",{props:{data:_.zn,
noBottomMargin:_.zn,typographyBump:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.typographyBump;return _.T("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.zL(_.J1({visibilityCallback:function(R,D){if(R){var N;(R=(N=z().interaction)==null?void 0:N.onFirstVisible)&&_.aE(R);var Z;(N=(Z=z().adLayoutData)==null?void 0:Z.activeViewData)&&S4(D,N)}},
showOption:_.PC,hideOption:St}))},_.T("div",null,_.T(_.t_,{data:function(){return z().videoLockup}},{lockupViewModel:function(R){return _.T(_.Xc,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:J})}})))},"ub"),"video-display-button-group-layout-view-model",{props:{data:_.zn,
noBottomMargin:_.zn,typographyBump:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.className;var R=M.typographyBump;return _.T("video-display-compact-button-group-layout-view-model",{el:_.zL(_.J1({visibilityCallback:function(D,N){if(D){var Z;(D=(Z=z().interaction)==null?void 0:Z.onFirstVisible)&&_.aE(D);var B;(Z=(B=z().adLayoutData)==null?void 0:B.activeViewData)&&S4(N,Z)}},
showOption:_.PC})),class:_.Qe("videoDisplayCompactButtonGroupLayoutViewModelHost",J)},_.T(_.t_,{data:function(){return z().videoLockup}},{lockupViewModel:function(D){return _.T(_.Xc,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"vb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.zn,
className:_.zn,typographyBump:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.className;var R=M.typographyBump;return _.T("video-display-compact-buttoned-layout-view-model",{el:_.zL(_.J1({visibilityCallback:function(D,N){if(D){var Z;(D=(Z=z().interaction)==null?void 0:Z.onFirstVisible)&&_.aE(D);var B;(Z=(B=z().adLayoutData)==null?void 0:B.activeViewData)&&S4(N,Z)}},
showOption:_.PC})),class:_.Qe("videoDisplayCompactButtonedLayoutViewModelHost",J)},_.T(_.t_,{data:function(){return z().videoLockup}},{lockupViewModel:function(D){return _.T(_.Xc,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"wb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.zn,
className:_.zn,typographyBump:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.className;var R=M.typographyBump;var D=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},N=_.d4(_.cS);
M=_.J1({visibilityCallback:function(X,l){if(X){var e=z();X=e.adLayoutData;var Q;(e=(Q=e.interaction)==null?void 0:Q.onFirstVisible)&&_.aE(e);(Q=X==null?void 0:X.activeViewData)&&S4(l,Q)}},
showOption:_.PC});var Z=_.o4(function(){return{containerType:D()&&N()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),B=_.o4(function(){return D()&&N()?"":D()?"168px":"50%"},void 0,"ikSkm"),O=_.o4(function(){return D()&&N()?9999:void 0},void 0,"M8rucc");
return _.T("video-display-compact-layout-view-model",{el:_.zL(M),class:_.Qe("videoDisplayCompactLayoutViewModelHost",J)},_.T(_.t_,{data:function(){return z().videoLockup}},{lockupViewModel:function(X){return _.T(_.Xc,{data:X.data,
containerLayoutConfig:Z,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:B,thumbnailTargetWidth:O,typographyBump:R})}}))},"xb"),"video-display-compact-layout-view-model",{props:{data:_.zn,
className:_.zn,typographyBump:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=M.typographyBump;return _.T("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.zL(_.J1({visibilityCallback:function(R,D){if(R){var N;(R=(N=z().interaction)==null?void 0:N.onFirstVisible)&&_.aE(R);var Z;(N=(Z=z().adLayoutData)==null?void 0:Z.activeViewData)&&S4(D,N)}},
showOption:_.PC,hideOption:St}))},_.T("div",null,_.T(_.t_,{data:function(){return z().videoLockup}},{lockupViewModel:function(R){return _.T(_.Xc,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:J})}})))},"yb"),"video-display-full-layout-view-model",{props:{data:_.zn,
noBottomMargin:_.zn,typographyBump:_.zn}});_.Xrk=_.Mf(function(M){var z=M.data;M=_.AL("ad-card-badge-view-model");return _.T("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:M},_.T(_.I,{cond:function(){return z().imageBadge},
then:function(J){return _.T(_.rv,{data:J,alt:""})}}))},"zb");var l9B=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;return _.T("carousel-ad-card-image-view-model",{class:function(){var R;return((R=z().interaction)==null?0:R.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC}),_.E3(function(){return z().interaction},J)),
"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(R){return _.T(_.vo,{data:R.data,
customCommandResolver:J})}}),_.T("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.T(_.t_,{data:function(){return z().badge}},{adCardBadgeViewModel:_.Xrk})),_.T(_.Tn,{model:{color:4}}))},"Ab");var eNv=_.Mf(function(M){var z=_.S(_.kE(0,void 0,"o9Bzd")),J=z.next().value;z.next();var R=z.next().value,D=_.S(_.kE(!1,void 0,"KLdzYe"));z=D.next().value;var N=D.next().value,Z;_.pq(function(){clearTimeout(Z)});
D=_.ol(function(){var X;((X=M.animate)==null?0:X.call(M))?(N(!0),Z=setTimeout(function(){N(!1);B()},200)):B();
return!1});
var B=function(){R(function(X){return(X+M.numShownItems())%M.data().length})},O={};
return _.T("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.T("div",{class:_.Qe("ytwHorizontalCarouselCarouselWrapper")},_.T("div",{class:_.Qe("ytwHorizontalCarouselCarouselInnerWrapper",(O.ytwHorizontalCarouselAnimating=z,O))},_.T(_.G4,{each:M.data,keyBy:"INDEX"},function(X,l){return _.T("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.UN({"flex-basis":function(){return"calc((100% - (8px * "+(M.numShownItems()-1)+")) / "+M.numShownItems()+")"},
order:function(){var e=l-J();e<0&&(e+=M.data().length);return e}})},M.children(X,l))}))),_.T("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":D},M.nextButton()))},"Bb");var Q1$=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;var R=M.expansive;return _.T("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.zL(_.J1({visibilityCallback:function(D){var N,Z=(N=z().interaction)==null?void 0:N.onFirstVisible;D&&Z&&_.aE(Z)},
showOption:_.PC}))},_.T(eNv,{data:function(){var D;return((D=z())==null?void 0:D.carouselAdCards)||[]},
nextButton:function(){return _.T(_.t_,{data:function(){return z().nextButton}},{buttonViewModel:function(D){var N=D.data;
return _.T(_.lT,{data:function(){return(R==null?0:R())?Object.assign({},N(),{style:"mono"}):N()},
className:_.U("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(D){return _.T(_.t_,{data:D},{carouselAdCardImageViewModel:function(N){return _.T(l9B,{data:N.data,customCommandResolver:J})}})}))},"Cb");var UYQ=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;var R=M.className;var D=M.buttonClassName;var N=M.animationEntityKey;var Z=M.expansive;return _.T("carousel-button-view-model",{class:_.Qe("ytwCarouselButtonViewModelHost",R)},_.T(_.t_,{data:function(){return z().carousel}},{carouselAdCardCollectionViewModel:function(B){return _.T(Q1$,{data:B.data,
customCommandResolver:J,expansive:Z})}}),_.T(_.t_,{data:function(){return z().button}},{adButtonViewModel:function(B){var O=B.data;
return _.T(_.Z7,{data:function(){return(Z==null?0:Z())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_TONAL"}):O()},
className:D,customCommandResolver:J,animationEntityKey:N})}}))},"Db");_.vUV=_.Mf(function(M){var z=M.data;M=M.className;var J=_.AL("pivot-button-view-model");_.mF(function(){var R;((R=z())==null?0:R.backgroundColor)&&J.value.setAttribute("data-background-color",String(z().backgroundColor))});
return _.T("pivot-button-view-model",{el:J,class:_.Qe("ytwPivotButtonViewModelHost",M)},_.T(_.a9,{command:function(){var R=z();R=R.onClickCommand?_.$S(R.onClickCommand):R.contentDescription?_.J9(R.contentDescription):void 0;return R},
ariaLabel:function(){return z().contentDescription}},_.T(_.I,{cond:function(){return z().thumbnail},
then:function(R){return _.T(_.rv,{data:R,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.T(_.I,{cond:function(){return z().icon},
then:function(R){return _.T(_.vS,{icon:function(){return R().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Eb");_.Go2=_.Mf(function(M){var z=M.data;var J=M.buttonShapeOverrideables;return _.T("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.T(_.t_,{data:function(){return z().buttonViewModels}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
buttonOverrides:J})},
likeButtonViewModel:function(R){return _.T(_.uA,{data:R.data,buttonShapeOverrideables:J})},
dislikeButtonViewModel:function(R){return _.T(_.$k,{data:R.data,buttonShapeOverrideables:J})},
toggleButtonViewModel:function(R){return _.T(_.cm,{data:R.data,buttonShapeOverrides:J})}}))},"Fb");var wr$=_.Mf(function(M){var z=M.avatar;var J=M.headline;var R=M.badge;var D=M.description;var N=M.expansive;M={};return _.T("yt-ad-metadata-shape",{class:_.Qe("ytAdMetadataShapeHost",(M.ytAdMetadataShapeHostLarge=N,M))},_.T("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.T(_.I,{cond:z,then:function(Z){return _.T(_.QKJ,{data:function(){return(N==null?0:N())?Object.assign({},Z(),{size:"AD_AVATAR_SIZE_MPLUS"}):Z()}})}}),_.T("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.T(_.m3,{text:J,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.T(_.I,{cond:R,then:function(Z){return _.T(_.I5,{data:function(){return(N==null?0:N())?Object.assign({},Z(),{style:"AD_BADGE_STYLE_STARK"}):Z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.T("h2",{class:"ytAdMetadataShapeHostDescription"},_.T(_.m3,{text:D,
linkInheritColor:!0})))},"Gb");var xYt=_.Mf(function(M){var z=M.data;var J=M.onShow;var R=M.expansive;M=_.E3(function(){return z().interaction});
_.mF(function(){var N,Z=(N=z().animatedRenderingConfig)==null?void 0:N.delayedSecondsToVisible;if(Z){var B=setTimeout(J,Z*1E3);_.pq(function(){clearTimeout(B)})}});
var D={};return _.T("reels-ad-card-buttoned-view-model",{class:_.Qe(function(){var N;return((N=z().interaction)==null?0:N.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(D.ytwReelsAdCardButtonedViewModelHostExpansive=R,D)),
el:_.zL(M)},_.T(wr$,{avatar:function(){return _.G(z().avatar,niv)},
headline:function(){return z().headline},
badge:function(){return _.G(z().adBadge,hIJ)},
description:function(){return z().description},
expansive:R}),_.T(_.t_,{data:function(){return z().ctaButton}},{adButtonViewModel:function(N){var Z=N.data;
return _.T(_.Z7,{data:function(){return(R==null?0:R())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_FILLED"}):Z()}})}}))},"Hb");var t2Q=_.Mf(function(M){var z=M.data;M=M.expansive;var J=_.U("web_ad_metadata_clickable")?_.E3(function(){return z().interaction},void 0,function(){return _.U("web_ad_metadata_clickable")}):void 0,R={};
R=_.jF("ytwReelsAdMetadataViewModelHost",(R.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.U("web_ad_metadata_clickable"),R));return _.T("reels-ad-metadata-view-model",{class:R,el:_.zL(J)},_.T(wr$,{avatar:function(){return _.G(z().avatar,niv)},
headline:function(){return z().headline},
badge:function(){return _.G(z().adBadge,hIJ)},
description:function(){return z().description},
expansive:M}))},"Ib");var j1S={iconPosition:"icon-with-label",size:"L"},pra=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;M=_.AL("reels-player-overlay-layout-view-model");var R=_.ba(J,0),D=function(){var e;return(e=z().reelsAdCardButtonedEntityKey)!=null?e:""},N=function(){return D()+"/ad_button"},Z=_.U3(yz8,D),B=function(){var e,Q;
return(Q=(e=Z())==null?void 0:e.value)!=null?Q:!1},O=_.d4(r4o),X=function(){return Object.assign({},j1S,(O()||R()===2)&&{style:"overlay-dark"})};
J={};var l={};return _.T("reels-player-overlay-layout-view-model",{class:_.Qe("ytwReelsPlayerOverlayLayoutViewModelHost",(J.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!z().extension},J.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},J)),
"overlay-density":function(){return String(R())},
el:M},_.T("div",{class:_.Qe("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(l.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},l))},_.T("div",{"aria-hidden":function(){return B()},
class:_.Qe("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.UN({"transition-duration":function(){return RxH(z())}})},_.T(_.t_,{data:function(){return z().adMetadata}},{reelsAdMetadataViewModel:function(e){return _.T(t2Q,{data:e.data,
expansive:function(){return R()===1}})}}),_.T(_.I,{cond:function(){return z().extension},
then:function(e){return _.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.T(_.t_,{data:e},{adButtonViewModel:function(Q){return _.T(_.Z7,{data:Q.data,animationEntityKey:N,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(Q){return _.T(UYQ,{data:Q.data,animationEntityKey:N,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return R()===1}})}}))}})),_.T("div",{"aria-hidden":function(){return!B()},
class:_.Qe("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.UN({"transition-duration":function(){return RxH(z())}})},_.T(_.t_,{data:function(){return z().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(e){return _.T(xYt,{data:e.data,
onShow:function(){_.Cd(_.pf("booleanEntity",D(),{key:D(),value:!0}))},
expansive:function(){return R()===1}})}}))),_.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.T(_.t_,{data:function(){return z().actions}},{reelActionBarViewModel:function(e){return _.T(_.Go2,{data:e.data,
buttonShapeOverrideables:X})}}),_.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:function(e){return _.T(_.lT,{data:e.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},X(),{type:"tonal"})}})}}),_.T(_.t_,{data:function(){return z().pivotButton}},{pivotButtonViewModel:function(e){return _.T(_.vUV,{data:e.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jb");_.N7(pra,"reels-player-overlay-layout-view-model",{props:{data:_.zn,overlayDensity:_.zn}});var Gu=function(){var M=_.g.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;return M};
_.w(Gu,_.g);_.P=Gu.prototype;
_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.U("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]]"}}}}}};
_.P.ready=function(){var M=this;B1o(function(){M.isAttached&&zy(M.JSC$15445_storedAdSlotMetadata,M.JSC$15445_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&U1(eK(),M.JSC$15445_storedAdSlotMetadata,M.JSC$15445_storedAdLayoutMetadata)})};
_.P.attached=function(){zy(this.JSC$15445_storedAdSlotMetadata,this.JSC$15445_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&I9p(eK(),this.JSC$15445_storedAdSlotMetadata,this.JSC$15445_storedAdLayoutMetadata)};
_.P.detached=function(){zy(this.JSC$15445_storedAdSlotMetadata,this.JSC$15445_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&U1(eK(),this.JSC$15445_storedAdSlotMetadata,this.JSC$15445_storedAdLayoutMetadata)};
_.P.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15445_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15445_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15445_storedAdLayoutMetadata!==void 0&&this.JSC$15445_storedAdSlotMetadata!==void 0&&U1(eK(),this.JSC$15445_storedAdSlotMetadata,this.JSC$15445_storedAdLayoutMetadata),I9p(eK(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15445_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15445_storedAdSlotMetadata=this.adSlotMetadata)};
_.rX.Object.defineProperties(Gu.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
Gu.prototype.onAdMetadataChanged=Gu.prototype.onAdMetadataChanged;Gu.prototype.onTypographyBumpChanged=Gu.prototype.onTypographyBumpChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Gu.prototype,"rendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Gu.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Gu.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Gu.prototype,"noBottomMargin",void 0);_.u([_.Y(),_.W("design:type",Object)],Gu.prototype,"overlayDensity",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Gu.prototype,"typographyBump",void 0);_.u([_.F("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],Gu.prototype,"adLayoutMetadata",null);_.u([_.Y(),_.W("design:type",Object)],Gu.prototype,"adSlotMetadata",void 0);
_.u([_.Qc("ytd-video-display-full-buttoned-and-button-group-renderer"),_.W("design:type",HTMLElement)],Gu.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.u([_.la("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Gu.prototype,"onTypographyBumpChanged",null);_.u([_.la("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Gu.prototype,"onAdMetadataChanged",null);
_.u([_.c({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Gu);
_.d(Gu,"ytd-in-feed-ad-layout-renderer",function(){if(le$!==void 0)return le$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return le$=M},
{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var FlJ;var Y6p;_.N7(_.I5,"ad-badge-view-model",{props:{data:_.zn,hasDot:_.zn,customCommandResolver:_.Dv,adRenderingContextType:_.Dv}});_.N7(_.Z7,"ad-button-view-model",{props:{data:_.zn,customCommandResolver:_.Dv,className:_.Dv,delayedClassName:_.Dv,animationEntityKey:_.Dv,isCompactWidth:_.Dv}});var w2=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return M};
_.w(w2,_.g);_.P=w2.prototype;_.P.computeHasLiveDescription=function(M){return!(M==null||!M.liveDescription)};
_.P.computeHasByline=function(M){return!(M==null||!M.byline)};
_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model"}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.P.onYtToggleButton=function(M){var z,J=(z=this.data)==null?void 0:z.videoReminderEntityKey;J&&this.ytdReduxBehavior.dispatch(_.pf("upcomingEventReminderStateEntity",J,{key:J,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.P.attached=function(){this.updateChannelBanner()};
_.P.dataChanged=function(){this.updateChannelBanner()};
_.P.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.G((M=this.data)==null?void 0:M.cta,_.Vz)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.P.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var M=_.PS(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);M&&(M.startsWith("//")&&(M="https:"+M),this.hostElement.classList.add("channel-banner"),_.Tp(this.hostElement,{"--ytvmh-channel-banner":"url("+M+")"}))}else _.U("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.P.onPlayerReady=function(){this.onIronResize()};
_.P.maybeFlushDebouncer=function(){_.U("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(M){var z;M=(z=M.getElementsByTagName("yt-attributed-string"))==null?void 0:z[0];nxb(M==null?void 0:M.polymerController)})};
_.P.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var M=_.SN(this.hostElement).querySelector("#live-description"),z;M&&((z=this.data)==null?0:z.shortLiveDescription)&&M.clientWidth<M.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
w2.prototype.onIronResize=w2.prototype.onIronResize;w2.prototype.videoReminderStateChanged=w2.prototype.videoReminderStateChanged;w2.prototype.dataChanged=w2.prototype.dataChanged;w2.prototype.onYtToggleButton=w2.prototype.onYtToggleButton;_.u([_.p(_.Hw),_.W("design:type",Object)],w2.prototype,"ironResizableBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],w2.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],w2.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],w2.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:y7e}),_.W("design:type",Object)],w2.prototype,"videoReminderState",void 0);
_.u([_.Y({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.W("design:type",Boolean)],w2.prototype,"rounded",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.W("design:type",Boolean)],w2.prototype,"hasLiveDescription",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.W("design:type",Boolean)],w2.prototype,"hasByline",void 0);
_.u([_.Y({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.W("design:type",String)],w2.prototype,"adRenderingContextType",void 0);_.u([_.Y({reflectToAttribute:!0,value:_.U("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.W("design:type",Boolean)],w2.prototype,"resizableAdBannerSafariFix",void 0);_.u([_.Y({reflectToAttribute:!0,value:_.U("align_three_dot_menu_with_title_description")}),_.W("design:type",Boolean)],w2.prototype,"menuFix",void 0);
_.u([_.UV("yt-formatted-string"),_.W("design:type",Array)],w2.prototype,"formattedStrings",void 0);_.u([_.Qc("#cta-button"),_.W("design:type",HTMLElement)],w2.prototype,"ctaButton",void 0);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w2.prototype,"onYtToggleButton",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w2.prototype,"dataChanged",null);
_.u([_.la("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w2.prototype,"videoReminderStateChanged",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w2.prototype,"onIronResize",null);_.u([_.c({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],w2);
_.d(w2,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Y6p!==void 0)return Y6p;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" 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]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Y6p=M},{mode:1});var mY$;var xb=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.isLocked=!1;return M};
_.w(xb,_.g);_.P=xb.prototype;_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded&&_.ZL(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(M){M!==this&&(this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(M){this.isLocked=!0;M!==this&&(this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
xb.prototype.onTap=xb.prototype.onTap;xb.prototype.onMouseOver=xb.prototype.onMouseOver;xb.prototype.onExpandedChanged=xb.prototype.onExpandedChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xb.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],xb.prototype,"expanded",void 0);_.u([_.wH("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xb.prototype,"onExpandedChanged",null);_.u([_.Xw("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xb.prototype,"onMouseOver",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xb.prototype,"onTap",null);
_.u([_.c({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],xb);
_.d(xb,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(mY$!==void 0)return mY$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return mY$=M},{mode:1});var gUg;var tB=function(){var M=_.g.apply(this,arguments)||this;M.buttonOverrides={style:"overlay"};M.useYtdPlayer=_.U("use_ytd_player_for_desktop_masthead");M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.playbackFinished=!1;M.JSC$15459_playerManager=null;M.JSC$15459_mastheadCounter=new m$$;return M};
_.w(tB,_.g);_.P=tB.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$15459_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15459_playerManager=new yo)};
_.P.ready=function(){var M=this;this.JSC$15459_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var z=_.SN(this.hostElement).querySelector("#player");this.useYtdPlayer?z.style.display="none":(this.ytdPlayer.style.display="none",hs$(this.JSC$15459_playerManager,z,function(){M.onPlaybackEnded()}),_.SN(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var J;
((J=M.data)==null?0:J.navigationEndpoint)&&_.Pv(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})}))};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15459_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.P.attached=function(){var M=this;_.au(function(){M.maybePlayVideo()})};
_.P.maybePlayVideo=function(){var M=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15459_playerManager.playVideo(),this.getPlayerPromise().then(function(){M.JSC$15459_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.P.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15459_playerManager.stopVideo()};
_.P.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var M,z={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((M=this.data.playbackStartMs)!=null?M:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(z);this.setupYtdPlayer()}else HUS(this.JSC$15459_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(yCQ(this.JSC$15459_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.P.getPlayerPromise=function(){return this.JSC$15459_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$15459_playerManager.mute():this.JSC$15459_playerManager.unMute()};
_.P.onYtNavigate=function(M){var z=jSY(M.detail.endpoint),J=p88(this.data.clickthroughReportingData);z&&J&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=J:_.rM(z,J,30))};
_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded?(_.ZL(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(M){M!==this&&(this.stopVideo(),this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(M){M!==this&&(this.isLocked=!0,this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
_.P.lockAndCollapseExpandableTiles=function(){_.S9(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.P.unlockExpandableTiles=function(){_.S9(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.P.setupYtdPlayer=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.ytdPlayer.getPlayerPromise(),2);z=J.yieldResult;z.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
z.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.UI(J)})};
_.P.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var z=M.getCurrentTime(),J,R,D=z+((R=(J=this.data)==null?void 0:J.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",z,D);this.JSC$15459_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.P.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.ytdPlayer.getPlayerPromise(),2);J=R.yieldResult;M?J.mute():J.unMute();_.UI(R)})};
tB.prototype.onTap=tB.prototype.onTap;tB.prototype.onMouseOver=tB.prototype.onMouseOver;tB.prototype.onExpandedChanged=tB.prototype.onExpandedChanged;tB.prototype.onYtNavigate=tB.prototype.onYtNavigate;tB.prototype.onYtToggleButton=tB.prototype.onYtToggleButton;tB.prototype.dataChanged=tB.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],tB.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tB.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],tB.prototype,"expanded",void 0);_.u([_.Y(),_.W("design:type",Object)],tB.prototype,"buttonOverrides",void 0);
_.u([_.Y(),_.W("design:type",Object)],tB.prototype,"useYtdPlayer",void 0);_.u([_.Qc("#ytd-player"),_.W("design:type",Object)],tB.prototype,"ytdPlayer",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tB.prototype,"dataChanged",null);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tB.prototype,"onYtToggleButton",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tB.prototype,"onYtNavigate",null);_.u([_.wH("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tB.prototype,"onExpandedChanged",null);_.u([_.Xw("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tB.prototype,"onMouseOver",null);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tB.prototype,"onTap",null);_.u([_.c({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],tB);
_.d(tB,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(gUg!==void 0)return gUg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return gUg=M},{mode:1});var s1g;var jK=function(){return _.g.apply(this,arguments)||this};
_.w(jK,_.g);jK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jK.prototype.onShow=function(){var M=_.SN(this.hostElement).querySelector("#live-description"),z;M&&((z=this.data)==null?0:z.shortLiveDescription)&&M.clientWidth<M.scrollWidth&&this.hostElement.classList.add("short-live-description")};
jK.prototype.onYtToggleButton=function(M){var z,J=(z=this.data)==null?void 0:z.videoReminderEntityKey;J&&this.ytdReduxBehavior.dispatch(_.pf("upcomingEventReminderStateEntity",J,{key:J,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
jK.prototype.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.G((M=this.data)==null?void 0:M.cta,_.Vz)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
jK.prototype.videoReminderStateChanged=jK.prototype.videoReminderStateChanged;jK.prototype.onYtToggleButton=jK.prototype.onYtToggleButton;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jK.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:y7e}),_.W("design:type",Object)],jK.prototype,"videoReminderState",void 0);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jK.prototype,"onYtToggleButton",null);_.u([_.la("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jK.prototype,"videoReminderStateChanged",null);
_.u([_.c({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],jK);
_.d(jK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(s1g!==void 0)return s1g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return s1g=M},{mode:_.B5("kevlar_poly_si_batch_j065")?1:2});var nU$;var pz=function(){var M=_.g.apply(this,arguments)||this;M.useYtdPlayer=_.U("use_ytd_player_for_desktop_masthead");M.buttonOverrides={style:"overlay"};M.JSC$15467_playerManager=null;M.JSC$15467_mastheadCounter=new m$$;M.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return M};
_.w(pz,_.g);_.P=pz.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$15467_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15467_playerManager=new yo)};
_.P.ready=function(){var M=this;this.JSC$15467_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var z;(z=this.embeddedPlayer)==null||z.remove()}else{var J;(J=this.ytdPlayer)==null||J.remove();hs$(this.JSC$15467_playerManager,this.embeddedPlayer,function(){M.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){M.data&&M.data.navigationEndpoint&&_.Pv(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})})}};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15467_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.P.dataChanged=function(){var M=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var z=!this.data.disableAutoPlayback,J,R={autoplay:z,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((J=this.data.playbackStartMs)!=null?J:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(z?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else HUS(this.JSC$15467_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(yCQ(this.JSC$15467_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15467_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.S9(M.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");M.JSC$15467_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.P.getPlayerPromise=function(){return this.JSC$15467_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$15467_playerManager.mute():this.JSC$15467_playerManager.unMute()};
_.P.onYtNavigate=function(M){var z=jSY(M.detail.endpoint),J=p88(this.data.clickthroughReportingData);z&&J&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=J:_.rM(z,J,30))};
_.P.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15467_playerManager.stopVideo()};
_.P.setupYtdPlayer=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.ytdPlayer.getPlayerPromise(),2);z=J.yieldResult;z.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
z.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.UI(J)})};
_.P.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var z=M.getCurrentTime(),J,R,D=z+((R=(J=this.data)==null?void 0:J.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",z,D);_.S9(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15467_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.P.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.ytdPlayer.getPlayerPromise(),2);J=R.yieldResult;M?J.mute():J.unMute();_.UI(R)})};
_.rX.Object.defineProperties(pz.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M,z;if(!((M=this.data)==null?0:(z=M.accessibilityData)==null?0:z.label))return"Ad primary link";var J,R;return _.e9("AD_TITLE",{title:(J=this.data)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label})}}});
pz.prototype.onYtMastheadHidden=pz.prototype.onYtMastheadHidden;pz.prototype.onYtNavigate=pz.prototype.onYtNavigate;pz.prototype.onYtToggleButton=pz.prototype.onYtToggleButton;pz.prototype.dataChanged=pz.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],pz.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],pz.prototype,"useYtdPlayer",void 0);_.u([_.Qc("ytd-toggle-button-renderer"),_.W("design:type",Object)],pz.prototype,"muteButton",void 0);_.u([_.Y(),_.W("design:type",Object)],pz.prototype,"buttonOverrides",void 0);
_.u([_.F("data.accessibilityData.label"),_.W("design:type",String),_.W("design:paramtypes",[])],pz.prototype,"titleAriaLabel",null);_.u([_.Qc("#replay-button"),_.W("design:type",Object)],pz.prototype,"replayButton",void 0);_.u([_.Qc("#player-container"),_.W("design:type",Object)],pz.prototype,"playerContainer",void 0);_.u([_.Qc("#player"),_.W("design:type",Object)],pz.prototype,"embeddedPlayer",void 0);_.u([_.Qc("#ytd-player"),_.W("design:type",Object)],pz.prototype,"ytdPlayer",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pz.prototype,"dataChanged",null);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pz.prototype,"onYtToggleButton",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],pz.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-masthead-hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pz.prototype,"onYtMastheadHidden",null);_.u([_.c({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],pz);
_.d(pz,"ytd-video-masthead-ad-primary-video-renderer",function(){if(nU$!==void 0)return nU$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nU$=M},{mode:2});var hNv;var FE=function(){var M=_.g.apply(this,arguments)||this;M.collapsed=!1;M.impressionResolver=_.Ln();M.JSC$15471_activeViewMeasurementDataResolver=_.Ln();M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.w(FE,_.g);_.P=FE.prototype;_.P.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.ready=function(){var M=this;_.SN(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){M.expandAd()});
this.hostElement.addEventListener("yt-action",function(z){if(z.detail.actionName==="yt-service-request"){var J=z.detail.args[1];J.videoMastheadAdMuteCommand&&(M.collapseAd(J.videoMastheadAdMuteCommand.encryptedMastheadId),z.stopPropagation())}})};
_.P.attached=function(){var M=this;_.au(function(){M.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(z){if(!M.collapsed){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,aH(J.baseUrl,J.attributionSrcMode);M.data.impressionCommand=void 0}});
this.JSC$15471_activeViewMeasurementDataResolver.promise.then(function(z){M.ytdActiveViewBehavior.enableActiveViewMeasurement(z,15)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.dataChanged=function(){var M;((M=this.data.impressionCommand)==null?0:M.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var z;((z=this.data)==null?0:z.activeView)&&this.JSC$15471_activeViewMeasurementDataResolver.resolve(this.data.activeView);(M=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(M.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.P.computeWidescreen=function(M){var z;return!!(M&&((z=_.G(M,Fct))==null?0:z.isWidescreen))};
_.P.computeExpandable=function(M){return!!(M&&M.length>0)};
_.P.onIronResize=function(){if(this.expandable){var M=_.SN(this.hostElement).querySelector("#expandable-tile-container :first-child");M&&!M.expanded&&(M.expanded=!0)}};
_.P.handleMuteAd=function(){this.collapseAd(null)};
_.P.restoreCollapsedState=function(M){this.collapsed=_.vv().get("HIDDEN_MASTHEAD_ID")===M};
_.P.collapseAd=function(M){if(M){var z=_.vv();z.set("HIDDEN_MASTHEAD_ID",M);z.save()}(M=_.SN(this.hostElement).querySelector("#video"))&&_.Pv(M,"yt-masthead-hidden");this.collapsed=!0};
_.P.expandAd=function(){var M=_.vv();M.set("HIDDEN_MASTHEAD_ID",!1);M.save();location.reload()};
_.P.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
FE.prototype.onIronResize=FE.prototype.onIronResize;FE.prototype.dataChanged=FE.prototype.dataChanged;_.u([_.p(_.Hw),_.W("design:type",Object)],FE.prototype,"ironResizableBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],FE.prototype,"ytdActiveViewBehavior",void 0);_.u([_.p(_.fk),_.W("design:type",Object)],FE.prototype,"ytdGridStateAwareBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],FE.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],FE.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.W("design:type",Boolean)],FE.prototype,"widescreen",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.W("design:type",Boolean)],FE.prototype,"expandable",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],FE.prototype,"collapsed",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FE.prototype,"dataChanged",null);
_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FE.prototype,"onIronResize",null);_.u([_.c({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],FE);
_.d(FE,"ytd-video-masthead-ad-v3-renderer",function(){if(hNv!==void 0)return hNv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hNv=M},{mode:2});var Yb=function(){return _.g.apply(this,arguments)||this};
_.w(Yb,_.g);_.P=Yb.prototype;_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.P.ready=function(){var M=this;B1o(function(){M.isAttached&&zy(M.JSC$15476_storedAdSlotMetadata,M.JSC$15476_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&U1(eK(),M.JSC$15476_storedAdSlotMetadata,M.JSC$15476_storedAdLayoutMetadata)})};
_.P.attached=function(){zy(this.JSC$15476_storedAdSlotMetadata,this.JSC$15476_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&I9p(eK(),this.JSC$15476_storedAdSlotMetadata,this.JSC$15476_storedAdLayoutMetadata)};
_.P.detached=function(){zy(this.JSC$15476_storedAdSlotMetadata,this.JSC$15476_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&U1(eK(),this.JSC$15476_storedAdSlotMetadata,this.JSC$15476_storedAdLayoutMetadata)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15476_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15476_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15476_storedAdLayoutMetadata!==void 0&&this.JSC$15476_storedAdSlotMetadata!==void 0&&U1(eK(),this.JSC$15476_storedAdSlotMetadata,this.JSC$15476_storedAdLayoutMetadata),I9p(eK(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15476_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15476_storedAdSlotMetadata=this.adSlotMetadata)};
_.rX.Object.defineProperties(Yb.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
Yb.prototype.onAdMetadataChanged=Yb.prototype.onAdMetadataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Yb.prototype,"data",void 0);_.u([_.F("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yb.prototype,"adLayoutMetadata",null);
_.u([_.Y(),_.W("design:type",Object)],Yb.prototype,"adSlotMetadata",void 0);_.u([_.la("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Yb.prototype,"onAdMetadataChanged",null);_.u([_.c({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Yb);
_.d(Yb,"ytd-page-top-ad-layout-renderer",function(){if(FlJ!==void 0)return FlJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return FlJ=
M},{mode:_.B5("kevlar_poly_si_batch_j070")?1:2});var yqV;var yP=function(){var M=_.g.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;M.typographyBump=!1;return M};
_.w(yP,_.g);_.P=yP.prototype;
_.P.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},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]]"}}}}}};
_.P.ready=function(){var M=this;B1o(function(){M.isAttached&&M.adSlotMetadata&&TK$(eK(),M.adSlotMetadata)})};
_.P.attached=function(){if(this.adSlotMetadata){var M;if(this.adSlotMetadata===((M=this.data)==null?void 0:M.adSlotMetadata))ObV(eK(),this.adSlotMetadata);else{var z;_.yA(Error("Lh`"+this.adSlotMetadata+"`"+((z=this.data)==null?void 0:z.adSlotMetadata)))}}};
_.P.detached=function(){this.adSlotMetadata&&TK$(eK(),this.adSlotMetadata)};
_.P.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.P.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&TK$(eK(),this.adSlotMetadata),ObV(eK(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.rX.Object.defineProperties(yP.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.fulfillmentContent)==null?void 0:z.fulfilledLayout,_.mok),R;return(M=(R=_.G(J==null?void 0:J.renderingContent,YcV))==null?void 0:R.layout)?M.toLowerCase().replace(/_/g,"-"):""}}});
yP.prototype.onAdSlotMetadataChanged=yP.prototype.onAdSlotMetadataChanged;yP.prototype.onTypographyBumpChanged=yP.prototype.onTypographyBumpChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yP.prototype,"rendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],yP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],yP.prototype,"noBottomMargin",void 0);_.u([_.Y(),_.W("design:type",Object)],yP.prototype,"overlayDensity",void 0);_.u([_.Y(),_.W("design:type",Object)],yP.prototype,"typographyBump",void 0);_.u([_.Qc("ytd-in-feed-ad-layout-renderer"),_.W("design:type",HTMLElement)],yP.prototype,"inFeedAdLayoutRenderer",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],yP.prototype,"layout",null);_.u([_.la("typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yP.prototype,"onTypographyBumpChanged",null);_.u([_.la("data.adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yP.prototype,"onAdSlotMetadataChanged",null);
_.u([_.c({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],yP);
_.d(yP,"ytd-ad-slot-renderer",function(){if(yqV!==void 0)return yqV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return yqV=M},{mode:_.B5("kevlar_poly_si_batch_j077")?
1:2});var Hb$;var Ho=function(){return _.g.apply(this,arguments)||this};
_.w(Ho,_.g);_.P=Ho.prototype;_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.maybeComputeHref=function(){return null};
_.P.onTap=function(){};
_.P.onThumbnailContainerClick=function(M){this.onClick(M)};
_.P.onClick=function(M){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;J&&_.G(J,_.Au)&&(this.ytSparklesClickLocationBehavior.handleClick(J,M,!1),M.stopPropagation())};
_.P.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var M=_.S(this.data.impressionUrls),z=M.next();!z.done;z=M.next())z=z.value,QE8(z,vSp(z));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Ho.JSC$15484_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ho.JSC$15484_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&
M.removeAttribute("href"))}};
_.P.attached=function(){var M=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rX.Object.defineProperties(Ho.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Ho.prototype.dataChanged=Ho.prototype.dataChanged;Ho.prototype.onTap=Ho.prototype.onTap;Ho.JSC$15484_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Ho.JSC$15484_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"}];_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.u([_.p(q4),_.W("design:type",Object)],Ho.prototype,"ytdActiveViewBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Ho.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Ho.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],Ho.prototype,"ytSparklesClickLocationBehavior",void 0);
_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],Ho.prototype,"isGridViewEnabled",void 0);_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ho.prototype,"watchFeedBigThumbs",null);_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],Ho.prototype,"thumbnailWidth",null);_.u([_.Y(),_.W("design:type",Object)],Ho.prototype,"data",void 0);
_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],Ho.prototype,"thumbnail",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ho.prototype,"onTap",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ho.prototype,"dataChanged",null);_.u([_.c({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Ho);
_.d(Ho,"ytd-compact-promoted-video-renderer",function(){if(Hb$!==void 0)return Hb$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Hb$=M},{mode:1});var cqJ;_.nn("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var co=function(){return _.g.apply(this,arguments)||this};
_.w(co,_.g);co.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],co.prototype,"data",void 0);_.u([_.c({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],co);
_.d(co,"ytd-search-pyv-renderer",function(){if(cqJ!==void 0)return cqJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return cqJ=M},{mode:1});var dY2;_.nn("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var d2=function(){var M=_.g.apply(this,arguments)||this;M.roundedContainer=!0;M.JSC$15492_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.w(d2,_.g);_.P=d2.prototype;
_.P.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.P.onStampFinished=function(){this.JSC$15492_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.SN(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");M?M.openDialog():this.JSC$15492_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.P.computeHideBorder=function(){return this.isInEngagementPanel};
_.P.computeIsCompact=function(){return this.isInEngagementPanel};
_.P.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeUsesFullLockup=function(){var M,z=(M=this.data)==null?void 0:M.post,J;M=(J=_.G(z,$ov))==null?void 0:J.surface;var R;J=(R=_.G(z,Wcg))==null?void 0:R.originalPost;var D;if(R=M||((D=_.G(J,$ov))==null?void 0:D.surface))return!this.computeUsesCompactLockup(R)&&this.useUpdatedRepostUi;var N;return((N=_.G(z,Wcg))==null?void 0:N.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.rX.Object.defineProperties(d2.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var M,z;return((z=_.G((M=this.data)==null?void 0:M.post,$ov))==null?void 0:z.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useUpdatedRepostUi}}});
d2.prototype.onYtCommentModerationPanelEmpty=d2.prototype.onYtCommentModerationPanelEmpty;d2.prototype.onStampFinished=d2.prototype.onStampFinished;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],d2.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],d2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],d2.prototype,"roundedContainer",void 0);_.u([_.Y({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],d2.prototype,"hideBorder",void 0);_.u([_.Y({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],d2.prototype,"isCompact",void 0);
_.u([_.Y({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.W("design:type",Boolean)],d2.prototype,"usesFullLockup",void 0);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d2.prototype,"onStampFinished",null);
_.u([_.Xw("ytd-comment-moderation-panel-empty"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d2.prototype,"onYtCommentModerationPanelEmpty",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],d2.prototype,"isInEngagementPanel",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],d2.prototype,"useUpdatedRepostUi",null);
_.u([_.c({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],d2);
_.d(d2,"ytd-backstage-post-thread-renderer",function(){if(dY2!==void 0)return dY2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dY2=M},{mode:1});var KlS;var Kz=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(Kz,_.g);Kz.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Kz.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var M=this.data.thumbnail.thumbnails;this.isDarkTheme&&(M=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(M=_.PS(M,24,void 0,"height"))?M:void 0}};
Kz.prototype.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
Kz.prototype.computeHasText=function(){var M;return!((M=this.data)==null||!M.text)};
_.rX.Object.defineProperties(Kz.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.hr(this.bannerImageUrl))+'");'}}});
Kz.prototype.computeHasText=Kz.prototype.computeHasText;Kz.prototype.computeBannerImageUrl=Kz.prototype.computeBannerImageUrl;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Kz.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Kz.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Kz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Kz.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",String)],Kz.prototype,"bannerImageUrl",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.W("design:type",Boolean)],Kz.prototype,"hasText",void 0);_.u([_.la("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kz.prototype,"computeBannerImageUrl",null);
_.u([_.la("data.text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Kz.prototype,"computeHasText",null);_.u([_.F("bannerImageUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],Kz.prototype,"bannerStyle",null);_.u([_.c({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Kz);
_.d(Kz,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(KlS!==void 0)return KlS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return KlS=M},{mode:1});var $YV;var $b=function(){return _.g.apply(this,arguments)||this};
_.w($b,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$b.prototype,"data",void 0);_.u([_.c({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],$b);
_.d($b,"ytd-backstage-zero-state-renderer",function(){if($YV!==void 0)return $YV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $YV=M},{mode:1});var uNt;var uL=function(){return _.g.apply(this,arguments)||this};
_.w(uL,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uL.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],uL.prototype,"icon",void 0);_.u([_.c({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],uL);
_.d(uL,"ytd-post-filter-zero-state-renderer",function(){if(uNt!==void 0)return uNt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uNt=M},{mode:1});var q6J;var Wlv={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},qV=function(){return _.g.apply(this,arguments)||this};
_.w(qV,_.g);qV.prototype.configureRendererStamper=function(){return Wlv};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qV.prototype,"rendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qV.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],qV.prototype,"icon",void 0);_.u([_.c({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],qV);
_.d(qV,"ytd-post-scheduling-zero-state-renderer",function(){if(q6J!==void 0)return q6J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return q6J=M},{mode:1});var a9g;var Wo=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return M};
_.w(Wo,_.g);Wo.prototype.onTabsActivate=function(M){this.data&&this.data.tabs&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[M.detail.selected].navigationEndpoint})};
Wo.prototype.shouldShowTotalCount=function(M){return M&&M.totalCount!==void 0};
Wo.prototype.handleUpdatePostsTotalCountAction=function(M){var z=this.get(["data.tabs",1,"totalCount"]),J=this.get("updatePostsTotalCountAction.updateType",M);M=this.get("updatePostsTotalCountAction.number",M);z!==void 0&&J!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&M&&(J==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(z)+M):J==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(z)-M))};
_.rX.Object.defineProperties(Wo.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var M=0,z=this.data.tabs.length;M<z;M++)if(this.data.tabs[M].selected)return M;return 0}}});
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Wo.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wo.prototype,"rendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Wo.prototype,"data",void 0);_.u([_.F("data.tabs"),_.W("design:type",Number),_.W("design:paramtypes",[])],Wo.prototype,"selected",null);_.u([_.c({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Wo);
_.d(Wo,"ytd-post-stream-filter-renderer",function(){if(a9g!==void 0)return a9g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return a9g=M},{mode:1});var V2J;var aP=function(){return _.g.apply(this,arguments)||this};
_.w(aP,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],aP.prototype,"kevlarBehaviors",void 0);_.u([_.Y(),_.W("design:type",Object)],aP.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],aP);
_.d(aP,"ytd-channel-age-gate-renderer",function(){if(V2J!==void 0)return V2J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return V2J=M},{mode:1});var EU$;_.nn("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var VP=function(){var M=_.g.apply(this,arguments)||this;M.data=null;return M};
_.w(VP,_.g);VP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rX.Object.defineProperties(VP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?0:(z=M.title)==null?0:(J=z.runs)==null?0:J.length)?147:160}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],VP.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],VP.prototype,"imageSizePx",null);_.u([_.c({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],VP);
_.d(VP,"ytd-channel-owner-empty-state-renderer",function(){if(EU$!==void 0)return EU$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return EU$=M},{mode:1});var f9S;var Llp;var E1=function(){var M=_.g.apply(this,arguments)||this;M.boundSubmitSearch=function(){M.submitSearch()};
M.boundClearSearch=function(){M.clearSearch()};
return M};
_.w(E1,_.g);_.P=E1.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.P.toggleClearButton=function(){this.hideClearButton=XFp||!this.input.value};
_.P.submitOnEnterKeyUp=function(M){M.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.P.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.P.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.P.submit=function(){_.Pv(this.hostElement,"search-query-changed",this.input.value)};
E1.prototype.toggleClearButton=E1.prototype.toggleClearButton;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],E1.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],E1.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],E1.prototype,"hideClearButton",void 0);_.u([_.Y(),_.W("design:type",Object)],E1.prototype,"boundSubmitSearch",void 0);_.u([_.Y(),_.W("design:type",Object)],E1.prototype,"boundClearSearch",void 0);_.u([_.Qc("#input"),_.W("design:type",Object)],E1.prototype,"input",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E1.prototype,"toggleClearButton",null);
_.u([_.c({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],E1);
_.d(E1,"ytd-channel-switcher-search-box-renderer",function(){if(Llp!==void 0)return Llp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Llp=M},{mode:1});var AqV;var fz=function(){var M=_.g.apply(this,arguments)||this;M.boundSubmit=function(){M.submit()};
return M};
_.w(fz,_.g);_.P=fz.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.ready=function(){var M=this;this.form.addEventListener("submit",function(z){return M.onSubmit(z)})};
_.P.onSubmit=function(M){M.preventDefault();return!1};
_.P.toggleClearButton=function(){this.hideClearButton=XFp||!this.input.value};
_.P.submitOnEnterKeyUp=function(M){M.keyCode===13&&this.submit()};
_.P.submit=function(){var M=this.data.endpoint,z=(0,_.gu.unsafeClone)(M);_.G(z,_.Gh)?_.G(z,_.Gh).query=this.input.value:_.G(z,_.wB)&&(_.G(z,_.wB).query=this.input.value);var J=_.G(z.commandMetadata,_.X9);(J==null?0:J.url)?(J.url=_.$4(J.url,"query",this.input.value),_.Pv(this.hostElement,"yt-navigate",{endpoint:z})):_.G(z,wKV)?(_.G(z,wKV).channelSwitcherQuery=this.input.value,_.JF().resolve(_.Rb).resolveCommand(z,{form:{element:this.hostElement}})):(M=Error("Mh`"+JSON.stringify(M)),_.nc(M))};
_.P.getUrl=function(M){return this.get("commandMetadata.webCommandMetadata.url",M)};
fz.prototype.toggleClearButton=fz.prototype.toggleClearButton;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fz.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],fz.prototype,"hideClearButton",void 0);
_.u([_.Y(),_.W("design:type",Object)],fz.prototype,"boundSubmit",void 0);_.u([_.Qc("#form"),_.W("design:type",HTMLFormElement)],fz.prototype,"form",void 0);_.u([_.Qc("#input"),_.W("design:type",Object)],fz.prototype,"input",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fz.prototype,"toggleClearButton",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],fz);
_.d(fz,"ytd-search-box-renderer",function(){if(AqV!==void 0)return AqV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return AqV=M},{mode:2});var Lz=function(){var M=_.g.apply(this,arguments)||this;M.showSearchBox=!0;return M};
_.w(Lz,_.g);Lz.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Lz.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Lz.prototype,"showSearchBox",void 0);_.u([_.c({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Lz);
_.d(Lz,"ytd-channel-switcher-header-renderer",function(){if(f9S!==void 0)return f9S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return f9S=M},{mode:1});var iba;var C8t;var AB=function(){var M=_.g.apply(this,arguments)||this;M.isDisplayed=!0;return M};
_.w(AB,_.g);_.P=AB.prototype;_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.isDisplayed=!0};
_.P.computeType=function(M){return M||"UNKNOWN"};
_.P.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isDisplayed=!1};
_.P.onClose=function(){this.isDisplayed=!1};
AB.prototype.onYtServiceRequestCompleted=AB.prototype.onYtServiceRequestCompleted;AB.prototype.dataChanged=AB.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AB.prototype,"data",void 0);
_.u([_.Y({computed:"computeType(data.type)",reflectToAttribute:!0}),_.W("design:type",String)],AB.prototype,"type",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],AB.prototype,"isDisplayed",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AB.prototype,"dataChanged",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AB.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],AB);
_.d(AB,"ytd-alert-with-button-renderer",function(){if(C8t!==void 0)return C8t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return C8t=M},{mode:1});var iL=function(){var M=_.g.apply(this,arguments)||this;M.noResult=!1;M.enableAlertBanner=!1;M.dismissedAlertBanner=!1;M.hideCreateChannelButton=!1;M.boundDismissAlertBanner=function(){M.dismissAlertBanner()};
M.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return M};
_.w(iL,_.g);_.P=iL.prototype;_.P.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.P.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.P.updateChannelSwitcherAction=function(M){var z;M=(z=_.G(M,oev))==null?void 0:z.page;_.G(M,IF$)!==void 0&&(this.data=_.G(M,IF$))};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.searchQueryChanged=function(M,z){if(this.data&&this.data.contents&&this.data.contents.length){M=[];var J=[];this.hideCreateChannelButton=this.noResult=!1;for(var R=document.querySelectorAll("ytd-account-item-renderer"),D=_.S(R),N=D.next();!N.done;N=D.next())N=N.value,J.push(N),N.style.display="block";this.resetRightBorder(J);if(z){this.hideCreateChannelButton=!0;for(J=1;J<this.data.contents.length;J++)if(N=this.data.contents[J],_.G(N,UoB)){var Z=void 0,B=void 0;D=(Z=_.G(N,UoB))==null?void 0:(B=
Z.accountName)==null?void 0:B.simpleText;B=Z=void 0;N=(Z=_.G(N,UoB))==null?void 0:(B=Z.channelHandle)==null?void 0:B.simpleText;(Z=R[J-1])&&D&&_.T8(D,z)?M.push(Z):_.U("enable_handle_search_on_channel_switcher")&&Z&&N&&_.T8(N.toString(),z.toString())?M.push(Z):Z.style.display="none"}M.length===0&&(this.noResult=!0);this.resetRightBorder(M)}}};
_.P.resetRightBorder=function(M){for(var z=0;z<M.length;z++)M[z].style.borderRight=!this.hideCreateChannelButton&&(z+2)%3===0||this.hideCreateChannelButton&&(z+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.P.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.P.setShowSearchBox=function(M){if(M&&M.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var z=0;z<M.contents.length;z++)_.G(M.contents[z],_.z0)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.P.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.rX.Object.defineProperties(iL.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.contents)}}});
iL.prototype.onContinuationItemsUpdated=iL.prototype.onContinuationItemsUpdated;iL.prototype.searchQueryChanged=iL.prototype.searchQueryChanged;iL.prototype.onDataChanged=iL.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],iL.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],iL.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iL.prototype,"data",void 0);_.u([_.Qc("ytd-channel-switcher-header-renderer"),_.W("design:type",Object)],iL.prototype,"channelSwitcherHeaderRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],iL.prototype,"noResult",void 0);
_.u([_.Y(),_.W("design:type",Object)],iL.prototype,"enableAlertBanner",void 0);_.u([_.Y(),_.W("design:type",Object)],iL.prototype,"dismissedAlertBanner",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iL.prototype,"hideCreateChannelButton",void 0);_.u([_.F("data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iL.prototype,"isLoading",null);_.u([_.Y(),_.W("design:type",Object)],iL.prototype,"boundDismissAlertBanner",void 0);
_.u([_.Y({computed:"computeButtonOverride()"}),_.W("design:type",Object)],iL.prototype,"buttonOverride",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iL.prototype,"onDataChanged",null);_.u([_.Xw("search-query-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],iL.prototype,"searchQueryChanged",null);
_.u([_.Xw("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iL.prototype,"onContinuationItemsUpdated",null);_.u([_.c({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],iL);
_.d(iL,"ytd-channel-switcher-page-renderer",function(){if(iba!==void 0)return iba;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return iba=M},{mode:1});var bbu;var rqu;var Cz=function(){var M=_.g.apply(this,arguments)||this;M.images=[];M.selectedImageIndex=0;return M};
_.w(Cz,_.g);_.P=Cz.prototype;
_.P.ready=function(){_.YS(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.YS(this.JSC$15537_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.YS(this.JSC$15537_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.YS(this.JSC$15537_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.P.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.P.updateImageThumbnails=function(M){M=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:M.event_.detail});this.images.splice(this.selectedImageIndex,1,M);this.images=[].concat(_.Yj(this.images))};
_.P.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Pv(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.P.saveImageRepositions=function(){this.selectedImageIndex=0;_.Pv(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.rX.Object.defineProperties(Cz.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(z,J){return{image:z,selected:J===M.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("ytd-backstage-image-preview-renderer"),_.W("design:type",Object)],Cz.prototype,"JSC$15537_imagePreviewContainer",void 0);_.u([_.Qc(".thumbnail-images-container"),_.W("design:type",HTMLElement)],Cz.prototype,"thumbnailImagesContainer",void 0);_.u([_.Y(),_.W("design:type",Array)],Cz.prototype,"images",void 0);
_.u([_.Y(),_.W("design:type",Object)],Cz.prototype,"repositionInstructions",void 0);_.u([_.Y(),_.W("design:type",Object)],Cz.prototype,"selectedImageIndex",void 0);_.u([_.F("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],Cz.prototype,"thumbnailRendererDatas",null);_.u([_.F("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],Cz.prototype,"selectedImageData",null);
_.u([_.c({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Cz);
_.d(Cz,"ytd-backstage-multi-image-reposition-renderer",function(){if(rqu!==void 0)return rqu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return rqu=M},{mode:1});var bL=function(M,z){_.jB.call(this);this.uploadUrl=M;this.channelId=z;this.imagesUploadData=[]};
_.w(bL,_.jB);bL.prototype.getAllUploadStatuses=function(){var M=this,z,J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(MVQ(M),2);z=D.yieldResult;J=z.get("succeed");R=z.get("failed");return D.return(J.concat(R))})};
var JRV=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(MVQ(M),2);z=R.yieldResult;J=z.get("failed");J.length>0&&zaS(M,J);return R.return(M.getAllUploadStatuses())})},MVQ=function(M){var z,J,R,D,N,Z,B;
return _.k(function(O){if(O.nextAddress==1)return z=new Map,O.yield(Promise.allSettled(M.imagesUploadData.map(function(X){return X.uploadPromise})),2);
J=O.yieldResult;R=[];D=_.S(J);for(N=D.next();!N.done;N=D.next())Z=N.value,Z.status==="fulfilled"&&R.push(Z.value);B=M.imagesUploadData.map(function(X){return X.image}).filter(function(X){return R.every(function(l){return l.id!==X.id})});
z.set("succeed",R);z.set("failed",B);return O.return(z)})},zaS=function(M,z){z=_.S(z);
for(var J=z.next();!J.done;J=z.next()){var R=M;J=J.value;Ra$(R,J.id)>=0&&R.cancel(J.id);var D=new DQ2(J),N=_.Scv(R.uploadUrl,{"X-YouTube-ChannelId":R.channelId},J.imageBlob);D.transfer=N;D.uploadPromise=NOp(N,J);R.imagesUploadData.push(D);N.run()}};
bL.prototype.cancel=function(M){var z=Ra$(this,M);z!==-1&&((z=this.imagesUploadData[z].transfer)&&z.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(J){return J.image.id!==M}))};
var Ra$=function(M,z){return M.imagesUploadData.findIndex(function(J){return J.image.id===z})},NOp=function(M,z){return new Promise(function(J,R){M.listen("l",function(){var D=M.getResponseText();
D?(D=JSON.parse(D).encryptedBlobId,z.encryptedBlobId=D,J(z)):R("upload failed")});
M.listen("n",function(){R("upload failed")})})},DQ2=function(M){this.image=M};var Dun=function(M,z,J,R,D){this.id=M;this.imageBlob=z;this.localImageSrc=J;this.naturalWidth=R;this.naturalHeight=D;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 PB$=[".jpeg",".jpg",".png"],r2=function(){var M=_.g.apply(this,arguments)||this;M.showImagesPreview=!1;M.pollOptions=[];M.errorMessage="";M.optionPlaceholderText="";M.optionDefaultText="";M.JSC$15548_imageId=0;M.maxFileSizeMb=0;M.maxAspectRatio=0;M.invalidFileSizeError="";M.invalidAspectRatioError="";M.invalidFileTypeError="";M.imageSelector=new Qz(null,"single_file",PB$);return M};
_.w(r2,_.g);_.P=r2.prototype;_.P.ready=function(){_.YS(this.imageSelector,"j",this.onImageSelect,!1,this);_.YS(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.YS(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.P.dataChanged=function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.cellTemplate)==null?void 0:z.onEmptyCellTap,QwB);if(J&&J.uploadUrl&&J.channelId){var R;this.maxFileSizeMb=((R=J.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0;var D;this.maxAspectRatio=((D=J.imageValidationInfo)==null?void 0:D.allowedMaxAspectRatio)||0;var N;this.invalidFileSizeError=this.getSimpleString((N=this.data)==null?void 0:N.invalidFileSizeError);var Z;this.invalidAspectRatioError=this.getSimpleString((Z=this.data)==
null?void 0:Z.invalidAspectRatioError);var B;this.invalidFileTypeError=this.getSimpleString((B=this.data)==null?void 0:B.invalidFileTypeError);this.uploadManager=new bL(J.uploadUrl,J.channelId)}};
_.P.onEditorInfoChange=function(){this.optionPlaceholderText=_.CD(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.CD(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.P.observeAddImageError=function(){this.errorMessage!==""&&_.Pv(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.P.onPollOptionsChange=function(){for(var M=!1,z=[],J=0;J<this.pollOptions.length;J++){var R=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(J+1);this.pollOptions[J].placeholderText!==R?(M=!0,z.push(Object.assign({},this.pollOptions[J],{placeholderText:R}))):z.push(this.pollOptions[J])}M&&(this.pollOptions=z);this.isValid()?_.Pv(this.hostElement,"yt-commentbox-post-enable"):_.Pv(this.hostElement,"yt-commentbox-post-disable")};
_.P.createPollOptions=function(M){var z=[],J;M=(J=M==null?void 0:M.minPollOptions)!=null?J:0;for(J=0;J<M;J++)z.push(this.createPollOption());return z};
_.P.onImageSelect=function(M){var z=this,J,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1){if(z.selectedImageIndex===void 0)return O.jumpTo(0);J=M.files[0];z.errorMessage="";R=z.validateImage(J);if(R!=="")return z.errorMessage=R,O.return();D=new MJ(z.maxAspectRatio,!1,!0);return O.yield(D.transform(J),3)}if(O.nextAddress!=4)return N=O.yieldResult,N.transformedData?N.invalidAspectRatio?(z.errorMessage=z.invalidAspectRatioError,O.return()):O.yield(N7w(z.JSC$15548_imageId,M.files[0],N.transformedData),
4):(z.errorMessage=z.invalidFileTypeError,O.return());Z=O.yieldResult;z.JSC$15548_imageId++;zaS(z.uploadManager,[Z]);B=Object.assign({},z.pollOptions[z.selectedImageIndex],{image:Z});z.pollOptions.splice(z.selectedImageIndex,1,B);z.refreshPollOptions();_.Pv(z.hostElement,"yt-backstage-poll-image-select");_.UI(O)})};
_.P.validateImage=function(M){return M.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.P.refreshPollOptions=function(){this.pollOptions=[].concat(_.Yj(this.pollOptions))};
_.P.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Yj(this.pollOptions),[this.createPollOption()]))};
_.P.onRemovePollOption=function(M){var z=this.pollOptions[M.model.index];z&&z.image&&this.uploadManager.cancel(z.image.id);this.pollOptions.splice(M.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Pv(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.P.onTextInput=function(){this.refreshPollOptions()};
_.P.onImageButtonClick=function(M){this.selectedImageIndex=M.model.index;this.imageSelector.click()};
_.P.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.P.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.P.saveImageRepositions=function(M){M=M.event_.detail;for(var z=0,J=[],R=_.S(this.pollOptions),D=R.next();!D.done;D=R.next())D=D.value,D.image!==void 0?(D=Object.assign({},D,{image:M[z]}),J.push(D),z++):J.push(D);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Yj(J))};
_.P.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var M=0,z=_.S(this.pollOptions),J=z.next();!J.done;J=z.next())if(J=J.value,J.optionText.trim()!==""||J.image!==void 0){if(!J.image||this.hasCustomOptionText&&J.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;M++}return M>=Number(this.editorInfo.minPollOptions)};
_.P.getAllUploadStatuses=function(){var M=this,z,J,R,D;return _.k(function(N){if(N.nextAddress==1)return N.yield(M.uploadManager.getAllUploadStatuses(),2);z=N.yieldResult;J=_.S(z);for(R=J.next();!R.done;R=J.next())if(D=R.value,D.encryptedBlobId===void 0)return N.return(JRV(M.uploadManager));return N.return(z)})};
_.P.getPostCreateOptions=function(){for(var M=[],z=_.S(this.pollOptions),J=z.next();!J.done;J=z.next())J=J.value,J.image!==void 0&&M.push({text:this.hasCustomOptionText?J.optionText:J.placeholderText,image:J.image});return M};
_.P.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.P.createButtonRenderer=function(M,z){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleString(M)}},isDisabled:z}};
_.P.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.P.computeThumbnailRendererData=function(M){return M?{image:M,selected:!1}:void 0};
_.P.getSimpleString=function(M){return _.CD(M)};
_.P.updateOptionTextFromBinding=function(M){if(M.target){var z=Array.from(_.SN(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(M.target);if(z>=0){var J;this.pollOptions[z].optionText=(J=M.detail.value)!=null?J:""}}};
_.rX.Object.defineProperties(r2.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.pollOptions.length<((z=(M=this.editorInfo)==null?void 0:M.maxPollOptions)!=null?z:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(M){return M.image}).map(function(M){return M.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.data)==null?void 0:M.addOptionButtonText;return z?this.createButtonRenderer(z,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.data)==null?void 0:M.repositionImagesButtonLabel;return z?this.createButtonRenderer(z,!this.hasImages):void 0}}});
r2.prototype.onPollOptionsChange=r2.prototype.onPollOptionsChange;r2.prototype.observeAddImageError=r2.prototype.observeAddImageError;r2.prototype.onEditorInfoChange=r2.prototype.onEditorInfoChange;r2.prototype.dataChanged=r2.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("ytd-backstage-multi-image-reposition-renderer"),_.W("design:type",Object)],r2.prototype,"imageRepositionContainer",void 0);
_.u([_.Y(),_.W("design:type",Object)],r2.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],r2.prototype,"editorInfo",void 0);_.u([_.Y(),_.W("design:type",bL)],r2.prototype,"uploadManager",void 0);_.u([_.Y(),_.W("design:type",Object)],r2.prototype,"showImagesPreview",void 0);_.u([_.Y(),_.W("design:type",Array)],r2.prototype,"pollOptions",void 0);_.u([_.Y(),_.W("design:type",Object)],r2.prototype,"errorMessage",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r2.prototype,"dataChanged",null);_.u([_.wH("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r2.prototype,"onEditorInfoChange",null);_.u([_.la("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r2.prototype,"observeAddImageError",null);
_.u([_.wH("pollOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r2.prototype,"onPollOptionsChange",null);_.u([_.F("pollOptions","editorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"isAllowedToAddOption",null);_.u([_.F("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"hasImages",null);
_.u([_.F("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"imagesToReposition",null);_.u([_.F("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"hasCustomOptionText",null);_.u([_.F("data","isAllowedToAddOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"addOptionButton",null);_.u([_.F("data","hasImages"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"repositionImagesButton",null);
_.u([_.c({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],r2);
_.d(r2,"ytd-backstage-image-poll-editor-renderer",function(){if(bbu!==void 0)return bbu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return bbu=M},{mode:2});var SiQ={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 Z$S;var MO=function(){var M=_.g.apply(this,arguments)||this;M.a11yConfig=SiQ;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.showPreviewContainer=!0;M.startPicker=!1;M.repositionOptional=!1;M.editOnlyMode=!1;M.savedImageDisplayOffsetTop=0;M.savedImageDisplayOffsetLeft=0;return M};
_.w(MO,_.g);_.P=MO.prototype;_.P.created=function(){_.Vv.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(M){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var z=0,J=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":Ppc(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":Ppc(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":Ppc(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:J=this.imageWidth*.05*-1;break;case "ArrowRight":Ppc(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:J=this.imageWidth*.05}R&&_.e9(R)&&_.Pv(this.hostElement,"iron-announce",{text:_.e9(R)});if(J||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.e9(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+J)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.e9(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.Pv(this.hostElement,"iron-announce",{text:M})}};
_.P.getPreviewPosition=function(M,z,J,R){return Math.round(100*(M+z*.5-J)/R)};
_.P.calculateDisplayPosition=function(){var M=this.imageData.naturalWidth,z=this.imageData.naturalHeight;this.displayScale=Math.max(200/M,200/z);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var J=M*this.displayScale*this.imageData.previewCoordinates.left,R=z*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=z>M?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-J;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=M>z?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-R;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=M*this.displayScale;this.imageHeight=z*this.displayScale};
_.P.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.P.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.P.getSignedPosition=function(M,z,J){return z==="X"&&_.HW("HTML_DIR")==="rtl"?J==="-"?M+"px":M*-1+"px":J==="-"?M*-1+"px":M+"px"};
_.P.pickerMove=function(M){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-M.clientX,J=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
J)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.P.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var M=this.generateCropPreview();M&&_.Pv(this.hostElement,"ytd-backstage-image-preview-coordinates-update",M)};
_.P.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Pv(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.P.deleteImage=function(){_.Pv(this.hostElement,"ytd-backstage-image-preview-delete")};
_.P.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.P.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var M=this.generateCropPreview();M&&_.Pv(this.hostElement,"ytd-backstage-image-preview-coordinates-save",M)};
_.P.getPreviewOffset=function(M,z,J){return z&&M?(J==="X"&&_.HW("HTML_DIR")==="rtl"?300/z*M:300/z*M*-1)+"px":"0px"};
_.P.getSimpleText=function(M){return M?_.CD(M):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.rX.Object.defineProperties(MO.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.e9(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.e9(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.e9(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.e9(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.instruction)==null?void 0:(z=M.previewInstruction)==null?void 0:z.editButtonLabel;return J?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D=this.editOnlyMode?(M=this.instruction)==null?void 0:(z=M.editInstruction)==null?void 0:z.saveImagesButtonLabel:(J=this.instruction)==null?void 0:(R=J.editInstruction)==null?void 0:R.saveButtonLabel;return D?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.instruction)==null?void 0:(z=M.previewInstruction)==null?void 0:z.deleteButtonLabel;return J?{size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.instruction)==null?void 0:(z=M.editInstruction)==null?void 0:z.cancelButtonLabel;M=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return J?{style:M,size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}: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"}}});
MO.prototype.onEditOnlyModeUpdate=MO.prototype.onEditOnlyModeUpdate;MO.prototype.onImageChange=MO.prototype.onImageChange;_.u([_.Y(),_.W("design:type",Dun)],MO.prototype,"imageData",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"instruction",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"a11yConfig",void 0);_.u([_.Y(),_.W("design:type",Number)],MO.prototype,"imageWidth",void 0);_.u([_.Y(),_.W("design:type",Number)],MO.prototype,"imageHeight",void 0);
_.u([_.Y(),_.W("design:type",Number)],MO.prototype,"displayScale",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"imageDisplayOffsetTop",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"imageDisplayOffsetLeft",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"pickerDisplayOffsetTop",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"pickerDisplayOffsetLeft",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"showPreviewContainer",void 0);
_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"startPicker",void 0);_.u([_.Y(),_.W("design:type",Number)],MO.prototype,"pickerOffsetX",void 0);_.u([_.Y(),_.W("design:type",Number)],MO.prototype,"pickerOffsetY",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"repositionOptional",void 0);_.u([_.Y(),_.W("design:type",Object)],MO.prototype,"editOnlyMode",void 0);_.u([_.Qc("#picker-container"),_.W("design:type",HTMLElement)],MO.prototype,"JSC$15561_pickerContainer",void 0);
_.u([_.Qc("#picker"),_.W("design:type",HTMLElement)],MO.prototype,"picker",void 0);_.u([_.Qc("#preview-clipper"),_.W("design:type",HTMLElement)],MO.prototype,"previewClipper",void 0);_.u([_.Qc("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],MO.prototype,"JSC$15561_imageInBackground",void 0);_.u([_.Qc("#image-in-picker"),_.W("design:type",HTMLImageElement)],MO.prototype,"JSC$15561_imageInPicker",void 0);
_.u([_.Qc("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],MO.prototype,"JSC$15561_imageInPreviewClipper",void 0);_.u([_.F("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"altLabelForImage",null);_.u([_.F("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],MO.prototype,"pickerSize",null);
_.u([_.F("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],MO.prototype,"imageOrientationStyle",null);_.u([_.F("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],MO.prototype,"editButton",null);_.u([_.F("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],MO.prototype,"saveButton",null);_.u([_.F("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],MO.prototype,"deleteButton",null);
_.u([_.F("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],MO.prototype,"cancelButton",null);_.u([_.F("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],MO.prototype,"cropOffsetTop",null);_.u([_.F("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],MO.prototype,"cropOffsetLeft",null);
_.u([_.F("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"pickerBackgroundStyle",null);_.u([_.F("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"pickerDisplayStyle",null);_.u([_.F("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"imageInPickerStyle",null);
_.u([_.F("cropOffsetLeft","cropOffsetTop","pickerSize"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"previewClipperStyle",null);_.u([_.wH("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MO.prototype,"onImageChange",null);_.u([_.wH("editOnlyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MO.prototype,"onEditOnlyModeUpdate",null);
_.u([_.F("showPreviewContainer"),_.W("design:type",String),_.W("design:paramtypes",[])],MO.prototype,"pickerModeStyle",null);_.u([_.c({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],MO);
_.d(MO,"ytd-backstage-image-preview-renderer",function(){if(Z$S!==void 0)return Z$S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Z$S=M},{mode:1});var k7g;var BOg={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var O$B;var TO$;var zg=function(){var M=_.g.apply(this,arguments)||this;M.a11yConfig=BOg;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.cropCoordinatesSaved=!1;M.previewSize=0;M.startPicker=!1;M.repositionOptional=!1;return M};
_.w(zg,_.g);_.P=zg.prototype;_.P.created=function(){_.Vv.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(M){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var z=0,J=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":St0(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":St0(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":St0(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:J=this.imageWidth*.05*-1;break;case "ArrowRight":St0(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:J=this.imageWidth*.05}R&&_.e9(R)&&_.Pv(this.hostElement,"iron-announce",{text:_.e9(R)});if(J||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.e9(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+J)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.e9(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.Pv(this.hostElement,"iron-announce",{text:M})}};
_.P.getPreviewPosition=function(M,z,J,R){return Math.round(100*(M+z*.5-J)/R)};
_.P.displayImage=function(){var M=this.JSC$15572_pickerContainer.getBoundingClientRect().width,z=this.JSC$15572_pickerContainer.getBoundingClientRect().height,J=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),R=this.JSC$15572_imageInBackground.naturalWidth,D=this.JSC$15572_imageInBackground.naturalHeight;this.displayScale=Math.max(J/R,J/D);this.imageWidth=R*this.displayScale;this.imageHeight=D*this.displayScale;this.pickerDisplayOffsetLeft=(M-J)/2;this.pickerDisplayOffsetTop=
(z-J)/2;this.imageDisplayOffsetLeft=D>R?this.pickerDisplayOffsetLeft:(M-this.imageWidth)/2;this.imageDisplayOffsetTop=R>D?this.pickerDisplayOffsetTop:(z-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.P.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15572_imageInBackground.src=this.imageData.toString(),this.JSC$15572_imageInPicker.src=this.imageData.toString(),this.JSC$15572_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.P.getSignedPosition=function(M,z,J){return z==="X"&&_.HW("HTML_DIR")==="rtl"?J==="-"?M+"px":M*-1+"px":J==="-"?M*-1+"px":M+"px"};
_.P.pickerMove=function(M){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-M.clientX,J=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
J)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.P.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.P.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Pv(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.P.getPreviewOffset=function(M,z,J,R){return z&&M&&J?(R==="X"&&_.HW("HTML_DIR")==="rtl"?J/z*M:J/z*M*-1)+"px":"0px"};
_.P.getSimpleText=function(M){return M?_.CD(M):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var M=this.cropOffsetTop/this.imageHeight,z=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,J=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,R=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.SN(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Pv(this.hostElement,"yt-img-crop-coordinates-update",{top:M,right:z,bottom:J,left:R})}};
_.rX.Object.defineProperties(zg.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.e9(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.e9(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.e9(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.e9(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var M,z=(M=this.learnMore.runs[0])==null?void 0:M.navigationEndpoint,J;return((J=_.G(z,_.af))==null?void 0:J.url)||void 0}}}});
zg.prototype.onImageDataChange=zg.prototype.onImageDataChange;_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"imageData",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"instruction",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"a11yConfig",void 0);_.u([_.Y(),_.W("design:type",Number)],zg.prototype,"imageWidth",void 0);_.u([_.Y(),_.W("design:type",Number)],zg.prototype,"imageHeight",void 0);_.u([_.Y(),_.W("design:type",Number)],zg.prototype,"displayScale",void 0);
_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"imageDisplayOffsetTop",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"imageDisplayOffsetLeft",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"pickerDisplayOffsetTop",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"pickerDisplayOffsetLeft",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"cropCoordinatesSaved",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"previewSize",void 0);
_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"startPicker",void 0);_.u([_.Y(),_.W("design:type",Number)],zg.prototype,"pickerOffsetX",void 0);_.u([_.Y(),_.W("design:type",Number)],zg.prototype,"pickerOffsetY",void 0);_.u([_.Y(),_.W("design:type",Object)],zg.prototype,"repositionOptional",void 0);_.u([_.Qc("#picker-container"),_.W("design:type",HTMLElement)],zg.prototype,"JSC$15572_pickerContainer",void 0);_.u([_.Qc("#picker"),_.W("design:type",HTMLElement)],zg.prototype,"picker",void 0);
_.u([_.Qc("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],zg.prototype,"JSC$15572_imageInBackground",void 0);_.u([_.Qc("#image-in-picker"),_.W("design:type",HTMLImageElement)],zg.prototype,"JSC$15572_imageInPicker",void 0);_.u([_.Qc("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],zg.prototype,"JSC$15572_imageInPreviewClipper",void 0);_.u([_.Qc("#full-image-as-preview"),_.W("design:type",HTMLImageElement)],zg.prototype,"imageAsPreview",void 0);
_.u([_.F("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"altLabelForImage",null);_.u([_.F("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],zg.prototype,"pickerSize",null);_.u([_.F("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],zg.prototype,"imageOrientationStyle",null);
_.u([_.F("instruction.previewInstruction.editButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],zg.prototype,"editButton",null);_.u([_.F("instruction.editInstruction.saveButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],zg.prototype,"saveButton",null);_.u([_.F("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],zg.prototype,"cropOffsetTop",null);
_.u([_.F("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],zg.prototype,"cropOffsetLeft",null);_.u([_.F("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"pickerBackgroundStyle",null);_.u([_.F("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"pickerDisplayStyle",null);
_.u([_.F("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"imageInPickerStyle",null);_.u([_.F("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"previewClipperStyle",null);_.u([_.la("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zg.prototype,"onImageDataChange",null);
_.u([_.F("cropCoordinatesSaved"),_.W("design:type",String),_.W("design:paramtypes",[])],zg.prototype,"pickerModeStyle",null);_.u([_.F("instruction.editInstruction.learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],zg.prototype,"learnMore",null);_.u([_.F("learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],zg.prototype,"learnMoreUrl",null);_.u([_.cU({is:"yt-img-crop-picker",disableElementRegistration:!0})],zg);
_.d(zg,"yt-img-crop-picker",function(){if(TO$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;O$B===void 0&&(O$B=document.createElement("template"));var R=O$B;J.call(z,R.content.cloneNode(!0),M.content.firstChild);TO$=M}M=TO$;return M},{mode:2});var JC=function(){var M=_.g.apply(this,arguments)||this;M.errorMessage="";M.hasPreview=!1;M.isBackstagePost=!1;M.dismissButtonOverrides={size:"XS"};return M};
_.w(JC,_.g);_.P=JC.prototype;_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.detached=function(){this.removeOverlay()};
_.P.setPreview=function(M){_.SN(this.hostElement).querySelector("#preview-picker").imageData=M;this.hasPreview=!0;_.Pv(this.hostElement,"yt-backstage-image-select-preview")};
_.P.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var M=_.SN(this.hostElement).querySelector("#dropzone");M.classList.remove("dragover");M.classList.remove("error");_.Pv(this.hostElement,"yt-backstage-image-select-cancel")};
_.P.setupOverlay=function(){var M=this.imageUploadEndpoint;this.removeOverlay();if(M&&M.imageValidationInfo){var z=_.SN(this.hostElement).querySelector("#dropzone"),J=_.SN(this.hostElement).querySelector("#select");this.overlay=new Jm(M.uploadUrl,M.channelId,M.imageValidationInfo.maxFileSizeMb,M.imageValidationInfo.allowedMaxAspectRatio,z,J,!0);_.YS(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.YS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.YS(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.YS(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.YS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.P.removeOverlay=function(){this.overlay&&(_.tQ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.tQ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.tQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.tQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.tQ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.P.onDragOver=function(M){var z=_.SN(this.hostElement).querySelector("#dropzone");_.kz(z,"dragover",M.value)};
_.P.onPreview=function(M){this.setPreview(M.value)};
_.P.onImageError=function(M){if(M.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var z;M=(z=this.data)==null?void 0:z.fileSizeError}else if(M.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var J;M=(J=this.data)==null?void 0:J.invalidError}else if(M.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var R;M=(R=this.data)==null?void 0:R.invalidAspectRatioError}else return;this.errorMessage=_.CD(M);_.SN(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.P.onImageAlert=function(M){this.onImageError(M)};
_.P.uploadPromise=function(){var M=this,z=this.overlay&&this.overlay.uploadPromise();if(z)return z.catch(function(){throw Error(M.data?_.CD(M.data.uploadFailureError):"");})};
_.rX.Object.defineProperties(JC.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,z;if((M=this.data)==null?0:(z=M.icon)==null?0:z.iconType)return _.oE(this.data.icon.iconType)}}});
JC.prototype.setupOverlay=JC.prototype.setupOverlay;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],JC.prototype,"rendererStamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JC.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],JC.prototype,"imageUploadEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],JC.prototype,"errorMessage",void 0);
_.u([_.Y(),_.W("design:type",Jm)],JC.prototype,"overlay",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],JC.prototype,"hasPreview",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],JC.prototype,"isBackstagePost",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],JC.prototype,"selectionCancel",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],JC.prototype,"previewCancel",null);
_.u([_.F("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],JC.prototype,"icon",null);_.u([_.Y(),_.W("design:type",Object)],JC.prototype,"dismissButtonOverrides",void 0);_.u([_.la("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JC.prototype,"setupOverlay",null);_.u([_.c({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],JC);
_.d(JC,"ytd-backstage-image-select-renderer",function(){if(k7g!==void 0)return k7g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return k7g=M},{mode:1});var IYS;var oLk;var R8=function(){var M=_.g.apply(this,arguments)||this;M.selected=!1;return M};
_.w(R8,_.g);_.P=R8.prototype;_.P.computeSelected=function(M){return M==null?void 0:M.selected};
_.P.computeTransform=function(M,z,J){var R,D,N=(D=(R=this.imageContainer)==null?void 0:R.getBoundingClientRect())!=null?D:{width:0,height:0};R=Math.max(N.width/z,N.height/J);J=J*R*M.top;return"translateX("+this.getSignedPosition(z*R*M.left,"X","-")+") translateY("+this.getSignedPosition(J,"Y","-")+")"};
_.P.getSignedPosition=function(M,z,J){return z==="X"&&_.HW("HTML_DIR")==="rtl"?J==="-"?M+"px":M*-1+"px":J==="-"?M*-1+"px":M+"px"};
_.P.onClick=function(){var M;_.Pv(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(M=this.data)==null?void 0:M.image)};
_.P.onKeyPress=function(M){if(M.keyCode===13)this.onClick()};
_.rX.Object.defineProperties(R8.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.image)==null?void 0:z.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.image){var z;M=(z=this.data)==null?void 0:z.image;return M.previewCoordinates.top!==0||M.previewCoordinates.left!==0?(z=this.computeTransform(M.previewCoordinates,M.naturalWidth,M.naturalHeight),M.naturalHeight>=M.naturalWidth?"width:inherit;transform:"+z+";":"height:inherit;transform:"+z+";"):M.naturalHeight>=M.naturalWidth?"width:inherit;":"height:inherit;"}}}});
R8.prototype.onKeyPress=R8.prototype.onKeyPress;_.u([_.Qc(".image-container"),_.W("design:type",HTMLElement)],R8.prototype,"imageContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],R8.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.W("design:type",Object)],R8.prototype,"selected",void 0);_.u([_.F("data.image"),_.W("design:type",Object),_.W("design:paramtypes",[])],R8.prototype,"thumbnailUrl",null);
_.u([_.F("data.image","data.image.previewCoordinates"),_.W("design:type",Object),_.W("design:paramtypes",[])],R8.prototype,"thumbnailStyle",null);_.u([_.Xw("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],R8.prototype,"onKeyPress",null);_.u([_.c({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],R8);
_.d(R8,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(oLk!==void 0)return oLk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oLk=M},{mode:2});var Dq=function(M,z,J){J=J===void 0?!1:J;_.jB.call(this);var R=this;this.dropZoneOverlay=new eO(M);this.selectOverlay=J?new Qz(z,"multiple_file",["image/*"]):new Qz(z,"single_file",["image/*"]);this.handler=new _.Ps(this);_.OC(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(z,"click",function(){R.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.w(Dq,_.jB);Dq.prototype.onChange=function(M){var z;(z=M.files)!=null&&z.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:M.files}))};var NO=function(){var M=_.g.apply(this,arguments)||this;M.addImageErrorMessage="";M.errorMessage="";M.images=[];M.selectedImageIndex=0;M.modern=_.U("web_modern_buttons");M.maxNumImagesPerPost=_.NC("max_num_images_per_post_web_ui");M.JSC$15587_imageId=0;return M};
_.w(NO,_.g);_.P=NO.prototype;_.P.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Pv(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.P.observeDragToReorder=function(){var M=this;if(this.showImagesPreview){var z,J=xVS(_.k5.getInstance(),(z=this.data)==null?void 0:z.dragToReorderTooltip);_.no.addLowPriorityJob(function(){_.Bv(M.hostElement,J,M.thumbnailDragDropArea)})}};
_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.P.computeThumbnail=function(M){return(M==null?void 0:M.localImageSrc)||void 0};
_.P.onRendererstamperFinished=function(){_.oMQ(this.ytReorderableBehavior,_.SN(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.SN(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.P.handleDrop=function(M){var z=M.currDragItem;if(z!=null&&z.data){M=this.images[this.selectedImageIndex];var J=z.data.image,R=this.images.indexOf(J)||0;z=_.HY(z.parentNode.children,z);this.images.splice(R,1);this.images.splice(z,0,J);this.images=[].concat(_.Yj(this.images));this.selectedImageIndex=this.images.indexOf(M)}};
_.P.setUpImagePicker=function(){var M=this.imageUploadEndpoint;M&&M.imageValidationInfo&&(this.uploadManager=new bL(M.uploadUrl,M.channelId),this.initialPicker||(this.initialPicker=new Dq(this.dropzone,this.selectLink,!0),_.YS(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Dq(this.addImageButtonContainer,this.addImageSelectButton),_.YS(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.YS(this.JSC$15587_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.YS(this.JSC$15587_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.YS(_.SN(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.P.detached=function(){this.initialPicker&&(_.tQ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.tQ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.P.onInitialSelectImages=function(M){var z=this;return _.k(function(J){return J.yield(z.onSelectImages(M,!1),0)})};
_.P.onAddImage=function(M){var z=this;return _.k(function(J){return J.yield(z.onSelectImages(M,!0),0)})};
_.P.onSelectImages=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L;return _.k(function(z8){switch(z8.nextAddress){case 1:z?J.addImageErrorMessage="":(J.images=[],J.errorMessage="");R=M.detail;D=J.validateImages([].concat(_.Yj(R)));if(D!=="")return z?J.addImageErrorMessage=D:J.errorMessage=D,z8.return();N=[].concat(_.Yj(R)).map(function(O8){return(new MJ(J.maxAspectRatio,!1,!0)).transform(O8)});
return z8.yield(Promise.allSettled(N),2);case 2:Z=z8.yieldResult,B=_.S(Z.entries()),O=B.next();case 3:if(O.done){z8.jumpTo(5);break}X=O.value;l=_.S(X);e=l.next().value;Q=l.next().value;v=e;x=Q;if(x.status!=="fulfilled"){H=y=m=void 0;z?J.addImageErrorMessage=_.CD((m=J.data)==null?void 0:m.invalidError):J.errorMessage=J.errorMessage===""?_.CD((y=J.data)==null?void 0:y.invalidError):_.CD((H=J.data)==null?void 0:H.multiFileError);z8.jumpTo(4);break}q=x.value;q.cropped&&_.Pv(J.hostElement,"yt-backstage-multi-image-cropped");
if(q.invalidAspectRatio){E=V=b=void 0;z?J.addImageErrorMessage=_.CD((b=J.data)==null?void 0:b.invalidAspectRatioError):J.errorMessage=J.errorMessage===""?_.CD((V=J.data)==null?void 0:V.invalidAspectRatioError):_.CD((E=J.data)==null?void 0:E.multiFileError);z8.jumpTo(4);break}return z8.yield(N7w(J.JSC$15587_imageId,M.detail[v],q.transformedData),8);case 8:L=z8.yieldResult,J.images.push(L),J.JSC$15587_imageId++;case 4:O=B.next();z8.jumpTo(3);break;case 5:if(J.errorMessage!==""||J.addImageErrorMessage!==
"")return z8.return();z?zaS(J.uploadManager,[J.images[J.images.length-1]]):zaS(J.uploadManager,J.images);J.images=[].concat(_.Yj(J.images));J.selectedImageIndex=z?Math.max(J.images.length-1,0):0;_.Pv(J.hostElement,"yt-backstage-multi-image-select");_.UI(z8)}})};
_.P.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.P.validateImages=function(M){if(M.length>this.maxNumImagesPerPost){var z;return _.CD((z=this.data)==null?void 0:z.multiImageExceedMaxImageCountError)}var J=1048576*this.maxFileSizeMb;M=M.filter(function(N){return N.size>J}).length;
if(M===0)return"";var R,D;M=M>1?(R=this.data)==null?void 0:R.multiFileError:(D=this.data)==null?void 0:D.fileSizeError;return _.CD(M)};
_.P.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Yj(this.images));this.selectedImageIndex=0};
_.P.repositionImage=function(M){this.images[this.selectedImageIndex].previewCoordinates=M.event_.detail;this.images=[].concat(_.Yj(this.images))};
_.P.getAllUploadStatuses=function(){var M=this,z,J,R,D;return _.k(function(N){if(N.nextAddress==1)return N.yield(M.uploadManager.getAllUploadStatuses(),2);z=N.yieldResult;J=_.S(z);for(R=J.next();!R.done;R=J.next())if(D=R.value,D.encryptedBlobId===void 0)return N.return(JRV(M.uploadManager));return N.return(z)})};
_.P.hasImages=function(){return this.images.length>0};
_.P.cancel=function(){for(var M=this.uploadManager,z=_.S(M.imagesUploadData),J=z.next();!J.done;J=z.next())M.cancel(J.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Pv(this.hostElement,"yt-backstage-multi-image-cancel")};
_.rX.Object.defineProperties(NO.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.imageUploadEndpoint)==null?void 0:(z=M.imageValidationInfo)==null?void 0:z.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.imageUploadEndpoint)==null?void 0:(z=M.imageValidationInfo)==null?void 0:z.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var M,z;if((M=this.data)==null?0:(z=M.icon)==null?0:z.iconType)return _.oE(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(z,J){return{renderer:{image:z,selected:J===M.selectedImageIndex}}})}}});
NO.prototype.setUpImagePicker=NO.prototype.setUpImagePicker;NO.prototype.onRendererstamperFinished=NO.prototype.onRendererstamperFinished;NO.prototype.observeDragToReorder=NO.prototype.observeDragToReorder;NO.prototype.observeAddImageError=NO.prototype.observeAddImageError;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NO.prototype,"rendererStamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.X$p),_.W("design:type",Object)],NO.prototype,"ytReorderableBehavior",void 0);_.u([_.Qc("#dropzone"),_.W("design:type",HTMLElement)],NO.prototype,"dropzone",void 0);_.u([_.Qc("#select-link"),_.W("design:type",HTMLElement)],NO.prototype,"selectLink",void 0);_.u([_.Qc("#thumbnail-drag-drop-area"),_.W("design:type",HTMLElement)],NO.prototype,"thumbnailDragDropArea",void 0);_.u([_.Qc("#add-image-button-container"),_.W("design:type",HTMLElement)],NO.prototype,"addImageButtonContainer",void 0);
_.u([_.Qc("#add-image-button"),_.W("design:type",HTMLElement)],NO.prototype,"addImageSelectButton",void 0);_.u([_.Qc("#image-preview-container"),_.W("design:type",Object)],NO.prototype,"JSC$15587_imagePreviewContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],NO.prototype,"addImageErrorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],NO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],NO.prototype,"errorMessage",void 0);
_.u([_.Y(),_.W("design:type",Object)],NO.prototype,"imageUploadEndpoint",void 0);_.u([_.Y(),_.W("design:type",Array)],NO.prototype,"images",void 0);_.u([_.Y(),_.W("design:type",Dq)],NO.prototype,"initialPicker",void 0);_.u([_.Y(),_.W("design:type",Dq)],NO.prototype,"addImagePicker",void 0);_.u([_.Y(),_.W("design:type",bL)],NO.prototype,"uploadManager",void 0);_.u([_.Y(),_.W("design:type",Object)],NO.prototype,"selectedImageIndex",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NO.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NO.prototype,"maxNumImagesPerPost",void 0);_.u([_.F("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],NO.prototype,"maxAspectRatio",null);_.u([_.F("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],NO.prototype,"maxFileSizeMb",null);
_.u([_.F("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],NO.prototype,"dropIcon",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NO.prototype,"selectionCancel",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NO.prototype,"previewCancel",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NO.prototype,"dataForAddImageButton",null);
_.u([_.F("errorMessage"),_.W("design:type",String),_.W("design:paramtypes",[])],NO.prototype,"dropzoneClass",null);_.u([_.F("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NO.prototype,"showImagesPreview",null);_.u([_.F("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NO.prototype,"containMaxImages",null);_.u([_.la("addImageErrorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"observeAddImageError",null);
_.u([_.la("showImagesPreview"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"observeDragToReorder",null);_.u([_.F("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],NO.prototype,"selectedImageData",null);_.u([_.F("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],NO.prototype,"thumbnailRenderers",null);
_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"onRendererstamperFinished",null);_.u([_.la("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"setUpImagePicker",null);_.u([_.c({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],NO);
_.d(NO,"ytd-backstage-multi-image-select-renderer",function(){if(IYS!==void 0)return IYS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return IYS=M},{mode:1});var XzQ;var lYQ;var eaa;var Pe=function(){var M=_.g.apply(this,arguments)||this;M.boundCaptureFocus=function(z){M.onCaptureFocus(z)};
return M};
_.w(Pe,_.g);_.P=Pe.prototype;_.P.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.P.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.P.onCaptureFocus=function(M){_.CX(M).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.P.getIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.P.onSelect=function(){var M;if((M=this.data)==null?0:M.onSelectCommand)if(_.U("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var z;((z=_.G(this.data.onSelectCommand.commandMetadata,_.X9))==null?0:z.url)?_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.JF().resolve(_.Rb).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.rX.Object.defineProperties(Pe.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.CD(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}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Pe.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Pe.prototype,"data",void 0);_.u([_.Qc("#item"),_.W("design:type",HTMLElement)],Pe.prototype,"item",void 0);_.u([_.F("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],Pe.prototype,"label",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Pe.prototype,"value",null);_.u([_.c({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Pe);
_.d(Pe,"ytd-privacy-dropdown-item-renderer",function(){if(eaa!==void 0)return eaa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return eaa=M},{mode:1});var SG=function(){var M=_.g.apply(this,arguments)||this;M.value="";M.label="";M.disabled=!1;return M};
_.w(SG,_.g);_.P=SG.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.P.dataChanged=function(){this.reset()};
_.P.valueChanged=function(){var M;if(this.value&&(M=this.data)!=null&&M.entries){M=_.S(this.data.entries);for(var z=M.next();!z.done;z=M.next())if((z=this.getRendererForEntry(z.value))&&this.getItemRendererValue(z)===this.value){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}}};
_.P.setInitialLabel=function(){if(this.data&&this.data.entries)for(var M=_.S(this.data.entries),z=M.next();!z.done;z=M.next())if(z=this.getRendererForEntry(z.value)){if(z.isSelected){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}this.data.label&&(this.label=this.data.label)}};
_.P.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var M=_.S(this.data.entries),z=M.next();!z.done;z=M.next()){z=this.getRendererForEntry(z.value);var J=void 0;if((J=z)==null?0:J.isSelected)return this.getItemRendererValue(z)||-1}return-1};
_.P.getItemRendererValue=function(M){return"stringValue"in M||"int32Value"in M?M.stringValue||M.int32Value||null:null};
_.P.getRendererForEntry=function(M){return M.dropdownItemRenderer||M.privacyDropdownItemRenderer||M.navigationDropdownItemRenderer||null};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("value-changed",this.value))};
_.P.updateValueFromBinding=function(M){this.value=M.detail.value};
SG.prototype.valueChangedForBinding=SG.prototype.valueChangedForBinding;SG.prototype.valueChanged=SG.prototype.valueChanged;SG.prototype.dataChanged=SG.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],SG.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],SG.prototype,"value",void 0);_.u([_.Y(),_.W("design:type",Object)],SG.prototype,"label",void 0);_.u([_.Qc("#entries"),_.W("design:type",Object)],SG.prototype,"entries",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],SG.prototype,"disabled",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SG.prototype,"dataChanged",null);
_.u([_.wH("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SG.prototype,"valueChanged",null);_.u([_.la("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SG.prototype,"valueChangedForBinding",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],SG);
_.d(SG,"ytd-flat-dropdown-renderer",function(){if(lYQ!==void 0)return lYQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return lYQ=M},{mode:1});var Q0$;var Zq=function(){var M=_.g.apply(this,arguments)||this;M.quizOptions=[];M.explanationPlaceholderText="";M.optionPlaceholderText="";M.correctAnswerIndex=-1;M.isMarkAnswerTooltipShown=!1;M.timer=0;return M};
_.w(Zq,_.g);_.P=Zq.prototype;_.P.dataChanged=function(){this.optionPlaceholderText=_.CD(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.CD(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.P.onMarkCorrectAnswer=function(M){var z,J=((z=this.quizOptions[this.correctAnswerIndex])==null?void 0:z.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[M.model.index]=Object.assign({},this.quizOptions[M.model.index],{explanationText:J,isCorrect:!0});this.correctAnswerIndex=M.model.index;this.quizOptions=[].concat(_.Yj(this.quizOptions))};
_.P.updatePlaceholderTexts=function(){for(var M=!1,z=[],J=0;J<this.quizOptions.length;J++){var R=this.optionPlaceholderText+" "+(J+1),D=void 0;((D=this.quizOptions[J])==null?void 0:D.placeholderText)!==R?(M=!0,z.push(Object.assign({},this.quizOptions[J],{placeholderText:R}))):z.push(this.quizOptions[J])}M&&(this.quizOptions=z);this.isValid()?_.Pv(this.hostElement,"yt-commentbox-post-enable"):_.Pv(this.hostElement,"yt-commentbox-post-disable")};
_.P.getSimpleString=function(M){return _.CD(M)};
_.P.createQuizOptions=function(M){var z=[],J;M=(J=M==null?void 0:M.minQuizOptions)!=null?J:0;for(J=0;J<M;J++)z.push(this.createQuizOption());return z};
_.P.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Yj(this.quizOptions),[this.createQuizOption()]))};
_.P.onInput=function(){this.quizOptions=[].concat(_.Yj(this.quizOptions))};
_.P.onExplanationInput=function(){_.Pv(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.P.onRemoveQuizOption=function(M){this.quizOptions.splice(M.model.index,1);M.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:M.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Yj(this.quizOptions));this.quizOptions.length===0&&_.Pv(this.hostElement,"yt-quiz-attachment-dismiss")};
_.P.updateHintRenderer=function(){var M=this;clearTimeout(this.timer);this.timer=setTimeout(function(){M.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.P.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var M=0,z=0,J=_.S(this.quizOptions),R=J.next();!R.done;R=J.next()){R=R.value;var D=void 0;if(((D=R.optionText)==null?void 0:D.trim())!==""||R.isCorrect){R.isCorrect&&z++;D=void 0;if(this.hasCustomOptionText&&((D=R.optionText)==null?void 0:D.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;M++}}return M>=
Number(this.editorInfo.minQuizOptions)&&z===1};
_.P.getPostCreateOptions=function(){for(var M=[],z=_.S(this.quizOptions),J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;((R=J.optionText)==null?void 0:R.trim())!==""&&M.push({pollOption:{text:J.optionText,explanation:J.explanationText},isCorrect:J.isCorrect})}return M};
_.P.getExplanationText=function(){var M;return((M=this.quizOptions[this.correctAnswerIndex])==null?void 0:M.explanationText)||""};
_.P.maybeDisplayMarkAnswerEduToolTip=function(){var M,z,J,R,D,N,Z;this.shouldShowMarkAnswerTooltip()&&((M=this.editorInfo)==null?0:(z=M.markAnswerButton)==null?0:(J=z.buttonRenderer)==null?0:(R=J.hint)==null?0:(D=R.hintRenderer)==null?0:(N=D.content)==null?0:(Z=N.bubbleHintRenderer)==null?0:Z.text)&&(_.k5.getInstance(),M=Ba(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(M==null?void 0:M.length)>0&&this.optionSelectors&&_.e5(M[0],this.optionSelectors[0]))};
_.P.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var M=0,z=_.S(this.quizOptions),J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;((R=J.optionText)==null?void 0:R.trim())!==""&&M++;if(J.isCorrect)return!1}return M<2?!1:!0};
_.P.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.P.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.P.updateOptionTextFromBinding=function(M){if(M.target){var z=Array.from(_.SN(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(M.target);if(z>=0){var J;this.quizOptions[z].optionText=(J=M.detail.value)!=null?J:""}}};
_.rX.Object.defineProperties(Zq.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.editorInfo)==null?void 0:(z=M.addOptionButton)==null?void 0:z.buttonRenderer;J&&(J.style="STYLE_SUGGESTIVE",J.size="SIZE_SMALL",J.isDisabled=!this.isAllowedToAddOption);return(J==null?0:J.text)?J:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.quizOptions.length<((z=(M=this.editorInfo)==null?void 0:M.maxQuizOptions)!=null?z:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(M){var z;return(z=M.optionText)==null?void 0:z.trim()})}}});
Zq.prototype.updatePlaceholderTexts=Zq.prototype.updatePlaceholderTexts;Zq.prototype.dataChanged=Zq.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],Zq.prototype,"editorInfo",void 0);_.u([_.Y(),_.W("design:type",Array)],Zq.prototype,"quizOptions",void 0);_.u([_.Y(),_.W("design:type",Object)],Zq.prototype,"explanationPlaceholderText",void 0);_.u([_.UV(".option-selector-button"),_.W("design:type",Array)],Zq.prototype,"optionSelectors",void 0);
_.u([_.wH("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zq.prototype,"dataChanged",null);_.u([_.F("editorInfo","isAllowedToAddOption","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Zq.prototype,"addAnswerButton",null);_.u([_.F("editorInfo","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Zq.prototype,"isAllowedToAddOption",null);
_.u([_.wH("quizOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zq.prototype,"updatePlaceholderTexts",null);_.u([_.F("quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Zq.prototype,"hasCustomOptionText",null);_.u([_.c({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Zq);
_.d(Zq,"ytd-backstage-quiz-editor-renderer",function(){if(Q0$!==void 0)return Q0$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Q0$=M},{mode:2});var UQB;var vL$=(Um.FIRSTDAYOFWEEK+1)%7;var G7a;var wzg=[],xQ$=0,tV2=0;xQ$=0;tV2=24;if(.25*(tV2-xQ$)<0)G7a=[];else{for(var j0J=xQ$;j0J<tV2;j0J+=.25)wzg.push(j0J);G7a=wzg}var pzQ=G7a.map(function(M){M=M*60*60;return{secondsSinceMidnight:M,text:(new LD(7)).format(new Date(0,0,0,0,0,M))}});var FIV;var kx=function(){var M=_.g.apply(this,arguments)||this;M.skipNextOpenDialog=!1;M.errorMessage="";M.previousMonthLabel=_.e9("PREVIOUS_MONTH_LABEL");M.nextMonthLabel=_.e9("NEXT_MONTH_LABEL");return M};
_.w(kx,_.g);_.P=kx.prototype;_.P.attached=function(){var M=this,z=new MutationObserver(function(){M.JSC$15630_calendarMain.scrollHeight>0&&(z.disconnect(),M.calendarConfig&&M.calendarConfig.selectedDate&&M.scrollToDate())});
z.observe(this.JSC$15630_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){z.disconnect()},1E3)};
_.P.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.P.onDateTextChange=function(){if(this.calendarConfig){var M=this.validateDateText();M.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(M.details)):this.textbox.setAttribute("invalid","")}};
_.P.handleDayClick=function(M){M.model.day.date&&(this.commitDate(M.model.day.date),this.dialog.close())};
_.P.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var M=lew(this.calendarConfig.selectedDate,this.renderData);M!==void 0&&this.JSC$15630_calendarMain.scrollToIndex(M)}};
_.P.scrollToNextMonth=function(){this.JSC$15630_calendarMain.scrollToIndex(this.JSC$15630_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$15630_calendarMain.firstVisibleIndex===0&&this.JSC$15630_calendarMain.scrollTo(0,0);this.JSC$15630_calendarMain.scrollToIndex(this.JSC$15630_calendarMain.firstVisibleIndex-1)};
_.P.onFormSubmit=function(M){M.preventDefault();this.calendarConfig&&(M=this.validateDateText(),M.isValid&&(this.commitDate(M.details),this.dialog.close()))};
_.P.onEscOrClickingOutside=function(M){M=M.detail.path&&!!M.detail.path.length&&M.detail.path[0];if(M.classList.contains("ytd-calendar-date-picker")){M===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var z=0;z<this.dropdownButton.children.length;z++)this.dropdownButton.children[z]===M&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}M=this.textbox.value!==this.dateText;z=this.validateDateText();M&&z.isValid&&this.commitDate(z.details);this.dialog.close();this.textbox.value=
this.dateText};
_.P.commitDate=function(M){this.calendarConfig&&(this.set("calendarConfig.selectedDate",M),_.Pv(this.hostElement,"ytd-calendar-date-selected",M))};
_.P.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var M=this.textbox.value;var z=new Date;M=(new HGp(2)).parse(M,z,{validate:!0})===M.length?ouo(z):void 0;if(!M)return this.errorMessage=_.e9("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};z=this.calendarConfig.start;var J=this.calendarConfig.end;if(k9e(M,z))return this.errorMessage=_.e9("ENTER_DATE_OR_LATER",{allowed_date:Ie8(z)}),{isValid:!1,details:void 0};if(k9e(J,M))return this.errorMessage=
_.e9("ENTER_DATE_OR_EARLIER",{allowed_date:Ie8(J)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:M}};
_.rX.Object.defineProperties(kx.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Ie8(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var M=this.calendarConfig,z=[],J=0;J<7;J++)z.push(Um.NARROWWEEKDAYS[(J+vL$)%7]);J=[];for(var R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var D=J,N=D.push,Z=R.getFullYear(),B=R.getMonth(),O=M,X=void 0,l=[],e=Object.freeze({extraCssClass:"invisible",debugClass:""}),Q=new Date(Z,B),v=ouo(Q);Q=Q.getDay();for(var x=ouo(new Date);v.month===
B;){Q!==vL$&&X||(X=Array.from({length:7}).fill(e),l.push(X));var m={date:{year:Z,month:B,day:v.day},extraCssClass:"",debugClass:""};O.selectedDate&&m.date&&ZGY(m.date,O.selectedDate)&&(m.extraCssClass+=" selected");if(k9e(v,O.start)||k9e(O.end,v))m.extraCssClass+=" disabled";ZGY(v,x)&&(m.extraCssClass+=" today");m.extraCssClass=m.extraCssClass.trim();X[(Q-vL$+7)%7]=m;v=OGG(v);Q=(Q+1)%7}N.call(D,{weeks:l,monthLabel:Um.SHORTMONTHS[B]+" "+Z,year:Z,month:B,monthLabelExtraCssClass:l[0][2]===e?"shift-down-label":
""});R.setMonth(R.getMonth()+1)}return{months:J,daysOfWeekLabel:z}}}}});
kx.prototype.onEscOrClickingOutside=kx.prototype.onEscOrClickingOutside;kx.prototype.scrollToDate=kx.prototype.scrollToDate;_.u([_.Y(),_.W("design:type",Object)],kx.prototype,"calendarConfig",void 0);_.u([_.Y(),_.W("design:type",Object)],kx.prototype,"skipNextOpenDialog",void 0);_.u([_.Y(),_.W("design:type",Object)],kx.prototype,"errorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],kx.prototype,"previousMonthLabel",void 0);
_.u([_.Y(),_.W("design:type",Object)],kx.prototype,"nextMonthLabel",void 0);_.u([_.Qc("#textbox"),_.W("design:type",HTMLInputElement)],kx.prototype,"textbox",void 0);_.u([_.Qc("#calendar-dialog"),_.W("design:type",Object)],kx.prototype,"dialog",void 0);_.u([_.Qc("#calendar-main"),_.W("design:type",Object)],kx.prototype,"JSC$15630_calendarMain",void 0);_.u([_.Qc("#date-picker"),_.W("design:type",HTMLElement)],kx.prototype,"dropdownButton",void 0);
_.u([_.F("calendarConfig.selectedDate"),_.W("design:type",String),_.W("design:paramtypes",[])],kx.prototype,"dateText",null);_.u([_.F("calendarConfig","calendarConfig.selectedDate"),_.W("design:type",Object),_.W("design:paramtypes",[])],kx.prototype,"renderData",null);_.u([_.la("renderData","calendarConfig.selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kx.prototype,"scrollToDate",null);
_.u([_.Xw("iron-overlay-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kx.prototype,"onEscOrClickingOutside",null);_.u([_.cU({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],kx);
_.d(kx,"ytd-calendar-date-picker",function(){if(FIV!==void 0)return FIV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return FIV=M},{mode:2});var YiV=_.e9("UTC_OFFSET_FORMAT",{utc_offset:(new LD("Z")).format(new Date)}),mQ$=(new Date).getTimezoneOffset()*-60,gLu=new Date,s0g,nLS=fD(gLu.getTimezoneOffset());s0g=IE2(XU$(nLS,gLu));var ha$=_.e9("LOCAL_TIME_GMT_LABEL",{gmt_text:s0g.replace("+0","+").replace("-0","-").replace(":00","")}),Be=function(){var M=_.g.apply(this,arguments)||this;M.selectedTimeIndex=0;M.selectedTimezoneIndex=0;M.timeOfDayOptions=pzQ;return M};
_.w(Be,_.g);_.P=Be.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var M=T78();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=M,this.selectedTimeIndex=0;else{var z=XTo(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},M,{selectedDate:z.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(J){return J.secondsSinceMidnight===z.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.P.onDatePicked=function(M){this.selectedDate=M.detail};
_.P.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Pv(this.hostElement,"ytd-date-time-selection-cancelled")};
_.P.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var M=this.selectedDate;M=new Date(M.year,M.month,M.day);_.Pv(this.hostElement,"ytd-date-time-selection-update",Math.floor(M.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+M.getTimezoneOffset()*60))}};
_.P.getTimezoneFormat=function(M){return M.localizedDisplayText?M.localizedDisplayText:_.e9("TIMEZONE_FORMAT",{utc_offset_text:""+M.localizedUtcOffset,city_name:""+M.localizedName})};
_.P.updateSelectedTimeIndexFromBinding=function(M){this.selectedTimeIndex=M.detail.value};
_.P.updateSelectedTimezoneIndexFromBinding=function(M){this.selectedTimezoneIndex=M.detail.value};
_.rX.Object.defineProperties(Be.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data.timezoneOptions;var z={name:"Etc/Unknown",localizedName:_.e9("LOCAL_TIME_LABEL"),localizedUtcOffset:YiV,utcOffsetSec:""+mQ$,localizedDisplayText:ha$};M?M.length&&M[0].name!==z.name&&(M[0].localizedDisplayText||(z.localizedDisplayText=""),M.unshift(z)):M=[z];return M}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
Be.prototype.onDateTimeTimezoneChange=Be.prototype.onDateTimeTimezoneChange;Be.prototype.onDatePicked=Be.prototype.onDatePicked;Be.prototype.updateDefaultSelectedValue=Be.prototype.updateDefaultSelectedValue;_.u([_.Y(),_.W("design:type",Object)],Be.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Be.prototype,"calendarConfig",void 0);_.u([_.Y(),_.W("design:type",Object)],Be.prototype,"selectedDate",void 0);_.u([_.Y(),_.W("design:type",Object)],Be.prototype,"selectedTimeIndex",void 0);
_.u([_.Y(),_.W("design:type",Object)],Be.prototype,"selectedTimezoneIndex",void 0);_.u([_.Qc("#time-listbox"),_.W("design:type",Object)],Be.prototype,"timeListBox",void 0);_.u([_.Qc("#timezone-listbox"),_.W("design:type",Object)],Be.prototype,"timezoneListBox",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Be.prototype,"rendererStamperBehavior",void 0);_.u([_.F("data.timezoneOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Be.prototype,"timeZones",null);
_.u([_.wH("data","timeZones"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Be.prototype,"updateDefaultSelectedValue",null);_.u([_.F("selectedTimezoneIndex","timeZones"),_.W("design:type",Object),_.W("design:paramtypes",[])],Be.prototype,"selectedTimezone",null);_.u([_.F("selectedTimeIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],Be.prototype,"selectedTime",null);
_.u([_.Xw("ytd-calendar-date-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Be.prototype,"onDatePicked",null);_.u([_.la("selectedTimezone","selectedTime","selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Be.prototype,"onDateTimeTimezoneChange",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Be);
_.d(Be,"ytd-date-time-picker-renderer",function(){if(UQB!==void 0)return UQB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return UQB=M},{mode:1});var yRV;var OO=function(){var M=_.g.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.dismissTapHandler()};
M.dismissButtonOverrides={size:"XS"};return M};
_.w(OO,_.g);OO.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}}}}}};
OO.prototype.dismissTapHandler=function(){_.Pv(this.hostElement,"yt-backstage-attachment-dismissed")};
OO.prototype.computeAttachmentType=function(M){return M?M.backstageImageRenderer?"image":M.videoRenderer?"video":"none":"none"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OO.prototype,"attachmentPreview",void 0);_.u([_.Y(),_.W("design:type",Object)],OO.prototype,"dismissButton",void 0);_.u([_.Y(),_.W("design:type",Object)],OO.prototype,"boundOnTapDismissButton",void 0);
_.u([_.Y(),_.W("design:type",Object)],OO.prototype,"dismissButtonOverrides",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.W("design:type",String)],OO.prototype,"attachmentType",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],OO);
_.d(OO,"ytd-backstage-dismissable-attachment",function(){if(yRV!==void 0)return yRV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yRV=M},{mode:1});var H$Q;var Tg=function(){var M=_.g.apply(this,arguments)||this;M.selectedVideoId=void 0;M.picker=void 0;M.dismissButtonOverrides={size:"XS"};M.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return M};
_.w(Tg,_.g);_.P=Tg.prototype;_.P.onServiceRequestCompleted=function(M){M.stopPropagation()};
_.P.handleAddVideoPreviewAction=function(M){M=this.get("addVideoPreviewAction",M);this.onGetVideoPreviewSuccess(M)};
_.P.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.P.onLaunchVideoPicker=function(M){var z=this,J=_.CD(this.get("addVideoLinkAction.title",M)),R=this.get("addVideoLinkAction.onePickHostId",M);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",M);R&&(this.picker||(J=_.S7V(_.YS8(R).setTitle(J).addView(RV$()).addView(JFu()),function(D){z.onPickVideo(D)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",M)||J.addView("youtube"),this.picker=J.build()),this.picker.setVisible(!0))};
_.P.onPickVideo=function(M){if(M)if(M.action==="cancel")_.Pv(this.hostElement,"yt-video-link-button-cancel");else if(M.action==="picked"){M=M.docs;if(!M||M.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(M=(M==null?0:M.length)?M[0]:void 0)?M.id:void 0;this.setVideoPreview()}};
_.P.setVideoPreview=function(){var M=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){M.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.P.onGetVideoPreviewSuccess=function(M){if(M&&M.videoPreview&&M.cancelButton)this.videoPreview=M.videoPreview,this.cancelButton=M.cancelButton,_.Pv(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.P.onGetVideoPreviewError=function(){this.cancel()};
_.P.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Pv(this.hostElement,"yt-video-link-cancel")};
_.P.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Tg.prototype.onServiceRequestCompleted=Tg.prototype.onServiceRequestCompleted;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Tg.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Tg.prototype,"videoPreview",void 0);_.u([_.Y(),_.W("design:type",Object)],Tg.prototype,"cancelButton",void 0);_.u([_.Y(),_.W("design:type",Object)],Tg.prototype,"getVideoPreviewCommand",void 0);_.u([_.Y(),_.W("design:type",Object)],Tg.prototype,"dismissButtonOverrides",void 0);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Tg.prototype,"onServiceRequestCompleted",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Tg);
_.d(Tg,"ytd-backstage-video-link-attachment",function(){if(H$Q!==void 0)return H$Q;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return H$Q=M},{mode:1});var cRt;var dQu;var KIV;var I8=function(){return _.g.apply(this,arguments)||this};
_.w(I8,_.g);I8.prototype.dataChanged=function(){this.active=!1};
I8.prototype.onTap=function(){_.Pv(this.hostElement,"yt-select-emoji-suggestion",this.data)};
I8.prototype.identity=function(M){return M};
_.rX.Object.defineProperties(I8.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;if((M=this.data)==null?0:(z=M.image)==null?0:(J=z.thumbnails)==null?0:(R=J[0])==null?0:R.url)return M=this.data.image.thumbnails[0].url,M.startsWith("data:image/svg+xml")?p3(M):_.hr(M)}}});
I8.prototype.dataChanged=I8.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],I8.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],I8.prototype,"active",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I8.prototype,"dataChanged",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],I8.prototype,"imageSrc",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],I8);
_.d(I8,"ytd-emoji-suggestion",function(){if(KIV!==void 0)return KIV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return KIV=M},{mode:1});var $QJ=/.*([:@#].*?)$/,o8=function(){var M=_.g.apply(this,arguments)||this;M.suggestions=[];M.suggestionIndex=-1;M.JSC$15658_lastSuggestionRange=null;return M};
_.w(o8,_.g);_.P=o8.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.P.getSuggestions=function(M){var z=[],J=l6k(this.emojiManager,M.substr(0,3));if(J)for(var R in J)if(R.toLocaleLowerCase().indexOf(M)===0){var D=J[R];if(D&&D.emojiId){D=LE(this.emojiManager,D.emojiId);var N=void 0,Z=void 0,B=void 0,O=void 0,X=((N=D)==null?0:N.isCustomEmoji)?(Z=D)==null?void 0:(B=Z.shortcuts)==null?void 0:B[0]:(O=D)==null?void 0:O.emojiId;N=void 0;z.push({suggestion:{image:(N=D)==null?void 0:N.image,alt:X,text:R}});if(z.length>=64)break}}return z?z.sort(function(l,e){return e.suggestion.text<
l.suggestion.text?-1:e.suggestion.text===l.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(M){_.Pv(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15658_lastSuggestionRange,text:M.alt});this.dropdown.opened=!1};
_.P.updateSuggestionsAtCaret=function(M){this.updateSuggestions(M,this.retrieveTextBeforeRange(M))};
_.P.offsetStartOfRangeBy=function(M,z){M.startOffset>=z&&M.setStart(M.startContainer,M.startOffset-z)};
_.P.updateSuggestions=function(M,z){var J=this;this.JSC$15658_lastSuggestionRange&&(this.JSC$15658_lastSuggestionRange.detach(),this.JSC$15658_lastSuggestionRange=null);if((z=$QJ.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2||z===":_")&&(this.offsetStartOfRangeBy(M,z.length),this.JSC$15658_lastSuggestionRange=M,(M=this.getSuggestions(z))&&M.length)){this.suggestions=M;_.C4(this,function(){J.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.P.onKeyDown=function(M){if(this.dropdown.opened)switch(M.key){case "Escape":this.dropdown.opened=!1;M.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);M.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.P.onKeyUp=function(M,z){switch(M.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(z);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(z)}};
_.P.onKeyPress=function(M){M.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),M.preventDefault())};
_.P.changeSuggestionIndex=function(M){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(M+this.suggestions.length)%this.suggestions.length,M=this.dropdownContent.children[this.suggestionIndex],M.active=!0,this.dropdownContent.scrollTop=M.offsetTop)};
_.P.retrieveTextBeforeRange=function(M){var z=M.startContainer;return z&&z.nodeType===Node.TEXT_NODE?z.textContent.substr(0,M.startOffset):""};
o8.prototype.onKeyPress=o8.prototype.onKeyPress;o8.prototype.onKeyUp=o8.prototype.onKeyUp;o8.prototype.onKeyDown=o8.prototype.onKeyDown;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Array)],o8.prototype,"suggestions",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],o8.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Number)],o8.prototype,"verticalSuggestionsOffset",void 0);
_.u([_.Qc("#dropdown"),_.W("design:type",Object)],o8.prototype,"dropdown",void 0);_.u([_.Qc("#dropdown-content"),_.W("design:type",HTMLDivElement)],o8.prototype,"dropdownContent",void 0);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],o8.prototype,"onKeyDown",null);_.u([_.Xw("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent,Range]),_.W("design:returntype")],o8.prototype,"onKeyUp",null);
_.u([_.Xw("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],o8.prototype,"onKeyPress",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-emoji-input"})],o8);
_.d(o8,"ytd-emoji-input",function(){if(dQu!==void 0)return dQu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dQu=M},{mode:2});var uv2;var XF=function(){var M=_.g.apply(this,arguments)||this;M.hasMaxOptions=!1;return M};
_.w(XF,_.g);_.P=XF.prototype;_.P.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.P.setPrefilledChoices=function(M){var z=this;this.set("pollOptions",[]);var J;for(J=0;J<Math.min(M.length,this.data.maxPollOptions);J++)this.push("pollOptions",M[J].substring(0,this.data.maxPollOptionChars));for(;J<this.data.minPollOptions;J++)this.push("pollOptions","");this.hasMaxOptions=J>=this.data.maxPollOptions;_.C4(this,function(){for(var R=z.pollOptions,D=_.SN(z.hostElement).querySelectorAll(".poll-option-input"),N=0;N<D.length;N++)D[N].value=R[N]})};
_.P.focusChanged=function(){_.Tp(this.hostElement)};
_.P.onInput=function(){var M=this;_.Vc(this,"onInput",function(){M.isValid()?_.Pv(M.hostElement,"yt-commentbox-post-enable"):_.Pv(M.hostElement,"yt-commentbox-post-disable")},300)};
_.P.setPollOptions=function(){var M=[],z,J=((z=this.data)==null?0:z.minPollOptions)?this.data.minPollOptions:0;for(z=0;z<J;z++)M.push("");return M};
_.P.addPollOption=function(){var M=this;_.Pv(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.no.addLowPriorityJob(function(){var z;(z=_.SN(M.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||z.focus()})};
_.P.onRemovePollOption=function(M){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Pv(this.hostElement,"yt-poll-attachment-dismiss")):(M=this.repeat.indexForElement(M.target.parentNode),M!==null&&(this.splice("pollOptions",M,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Pv(this.hostElement,"yt-commentbox-post-enable"))))};
_.P.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.P.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var M=0,z=this.pollOptions.length;M<z;M++)if(this.pollOptions[M].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.P.getPollOptions=function(){return this.pollOptions};
_.P.setPollOptionsFromInputs=function(){for(var M=_.SN(this.hostElement).querySelectorAll(".poll-option-input"),z=0;z<M.length;z++)this.pollOptions[z]=M[z].value.trim()};
_.P.clearPollOptions=function(){var M=_.SN(this.hostElement).querySelectorAll(".poll-option-input");M=_.S(M);for(var z=M.next();!z.done;z=M.next())z.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.P.getSimpleString=function(M){return _.CD(M)};
_.P.updateValueFromBinding=function(M){if(M.target&&this.pollOptions){var z=Array.from(_.SN(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(M.target);if(z>=0){var J;this.pollOptions[z]=(J=M.detail.value)!=null?J:"";this.notifyPath("pollOptions."+z)}}};
XF.prototype.dataChanged=XF.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XF.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],XF.prototype,"pollOptions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XF.prototype,"hasMaxOptions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],XF.prototype,"enableCreationBox",void 0);
_.u([_.Qc("#repeat"),_.W("design:type",nd)],XF.prototype,"repeat",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XF.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-poll-attachment"})],XF);
_.d(XF,"ytd-poll-attachment",function(){if(uv2!==void 0)return uv2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uv2=M},{mode:2});var qiJ;var WI2;var aYJ;var VVQ;var lV=function(){return _.g.apply(this,arguments)||this};
_.w(lV,_.g);_.rX.Object.defineProperties(lV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lV.prototype,"rendererBehaviors",void 0);_.u([_.Y(),_.W("design:type",Object)],lV.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],lV.prototype,"focused",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("focused"),_.W("design:type",Object),_.W("design:paramtypes",[])],lV.prototype,"ariaSelected",null);_.u([_.cU({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],lV);
_.d(lV,"yt-user-mention-suggestion-renderer",function(){if(VVQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;aYJ===void 0&&(aYJ=document.createElement("template"));var R=aYJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);VVQ=M}M=VVQ;return M},{mode:2});var ELQ;var fYQ;var eG=function(){var M=_.g.apply(this,arguments)||this;M.focusedSuggestionIndex=-1;return M};
_.w(eG,_.g);_.P=eG.prototype;_.P.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.P.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.P.setFocusedSuggestionIndex=function(M){!this.data||!this.data.suggestions||M<0||M>=this.data.suggestions.length||(this.focusedSuggestionIndex=M,M=this.getSuggestionId(M),this._setFocusedSuggestionId(M))};
_.P.advanceSuggestion=function(M){this.focusedSuggestionIndex===-1||M!==-1&&M!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+M),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.P.ensureSuggestionVisible=function(M){M=this.getSuggestionId(M);M=_.SN(this.hostElement).querySelector("[id="+M+"]");M!=null&&(M.offsetTop<this.hostElement.scrollTop?M.scrollIntoView(!0):M.offsetTop+M.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&M.scrollIntoView(!1))};
_.P.getSuggestionId=function(M){return"user-mention-suggestion-"+M};
_.P.onSuggestionTap=function(M){var z=_.G(M.model.item,kCJ);this.ytRendererBehavior.logExplicitClick(z);_.Pv(this.hostElement,"yt-user-mention-suggestion-selected",{data:z,index:M.model.index})};
_.P.onSuggestionMouseMove=function(M){M.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(M.model.index)};
_.P.isSuggestionFocused=function(M,z){return M===z};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("focused-suggestion-id-changed",this.focusedSuggestionId))};
eG.prototype.focusedSuggestionIdChangedForBinding=eG.prototype.focusedSuggestionIdChangedForBinding;eG.prototype.onDomChange=eG.prototype.onDomChange;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],eG.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],eG.prototype,"focusedSuggestionIndex",void 0);_.u([_.Y({readOnly:!0}),_.W("design:type",String)],eG.prototype,"focusedSuggestionId",void 0);
_.u([_.Xw("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eG.prototype,"onDomChange",null);_.u([_.la("focusedSuggestionId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eG.prototype,"focusedSuggestionIdChangedForBinding",null);_.u([_.cU({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],eG);
_.d(eG,"yt-user-mention-suggestions-dropdown",function(){if(fYQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;ELQ===void 0&&(ELQ=document.createElement("template"));var R=ELQ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);fYQ=M}M=fYQ;return M},{mode:2});var Qh=function(){var M=_.g.apply(this,arguments)||this;M.suggestionsResponse=null;M.activeMention=null;M.selectionChangeListener=M.onSelectionChange.bind(M);M.handlesEnabled=_.U("enable_handles_in_mention_suggest_posts");M.handlesInMentionSuggestionsEnabled=_.U("handles_in_mention_suggest_posts");M.zeroPrefixMentionSuggestionEnabled=_.U("enable_zero_prefix_mention_suggestion_web");M.pendingQuery=null;M.flowNonce=null;return M};
_.w(Qh,_.g);_.P=Qh.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.P.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.P.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.P.hasSuggestions=function(M){return!!(M&&M.suggestions&&M.suggestions.length>0)};
_.P.onInput=function(){var M=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var z=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),J=this.activeMention.JSC$11258_getText().slice(-1)===" ",R=this.activeMention.JSC$11258_getText().slice(-2,-1)===" ",D="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11258_getText().slice(-2,
-1))>=0;D=this.zeroPrefixMentionSuggestionEnabled&&D;if(this.activeMention.isCollapsed()||(z||R||D)&&J)this.cancelActiveMention();else{var N=this.activeMention.JSC$11258_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Vc(this,"requestSuggestions",function(){M.requestSuggestions(N)},100)}}}};
_.P.onServiceRequestSent=function(M){M.stopPropagation()};
_.P.onServiceRequestCompleted=function(M){M.stopPropagation();M=M.detail.data;M.query&&(!this.pendingQuery||this.pendingQuery!==M.query)||!this.zeroPrefixMentionSuggestionEnabled&&M.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=M,this.hasSuggestions(M)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.P.onServiceRequestError=function(M){M.stopPropagation()};
_.P.onUserMentionSuggestionSelected=function(M){this.selectSuggestion(M.detail.data,M.detail.index)};
_.P.onSelectionChange=function(){if(this.activeMention){var M=_.oZ(),z=this.activeMention.JSC$11258_containsRange(M);M=M&&this.containsHelper(this.dropdown,M.getContainer());z||M||this.cancelActiveMention()}};
_.P.containsHelper=function(M,z){var J;if(((J=window.ShadyDOM)==null?void 0:J.noPatch)===!0)return M.contains(z);for(;z;){if(z===M)return!0;z=z instanceof ShadowRoot?z.host:z.parentNode}return!1};
_.P.maybeStartSuggest=function(){var M=_.oZ();if(M&&M.isCollapsed()){var z=M.JSC$11258_getStartNode(),J=M.JSC$11258_getStartOffset();if(z instanceof Text&&!(J<1)){var R=z.textContent;!(R=R&&R.charAt(J-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(R)<0||(this.activeMention=_.W0(z,J-1,M.JSC$11258_getEndNode(),M.JSC$11258_getEndOffset()),this.flowNonce=sK(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.P.updateActiveMention=function(){if(this.activeMention){var M=_.oZ();M&&M.isCollapsed()&&(this.activeMention=_.W0(this.activeMention.JSC$11258_getStartNode(),this.activeMention.JSC$11258_getStartOffset(),M.JSC$11258_getEndNode(),M.JSC$11258_getEndOffset()))}};
_.P.requestSuggestions=function(M){if(this.activeMention){var z={suggestions_query:M};this.pendingQuery=M;_.kQ(this.hostElement,[this.suggestionsEndpoint,z])}};
_.P.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.P.focusPreviousSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),M.preventDefault())};
_.P.focusNextSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),M.preventDefault())};
_.P.selectFocusedSuggestion=function(M){if(this.hasSuggestions(this.suggestionsResponse)){var z=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.G(z,kCJ)&&(this.selectSuggestion(_.G(z,kCJ),this.dropdown.focusedSuggestionIndex),M.preventDefault())}};
_.P.selectSuggestion=function(M,z){if(M){var J=this.activeMention;if(J){var R=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&M.handle?_.KQ(R,"\u00a0\u2068@"+M.handle+"\u2069\u00a0"):this.handlesEnabled?_.KQ(R,"\u00a0"+M.displayName+"\u00a0"):_.KQ(R,"\u00a0@"+M.displayName+"\u00a0");_.K3(R,"/channel/"+M.channelId);R.classList.add("yt-formatted-string","yt-simple-endpoint");R.setAttribute("spellcheck","false");J.isCollapsed()||J.JSC$11258_removeContents();J.insertNode(R,!0);M=
document.createTextNode(" ");R.parentNode.insertBefore(M,R.nextSibling);window.getSelection().collapse(M,1);z={suggestionSelected:{suggestionIndex:z}};if(this.zeroPrefixMentionSuggestionEnabled){var D;z.suggestionSelected.isZeroPrefix=((D=this.suggestionsResponse)==null?void 0:D.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",z);this.cancelActiveMention();_.Pv(this.hostElement,"yt-mention-inserted")}}};
_.P.getPositionTarget=function(M){return M&&M.getBrowserRangeObject()};
_.P.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.P.onFocusedSuggestionIdChanged=function(M){var z=_.nY3(this.hostElement)[0];z&&(M.detail.value?z.setAttribute("aria-activedescendant",M.detail.value):z.removeAttribute("aria-activedescendant"))};
_.P.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.P.logGELEvent=function(M,z){M={eventType:M,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};z&&(M=Object.assign(M,z));_.gP("userMentionAutoCompleteBoxEvent",M)};
Qh.prototype.onDomChange=Qh.prototype.onDomChange;Qh.prototype.onUserMentionSuggestionSelected=Qh.prototype.onUserMentionSuggestionSelected;Qh.prototype.onServiceRequestError=Qh.prototype.onServiceRequestError;Qh.prototype.onServiceRequestCompleted=Qh.prototype.onServiceRequestCompleted;Qh.prototype.onServiceRequestSent=Qh.prototype.onServiceRequestSent;Qh.prototype.onInput=Qh.prototype.onInput;_.u([_.p(_.pH),_.W("design:type",Object)],Qh.prototype,"ironA11yKeysBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Qh.prototype,"suggestionsEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],Qh.prototype,"suggestionsResponse",void 0);_.u([_.Y(),_.W("design:type",Object)],Qh.prototype,"activeMention",void 0);_.u([_.Qc("#dropdown"),_.W("design:type",Object)],Qh.prototype,"dropdown",void 0);_.u([_.Qc("#iron-dropdown"),_.W("design:type",Object)],Qh.prototype,"ironDropdown",void 0);
_.u([_.Xw("input"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Qh.prototype,"onInput",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Qh.prototype,"onServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Qh.prototype,"onServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Qh.prototype,"onServiceRequestError",null);_.u([_.Xw("yt-user-mention-suggestion-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Qh.prototype,"onUserMentionSuggestionSelected",null);
_.u([_.Xw("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Qh.prototype,"onDomChange",null);_.u([_.cU({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Qh);
_.d(Qh,"yt-user-mention-autosuggest-input",function(){if(WI2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;qiJ===void 0&&(qiJ=document.createElement("template"));var R=qiJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);WI2=M}M=WI2;return M},{mode:2});var UO=null;
_.sV({is:"ytd-commentbox",_template:function(){if(cRt!==void 0)return cRt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cRt=M},
behaviors:[_.B2H.YtHostElementBehavior,_.pH,_.wx.YtActionHandlerBehavior,_.LZ.YtComponentBehavior,_.Bm.YtRendererstamperBehavior,_.H1k.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(M,z){return _.Is(M.entities,"aadcGuidelinesStateEntityPayload",z)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(M,z){return _.Is(M.entities,"commentboxStateEntity",z)},
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 _.As}},
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:_.U("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.U("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",_.ou(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(M){this.fire(M?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(M){this.set("submitButtonDisabled",void 0);this.clear();M&&this.computeIsEmojiButtonDisplayed_(M)&&(M=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&M.updateEmojiCategories()},
observePrefilledImage_:function(M,z,J){this.isValidPrefilledImage_(M,z,J)&&(this.prefilledAttachment_="image",this.prefilledImageData_=z,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(M,z){this.isValidPrefilledVideo_(M,z)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(M){M&&M.pollData&&M.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(M.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Q7();this.focus()},
detached:function(){document.removeEventListener("tap",_.ou(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,M);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var M=_.oZ();if(M){M=M.getBrowserRangeObject();for(var z=M.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return M;z=z.parentNode}}M=this.getEditableTextArea_();M=_.qP(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,z,J){(z=this.emojiManager.createDocumentFragment(z,!0,!1,J===void 0?!0:J))&&z.childNodes.length!==0&&(M.collapsed||M.deleteContents(),J=z.lastChild,M.insertNode(z),_.y9v(J).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var M=_.oZ();if(M){var z=M.JSC$11258_getStartNode(),J=M.JSC$11258_getEndNode();if(exG(z)&&exG(J)){var R=M.JSC$11258_getStartOffset(),D;if(_.lN&&z.nodeType===Node.ELEMENT_NODE&&(D=_.ySQ(z)))_.qP(D,0).select();else{D=Om(z)?z:_.cj(z,Om);var N=Om(J)?J:_.cj(J,Om);if(D||N)if(M.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){M=!0;R===z.length&&(M=!1);if(UO==="end"||UO==="right")M=!1;z=z.parentNode;M=[].concat(_.Yj(z.parentNode.childNodes)).indexOf(z)+(M?0:1);_.qP(z.parentNode,
M).select()}}else D?D.previousSibling&&D.previousSibling.length>0?_.W0(J,M.JSC$11258_getEndOffset(),D.previousSibling,D.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),D.parentNode.insertBefore(z,D),_.W0(J,M.JSC$11258_getEndOffset(),z,0).select()):N&&(N.nextSibling&&N.nextSibling.length>0?_.W0(z,M.JSC$11258_getStartOffset(),N.nextSibling,1).select():(J=document.createTextNode("\u200b"),N.parentNode.insertBefore(J,N.nextSibling),_.W0(z,M.JSC$11258_getStartOffset(),J,J.length).select()));
UO=null}}else UO=null}else UO=null},
leftKeyPressed_:function(){UO="left"},
rightKeyPressed_:function(){UO="right"},
endKeyPressed_:function(){UO="end"},
maybeDeleteChip_:function(){var M=xub(!0);if(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();_.c0(J,z,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=xub(!1);if(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();_.c0(J,z,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var z=_.oZ();if(z.isCollapsed()){var J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();var R=tr3(J,z,!0);R&&(_.c0(J,z,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var z=_.oZ();if(z.isCollapsed()){var J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();var R=tr3(J,z,!1);R&&(_.c0(J,z,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onTap_:function(M){if(!M.defaultPrevented&&(M.currentTarget.tagName==="YTD-COMMENTBOX"&&Om(M.target)&&M.preventDefault(),this.isEmojiPickerDisplayed)){var z=this.$$("#emojis"),J=this.$$("#emoji-button"),R=this.getEditableTextArea_();if((M=M.path?M.path:M.composedPath&&M.composedPath())&&!M.includes(z)&&!M.includes(R)&&!M.includes(J))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(M,z,J){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z!==void 0&&z.encryptedBlobId!==null&&z.sourceExternalVideoId!==null&&J!==void 0&&J.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(M,z){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!z&&!!z.videoRenderer&&!!z.videoRenderer.videoId},
isValidPrefilledAttachment_:function(M,z,J){return this.isValidPrefilledImage_(M,z,J)||this.isValidPrefilledVideo_(M,J)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.U("enable_multi_image_post_creation")){var M=this.$$("ytd-backstage-multi-image-select-renderer");M&&M.hasImages()&&M.cancel()}else(M=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&M.cancel();(M=this.$["poll-attachment"])&&this.hasPoll_&&M.clearPollOptions();(M=this.$["image-poll-attachment"])&&this.hasImagePoll_&&M.resetPollOptions();(M=this.$["quiz-attachment"])&&this.hasQuiz_&&M.resetQuizOptions();
(M=this.$["video-link-attachment"])&&this.hasVideo_&&M.cancel();(M=this.$["access-restrictions-selector"].firstElementChild)&&M.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.SN(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.SN(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(M,z){M=Uun(M,this.emojiManager,z).cloneNode(!0);for(z=M.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var J=_.nQ();_.W$V(J,z);z=J.nextSibling;break;case "DIV":(J=z.lastChild)&&z.nextSibling&&_.cK(_.nQ(),J);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.HK(_.nQ(),z);J&&J.nodeName==="BR"&&_.eJ(J);J=z;z.hasChildNodes()?(z=z.firstChild,
_.aV2(J)):(z=z.nextSibling,_.eJ(J));break;default:z=z.nextSibling}return jF0(M)},
onAddImageError_:function(M){M.stopPropagation();this.errorMessage_=_.id(M.detail)},
setTextAreaValue_:function(M){M||(M="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});z.text=M},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();UO=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.qP(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.HW("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",z)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var M;return OC0((M=this.$["quiz-attachment"])==null?void 0:M.getExplanationText())||OC0(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(M=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(M,!0);this.updateCharCount_();this.setSubmitButton_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(M){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(M)},
onPasteEmoji_:function(M){M.preventDefault();M.stopImmediatePropagation();M=M.clipboardData.getData("text/plain");this.insertText_(M,!1,!1)},
insertText_:function(M,z,J){z=z===void 0?!1:z;J=J===void 0?!0:J;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(z&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,J),QF8(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
setSubmitButton_:function(){if(this.data){var M=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",z=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(M||z){var J=this.getTextAreaValue().trim();z=J===this.previousText_;J=!J||this.aboveCharLimit_;M&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(J=this.aboveCharLimit_);this.submitButtonDisabled=
z||J||!this.getTextLength();M&&_.U("enable_post_scheduling")&&(this.submitButtonDisabled=z&&!this.scheduledPublishTimeSec_||J)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.CD,computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computeFooterMessageClass_:function(M,z){return z?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(M,z){return z?z:M},
computeFooterMessageHidden_:function(M,z){return!z&&!M},
computePlaceholderText_:function(M,z,J){return(J==="video"||J==="image")&&(M==null?0:M.prefilledPlaceholderText)?M==null?void 0:M.prefilledPlaceholderText:z==="poll"||z==="image-poll"?M==null?void 0:M.pollPostPlaceholderText:z==="quiz"?M==null?void 0:M.quizPostPlaceholderText:z==="image"?M==null?void 0:M.imagePostPlaceholderText:M==null?void 0:M.placeholderText},
computeHideAttachmentButtons_:function(M,z,J,R){return M===void 0?!1:R&&this.getSimpleString(R)===this.getSimpleString(M.rateLimitErrorMessage)?!0:z!=="none"||J!=="none"||!M.videoLinkButton&&!M.pollButton&&!M.imagePollButton&&!M.quizButton&&!M.imageButton},
computeHideDismissableAttachment_:function(M){return M!=="image"&&M!=="video"},
computeHasVideo_:function(M){return M==="video"},
computeHasImage_:function(M){return M==="image"},
computeHasPoll_:function(M){return M==="poll"},
computeHasImagePoll_:function(M){return M==="image-poll"},
computeHasQuiz_:function(M){return M==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(M){return M&&M.backstageAttachment?M.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!M.backstageAttachment.quizRenderer&&!M.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(M){if(this.isValidPrefilledAttachment_(M.purpose,M.prefilledImageData,M.backstageAttachment))return M.backstageAttachment},
computeEditAttachment_:function(M){if(this.computePrefilledContent_(M)===void 0)return M.backstageAttachment},
computeAuthorThumbnailDimension_:function(M,z){return M&&!z?24:40},
computeImageUploadEndpoint_:function(M){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",M)},
computeRateLimitErrorCommands_:function(M){var z,J;return M==null?void 0:(z=M.advancedTierFeatures)==null?void 0:(J=z.rateLimit)==null?void 0:J.rateLimitCommands},
computeIsBackstageComment_:function(M){return!(!M||M!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)||this.get("replyButton.buttonRenderer.serviceEndpoint",M)||this.get("postButton.buttonRenderer.serviceEndpoint",M)},
computeSubmitButtonOverride:function(){if(_.U("web_modern_buttons")){var M,z;return{segmentedPosition:this.dropdownSchedulePanel_||!((M=this.data)==null?0:(z=M.postOptionsMenu)==null?0:z.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.U("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(M,z){M=this.get("submitButton.buttonRenderer",M)||this.get("replyButton.buttonRenderer",M)||this.get("postButton.buttonRenderer",M);z&&(M=z);M&&(M=Object.assign({},M),M.serviceEndpoint=void 0,M.isDisabled=this.submitButtonDisabled);return M},
computeHasExternalLinksAccess_:function(M){if(_.U("enable_rfa_external_links")){var z,J,R;return(R=M==null?void 0:(z=M.advancedTierFeatures)==null?void 0:(J=z.externalLinks)==null?void 0:J.allowExternalLinks)!=null?R:!0}return!0},
computeIsEmojiButtonDisplayed_:function(M){return M.emojiButton&&M.emojiPicker&&M.emojiPicker.emojiPickerRenderer&&M.emojiPicker.emojiPickerRenderer.categories?M.emojiPicker.emojiPickerRenderer.categories.find(function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(M){return M.charLimit?M.charLimit:null},
computeDropdownSchedulingPanel_:function(M,z){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z)return z},
computeInlineSchedulingPanel_:function(M,z){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z)return z},
computeHideAuthorThumbnail_:function(M,z){return M||this.computeUseIdentityChip_(z)},
computeHideIdentityChipRenderer_:function(M,z){return M||!this.computeUseIdentityChip_(z)},
computeUseIdentityChip_:function(M){return!!M&&!!M.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(M){var z,J,R,D;(M==null?0:(z=M.detail)==null?0:(J=z.endpoint)==null?0:J.ypcGetOffersEndpoint)||(M==null?0:(R=M.detail)==null?0:(D=R.endpoint)==null?0:D.ypcOffersEndpoint)?(M.stopPropagation(),_.kQ(this,[M.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(M.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(M){this.addedAttachment="video";this.selectedVideoId_=M.detail.videoId},
commentboxStateEntityChanged_:function(M){var z=this;(M==null?void 0:M.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(M==null?void 0:M.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){z.focus()})},
onYtServiceRequestSent_:function(M,z){if(z.actions)for(M=_.S(z.actions),z=M.next();!z.done;z=M.next())z.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(M){this.isLoading=!1;var z=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",M),J,R,D,N=M==null?void 0:(J=M.detail)==null?void 0:(R=J.data)==null?void 0:(D=R.actionResult)==null?void 0:D.commentboxStateEntityKey;if(z)this.errorMessage_=z;else if(N){var Z;this.dismissData_=M==null?void 0:(Z=M.detail)==null?void 0:Z.data;this.commentboxStateKey_=N}else{this.clear();var B;this.fire("yt-commentbox-dismiss",M==null?void 0:(B=M.detail)==
null?void 0:B.data)}},
onYtServiceRequestError_:function(M){M.stopPropagation();this.isLoading=!1;var z,J;if(((z=this.data)==null?void 0:z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((J=this.data)==null?void 0:J.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(z=this.get("detail.error.args",M)||[],z.length>1&&z[1].message){this.handlePostsServiceRequestError_(z[1].message);return}(M=this.get("detail.error.message",M))?this.errorMessage_=this.data.errorMessage||_.id(M):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(M){if(_.U("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var z=_.S(this.rateLimitErrorCommands),J=z.next();!J.done;J=z.next())if(J=J.value,J.errorLabel===M){_.e5(J.command,this.hostElement);return}this.errorMessage_=_.id(M)},
submitIfNotBackstagePost_:function(M){if(!this.isBackstagePost)this.onSubmit_(M)},
onSubmit_:function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y;return _.k(function(H){switch(H.nextAddress){case 1:M.stopPropagation();if(!z.serviceEndpoint||!z.isValidInput_())return H.return();if(z.shouldShowPostAadcNotice_())return z.showPostAadcNotice_(),H.return();if(z.shouldShowCommentAadcNotice_())return z.showCommentAadcNotice_(),H.return();if(!(z.$$("ytd-backstage-multi-image-select-renderer")&&z.hasImage_&&_.U("enable_multi_image_post_creation"))){H.jumpTo(2);break}J=z.$$("ytd-backstage-multi-image-select-renderer");
return H.yield(J.getAllUploadStatuses(),3);case 3:R=H.yieldResult;if(!R)return H.return();D=_.S(R);for(N=D.next();!N.done;N=D.next())if(Z=N.value,Z.encryptedBlobId===void 0)return z.isLoading=!1,O=B=void 0,z.errorMessage_=(O=(B=z.imageUploadEndpoint_)==null?void 0:B.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?O:null,H.return();return H.return(z.submitForm_(void 0,void 0,void 0,void 0,J.images,z.taggedVideoId_));case 2:if(!z.hasImagePoll_||!z.$["image-poll-attachment"]){H.jumpTo(4);
break}return H.yield(z.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:X=H.yieldResult;if(!X)return H.return();l=_.S(X);for(e=l.next();!e.done;e=l.next())if(Q=e.value,!Q.encryptedBlobId)return z.isLoading=!1,v=void 0,z.errorMessage_=(v=z.data.errorMessage)!=null?v:null,H.return();case 4:m=(x=z.$$("ytd-backstage-image-select-renderer"))&&x.uploadPromise(),y=z.getSharedPostId_(),m?m.then(function(){z.submitForm_.apply(z,_.Yj(_.H4.apply(0,arguments)))}).catch(function(q){z.isLoading=!1;
z.errorMessage_=_.id(q.message)}):z.selectedVideoId_?z.submitForm_(void 0,z.selectedVideoId_):z.prefilledAttachment_==="image"?z.submitForm_(z.prefilledImageData_.encryptedBlobId,void 0,void 0,z.prefilledImageData_.sourceExternalVideoId,void 0,z.taggedVideoId_):z.prefilledAttachment_==="video"?z.submitForm_(void 0,z.data.backstageAttachment.videoRenderer.videoId):y?z.submitForm_(void 0,void 0,y):z.taggedVideoId_!==void 0?z.submitForm_(void 0,void 0,void 0,void 0,void 0,z.taggedVideoId_):z.submitForm_(),
_.UI(H)}})},
openSchedulingPanel:function(M){M&&M.scheduleButton&&M.scheduleButton.buttonRenderer&&(this.scheduleButton_=M.scheduleButton.buttonRenderer);M&&M.dateTimePicker&&this.set("data.schedulingDateTimePicker",M.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(M){M.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(M){M.stopPropagation();M.detail.alertMessage&&(this.alertMessage_=M.detail.alertMessage)},
onImageSelected_:function(M){M.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(M){M.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(M.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(M){var z=this.$["video-link-attachment"];z&&z.onLaunchVideoPicker(M)},
onAttachmentDismiss_:function(M){M.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.U("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.U("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var M;if(this.addedAttachment==="image-poll"&&((M=this.$["image-poll-attachment"])==null||!M.isValid()))return!1;var z;if(this.addedAttachment==="quiz"&&((z=this.$["quiz-attachment"])==null||!z.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;M=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(M=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")M=!0;return M||!!this.getTextAreaValue().trim()},
submitForm_:function(M,z,J,R,D,N){var Z=this.getTextAreaValue().trim(),B={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z===this.previousText_&&(Z=void 0);Z!==void 0&&(B.comment_text=Z);this.isLoading=!0;N!=void 0&&(B.tagged_video_id=N);M?(B.image_blob_id=M,this.imagePreviewCoordinates_&&(B.image_preview_coordinates=this.imagePreviewCoordinates_)):z?B.attached_video_id=z:J?B.shared_post_id=J:D&&D.length>0&&(B.images_data=D.map(function(O){return{encryptedBlobId:O.encryptedBlobId,
previewCoordinates:O.previewCoordinates}}));
R&&(B.source_video_id=R);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(B.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(B.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(B.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.U("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(B.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.U("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(B.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.kQ(this,[this.serviceEndpoint,B])},
onIsInputFocusChanged_:function(M,z){M?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var z=this.getEditableTextArea_();[].concat(_.Yj(M.dataTransfer.items)).forEach(function(J){J.kind==="string"&&J.type.match("^text/plain")&&J.getAsString(function(R){z.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
computeSubmitButtonClass_:function(M,z){return!z||M?"":"with-options"},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.SN(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,J=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-J)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-z;_.SN(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(M){if(_.U("enable_post_scheduling")&&this.data&&this.data.purpose){M=M.detail;if(Math.floor(Date.now()/1E3)>=M)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var z=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(z)||z!==M?this.scheduledPublishTimeSec_=M:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=M;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var M=["image-button","image-poll-button","poll-button"];_.U("enable_quiz_creation")&&M.push("quiz-button");_.U("auto_convert_posts_video_tag")||M.push("video-link-button");return M},
getButtonRenderer:function(M,z){if(M)switch(z){case "video-link-button":var J;return((J=M.videoLinkButton)==null?void 0:J.buttonRenderer)||void 0;case "image-button":var R;return((R=M.imageButton)==null?void 0:R.buttonRenderer)||void 0;case "poll-button":var D;return((D=M.pollButton)==null?void 0:D.buttonRenderer)||void 0;case "image-poll-button":var N;return((N=M.imagePollButton)==null?void 0:N.buttonRenderer)||void 0;case "quiz-button":var Z;return((Z=M.quizButton)==null?void 0:Z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var M;return(M=this.data)==null||!M.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var M,z;return!((M=this.data)==null||!M.openAadcDialog)&&!((z=this.aadcGuidelinesState_)==null||!z.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.HW("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var M;((M=this.data)==null?0:M.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dc("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(M){M.clickTrackingParams&&_.Gm().clickCommand(M);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.S9(this,"yt-close-popup-action")},
onHideIdentityChip:function(M){var z;this.set("data.placeholderText",(z=M.hideIdentityChipAction)==null?void 0:z.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var ve=function(){var M=_.g.apply(this,arguments)||this;M.isOpen=!1;M.modern=_.U("web_modern_buttons");M.roundedContainer=!0;M.dropdownButtonOverride=_.U("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;M.inPopupContainer=!1;M.isCommentboxLoading=!1;var z=["image-button","image-poll-button","poll-button"];_.U("enable_quiz_creation")&&z.push("quiz-button");_.U("auto_convert_posts_video_tag")||z.push("video-link-button");M.attachmentButtonIds=z;M.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return M};
_.w(ve,_.g);_.P=ve.prototype;_.P.computeButtonOverride=function(){var M;return((M=this.data)==null?0:M.postOptionsMenu)&&_.U("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.P.configureRendererStamper=function(){var M={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.U("auto_convert_posts_video_tag")||(M["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return M};
_.P.ready=function(){var M=this,z=_.SN(this.hostElement).querySelector("#placeholder-area"),J=function(R){M.onOpen(R)};
z.addEventListener("tap",J);z.addEventListener("keypress",J)};
_.P.showButtonEduTooltip=function(){var M,z,J,R,D,N,Z;if(_.U("enable_quiz_creation")&&((M=this.data)==null?0:(z=M.quizButton)==null?0:(J=z.buttonRenderer)==null?0:(R=J.hint)==null?0:(D=R.hintRenderer)==null?0:(N=D.content)==null?0:(Z=N.bubbleHintRenderer)==null?0:Z.text)&&(_.k5.getInstance(),M=Ba(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(M==null?void 0:
M.length)>0)){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.quizButton}});return}var B;if((B=this.data)==null?0:B.imagePollButtonTooltip)if(_.k5.getInstance(),B=Ba(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(B==null?void 0:B.length)>0){this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.imagePollButton}});return}var O;_.U("enable_multi_image_post_creation")&&
((O=this.data)==null?0:O.multiImageButtonTooltip)&&(_.k5.getInstance(),O=Ba(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0&&this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imageButton}}))};
_.P.onCreatePollAction=function(M){_.G(M,Tsv)&&(this.JSC$15713_commentbox.addedAttachment="poll",this.openDialog())};
_.P.onAddVideoLinkAction=function(M){if(_.G(M,Zsg))this.JSC$15713_commentbox.onAddVideoLink(M)};
_.P.onShowSchedulingPanelCommand=function(M){(M=_.G(M,cwu))&&this.openSchedulingPanel(M)};
_.P.onCreateImagePollCommand=function(M){_.G(M,PUS)&&(this.JSC$15713_commentbox.openImagePollComponent(),this.openDialog())};
_.P.onCreateQuizCommand=function(M){_.G(M,S4k)&&(this.JSC$15713_commentbox.openQuizComponent(),this.openDialog())};
_.P.openSchedulingPanel=function(M){_.U("enable_post_scheduling")&&(this.openDialog(),this.JSC$15713_commentbox.openSchedulingPanel(M))};
_.P.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.JSC$15713_commentbox.clear(),this.closeDialog())};
_.P.onOpen=function(M){M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||(this.data.prepareAccountEndpoint?_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.closeDialog()};
_.P.onYtCommentboxLoadingStart=function(M){M.stopPropagation();this.isCommentboxLoading=!0};
_.P.onYtCommentboxLoadingEnd=function(M){M.stopPropagation();this.isCommentboxLoading=!1};
_.P.onYtVideoLinkButtonCancel=function(M){M.stopPropagation();this.onOpen(M)};
_.P.onYtVideoLinkSelected=function(M){M.stopPropagation();this.onOpen(M)};
_.P.onIronSelect=function(M){M.stopPropagation();M.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=M.detail.item.value&&(this.accessRestriction?(this.accessRestriction=M.detail.item.value,this.onOpen(M)):this.accessRestriction=M.detail.item.value)};
_.P.onYtNavigate=function(M){this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(this.JSC$15713_commentbox.addedAttachment="image",this.JSC$15713_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.P.onRequestSent=function(M){if(_.U("web_button_rework"))for(var z=_.S(M.detail),J=z.next();!J.done;J=z.next())_.G(J.value,QwB)&&(this.JSC$15713_commentbox.addedAttachment="image",this.JSC$15713_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.P.openDialog=function(){this.JSC$15713_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15713_commentbox.focus()};
_.P.onPopupClosed=function(){_.k5.getInstance()};
_.P.computeCreationDisabled=function(M){return!!M};
_.P.computeIsCreationDialog=function(M){return!!M&&M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.P.computeDisabledPostButton=function(M){if(!M)return null;M.isDisabled=!0;return M};
_.P.computeIsCreationDialogWithHeader=function(M){return!this.inPopupContainer&&!!M&&!!M.authorText&&M.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.P.computeIsHeaderHidden=function(M,z){return!M||z};
_.P.computeDropdownRendererClasses=function(M){return M?["text-secondary-style"]:[]};
_.P.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var M=_.SN(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;M&&M.reset()};
ve.prototype.onPopupClosed=ve.prototype.onPopupClosed;ve.prototype.onRequestSent=ve.prototype.onRequestSent;ve.prototype.onYtNavigate=ve.prototype.onYtNavigate;ve.prototype.onIronSelect=ve.prototype.onIronSelect;ve.prototype.onYtVideoLinkSelected=ve.prototype.onYtVideoLinkSelected;ve.prototype.onYtVideoLinkButtonCancel=ve.prototype.onYtVideoLinkButtonCancel;ve.prototype.onYtCommentboxLoadingEnd=ve.prototype.onYtCommentboxLoadingEnd;ve.prototype.onYtCommentboxLoadingStart=ve.prototype.onYtCommentboxLoadingStart;
ve.prototype.onYtCommentboxDismiss=ve.prototype.onYtCommentboxDismiss;ve.prototype.showButtonEduTooltip=ve.prototype.showButtonEduTooltip;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ve.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ve.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ve.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ve.prototype,"isOpen",void 0);_.u([_.Y({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],ve.prototype,"buttonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ve.prototype,"modern",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ve.prototype,"roundedContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],ve.prototype,"dropdownButtonOverride",void 0);_.u([_.Y({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.W("design:type",Boolean)],ve.prototype,"creationDisabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ve.prototype,"enableCreationBox",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.W("design:type",Boolean)],ve.prototype,"isCreationDialog",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ve.prototype,"inPopupContainer",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.W("design:type",Boolean)],ve.prototype,"isCreationDialogWithHeader",void 0);_.u([_.Y(),_.W("design:type",Object)],ve.prototype,"accessRestriction",void 0);
_.u([_.Y({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.W("design:type",Array)],ve.prototype,"dropdownRendererClasses",void 0);_.u([_.Y(),_.W("design:type",Object)],ve.prototype,"isCommentboxLoading",void 0);_.u([_.Y(),_.W("design:type",Array)],ve.prototype,"attachmentButtonIds",void 0);_.u([_.Qc("#image-button"),_.W("design:type",HTMLElement)],ve.prototype,"imageButton",void 0);
_.u([_.Qc("#image-poll-button"),_.W("design:type",HTMLElement)],ve.prototype,"imagePollButton",void 0);_.u([_.Qc("#quiz-button"),_.W("design:type",HTMLElement)],ve.prototype,"quizButton",void 0);_.u([_.Qc("#commentbox"),_.W("design:type",Object)],ve.prototype,"JSC$15713_commentbox",void 0);_.u([_.la("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ve.prototype,"showButtonEduTooltip",null);
_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtCommentboxDismiss",null);_.u([_.Xw("yt-commentbox-loading-start"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtCommentboxLoadingStart",null);
_.u([_.Xw("yt-commentbox-loading-end"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtCommentboxLoadingEnd",null);_.u([_.Xw("yt-video-link-button-cancel"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtVideoLinkButtonCancel",null);
_.u([_.Xw("yt-video-link-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtVideoLinkSelected",null);_.u([_.Xw("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onIronSelect",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ve.prototype,"onRequestSent",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ve.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],ve);
_.d(ve,"ytd-backstage-post-dialog-renderer",function(){if(XzQ!==void 0)return XzQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return XzQ=M},{mode:1});var LIk;var AR2;var Gg=function(){return _.g.apply(this,arguments)||this};
_.w(Gg,_.g);_.P=Gg.prototype;_.P.computeHeartButtonStyle=function(M){return(M==null?0:M.styleType)?M.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onYtButtonTap=function(){if(this.data.isEnabled){var M=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(M=this.getEndpoint(M))&&_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})}else(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(M)};
_.P.toggle=function(M){this.set("data.isHearted",M!==void 0?M:!this.data.isHearted)};
_.P.getEndpoint=function(M){var z,J=(z=this.data)==null?void 0:z.heartEndpoint,R;z=(R=this.data)==null?void 0:R.unheartEndpoint;if(J&&z)return M?z:J};
_.P.computeButtonAccessibility=function(M,z){var J,R,D=M==null?void 0:(J=M.heartedAccessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label,N,Z;M=M==null?void 0:(N=M.unheartedAccessibility)==null?void 0:(Z=N.accessibilityData)==null?void 0:Z.label;return z?D:M};
_.rX.Object.defineProperties(Gg.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var M;return _.U("kevlar_system_icons")&&!((M=this.data)==null||!M.isHearted)}}});
Gg.prototype.onYtButtonTap=Gg.prototype.onYtButtonTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],Gg.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Gg.prototype,"data",void 0);_.u([_.F("data.isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],Gg.prototype,"heartTooltip",null);
_.u([_.F("data.isHearted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Gg.prototype,"iconFilled",null);_.u([_.Y({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.W("design:type",String)],Gg.prototype,"buttonAccessibility",void 0);_.u([_.Y({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],Gg.prototype,"heartButtonStyle",void 0);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Gg.prototype,"onYtButtonTap",null);_.u([_.c({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Gg);
_.d(Gg,"ytd-creator-heart-renderer",function(){if(AR2!==void 0)return AR2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AR2=M},{mode:1});var w5=function(){var M=_.g.apply(this,arguments)||this;M.hasCreatorReply=!1;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};M.forceIconButton=!_.U("web_modern_buttons");M.modern=_.U("web_modern_buttons");M.buttonTooltipPosition="bottom";M.systemIcons=_.U("kevlar_system_icons");M.replyDialog=null;return M};
_.w(w5,_.g);_.P=w5.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.P.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.P.dataChange=function(){this.replyDialog&&_.SN(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var M,z,J;this.isLiked=this.systemIcons&&!!((M=this.data)==null?0:(z=M.likeButton)==null?0:(J=z.toggleButtonRenderer)==null?0:J.isToggled)};
_.P.computeShowVoteCountBeginning=function(M,z){return M===void 0||z===void 0?!0:M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.P.computeShowVoteCountEnd=function(M,z){return M===void 0||z===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.P.computeShowCommentCount=function(M,z){return M===void 0||z===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.P.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.P.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.P.showReplyDialog=function(M){M&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.SN(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=M,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.P.onRequestSent=function(M){if(_.U("web_button_rework")){M=_.S(M.detail);for(var z=M.next();!z.done;z=M.next())(z=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",z.value))&&this.showReplyDialog(z)}};
_.P.onYtNavigate=function(M){var z,J;(M=(z=_.G(M.detail.endpoint,_.v7a))==null?void 0:(J=z.dialog)==null?void 0:J.commentReplyDialogRenderer)&&this.showReplyDialog(M)};
_.P.onYtServiceRequestSent=function(M,z){M.stopPropagation();if(z.actions)for(M=0;M<z.actions.length;M++){var J=_.G(z.actions[M],Qya);J&&this.handleUpdateCommentVoteAction(J)}};
_.P.handleUpdateCommentVoteAction=function(M){this.voteCount=M.voteCount||_.id("0");M.voteStatus==="LIKE"?this.JSC$15724_ytdDislikeToggleButtonRenderer.toggle(!1):M.voteStatus==="DISLIKE"?this.JSC$15724_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15724_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15724_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.P.computeReplyButtonHidden=function(M){return M};
_.P.computeReplyButtonBeginning=function(M){return(M==null?0:M.replyButton)&&M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.P.computeReplyButtonEnd=function(M){return(M==null?0:M.replyButton)&&M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.P.computeActionButtonStyle=function(M){return(M==null?0:M.style)?M.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.P.onYtToggleButton=function(M){var z,J;this.isLiked=this.systemIcons&&!!((z=M.detail)==null?0:(J=z.actions)==null?0:J.like)};
w5.prototype.onYtToggleButton=w5.prototype.onYtToggleButton;w5.prototype.onButtonTooltipPositionChanged=w5.prototype.onButtonTooltipPositionChanged;w5.prototype.onYtServiceRequestSent=w5.prototype.onYtServiceRequestSent;w5.prototype.onYtNavigate=w5.prototype.onYtNavigate;w5.prototype.onRequestSent=w5.prototype.onRequestSent;w5.prototype.onYtCommentboxDismiss=w5.prototype.onYtCommentboxDismiss;w5.prototype.dataChange=w5.prototype.dataChange;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"voteCount",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"commentCount",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"replyThumbnail",void 0);
_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"hasCreatorReply",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],w5.prototype,"enableCreationBox",void 0);_.u([_.Y({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],w5.prototype,"actionButtonsStyle",void 0);_.u([_.Y({computed:"computeReplyButtonBeginning(data)"}),_.W("design:type",Object)],w5.prototype,"replyButtonBeginning",void 0);
_.u([_.Y({computed:"computeReplyButtonEnd(data)"}),_.W("design:type",Object)],w5.prototype,"replyButtonEnd",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"buttonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"replyButtonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"forceIconButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],w5.prototype,"useCommentIcon",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],w5.prototype,"modern",void 0);_.u([_.Y(),_.W("design:type",Object)],w5.prototype,"buttonTooltipPosition",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],w5.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],w5.prototype,"isLiked",void 0);_.u([_.Qc("ytd-button-renderer"),_.W("design:type",Object)],w5.prototype,"ytdReplyButtonRenderer",void 0);
_.u([_.Qc("#like-button"),_.W("design:type",Object)],w5.prototype,"JSC$15724_ytdLikeToggleButtonRenderer",void 0);_.u([_.Qc("#dislike-button"),_.W("design:type",Object)],w5.prototype,"JSC$15724_ytdDislikeToggleButtonRenderer",void 0);_.u([_.Qc("#reply-dialog"),_.W("design:type",HTMLElement)],w5.prototype,"replyDialogElement",void 0);_.u([_.Qc("#reply-button"),_.W("design:type",HTMLElement)],w5.prototype,"replyButtonElement",void 0);
_.u([_.Qc("#reply-button-end"),_.W("design:type",HTMLElement)],w5.prototype,"replyButtonEndElement",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w5.prototype,"dataChange",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w5.prototype,"onYtCommentboxDismiss",null);
_.u([_.Xw("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w5.prototype,"onRequestSent",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w5.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],w5.prototype,"onYtServiceRequestSent",null);_.u([_.la("buttonTooltipPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w5.prototype,"onButtonTooltipPositionChanged",null);
_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w5.prototype,"onYtToggleButton",null);_.u([_.c({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],w5);
_.d(w5,"ytd-comment-action-buttons-renderer",function(){if(LIk!==void 0)return LIk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return LIk=M},{mode:1});var i$$;var xx=function(){return _.g.apply(this,arguments)||this};
_.w(xx,_.g);xx.prototype.focus=function(){_.SN(this.hostElement).querySelector("#commentbox").focus()};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xx.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],xx.prototype,"zeroStepChannelCreationRenderer",void 0);_.u([_.c({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],xx);
_.d(xx,"ytd-comment-dialog-renderer",function(){if(i$$!==void 0)return i$$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return i$$=M},{mode:1});var CB$;var tC=function(){var M=_.g.apply(this,arguments)||this;M.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.U("enable_web_delhi_icons")};M.replyButtonOverrides={size:"S",type:"text"};return M};
_.w(tC,_.g);_.P=tC.prototype;_.P.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.P.detached=function(){this.replyBox&&this.replyBox.remove()};
_.P.showReplyDialog=function(M){if(M){var z=this.replyBox;z||(z=document.createElement("ytd-comment-reply-dialog-renderer"),z.id="replybox",_.SN(this.replyDialogDiv).appendChild(z));z.data=M;this.replyDialogDiv.hidden=!1;z.openDialog()}};
_.P.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.P.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var M,z=_.G((M=this.toolbarSurface)==null?void 0:M.subscribersOnlyDisclaimerSnackbarCommand,_.dv);z&&_.Pv(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:z})}};
_.P.onYtServiceRequestSent=function(M,z){M.stopPropagation();if(z.actions)for(var J=0;J<z.actions.length;J++){var R=_.G(z.actions[J],Qya);R?this.handleUpdateCommentVoteAction(R):M.target===this.heartButton&&this.toggleHeartState()}};
_.P.handleUpdateCommentVoteAction=function(M){var z;(z=this.toolbarState)!=null&&z.key&&this.ytdReduxBehavior.dispatch(_.hk("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:M.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":M.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.P.toggleHeartState=function(){var M;(M=this.toolbarState)!=null&&M.key&&this.ytdReduxBehavior.dispatch(_.hk("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.rX.Object.defineProperties(tC.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return(((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(z=this.toolbarData)==null?void 0:z.likeCountLiked:(J=this.toolbarData)==null?void 0:J.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand)!==void 0&&!_.U("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z=_.G((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.dv),J,R,D,N,Z,B,O,X,l;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((J=this.toolbarSharedData)==null||!J.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:z!=null?z:_.G((D=this.toolbarSurface)==null?void 0:D.likeCommand,_.dv),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.G((N=this.toolbarSurface)==null?void 0:N.unlikeCommand,_.dv),defaultCommand:this.isVisiblyDisabled?_.G((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.dv):void 0,defaultTooltip:(B=this.toolbarData)==null?void 0:B.likeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:O.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:(l=this.toolbarSharedData)==null?void 0:l.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z=_.G((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.dv),J,R,D,N,Z,B,O,X,l,e;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((J=this.toolbarSharedData)==null||!J.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.G((D=this.toolbarSurface)==null?void 0:D.dislikeCommand,_.dv),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.G((N=this.toolbarSurface)==null?void 0:N.undislikeCommand,_.dv),defaultCommand:this.isVisiblyDisabled?_.G((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.dv):void 0,defaultTooltip:(B=this.toolbarData)==null?void 0:B.dislikeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:
O.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(X=this.toolbarSharedData)==null?void 0:X.dislikeReplyButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(e=this.toolbarSharedData)==null?void 0:e.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z,J;if(((M=this.toolbarState)==null?void 0:M.heartState)!==void 0&&((z=this.toolbarState)==null?void 0:z.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((J=this.toolbarState)==null?void 0:J.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var R,D,N,Z,B,O,X,l,e,Q,v,x,m,y;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(R=this.toolbarData)==null?void 0:R.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((D=this.toolbarState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.G((O=this.toolbarSurface)==null?void 0:O.heartCommand,
_.dv),unheartEndpoint:this.isVisiblyDisabled?void 0:_.G((X=this.toolbarSurface)==null?void 0:X.unheartCommand,_.dv),disabledEndpoint:this.isVisiblyDisabled?_.G((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.dv):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(e=this.toolbarData)==null?void 0:e.heartActiveTooltip,unheartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((v=
this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(x=this.toolbarSharedData)==null?void 0:x.unheartButtonA11y:(m=this.toolbarSharedData)==null?void 0:m.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(y=this.toolbarSharedData)==null?void 0:y.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.toolbarSurface)==null||!M.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(M=this.commentStrings)==null?void 0:M.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.G((z=this.toolbarSurface)==null?void 0:z.replyCommand,_.dv),command:this.isVisiblyDisabled?_.G((J=this.toolbarSurface)==null?
void 0:J.commentDisabledActionCommand,_.dv):this.isSubsOnlyCommentsIneligibleUser?_.G((R=this.toolbarSurface)==null?void 0:R.subscribersOnlySnackbarCommand,_.dv):void 0}}}});
tC.prototype.onYtServiceRequestSent=tC.prototype.onYtServiceRequestSent;tC.prototype.hideReplyDialogDiv=tC.prototype.hideReplyDialogDiv;_.u([_.Y(),_.W("design:type",Object)],tC.prototype,"commentStrings",void 0);_.u([_.Y(),_.W("design:type",Boolean)],tC.prototype,"isReply",void 0);_.u([_.Y(),_.W("design:type",Object)],tC.prototype,"toolbarData",void 0);_.u([_.Y(),_.W("design:type",Object)],tC.prototype,"toolbarSharedData",void 0);
_.u([_.Y(),_.W("design:type",String)],tC.prototype,"toolbarStateKey",void 0);_.u([_.Y(),_.W("design:type",String)],tC.prototype,"toolbarSurfaceKey",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.N4),_.W("design:type",Object)],tC.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.Qc("#reply-dialog"),_.W("design:type",HTMLElement)],tC.prototype,"replyDialogDiv",void 0);_.u([_.Qc("#replybox"),_.W("design:type",Object)],tC.prototype,"replyBox",void 0);_.u([_.Qc("ytd-creator-heart-renderer"),_.W("design:type",Object)],tC.prototype,"heartButton",void 0);_.u([_.Y({selector:function(M,z){return _.Is(M.entities,"engagementToolbarStateEntityPayload",z)},
selectorArgs:["toolbarStateKey"]}),_.W("design:type",Object)],tC.prototype,"toolbarState",void 0);_.u([_.Y({selector:H8R,selectorArgs:["toolbarSurfaceKey"]}),_.W("design:type",Object)],tC.prototype,"toolbarSurface",void 0);_.u([_.Y(),_.W("design:type",Object)],tC.prototype,"buttonOverrides",void 0);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tC.prototype,"hideReplyDialogDiv",null);
_.u([_.F("toolbarData","toolbarState"),_.W("design:type",String),_.W("design:paramtypes",[])],tC.prototype,"likeCount",null);_.u([_.F("likeCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"showLikeCount",null);_.u([_.F("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"isVisiblyDisabled",null);_.u([_.F("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.u([_.F("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"isSubsOnlyCommentsEligibleUser",null);_.u([_.F("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"hasPrepareAccountCommand",null);_.u([_.F("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],tC.prototype,"likeToggleButtonRenderer",null);
_.u([_.F("isReply","toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],tC.prototype,"dislikeToggleButtonRenderer",null);_.u([_.F("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],tC.prototype,"creatorHeartSupportedRenderer",null);_.u([_.F("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tC.prototype,"hasReplyCommand",null);
_.u([_.F("toolbarSurface","commentStrings","isVisiblyDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],tC.prototype,"replyButtonRenderer",null);_.u([_.Y(),_.W("design:type",Object)],tC.prototype,"replyButtonOverrides",void 0);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],tC.prototype,"onYtServiceRequestSent",null);_.u([_.c({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],tC);
_.d(tC,"ytd-comment-engagement-bar",function(){if(CB$!==void 0)return CB$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return CB$=M},{mode:1});var b$k;var jG=function(){return _.g.apply(this,arguments)||this};
_.w(jG,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jG.prototype,"data",void 0);_.u([_.c({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],jG);
_.d(jG,"ytd-comment-inline-thumbnail-renderer",function(){if(b$k!==void 0)return b$k;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return b$k=M},{mode:1});var rRS;var pU=function(){return _.g.apply(this,arguments)||this};
_.w(pU,_.g);pU.prototype.onMessageTap=function(){if(this.onTapCommand){var M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);M&&this.ytdOpenPopupBehavior.openPopup(M)}};
_.rX.Object.defineProperties(pU.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return(M=this.data)==null?void 0:(z=M.button)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.command}}});
_.u([_.p(_.N4),_.W("design:type",Object)],pU.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pU.prototype,"data",void 0);_.u([_.F("data.button.buttonRenderer.command"),_.W("design:type",Object),_.W("design:paramtypes",[])],pU.prototype,"onTapCommand",null);_.u([_.c({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],pU);
_.d(pU,"ytd-comment-pause-composer-renderer",function(){if(rRS!==void 0)return rRS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rRS=M},{mode:1});var Mv$;var zPa;var FF=function(){var M=_.g.apply(this,arguments)||this;M.isOpen=!1;return M};
_.w(FF,_.g);_.P=FF.prototype;_.P.dataChanged=function(){this.isOpen=!1};
_.P.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.P.focus=function(){this.JSC$15754_commentbox.focus()};
_.P.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.P.openDialog=function(){this.isOpen=!0;this.JSC$15754_commentbox.focus();this.JSC$15754_commentbox.maybeHeightChanged()};
FF.prototype.onYtCommentboxDismiss=FF.prototype.onYtCommentboxDismiss;FF.prototype.dataChanged=FF.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],FF.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],FF.prototype,"isOpen",void 0);_.u([_.Qc("#commentbox"),_.W("design:type",Object)],FF.prototype,"JSC$15754_commentbox",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FF.prototype,"dataChanged",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],FF.prototype,"onYtCommentboxDismiss",null);_.u([_.c({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],FF);
_.d(FF,"ytd-comment-reply-dialog-renderer",function(){if(zPa!==void 0)return zPa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return zPa=M},{mode:1});var Jlk;var Yx=function(){return _.g.apply(this,arguments)||this};
_.w(Yx,_.g);_.rX.Object.defineProperties(Yx.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.icon)==null?void 0:z.iconType;return J?"yt-icons:"+J.toLowerCase():null}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Yx.prototype,"data",void 0);_.u([_.Y(),_.F("data.icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],Yx.prototype,"icon",null);_.u([_.c({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Yx);
_.d(Yx,"ytd-pinned-comment-badge-renderer",function(){if(Jlk!==void 0)return Jlk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Jlk=M},{mode:1});var RPS;var Dla={},Nzg={input:!0,meta:!0,br:!0,link:!0,img:!0},m0=null;Dla.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(){m0==null&&(m0=document.createElement("tp-yt-paper-tooltip"),m0.offset=8,m0.fitToVisibleBounds=!0)},
onMouseOver_:function(M){if(M=_.cj(M.target,function(D){return D==this||D.getAttribute&&D.getAttribute("shared-tooltip-text")}.bind(this),!0)){var z=M.getAttribute("shared-tooltip-text");
if(z){var J=this,R=null;M!=this&&(M.tagName.toLowerCase()in Nzg?J=M.parentElement:J=M,M.id&&(R=M.id));this.polymerController.createTooltipIfRequired_();if(m0.parentElement!=J||m0.for!=R)(0,_.OV)(m0).textContent=z,_.SN(J).appendChild(m0),m0.for=R,m0.animationDelay=this.polymerController.sharedTooltipAnimationDelay,m0.position=this.polymerController.sharedTooltipPosition}}}};var g5=function(){return _.g.apply(this,arguments)||this};
_.w(g5,_.g);g5.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]]"}}}}}};
g5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
g5.prototype.colorChanged=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.color)==null?void 0:(J=z.basicColorPaletteData)==null?void 0:J.foregroundBodyColor;R&&(this.rgbBadgeColor=_.u7(R));_.SN(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
g5.prototype.tooltipChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
g5.prototype.tooltipChanged=g5.prototype.tooltipChanged;g5.prototype.colorChanged=g5.prototype.colorChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(Dla.YtSharedTooltipBehavior),_.W("design:type",Object)],g5.prototype,"ytSharedTooltipBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],g5.prototype,"data",void 0);
_.u([_.Y({value:"#4285F4"}),_.W("design:type",String)],g5.prototype,"rgbBadgeColor",void 0);_.u([_.la("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g5.prototype,"colorChanged",null);_.u([_.la("data.tooltip"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g5.prototype,"tooltipChanged",null);_.u([_.c({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],g5);
_.d(g5,"ytd-sponsor-comment-badge-renderer",function(){if(RPS!==void 0)return RPS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return RPS=M},{mode:1});var Pe2;var SpV;var sO=function(){return _.g.apply(this,arguments)||this};
_.w(sO,_.g);sO.prototype.computeState=function(M){switch(M==null?void 0:M.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
sO.prototype.updateStateIdentifier=function(M){if(this.viewModel.triStateKey){var z=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.hk("triStateButtonStateEntityPayload",z,{key:z,stateIdentifier:M}))}};
sO.prototype.onClick=function(){var M=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.rX.Object.defineProperties(sO.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.buttonText)||""}}});
_.u([_.Y(),_.W("design:type",Object)],sO.prototype,"viewModel",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],sO.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.u([_.Y({selector:c7R,selectorArgs:["viewModel.triStateKey"]}),_.W("design:type",Object)],sO.prototype,"triStateButtonStateEntity",void 0);
_.u([_.Y({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.W("design:type",String)],sO.prototype,"state",void 0);_.u([_.F("viewModel","state"),_.W("design:type",Object),_.W("design:paramtypes",[])],sO.prototype,"data",null);_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],sO.prototype,"buttonText",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],sO);
_.d(sO,"ytd-tri-state-button-view-model",function(){if(SpV!==void 0)return SpV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SpV=M},{mode:1});var ZIu;var kKJ;var nU=function(){var M=_.g.apply(this,arguments)||this;M.defaultIconToFilled=!_.U("kevlar_fill_comment_chip_icon_killswitch");return M};
_.w(nU,_.g);nU.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
nU.prototype.dataChanged=function(){if(this.data){var M,z;((M=this.data.chipColorPalette)==null?0:M.backgroundColor)&&((z=this.data.chipColorPalette)==null?0:z.foregroundTitleColor)&&_.Tp(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.qG(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.qG(this.data.chipColorPalette.foregroundTitleColor)});var J;((J=this.data)==null?0:J.command)?(_.Tp(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Tp(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}};
nU.prototype.onTap=function(){var M;if(this.data&&(M=this.data)!=null&&M.command){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.command)}};
nU.prototype.getIconSize=function(){return _.U("kevlar_fill_comment_chip_icon_killswitch")?24:12};
nU.prototype.onTap=nU.prototype.onTap;nU.prototype.dataChanged=nU.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],nU.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.pH),_.W("design:type",Object)],nU.prototype,"ironA11yKeysBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nU.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],nU.prototype,"basePriceText",void 0);_.u([_.Y(),_.W("design:type",Object)],nU.prototype,"chipIcon",void 0);_.u([_.Y(),_.W("design:type",Object)],nU.prototype,"defaultIconToFilled",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nU.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nU.prototype,"onTap",null);
_.u([_.cU({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],nU);
_.d(nU,"yt-pdg-comment-chip-renderer",function(){if(kKJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;ZIu===void 0&&(ZIu=document.createElement("template"));var R=ZIu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);kKJ=M}M=kKJ;return M},{mode:2});var hC=function(){var M=_.g.apply(this,arguments)||this;M.useSmallAvatars=_.U("small_avatars_for_comments");M.webWatchCompactComments=_.U("web_watch_compact_comments");M.editDialog=null;return M};
_.w(hC,_.g);_.P=hC.prototype;_.P.onShow=function(){_.yC("cmv",void 0,"wn_comments")};
_.P.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.P.detached=function(){this.editDialog=null;this.expander.reset()};
_.P.updateBackgroundColor=function(){if(this.backgroundColor){var M={"--ytd-comment-paid-background-color":_.qG(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Tp(this.hostElement,M)}else _.Tp(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.P.resetExpander=function(){var M;(M=this.expander)==null||M.reset()};
_.P.openEditDialog=function(M){M.dialog&&(this.editDialog=M.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.P.onYtNavigate=function(M){var z=M.detail.endpoint;if(z=_.G(z,_.Gdu)||_.G(z,_.ww$))M.stopPropagation(),this.openEditDialog(z)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null;_.Tp(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.P.onAuthorThumbnailClicked=function(){_.U("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.P.onYtCommentboxResize=function(M){var z;(M==null?0:(z=M.detail)==null?0:z.height)&&_.Tp(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":M.detail.height+"px"})};
_.rX.Object.defineProperties(hC.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.commentEntity)==null?void 0:M.author;return z&&(z.isCreator||z.isVerified||z.isArtist)?{renderer:{authorEndpoint:z.channelPageEndpoint?_.G(z.channelPageEndpoint,_.dv):_.G(z.channelCommand,_.dv),authorText:{runs:[{text:z.displayName}]},color:z.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:z.isArtist?{iconType:"AUDIO_BADGE"}:
z.isVerified?{iconType:z.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:z.isArtist||z.isVerified?z.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.commentEntity)==null?void 0:M.author;return z!=null&&z.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:z.sponsorBadgeUrl}]},tooltip:z.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return _.G((M=this.commentSurfaceEntity)==null?void 0:M.pdgCommentChip,_.C$$)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&((M=this.voiceReplyContainerViewModel)==null?void 0:M.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return _.G((M=this.commentSurfaceEntity)==null?void 0:M.voiceReplyContainerViewModel,FiV)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&(M=this.voiceReplyContainerViewModel)!=null&&M.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.commentSurfaceEntity)==null?void 0:M.commentBackgroundColor)!=null?z:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var M,z;return(((M=this.commentEntity)==null?void 0:(z=M.properties)==null?void 0:z.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,z;if(_.U("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(z=M.author)==null?0:z.profileCardEndpoint)&&this.viewModel.allowProfileCard){var J,R;return _.G((J=this.commentEntity)==null?void 0:(R=J.author)==null?void 0:R.profileCardEndpoint,_.dv)}var D,N;return _.G((D=this.commentEntity)==null?void 0:(N=D.avatar)==null?void 0:N.endpoint,_.dv)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,z;if(_.U("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(z=M.author)==null?0:z.channelPageEndpoint)){var J,R;return _.G((J=this.commentEntity)==null?void 0:(R=J.author)==null?void 0:R.channelPageEndpoint,_.dv)}var D,N;return _.G((D=this.commentEntity)==null?void 0:(N=D.avatar)==null?void 0:N.endpoint,_.dv)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D=(M=this.commentEntity)==null?void 0:(z=M.avatar)==null?void 0:(J=z.image)==null?void 0:(R=J.sources)==null?void 0:R[0];return D?{thumbnails:[{url:D.url,width:D.width,height:D.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.commentEntity)==null?0:(z=M.author)==null?0:z.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.commentEntity)==null?void 0:(z=M.author)==null?void 0:z.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.commentEntity)==null?void 0:(z=M.properties)==null?void 0:z.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.G((M=this.commentSurfaceEntity)==null?void 0:M.publishedTimeCommand,_.dv)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var M,z;if(((M=this.commentEntity)==null?0:M.translatedContent)&&((z=this.translateButtonState)==null?void 0:z.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var J;if((J=this.voiceReplyContainerViewModel)==null?0:J.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var R,D;return((R=this.commentEntity)==null?void 0:(D=R.properties)==null?void 0:D.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.commentSharedEntity)==null?void 0:(z=M.strings)==null?void 0:z.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.commentSharedEntity)==null?void 0:(z=M.strings)==null?void 0:z.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentEntity)==null||!M.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var M,z,J=(z=_.G((M=this.viewModel)==null?void 0:M.translateButton,pRv))!=null?z:{},R,D,N,Z,B,O,X,l,e,Q,v;return Object.assign({},J,{untoggledStateData:Object.assign({},J.untoggledStateData,{buttonText:(R=this.commentEntity)==null?void 0:(D=R.translateData)==null?void 0:D.text}),togglingStateData:Object.assign({},J.togglingStateData,{buttonText:(N=this.commentSharedEntity)==null?
void 0:(Z=N.strings)==null?void 0:Z.translatingText}),toggledStateData:Object.assign({},J.toggledStateData,{buttonText:(B=this.commentSharedEntity)==null?void 0:(O=B.strings)==null?void 0:O.seeOriginalText}),transitionCommand:((X=this.commentEntity)==null?0:X.translatedContent)?void 0:_.G((l=this.commentEntity)==null?void 0:(e=l.translateData)==null?void 0:e.translateComment,_.dv),triStateKey:(Q=this.commentEntity)==null?void 0:(v=Q.properties)==null?void 0:v.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((z=_.G(_.G((M=this.toolbarSurface)==null?void 0:M.menuCommand,_.dv),x0k))==null?void 0:(J=z.menu)==null?void 0:J.menuRenderer)||null}}});
hC.prototype.onYtCommentboxResize=hC.prototype.onYtCommentboxResize;hC.prototype.onYtCommentboxDismiss=hC.prototype.onYtCommentboxDismiss;hC.prototype.onYtNavigate=hC.prototype.onYtNavigate;hC.prototype.resetExpander=hC.prototype.resetExpander;hC.prototype.updateBackgroundColor=hC.prototype.updateBackgroundColor;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],hC.prototype,"ytdReduxBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#author-thumbnail > button"),_.W("design:type",HTMLElement)],hC.prototype,"authorThumbnailAnchor",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hC.prototype,"linked",null);
_.u([_.F("viewModel","linked"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"linkedCommentBadge",null);_.u([_.Y({reflectToAttribute:!0}),_.F("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hC.prototype,"pinned",null);_.u([_.F("viewModel","pinned"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"pinnedCommentBadge",null);
_.u([_.F("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"authorCommentBadge",null);_.u([_.Y({reflectToAttribute:!0}),_.F("authorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"hasAuthorBadge",null);_.u([_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"sponsorCommentBadge",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("sponsorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"hasSponsorBadge",null);_.u([_.F("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"pdgCommentChipRenderer",null);_.u([_.Y({reflectToAttribute:!0}),_.F("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"hasVoiceReply",null);
_.u([_.F("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"voiceReplyContainerViewModel",null);_.u([_.F("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"voiceReplyUnavailableText",null);_.u([_.Y(),_.W("design:type",Object)],hC.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"viewModel",null);
_.u([_.Y({selector:function(M,z){return _.Is(M.entities,"commentSharedEntityPayload",z)},
selectorArgs:["viewModel.sharedKey"]}),_.W("design:type",Object)],hC.prototype,"commentSharedEntity",void 0);_.u([_.Y({selector:function(M,z){return _.Is(M.entities,"commentEntityPayload",z)},
selectorArgs:["viewModel.commentKey"]}),_.W("design:type",Object)],hC.prototype,"commentEntity",void 0);_.u([_.Y({selector:function(M,z){return _.Is(M.entities,"commentSurfaceEntityPayload",z)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.W("design:type",Object)],hC.prototype,"commentSurfaceEntity",void 0);_.u([_.Y({selector:H8R,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.W("design:type",Object)],hC.prototype,"toolbarSurface",void 0);_.u([_.Y({selector:c7R,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.W("design:type",Object)],hC.prototype,"translateButtonState",void 0);
_.u([_.F("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"backgroundColor",null);_.u([_.Y({reflectToAttribute:!0}),_.F("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hC.prototype,"optimalReadingWidthComments",null);_.u([_.Qc("ytd-expander"),_.W("design:type",Object)],hC.prototype,"expander",void 0);
_.u([_.la("backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hC.prototype,"updateBackgroundColor",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hC.prototype,"useSmallAvatars",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hC.prototype,"webWatchCompactComments",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"isReply",null);
_.u([_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"authorThumbnailEndpoint",null);_.u([_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"authorNameEndpoint",null);_.u([_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"authorThumbnail",null);_.u([_.F("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],hC.prototype,"authorTextClass",null);
_.u([_.F("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],hC.prototype,"authorChannelName",null);_.u([_.F("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"publishedTime",null);_.u([_.F("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"publishedTimeCommand",null);
_.u([_.F("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"contentText",null);_.u([_.la("contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hC.prototype,"resetExpander",null);_.u([_.F("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hC.prototype,"shouldShowReadMoreInitially",null);
_.u([_.F("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],hC.prototype,"expandText",null);_.u([_.F("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],hC.prototype,"collapseText",null);_.u([_.F("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hC.prototype,"shouldShowTranslateButton",null);
_.u([_.F("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"translateButton",null);_.u([_.F("toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],hC.prototype,"overflowMenuRenderer",null);_.u([_.Y(),_.W("design:type",Object)],hC.prototype,"editDialog",void 0);_.u([_.Qc("ytd-comment-dialog-renderer"),_.W("design:type",Object)],hC.prototype,"editCommentDialogContainer",void 0);
_.u([_.Qc("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],hC.prototype,"editReplyDialogContainer",void 0);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hC.prototype,"onYtNavigate",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hC.prototype,"onYtCommentboxDismiss",null);
_.u([_.Xw("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hC.prototype,"onYtCommentboxResize",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-comment-view-model"})],hC);
_.d(hC,"ytd-comment-view-model",function(){if(Pe2!==void 0)return Pe2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Pe2=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var yh=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_modern_buttons");M.commentThreadingEnabled=_.U("web_delhi_comment_threads");M.isWatchGrid=_.U("kevlar_watch_grid");M.buttonOverrides=M.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};M.JSC$15800_spinnerEl=null;return M};
_.w(yh,_.g);_.P=yh.prototype;_.P.configureContinuationPathMap=function(){return _.U("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.shouldShowExpandedThreads=function(M,z){return this.commentThreadingEnabled&&!z&&(M==null?void 0:M.length)>0};
_.P.shouldShowCollapsedThreads=function(M,z){return this.commentThreadingEnabled&&z&&M};
_.P.computeThreadRenderer=function(M){return _.G(M,Ukg)};
_.P.computeIsContinuationItem=function(M){return!!this.computeContinuationItemRenderer(M)};
_.P.computeButtonRenderer=function(M){return _.G(M,_.aR)};
_.P.computeContinuationItemRenderer=function(M){return _.G(M,_.z0)};
_.P.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.P.attached=function(){this.isShowRepliesVisible=!0};
_.P.dataChanged=function(){var M=this.expanderContents;M&&(M.hidden=!0);this.isLoading=!1};
_.P.endsInContinuation=function(M){return!!M&&M.length>0&&!!this.computeContinuationItemRenderer(M[M.length-1])};
_.P.computeShouldShowHideRepliesButton=function(M,z){return!M&&z};
_.P.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.P.isLoadingChanged=function(){this.isLoading&&!this.JSC$15800_spinnerEl&&(this.JSC$15800_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SN(this.expanderContents).appendChild(this.JSC$15800_spinnerEl));this.JSC$15800_spinnerEl&&(this.JSC$15800_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var M;(M=this.contents)==null||M.classList.remove("reloading")}};
_.P.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var M=_.G(this.data.viewReplies,_.aR);M&&this.ytRendererBehavior.logExplicitClick(M);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.P.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var M=_.G(this.data.hideReplies,_.aR);M&&this.ytRendererBehavior.logExplicitClick(M);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.P.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var M=_.SN(this.hostElement).querySelector("#expander-contents");M&&(M.hidden=this.isShowRepliesVisible)}};
_.P.computeAlign=function(){if(this.modern){var M;return!((M=this.data)==null?0:M.viewRepliesCreatorThumbnail)}};
_.rX.Object.defineProperties(yh.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.endsInContinuation((M=this.data)==null?void 0:M.contents)||this.commentThreadingEnabled&&this.endsInContinuation((z=this.data)==null?void 0:z.subThreads)}}});
yh.prototype.isShowMoreChanged=yh.prototype.isShowMoreChanged;yh.prototype.isLoadingChanged=yh.prototype.isLoadingChanged;yh.prototype.triggerFirstContinuation=yh.prototype.triggerFirstContinuation;yh.prototype.dataChanged=yh.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.AU),_.W("design:type",Object)],yh.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yh.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yh.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yh.prototype,"commentThreadingEnabled",void 0);_.u([_.Y(),_.W("design:type",Boolean)],yh.prototype,"collapsed",void 0);
_.u([_.Y(),_.W("design:type",Function)],yh.prototype,"toggleCollapsed",void 0);_.u([_.Y(),_.W("design:type",Boolean)],yh.prototype,"isLoading",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],yh.prototype,"isShowRepliesVisible",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],yh.prototype,"useNewFormatting",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yh.prototype,"isWatchGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],yh.prototype,"buttonOverrides",void 0);
_.u([_.Qc("#expander-contents"),_.W("design:type",HTMLElement)],yh.prototype,"expanderContents",void 0);_.u([_.Qc("ytd-continuation-item-renderer"),_.W("design:type",Object)],yh.prototype,"continuationItemRenderer",void 0);_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],yh.prototype,"contents",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yh.prototype,"dataChanged",null);
_.u([_.F("data.contents","data.subThreads.*"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yh.prototype,"hasContinuation",null);_.u([_.Xw("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yh.prototype,"triggerFirstContinuation",null);_.u([_.la("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yh.prototype,"isLoadingChanged",null);
_.u([_.la("isShowRepliesVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yh.prototype,"isShowMoreChanged",null);_.u([_.c({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],yh);
_.d(yh,"ytd-comment-replies-renderer",function(){if(Mv$!==void 0)return Mv$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content 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="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Mv$=M},{mode:1});var BzS;var He=function(){var M=_.g.apply(this,arguments)||this;M.isOpen=!1;M.commentDialog=null;M.useSmallAvatars=_.U("small_avatars_for_comments");M.useSmallAvatarsEngagementPanelOnly=_.U("small_avatars_for_comments_ep");M.placeholderFocusListener=null;M.hasOpenedDialog=!1;M.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return M};
_.w(He,_.g);_.P=He.prototype;_.P.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.P.ready=function(){var M=this,z=_.SN(this.hostElement).querySelector("#placeholder-area"),J=_.SN(this.hostElement).querySelector("#simplebox-placeholder"),R=function(D){D.stopPropagation();D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||M.openDialog()};
this.placeholderFocusListener=R;J.addEventListener("focus",this.placeholderFocusListener);z.addEventListener("tap",R);z.addEventListener("keypress",R)};
_.P.maybeRemoveFocusEventListener=function(){var M;(M=this.data)!=null&&M.prepareAccountEndpoint&&!_.U("web_comments_simplebox_modal_focus_on_tap_ks")&&(M=_.SN(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(M.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.P.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.P.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.U("web_comment_simplebox_resolve_polymer_command_ks")?_.l5.instance.resolveCommand(this.data.prepareAccountEndpoint):_.e5(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);M&&this.ytdOpenPopupBehavior.openPopup(M);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.SN(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.P.onYtCommentboxDismiss=function(M){M.stopPropagation();this.isOpen=!1};
_.P.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.isOpen=!1)};
_.P.computeCommentDialog=function(M){return{placeholderText:M.placeholderText,authorThumbnail:M.authorThumbnail,submitButton:M.submitButton,imageButton:M.imageButton,cancelButton:M.cancelButton,emojiButton:M.emojiButton,emojis:M.emojis,emojiPicker:M.emojiPicker,aadcGuidelinesStateEntityKey:M.aadcGuidelinesStateEntityKey,openAadcDialog:M.openAadcDialog,unicodeEmojisUrl:M.unicodeEmojisUrl}};
_.P.onHideIdentityChip=function(M){_.G(M,ICQ)&&this.set("data.placeholderText",_.G(M,ICQ).placeholderText)};
He.prototype.onYtCommentboxDismiss=He.prototype.onYtCommentboxDismiss;He.prototype.dataChanged=He.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],He.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],He.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],He.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],He.prototype,"isOpen",void 0);_.u([_.Y(),_.W("design:type",Object)],He.prototype,"commentDialog",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],He.prototype,"engagementPanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],He.prototype,"useSmallAvatars",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],He.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],He.prototype,"enableCreationBox",void 0);_.u([_.Y(),_.W("design:type",Boolean)],He.prototype,"showCreateDialog",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],He.prototype,"dataChanged",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],He.prototype,"onYtCommentboxDismiss",null);_.u([_.c({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],He);
_.d(He,"ytd-comment-simplebox-renderer",function(){if(BzS!==void 0)return BzS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return BzS=M},{mode:1});var OIV;_.nn("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var ce=function(){var M=_.g.apply(this,arguments)||this;M.addHoverEffect=_.U("swatcheroo_comments_hover_effect");M.useSmallAvatars=_.U("small_avatars_for_comments");M.threadHovered=!1;M.collapsed=!1;M.removed=!1;M.actionMap=M.configureActionMap();M.toggleCollapsed=function(){M.collapsed=!M.collapsed;M.collapsed&&_.U("web_comment_threading_scroll_on_collapse")&&_.S9(M.hostElement,"yt-scroll-to-watch-element",[M.commentElement])};
return M};
_.w(ce,_.g);_.P=ce.prototype;_.P.configureActionMap=function(){return _.U("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.P.createCommentReplyAction=function(M){M=_.G(M,OsS);if(M!=null&&M.contents){var z=M.replyToCommentId,J=M.parentCommentId,R,D=(R=this.commentViewModel)==null?void 0:R.commentId;(D===z||D===J&&!z)&&this.attachReply(M.contents)}};
_.P.attachReply=function(M){var z;((z=this.data)==null?0:z.replies)?(z=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+z+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",z,0,M):this.push("data.replies.commentRepliesRenderer.subThreads",M)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[M]}})};
_.P.removeCommentAction=function(M){M=_.G(M,lCa);var z=M==null?void 0:M.commentId,J;z&&((J=this.commentViewModel)==null?void 0:J.commentId)===z&&this.maybeRemoveComment(M.actionResult)};
_.P.banAuthorAction=function(M){M=_.G(M,kQ$);var z=M==null?void 0:M.commentId,J;z&&((J=this.commentViewModel)==null?void 0:J.commentId)===z&&this.maybeRemoveComment(M.actionResult)};
_.P.hideReportedCommentAction=function(M){M=_.G(M,syg);var z=M==null?void 0:M.commentId,J;z&&((J=this.commentViewModel)==null?void 0:J.commentId)===z&&this.maybeRemoveComment(M.actionResult)};
_.P.maybeRemoveComment=function(M){M&&M.status==="STATUS_SUCCEEDED"&&(this.feedbackText=M.feedbackText||_.JN("Comment removed"),this.removed=!0)};
_.P.onTap=function(M){if(this.addHoverEffect&&!this.engagementPanel&&!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||_.e5({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.P.attached=function(){var M=this,z;(z=this.commentThreadHitbox)==null||z.addEventListener("mouseover",function(){M.threadHovered=!0});
var J;(J=this.commentThreadHitbox)==null||J.addEventListener("mouseout",function(){M.threadHovered=!1});
var R;(R=this.commentThreadHitbox)==null||R.addEventListener("click",function(){M.maybeToggleCollapsed()})};
_.P.maybeToggleCollapsed=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.replies)==null?void 0:(J=z.commentRepliesRenderer)==null?void 0:J.subThreads;R&&(R.length===1&&_.G(R[0],_.z0)||this.toggleCollapsed())};
_.rX.Object.defineProperties(ce.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.commentViewModel)return _.G(this.data.commentViewModel,jyt)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return _.U("web_delhi_comment_threads")&&!!((M=this.data)==null?0:(z=M.replies)==null?0:(J=z.commentRepliesRenderer)==null?0:J.subThreads)}}});
ce.prototype.onTap=ce.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ce.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ce.prototype,"addHoverEffect",void 0);
_.u([_.Y(),_.W("design:type",Object)],ce.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ce.prototype,"useSmallAvatars",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ce.prototype,"isSubThread",void 0);_.u([_.Qc(".thread-hitbox"),_.W("design:type",HTMLElement)],ce.prototype,"commentThreadHitbox",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ce.prototype,"threadHovered",void 0);
_.u([_.Qc("#comment"),_.W("design:type",HTMLElement)],ce.prototype,"commentElement",void 0);_.u([_.Y(),_.W("design:type",Object)],ce.prototype,"collapsed",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ce.prototype,"removed",void 0);_.u([_.Y(),_.W("design:type",Object)],ce.prototype,"feedbackText",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ce.prototype,"commentViewModel",null);
_.u([_.F("data.replies"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ce.prototype,"hasSubThreading",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ce.prototype,"engagementPanel",void 0);_.u([_.Xw("tap"),_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ce.prototype,"onTap",null);_.u([_.c({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],ce);
_.d(ce,"ytd-comment-thread-renderer",function(){if(OIV!==void 0)return OIV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return OIV=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var Tzg;var d5=function(){var M=_.g.apply(this,arguments)||this;M.modernTypography=_.U("web_modern_typography");M.compactHeader=_.U("web_watch_compact_comments_header");M.hidePanelButton=!1;M.isPostSchedulingEnabled=_.U("enable_post_scheduling");M.hasFinishedStamping=!1;M.JSC$15823_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.w(d5,_.g);_.P=d5.prototype;
_.P.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.P.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.P.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15823_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.onYtServiceRequestSent=function(M,z){if(!_.U("kevlar_command_handler")&&z.actions)for(M=0;M<z.actions.length;M++){var J=z.actions[M];_.G(J,cwu)&&_.SN(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.G(J,cwu))}};
_.P.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var M;if(this.getPrefilledBackstagePostDialog((M=this.data)==null?void 0:M.actions)){_.SN(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var z=_.SN(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;z&&_.C4(this,function(){z.focus();z.openDialog&&z.openDialog()})}}else this.hasActionsChange=!0};
_.P.computeIsBackstage=function(M){return M};
_.P.onYtCommentboxDismiss=function(){_.SN(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.P.removePrefilledDialog=function(M){if(M==null?0:M.actions){for(var z=M.actions.length-1;z>=0;z--){var J=void 0;((J=_.G(M.actions[z],U0u))==null?0:J.dialog)&&delete M.actions[z]}this.set("data",void 0);this.set("data",M)}};
_.P.getPrefilledBackstagePostDialog=function(M){if(M)for(var z=0;z<M.length;z++){var J=M[z],R=void 0;if((R=_.G(J,U0u))==null?0:R.dialog)return _.G(J,U0u).dialog}return null};
_.P.computeBackstagePostDialog=function(M){return M&&(this.getPrefilledBackstagePostDialog(M.actions)||M.createRenderer)};
_.P.dataChanged=function(){if(this.data){var M=this.data.customEmojis,z=this.data.unicodeEmojisUrl;_.As.clear();z&&_.OPp(_.As,z);M&&_.As.load(M)}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.SN(this.hostElement).querySelector("ytd-comment-simplebox-renderer");M?M.openDialog():this.JSC$15823_handleOpenPostCommentDialogActionAfterStamp=!0};
_.rX.Object.defineProperties(d5.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.U("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N,Z;return!this.hidePanelButton&&_.U("kevlar_watch_comments_panel_button")&&((Z=_.G((M=this.data)==null?void 0:(z=M.sortMenu)==null?void 0:(J=z.sortFilterSubMenuRenderer)==null?void 0:(R=J.subMenuItems)==null?void 0:(D=R[0])==null?void 0:(N=D.serviceEndpoint)==null?void 0:N.commandMetadata,_.X9))==null?void 0:Z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.e9("MINIPLAYER_EXPAND_LABEL"),text:_.id(_.e9("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
d5.prototype.dataChanged=d5.prototype.dataChanged;d5.prototype.onYtCommentboxDismiss=d5.prototype.onYtCommentboxDismiss;d5.prototype.observePrefilledBackstagePostDialog=d5.prototype.observePrefilledBackstagePostDialog;d5.prototype.onYtServiceRequestSent=d5.prototype.onYtServiceRequestSent;d5.prototype.onStampFinished=d5.prototype.onStampFinished;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],d5.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],d5.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],d5.prototype,"modernTypography",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],d5.prototype,"compactHeader",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],d5.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],d5.prototype,"hidePanelButton",void 0);_.u([_.Y({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.W("design:type",Boolean)],d5.prototype,"isBackstage",void 0);_.u([_.Y({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.W("design:type",Object)],d5.prototype,"backstagePostDialog",void 0);
_.u([_.Y(),_.W("design:type",Object)],d5.prototype,"isPostSchedulingEnabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],d5.prototype,"useSpaceBetween",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data","hidePanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],d5.prototype,"showCommentsPanelButton",null);
_.u([_.F("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],d5.prototype,"commentsPanelButtonData",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d5.prototype,"onStampFinished",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],d5.prototype,"onYtServiceRequestSent",null);
_.u([_.la("data.actions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d5.prototype,"observePrefilledBackstagePostDialog",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d5.prototype,"onYtCommentboxDismiss",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d5.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],d5);
_.d(d5,"ytd-comments-header-renderer",function(){if(Tzg!==void 0)return Tzg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Tzg=M},{mode:1});var I5p;var KU=function(){return _.g.apply(this,arguments)||this};
_.w(KU,_.g);_.u([_.Y(),_.W("design:type",Object)],KU.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.u([_.c({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],KU);
_.d(KU,"ytd-destination-button-renderer",function(){if(I5p!==void 0)return I5p;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return I5p=M},{mode:1});var o3t;var $x=function(){var M=_.g.apply(this,arguments)||this;M.isRichGrid=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.modernTypography=_.U("web_modern_typography");return M};
_.w($x,_.g);_.P=$x.prototype;_.P.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.P.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.P.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var M;if((M=this.data)==null||!M.isExpanded){M=this.hostElement.clientWidth;var z;if(M&&(z=this.data)!=null&&z.destinationButtons){z=Math.floor((M+4)/214);M=this.data.destinationButtons.length;var J=Math.ceil(M/z);this.fullyVisibleRows=M%z===1&&J===2?1:Math.min(J,2);this.isShowMoreVisible=this.fullyVisibleRows<J}}}};
_.P.updateRichGridDestinationButtonsVisibility=function(){var M,z;if(this.isRichGrid&&((M=this.data)==null||!M.isExpanded)&&(z=this.data)!=null&&z.destinationButtons){M=this.richGridItemsPerRow+1;z=this.data.destinationButtons.length;var J=Math.ceil(z/M);this.fullyVisibleRows=z%M===1&&J===2?1:Math.min(J,2);this.isShowMoreVisible=this.fullyVisibleRows<J}};
_.P.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$x.prototype.updateRichGridDestinationButtonsVisibility=$x.prototype.updateRichGridDestinationButtonsVisibility;_.u([_.Y(),_.W("design:type",Object)],$x.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Number)],$x.prototype,"fullyVisibleRows",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$x.prototype,"isShowMoreVisible",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$x.prototype,"isRichGrid",void 0);
_.u([_.Y({selector:_.y$,value:0}),_.W("design:type",Number)],$x.prototype,"richGridItemsPerRow",void 0);_.u([_.Y(),_.W("design:type",Object)],$x.prototype,"gridStateActionMap",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],$x.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$x.prototype,"modernTypography",void 0);_.u([_.la("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$x.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.u([_.c({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],$x);
_.d($x,"ytd-destination-shelf-renderer",function(){if(o3t!==void 0)return o3t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return o3t=M},{mode:1});var XQJ;var uV=function(){return _.g.apply(this,arguments)||this};
_.w(uV,_.g);uV.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uV.prototype,"data",void 0);_.u([_.c({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],uV);
_.d(uV,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(XQJ!==void 0)return XQJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return XQJ=M},{mode:1});var l5a;var qO=function(){var M=_.g.apply(this,arguments)||this;M.disableAnimation=!1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;return M};
_.w(qO,_.g);qO.prototype.onTap=function(M){M.preventDefault();this.data&&_.Pv(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.rX.Object.defineProperties(qO.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D;return((M=this.data)==null?0:M.checked)?(z=this.data)==null?void 0:(J=z.onStateIcon)==null?void 0:J.iconType:(R=this.data)==null?void 0:(D=R.defaultStateIcon)==null?void 0:D.iconType}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qO.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],qO.prototype,"disableAnimation",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qO.prototype,"isSlimlineSurvey",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qO.prototype,"isSlimlineSurveyFollowUp",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qO.prototype,"isShortsStyle",void 0);_.u([_.F("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qO.prototype,"isAnimatedIcon",null);
_.u([_.F("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],qO.prototype,"iconSize",null);_.u([_.F("isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qO.prototype,"isDarkTheme",null);_.u([_.F("data.checked"),_.W("design:type",Object),_.W("design:paramtypes",[])],qO.prototype,"icon",null);_.u([_.c({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],qO);
_.d(qO,"ytd-rating-survey-option-renderer",function(){if(l5a!==void 0)return l5a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return l5a=M},{mode:2});var ePB;var We=function(){var M=_.g.apply(this,arguments)||this;M.firstResponseText=null;M.lastResponseText=null;M.selectedNonStarOption=null;M.hideOptions=!1;M.hideUndoButton=!0;M.disableAnimation=!1;M.showResponseRangeText=!1;M.selectedRatingIndex=-1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.slimlineSurveyRatingSelectedIndex=-1;return M};
_.w(We,_.g);_.P=We.prototype;_.P.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.P.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.P.onOptionChange=function(M,z){var J=this;M=z.onStateIcon&&z.defaultStateIcon&&z.onStateIcon.iconType===z.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Z,B){Z.responseText===z.responseText?J.isSlimlineSurvey?(J.selectedRatingIndex=B,J.ytdReduxBehavior.dispatch(Sz2(B))):(J.setSurveyOptionValue(B,!0,"checked"),J.setSurveyOptionValue(B,!0,"selected")):(J.setSurveyOptionValue(B,!1,"checked"),J.setSurveyOptionValue(B,
!1,"selected"))});
else if(M)this.selectedNonStarOption=z,this.hideOptions=!0;else{var R=this.ytRendererBehavior.getSimpleString(z.responseText),D=!0;this.getOptionRenderers().forEach(function(Z,B){J.setSurveyOptionValue(B,D,"checked");J.setSurveyOptionValue(B,!1,"selected");J.ytRendererBehavior.getSimpleString(Z.responseText)===R&&(D=!1,J.setSurveyOptionValue(B,!0,"selected"))})}M=z.responseEndpoint;
var N;z.followUpCommand&&(N=_.G(z.followUpCommand,qkg));this.isSlimlineSurvey?(this.resetComponent(),_.S9(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.S9(this.hostElement,"ytd-inline-survey-rating-select-action",[M,N])};
_.P.showSelectedOption=function(){var M=this;_.no.addJob(function(){var z=M.getOptionRenderers()[M.slimlineSurveyRatingSelectedIndex];M.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),z)},8,100)};
_.P.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(M){var z;return(z=_.G(M,aFt))!=null?z:{}}):[]};
_.P.onUndoClick=function(){this.resetComponent();_.S9(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.P.setSurveyOptionValue=function(M,z,J){this.notifyPath("data.ratings."+M+".ratingSurveyOptionRenderer."+J);this.set("data.ratings."+M+".ratingSurveyOptionRenderer."+J,z)};
_.P.resetComponent=function(){var M=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var z=this.getOptionRenderers(),J,R;this.firstResponseText=(R=(J=z[0])==null?void 0:J.responseText)!=null?R:null;var D,N;this.lastResponseText=(N=(D=z[z.length-1])==null?void 0:D.responseText)!=null?N:null;z.forEach(function(Z,B){M.setSurveyOptionValue(B,!1,"checked");M.setSurveyOptionValue(B,!1,"selected")})};
_.rX.Object.defineProperties(We.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
We.prototype.onOptionChange=We.prototype.onOptionChange;We.prototype.dataChanged=We.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],We.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],We.prototype,"firstResponseText",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"lastResponseText",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"selectedNonStarOption",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"hideOptions",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"hideUndoButton",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"disableAnimation",void 0);
_.u([_.Y(),_.W("design:type",Object)],We.prototype,"showResponseRangeText",void 0);_.u([_.Y(),_.W("design:type",Object)],We.prototype,"selectedRatingIndex",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],We.prototype,"isSlimlineSurvey",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],We.prototype,"isSlimlineSurveyFollowUp",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],We.prototype,"isShortsStyle",void 0);_.u([_.Y({selector:function(M){return M.ui.slimlineSurveyRatingSelectedIndex}}),
_.W("design:type",Object)],We.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.u([_.F("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],We.prototype,"isSingleSelect",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],We.prototype,"dataChanged",null);
_.u([_.Xw("ytd-rating-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],We.prototype,"onOptionChange",null);_.u([_.c({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],We);
_.d(We,"ytd-rating-survey-renderer",function(){if(ePB!==void 0)return ePB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ePB=M},{mode:1});var QD$;var Ulk;var v3S;var nuc=(Um.FIRSTDAYOFWEEK+1)%7,GKv=function(M,z,J,R){var D="";if(R.selection&&YtR(R.selection))lf(M,R.selection)&&(D+=" selected");else if(R.selection&&mu3(R.selection)){var N=R.selection.selectionState||"START_DATE";lf(M,R.selection.start)&&(D+=" period-start ",N==="START_DATE"&&(D+="selected"));lf(M,R.selection.end)&&(D+=" period-end ",N==="END_DATE"&&(D+="selected"));e4(M,R.selection.start)||e4(R.selection.end,M)||(D+=" highlighted")}if(e4(z,R.start)||e4(R.end,z))D+=" disabled";R.circleToday&&
lf(z,J)&&(D+=" today");return D};var a8=function(){return _.g.apply(this,arguments)||this};
_.w(a8,_.g);_.P=a8.prototype;_.P.attached=function(){var M=this;_.C4(this,function(){M.JSC$15857_calendarMain.scrollHeight>0&&(M.calendarConfig.selection?M.scrollToDate(gu3(M.calendarConfig.selection)):M.scrollToDate(M.calendarConfig.end))})};
_.P.updateSelection=function(M){M=hx8(Object.assign({},this.calendarConfig,{selection:M}),GKv);this.splice.apply(this,["renderData.months",0,M.length].concat(_.Yj(M)))};
_.P.scrollToDate=function(M){this.renderData&&(M=yyG(M,this.renderData),M!==void 0&&this.JSC$15857_calendarMain.scrollToIndex(M))};
_.P.scrollToNextMonth=function(){this.JSC$15857_calendarMain.scrollToIndex(this.JSC$15857_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$15857_calendarMain.firstVisibleIndex===0&&this.JSC$15857_calendarMain.scrollTo(0,0);this.JSC$15857_calendarMain.scrollToIndex(this.JSC$15857_calendarMain.firstVisibleIndex-1)};
_.P.handleDayClick=function(M){_.S9(this.hostElement,"ytd-calendar-date-clicked",[M.model.day.date])};
_.P.handleDayMouseDown=function(M){M.preventDefault();_.S9(this.hostElement,"ytd-calendar-date-mousedown",[M.model.day.date])};
_.P.handleDayMouseUp=function(M){_.S9(this.hostElement,"ytd-calendar-date-mouseup",[M.model.day.date])};
_.P.handleDayMouseEnter=function(M){M.preventDefault();_.S9(this.hostElement,"ytd-calendar-date-mouseenter",[M.model.day.date])};
_.P.handleDayMouseLeave=function(M){_.S9(this.hostElement,"ytd-calendar-date-mouseleave",[M.model.day.date])};
_.rX.Object.defineProperties(a8.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var M=this.calendarConfig,z=GKv;z=z===void 0?GKv:z;for(var J=[],R=0;R<7;R++)J.push(Um.NARROWWEEKDAYS[(R+nuc)%7]);return{months:hx8(M,z),daysOfWeekLabel:J}}}});
_.u([_.Y(),_.W("design:type",Object)],a8.prototype,"calendarConfig",void 0);_.u([_.Qc("#calendar-main"),_.W("design:type",Object)],a8.prototype,"JSC$15857_calendarMain",void 0);_.u([_.F("calendarConfig"),_.W("design:type",Object),_.W("design:paramtypes",[])],a8.prototype,"renderData",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],a8);
_.d(a8,"ytd-scrollable-calendar",function(){if(v3S!==void 0)return v3S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return v3S=M},{mode:2});var wQg;var xl2;var Vh=function(){var M=_.g.apply(this,arguments)||this;M.hideCharCounter=!1;M.hideLabel=!1;M.noLabelFloat=!1;M.autoValidate=!0;M.invalid=!1;M.disabled=!1;M.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return M};
_.w(Vh,_.g);_.P=Vh.prototype;_.P.reset=function(M){this.value=M&&this.data?this.data.value=M:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.P.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.P.focusTextInput=function(){this.input.focus()};
_.P.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.P.valueChanged=function(){var M,z;if(((M=this.data)==null?0:M.value)||((z=this.data)==null?void 0:z.value)==="")this.value=this.data.value;else{var J;((J=this.data)==null?void 0:J.value)!==void 0||this.value||(this.value="")}};
_.P.computeLabel=function(M,z){return z?"":_.CD(M)};
_.P.computeAriaLabel=function(M,z){return z?_.CD(M):""};
_.P.computeErrorMessage=function(M,z,J,R){!M&&z?M=J||this.strings.REQUIRED_LABEL:(M=_.CD(R),M=_.BY(M,"&")?"document"in _.R3?pYu(M):Fwa(M):M);return M};
_.P.computeType=function(M){return M==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.P.onTextValueChanged=function(M){this.value=M.detail.value;var z;(z=this.onValueChanged)==null||z.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.P.handleUpdateTextInputFormFieldRendererCommand=function(M){(M=_.G(M,k5u))&&this.data&&this.data.id===M.id&&(M.invalid!==void 0&&(this.invalid=M.invalid),M.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",M.invalidValueErrorMessage))};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("value-changed",this.value))};
_.P.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.rX.Object.defineProperties(Vh.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var M;return!((M=this.data)==null||!M.isMultiline)}}});
Vh.prototype.valueChangedForBinding=Vh.prototype.valueChangedForBinding;Vh.prototype.valueChanged=Vh.prototype.valueChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Vh.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Vh.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Vh.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],Vh.prototype,"value",void 0);_.u([_.Y(),_.W("design:type",String)],Vh.prototype,"pattern",void 0);_.u([_.Y(),_.W("design:type",String)],Vh.prototype,"errorMessage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],Vh.prototype,"componentStyle",void 0);_.u([_.Y(),_.W("design:type",Object)],Vh.prototype,"hideCharCounter",void 0);
_.u([_.Y(),_.W("design:type",Object)],Vh.prototype,"hideLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],Vh.prototype,"noLabelFloat",void 0);_.u([_.Y(),_.W("design:type",Function)],Vh.prototype,"onValueChanged",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Vh.prototype,"isMultilineOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],Vh.prototype,"autoValidate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Vh.prototype,"invalid",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Vh.prototype,"disabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Vh.prototype,"enableOverlayTheme",void 0);_.u([_.Y({value:{REQUIRED_LABEL:_.e9("REQUIRED_LABEL",void 0,"Required")}}),_.W("design:type",Object)],Vh.prototype,"strings",void 0);_.u([_.Qc("#input"),_.W("design:type",Object)],Vh.prototype,"input",void 0);
_.u([_.F("data","isMultilineOverride"),_.W("design:type",Object),_.W("design:paramtypes",[])],Vh.prototype,"isMultiline",null);_.u([_.wH("data.value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vh.prototype,"valueChanged",null);_.u([_.la("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vh.prototype,"valueChangedForBinding",null);_.u([_.cU({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Vh);
_.d(Vh,"yt-text-input-form-field-renderer",function(){if(xl2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;wQg===void 0&&(wQg=document.createElement("template"));var R=wQg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);xl2=M}M=xl2;return M},{mode:2});var EO=function(){var M=_.g.apply(this,arguments)||this;M.data=void 0;M.selectionState="START_DATE";M.isStartDateInvalid=!1;M.isEndDateInvalid=!1;M.autoapply=!1;M.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return M};
_.w(EO,_.g);_.P=EO.prototype;_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.P.focus=function(){this.startDateInput.focus()};
_.P.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:QL(this.data.selection.start),end:QL(this.data.selection.end)})};
_.P.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.uJ(this.selectionState)}};
_.P.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.P.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.P.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,z=M.end;M=cyY({start:M.start,end:this.endDate||z},this.startDateInput.value||"");this.isStartDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection=this.endDate?{start:M,end:this.endDate}:M,this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.P.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,z=M.start;M=cyY({start:this.startDate||z,end:M.end},this.endDateInput.value||"");this.isEndDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection={start:this.startDate,end:M},this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.P.handleCalendarDateClicked=function(M){var z=this.selection&&gu3(this.selection),J=this.selection&&sF0(this.selection);z&&!e4(M,z)&&this.selectionState==="END_DATE"?(this.selection={start:z,end:M},this.selectionState="START_DATE"):(J&&!e4(J,M)?this.selection={start:M,end:J}:this.selection=M,this.selectionState="END_DATE")};
_.P.handleCalendarDateMouseDown=function(M){this.selection&&!YtR(this.selection)&&(this.dragPivot=lf(M,this.selection.start)?this.selection.end:lf(M,this.selection.end)?this.selection.start:M)};
_.P.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.P.handleCalendarDateMouseEnter=function(M){this.dragPivot&&(this.selection={start:function(z,J){return e4(z,J)?z:J}(this.dragPivot,M),
end:function(z,J){return e4(z,J)?J:z}(this.dragPivot,M)},this.dragPivot||(this.selectionState="START_DATE"))};
_.P.handleCalendarDateMouseLeave=function(){};
_.P.handleCalendarSubmitDateRange=function(){this.selection&&!YtR(this.selection)&&_.S9(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.P.updateInvalidState=function(){var M=function(z,J){J?z.setAttribute("invalid",""):z.removeAttribute("invalid")};
M(this.startDateInput,this.isStartDateInvalid);M(this.endDateInput,this.isEndDateInvalid)};
_.P.updateDateStrings=function(){this.selection&&(YtR(this.selection)?FXo(this.selection):(FXo(this.selection.start),FXo(this.selection.end)))};
_.P.updateCalendarSelection=function(M){this.calendar.updateSelection(Object.assign({},M,{selectionState:this.selectionState}))};
_.P.updateIsStartDateInvalidFromBinding=function(M){this.isStartDateInvalid=M.detail.value};
_.P.updateIsEndDateInvalidFromBinding=function(M){this.isEndDateInvalid=M.detail.value};
_.P.updateStartDateStringFromBinding=function(){};
_.P.updateEndDateStringFromBinding=function(){};
_.rX.Object.defineProperties(EO.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:QL(this.data.dateRangeStart),end:QL(this.data.dateRangeEnd),selection:{start:QL(this.data.selection.start),end:QL(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&gu3(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&sF0(this.selection)}}});
EO.prototype.resetTextboxes=EO.prototype.resetTextboxes;EO.prototype.observeSelection=EO.prototype.observeSelection;EO.prototype.dataChanged=EO.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#calendar"),_.W("design:type",Object)],EO.prototype,"calendar",void 0);
_.u([_.Qc("#start-date"),_.W("design:type",Object)],EO.prototype,"startDateInput",void 0);_.u([_.Qc("#end-date"),_.W("design:type",Object)],EO.prototype,"endDateInput",void 0);_.u([_.Y(),_.W("design:type",Object)],EO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],EO.prototype,"selection",void 0);_.u([_.Y(),_.W("design:type",String)],EO.prototype,"selectionState",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],EO.prototype,"calendarConfig",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],EO.prototype,"errorMessage",null);_.u([_.F("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],EO.prototype,"startDate",null);_.u([_.F("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],EO.prototype,"endDate",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EO.prototype,"dataChanged",null);
_.u([_.la("selection","selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EO.prototype,"observeSelection",null);_.u([_.la("selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EO.prototype,"resetTextboxes",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],EO);
_.d(EO,"ytd-date-period-picker-renderer",function(){if(Ulk!==void 0)return Ulk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Ulk=M},{mode:1});var fU=function(){var M=_.g.apply(this,arguments)||this;var z={};M.actionMap=(z["ytd-date-period-picker-apply"]="handleDateRangeUpdated",z);return M};
_.w(fU,_.g);fU.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
fU.prototype.handleDateRangeUpdated=function(){};
_.u([_.Y(),_.W("design:type",Object)],fU.prototype,"data",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],fU.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fU.prototype,"rendererstamperBehavior",void 0);_.u([_.c({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],fU);
_.d(fU,"ytd-report-history-section-header-renderer",function(){if(QD$!==void 0)return QD$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return QD$=M},{mode:1});var tvS;var jDp;var pQV;var LU=function(){return _.g.apply(this,arguments)||this};
_.w(LU,_.g);_.rX.Object.defineProperties(LU.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?0:(z=M.icon)==null?0:z.iconType)?_.oE(this.data.icon.iconType):""}}});
_.u([_.Y(),_.W("design:type",Object)],LU.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],LU.prototype,"icon",null);_.u([_.c({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],LU);
_.d(LU,"ytd-report-history-table-text-cell-renderer",function(){if(pQV!==void 0)return pQV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return pQV=M},{mode:1});var AC=function(){return _.g.apply(this,arguments)||this};
_.w(AC,_.g);AC.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AC.prototype,"data",void 0);_.u([_.c({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],AC);
_.d(AC,"ytd-report-history-table-reason-cell-renderer",function(){if(jDp!==void 0)return jDp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return jDp=M},{mode:1});var iV=function(){return _.g.apply(this,arguments)||this};
_.w(iV,_.g);iV.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"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iV.prototype,"rendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iV.prototype,"data",void 0);_.u([_.c({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],iV);
_.d(iV,"ytd-report-history-table-cell-renderer",function(){if(tvS!==void 0)return tvS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return tvS=M},{mode:1});var FPu;var CU=function(){var M=_.g.apply(this,arguments)||this;M.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return M};
_.w(CU,_.g);CU.prototype.onDataChanged=function(){var M;if((M=this.data)==null?0:M.style)this.componentStyle=this.getStyleName(this.data.style)};
CU.prototype.getCellForColumn=function(M){return this.cells.find(function(z){var J;return((J=_.G(z==null?void 0:z.cell,fFB)||_.G(z==null?void 0:z.cell,EeS))==null?void 0:J.columnId)===M.type})};
CU.prototype.getClassForColumn=function(M){switch(M){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
CU.prototype.getStyleName=function(M){switch(M){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.rX.Object.defineProperties(CU.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.cells)||[]).map(function(z){return _.G(z,VHJ)})}}});
CU.prototype.onDataChanged=CU.prototype.onDataChanged;_.u([_.Y(),_.W("design:type",Object)],CU.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],CU.prototype,"columnRenderData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],CU.prototype,"componentStyle",void 0);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],CU.prototype,"cells",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CU.prototype,"onDataChanged",null);_.u([_.c({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],CU);
_.d(CU,"ytd-report-history-table-row-renderer",function(){if(FPu!==void 0)return FPu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return FPu=M},{mode:1});var Yp$;var mlB;var duG={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},KXY={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var bV=function(){return _.g.apply(this,arguments)||this};
_.w(bV,_.g);bV.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"}}}}}};
bV.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.rX.Object.defineProperties(bV.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.columns)?aen(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return qt8(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var M=this.tableSpec,z=duG;z=z===void 0?KXY:z;z=WXn(M.columnDimensions,M.columnsToShow||[],z);M=0;z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,M+=J.minWidth+J.paddingLeft+J.paddingRight;return M}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.u([_.p(_.AU),_.W("design:type",Object)],bV.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bV.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bV.prototype,"tableSpec",null);_.u([_.F("tableSpec"),_.W("design:type",Array),_.W("design:paramtypes",[])],bV.prototype,"columnRenderData",null);
_.u([_.F("tableSpec"),_.W("design:type",Number),_.W("design:paramtypes",[])],bV.prototype,"totalMinWidth",null);_.u([_.F("totalMinWidth"),_.W("design:type",String),_.W("design:paramtypes",[])],bV.prototype,"tableWidthStyle",null);_.u([_.c({is:"ytd-table-renderer",disableElementRegistration:!0})],bV);
_.d(bV,"ytd-table-renderer",function(){if(mlB!==void 0)return mlB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return mlB=M},{mode:1});var r5=function(){return _.g.apply(this,arguments)||this};
_.w(r5,_.g);r5.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}}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],r5.prototype,"data",void 0);_.u([_.c({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],r5);
_.d(r5,"ytd-report-reason-history-modal-renderer",function(){if(Yp$!==void 0)return Yp$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Yp$=M},{mode:1});var g3a;var sDS;var n3p;var Mz=function(){return _.g.apply(this,arguments)||this};
_.w(Mz,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Mz.prototype,"data",void 0);_.u([_.c({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Mz);
_.d(Mz,"ytd-profile-column-stats-entry-renderer",function(){if(n3p!==void 0)return n3p;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return n3p=M},{mode:1});var hPV;var zG=function(){return _.g.apply(this,arguments)||this};
_.w(zG,_.g);zG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zG.prototype,"data",void 0);_.u([_.c({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],zG);
_.d(zG,"ytd-profile-column-stats-renderer",function(){if(hPV!==void 0)return hPV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return hPV=M},{mode:1});var ylS;var J5=function(){return _.g.apply(this,arguments)||this};
_.w(J5,_.g);_.rX.Object.defineProperties(J5.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var z,J;M=(z=this.data)==null?void 0:(J=z.thumbnail)==null?void 0:J.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var z,J;M=(z=this.data)==null?void 0:(J=z.thumbnail)==null?void 0:J.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.height)||80}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],J5.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],J5.prototype,"componentStyle",void 0);_.u([_.F("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],J5.prototype,"thumbnailWidth",null);
_.u([_.F("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],J5.prototype,"thumbnailHeight",null);_.u([_.c({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],J5);
_.d(J5,"ytd-profile-column-user-info-renderer",function(){if(ylS!==void 0)return ylS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ylS=M},{mode:1});var Rg=function(){return _.g.apply(this,arguments)||this};
_.w(Rg,_.g);Rg.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]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Rg.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],Rg.prototype,"componentStyle",void 0);_.u([_.c({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Rg);
_.d(Rg,"ytd-profile-column-renderer",function(){if(sDS!==void 0)return sDS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return sDS=M},{mode:1});var DI=function(){var M=_.g.apply(this,arguments)||this;M.componentStyle="NON_CENTERED_PROFILE";return M};
_.w(DI,_.g);DI.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
DI.prototype.getIcon=function(M){return M?"settings:"+M.toLowerCase():null};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],DI.prototype,"data",void 0);_.u([_.c({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],DI);
_.d(DI,"ytd-page-introduction-renderer",function(){if(g3a!==void 0)return g3a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return g3a=M},{mode:1});var HI$;var Nz=function(){return _.g.apply(this,arguments)||this};
_.w(Nz,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Nz.prototype,"data",void 0);_.u([_.c({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Nz);
_.d(Nz,"ytd-report-description-renderer",function(){if(HI$!==void 0)return HI$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return HI$=M},{mode:1});var clV;var dlu;var Pp=function(){return _.g.apply(this,arguments)||this};
_.w(Pp,_.g);Pp.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Pp.prototype,"data",void 0);_.u([_.c({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Pp);
_.d(Pp,"ytd-video-report-renderer",function(){if(dlu!==void 0)return dlu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dlu=M},{mode:1});var KP$;_.nn("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.nn("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var SY=function(){return _.g.apply(this,arguments)||this};
_.w(SY,_.g);SY.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]]"}}}}}};
SY.prototype.computeMessageStyle=function(M){return M};
SY.prototype.computeButtonOverride=function(M){var z;if((M==null?0:(z=M.style)==null?0:z.value)&&M.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SY.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],SY.prototype,"shelf",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],SY.prototype,"panel",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.W("design:type",Boolean)],SY.prototype,"componentStyle",void 0);_.u([_.Y({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],SY.prototype,"buttonOverride",void 0);_.u([_.c({is:"ytd-message-renderer",disableElementRegistration:!0})],SY);
_.d(SY,"ytd-message-renderer",function(){if(KP$!==void 0)return KP$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return KP$=M},{mode:1});var ZI=function(){return _.g.apply(this,arguments)||this};
_.w(ZI,_.g);ZI.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"}}}};
ZI.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ZI.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.rX.Object.defineProperties(ZI.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!(((M=this.data)==null?0:M.header)&&((z=this.data)==null?0:z.table))}}});
ZI.prototype.onRequestError=ZI.prototype.onRequestError;_.u([_.p(_.AU),_.W("design:type",Object)],ZI.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ZI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ZI.prototype,"data",void 0);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ZI.prototype,"isUnifiedReportHistory",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"onRequestError",null);_.u([_.c({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],ZI);
_.d(ZI,"ytd-report-history-section-renderer",function(){if(clV!==void 0)return clV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return clV=M},{mode:1});var $lV;var km=function(){var M=_.g.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.w(km,_.g);km.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],km.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],km.prototype,"answerExpanded",void 0);_.u([_.c({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],km);
_.d(km,"ytd-handles-claiming-faq-renderer",function(){if($lV!==void 0)return $lV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return $lV=M},{mode:1});var uOp;var qpk=function(){return _.g.apply(this,arguments)||this};
_.w(qpk,_.g);_.u([_.Y(),_.W("design:type",Object)],qpk.prototype,"data",void 0);_.u([_.c({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],qpk);
_.d(qpk,"ytd-handles-claiming-faq-section-renderer",function(){if(uOp!==void 0)return uOp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uOp=M},{mode:1});var WPk;var Bp=function(){var M=_.g.apply(this,arguments)||this;M.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";M.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";M.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";M.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";M.leftSquiggly=M.leftSquigglyLight;M.rightSquiggly=M.rightSquigglyLight;
M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return M};
_.w(Bp,_.g);_.P=Bp.prototype;_.P.updateLeftSquigglyStyle=function(){_.Tp(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.P.updateRightSquigglyStyle=function(){_.Tp(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.P.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),M?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Bp.prototype.updateRightSquigglyStyle=Bp.prototype.updateRightSquigglyStyle;Bp.prototype.updateLeftSquigglyStyle=Bp.prototype.updateLeftSquigglyStyle;_.u([_.Y(),_.W("design:type",Object)],Bp.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Bp.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",String)],Bp.prototype,"leftSquiggly",void 0);_.u([_.Y(),_.W("design:type",String)],Bp.prototype,"rightSquiggly",void 0);
_.u([_.la("leftSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bp.prototype,"updateLeftSquigglyStyle",null);_.u([_.la("rightSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Bp.prototype,"updateRightSquigglyStyle",null);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Bp.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Bp.prototype,"actionButtonOverride",void 0);_.u([_.c({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Bp);
_.d(Bp,"ytd-handles-claiming-header-renderer",function(){if(WPk!==void 0)return WPk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return WPk=M},{mode:1});var a5g;var O2=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";M.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";M.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";M.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
M.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";M.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";M.image0SquigglyBackground=M.image0LightSquigglyBackground;M.image1SquigglyBackground=M.image1LightSquigglyBackground;M.image3SquigglyBackground=M.image3LightSquigglyBackground;return M};
_.w(O2,_.g);_.P=O2.prototype;_.P.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.P.onDataChanged=function(){this.updateTitleAndImages()};
_.P.onThemeChanged=function(){this.updateTitleAndImages()};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.P.updateImage0SquigglyBackground=function(){_.Tp(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.P.updateImage1SquigglyBackground=function(){_.Tp(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.P.updateImage3SquigglyBackground=function(){_.Tp(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.P.updateTitleAndImages=function(){var M,z;((M=this.data)==null?void 0:(z=M.titleImages)==null?void 0:z.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))};
O2.prototype.updateImage3SquigglyBackground=O2.prototype.updateImage3SquigglyBackground;O2.prototype.updateImage1SquigglyBackground=O2.prototype.updateImage1SquigglyBackground;O2.prototype.updateImage0SquigglyBackground=O2.prototype.updateImage0SquigglyBackground;O2.prototype.onThemeChanged=O2.prototype.onThemeChanged;O2.prototype.onDataChanged=O2.prototype.onDataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],O2.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],O2.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"title0",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"title1",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"title2",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"title3",void 0);
_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"title4",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"image0",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"image1",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"image2",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"image3",void 0);_.u([_.Y(),_.W("design:type",Object)],O2.prototype,"image4",void 0);_.u([_.Y(),_.W("design:type",String)],O2.prototype,"image0SquigglyBackground",void 0);
_.u([_.Y(),_.W("design:type",String)],O2.prototype,"image1SquigglyBackground",void 0);_.u([_.Y(),_.W("design:type",String)],O2.prototype,"image3SquigglyBackground",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"onDataChanged",null);_.u([_.la("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"onThemeChanged",null);
_.u([_.la("image0SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"updateImage0SquigglyBackground",null);_.u([_.la("image1SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"updateImage1SquigglyBackground",null);
_.u([_.la("image3SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"updateImage3SquigglyBackground",null);_.u([_.c({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],O2);
_.d(O2,"ytd-handles-claiming-title-images-section-renderer",function(){if(a5g!==void 0)return a5g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return a5g=M},{mode:1});var Vvv;var TG=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(TG,_.g);TG.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
TG.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
TG.prototype.onCopyButtonClick=function(){var M=this,z,J,R;return _.k(function(D){return(z=M.data)!=null&&z.primaryChannelUrl?D.yield(navigator.clipboard.writeText(((J=M.data)==null?0:J.encodedChannelUrl)?M.data.encodedChannelUrl:"https://"+_.CD((R=M.data)==null?void 0:R.primaryChannelUrl)),0):D.jumpTo(0)})};
_.u([_.Y(),_.W("design:type",Object)],TG.prototype,"data",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],TG.prototype,"ytComponentBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],TG.prototype,"isDarkTheme",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],TG.prototype,"ytActionHandlerBehavior",void 0);_.u([_.c({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],TG);
_.d(TG,"ytd-handles-claiming-update-social-renderer",function(){if(Vvv!==void 0)return Vvv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Vvv=M},{mode:1});var E3v;var Ig=function(){var M=_.g.apply(this,arguments)||this;M.JSC$15951_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";M.JSC$15951_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.squigglyBackground=M.JSC$15951_squigglyBackgroundLight;return M};
_.w(Ig,_.g);Ig.prototype.updateSquigglyBackgroundStyle=function(){_.Tp(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Ig.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.squigglyBackground=M?this.JSC$15951_squigglyBackgroundDark:this.JSC$15951_squigglyBackgroundLight};
Ig.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$15951_squigglyBackgroundDark:this.JSC$15951_squigglyBackgroundLight)};
Ig.prototype.updateSquigglyBackgroundStyle=Ig.prototype.updateSquigglyBackgroundStyle;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ig.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ig.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",String)],Ig.prototype,"squigglyBackground",void 0);_.u([_.la("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ig.prototype,"updateSquigglyBackgroundStyle",null);_.u([_.c({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Ig);
_.d(Ig,"ytd-handles-claiming-vanity-info-renderer",function(){if(E3v!==void 0)return E3v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return E3v=M},{mode:1});var f5J;var og=function(){var M=_.g.apply(this,arguments)||this;M.JSC$15954_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";M.JSC$15954_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";M.squigglyBackground=M.JSC$15954_squigglyBackgroundLight;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(og,_.g);_.P=og.prototype;_.P.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$15954_squigglyBackgroundDark:this.JSC$15954_squigglyBackgroundLight)};
_.P.updateSquigglyBackgroundStyle=function(){_.Tp(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.P.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.P.detached=function(){this.stop()};
_.P.stop=function(){this.playerElement.stop()};
_.P.setupVideoPlayer=function(){var M=this,z,J;return _.k(function(R){z=M.data.videoId;J="http://i1.ytimg.com/vi/"+z+"/maxresdefault.jpg";M.playerElement.loadVideoWithPlayerVars({video_id:z,iurlhq:J});_.UI(R)})};
og.prototype.onDataChanged=og.prototype.onDataChanged;og.prototype.updateSquigglyBackgroundStyle=og.prototype.updateSquigglyBackgroundStyle;_.u([_.Y({value:!1}),_.W("design:type",Boolean)],og.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",String)],og.prototype,"squigglyBackground",void 0);_.u([_.Qc("#player"),_.W("design:type",Object)],og.prototype,"playerElement",void 0);_.u([_.Y(),_.W("design:type",Object)],og.prototype,"data",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],og.prototype,"ytActionHandlerBehavior",void 0);_.u([_.la("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],og.prototype,"updateSquigglyBackgroundStyle",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],og.prototype,"onDataChanged",null);
_.u([_.c({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],og);
_.d(og,"ytd-handles-claiming-video-item-renderer",function(){if(f5J!==void 0)return f5J;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return f5J=M},{mode:1});var LPu;var lQ=function(){var M=_.vU.apply(this,arguments)||this;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.containerWidthDiff=0;M.boundPrevClick=function(){M.set("offset",Xb(M,M.offset-(M.scrollDistance||320)))};
M.boundNextClick=function(){M.set("offset",Xb(M,M.offset+(M.scrollDistance||320)))};
M.boundScrollContainerMouseDown=function(z){M.dragMouseStart=z.clientX;M.dragOffsetStart=M.offset;M.dragging=!0};
M.boundScrollContainerDrag=function(z){M.dragging&&M.set("offset",Xb(M,M.dragOffsetStart-(z.clientX-M.dragMouseStart)))};
M.boundMouseUp=function(){M.onMouseUp()};
M.boundWheelScroll=function(z){var J=0;Math.abs(z.deltaX)>=Math.abs(z.deltaY)?J=z.deltaX:z.shiftKey&&(J=z.deltaY);J!==0&&(M.offset+=J,z.stopPropagation(),z.preventDefault())};
M.boundChipCloudChipScrollIntoView=function(z){(z=z.detail)&&M.scrollChipIntoView(z)};
return M};
_.w(lQ,_.vU);lQ.prototype.attached=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container");M.addEventListener("wheel",this.boundWheelScroll);M.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.style.touchAction="pan-y";M.addEventListener("pointerdown",this.boundScrollContainerMouseDown);M.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
lQ.prototype.detached=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.boundWheelScroll);M.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);M.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
lQ.prototype.reset=function(){this.set("offset",0);_.C4(this,this.setContainerWidthDiff);eY(this)};
var Xb=function(M,z){return Math.min(Math.max(z,0),M.containerWidthDiff)};
lQ.prototype.onMouseUp=function(){this.dragging=!1};
lQ.prototype.transformContainer=function(){this.offset=Xb(this,this.offset);var M=_.HW("HTML_DIR")==="rtl"?"":"-";_.SN(this.hostElement).querySelector("#chips").style.transform="translateX("+M+this.offset+"px)";eY(this)};
var eY=function(M){_.C4(M,M.setButtonsState)};
lQ.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Xb(this,this.offset));this.atStart=this.offset<=0};
lQ.prototype.setContainerWidthDiff=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container"),z=_.SN(this.hostElement).querySelector("#chips");M&&z&&(this.containerWidthDiff=z.clientWidth-M.clientWidth)};
lQ.prototype.scrollChipIntoView=function(M){var z=_.SN(this.hostElement).querySelector("#scroll-container");if(z){var J=this.atStart?0:106,R=this.atEnd?0:106;M.offsetLeft<this.offset+J?this.offset=Xb(this,M.offsetLeft-J):M.offsetLeft+M.clientWidth>this.offset+z.clientWidth-R&&(this.offset=Xb(this,M.offsetLeft+M.clientWidth+R-z.clientWidth))}};
lQ.prototype.transformContainer=lQ.prototype.transformContainer;_.u([_.Y({value:0}),_.W("design:type",Number)],lQ.prototype,"offset",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],lQ.prototype,"atStart",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lQ.prototype,"atEnd",void 0);_.u([_.Y(),_.W("design:type",Number)],lQ.prototype,"scrollDistance",void 0);
_.u([_.la("offset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lQ.prototype,"transformContainer",null);_.u([_.Gp()],lQ);var Alu;var iIv;var rlp=_.Mf(function(M){var z=M.data;M=_.S(_.kE(!1,void 0,"HDMMr"));var J=M.next().value,R=M.next().value;M={};M=_.Qe("ytChipShapeChip",function(){a:switch(z==null?void 0:z().state){case 0:var N="ytChipShapeActive";break a;case 1:N="ytChipShapeDisabled";break a;default:N="ytChipShapeInactive"}return N},function(){var N=z().type===1||z().type===2,Z=z();
return N||Z!=null&&Z.startIcon?Z==null||!Z.startIcon||Z!=null&&Z.text?N?"ytChipShapeEndIconPadding":(Z==null?0:Z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(M.ytChipShapeFocused=function(){var N;
return J()&&((N=z())==null?void 0:N.state)!==1},M));
var D=function(N){if((z==null?void 0:z().state)!==1){var Z,B;(B=(Z=z()).onTap)==null||B.call(Z,N)}};
return _.T("chip-shape",{class:"ytChipShapeHost","on:focusin":_.ol(function(){var N=_.JF().resolve(_.zw(_.OQ));if(N){R(N.isKeyBoardInUse());var Z,B;(B=(Z=z()).onFocusIn)==null||B.call(Z)}return!1}),
"on:focusout":_.ol(function(){R(!1);return!1})},_.T(Cea,{shouldWrapInButton:function(){return z().type!==2},
selected:function(){return z().state===0},
onClick:D,isDropdown:function(){return z().type===1},
accessibilityLabel:function(){return z().accessibilityLabel}},_.T("div",{class:M},_.T(_.I,{cond:function(){return z().startIcon},
then:function(){return _.T(_.vS,{icon:function(){var N;return(N=z())==null?void 0:N.startIcon},
className:function(){return z().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return z().text},_.T(bIa,{shape:z,
onClick:D}),_.T(_.Tn,{model:{borderRadius:"8px"}}))))},"Kb");
rlp.idomCompat=!0;var Cea=_.Mf(function(M){var z=_.ol(function(J){M.onClick(J);return!1});
return _.T(_.I,{cond:M.shouldWrapInButton,then:function(){return _.T("button",{class:"ytChipShapeButtonReset","on:click":z,role:function(){return M.isDropdown()?"combobox":"tab"},
"aria-label":M.accessibilityLabel,"aria-selected":M.selected},M.children)},
else:function(){return M.children}})},"Lb"),bIa=_.Mf(function(M){var z=M.shape;
var J=M.onClick;var R=_.ol(function(D){J(D);return!1});
return _.T(_.tg,null,_.T(_.w3,{when:function(){return z().type===1}},function(){return _.T(_.vS,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.T(_.w3,{when:function(){return z().type===2}},function(){return _.T("button",{class:"ytChipShapeButtonReset",
"on:click":R},_.T(_.vS,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.T(_.w3,{when:function(){return z().type===0}},function(){return _.T(_.MH,null)}))},"Mb");_.N7(rlp,"chip-shape",{props:{data:_.zn}});var Qf=function(){var M=_.g.apply(this,arguments)||this;M.disableDeselectEvent=!1;M.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return M};
_.w(Qf,_.g);_.P=Qf.prototype;_.P.onSelectChipCommand=function(M){if(!this.selected&&this.data&&(M=_.G(M,MHu),M.targetId&&M.targetId===this.data.targetId))this.onTap()};
_.P.onFilterChipTransformCommand=function(M){if(!this.selected&&this.data){var z;(M=(z=_.G(M,fk$))==null?void 0:z.chipUniqueId)&&M===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.P.dataChanged=function(){var M=this;_.C4(this,function(){M.data&&M.data.isSelected&&!M.selected&&(M.scrollChipIntoView(),M.onTap())})};
_.P.computeChipStyle=function(M){return M!=null?M:"STYLE_DEFAULT"};
_.P.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.S9(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.S9(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.P.onFocus=function(){var M=_.JF().resolve(_.zw(_.OQ));M&&M.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.P.scrollChipIntoView=function(){_.Pv(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.rX.Object.defineProperties(Qf.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return iGH({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Qf.prototype.onFocus=Qf.prototype.onFocus;Qf.prototype.onTap=Qf.prototype.onTap;Qf.prototype.dataChanged=Qf.prototype.dataChanged;_.u([_.p(_.mT),_.W("design:type",Object)],Qf.prototype,"ironButtonState",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.pH),_.W("design:type",Object)],Qf.prototype,"ironA11yKeysBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Qf.prototype,"disableDeselectEvent",void 0);_.u([_.Y(),_.W("design:type",Object)],Qf.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.icon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Qf.prototype,"hasIcon",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.uniqueId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Qf.prototype,"isGnomeChip",null);_.u([_.Y({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.W("design:type",String)],Qf.prototype,"chipStyle",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Qf.prototype,"selected",void 0);
_.u([_.F("data","selected"),_.W("design:type",Object),_.W("design:paramtypes",[])],Qf.prototype,"chipShapeData",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qf.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qf.prototype,"onTap",null);
_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qf.prototype,"onFocus",null);_.u([_.cU({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Qf);
_.d(Qf,"yt-chip-cloud-chip-renderer",function(){if(iIv===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Alu===void 0&&(Alu=document.createElement("template"));var R=Alu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);iIv=M}M=iIv;return M},{mode:2});var U2=function(){var M=_.g.apply(this,arguments)||this;M.isDarkTheme=!1;M.notSticky=!1;M.transparentBackground=!1;M.shouldHide=!1;M.disableSticky=!1;M.fluidWidth=!1;M.isClipList=!1;M.defaultChipIndex=0;M.isPlaylist=!1;M.playlistVotingAnimationEnabled=_.U("web_enable_voting_animation");M.toolbarHeight=0;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return M};
_.w(U2,_.g);_.P=U2.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){var M=this;document.addEventListener("scroll",_.ou(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var z;this.toolbarHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(J){M.handleIntersect(J)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){var M;(M=this.intersectionObserver)==null||M.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect();document.removeEventListener("scroll",_.ou(this,this.updateChipBarWidthAndTop))};
_.P.dataChanged=function(){var M=this,z,J,R;((R=_.G((z=this.data)==null?void 0:(J=z.contents)==null?void 0:J[0],FRB))==null?void 0:R.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var D=this.findSelectedChipIndex();this.selectedIndex!==D&&(this.selectedIndex=-1);_.C4(this,function(){M.selectedIndex=D;M.updating=!1;M.ytScrollableChipCloudBehavior.reset()})};
_.P.findSelectedChipIndex=function(){var M;if((M=this.data)==null||!M.contents)return 0;M=this.data.contents;for(var z=0;z<M.length;z++){var J=void 0;if((J=_.G(M[z],FRB))==null?0:J.isSelected)return z}return 0};
_.P.computeStyle=function(M){return M};
_.P.handleChipCloudChipSelectAction=function(M){M=this.JSC$15975_chipsSelector.indexOf(M);M>-1&&this.JSC$15975_chipsSelector.selectIndex(M)};
_.P.handleChipCloudChipDeselectAction=function(){if(_.U("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],FRB))==null?void 0:J.navigationEndpoint;R&&_.S9(this.hostElement,"yt-browse-section-list-reload-endpoint",[R]);this.JSC$15975_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.P.onGuideIsExpandedChanged=function(){var M=this.ytScrollableChipCloudBehavior;_.C4(M,M.setContainerWidthDiff);eY(this.ytScrollableChipCloudBehavior)};
_.P.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.C4(M,M.setContainerWidthDiff);eY(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.P.handleIntersect=function(M){this.notSticky=this.isChannelPageGrid||this.disableSticky||M[0].intersectionRatio===1};
_.P.updateDimensions=function(){var M=this.ytRendererBehavior.parentComponent;if(M){var z,J=(z=M.headerElement)!=null?z:M;_.Tp(this.hostElement,{"--ytd-rich-grid-chips-bar-width":J.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.P.updateSelectedIndexFromBinding=function(M){this.selectedIndex=M.detail.value};
_.P.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var M;(M=this.sortFilterHeaderRendererElement)==null||M.setAttribute("is-playlist-page-with-filters","")}};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(BG2(!this.notSticky))};
_.rX.Object.defineProperties(U2.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.contents)==null?void 0:z.find(function(R){return _.G(R,nBk)});
return{sortFilterHeaderRenderer:_.G(J,nBk)}}}});
U2.prototype.dispatchChipBarIsSticky=U2.prototype.dispatchChipBarIsSticky;U2.prototype.isPlaylistPageChanged=U2.prototype.isPlaylistPageChanged;U2.prototype.updateChipBarWidthAndTop=U2.prototype.updateChipBarWidthAndTop;U2.prototype.onResize=U2.prototype.onResize;U2.prototype.onGuideIsExpandedChanged=U2.prototype.onGuideIsExpandedChanged;U2.prototype.dataChanged=U2.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],U2.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],U2.prototype,"ironResizableBehavior",void 0);_.u([_.p(),_.W("design:type",lQ)],U2.prototype,"ytScrollableChipCloudBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],U2.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],U2.prototype,"data",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],U2.prototype,"selectedIndex",void 0);_.u([_.Y({value:320}),_.W("design:type",Number)],U2.prototype,"scrollDistance",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"notSticky",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"transparentBackground",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.W("design:type",String)],U2.prototype,"componentStyle",void 0);_.u([_.Y({selector:_.qb3}),_.W("design:type",Boolean)],U2.prototype,"guideIsExpanded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"shouldHide",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"disableSticky",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"fluidWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"isClipList",void 0);_.u([_.Y(),_.W("design:type",Object)],U2.prototype,"defaultChipIndex",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],U2.prototype,"isPlaylist",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],U2.prototype,"playlistVotingAnimationEnabled",void 0);_.u([_.Qc("#chips"),_.W("design:type",Object)],U2.prototype,"JSC$15975_chipsSelector",void 0);_.u([_.Qc("ytd-sort-filter-header-renderer"),_.W("design:type",HTMLElement)],U2.prototype,"sortFilterHeaderRendererElement",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],U2.prototype,"updating",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"dataChanged",null);_.u([_.la("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"onGuideIsExpandedChanged",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"onResize",null);
_.u([_.wH("isChannelPageGrid","disableSticky","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"updateChipBarWidthAndTop",null);_.u([_.F("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U2.prototype,"isChannelPageGrid",null);_.u([_.F("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U2.prototype,"isHashtagLandingPage",null);
_.u([_.la("isPlaylistPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"isPlaylistPageChanged",null);_.u([_.F("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U2.prototype,"isPlaylistPage",null);_.u([_.F("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U2.prototype,"isDisableDeselectEvent",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],U2.prototype,"sortFilterHeaderRendererData",null);_.u([_.Y({reflectToAttribute:!0,selector:_.Amp}),_.W("design:type",String)],U2.prototype,"frostedGlassMode",void 0);_.u([_.la("notSticky"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"dispatchChipBarIsSticky",null);_.u([_.c({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],U2);
_.d(U2,"ytd-feed-filter-chip-bar-renderer",function(){if(LPu!==void 0)return LPu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return LPu=M},{mode:1});var MMg;var zmg=_.Mf(function(M){var z=M.data;var J=M.buttonIndex;var R=M.selectedIndex;var D=M.onSelect;var N=function(){return J()===R()},Z=function(){var B,O;
return(O=(B=z().text)==null?void 0:B.content)!=null?O:""};
M=_.abw();return _.T("yt-toggleable-image-button-view-model",{class:function(){var B={};B=(B["toggleable-image-button-view-model-wiz"]=!0,B[""]=!0,B["toggleable-image-button-view-model-wiz__semi-transparent"]=R()!==-1&&!N(),B);return _.jF(B)},
tabindex:0,"aria-label":Z,"aria-pressed":N,role:"button","on:keydown":M,"on:click":_.ol(function(){D(z().onSubmitCommand);return!1})},_.T(_.I,{cond:function(){return z().logo},
then:function(B){return _.T(_.rv,{data:B,className:function(){var O={};O=(O["toggleable-image-button-view-model-wiz__image"]=!0,O["toggleable-image-button-view-model-wiz__circular-radius"]=!(!z().backgroundColor||!z().backgroundColorDarkMode),O["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(N()&&z().backgroundColor&&z().backgroundColorDarkMode),O);return _.jF(O)},
alt:Z,useWidth:!1,style:function(){if(N()&&z().backgroundColor&&z().backgroundColorDarkMode){var O=WP(Number(z().backgroundColorDarkMode),"1");var X=WP(Number(z().backgroundColor),"1");O="background: linear-gradient(180deg,"+O+","+X+") border-box;"}else O="";return O}})}}),_.T(_.Tn,{model:{borderRadius:"16px"}}),_.T("p",{class:function(){var B={};
B=(B["toggleable-image-button-view-model-wiz__label"]=!0,B["toggleable-image-button-view-model-wiz__bold-text"]=N(),B);return _.jF(B)}},_.T(_.m3,{text:function(){return z().text}})))},"Nb");
zmg.idomCompat=!0;var RmV=_.Mf(function(M){var z=M.data;M=_.S(_.kE({index:-1,command:{}},void 0,"Zcqtsb"));var J=M.next().value,R=M.next().value;return _.T("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.T("div",{class:"nudge-form-view-model-wiz__form-options"},_.T(_.t_,{data:function(){return z().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(D,N){return _.T(zmg,{data:D.data,buttonIndex:N,selectedIndex:function(){return J().index},
onSelect:function(Z){R({index:N(),command:Z})}})}})),_.T(_.m3,{text:function(){return z().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.T("div",{class:"nudge-form-view-model-wiz__submit"},_.T(_.t_,{data:function(){return z().submitButton}},{buttonViewModel:function(D){return _.T(JO$,{data:D.data,
isDisabled:function(){return J().index===-1},
onClick:function(){_.aE(J().command)}})}})))},"Ob");
RmV.idomCompat=!0;var JO$=_.Mf(function(M){var z=_.o4(function(){return Object.assign({},M.data(),{state:M.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.T(_.lT,{data:z,onClick:M.onClick})},"Pb");_.N7(RmV,"yt-nudge-form-view-model",{props:{data:_.zn}});var vp=function(){var M=_.g.apply(this,arguments)||this;M.roundedContainer=!0;M.buttonUpdate=_.U("web_modern_buttons");M.isDarkMode=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.w(vp,_.g);_.P=vp.prototype;_.P.computeNudgeStyle=function(M){return M?"modernized-nudge":""};
_.P.handleDarkModeToggledAction=function(M){this.isDarkMode=M};
_.P.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeIsHorizontalButtons=function(M){return M?!!M.applyModernizedStyle&&!!M.enableHorizontalButtons&&!!M.secondaryButton:!1};
_.rX.Object.defineProperties(vp.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.data)==null?void 0:M.backgroundStyle)!=null?z:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.data)==null?void 0:M.contentsLocation)!=null?z:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.lightIconImage)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],vp.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],vp.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("isHideEnclosingAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vp.prototype,"isHidden",null);_.u([_.Y(),_.W("design:type",Object)],vp.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],vp.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],vp.prototype,"buttonUpdate",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.W("design:type",String)],vp.prototype,"nudgeStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.trimStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],vp.prototype,"trimStyle",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.backgroundStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],vp.prototype,"backgroundStyle",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.contentsLocation"),_.W("design:type",String),_.W("design:paramtypes",[])],vp.prototype,"contentsLocation",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.disableDropShadow"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vp.prototype,"noShadow",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.lightIconImage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vp.prototype,"noIcon",null);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.W("design:type",Boolean)],vp.prototype,"isHorizontalButtons",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],vp.prototype,"isDarkMode",void 0);_.u([_.c({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],vp);
_.d(vp,"ytd-feed-nudge-renderer",function(){if(MMg!==void 0)return MMg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return MMg=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var Dqk;var N8u;var GG=function(){var M=_.g.apply(this,arguments)||this;M.collapsed=!1;M.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return M};
_.w(GG,_.g);GG.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"}}}};
GG.prototype.handleRatingSelect=function(){var M;((M=this.data)==null?0:M.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
GG.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],GG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],GG.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],GG.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Vg),_.W("design:type",Object)],GG.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GG.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GG.prototype,"collapsed",void 0);_.u([_.c({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],GG);
_.d(GG,"ytd-slimline-survey-renderer",function(){if(N8u!==void 0)return N8u;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return N8u=M},{mode:1});var Puk;var wr=function(){return _.g.apply(this,arguments)||this};
_.w(wr,_.g);wr.prototype.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
wr.prototype.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M&&(M==null?0:M.secondaryTitleColor)&&this.maybeGetBackgroundColor(M)?(this.hostElement.style.backgroundColor=_.u7(this.maybeGetBackgroundColor(M)),this.hostElement.style.color=_.u7(M.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
wr.prototype.colorPaletteChanged=wr.prototype.colorPaletteChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],wr.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wr.prototype,"data",void 0);_.u([_.Y({selector:function(M){return M.ui.darkModeIsEnabled}}),
_.W("design:type",Boolean)],wr.prototype,"isDarkMode",void 0);_.u([_.Y(),_.W("design:type",Object)],wr.prototype,"lightColorPalette",void 0);_.u([_.Y(),_.W("design:type",Object)],wr.prototype,"darkColorPalette",void 0);_.u([_.la("darkColorPalette","lightColorPalette","data","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wr.prototype,"colorPaletteChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],wr);
_.d(wr,"ytd-endorsement-header-renderer",function(){if(Puk!==void 0)return Puk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Puk=M},{mode:1});_.N7(_.Km,"yt-decorated-avatar-view-model",{props:{data:_.zn,className:_.zn}});_.xm=new _.Nh("VIEW_TRANSITION_MANAGER_TOKEN");var t5=function(){var M=_.g.apply(this,arguments)||this;M.fullHeight=_.U("web_rich_grid_media_full_height");M.showChannelAvatar=!0;M.hasPlaylistThumbnail=!1;M.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};M.registerThumbnailForPageTransition=function(){_.U("web_thumbnail_to_watch_transition")&&_.STg(_.JF().resolve(_.xm),M.thumbnail)};
return M};
_.w(t5,_.g);_.P=t5.prototype;
_.P.configureRendererStamper=function(){return{lazyLoadMenu:xh,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.shouldLazyLoadMenu=function(){var M=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.U("kevlar_modern_downloads_page")||!M};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16000_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.JSC$16000_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.P.getVideoPreviewOpts=function(){var M={},z;if((z=this.data)==null?0:z.multipleInlinePlaybackEndpoint)M=r4p;this.isRadio&&(M=blu);return M};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16000_inlinePreviewHoverListener)==null||M5(M)};
_.P.getOwner=function(){var M,z,J;return((M=this.data)==null?void 0:(z=M.channelThumbnailSupportedRenderers)==null?void 0:z.channelThumbnailWithLinkRenderer)||_.G((J=this.data)==null?void 0:J.showProviderChannelThumbnail,Dku)};
_.P.updateLockupSize=function(){var M;((M=this.getOwner())==null?0:M.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.P.getFeedbackEndpoint=function(M){if(_.G(M,_.Hf))return M;var z,J;M=(J=(z=_.G(M,_.TV))==null?void 0:z.commands)!=null?J:[];z=_.S(M);for(J=z.next();!J.done;J=z.next())if(J=this.getFeedbackEndpoint(J.value))return J;return null};
_.P.computeNavigationEndpoint=function(M){return LT8(M==null?void 0:M.navigationEndpoint)};
_.P.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var M=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(M)!==JSON.stringify(this.data)&&this.set("data",M)}};
_.P.onDataChanged=function(){var M=this,z=this.getOwner();if(z){this.set("data.owner",z);var J,R,D,N,Z,B=((J=this.data)==null?void 0:(R=J.shortBylineText)==null?void 0:(D=R.runs)==null?void 0:(N=D[0])==null?void 0:N.text)||((Z=z.name)==null?void 0:Z.simpleText);this.set("data.owner.title",B)}var O,X,l,e,Q,v;z=((O=this.data)==null?void 0:(X=O.thumbnailRenderer)==null?void 0:X.playlistVideoThumbnailRenderer)||((l=this.data)==null?void 0:(e=l.thumbnailRenderer)==null?void 0:e.playlistCustomThumbnailRenderer)||
((Q=this.data)==null?void 0:(v=Q.thumbnailRenderer)==null?void 0:v.showCustomThumbnailRenderer);var x;((x=this.data)==null?0:x.thumbnail)||!z||this.set("data.thumbnail",z.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){M.updateLockupSize()});
var m;if(O=((m=this.data)==null?void 0:m.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(O);var y;((y=this.dismissActionToReplayEntity)==null?0:y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.P.onHiddenChanged=function(){this.updateLockupSize()};
_.P.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.S9(this.hostElement,"yt-terminate-video-preview-action");else{var M;(M=this.videoTitleLink)==null||M.focus()}};
_.P.metadataColorChanged=function(){var M;if(this.metadataColor&&((M=this.videoTitle)==null?0:M.style))this.videoTitle.style.color=_.u7(this.metadataColor);else{var z,J;!this.metadataColor&&((z=this.videoTitle)==null?0:(J=z.style)==null?0:J.color)&&(this.videoTitle.style.color="")}};
_.P.onDetailsClick=function(M){var z=this.computedNavigationEndpoint;z&&(_.bP(_.CX(M),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Pv(this.hostElement,"yt-navigate",{endpoint:z}))};
_.P.onRendererTap=function(){this.registerThumbnailForPageTransition();var M,z,J=((M=this.data)==null?void 0:M.serviceEndpoint)||this.getFeedbackEndpoint((z=this.data)==null?void 0:z.navigationEndpoint);J&&_.G(J,_.Hf)&&this.ytComponentBehavior.resolveCommand(J)};
_.P.onMouseDown=function(M){var z=M.target,J=this.computedNavigationEndpoint,R;M=z.href||((R=_.G(J==null?void 0:J.commandMetadata,_.X9))==null?void 0:R.url);R=z.data||J;M&&R&&YX0(M,R)};
_.P.computeVideoTitleText=function(){var M;if((M=this.data)==null?0:M.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.P.computeHasPlaylistThumbnail=function(M){var z,J,R,D,N;if((((z=M.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((J=M.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer)||((R=M.thumbnailRenderer)==null?0:R.showCustomThumbnailRenderer)||((D=M.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((N=M.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(z=0;z<M.thumbnailOverlays.length;z++)if(J=void 0,(J=M.thumbnailOverlays[z])==
null?0:J.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.rX.Object.defineProperties(t5.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16000_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.UA(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.videoId)||((z=this.data)==null?void 0:z.playlistId)||""}}});
t5.prototype.onMouseDown=t5.prototype.onMouseDown;t5.prototype.metadataColorChanged=t5.prototype.metadataColorChanged;t5.prototype.onIsDismissedChanged=t5.prototype.onIsDismissedChanged;t5.prototype.onHiddenChanged=t5.prototype.onHiddenChanged;t5.prototype.onDataChanged=t5.prototype.onDataChanged;t5.prototype.handleReloadDownloadsInfo=t5.prototype.handleReloadDownloadsInfo;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],t5.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],t5.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],t5.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],t5.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],t5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],t5.prototype,"entitySelectorType",void 0);_.u([_.Y(),_.W("design:type",Boolean)],t5.prototype,"noEndpoints",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],t5.prototype,"isRadio",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],t5.prototype,"miniMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],t5.prototype,"fullHeight",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],t5.prototype,"showDarkVideoMetadata",void 0);_.u([_.Y(),_.W("design:type",Boolean)],t5.prototype,"showLightVideoMetadata",void 0);_.u([_.Y(),_.W("design:type",Number)],t5.prototype,"metadataColor",void 0);_.u([_.Y(),_.W("design:type",Object)],t5.prototype,"showChannelAvatar",void 0);_.u([_.Y(),_.W("design:type",Boolean)],t5.prototype,"hidden",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],t5.prototype,"showYtInteraction",void 0);
_.u([_.Y(),_.W("design:type",String)],t5.prototype,"dismissedContentId",void 0);_.u([_.Y({selectorArgs:["dismissedContentId"],selector:$do}),_.W("design:type",Object)],t5.prototype,"dismissActionToReplayEntity",void 0);
_.u([_.Y({selectorArgs:["entitySelectorType","mediaId"],selector:function(M,z,J){if(_.U("kevlar_modern_downloads_page")&&J&&z&&z!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var R=rm0(M,J);if(R){z=_.KD(M,J);var D=ud(M,J),N=OZH(M,J);M=qv(M,J);var Z=qEG(R,z,D,N);D=Z.shortViewCountText;var B=Z.publishedTimeText;Z=Z.badges;var O=M>0;N=$n8(R,z,N,M);R=_.xf(z)||z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wA(R.policyEntity)?
void 0:E73(J,M,R.videoEntity.lengthSeconds);z==="TRANSFER_STATE_PAUSED_BY_USER"&&J&&!_.U("dl_resume_click_killswitch")&&(R={offlineVideoEndpoint:{videoId:J,action:"ACTION_RESUME"}});J={shortViewCountText:D,publishedTimeText:B,badges:Z,isWatched:O,navigationEndpoint:R,thumbnailOverlays:N}}else J=void 0;return J;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(z=ME8(M,J))if(R=_.$f(M,J),N=_.zyc(M,J),R!=="TRANSFER_STATE_UNKNOWN"){J=uf0(z,R,N,J,_.dA(M));break a}J=void 0}return J;default:_.yA(new _.xN("Error: entitySelectorType defined but not matched in selector.",
M,z))}}}),
_.W("design:type",Object)],t5.prototype,"entityDrivenState",void 0);_.u([_.Y({computed:"computeVideoTitleText(data)"}),_.W("design:type",Object)],t5.prototype,"videoTitleText",void 0);_.u([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],t5.prototype,"hasPlaylistThumbnail",void 0);_.u([_.Y({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],t5.prototype,"computedNavigationEndpoint",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],t5.prototype,"typographyBump",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("typographyBump"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],t5.prototype,"typographyBumpV2",null);_.u([_.Qc("#video-title"),_.W("design:type",HTMLElement)],t5.prototype,"videoTitle",void 0);_.u([_.Qc("#video-title-link"),_.W("design:type",HTMLElement)],t5.prototype,"videoTitleLink",void 0);
_.u([_.Qc("#thumbnail"),_.W("design:type",HTMLElement)],t5.prototype,"thumbnail",void 0);_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],t5.prototype,"JSC$16000_dismissibleMedia",void 0);_.u([_.F("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],t5.prototype,"lazyLoadMenu",null);_.u([_.F("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],t5.prototype,"immediateLoadMenu",null);
_.u([_.wH("entityDrivenState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t5.prototype,"handleReloadDownloadsInfo",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t5.prototype,"onDataChanged",null);_.u([_.wH("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t5.prototype,"onHiddenChanged",null);
_.u([_.la("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t5.prototype,"onIsDismissedChanged",null);_.u([_.la("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t5.prototype,"metadataColorChanged",null);_.u([_.Xw("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],t5.prototype,"onMouseDown",null);
_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],t5.prototype,"isHovered",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],t5.prototype,"useAvatar",null);_.u([_.F("data","entitySelectorType"),_.W("design:type",String),_.W("design:paramtypes",[])],t5.prototype,"mediaId",null);_.u([_.c({is:"ytd-rich-grid-media",disableElementRegistration:!0})],t5);
var ZBV=_.kS()(t5,"ytd-rich-grid-media",function(){if(Dqk!==void 0)return Dqk;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Dqk=M},{mode:_.B5("kevlar_poly_si_batch_j072")?1:2});var keJ;var jY=function(){var M=_.g.apply(this,arguments)||this;M.removeMaxWidth=!0;M.insetMetadata=!1;return M};
_.w(jY,_.g);_.P=jY.prototype;_.P.configureRendererStamper=function(){return{innerMenu:xh,outerMenu:Object.assign({},xh,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onDataChanged=function(){var M,z=((M=this.data)==null?void 0:M.trackingParams)||"";z&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(z));var J;((J=this.dismissActionToReplayEntity)==null?0:J.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16005_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.JSC$16005_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:MrB})};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16005_inlinePreviewHoverListener)==null||M5(M)};
_.P.onRendererTap=function(){var M,z,J=(M=this.data)==null?void 0:(z=M.serviceEndpoints)==null?void 0:z[0];_.G(J,_.Hf)&&this.componentBehavior.resolveCommand(J)};
_.P.onDetailsClick=function(M){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;J&&(_.bP(_.CX(M),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(J))};
_.P.onShow=function(){var M=this.data;M.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(M.onFirstVisibleCommand),delete M.onFirstVisibleCommand)};
_.rX.Object.defineProperties(jY.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?void 0:(M=this.data)==null?void 0:M.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?(M=this.data)==null?void 0:M.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var M=this.data;if(M!=null&&M.badge&&(M=_.G(M.badge,vBp))){var z,J,R;return[{metadataBadgeRenderer:{label:((z=M.label)==null?void 0:(J=z.runs)==null?void 0:J[0].text)||((R=M.label)==null?void 0:R.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var M=this.data;return Object.assign({},M.headline,{accessibility:M.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return this.isSlimShort?(M=this.computedTitle)==null?void 0:(z=M.accessibility)==null?void 0:(J=z.accessibilityData)==null?void 0:J.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.U("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16005_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
jY.prototype.onDataChanged=jY.prototype.onDataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],jY.prototype,"componentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],jY.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Vg),_.W("design:type",Object)],jY.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],jY.prototype,"ytdReduxBehavior",void 0);_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],jY.prototype,"thumbnail",void 0);_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],jY.prototype,"JSC$16005_dismissibleMedia",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jY.prototype,"removeMaxWidth",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jY.prototype,"insetMetadata",void 0);_.u([_.Y(),_.W("design:type",String)],jY.prototype,"dismissedContentId",void 0);_.u([_.Y({selectorArgs:["dismissedContentId"],selector:$do}),_.W("design:type",Object)],jY.prototype,"dismissActionToReplayEntity",void 0);_.u([_.F("insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"thumbnailObjectFit",null);
_.u([_.F("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"innerMenu",null);_.u([_.F("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"outerMenu",null);_.u([_.Y(),_.W("design:type",Object)],jY.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],jY.prototype,"miniMode",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jY.prototype,"onDataChanged",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"shortsBadges",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jY.prototype,"isShort",null);
_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jY.prototype,"isSlimShort",null);_.u([_.F("data","isShort"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"computedTitle",null);_.u([_.F("isSlimShort","computedTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],jY.prototype,"computedAccessibilityLabel",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jY.prototype,"shouldForce2By3",null);_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jY.prototype,"isHovered",null);_.u([_.c({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],jY);
_.d(jY,"ytd-rich-grid-slim-media",function(){if(keJ!==void 0)return keJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return keJ=M},{mode:_.B5("kevlar_poly_si_batch_j063")?1:2});var B8B;var OB2;var p7=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(p7,_.g);p7.prototype.computeIcon=function(M){return M&&M.iconType?"yt-sys-icons:"+M.iconType.toLowerCase():""};
p7.prototype.onMouseEnter=function(){this.isHovered=!0};
p7.prototype.onMouseLeave=function(){this.isHovered=!1};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p7.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],p7.prototype,"isHovered",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],p7.prototype,"darkerDarkTheme",void 0);_.u([_.c({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],p7);
_.d(p7,"ytd-expand-on-hover-card-renderer",function(){if(OB2!==void 0)return OB2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return OB2=M},{mode:1});var T8Q,I$$=function(){if(T8Q!==void 0)return T8Q;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return T8Q=M};_.nn("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Fb=function(){var M=_.g.apply(this,arguments)||this;M.compactStyle=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(Fb,_.g);_.P=Fb.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.computeHideDot=function(M){return!(M&&M.subscriberCountText&&M.videoCountText)||this.compactStyle};
_.P.hasDualButtons=function(M){return M&&M.purchaseButton&&M.subscribeButton};
_.P.backgroundColorChanged=function(){if(this.data!==void 0){var M=this.data.backgroundColor;this.isDarkTheme&&(M=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=M!=null?_.u7(M):"transparent"}};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.onTap=function(M){var z,J,R=((z=this.data)==null?void 0:z.navigationEndpoint)||((J=this.data)==null?void 0:J.serviceEndpoint);_.G(R,_.M9)&&(R&&_.JF().resolve(_.Rb).resolveCommand(R,{form:{element:this.hostElement}}),M.preventDefault())};
_.P.computeChannelEndpoint=function(M){return _.G(M,_.M9)?null:M};
_.P.computeHrefEndpoint=function(M){return _.G(M,_.M9)?null:this.componentBehavior.computeHref_(M)};
_.P.computeChannelRendererStyle=function(M){return M};
_.P.computeIconSize=function(M){return M?108:136};
_.rX.Object.defineProperties(Fb,{template:{configurable:!0,enumerable:!0,get:function(){return I$$()}}});
Fb.prototype.backgroundColorChanged=Fb.prototype.backgroundColorChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],Fb.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Fb.prototype,"componentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Fb.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Fb.prototype,"isDarkTheme",void 0);_.u([_.Y({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.W("design:type",String)],Fb.prototype,"channelRendererStyle",void 0);_.u([_.Y({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Fb.prototype,"dualButtons",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],Fb.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],Fb.prototype,"biggerThumbStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Fb.prototype,"compactStyle",void 0);_.u([_.la("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fb.prototype,"backgroundColorChanged",null);_.u([_.c({is:"ytd-channel-renderer",disableElementRegistration:!0})],Fb);_.d(Fb,"ytd-channel-renderer",function(){return I$$()},{mode:1});var o6$;var XiS;_.nn("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ym=function(){var M=_.g.apply(this,arguments)||this;M.displayItemCount=2;M.collections=_.U("web_modern_collections_v2");M.hasPlaylistThumbnail=!1;M.stackThumbnailSize="large";return M};
_.w(Ym,_.g);_.P=Ym.prototype;_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.computeFirstVideos=function(M,z){return M&&z?M.slice(0,z):[]};
_.P.computeThumbnailWidth=function(M,z){return M?z==="BIG"?500:z==="MASSIVE"?600:z==="MEDIUM"?450:420:360};
_.P.computeThumbnailHeight=function(M,z){return M?z==="BIG"?280:z==="MASSIVE"?337:234:202};
_.P.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16018_inlinePreviewHoverListener)==null||M5(M)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16018_inlinePreviewHoverListener=Wn({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:r4p,thumbnailElement:this.thumbnail})};
_.P.computeHasPlaylistThumbnail=function(M){var z,J;if((((z=M.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((J=M.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(z=0;z<M.thumbnailOverlays.length;z++)if(J=void 0,(J=M.thumbnailOverlays[z])==null?0:J.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.rX.Object.defineProperties(Ym.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16018_inlinePreviewHoverListener)==null?0:W8(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ym.prototype.dataChanged=Ym.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],Ym.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ym.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Ym.prototype,"displayItemCount",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],Ym.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],Ym.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ym.prototype,"collections",void 0);_.u([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],Ym.prototype,"hasPlaylistThumbnail",void 0);_.u([_.Y(),_.W("design:type",String)],Ym.prototype,"stackThumbnailSize",void 0);_.u([_.Qc("ytd-thumbnail"),_.W("design:type",HTMLElement)],Ym.prototype,"thumbnail",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ym.prototype,"dataChanged",null);_.u([_.F("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ym.prototype,"isHovered",null);_.u([_.c({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ym);
_.d(Ym,"ytd-radio-renderer",function(){if(XiS!==void 0)return XiS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return XiS=M},{mode:_.B5("kevlar_poly_si_batch_j058")?1:2});var l$a;_.nn("itemSectionRenderer","showRenderer","ytd-show-renderer");var mH=function(){return _.g.apply(this,arguments)||this};
_.w(mH,_.g);mH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mH.prototype.computeThumbnailWidth=function(M){return M?360:246};
mH.prototype.computeUseProminentThumbs=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mH.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],mH.prototype,"isSearch",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.W("design:type",Boolean)],mH.prototype,"useProminentThumbs",void 0);_.u([_.c({is:"ytd-show-renderer",disableElementRegistration:!0})],mH);
_.d(mH,"ytd-show-renderer",function(){if(l$a!==void 0)return l$a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return l$a=M},{mode:1});_.nn("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var gr=function(){var M=_.g.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.w(gr,_.g);gr.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"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gr.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],gr.prototype,"isRichGrid",void 0);_.u([_.c({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],gr);
_.d(gr,"ytd-feed-entry-renderer",function(){if(o6$!==void 0)return o6$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return o6$=M},{mode:1});var em$;var s2=function(){return _.g.apply(this,arguments)||this};
_.w(s2,_.g);s2.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.u([_.p(_.Wg),_.W("design:type",Object)],s2.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],s2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.y$,value:3}),_.W("design:type",Number)],s2.prototype,"itemsPerRow",void 0);
_.u([_.c({is:"ytd-link-card-renderer",disableElementRegistration:!0})],s2);
_.d(s2,"ytd-link-card-renderer",function(){if(em$!==void 0)return em$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return em$=M},{mode:1});var QeB;var n7=function(){return _.g.apply(this,arguments)||this};
_.w(n7,_.g);_.P=n7.prototype;_.P.configureRendererStamper=function(){return{"data.menu":xh,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onRendererTap=function(M){if(!this.ytdDismissibleItemBehavior.isDismissed){var z,J=(z=this.data)==null?void 0:z.navigationEndpoint;J&&!_.bP(_.CX(M),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(J)?_.bP(_.CX(M),this.hostElement,["A"])||_.Pv(this.hostElement,"yt-navigate",{endpoint:J}):this.ytComponentBehavior.resolveCommand(J,{}))}};
_.P.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.P.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
_.P.isNavigationCommand=function(M){return M?_.G(M,_.Gh)||_.G(M,_.Au)||_.G(M,_.af)?!0:!1:!1};
n7.prototype.onRendererTap=n7.prototype.onRendererTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],n7.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],n7.prototype,"data",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],n7.prototype,"onRendererTap",null);_.u([_.c({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],n7);
_.d(n7,"ytd-lumiere-promo-item-image-renderer",function(){if(QeB!==void 0)return QeB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return QeB=M},{mode:1});var UqS;var h5=function(){return _.g.apply(this,arguments)||this};
_.w(h5,_.g);h5.prototype.computeLandscapeThumbnail=function(){var M;return((M=this.data)==null?void 0:M.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],h5.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],h5.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],h5.prototype,"miniMode",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.y$}),_.W("design:type",Number)],h5.prototype,"itemsPerRow",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.W("design:type",Boolean)],h5.prototype,"landscapeThumbnail",void 0);_.u([_.c({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],h5);
_.d(h5,"ytd-lumiere-shelf-details-renderer",function(){if(UqS!==void 0)return UqS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return UqS=M},{mode:_.B5("kevlar_poly_si_batch_j076")?1:2});var v6$;var yf=function(){return _.g.apply(this,arguments)||this};
_.w(yf,_.g);yf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yf.prototype,"data",void 0);_.u([_.c({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],yf);
_.d(yf,"ytd-primetime-promo-details-renderer",function(){if(v6$!==void 0)return v6$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return v6$=M},{mode:1});var Gep;var Hp=function(){return _.g.apply(this,arguments)||this};
_.w(Hp,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Hp.prototype,"data",void 0);_.u([_.c({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Hp);
_.d(Hp,"ytd-panel-show-style-metadata-renderer",function(){if(Gep!==void 0)return Gep;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Gep=M},{mode:1});var wip;var cp=function(){return _.g.apply(this,arguments)||this};
_.w(cp,_.g);_.P=cp.prototype;_.P.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.P.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.P.computeThumbnail=function(M){if(M)return M.smallFormFactorBackgroundThumbnail||M.largeFormFactorBackgroundThumbnail};
_.P.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.P.isNavigationCommand=function(M){return M?_.G(M,_.Gh)||_.G(M,_.Au)||_.G(M,_.af)?!0:!1:!1};
_.P.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
cp.prototype.onPanelTap=cp.prototype.onPanelTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cp.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],cp.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.W("design:type",Boolean)],cp.prototype,"modernButtons",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cp.prototype,"onPanelTap",null);_.u([_.c({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],cp);
_.d(cp,"ytd-primetime-promo-panel-renderer",function(){if(wip!==void 0)return wip;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return wip=M},{mode:1});_.N7(_.Mf(function(M){M=_.rH(M,{data:{},useFullWidth:!1});var z=M.data,J=M.useFullWidth;M={};return _.T("teaser-card-view-model",{class:_.Qe("ytTeaserCardViewModelHost",(M.ytTeaserCardViewModelUseFullWidth=function(){return J()},M))},_.T(_.I,{cond:function(){return z().onTap},
then:function(R){return _.T(_.a9,{className:"ytTeaserCardViewModelLink",command:R},_.T("div",{class:"ytTeaserCardViewModelImageContainer"},_.T(_.I,{cond:function(){return z().image},
then:function(D){return _.T(_.rv,{data:D,className:"ytTeaserCardViewModelImage",alt:""})}})),_.T("p",{class:"ytTeaserCardViewModelCaption"},function(){return z().caption}))}}))},"Qb"),"teaser-card-view-model",{props:{data:_.zn,
useFullWidth:_.zn}});var xqS=new _.Nh("RICH_GRID_VIDEO_RENDERER_TOKEN");_.N7(_.Mf(function(M){var z=M.data;var J=M.showYtInteractionInContent;var R=function(){return!!z().selectableFeedback};
M=_.S(_.kE(!1,void 0,"nblDw"));var D=M.next().value,N=M.next().value;_.mF(function(){var Q=_.G(z().primaryButton,_.nf);(Q==null?0:Q.isToggled)&&N(Q.isToggled)});
M=_.ol(function(Q){if(!R())return!1;if(D()){var v;var x=(v=z().selectableFeedback)==null?void 0:v.onDeselect}else{var m;x=(m=z().selectableFeedback)==null?void 0:m.onSelect}x&&_.aE(x,{form:{element:Q.target}});N(!D());if(Q=_.G(z().primaryButton,_.nf))Q.isToggled=D();return!1});
var Z=function(){if(!R()){var Q,v=(Q=z().loggingDirectives)==null?void 0:Q.trackingParams;v&&_.Ub(_.JF().resolve(_.hs),v)}},B=_.Vyp(),O=function(){var Q;
return R()?(Q=z().selectableFeedback)==null?void 0:Q.a11yLabel:void 0},X=function(){return R()?{toggled:D()}:{}},l=_.JF().resolve(_.zw(xqS)),e={};
return _.T("yt-feedback-item-renderer",{class:_.Qe("ytFeedbackItemRendererHost",(e.ytFeedbackItemRendererSelectableFeedback=R,e)),"on:click":M,"on:keydown":B,title:O,"aria-label":O,"aria-pressed":function(){return R()?D():void 0},
tabindex:function(){return R()?0:void 0},
role:function(){return R()?"button":void 0}},_.T("div",{class:"ytFeedbackItemRendererContentContainer"},_.T(_.t_,{data:function(){return z().content}},{videoRenderer:function(Q){return _.T(l,{data:Q.data,
showYtInteraction:J})},
lockupViewModel:function(Q){return _.T(_.Xc,{data:Q.data,containerType:2})}})),_.T("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.T(_.t_,{data:function(){return z().primaryButton}},{toggleButtonViewModel:function(Q){return _.T(_.cm,{data:Q.data,
buttonShapeOverrides:X,disableExplicitClickLogging:!0,onToggle:Z})}})))},"Rb"),"yt-feedback-item-renderer",{props:{data:_.zn,
showYtInteractionInContent:_.zn}});var dr=function(){var M=_.g.apply(this,arguments)||this;M.isShortsGrid=!1;M.isCompactGrid=!1;M.isShortsPanelGrid=!1;M.renderedFromRichGrid=!1;M.isInFirstColumn=!1;M.noGutterMargins=!1;M.isInlineGroupItem=!1;M.insetMetadata=!1;M.noBottomMarginInAds=!0;M.force16By9ThumbnailAspectRatio=!1;M.useCompactList=!1;M.containerType=2;M.thumbnailTargetWidth=9999;M.isResponsiveGrid=!1;M.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};M.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
M.hoverListener=M.hover.bind(M);M.leaveListener=M.leave.bind(M);M.highlighted=!1;M.JSC$16053_unsubscribeFromInlinePreviewIsActive=function(){};
return M};
_.w(dr,_.g);_.P=dr.prototype;_.P.computeContainerType=function(){return this.useCompactList?3:2};
_.P.computeThumbnailTargetWidth=function(){var M;return(M=this.itemWidth)!=null?M:9999};
_.P.updateIsInFirstColumn=function(){var M;this.isInFirstColumn=((M=this.data)==null?void 0:M.colIndex)===0};
_.P.observerContainerType=function(){if(this.lockup){var M=this.lockup;M.containerType=this.containerType;M.sizing=this.sizing;M.typographyBump=this.typographyBump;M.itemWidth=this.itemWidth}this.richGridMedia&&_.U("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.U("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.P.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.P.leave=function(M){M=M.relatedTarget;var z=document.querySelector("ytd-video-preview");M&&z&&_.ZE(z).contains(M)||this.removeAndCleanupHighlight()};
_.P.hover=function(){var M;if(!this.highlighted&&(!_.U("web_enable_rich_item_on_focus_effect")||(M=this.data)!=null&&M.onFocusEffect)){var z,J;((z=this.data)==null?void 0:(J=z.onFocusEffect)==null?void 0:J.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(M=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:M,boxShadow:"0 0 0 10px "+M}));var R,D;((R=this.data)==null?void 0:(D=R.onFocusEffect)==null?void 0:
D.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.P.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.P.registerHoverHighlightListeners=function(){var M=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16053_unsubscribeFromInlinePreviewIsActive=_.jx(_.rA(),_.E98,function(z){M.highlighted&&!z&&M.removeAndCleanupHighlight()})};
_.P.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16053_unsubscribeFromInlinePreviewIsActive()};
_.P.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.P.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.P.getBackgroundColor=function(){var M,z,J=(M=this.data)==null?void 0:(z=M.onFocusEffect)==null?void 0:z.onFocusColor;if(J){if(document.documentElement.hasAttribute("dark")&&(J==null?0:J.darkTheme))return _.u7(J==null?void 0:J.darkTheme);if(J==null?0:J.lightTheme)return _.u7(J==null?void 0:J.lightTheme)}};
_.P.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var M=_.y5(),z,J,R;M&&((z=this.data)==null?0:z.trackingParams)&&((J=this.data)==null?void 0:J.colIndex)!=null&&((R=this.data)==null?void 0:R.rowIndex)!=null&&_.Ad(M,_.pe(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.P.isSlimMediaRenderer=function(M){return!!_.G(M==null?void 0:M.content,_.CZQ)||!!_.G(M==null?void 0:M.content,iRu)||!!_.G(M==null?void 0:M.content,_.Wc)||!!_.G(M==null?void 0:M.content,erV)};
_.P.isPostRenderer=function(){var M,z;return!!_.G((M=this.data)==null?void 0:M.content,qca)||!!_.G((z=this.data)==null?void 0:z.content,Wcg)};
_.P.computeIsGameCardShelf=function(){var M;return!!_.G((M=this.data)==null?void 0:M.content,rbB)};
_.P.computeIsMiniGameCardShelf=function(){var M,z;return!!_.G((M=this.data)==null?void 0:M.content,IWV)||!!_.G((z=this.data)==null?void 0:z.content,oDt)};
_.P.computeIsTeaserCard=function(){var M;return!!_.G((M=this.data)==null?void 0:M.content,oDt)};
_.P.computeIsSelectableFeedbackItem=function(){var M,z;return!((z=_.G((M=this.data)==null?void 0:M.content,_.lWv))==null||!z.selectableFeedback)};
_.P.computeContainsLumierePosters=function(){var M,z;return((z=_.G((M=this.data)==null?void 0:M.content,rwk))==null?void 0:z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.computeIsExpandOnHoverCardShelf=function(){var M;return!!_.G((M=this.data)==null?void 0:M.content,bQB)};
_.P.computeIsLinkCardShelf=function(){var M;return!!_.G((M=this.data)==null?void 0:M.content,pmQ)};
_.P.computeIsReelItemStyleAvatarCircle=function(M){var z;return((z=_.G(M==null?void 0:M.content,_.Wc))==null?void 0:z.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.P.computeIsLinkCardFullWidth=function(M,z){var J;return((J=_.G(M==null?void 0:M.content,pmQ))==null?void 0:J.useFullWidth)||z<=2};
_.rX.Object.defineProperties(dr.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.U("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.U("web_enable_rich_item_on_focus_effect")||_.U("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}}});
dr.prototype.richGridHoverHighlightChanged=dr.prototype.richGridHoverHighlightChanged;dr.prototype.observerContainerType=dr.prototype.observerContainerType;dr.prototype.updateIsInFirstColumn=dr.prototype.updateIsInFirstColumn;_.u([_.p(_.Wg),_.W("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],dr.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dr.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.W("design:type",Boolean)],dr.prototype,"isPost",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.W("design:type",Boolean)],dr.prototype,"containsLumierePosters",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.W("design:type",Boolean)],dr.prototype,"isSlimMedia",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.W("design:type",Boolean)],dr.prototype,"isGameCardShelf",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.W("design:type",Boolean)],dr.prototype,"isMiniGameCardShelf",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.W("design:type",Boolean)],dr.prototype,"isTeaserCard",void 0);_.u([_.Y({computed:"computeIsSelectableFeedbackItem(data)"}),_.W("design:type",Boolean)],dr.prototype,"isSelectableFeedbackItem",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isShortsGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],dr.prototype,"isSlimGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isCompactGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isShortsPanelGrid",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.W("design:type",Boolean)],dr.prototype,"isExpandOnHoverCardShelf",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.W("design:type",Boolean)],dr.prototype,"isLinkCardShelf",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.y$,value:3}),_.W("design:type",Number)],dr.prototype,"itemsPerRow",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"renderedFromRichGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isInFirstColumn",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"noGutterMargins",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isInlineGroupItem",void 0);_.u([_.Y(),_.W("design:type",Object)],dr.prototype,"insetMetadata",void 0);
_.u([_.Y(),_.W("design:type",Object)],dr.prototype,"noBottomMarginInAds",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],dr.prototype,"isShelfItem",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.W("design:type",Boolean)],dr.prototype,"isReelItemStyleAvatarCircle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.W("design:type",Boolean)],dr.prototype,"isLinkCardFullWidth",void 0);
_.u([_.Y(),_.W("design:type",Object)],dr.prototype,"force16By9ThumbnailAspectRatio",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"useCompactList",void 0);_.u([_.Y(),_.W("design:type",String)],dr.prototype,"sizing",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],dr.prototype,"typographyBump",void 0);_.u([_.Y(),_.W("design:type",Number)],dr.prototype,"itemWidth",void 0);_.u([_.Y(),_.W("design:type",Boolean)],dr.prototype,"isHomeShelf",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],dr.prototype,"isHomeGrid",void 0);_.u([_.Qc("yt-lockup-view-model"),_.W("design:type",HTMLElement)],dr.prototype,"lockup",void 0);_.u([_.Qc("ytd-rich-grid-media"),_.W("design:type",HTMLElement)],dr.prototype,"richGridMedia",void 0);_.u([_.Qc("ytd-ad-slot-renderer"),_.W("design:type",HTMLElement)],dr.prototype,"adSlotRenderer",void 0);_.u([_.Y({computed:"computeContainerType(useCompactList)"}),_.W("design:type",Object)],dr.prototype,"containerType",void 0);
_.u([_.Y({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.W("design:type",Object)],dr.prototype,"thumbnailTargetWidth",void 0);_.u([_.F("showYtInteractionOnRichItem"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dr.prototype,"showYtInteractionOnRichGridMedia",null);_.u([_.F("isSelectableFeedbackItem","richGridHoverHighlight"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dr.prototype,"showYtInteractionOnRichItem",null);
_.u([_.F("typographyBump","isHomeGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dr.prototype,"richTypographyBump",null);_.u([_.Y({reflectToAttribute:!0}),_.F("isShortsGrid","isCompactGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dr.prototype,"richGridHoverHighlight",null);_.u([_.F("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],dr.prototype,"shortsLockupViewModelAspectRatio",null);
_.u([_.F("isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],dr.prototype,"shortsLockupViewModelScrimStyle",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dr.prototype,"updateIsInFirstColumn",null);_.u([_.la("containerType","sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dr.prototype,"observerContainerType",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dr.prototype,"isResponsiveGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],dr.prototype,"lockupExperiments",void 0);_.u([_.la("richGridHoverHighlight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dr.prototype,"richGridHoverHighlightChanged",null);_.u([_.c({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],dr);
_.tMQ=_.kS()(dr,"ytd-rich-item-renderer",function(){if(B8B===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);B8B=M}M=B8B;return M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var DYR={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var eNp=_.id(_.e9("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var P88={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},Zbn={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},koR={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var jeJ;var K7=function(){var M=_.g.apply(this,arguments)||this;M.useResponsiveGrid=!1;M.hidden=!1;M.standardShelfMargins=!0;M.isShowMoreHidden=!1;M.isExpanded=!1;M.isInnerShelf=!1;M.allVideosCount=0;M.allPlaylistCount=0;M.haveSmartDownloadsCompleted=!1;M.isShowLessHidden=!0;M.restrictContentsOverflow=!1;M.firstShownIndex=0;M.horizontalOffset=0;M.atEnd=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
M.nextClick=function(){var z;(z=M.data)!=null&&z.contents&&(M.firstShownIndex+=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
M.previousClick=function(){var z;(z=M.data)!=null&&z.contents&&(M.firstShownIndex-=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
return M};
_.w(K7,_.g);_.P=K7.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.HW("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){this.requestElementsPerRow()};
_.P.refreshGridLayoutNew=function(){var M;if((M=this.data)!=null&&M.contents&&this.containerWidth){var z;((z=this.data.responsiveContainerConfiguration)==null?0:z.responsiveSize)?(M=_.vUc(this.data.responsiveContainerConfiguration,this.containerWidth),M=_.ff(Object.assign({},M,{standardUnitMinWidth:this.standardUnitMinWidth}))):M=_.ff({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=M.typographyBump;if(this.elementsPerRow!==
M.numItems||this.gutter!==M.gutter)this.elementsPerRow=M.numItems,this.gutter=M.gutter,this.itemWidth=M.itemWidth,_.Tp(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.gutter+"px"})}};
_.P.computeSizing=function(){if(!this.isLumiere){var M=_.V8w(this.data);if(M)return M;if(_.U("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.P.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.P.computeButton=function(M){var z=_.G(M,_.aR);M=Object.assign({},_.G(M,_.aR));return z?(M.text||(M.text={simpleText:M.tooltip}),M.style="STYLE_MONO_OUTLINE",M.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",M):z};
_.P.onRowIndexChange=function(){var M=_.y5(),z,J;((z=this.data)==null?0:z.trackingParams)&&((J=this.data)==null?void 0:J.rowIndex)!=null&&M&&_.Ad(M,_.pe(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.P.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var M,z=((M=this.getRichItemRenderers()[0])==null?void 0:M.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*z;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
_.P.onUpdateElementsPerRowAction=function(M,z,J,R,D,N){if(this.containerWidth!==N&&(this.containerWidth=N,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&M&&z&&J&&R&&D&&(this.elementsPerRow!==M||this.postsPerRow!==z||this.slimItemsPerRow!==J||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==D)&&(this.elementsPerRow=M,this.postsPerRow=z,this.slimItemsPerRow=J,this.gameCardsPerRow=R,this.miniGameCardsPerRow=D,this.updateItemVisibility())};
_.P.getRichItemRenderers=function(){return _.SN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.P.updateItemVisibility=function(){var M=this;if(this.data&&this.data.contents){var z=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(R,D){var N;((N=M.data)==null?0:N.isExpanded)?(R.hidden=D>z-1,R.ytRendererBehavior.markDirty()):R.hidden=D>M.currentElementsPerRow-1||D>z-1});
var J=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||J||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||J||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.P.setHeightToSingleRow=function(){var M=this.getRichItemRenderers(),z=Number.parseInt(getComputedStyle(M[0]).marginBottom,10)||0;M=M.slice(0,this.currentElementsPerRow).reduce(function(J,R){return Math.max(J,R.getBoundingClientRect().height+z)},0);
this.contents.style.height=M+"px"};
_.P.focusNextExpandedItem=function(){var M;((M=this.data)==null?0:M.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.P.focusItem=function(M,z){var J=this.getRichItemRenderers();if(J[M]&&(M=J[M].querySelector(".focus-on-expand"))){if(z){var R;(R=J[this.currentElementsPerRow])==null||R.scrollIntoView({behavior:"smooth",block:"center"})}M.focus({preventScroll:!0})}};
_.P.onDataChange=function(){var M=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var z;if((z=this.data)==null?0:z.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.C4(this,function(){M.updateItemVisibility()});
var J;if((J=this.data)==null?0:J.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Tp(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),z=0;z<this.data.contents.length;z++)J=_.G(this.data.contents[z],_.yz)||{},J.colIndex=z,J.rowIndex=this.data.rowIndex};
_.P.handleRerenderDownloadsData=function(){_.U("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.P.blockInlinePreview=function(M){var z=this,J;return _.k(function(R){(J=z.inlinePreviewIsEnabled)&&z.ytdReduxBehavior.dispatch(_.kM2(!1));return R.return(new Promise(function(D){M(function(){J&&z.ytdReduxBehavior.dispatch(_.kM2(!0));D()})}))})};
_.P.expandShelf=function(){var M=this;if(this.data){var z,J=(z=_.G(this.data.showMoreButton,_.aR))==null?void 0:z.trackingParams;J&&_.Ub(_.Gm(),J);this.data.isExpanded=!0;this.blockInlinePreview(function(R){M.setHeightToSingleRow();M.updateItemVisibility();M.contents.style.height=M.contents.scrollHeight+"px";_.no.addJob(function(){M.contents.style.height="auto";M.focusNextExpandedItem();R()},2,200)})}};
_.P.collapseShelf=function(){var M=this;return _.k(function(z){if(z.nextAddress==1){if(!M.data)return z.return();M.data.isExpanded=!1;return z.yield(M.blockInlinePreview(function(J){M.contents.style.height=M.contents.scrollHeight+"px";M.setHeightToSingleRow();_.no.addJob(function(){M.updateItemVisibility();M.contents.style.height="auto";J()},2,200)}),2)}_.Pv(M.hostElement,"yt-rich-shelf-renderer-collapse",M.data.trackingParams);
M.focusItem(0,!1);_.UI(z)})};
_.P.updateArrowButtonStatus=function(){var M=this.getRichItemRenderers().length;if(!_.U("web_rich_shelf_renderer_use_data_contents_killswitch")){var z,J;M=((z=this.data)==null?void 0:(J=z.contents)==null?void 0:J.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=M};
_.P.onChildElementFocus=function(M){this.hasChevronButtons&&(M=M.target.closest("#contents > *"),this.contents.contains(M)&&(M.offsetLeft<this.horizontalOffset?this.previousClick():M.offsetLeft+M.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.P.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.HW("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.P.updateHorizontalOffset=function(){var M=this.getRichItemRenderers(),z=M.length;if(!_.U("web_rich_shelf_renderer_use_data_contents_killswitch")){var J,R;z=((J=this.data)==null?void 0:(R=J.contents)==null?void 0:R.length)||0}var D;M=((D=M[0])==null?void 0:D.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>z?this.firstShownIndex=z-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*M};
_.P.isSlimMediaShelfRenderer=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!(_.G(R,_.CZQ)||_.G(R,iRu)||_.G(R,_.Wc)||_.G(R,erV))};
_.P.isGameCardShelf=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!_.G(R,rbB)};
_.P.isGnomeShelf=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!_.G(R,_.lWv)};
_.P.isMiniGameCardShelf=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!_.G(R,IWV)||!!_.G(R,oDt)};
_.P.hasGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.P.hasRoundedGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.P.isShortsShelf=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!_.G(R,_.Wc)||!!_.G(R,erV)};
_.P.isPostShelfRenderer=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!(!_.G(R,qca)&&!_.G(R,Wcg))};
_.P.isLumiereShelf=function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz);return!!_.G(J==null?void 0:J.content,rwk)};
_.P.isLumiereShelfWithPosters=function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz),R;return((R=_.G(J==null?void 0:J.content,rwk))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.isExpandOnHoverCardShelf=function(){var M,z,J,R=(J=_.G((M=this.data)==null?void 0:(z=M.contents)==null?void 0:z[0],_.yz))==null?void 0:J.content;return!!_.G(R,bQB)};
_.P.computeHasFeaturedBadge=function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.badges)==null?void 0:z[0],_.ehB);return J?J.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHasPaygatedFeaturedBadge=function(){var M,z,J=_.G((M=this.data)==null?void 0:(z=M.badges)==null?void 0:z[0],_.ehB);return J?(J==null?void 0:J.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHeaderHidden=function(){var M,z,J,R,D,N;return!((M=this.data)==null?0:M.icon)&&!((z=this.data)==null?0:z.title)&&!((J=this.data)==null?0:J.subtitle)&&!((R=this.data)==null?0:R.thumbnail)&&!((D=this.data)==null?0:D.badges)&&!((N=this.data)==null?0:N.menu)};
_.P.showCtaButton=function(){var M;return!((M=this.data)==null||!M.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.P.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.P.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.P.computeForce16By9ThumbnailAspectRatio=function(){var M,z;return((M=this.data)==null?void 0:(z=M.responsiveContainerConfiguration)==null?void 0:z.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.P.onSectionReactiveDismissal=function(M,z,J){var R,D;var N=(R=this.data)==null?void 0:(D=R.targetingContext)==null?void 0:D.targetGroupId;this&&N&&z.targetGroupId&&N.includes(z.targetGroupId)?(R=this.rowIndex,M=R===void 0?!1:!(z.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R<=M)):M=!1;M&&(this.hidden=J)};
_.rX.Object.defineProperties(K7.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var M=this.elementsPerRow;this.isPostShelfRenderer()?M=this.postsPerRow:this.isSlimMediaShelfRenderer()?M=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?M=this.slimItemsPerRow-1:this.isGameCardShelf()?M=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(M=this.miniGameCardsPerRow);return M}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.U("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.previousButton)&&!((z=this.data)==null||!z.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.JF().resolve(_.M6).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return!((M=this.data)==null?0:(z=M.thumbnail)==null?0:(J=z.accessibility)==null?0:(R=J.accessibilityData)==null?0:R.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
K7.prototype.onChildElementFocus=K7.prototype.onChildElementFocus;K7.prototype.handleRerenderDownloadsData=K7.prototype.handleRerenderDownloadsData;K7.prototype.onDataChange=K7.prototype.onDataChange;K7.prototype.onRowIndexChange=K7.prototype.onRowIndexChange;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Vg),_.W("design:type",Object)],K7.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],K7.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.W("design:type",Object)],K7.prototype,"useResponsiveGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],K7.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Number)],K7.prototype,"standardUnitMinWidth",void 0);_.u([_.Y({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],K7.prototype,"elementsPerRow",void 0);_.u([_.Y({value:3}),_.W("design:type",Number)],K7.prototype,"postsPerRow",void 0);_.u([_.Y({value:6}),_.W("design:type",Number)],K7.prototype,"slimItemsPerRow",void 0);_.u([_.Y({value:6}),_.W("design:type",Number)],K7.prototype,"gameCardsPerRow",void 0);
_.u([_.Y({value:6}),_.W("design:type",Number)],K7.prototype,"miniGameCardsPerRow",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"standardShelfMargins",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"isShowMoreHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"isExpanded",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"isInnerShelf",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.W("design:type",Boolean)],K7.prototype,"isShorts",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.W("design:type",Boolean)],K7.prototype,"isLumiere",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],K7.prototype,"hasBoxArtThumbnailStyle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],K7.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.W("design:type",Boolean)],K7.prototype,"hasFeaturedBadge",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.W("design:type",Boolean)],K7.prototype,"hasPaygatedFeaturedBadge",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.W("design:type",Boolean)],K7.prototype,"isHeaderHidden",void 0);_.u([_.Y({selector:_.bNp}),_.W("design:type",Object)],K7.prototype,"allVideosCount",void 0);_.u([_.Y({selector:UYn}),_.W("design:type",Object)],K7.prototype,"allPlaylistCount",void 0);_.u([_.Y({selector:ZZR}),_.W("design:type",Object)],K7.prototype,"haveSmartDownloadsCompleted",void 0);
_.u([_.Y({selectorArgs:["entitySelectorType"],selector:function(M,z){if(_.U("kevlar_modern_downloads_page")&&z&&z!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var J=M.entities;switch(z){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":z=_.gA(J);M=Gy(z);var R=_.tN(z);J=_.nD(J);J=_.JN(Obc(R,J,z.length));return{contents:M,subtitle:J};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return J=_.gA(J),{contents:Gy(J)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return J=
_.sh(J),{contents:Gy(J)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return J=_.Ybo(J),{contents:Gy(J)};default:_.yA(new _.xN("Error: entitySelectorType defined but not matched in selector.",M,z))}}}}),
_.W("design:type",Object)],K7.prototype,"entityDrivenRichShelfData",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],K7.prototype,"hasTopCtaButton",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],K7.prototype,"hasBottomCtaButton",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.W("design:type",Boolean)],K7.prototype,"force16By9ThumbnailAspectRatio",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"isShowLessHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"restrictContentsOverflow",void 0);_.u([_.Y({selector:_.fuo}),_.W("design:type",Boolean)],K7.prototype,"inlinePreviewIsEnabled",void 0);
_.u([_.Y({computed:"computeSizing(data)"}),_.W("design:type",String)],K7.prototype,"sizing",void 0);_.u([_.Y(),_.W("design:type",Boolean)],K7.prototype,"typographyBump",void 0);_.u([_.Y(),_.W("design:type",Number)],K7.prototype,"itemWidth",void 0);_.u([_.Y(),_.W("design:type",Object)],K7.prototype,"firstShownIndex",void 0);_.u([_.Y(),_.W("design:type",Object)],K7.prototype,"horizontalOffset",void 0);_.u([_.Y(),_.W("design:type",Object)],K7.prototype,"atEnd",void 0);
_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],K7.prototype,"contents",void 0);_.u([_.la("data.rowIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"onRowIndexChange",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"onDataChange",null);
_.u([_.la("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"handleRerenderDownloadsData",null);_.u([_.Xw("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],K7.prototype,"onChildElementFocus",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data","isHomePage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K7.prototype,"isTruncated",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K7.prototype,"hideBottomDivider",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],K7.prototype,"hasChevronButtons",null);_.u([_.F("firstShownIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],K7.prototype,"previousButtonOverride",null);
_.u([_.F("atEnd"),_.W("design:type",Object),_.W("design:paramtypes",[])],K7.prototype,"nextButtonOverride",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K7.prototype,"isHomePage",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K7.prototype,"thumbnailAriaHidden",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K7.prototype,"initiallyIsExpanded",null);
_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],K7.prototype,"entitySelectorType",null);_.u([_.c({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],K7);
_.piu=_.kS()(K7,"ytd-rich-shelf-renderer",function(){if(jeJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);jeJ=M}M=jeJ;return M},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var F1$;_.N7(_.kY,"yt-badge-view-model",{props:{data:_.zn,class:_.zn,workaroundShortsIsThumbnailBadge:_.zn,modern:_.zn}});_.N7(NIV,"yt-slimline-survey-view-model",{props:{data:_.zn}});var $m=function(){var M=_.g.apply(this,arguments)||this;M.tileLottieAnimationRef={};M.backgroundLottieAnimationRef={};M.isOnHoverBehaviorForLottieEnabled=!0;M.useBiggerShowcaseImage=_.U("enable_desktop_search_bigger_thumbs");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return M};
_.w($m,_.g);_.P=$m.prototype;_.P.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",
params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var M=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);M!==this.hasTile&&this.set("hasTile",M);M=this.hasLogo(this.data)||!!this.data.badgeText;M!==this.hasMetadata&&this.set("hasMetadata",M);M=this.data.overflowButton?!1:M;M!==this.showLogoImage&&this.set("showLogoImage",M);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.P.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.P.currentColorChanged=function(){this.updateButtonPalette()};
_.P.computeBackgroundStyle=function(M){if(M&&this.data){var z=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var J=_.Sh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);J&&z.push('background-image: url("'+J+'");')}var R;((R=M.basicColorData)==null?void 0:R.backgroundColor)!==void 0&&z.push("background-color: "+_.qG(M.basicColorData.backgroundColor)+";");return z.join("")}};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
_.P.getCurrentLogo=function(M,z){if(M)return z?M.darkLogoImage:M.lightLogoImage};
_.P.getCurrentStaticTileImage=function(M,z){if(this.hasStaticTile(M))return M.darkTileImage?z?M.darkTileImage:M.tileImage:M.tileImage};
_.P.computeTitleStyle=function(M){if(this.data&&this.data.title&&M&&M.basicColorData&&M.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.u7(M.basicColorData.foregroundTitleColor)+";"};
_.P.computeSubtitleStyle=function(M){if(this.data&&this.data.subtitle&&M&&M.basicColorData&&M.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.u7(M.basicColorData.foregroundBodyColor)+";"};
_.P.computeSupplementalStyle=function(M){if(this.data&&this.data.supplementalText&&M&&M.supplementalTextColor!==void 0)return M=_.u7(M.supplementalTextColor),"color:"+M+";--yt-endpoint-color:"+M+";--yt-endpoint-hover-color:"+M+";--yt-endpoint-visited-color:"+M+";--yt-formatted-string-bold-font-weight:700;"};
_.P.computeDismissIconStyle=function(M){var z,J;if((M==null?0:(z=M.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(M==null?0:(J=M.dismissButtonColorData)==null?0:J.backgroundColor))return"--yt-button-color:"+_.qG(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qG(M.dismissButtonColorData.backgroundColor)+";"};
_.P.computeOverflowIconStyle=function(M){var z,J;if((M==null?0:(z=M.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(M==null?0:(J=M.dismissButtonColorData)==null?0:J.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.qG(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qG(M.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.qG(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.P.computeBannerStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeLocation=function(M){switch(M==null?void 0:M.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.P.shouldShowTileSection=function(M,z,J){return!this.shouldExpandLogo(M,z,J)&&z};
_.P.shouldShowExpandedLogoSection=function(M,z,J){return this.shouldExpandLogo(M,z,J)&&M!==void 0&&this.hasLogo(M)};
_.P.shouldExpandLogo=function(M,z,J){return M&&z?!1:J>=2};
_.P.hasStaticTile=function(M){return!(M==null||!M.tileImage)};
_.P.hasTileLottie=function(M){var z;return!!(M==null?0:(z=M.tileLottie)==null?0:z.url)};
_.P.hasLogo=function(M){return this.getCurrentLogo(M,this.isDarkTheme)!==void 0};
_.P.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.P.getExpandedLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.P.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.P.getMaxTitleFontSize=function(M){return M.overrideTitleMaxFontSize?String(M.overrideTitleMaxFontSize):"36"};
_.P.hasBackgroundLottie=function(M){var z;return!!(M==null?0:(z=M.backgroundLottie)==null?0:z.url)};
_.P.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,z;(M=this.tileLottieAnimationRef)==null||(z=M.lottieEl)==null||z.play();var J,R;(J=this.backgroundLottieAnimationRef)==null||(R=J.lottieEl)==null||R.play()}};
_.P.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,z;(M=this.tileLottieAnimationRef)==null||(z=M.lottieEl)==null||z.pause();var J,R;(J=this.backgroundLottieAnimationRef)==null||(R=J.lottieEl)==null||R.pause()}};
_.P.pauseLottie=function(){var M,z;(M=this.tileLottieAnimationRef)==null||(z=M.lottieEl)==null||z.pause();var J,R;(J=this.backgroundLottieAnimationRef)==null||(R=J.lottieEl)==null||R.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.P.performPrimaryButtonAction=function(){var M,z,J;((M=this.data)==null?0:(z=M.primaryButton)==null?0:(J=z.buttonRenderer)==null?0:J.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
_.P.updateButtonPalette=function(){if(this.data&&this.currentColorData){var M;((M=this.data.dismissButton)==null?0:M.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var z;if((z=this.data.primaryButton)==null?0:z.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 J;if((J=this.data.secondaryButton)==
null?0:J.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 R;((R=this.data.primaryButton)==null?0:R.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var D;((D=this.data.secondaryButton)==null?0:D.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.P.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var M=this.getTileLottieDataBasedOnTheme(),z,J;if(M.url!==((z=this.tileLottiePlayerProps)==null?void 0:(J=z.animationConfig)==null?void 0:J.path)){var R,D;(R=this.tileLottieAnimationRef)==null||(D=R.lottieEl)==null||D.destroy();var N;this.isOnHoverBehaviorForLottieEnabled=!((N=M.settings)==null?0:N.autoplay);var Z,B;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(B=(Z=M.settings)==null?void 0:Z.autoplay)!=null?B:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.tileLottiePlayerProps.animationConfig.path=M.url:this.tileLottiePlayerProps.animationConfig.animationData=M.url}}};
_.P.getOverflowButton=function(M){return _.G(M.overflowButton,wck)};
_.P.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var M=this.getBackgroundLottieDataBasedOnTheme(),z,J;if(M.url!==((z=this.backgroundLottiePlayerProps)==null?void 0:(J=z.animationConfig)==null?void 0:J.path)){var R,D;(R=this.backgroundLottieAnimationRef)==null||(D=R.lottieEl)==null||D.destroy();var N;this.isOnHoverBehaviorForLottieEnabled=!((N=M.settings)==null?0:N.autoplay);var Z,B;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(B=(Z=M.settings)==null?void 0:Z.autoplay)!=null?B:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=M.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
M.url}}};
_.P.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var M;((M=this.tileLottieAnimationRef)==null?void 0:M.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var z;((z=this.backgroundLottieAnimationRef)==null?void 0:z.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.P.getTileLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeTileLottie))return this.data.darkThemeTileLottie;var z;return((z=this.data)==null?0:z.tileLottie)?this.data.tileLottie:{}};
_.P.getBackgroundLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var z;return((z=this.data)==null?0:z.backgroundLottie)?this.data.backgroundLottie:{}};
_.P.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.P.getLottieLoopValue=function(M){return M?M.loop!==void 0?M.loop:M.loopCount?M.loopCount-1:!0:!0};
_.P.logoWithPadding=function(M){var z,J,R;return(M=(z=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(J=z.thumbnails)==null?void 0:(R=J[0])==null?void 0:R.height)&&M%31===0?!0:!1};
$m.prototype.currentColorChanged=$m.prototype.currentColorChanged;$m.prototype.themeChanged=$m.prototype.themeChanged;$m.prototype.dataChanged=$m.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],$m.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],$m.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"primaryButton",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"secondaryButton",void 0);
_.u([_.Y({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],$m.prototype,"elementsPerRow",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$m.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$m.prototype,"hasTile",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$m.prototype,"hasMetadata",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$m.prototype,"showLogoImage",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"currentColorData",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.W("design:type",String)],$m.prototype,"bannerStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.W("design:type",String)],$m.prototype,"location",void 0);
_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"tileLottiePlayerProps",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"tileLottieAnimationRef",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"backgroundLottiePlayerProps",void 0);_.u([_.Y(),_.W("design:type",Object)],$m.prototype,"backgroundLottieAnimationRef",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$m.prototype,"useBiggerShowcaseImage",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],$m.prototype,"isHideEnclosingAction",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$m.prototype,"dataChanged",null);_.u([_.wH("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$m.prototype,"themeChanged",null);
_.u([_.wH("currentColorData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$m.prototype,"currentColorChanged",null);_.u([_.c({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],$m);
_.d($m,"ytd-statement-banner-renderer",function(){if(F1$!==void 0)return F1$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return F1$=M},{mode:1});var YTa;var uQ=function(){var M=_.g.apply(this,arguments)||this;M.isSearch=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.disableMouseScroll=!0;M.useFloorScrolling=!0;M.modernTypography=_.U("web_modern_typography");return M};
_.w(uQ,_.g);uQ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.e9("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.e9("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
uQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uQ.prototype.onDataChanged=uQ.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uQ.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uQ.prototype,"hideShelfHeader",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uQ.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],uQ.prototype,"disableMouseScroll",void 0);_.u([_.Y(),_.W("design:type",Object)],uQ.prototype,"useFloorScrolling",void 0);_.u([_.Y(),_.W("design:type",Object)],uQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uQ.prototype,"modernTypography",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uQ.prototype,"onDataChanged",null);_.u([_.c({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],uQ);
_.d(uQ,"ytd-reel-shelf-renderer",function(){if(YTa!==void 0)return YTa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return YTa=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var mqp;var g6a;g6a=_.Ca(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.seV=_.Nx(g6a);var n6Q=_.Mf(function(M){var z=M.data;M=M.useSmallFont;var J={},R={};return _.T("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.T(_.I,{cond:function(){return z().favicon},
then:function(D){return _.T(_.rv,{data:D,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.T("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.T(_.m3,{text:function(){return z().title},
className:_.Qe("yt-channel-external-link-view-model-wiz__title",(J["yt-channel-external-link-view-model-wiz__title--title-small-font"]=M,J)),ellipsisTruncate:!0,userInput:!0}),_.T(_.m3,{text:function(){return z().link},
className:_.Qe("yt-channel-external-link-view-model-wiz__link",(R["yt-channel-external-link-view-model-wiz__link--link-small-font"]=M,R)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sb");
n6Q.idomCompat=!0;_.N7(n6Q,"yt-channel-external-link-view-model",{props:{data:_.zn,useSmallFont:_.zn}});_.nn("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var qz=function(){var M=_.g.apply(this,arguments)||this;M.revealButtonClass="button";M.businessEmailDisplayState="HIDE_SECTION";return M};
_.w(qz,_.g);_.P=qz.prototype;_.P.refit=function(){var M=this;_.au(function(){_.ZL(M.hostElement,"yt-refit-popups-action")});
_.C4(this,function(){_.ZL(M.hostElement,"yt-refit-popups-action")})};
_.P.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.qI(_.seV),this.businessEmailDisplayState="CAPTCHA")};
_.P.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.P.computeEmailHref=function(M){return"mailto:"+M};
_.P.computeSafeUrl=function(M){if(M)return _.hr(M)};
_.P.linkEndpoint=function(M){return _.G(M.onTap,_.dv)};
_.P.linkEndpointToHref=function(M){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(M))};
_.P.onYtServiceRequestCompleted=function(M){var z;if((z=M.detail.data)==null?0:z.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var J;if((J=M.detail.data)==null?0:J.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var M=this.JSC$16165_captchaTextarea.value;if(M){M={recaptcha_response_token:M,channel_id:this.metadata.channelId};var z=_.G(this.metadata.onBusinessEmailRevealClickCommand,_.dv);z&&this.ytComponentBehavior.resolveCommand(z,{form:M})}}};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.rX.Object.defineProperties(qz.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var M;return _.G((M=this.data)==null?void 0:M.metadata,Rvu)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.G(this.metadata.businessEmailRevealButton,_.s3)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var M=new URL(this.metadata.canonicalChannelUrl);return M.host+M.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.G(this.metadata.learnMoreOnTap,_.dv)}}});
qz.prototype.onYtServiceRequestCompleted=qz.prototype.onYtServiceRequestCompleted;qz.prototype.businessEmailMetadataChanged=qz.prototype.businessEmailMetadataChanged;qz.prototype.refit=qz.prototype.refit;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qz.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],qz.prototype,"JSC$16165_captchaTextarea",void 0);_.u([_.Y(),_.W("design:type",Object)],qz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],qz.prototype,"revealButtonClass",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],qz.prototype,"metadata",null);
_.u([_.F("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],qz.prototype,"revealButton",null);_.u([_.F("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],qz.prototype,"channelDisplayUrl",null);_.u([_.wH("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qz.prototype,"refit",null);_.u([_.F("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],qz.prototype,"formattedDescription",null);
_.u([_.F("metadata","learnMoreCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qz.prototype,"shouldRendereVerifiedPhoneStatus",null);_.u([_.F("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],qz.prototype,"learnMoreCommand",null);_.u([_.Y(),_.W("design:type",String)],qz.prototype,"businessEmailDisplayState",void 0);_.u([_.Y(),_.W("design:type",String)],qz.prototype,"businessEmail",void 0);
_.u([_.Y(),_.W("design:type",String)],qz.prototype,"businessEmailErrorMessage",void 0);_.u([_.wH("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qz.prototype,"businessEmailMetadataChanged",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qz.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],qz);
_.d(qz,"ytd-about-channel-renderer",function(){if(mqp!==void 0)return mqp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mqp=M},{mode:1});var hm$;var Wp=function(){return _.g.apply(this,arguments)||this};
_.w(Wp,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Wp.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Wp);
_.d(Wp,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(hm$!==void 0)return hm$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hm$=M},{mode:1});var yOu;var ag=function(){return _.g.apply(this,arguments)||this};
_.w(ag,_.g);ag.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ag.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],ag.prototype,"aligment",void 0);_.u([_.c({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ag);
_.d(ag,"ytd-channel-list-sub-menu-renderer",function(){if(yOu!==void 0)return yOu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return yOu=
M},{mode:1});var HB$;var Vf=function(){return _.g.apply(this,arguments)||this};
_.w(Vf,_.g);Vf.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Vf.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Vf);
_.d(Vf,"ytd-channel-sub-menu-renderer",function(){if(HB$!==void 0)return HB$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return HB$=M},{mode:1});var cO$;var dqv;var E2=function(){var M=_.g.apply(this,arguments)||this;M.isCompact=!1;return M};
_.w(E2,_.g);_.rX.Object.defineProperties(E2.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var M,z;return((z=_.G((M=this.data)==null?void 0:M.endpoint,_.af))==null?void 0:z.target)==="TARGET_NEW_WINDOW"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],E2.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],E2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],E2.prototype,"isCompact",void 0);_.u([_.F("isCompact"),_.W("design:type",Number),_.W("design:paramtypes",[])],E2.prototype,"thumbnailWidth",null);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E2.prototype,"openNewWindow",null);_.u([_.c({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],E2);
_.d(E2,"ytd-media-lockup-renderer",function(){if(dqv!==void 0)return dqv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dqv=M},{mode:1});var K1a;var f7=function(){return _.g.apply(this,arguments)||this};
_.w(f7,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],f7.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],f7.prototype,"data",void 0);_.u([_.c({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],f7);
_.d(f7,"ytd-structured-description-channel-lockup-renderer",function(){if(K1a!==void 0)return K1a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return K1a=M},{mode:1});var $qa;var L7=function(){var M=_.g.apply(this,arguments)||this;M.isCompact=!1;M.collections=_.U("web_modern_collections_v2");M.collectionsStackColor=_.U("modernize_structured_description_playlist_lockups_v2");return M};
_.w(L7,_.g);L7.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:_.U("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.rX.Object.defineProperties(L7.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(M=this.data)==null?void 0:(z=M.thumbnail)==null?void 0:z.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(J=this.data)==null?void 0:(R=J.thumbnail)==null?void 0:R.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(D=this.data)==null?void 0:(N=D.thumbnail)==
null?void 0:N.vibrantColorPalette:void 0}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],L7.prototype,"componentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],L7.prototype,"showSidePanelThumbnailOverlay",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],L7.prototype,"isCompact",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],L7.prototype,"collections",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],L7.prototype,"collectionsStackColor",void 0);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L7.prototype,"twoLineTitle",null);
_.u([_.F("data","collections","collectionsStackColor"),_.W("design:type",Object),_.W("design:paramtypes",[])],L7.prototype,"collectionStack",null);_.u([_.c({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],L7);
_.d(L7,"ytd-structured-description-playlist-lockup-renderer",function(){if($qa!==void 0)return $qa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $qa=M},{mode:1});var uut;var A5=function(){return _.g.apply(this,arguments)||this};
_.w(A5,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],A5.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],A5.prototype,"data",void 0);_.u([_.c({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],A5);
_.d(A5,"ytd-structured-description-video-lockup-renderer",function(){if(uut!==void 0)return uut;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return uut=M},{mode:2});var iQ=function(){return _.g.apply(this,arguments)||this};
_.w(iQ,_.g);
iQ.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iQ.prototype,"data",void 0);_.u([_.c({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],iQ);
_.d(iQ,"ytd-compact-infocard-renderer",function(){if(cO$!==void 0)return cO$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return cO$=M},{mode:1});var qT$;var C7=function(){var M=_.g.apply(this,arguments)||this;M.useModernCollectionsV2=_.U("web_modern_collections_v2");return M};
_.w(C7,_.g);C7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.rX.Object.defineProperties(C7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],C7.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],C7.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],C7.prototype,"isGridViewEnabled",void 0);
_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],C7.prototype,"watchFeedBigThumbs",null);_.u([_.F("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"168"}),_.W("design:type",String),_.W("design:paramtypes",[])],C7.prototype,"thumbnailWidth",null);_.u([_.F("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"94"}),_.W("design:type",String),_.W("design:paramtypes",[])],C7.prototype,"customThumbnailSize",null);
_.u([_.Y(),_.W("design:type",Object)],C7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C7.prototype,"useModernCollectionsV2",void 0);_.u([_.c({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],C7);
_.d(C7,"ytd-compact-playlist-renderer",function(){if(qT$!==void 0)return qT$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qT$=M},{mode:1});var W1S;var bQ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.roundedContainer=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.w(bQ,_.g);_.P=bQ.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.P.computeViewStyle=function(M){return M.style?M.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.P.onUpdateElementsPerRowAction=function(M){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&M===1};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
bQ.prototype.dataChanged=bQ.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],bQ.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],bQ.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],bQ.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],bQ.prototype,"hideThumbnail",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.W("design:type",String)],bQ.prototype,"viewStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bQ.prototype,"darkerDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bQ.prototype,"roundedContainer",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bQ.prototype,"dataChanged",null);_.u([_.c({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],bQ);
_.d(bQ,"ytd-compact-promoted-item-renderer",function(){if(W1S!==void 0)return W1S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return W1S=M},{mode:1});var a$B;var rr=function(){var M=_.g.apply(this,arguments)||this;M.collections=_.U("web_modern_collections_v2");return M};
_.w(rr,_.g);rr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
rr.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
rr.prototype.onYtNavigate=function(M,z){var J=this;if(z.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",z)){var R=this.get("watchEndpoint.videoId",z.endpoint),D=_.ZL(this.hostElement,"yt-get-current-video-id-action")[0];_.U("kevlar_mix_handle_first_endpoint_different")&&R&&D&&R!==D||(M.stopPropagation(),_.R9().getPlayerPromise().then(function(N){if(N.getPlayerState()===0&&J.data.secondaryNavigationEndpoint)var Z=J.data.secondaryNavigationEndpoint;else{Z=
Object.assign({},z.endpoint);var B=_.G(Z.commandMetadata,_.X9);B&&(N=Math.floor(N.getCurrentTime()),B.url=_.Ag(B.url,{t:N}),!_.U("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(B=_.G(Z,_.Au)))&&(B.startTimeSeconds=N)}_.Pv(J.hostElement,"yt-navigate",{endpoint:Z})}))}};
_.rX.Object.defineProperties(rr.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(z=M.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(J=this.data)==null?void 0:(R=J.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(N=D.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
rr.prototype.onYtNavigate=rr.prototype.onYtNavigate;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],rr.prototype,"ytEndpointBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],rr.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.bl),_.W("design:type",Object)],rr.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],rr.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],rr.prototype,"isGridViewEnabled",void 0);_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rr.prototype,"watchFeedBigThumbs",null);
_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],rr.prototype,"thumbnailWidth",null);_.u([_.Y(),_.W("design:type",Object)],rr.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],rr.prototype,"collections",void 0);_.u([_.F("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],rr.prototype,"collectionStack",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],rr.prototype,"onYtNavigate",null);_.u([_.c({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],rr);
_.d(rr,"ytd-compact-radio-renderer",function(){if(a$B!==void 0)return a$B;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return a$B=M},{mode:1});var VMJ;var Mi=function(){return _.g.apply(this,arguments)||this};
_.w(Mi,_.g);Mi.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Mi.prototype.computeRendererStyle=function(M){return M.style?M.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.u([_.Y(),_.W("design:type",Object)],Mi.prototype,"data",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Mi.prototype,"rendererBehavior",void 0);_.u([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],Mi.prototype,"rendererStyle",void 0);_.u([_.c({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Mi);
_.d(Mi,"ytd-compact-text-promo-renderer",function(){if(VMJ!==void 0)return VMJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return VMJ=M},{mode:1});var E6S;var z1=function(){var M=_.g.apply(this,arguments)||this;M.isShortsStyle=!1;return M};
_.w(z1,_.g);_.P=z1.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Pv(this.hostElement,"yt-disable-lockup-interaction"):_.Pv(this.hostElement,"yt-enable-lockup-interaction"))};
_.P.isMetaBlockEmpty=function(M){return!M||!M.longBylineText&&!M.shortBylineText&&!M.shortViewCountText&&!M.viewCountText};
_.P.computeHasOneLineTitle=function(M){return this.forceOneLineTitle||!(M==null||!M.buttons)};
_.P.computeDisableInteraction=function(){var M;return!((M=this.data)==null?0:M.navigationEndpoint)};
_.P.hasSingularTopStandaloneBadge=function(){var M;return!((M=this.data)==null||!M.topStandaloneBadge)};
_.rX.Object.defineProperties(z1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.hasSingularTopStandaloneBadge()?[(M=this.data)==null?void 0:M.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.shouldShowTopBadges?((M=this.data)==null?void 0:M.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
z1.prototype.disableInteractionChanged=z1.prototype.disableInteractionChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],z1.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],z1.prototype,"ytdLockupBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],z1.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.W("design:type",Boolean)],z1.prototype,"metaBlockEmpty",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],z1.prototype,"isGridViewEnabled",void 0);_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z1.prototype,"watchFeedBigThumbs",null);
_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],z1.prototype,"thumbnailWidth",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],z1.prototype,"isShortsStyle",void 0);_.u([_.Y(),_.W("design:type",Object)],z1.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.W("design:type",Boolean)],z1.prototype,"hasOneLineTitle",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],z1.prototype,"hideThumbnail",void 0);_.u([_.Y(),_.W("design:type",Boolean)],z1.prototype,"forceOneLineTitle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.W("design:type",Boolean)],z1.prototype,"disableInteraction",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],z1.prototype,"musicMetadataVideoLockup",void 0);
_.u([_.la("disableInteraction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z1.prototype,"disableInteractionChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z1.prototype,"shouldShowTopBadges",null);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],z1.prototype,"topBadges",null);
_.u([_.F("shouldShowTopBadges","data"),_.W("design:type",Array),_.W("design:paramtypes",[])],z1.prototype,"inlineMetadataBadges",null);_.u([_.F("shouldShowTopBadges"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z1.prototype,"shouldShowBadgesBelowMetadata",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],z1.prototype,"compactTitleClass",null);_.u([_.c({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],z1);
_.d(z1,"ytd-compact-video-renderer",function(){if(E6S!==void 0)return E6S;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return E6S=M},{mode:_.B5("kevlar_poly_si_batch_j067")?1:2});var f$g;_.nn("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Jj=function(){return _.g.apply(this,arguments)||this};
_.w(Jj,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Jj.prototype,"data",void 0);_.u([_.c({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Jj);
_.d(Jj,"ytd-counterfactual-renderer",function(){if(f$g!==void 0)return f$g;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return f$g=M},{mode:1});var L1t;var RM=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;return M};
_.w(RM,_.g);RM.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.JF().resolve(_.Rb).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
RM.prototype.computeHidden=function(M){return!!M};
_.rX.Object.defineProperties(RM.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}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RM.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.W("design:type",Object)],RM.prototype,"hidden",void 0);_.u([_.F("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],RM.prototype,"label",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],RM.prototype,"value",null);
_.u([_.c({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],RM);
_.d(RM,"ytd-dropdown-item-renderer",function(){if(L1t!==void 0)return L1t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return L1t=M},{mode:1});var AO2;var iB$;var DA=function(){return _.g.apply(this,arguments)||this};
_.w(DA,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],DA.prototype,"data",void 0);_.u([_.Y({computed:"getSimpleString(data.label)"}),_.W("design:type",String)],DA.prototype,"label",void 0);_.u([_.c({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],DA);
_.d(DA,"ytd-navigation-dropdown-item-renderer",function(){if(iB$!==void 0)return iB$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return iB$=M},{mode:1});var Ni=function(){var M=_.g.apply(this,arguments)||this;M.disabled=!1;M.value="";M.noLabelFloat=!1;M.noUnderline=!1;M.usePrimaryColor=!1;M.hasBackground=!1;M.verticalAlign="top";M.autosize=!1;M.minAutosizeWidth=100;M.autosizeFont="14px Roboto";return M};
_.w(Ni,_.g);_.P=Ni.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.open=function(){this.inputEl.open()};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.P.dataChanged=function(){this.reset()};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("value-changed",this.value))};
_.P.stopPropagation=function(M){M.stopPropagation()};
_.P.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var M=this.canvas.getContext("2d");M&&(M.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(M.measureText(this.inputEl.value).width)+24)+"px")}};
_.P.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var M=0,z=this.data.entries.length;M<z;M++){var J=this.data.entries[M],R;for(R in J)if(J.hasOwnProperty(R)){var D=J[R];if("isSelected"in D&&D.isSelected)return"stringValue"in D?D.stringValue||"":"int32Value"in D?D.int32Value||0:0}}return null};
_.P.updateValueFromBinding=function(M){this.value=M.detail.value};
_.rX.Object.defineProperties(Ni.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var M=0,z=this.data.entries.length;M<z;M++){var J=this.data.entries[M],R;for(R in J)if(J.hasOwnProperty(R)){var D=J[R];if("isSelected"in D&&D.isSelected&&"label"in D)return this.ytRendererBehavior.getSimpleString(D.label)}}return null}}});
Ni.prototype.autoSizeLabel=Ni.prototype.autoSizeLabel;Ni.prototype.stopPropagation=Ni.prototype.stopPropagation;Ni.prototype.valueChangedForBinding=Ni.prototype.valueChangedForBinding;Ni.prototype.dataChanged=Ni.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ni.prototype,"ytRendererStamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ni.prototype,"disabled",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"value",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"noLabelFloat",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ni.prototype,"noUnderline",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],Ni.prototype,"theme",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ni.prototype,"usePrimaryColor",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ni.prototype,"hasBackground",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"verticalAlign",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"autosize",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"minAutosizeWidth",void 0);_.u([_.Y(),_.W("design:type",Object)],Ni.prototype,"autosizeFont",void 0);
_.u([_.Qc("#entries"),_.W("design:type",Object)],Ni.prototype,"entries",void 0);_.u([_.Qc("#input"),_.W("design:type",Object)],Ni.prototype,"inputEl",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ni.prototype,"dataChanged",null);_.u([_.wH("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ni.prototype,"valueChangedForBinding",null);
_.u([_.Xw("iron-overlay-opened"),_.Xw("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ni.prototype,"stopPropagation",null);_.u([_.Xw("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ni.prototype,"autoSizeLabel",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ni.prototype,"label",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Ni);
_.d(Ni,"ytd-dropdown-renderer",function(){if(AO2!==void 0)return AO2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AO2=M},{mode:1});var Cu$;var PB=function(){var M=_.g.apply(this,arguments)||this;M.isConstrainedList=!1;return M};
_.w(PB,_.g);PB.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"}}}};
PB.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
PB.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
PB.prototype.computeViewAllHidden=function(M,z){return M||!z.viewAllEndpoint};
PB.prototype.fillRestIfNoShowMore=PB.prototype.fillRestIfNoShowMore;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],PB.prototype,"ytLazyListBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PB.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],PB.prototype,"isConstrainedList",void 0);_.u([_.wH("data","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PB.prototype,"fillRestIfNoShowMore",null);_.u([_.c({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],PB);
_.d(PB,"ytd-expanded-shelf-contents-renderer",function(){if(Cu$!==void 0)return Cu$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Cu$=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var bBJ;var So=function(){return _.g.apply(this,arguments)||this};
_.w(So,_.g);So.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],So.prototype,"data",void 0);_.u([_.c({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],So);
_.d(So,"ytd-feed-channel-filter-header-renderer",function(){if(bBJ!==void 0)return bBJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return bBJ=M},{mode:1});var rOQ;var MZV;var zC$;var ZA=function(){return _.g.apply(this,arguments)||this};
_.w(ZA,_.g);_.P=ZA.prototype;_.P.onClick=function(M){var z,J=(z=this.data)==null?void 0:z.sectionEndpoint;!_.bP(_.CX(M),this.hostElement,["A".toString()])&&J&&_.Pv(this.hostElement,"yt-navigate",{endpoint:J})};
_.P.computeHasSectionEndpoint=function(M){return(M==null?void 0:M.sectionEndpoint)!==void 0};
_.P.computeShowHeaderAsLink=function(M){return(M==null?void 0:M.header)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0};
_.P.computeShowSubheaderAsLink=function(M){return(M==null?void 0:M.subheader)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0&&(M==null?void 0:M.header)===void 0};
_.P.getHeaderAsLinkClass=function(M){var z=[],J;(M==null?0:(J=M.headerIcon)==null?0:J.iconType)&&z.push("header-link-active");return z.join(" ")};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ZA.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ZA.prototype,"data",void 0);
_.u([_.Y({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],ZA.prototype,"hasSectionEndpoint",void 0);_.u([_.Y({computed:"computeShowHeaderAsLink(data)"}),_.W("design:type",Boolean)],ZA.prototype,"showHeaderAsLink",void 0);_.u([_.Y({computed:"computeShowSubheaderAsLink(data)"}),_.W("design:type",Boolean)],ZA.prototype,"showSubheaderAsLink",void 0);_.u([_.c({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],ZA);
_.d(ZA,"ytd-medical-panel-section-renderer",function(){if(zC$!==void 0)return zC$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return zC$=M},{mode:1});var kO=function(){var M=_.g.apply(this,arguments)||this;M.isExpanded=!1;M.roundedContainer=!0;M.skipRoundingTop=!1;M.toggleExpandableSection=function(){M.isExpanded=!M.isExpanded};
return M};
_.w(kO,_.g);
kO.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]]"}}}}}};
kO.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
kO.prototype.dataChanged=kO.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],kO.prototype,"isExpanded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"roundedContainer",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"skipRoundingTop",void 0);_.u([_.Y(),_.W("design:type",Object)],kO.prototype,"toggleExpandableSection",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kO.prototype,"dataChanged",null);_.u([_.c({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],kO);
_.d(kO,"ytd-medical-panel-content-renderer",function(){if(MZV!==void 0)return MZV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return MZV=M},{mode:1});_.nn("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var BB=function(){var M=_.g.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");M.hasTitle=!1;M.linkIcon="OPEN_IN_NEW";M.isDismissed=!1;return M};
_.w(BB,_.g);
BB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
BB.prototype.computeHasTitle=function(M){return!(M==null||!M.title)};
BB.prototype.onClick=function(M){var z,J=(z=this.data)==null?void 0:z.headerEndpoint;!_.bP(_.CX(M),this.hostElement,["BUTTON".toString()])&&J&&this.ytComponentBehavior.resolveCommand(J)};
_.rX.Object.defineProperties(BB.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.disableBottomDivider)||!((z=this.data)==null?0:z.title)}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],BB.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],BB.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],BB.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],BB.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],BB.prototype,"amsterdamEnabled",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Object)],BB.prototype,"hasTitle",void 0);
_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.F("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],BB.prototype,"background",null);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.F("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],BB.prototype,"titleStyle",null);
_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.F("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],BB.prototype,"showLinkIcon",null);_.u([_.Y(),_.W("design:type",String)],BB.prototype,"linkIcon",void 0);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BB.prototype,"hideDivider",null);
_.u([_.Y({selectorArgs:["data.dismissStateEntityKey"],selector:function(M,z){M=_.Is(M.entities,"dismissState",z);return(M==null?void 0:M.isDismissed)||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.W("design:type",Object)],BB.prototype,"isDismissed",void 0);_.u([_.c({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],BB);
_.d(BB,"ytd-info-panel-container-renderer",function(){if(rOQ!==void 0)return rOQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return rOQ=M},{mode:1});var J6g;_.nn("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var OW=function(){var M=_.g.apply(this,arguments)||this;M.modernTypography=_.U("web_modern_typography");return M};
_.w(OW,_.g);OW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
OW.prototype.computeStyle=function(M){return M?M:""};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OW.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.W("design:type",String)],OW.prototype,"titleStyle",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],OW.prototype,"modernTypography",void 0);_.u([_.c({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],OW);
_.d(OW,"ytd-item-section-header-renderer",function(){if(J6g!==void 0)return J6g;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return J6g=M},{mode:1});var RCa;var Dgk,NUa=function(){return Dgk!==void 0?Dgk:Dgk=document.createElement("template")};
document.head.appendChild(NUa().content);var Pz$;_.T1=new _.Nh("VOTING_ANIMATION_CONTROLLER_TOKEN");var ZjQ=_.Mf(function(M){var z=M.data;var J=_.AL("div"),R=_.AL("div");M=_.S(_.kE("VOTE_STATUS_NONE",void 0,"FVF7mc"));var D=M.next().value,N=M.next().value,Z=_.U3(Go0,function(){var Q;return(Q=z())==null?void 0:Q.entityKey}),B=_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation");
_.mF(function(){var Q;((Q=z().initialState)==null?0:Q.status)&&N(z().initialState.status)});
var O=function(){var Q,v,x=(v=(Q=z().initialState)==null?void 0:Q.votes)!=null?v:0,m;Q=(m=z().initialState)==null?void 0:m.status;return Q==="VOTE_STATUS_UPVOTED"?x-1:Q==="VOTE_STATUS_DOWNVOTED"?x+1:x},X=function(){return D()==="VOTE_STATUS_UPVOTED"?O()+1:D()==="VOTE_STATUS_DOWNVOTED"?O()-1:O()},l=function(Q){var v=Q?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
N(v);var x=X(),m=_.JF().resolve(_.zw(_.T1)),y=Z();y&&(Q&&(y==null?0:y.upvoteDefaultButtonOnTap)?_.aE(y.upvoteDefaultButtonOnTap,{form:{element:J.value},disableClickTracking:!0}):(y==null?0:y.upvoteToggledButtonOnTap)&&_.aE(y.upvoteToggledButtonOnTap,{form:{element:J.value},disableClickTracking:!0}));var H;Q=(H=y==null?void 0:y.enableOptimisticReordering)!=null?H:z().enableOptimisticReordering;B&&m&&z().itemId&&Q&&SGV(m,z().itemId,x,v)},e=function(Q){var v=Q?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
N(v);var x=X(),m=_.JF().resolve(_.zw(_.T1)),y=Z();y&&(Q&&(y==null?0:y.downvoteDefaultButtonOnTap)?_.aE(y.downvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(y==null?0:y.downvoteToggledButtonOnTap)&&_.aE(y.downvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var H;Q=(H=y==null?void 0:y.enableOptimisticReordering)!=null?H:z().enableOptimisticReordering;B&&m&&z().itemId&&Q&&SGV(m,z().itemId,x,v)};
M={};M=_.Qe("ytVotingViewModelVoteCount",(M.ytVotingViewModelVoteCountDisabled=function(){return z().isDisabled},M));
return _.T("voting-view-model",{class:"ytVotingViewModelHost"},_.T("div",{el:J},_.T(_.t_,{data:function(){var Q=_.G(z().upvoteButton,_.nf);return{toggleButtonViewModel:Object.assign({},Q,{isToggled:D()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Q){return _.T(_.cm,{data:Q.data,
onToggle:l})}})),_.T("div",{class:M},function(){var Q,v,x;
return D()==="VOTE_STATUS_UPVOTED"?(Q=z().initialState)==null?void 0:Q.compactVotesUpvoted:D()==="VOTE_STATUS_DOWNVOTED"?(v=z().initialState)==null?void 0:v.compactVotesDownvoted:(x=z().initialState)==null?void 0:x.compactVotes}),_.T("div",{el:R},_.T(_.t_,{data:function(){var Q=_.G(z().downvoteButton,_.nf);
return{toggleButtonViewModel:Object.assign({},Q,{isToggled:D()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Q){return _.T(_.cm,{data:Q.data,
onToggle:e})}})))},"Tb");_.N7(_.Mf(function(M){var z=M.data;return _.T("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.T("div",{class:_.Qe("ytEngagementBarViewModelEngagementBarWrapper",M.className)},_.T(_.t_,{data:function(){return z().actions}},{votingViewModel:ZjQ})))},"Ub"),"engagement-bar-view-model",{props:{data:_.zn,
className:_.zn}});var IM=function(){var M=_.g.apply(this,arguments)||this;M.playlistVotingAnimationEnabled=_.U("web_enable_voting_animation");M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;return M};
_.w(IM,_.g);_.P=IM.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.P.canReorderChanged=function(){this.persistentDragHandle=_.U("kevlar_playlist_drag_handles")&&this.canReorder};
_.P.onDrag=function(){if(this.thumbnail){var M=_.SN(this.thumbnail).querySelector("yt-image");M&&(M.shouldRenderLazy=!1)}};
_.P.onMenuOverlayChanged=function(M,z){this.menuOpened=z};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.P.onContentsTap=function(M){var z,J=(z=this.data)==null?void 0:z.serviceEndpoints;if(J&&J.length===1&&_.G(J[0],mFR)&&!_.bP(_.CX(M),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(J[0]);else{var R;(z=(R=this.data)==null?void 0:R.navigationEndpoint)&&_.U("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?k3g(_.JF().resolve(_.q5),z):(_.x9().playlistSuggestionsShelfActivation=
!0,_.BUg(_.JF().resolve(_.q5),z)):z&&!_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.U("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Pv(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))}};
_.P.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(M){return M==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.P.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=qEG(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.P.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.dataChanged=function(){if(this.data){var M,z,J,R=((M=this.downloadRenderData)==null?void 0:M.badges)&&((z=this.downloadRenderData)==null?void 0:z.badges)!==((J=this.data)==null?void 0:J.badges),D,N,Z;M=((D=this.downloadRenderData)==null?void 0:D.thumbnailOverlays)&&((N=this.downloadRenderData)==null?void 0:N.thumbnailOverlays)!==((Z=this.data)==null?void 0:Z.thumbnailOverlays);(!this.downloadRenderData||R||M)&&this.downloadStateChanged()}};
_.P.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var M,z,J=(M=this.data.menu)==null?void 0:(z=M.menuRenderer)==null?void 0:z.items;if(J)for(M=_.S(J),z=M.next();!z.done;z=M.next())if(z=z.value,J=void 0,_.G((J=z.menuServiceItemRenderer)==null?void 0:J.serviceEndpoint,_.uU)){var R=J=void 0,D=void 0;z=(J=z)==null?void 0:(R=J.menuServiceItemRenderer)==null?void 0:(D=R.serviceEndpoint)==null?void 0:D.playlistEditEndpoint;D=R=void 0;if(J=(R=z)==null?void 0:(D=R.actions)==null?void 0:
D[0])R=void 0,J.setVideoId=(R=this.data)==null?void 0:R.setVideoId;D=R=J=void 0;if(z=(J=z)==null?void 0:(R=J.clientActions)==null?void 0:(D=R[0])==null?void 0:D.playlistRemoveVideosAction)J=void 0,z.setVideoIds=[(J=this.data)==null?void 0:J.setVideoId]}}};
_.rX.Object.defineProperties(IM.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
IM.prototype.setVideoIdChanged=IM.prototype.setVideoIdChanged;IM.prototype.dataChanged=IM.prototype.dataChanged;IM.prototype.downloadStateChanged=IM.prototype.downloadStateChanged;IM.prototype.onMenuOverlayChanged=IM.prototype.onMenuOverlayChanged;IM.prototype.canReorderChanged=IM.prototype.canReorderChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],IM.prototype,"ytdReduxBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],IM.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],IM.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],IM.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"canReorder",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"menuOpened",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"handleIsHovered",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"persistentDragHandle",void 0);_.u([_.Y(),_.W("design:type",Object)],IM.prototype,"downloadRenderData",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],IM.prototype,"styleType",void 0);_.u([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],IM.prototype,"thumbnailWidth",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"isDownloads",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],IM.prototype,"playlistVotingAnimationEnabled",void 0);
_.u([_.Y({selector:ud,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"downloadProgress",void 0);_.u([_.Y(),_.W("design:type",Number)],IM.prototype,"relativeDateReference",void 0);_.u([_.Y({selector:_.KD,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"transferState",void 0);_.u([_.Y({selector:OZH,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"downloadState",void 0);
_.u([_.Y({selector:iNG,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"offlinePolicyAction",void 0);_.u([_.Y({selector:Cnb,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.u([_.Y({selector:rm0,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],IM.prototype,"entityInfo",void 0);_.u([_.Y({selector:_.HA}),_.W("design:type",Boolean)],IM.prototype,"miniplayerIsActive",void 0);
_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],IM.prototype,"playlistVideoId",null);_.u([_.Qc("#thumbnail"),_.W("design:type",Object)],IM.prototype,"thumbnail",void 0);_.u([_.wH("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IM.prototype,"canReorderChanged",null);
_.u([_.Xw("yt-menu-overlay-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Boolean]),_.W("design:returntype")],IM.prototype,"onMenuOverlayChanged",null);_.u([_.wH("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IM.prototype,"downloadStateChanged",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IM.prototype,"dataChanged",null);_.u([_.wH("data.setVideoId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IM.prototype,"setVideoIdChanged",null);_.u([_.c({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],IM);
_.d(IM,"ytd-playlist-video-renderer",function(){if(Pz$!==void 0)return Pz$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);M.content.insertBefore(NUa().content.cloneNode(!0),M.content.firstChild);return Pz$=M},{mode:1});var OjS;var oM=function(){return _.g.apply(this,arguments)||this};
_.w(oM,_.g);_.u([_.Y(),_.W("design:type",Object)],oM.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oM.prototype,"rendererBehavior",void 0);_.u([_.c({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],oM);
_.d(oM,"ytd-premium-browse-footer-renderer",function(){if(OjS!==void 0)return OjS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return OjS=M},{mode:1});var TUa;var Xo=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.w(Xo,_.g);_.P=Xo.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.handleDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.computeHeaderLogoThumbnail=function(M,z){if(M)return z?M.darkLogo:M.lightLogo};
_.P.computeHeaderLogoHeight=function(M,z){var J,R,D;return(M=(J=this.computeHeaderLogoThumbnail(M,z))==null?void 0:(R=J.thumbnails)==null?void 0:(D=R[0])==null?void 0:D.height)&&M%31===0?"31":"24"};
_.P.computeHeaderLogoMarginBottom=function(M,z){return this.computeHeaderLogoHeight(M,z)==="24"?"0":"-7"};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Xo.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Xo.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Xo.prototype,"isDarkTheme",void 0);_.u([_.Y({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.W("design:type",Object)],Xo.prototype,"themeLogo",void 0);
_.u([_.Y({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.W("design:type",String)],Xo.prototype,"logoHeight",void 0);_.u([_.Y({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.W("design:type",String)],Xo.prototype,"logoMarginBottom",void 0);_.u([_.c({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Xo);
_.d(Xo,"ytd-primetime-promo-header-renderer",function(){if(TUa!==void 0)return TUa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return TUa=M},{mode:1});var Iap;var Xdp=_.Mf(function(M){var z=_.ol(function(D){var N;(N=M.onClick)==null||N.call(M,D)}),J={},R={};
return _.T("yt-shelf-header-layout",{class:_.Qe("shelf-header-layout-wiz",(J["shelf-header-layout-wiz--disable-horizontal-padding"]=M.disableHorizontalPadding,J["shelf-header-layout-wiz--disable-vertical-padding"]=M.disableVerticalPadding,J["shelf-header-layout-wiz--responsive"]=M.useResponsiveLayout,J["shelf-header-layout-wiz--narrow"]=function(){var D,N;return((D=M.useResponsiveLayout)==null?void 0:D.call(M))&&((N=M.forceSmallLayout)==null?void 0:N.call(M))},J["shelf-header-layout-wiz--is-overlay"]=
M.isOverlay,J["shelf-header-layout-wiz--tappable"]=!!M.onClick,J)),
"on:click":z,tabindex:function(){var D;return((D=M.isInteractive)==null?0:D.call(M))?0:void 0}},_.T(_.I,{cond:M.leadingIcon,
then:function(D){return _.T("div",{class:"shelf-header-layout-wiz__leading-icon"},_.T(_.vS,{icon:D}))},
else:function(){return _.T(_.I,{cond:M.hasLeadingImage,then:function(){var D,N={};return _.T("div",{class:_.Qe("shelf-header-layout-wiz__leading-image",(N["shelf-header-layout-wiz__leading-image--circular-image"]=M.circularImage,N))},(D=M.leadingImage)==null?void 0:D.call(M))}})}}),_.T("div",{class:"shelf-header-layout-wiz__label-container"},_.T(_.I,{cond:M.hasSuperlabel,
then:function(){var D;return _.T("div",{class:"shelf-header-layout-wiz__superlabel"},(D=M.superlabel)==null?void 0:D.call(M))}}),_.T("div",{class:"shelf-header-layout-wiz__title-row"},_.T(o$a,{text:M.title,
className:_.Qe("shelf-header-layout-wiz__title",(R["shelf-header-layout-wiz__title--small-title"]=M.forceSmallLayout,R)),tagLevel:M.tagLevel}),_.T(_.I,{cond:M.hasDetail,then:function(){var D;return _.T("div",{class:"shelf-header-layout-wiz__detail"},(D=M.detail)==null?void 0:D.call(M))}})),_.T(_.I,{cond:M.hasSublabel,
then:function(){var D;return _.T("div",{class:"shelf-header-layout-wiz__sublabel"},(D=M.sublabel)==null?void 0:D.call(M))}})),_.T(_.I,{cond:M.hasTrailingActions,
then:function(){var D;return _.T("div",{class:"shelf-header-layout-wiz__trailing-actions"},(D=M.trailingActions)==null?void 0:D.call(M))}}))},"Vb");
Xdp.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var o$a=_.Mf(function(M){var z=M.text;var J=M.className;var R=M.tagLevel;return _.T(_.tg,null,_.T(_.w3,{when:function(){return(R==null?void 0:R())===0}},function(){return _.T("h2",{class:J},z())}),_.T(_.w3,{when:function(){return(R==null?void 0:R())===1}},function(){return _.T("h3",{class:J},z())}),_.T(_.w3,{when:function(){return(R==null?void 0:R())===2}},function(){return _.T("h4",{class:J},z())}),_.T(_.xy,null,function(){return _.T("h2",{class:J},z())}))},"Wb");var QCB,la$,eCa;_.lI=_.Mf(function(M){var z=M.className;var J=M.data;var R=M.disableHorizontalPadding;var D=M.disableVerticalPadding;var N=M.forceSmallLayout;var Z=M.useResponsiveLayout;M=M.isOverlay;return _.T("yt-section-header-view-model",{class:_.Qe("ytSectionHeaderViewModelHost",z),style:_.UN({"background-color":function(){return wrw(J().backgroundColor)?_.qG(wrw(J().backgroundColor)):void 0}})},_.T(Xdp,{hasDetail:!1,
title:function(){return _.T(_.m3,{text:function(){return J().headline}})},
hasTitle:!0,sublabel:function(){return _.T(la$,{data:J})},
hasSublabel:function(){return!!J().sublabel||!!J().bottomBadge},
superlabel:function(){return _.T(eCa,{data:J})},
hasSuperlabel:function(){return!!J().superlabel||!!J().topBadge},
leadingImage:function(){return _.T(QCB,{leadingAccessory:function(){return J().leadingAccessory}})},
hasLeadingImage:function(){return!!J().leadingAccessory},
trailingActions:function(){return _.T(_.t_,{data:function(){return J().trailingActions}},{flexibleActionsViewModel:_.Kx})},
hasTrailingActions:function(){return!!J().trailingActions},
disableHorizontalPadding:R,disableVerticalPadding:D,forceSmallLayout:N,useResponsiveLayout:Z,isOverlay:M,isInteractive:function(){return!!_.dZ(J().rendererContext)},
onClick:function(B){if(_.$C(J().rendererContext)){var O=_.dZ(J().rendererContext);O&&_.u5(O,{form:{element:B.target,event:B}})}}}))},"Xb");
QCB=_.Mf(function(M){var z=M.leadingAccessory;return _.T(_.MH,null,_.T(_.I,{cond:function(){var J;return(J=z().image)!=null?J:_.Lf(z().themedImage)},
then:function(J){return _.T(_.rv,{data:J,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.T(_.I,{cond:function(){return _.G(z().avatar,_.q6)},
then:function(J){return _.T(_.dj,{data:J})}}))},"Yb");
la$=_.Mf(function(M){var z=M.data;return _.T(_.MH,null,_.T(_.I,{cond:function(){return _.G(z().bottomBadge,w2p)},
then:function(J){var R={};return _.T(_.kY,{data:J,class:_.Qe((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!J()&&!!z().sublabel},R))})}}),_.T(_.I,{cond:function(){return z().sublabel},
then:function(J){return _.T(_.m3,{text:J})}}))},"Zb");
eCa=_.Mf(function(M){var z=M.data;return _.T(_.MH,null,_.T(_.I,{cond:function(){return _.G(z().topBadge,w2p)},
then:function(J){var R={};return _.T(_.kY,{data:J,class:_.Qe((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!J()&&!!z().superlabel},R))})}}),_.T(_.I,{cond:function(){return z().superlabel},
then:function(J){return _.T(_.m3,{text:J})}}))},"$b");_.N7(_.lI,"yt-section-header-view-model",{props:{data:_.zn,className:_.zn,disableHorizontalPadding:_.zn,disableVerticalPadding:_.zn,forceSmallLayout:_.zn,useResponsiveLayout:_.zn,isOverlay:_.zn}});_.nn("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var eo=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.w(eo,_.g);_.P=eo.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.P.onDataChange=function(){var M=this;_.C4(this,function(){M.updateItemVisibility()})};
_.P.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M,this.updateItemVisibility())};
_.P.updateItemVisibility=function(){var M=this;this.data&&this.data.panels&&_.SN(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(z,J){z.hidden=J>M.elementsPerRow-1})};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
eo.prototype.onDataChange=eo.prototype.onDataChange;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],eo.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],eo.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],eo.prototype,"data",void 0);_.u([_.Y({value:3}),_.W("design:type",Number)],eo.prototype,"elementsPerRow",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eo.prototype,"onDataChange",null);_.u([_.c({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],eo);
_.d(eo,"ytd-primetime-promo-renderer",function(){if(Iap!==void 0)return Iap;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Iap=M},{mode:1});var Ugp;var QI=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return M};
_.w(QI,_.g);QI.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
QI.prototype.handleButtonRefreshAction=function(M){if(M=_.G(M,t6k))this.set("data.button",M.membershipButton),this.notifyPath("data.button")};
_.rX.Object.defineProperties(QI.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.avatars)==null?void 0:z.slice(0,8))||[]}}});
_.u([_.Y(),_.W("design:type",Object)],QI.prototype,"data",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],QI.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QI.prototype,"rendererBehavior",void 0);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],QI.prototype,"avatars",null);
_.u([_.c({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],QI);
_.d(QI,"ytd-recognition-shelf-renderer",function(){if(Ugp!==void 0)return Ugp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Ugp=M},{mode:1});var v$Q;var G3k;var UW=function(){var M=_.g.apply(this,arguments)||this;M.modernButtons=_.U("web_modern_buttons");return M};
_.w(UW,_.g);_.P=UW.prototype;
_.P.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.P.dataChanged=function(){this.collapsed=!0};
_.P.computeVisibleItems=function(M,z){return M!==void 0&&M.items?z?M.items.slice(0,this.data.collapsedItemCount):M.items:[]};
_.P.computeHideShowMore=function(M,z,J){return M>=z||!J};
_.P.computeHideShowAll=function(M,z,J){return!(M&&z)||J};
_.P.onMoreClick=function(){this.collapsed=!1};
_.rX.Object.defineProperties(UW.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Sz("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
UW.prototype.dataChanged=UW.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],UW.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],UW.prototype,"isSearch",void 0);
_.u([_.Y({computed:"computeVisibleItems(data,collapsed)"}),_.W("design:type",Array)],UW.prototype,"visibleItems",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],UW.prototype,"collapsed",void 0);_.u([_.Y({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.W("design:type",Boolean)],UW.prototype,"hideShowMore",void 0);
_.u([_.Y({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.W("design:type",Boolean)],UW.prototype,"hideShowAll",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],UW.prototype,"modernButtons",void 0);_.u([_.F("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],UW.prototype,"typographyBump",null);
_.u([_.F("isSearch"),_.W("design:type",Object),_.W("design:paramtypes",[])],UW.prototype,"lockupExperiments",null);_.u([_.F("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],UW.prototype,"thumbnailWidth",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UW.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],UW);
_.d(UW,"ytd-vertical-list-renderer",function(){if(G3k!==void 0)return G3k;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return G3k=M},{mode:1});var wdV=_.Ca(["#"]);_.nn("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var vB=function(){var M=_.g.apply(this,arguments)||this;M.isConstrainedList=!1;M.modernTypography=_.U("web_modern_typography");return M};
_.w(vB,_.g);_.P=vB.prototype;
_.P.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeThumbnailStyle=function(M){return M||""};
_.P.computePlaceAnnotationUnderTitle=function(){var M;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((M=this.data)==null?void 0:M.thumbnailStyle)||"")};
_.P.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.b30(wdV)};
_.P.computeIsPromoShelf=function(M){var z;return(M=M==null?void 0:(z=M[0])==null?void 0:z.metadataBadgeRenderer)?M.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.P.computePlaceBadgeBesideTitle=function(M){var z;return(M==null?0:(z=M[0])==null?0:z.metadataBadgeRenderer)?!this.computeIsPromoShelf(M):!1};
_.P.computeMenuIcon=function(M){return this.computeIsPromoShelf(M)?"yt-icons:more_vert":"yt-icons:more"};
_.P.onDataChange=function(){var M,z;((M=this.data)==null?0:(z=M.content)==null?0:z.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.P.onLockupRequested=function(M){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&M.detail&&M.detail.videoIds){for(var z=this.data.content.gridRenderer.items,J=new Set,R=_.S(M.detail.videoIds),D=R.next();!D.done;D=R.next())J.add(D.value);M.detail.returnValue=z.filter(function(N){return N.gridVideoRenderer&&N.gridVideoRenderer.videoId&&J.has(N.gridVideoRenderer.videoId)}).map(function(N){return N.gridVideoRenderer})}};
_.P.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
vB.prototype.onLockupRequested=vB.prototype.onLockupRequested;vB.prototype.onDataChange=vB.prototype.onDataChange;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],vB.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],vB.prototype,"ironResizableBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vB.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],vB.prototype,"isSearch",void 0);_.u([_.Y(),_.W("design:type",Object)],vB.prototype,"isConstrainedList",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("kevlar_fluid_dismiss")}}),
_.W("design:type",Boolean)],vB.prototype,"enableFluidDismiss",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.W("design:type",String)],vB.prototype,"thumbnailStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],vB.prototype,"modernTypography",void 0);_.u([_.Y({computed:"computeMenuIcon(data.badges)"}),_.W("design:type",String)],vB.prototype,"menuIcon",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vB.prototype,"onDataChange",null);_.u([_.Xw("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vB.prototype,"onLockupRequested",null);_.u([_.c({is:"ytd-shelf-renderer",disableElementRegistration:!0})],vB);
_.d(vB,"ytd-shelf-renderer",function(){if(v$Q!==void 0)return v$Q;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return v$Q=M},{mode:1});var xgu;var G1=function(){return _.g.apply(this,arguments)||this};
_.w(G1,_.g);G1.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.rX.Object.defineProperties(G1.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],G1.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],G1.prototype,"isPlaylist",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],G1.prototype,"isClipList",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],G1.prototype,"isPlaylistPageWithFilters",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],G1.prototype,"hasTitle",null);_.u([_.Y(),_.F("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.W("design:type",Object),_.W("design:paramtypes",[])],G1.prototype,"isRightAligned",null);
_.u([_.c({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],G1);
_.d(G1,"ytd-sort-filter-header-renderer",function(){if(xgu!==void 0)return xgu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xgu=M},{mode:1});var tZ2;var we=function(){var M=_.g.apply(this,arguments)||this;M.enableRightArrowHidden=_.U("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return M};
_.w(we,_.g);we.prototype.attached=function(){var M=this;this.enableRightArrowHidden&&(this.JSC$16294_throttledOnResize=new _.A_(function(){var z;(z=M.ytdHorizontalListBehavior)==null||z.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var z;
(z=M.JSC$16294_throttledOnResize)==null||z.fire()}),this.resizeObserver.observe(this.hostElement))};
we.prototype.detached=function(){if(this.enableRightArrowHidden){var M;(M=this.resizeObserver)==null||M.disconnect();var z;(z=this.JSC$16294_throttledOnResize)==null||z.dispose()}};
we.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]]"}}}}}};
we.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.rX.Object.defineProperties(we.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.U("enable_creator_details_shelf_m2")){var M=[],z;((z=this.data)==null?0:z.creatorVideosButton)&&M.push(this.data.creatorVideosButton);var J;((J=this.data)==null?0:J.creatorAboutButton)&&M.push(this.data.creatorAboutButton);z=_.S(this.data.creatorCustomUrlButtons||[]);for(J=z.next();!J.done;J=z.next())M.push(J.value);return M}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.U("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],we.prototype,"ytdHorizontalListBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],we.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],we.prototype,"engagementPanel",void 0);
_.u([_.Y(),_.W("design:type",Object)],we.prototype,"enableRightArrowHidden",void 0);_.u([_.F("enableRightArrowHidden","atEnd"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],we.prototype,"hideRightArrow",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],we.prototype,"creatorCustomUrlButtons",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data","creatorCustomUrlButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],we.prototype,"showCreatorCustomUrlButtons",null);_.u([_.F("showCreatorCustomUrlButtons"),_.W("design:type",Number),_.W("design:paramtypes",[])],we.prototype,"channelAvatarSize",null);_.u([_.c({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],we);
_.d(we,"ytd-video-description-infocards-section-renderer",function(){if(tZ2!==void 0)return tZ2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return tZ2=M},{mode:_.B5("kevlar_poly_si_batch_j067")?1:2});var jCQ;var xO=function(){return _.g.apply(this,arguments)||this};
_.w(xO,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xO.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],xO.prototype,"infoIcon",void 0);_.u([_.c({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],xO);
_.d(xO,"ytd-eom-settings-disclaimer-renderer",function(){if(jCQ!==void 0)return jCQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return jCQ=M},{mode:1});var pd$;var tj=function(){return _.g.apply(this,arguments)||this};
_.w(tj,_.g);_.rX.Object.defineProperties(tj.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.suppressPaddingDisclaimer)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],tj.prototype,"componentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tj.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tj.prototype,"suppressPaddingDisclaimer",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],tj);
_.d(tj,"ytd-product-list-header-renderer",function(){if(pd$!==void 0)return pd$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return pd$=M},{mode:1});var Fbt;var jo=function(){return _.g.apply(this,arguments)||this};
_.w(jo,_.g);jo.prototype.computeThumbnailStyle=function(M){if(M&&(M=_.u7(M)))return"background-color:"+M+";"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jo.prototype,"rendererBehaviors",void 0);_.u([_.Y(),_.W("design:type",Object)],jo.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],jo);
_.d(jo,"ytd-hashtag-tile-renderer",function(){if(Fbt!==void 0)return Fbt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Fbt=M},{mode:1});var YGp;var pL=function(){return _.g.apply(this,arguments)||this};
_.w(pL,_.g);pL.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pL.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],pL);
_.d(pL,"ytd-sponsorships-alert-renderer",function(){if(YGp!==void 0)return YGp;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return YGp=M},{mode:1});var mgQ;var Fo=function(){return _.g.apply(this,arguments)||this};
_.w(Fo,_.g);Fo.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.rX.Object.defineProperties(Fo.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.u([_.p(_.Vg),_.W("design:type",Object)],Fo.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],Fo.prototype,"ytdLockupBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],Fo.prototype,"isGridViewEnabled",void 0);
_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Fo.prototype,"watchFeedBigThumbs",null);_.u([_.F("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],Fo.prototype,"thumbnailWidth",null);_.u([_.Y(),_.W("design:type",Object)],Fo.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Fo);
_.d(Fo,"ytd-compact-movie-renderer",function(){if(mgQ!==void 0)return mgQ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mgQ=M},{mode:1});var g$$;var sCQ;var n$2=_.HW("HTML_DIR")==="rtl",YO=function(){var M=_.g.apply(this,arguments)||this;M.engagementPanel=!1;M.maxLines=2;M.expandButtonOffset=0;M.showExpandButton=!1;M.isTruncated=!1;M.isExpanded=!1;M.currentSnippetType=2;M.alwaysShowExpandButton=!1;M.JSC$16311_lastWidth=NaN;M.observer=null;M.left=0;M.right=0;M.mid=0;M.longestSnippetLength=0;M.isFinalSnippet=!1;M.isFirstMutation=!1;M.isResetMutation=!1;M.OVERFLOW_THRESHOLD=5;return M};
_.w(YO,_.g);_.P=YO.prototype;_.P.onClick=function(M){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;if((z=window.getSelection())==null||!z.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.P.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.P.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.P.updateTextOnSnippetTypeChange=function(){_.U("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.P.setUpBinarySearch=function(M){M=M*this.maxLines/8;this.left=0;var z,J;this.right=Math.min(M*2,(J=(z=this.simpleText)==null?void 0:z.length)!=null?J:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.P.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.P.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.yA(new _.xN("AttributedSnippet is empty when the description is not empty",this.text))};
_.P.mutationCallback=function(){if(this.observer!=null){var M=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var z=Math.floor(M*this.maxLines/8);this.setSnippetText(this.text,z);z!==0||this.attributedTextIsEmpty()||_.yA(new _.xN("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;M=M*this.maxLines/8;this.left=0;var J;this.right=Math.min(M*2,(J=(z=this.simpleText)==null?void 0:z.length)!=null?J:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.P.mutationObserve=function(M){var z=this;this.observer||(this.observer=new MutationObserver(function(){z.mutationCallback()}));
this.observer.observe(M,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.P.attached=function(){var M=this;_.C4(this,function(){M.resize()})};
_.P.isExpandedChanged=function(){_.Pv(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.P.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.P.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var M="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((n$2?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",M);this.snippetContainer.style.setProperty("mask-image",
M)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(n$2?"right":"left",this.expandButtonOffset+"px")};
_.P.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.P.setSnippetText=function(M,z){M||(M={});if(_.i5(M)){var J=Le(M,z);J.attachmentRuns||J.commandRuns||J.decorationRuns||J.styleRuns||J.alignment||J.lineBreakMode?this.attributedSnippetTextEl?(_.U("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Le(M,z),this.attributedSnippetTextEl.headerRuns=fOo(z,this.headerRuns)):this.attributedSnippetText={data:Le(M,z),headerRuns:fOo(z,this.headerRuns)},this.currentSnippetType=0):_.yA(new _.xN("Tried to set snippet text when HTML element was null",
M)):(this.plainSnippetText.textContent=EU(M.content||"",z),this.currentSnippetType=2)}else{a:{J=xY8(M,z);if(J.runs){J=_.S(J.runs);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R.bold||R.deemphasize||R.italics||R.strikethrough||R.textColor||R.navigationEndpoint||_.G(R,H5)){J=!0;break a}}J=!1}J?this.formattedSnippetText?(this.formattedSnippetText.text=xY8(M,z),this.currentSnippetType=1):_.yA(new _.xN("Tried to set snippet text when HTML element was null",M)):(this.plainSnippetText.textContent=
EU(_.CD(M),z),this.currentSnippetType=2)}};
_.P.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.P.attributedTextIsEmpty=function(){var M=this.text;if(!_.i5(M))return!0;var z;return((z=M.content)==null?void 0:z.length)===0?!0:!1};
_.P.resize=function(M){if(this.snippetText){if(M===void 0?0:M)this.JSC$16311_lastWidth=NaN;var z=this.hostElement.offsetWidth;if(z!==this.JSC$16311_lastWidth&&!this.isExpanded)if(this.JSC$16311_lastWidth=z,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;M=0;var J,R;z=Math.min(z*this.maxLines/8*2,(R=(J=this.simpleText)==null?void 0:J.length)!=null?R:0)-1;for(J=0;M<=z;)R=Math.floor(M+(z-M)/2),this.setSnippetText(this.text,R),this.isOverflowing()?z=R-1:(M=R+1,J=R);this.setSnippetText(this.text,J);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.P.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.P.onExpandClick=function(){var M=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.U("inline_expander_reset_focus_killswitch")||_.C4(this,function(){var z;((z=_.JF().resolve(_.zw(_.OQ)))==null?0:z.isKeyBoardInUse())&&_.Lo(M.hostElement)});
_.Pv(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.P.onCollapseClick=function(){this.collapse();_.Pv(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.P.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.P.computeExpandButtonOffset=function(){var M=this.expandSizer;return M?n$2?M.offsetParent?M.offsetParent.offsetWidth-M.offsetWidth-M.offsetLeft:0:M.offsetLeft:0};
_.rX.Object.defineProperties(YO.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.i5(this.text)?this.text.content||"":_.CD(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 _.i5(this.text)?!0:this.text&&_.U("web_replace_formatted_with_attributed_string")&&Qx0(this.text)?(this.text=_.y1(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}}});
YO.prototype.onTextChanged=YO.prototype.onTextChanged;YO.prototype.updateMaskAndExpandButtonOffset=YO.prototype.updateMaskAndExpandButtonOffset;YO.prototype.updateSnippetContainerMaxHeight=YO.prototype.updateSnippetContainerMaxHeight;YO.prototype.isExpandedChanged=YO.prototype.isExpandedChanged;YO.prototype.updateTextOnSnippetTypeChange=YO.prototype.updateTextOnSnippetTypeChange;YO.prototype.updateIsFormattedExpanded=YO.prototype.updateIsFormattedExpanded;YO.prototype.updateIsAttributedExpanded=YO.prototype.updateIsAttributedExpanded;
YO.prototype.onClick=YO.prototype.onClick;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],YO.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"text",void 0);_.u([_.Y(),_.W("design:type",Array)],YO.prototype,"headerRuns",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"maxLines",void 0);
_.u([_.Y(),_.W("design:type",String)],YO.prototype,"expandLabel",void 0);_.u([_.Y(),_.W("design:type",String)],YO.prototype,"collapseLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"expandCommand",void 0);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"expandButtonOffset",void 0);_.u([_.F("text"),_.W("design:type",String),_.W("design:paramtypes",[])],YO.prototype,"simpleText",null);
_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],YO.prototype,"onClick",null);_.u([_.F("text","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"expandedText",null);_.u([_.F("headerRuns","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"expandedHeaderRuns",null);
_.u([_.F("text"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YO.prototype,"hasAttributedStringText",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"showExpandButton",void 0);_.u([_.F("collapseLabel","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"showCollapseButton",null);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"isTruncated",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"isExpanded",void 0);_.u([_.Y(),_.W("design:type",Boolean)],YO.prototype,"isAttributedExpanded",void 0);_.u([_.la("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateIsAttributedExpanded",null);_.u([_.Y(),_.W("design:type",Boolean)],YO.prototype,"isFormattedExpanded",void 0);
_.u([_.la("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateIsFormattedExpanded",null);_.u([_.Y(),_.W("design:type",Number)],YO.prototype,"currentSnippetType",void 0);_.u([_.F("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"useAttributedSnippet",null);
_.u([_.F("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"useFormattedSnippet",null);_.u([_.F("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"usePlainSnippet",null);_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"alwaysShowExpandButton",void 0);_.u([_.la("currentSnippetType"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateTextOnSnippetTypeChange",null);
_.u([_.Y(),_.W("design:type",Object)],YO.prototype,"attributedSnippetText",void 0);_.u([_.Qc("#snippet"),_.W("design:type",HTMLElement)],YO.prototype,"snippetContainer",void 0);_.u([_.Qc("#snippet-text"),_.W("design:type",HTMLElement)],YO.prototype,"snippetText",void 0);_.u([_.Qc("#plain-snippet-text"),_.W("design:type",HTMLElement)],YO.prototype,"plainSnippetText",void 0);_.u([_.Qc("#formatted-snippet-text"),_.W("design:type",Object)],YO.prototype,"formattedSnippetText",void 0);
_.u([_.Qc("#attributed-snippet-text"),_.W("design:type",Object)],YO.prototype,"attributedSnippetTextEl",void 0);_.u([_.Qc("#expand"),_.W("design:type",HTMLElement)],YO.prototype,"expandButton",void 0);_.u([_.Qc("#expand-sizer"),_.W("design:type",HTMLElement)],YO.prototype,"expandSizer",void 0);_.u([_.wH("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"isExpandedChanged",null);
_.u([_.la("isExpanded","maxLines"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateSnippetContainerMaxHeight",null);_.u([_.la("isTruncated","showExpandButton","expandButtonOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateMaskAndExpandButtonOffset",null);
_.u([_.wH("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"onTextChanged",null);_.u([_.c({is:"ytd-text-inline-expander",disableElementRegistration:!0})],YO);
_.d(YO,"ytd-text-inline-expander",function(){if(sCQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);sCQ=M}M=sCQ;return M},{mode:2});var mJ=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return M};
_.w(mJ,_.g);mJ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
mJ.prototype.handleUpdateDescriptionAction=function(M){if(M=_.G(M,_.bZ$))if(M.attributedDescription)this.set("data.attributedDescriptionBodyText",M.attributedDescription);else if(M.description){var z;((z=this.data)==null?0:z.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.y1(M.description)):this.set("data.descriptionBodyText",M.description)}};
_.rX.Object.defineProperties(mJ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.attributedDescriptionBodyText)||!((z=this.data)==null||!z.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.collapsedLineCount){var z;return(z=this.data)==null?void 0:z.collapsedLineCount}M=_.NC("web_watch_description_collapsed_default_lines",12);if(_.U("ww_desc_line_page_size_ks"))return M;z=Math.round(_.t9().height*_.NC("web_watch_description_screen_height_percentage",.5)/20);return Math.max(z,M)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return(J=(M=this.data)==null?void 0:M.descriptionBodyText)!=null?J:(z=this.data)==null?void 0:z.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.sourceAttributions}}});
mJ.prototype.panelContentVisibleChanged=mJ.prototype.panelContentVisibleChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],mJ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],mJ.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mJ.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],mJ.prototype,"panelContentVisible",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],mJ.prototype,"engagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],mJ.prototype,"shortsPanel",void 0);_.u([_.Qc("#inline-expander"),_.W("design:type",Object)],mJ.prototype,"inlineExpander",void 0);
_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mJ.prototype,"panelContentVisibleChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mJ.prototype,"hasDescriptionText",null);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],mJ.prototype,"collapsedLines",null);
_.u([_.F("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"descriptionText",null);_.u([_.F("data","data.headerRuns"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"headerRuns",null);_.u([_.F("data","data.sourceAttributions"),_.W("design:type",Object),_.W("design:paramtypes",[])],mJ.prototype,"sourceAttributions",null);
_.u([_.c({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],mJ);
_.d(mJ,"ytd-expandable-video-description-body-renderer",function(){if(g$$!==void 0)return g$$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return g$$=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var hCJ;var y6u=_.Mf(function(M){var z=M.data;return _.T("factoid-renderer",{class:"ytwFactoidRendererHost"},_.T("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return z().accessibilityText}},_.T("span",{class:"ytwFactoidRendererValue"},_.T(_.m3,{text:function(){return z().value}})),_.T("span",{class:"ytwFactoidRendererLabel"},_.T(_.m3,{text:function(){return z().label}}))))},"ac");_.N7(y6u,"factoid-renderer",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;return _.T("upload-time-factoid-renderer",null,_.T(_.t_,{data:function(){return z().factoid}},{factoidRenderer:y6u}))},"bc"),"upload-time-factoid-renderer",{props:{data:_.Dv}});_.N7(_.Mf(function(M){var z=M.data;return _.T("view-count-factoid-renderer",null,_.T(_.t_,{data:function(){return z().factoid}},{factoidRenderer:y6u}))},"cc"),"view-count-factoid-renderer",{props:{data:_.Dv}});var ge=function(){var M=_.g.apply(this,arguments)||this;M.shortsPanel=!1;M.engagementPanel=!1;M.watchWhileSdp=_.U("shorts_desktop_watch_while_sdp");return M};
_.w(ge,_.g);ge.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"}}}}};
_.rX.Object.defineProperties(ge.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var M;return(M=this.data)==null?void 0:M.channel}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ge.prototype,"componentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ge.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ge.prototype,"shortsPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ge.prototype,"engagementPanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ge.prototype,"watchWhileSdp",void 0);_.u([_.F("shortsPanel","engagementPanel","data.channel"),_.W("design:type",Object),_.W("design:paramtypes",[])],ge.prototype,"showChannelInfo",null);_.u([_.c({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],ge);
_.d(ge,"ytd-video-description-header-renderer",function(){if(hCJ!==void 0)return hCJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hCJ=M},{mode:1});var HjS;var sW=function(){return _.g.apply(this,arguments)||this};
_.w(sW,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],sW.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],sW.prototype,"noPadding",void 0);_.u([_.Y(),_.W("design:type",Object)],sW.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],sW);
_.d(sW,"ytd-list-item-view-model",function(){if(HjS!==void 0)return HjS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return HjS=M},{mode:1});var c6u;var dg$;var Kb$;var $gk;var nL=function(){var M=_.g.apply(this,arguments)||this;M.adaptiveFullWidth=!1;M.modernButtons=_.U("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return M};
_.w(nL,_.g);nL.prototype.handleSetTimestamp_=function(M){this.data&&this.data.shortUrl&&(_.SN(this.hostElement).querySelector("#share-url").value=M.isSet?_.fQ(this.data.shortUrl,"t",M.timestamp):this.data.shortUrl)};
nL.prototype.handleSignalActionCopyShareUrl_=function(M,z){(_.U("killswitch_copy_link_target_check")||_.SN(this.hostElement).querySelector("#copy-button")===z)&&this.copyUrlToClipboard()};
nL.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.SN(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
nL.prototype.computeStyle_=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],nL.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nL.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.W("design:type",String)],nL.prototype,"rendererStyle",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],nL.prototype,"adaptiveFullWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],nL.prototype,"modernButtons",void 0);_.u([_.Y(),_.W("design:type",Object)],nL.prototype,"buttonOverrides",void 0);_.u([_.cU({is:"yt-copy-link-renderer",disableElementRegistration:!0})],nL);
_.d(nL,"yt-copy-link-renderer",function(){if($gk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Kb$===void 0&&(Kb$=document.createElement("template"));var R=Kb$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$gk=M}M=$gk;return M},{mode:2});_.nn("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var hj=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return M};
_.w(hj,_.g);_.P=hj.prototype;_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var M=_.JF().resolve(_.zw(_.OQ));M&&(this.keyboardFocused=M.isKeyBoardInUse())}};
_.P.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.P.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.P.onChange_=function(){if(this.data){var M=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;M&&this.ytComponentBehavior.resolveCommand(M);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.P.handleUpdateToggleAction_=function(M){(M=_.G(M,AQS))&&this.data&&M.targetId==this.data.targetId&&this.set("data.toggled",M.toggled)};
_.P.toBoolean_=function(M){return!!M};
_.P.reset=function(){};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("data-changed",this.data))};
_.P.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
hj.prototype.dataChangedForBinding=hj.prototype.dataChangedForBinding;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],hj.prototype,"data",void 0);_.u([_.Y({computed:"computeDescription_(data.*)"}),_.W("design:type",Object)],hj.prototype,"description_",void 0);_.u([_.Y({value:function(){return!!_.JF().resolve(_.zw(_.OQ))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],hj.prototype,"useKeyboardFocused",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],hj.prototype,"keyboardFocused",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hj.prototype,"dataChangedForBinding",null);_.u([_.cU({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],hj);
_.d(hj,"yt-toggle-form-field-renderer",function(){if(dg$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;c6u===void 0&&(c6u=document.createElement("template"));var R=c6u;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dg$=M}M=dg$;return M},{mode:2});var u5v;var qGa;var yI=function(){var M=_.g.apply(this,arguments)||this;M.isDarkTheme=!1;M.isSearch=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.noTopMargin=_.U("kevlar_watch_no_top_margin");M.maskFade=_.U("web_watch_chips_mask_fade");M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(yI,_.g);_.P=yI.prototype;_.P.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.P.dataChanged=function(){var M=this.getSelectedIndex();if(M>0)this.selected=M;else{this.selected=0;var z,J;(z=this.ytScrollableChipCloudBehavior)==null||(J=z.reset)==null||J.call(z)}};
_.P.getSelectedIndex=function(){var M;if((M=this.data)==null||!M.chips)return-1;M=-1;for(var z,J=0;J<((z=this.data)==null?void 0:z.chips.length);J++){var R=void 0,D=void 0;if((R=this.data)==null?0:(D=R.chips[J].chipCloudChipRenderer)==null?0:D.isSelected){M=J;break}}return M};
_.P.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.C4(M,M.setContainerWidthDiff);eY(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.handleRelatedChipCommand=function(M,z){M=this.JSC$16338_chipsSelector.indexOf(z);M!==-1&&this.JSC$16338_chipsSelector.selectIndex(M)};
_.P.handleChipCloudChipSelectAction=function(M){M=this.JSC$16338_chipsSelector.indexOf(M);M>-1&&this.JSC$16338_chipsSelector.selectIndex(M)};
_.P.handleChipCloudChipDeselectAction=function(){var M=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16338_chipsSelector&&((M==null?0:M.continuationCommand)?_.kQ(this.hostElement,[M]):(M==null?0:M.searchEndpoint)?this.ytComponentBehavior.resolveCommand(M):M&&_.Bv(this.hostElement,[M],this.hostElement),this.JSC$16338_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.P.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
yI.prototype.onResize=yI.prototype.onResize;yI.prototype.dataChanged=yI.prototype.dataChanged;yI.prototype.isSearchChanged=yI.prototype.isSearchChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],yI.prototype,"actionHandlerBehavior",void 0);
_.u([_.p(_.Hw),_.W("design:type",Object)],yI.prototype,"ironResizableBehavior",void 0);_.u([_.p(),_.W("design:type",lQ)],yI.prototype,"ytScrollableChipCloudBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yI.prototype,"data",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],yI.prototype,"selected",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yI.prototype,"isDarkTheme",void 0);_.u([_.Y({value:160}),_.W("design:type",Number)],yI.prototype,"scrollDistance",void 0);_.u([_.Y(),_.W("design:type",Object)],yI.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yI.prototype,"darkerDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yI.prototype,"noTopMargin",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yI.prototype,"maskFade",void 0);_.u([_.Qc("#chips"),_.W("design:type",Object)],yI.prototype,"JSC$16338_chipsSelector",void 0);_.u([_.la("isSearch"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yI.prototype,"isSearchChanged",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yI.prototype,"dataChanged",null);
_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yI.prototype,"onResize",null);_.u([_.cU({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],yI);
_.d(yI,"yt-chip-cloud-renderer",function(){if(qGa===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;u5v===void 0&&(u5v=document.createElement("template"));var R=u5v;J.call(z,R.content.cloneNode(!0),M.content.firstChild);qGa=M}M=qGa;return M},{mode:2});var Wb2,aaJ=function(){return Wb2!==void 0?Wb2:Wb2=document.createElement("template")};
document.head.appendChild(aaJ().content);var VZS;var E$2=document.head,faS=E$2.appendChild,Lb$;if(VZS===void 0){var A6V=document.createElement("template");_.t(A6V,"");A6V.content.insertBefore(aaJ().content.cloneNode(!0),A6V.content.firstChild);VZS=A6V}Lb$=VZS;faS.call(E$2,Lb$.content);var ijk=_.Mf(function(M){var z=M.data;return _.T("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.T(_.I,{cond:function(){return _.Lf(z().image)},
then:function(J){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.T(_.rv,{data:J,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.T("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.T(_.m3,{text:function(){return z().subtitle}})))),_.T(_.I,{cond:function(){var J;
return(J=z())==null?void 0:J.hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"dc");var Czu=_.Mf(function(M){var z=M.data;return _.T("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.T(_.t_,{data:function(){var J;return(J=z().offerPlanDetailsItem)!=null?J:[]}},{offerPlanDetailsItemViewModel:function(J){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.T(ijk,{data:J.data}))}})),_.T("div",null,_.T(_.I,{cond:function(){return z().hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"ec");var bjg=_.Mf(function(M){var z=M.data;M=_.S(_.kE(!1,void 0,"SpEGQd"));var J=M.next().value,R=M.next().value,D=_.ol(function(){R(!J());return!1}),N=function(){var Z;
return(Z=z().offerPlanDetailsContainer)!=null?Z:[]};
return _.T("lp-complex-offer-card-details-view-model",null,_.T("div",null,_.T(_.I,{cond:function(){return J()},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":D,"aria-expanded":J},_.T(_.m3,{text:function(){return z().expandedTitle}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.T(_.t_,{data:N},{offerPlanDetailsContainerViewModel:function(Z){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.T(Czu,{data:Z.data}))}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.T(_.m3,{text:function(){return z().legalText}})))},
else:function(){return _.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":D,"aria-expanded":J},_.T(_.m3,{text:function(){return z().collapsedTitle}}),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.T(_.vS,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"fc");var r6$=_.Mf(function(M){var z=M.data;return _.T("lp-complex-offer-card-option-view-model",null,_.T("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.T(_.I,{cond:function(){return z().topDividerText},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.T(_.m3,{text:function(){return z().topDividerText}}))))}}),_.T(_.I,{cond:function(){return z().description},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.T(_.m3,{text:function(){return z().description}}))}}),_.T(_.I,{cond:function(){return z().planPricingPrimary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.T(_.m3,{text:function(){return z().planPricingPrimary}}))}}),_.T(_.I,{cond:function(){return z().planPricingSecondary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.T(_.m3,{text:function(){return z().planPricingSecondary}}))}}),_.T(_.I,{cond:function(){return z().primaryButton},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.T(_.t_,{data:function(){return z().primaryButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"gc");var MS2=_.Mf(function(M){var z=M.data;var J=function(){var N;return((N=z())==null?void 0:N.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},D={};return _.T("ytm-lp-complex-offer-card-view-model",null,_.T("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.T("div",{class:_.Qe((M.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=J,M),"ytmLpComplexOfferCardViewModelCardContainer")},_.T(_.I,{cond:function(){var N;return(N=z())==null?void 0:N.bannerText},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.T("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.T(_.m3,{text:function(){return z().bannerText}})))}}),_.T(_.I,{cond:function(){return _.Lf(z().logo)},
then:function(N){var Z={};return _.T("div",{class:_.Qe((Z.ytmLpComplexOfferCardViewModelLogoAlignLeft=J,Z),"ytmLpComplexOfferCardViewModelLogo")},_.T(_.rv,{data:N,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.T("div",{class:_.Qe((R.ytmLpComplexOfferCardViewModelTitleAlignLeft=J,R),"ytmLpComplexOfferCardViewModelTitle")},_.T(_.m3,{text:function(){return z().title}})),_.T(_.I,{cond:function(){var N;
return(N=z())==null?void 0:N.subtitle},
then:function(){var N={};return _.T("div",{class:_.Qe((N.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=J,N),"ytmLpComplexOfferCardViewModelSubtitle")},_.T(_.m3,{text:function(){return z().subtitle}}))}}),_.T(_.I,{cond:function(){return z().planPricingPrimary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.T(_.m3,{text:function(){return z().planPricingPrimary}}))}}),_.T(_.I,{cond:function(){return z().planPricingSecondary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.T(_.m3,{text:function(){return z().planPricingSecondary}}))}}),_.T(_.I,{cond:function(){return z().purchaseButton},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.T(_.t_,{data:function(){return z().purchaseButton}},{buttonViewModel:function(N){return _.T(_.lT,{data:N.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.T(_.I,{cond:function(){var N;
return(N=z())==null?void 0:N.offerOptions},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.T(_.t_,{data:function(){return z().offerOptions}},{lpComplexOfferCardOptionViewModel:r6$}))}}),_.T("div",{class:_.Qe((D.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=J,D),"ytmLpComplexOfferCardViewModelLegalText")},_.T(_.m3,{text:function(){return z().legalText}})),_.T(_.I,{cond:function(){var N;
return(N=z())==null?void 0:N.offerCardDetails},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.T(_.t_,{data:function(){return z().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:bjg}))}}))))},"hc");var zGu=_.Mf(function(M){var z=M.data;var J=function(){var Z;return((Z=z())==null?void 0:Z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},D={},N={};return _.T("ytm-lp-complex-offer-card-section-view-model",null,_.T("div",{class:_.Qe("ytmLpComplexOfferCardSectionViewModelHost")},_.T("div",{class:_.Qe((M.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=J,M),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.T("div",{class:_.Qe((R.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=J,R),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.T("h2",{class:_.Qe((D.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
J,D),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.T(_.m3,{text:function(){return z().title}}))),_.T(_.I,{cond:function(){var Z;
return(Z=z())==null?void 0:Z.subtitle},
then:function(){var Z={},B={};return _.T("div",{class:_.Qe((Z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=J,Z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.T("div",{class:_.Qe((B.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=J,B),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.T(_.m3,{text:function(){return z().subtitle}})))}}),_.T("div",{class:_.Qe((N.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=J,N),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.T(_.t_,{data:function(){var Z;
return(Z=z().offerPlans)!=null?Z:[]}},{lpComplexOfferCardViewModel:function(Z){return _.T("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.T(MS2,{data:Z.data}))}})))))},"ic");var JIt=_.Mf(function(M){return _.T("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.T("div",{class:"ytLpCouponBannerViewModelIcon"},_.T(_.vS,{icon:function(){return"price_tag"}})),_.T("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.T("div",{class:"ytLpCouponBannerViewModelContent"},_.T("div",{class:"ytLpCouponBannerViewModelHeading"},_.T(_.m3,{text:function(){var z;
return(z=M.data())==null?void 0:z.title}})),_.T("div",{class:"ytLpCouponBannerViewModelBody"},_.T(_.m3,{text:function(){var z;
return(z=M.data())==null?void 0:z.subtitle}})))))},"jc");
JIt.idomCompat=!0;_.HB=iKa.getInstance();var RGa;RGa=_.Mf(function(M){return _.T("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":M.shouldAriaHideContent},_.T("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:M.questionId},_.T(_.m3,{text:M.question})))},"kc");
_.DWt=_.Mf(function(M){var z=M.data;var J=M.themeOverride;M=_.S(_.kE(!1,void 0,"ljTVPd"));var R=M.next().value,D=M.next().value;M=_.ol(function(){D(!R());return!1});
var N=function(){return R()?"EXPAND_LESS":"EXPAND_MORE"},Z=("faq-container"+_.dq(_.HB)).toString(),B="faq-question-and-answers-section-question"+_.dq(_.HB),O={},X={};
return _.T("faq-entry-view-model-c3",null,_.T("div",{class:_.Qe("yt-lp-faq-entry-view-model",(O["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return J==null?void 0:J().useDarkTheme},O))},_.T("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":M,role:"button","aria-expanded":R,"aria-labelledby":B.toString(),"tab-index":"0"},_.T(RGa,{question:function(){return z().question},
questionId:B,shouldAriaHideContent:!0}),_.T(_.I,{cond:function(){return R()!==void 0},
then:function(){return _.T("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.T(_.vS,{icon:N,ariaHidden:!0}),_.T("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.T("div",{class:_.Qe("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(X["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!R()},X))},_.T("div",{id:Z},_.T(_.G4,{each:function(){return z().answers||[]}},function(l){return _.T("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.T(_.m3,{text:l}))})))))},"lc");
_.DWt.idomCompat=!0;var Nmv=_.Mf(function(M){var z=M.data;var J=M.themeOverride;M={};return _.T("lp-faq-section-view-model-c3",null,_.T("div",{class:_.Qe("yt-lp-faq-section-view-model",(M["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(J==null||!J().useDarkTheme)},M))},_.T("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.T(_.I,{cond:function(){return z().header},
then:function(R){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.T(_.m3,{text:R}))}}),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.T(_.t_,{data:function(){return z().faqs}},{faqEntryViewModel:function(R){return _.T(_.DWt,{data:R.data,
themeOverride:J})}})),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.T(_.G4,{each:function(){return z().footers||[]}},function(R){return _.T(_.m3,{text:R})})),_.T(_.I,{cond:function(){return z().legal},
then:function(R){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.T(_.m3,{text:R}))}}))))},"mc");
Nmv.idomCompat=!0;var PCp=_.Mf(function(M){var z=M.data;var J=M.themeOverride;_.mF(function(){var Z=z().gtmId;Z&&_.Ha(Z,_.HW("GL",""))});
var R={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,B,O;return(O=(Z=z().logo)==null?void 0:(B=Z.accessibilityData)==null?void 0:B.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},D=_.JF().resolve(_.zw(_.Ah)),N=function(){return D&&D()||(J==null?void 0:J().useDarkTheme)};
return _.T("lp-header-section-view-model",null,_.T("div",{class:function(){var Z=z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",B=z().marginType==="LP_SECTION_MARGIN_TYPE_TOP",O=J==null?void 0:J().useDarkTheme,X=["lp-header-section-view-model"];Z&&X.push("lp-header-section-view-model--ptc-layout-type");B&&X.push("lp-header-section-view-model__lp-header-section-margin");O&&X.push("lp-header-section-view-model--premium-force-dark-mode");return X.join(" ")}},_.T(_.I,{cond:function(){return z().logo},
then:function(){return _.T("div",null,_.T(_.I,{cond:N,then:function(){return _.T(_.I,{cond:function(){var Z;return(Z=z().logo)==null?void 0:Z.imageDark},
then:function(Z){return _.T(_.rv,Object.assign({},{data:Z},R))}})},
else:function(){return _.T(_.I,{cond:function(){var Z;return(Z=z().logo)==null?void 0:Z.imageLight},
then:function(Z){return _.T(_.rv,Object.assign({},{data:Z},R))}})}}))}}),_.T(_.I,{cond:function(){return z().title},
then:function(Z){return _.T("div",{class:"lp-header-section-view-model__lp-header-title"},_.T(_.m3,{text:Z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.T(_.I,{cond:function(){return z().subtitles},
then:function(Z){return _.T(_.G4,{each:Z},function(B){return _.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.T(_.m3,{text:B}))})}})),_.T(_.I,{cond:function(){return z().additionalInfo},
then:function(Z){return _.T("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.T(_.m3,{text:Z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.T(_.I,{cond:function(){return z().primaryButton},
then:function(Z){return _.T("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.T(_.t_,{data:Z},{buttonViewModel:_.lT}))}}),_.T(_.I,{cond:function(){return z().secondaryButton},
then:function(Z){return _.T("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.T(_.t_,{data:Z},{buttonViewModel:_.lT}))}})),_.T(_.I,{cond:function(){return z().otherOffersInfo},
then:function(Z){return _.T("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.T(_.m3,{text:Z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.T(_.I,{cond:function(){return z().billingInfo},
then:function(Z){return _.T(_.G4,{each:Z},function(B){return _.T("div",null,_.T(_.m3,{text:B}))})}}))))},"nc");
PCp.idomCompat=!0;var SM$=_.Mf(function(M){var z=M.data;var J=_.ba(M.themeOverride,{useDarkTheme:!1});M={};M=_.Qe("ytm-lp-headline-section-view-model",(M["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return J().useDarkTheme},M));
return _.T("lp-headline-section-view-model",null,_.T("div",{class:M},_.T("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.T(_.m3,{text:function(){return z().title}})),_.T(_.I,{cond:function(){return z().subtitle},
then:function(R){return _.T("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.T(_.m3,{text:R}))}})))},"oc");var Z_k=_.Mf(function(M){var z=M.data;var J=M.themeOverride;var R=_.JF().resolve(_.zw(_.Ah)),D=function(){return R&&R()||(J==null?void 0:J().useDarkTheme)},N=function(){var X,l;
var e=D()?(X=z().textBackgroundImage)==null?void 0:X.imageDark:(l=z().textBackgroundImage)==null?void 0:l.imageLight;return XGp((e==null?void 0:e.sources)||[])},Z=function(){var X,l;
return D()?(X=z().featureImage)==null?void 0:X.imageDark:(l=z().featureImage)==null?void 0:l.imageLight},B=function(){return z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},O=function(){var X,l;
return D()?(X=z().logo)==null?void 0:X.imageDark:(l=z().logo)==null?void 0:l.imageLight};
return _.T("ytm-lp-large-feature-section-view-model",null,_.T("div",{class:function(){var X=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",l=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",e=(z().index||0)%2===1,Q=J==null?void 0:J().useDarkTheme,v=["yt-lp-large-feature-section-view-model"];X?v.push("yt-lp-large-feature-section-view-model--music-feature-type"):l?v.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):e||v.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Q&&v.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return v.join(" ")}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.T(_.I,{cond:Z,
then:function(){return _.T(_.rv,{data:function(){return Z()},
alt:function(){var X,l,e;return(e=(X=z().featureImage)==null?void 0:(l=X.accessibilityData)==null?void 0:l.label)!=null?e:""},
contentMode:B})}})),_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var X;return((X=N())==null?0:X.url)?"background-image: url("+_.hr(N().url)+");":""}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.T(_.I,{cond:O,
then:function(){return _.T(_.rv,{data:function(){return O()},
alt:function(){var X,l,e;return(e=(X=z().logo)==null?void 0:(l=X.accessibilityData)==null?void 0:l.label)!=null?e:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.T(_.I,{cond:function(){return z().eyebrowText},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.T(_.m3,{text:function(){return z().eyebrowText}}))}}),_.T(_.I,{cond:function(){return z().title},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.T(_.m3,{text:function(){return z().title}}))}}),_.T(_.I,{cond:function(){return z().subtitles},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.T(_.G4,{each:function(){return z().subtitles||[]}},function(X){return _.T(_.m3,{text:X})}))}})))))},"pc");
Z_k.idomCompat=!0;var kXu=_.Mf(function(M){return _.T("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.T("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.T(_.vS,{icon:function(){var z;return(z=M.data())==null?void 0:z.iconType},
className:function(){var z;switch((z=M.data())==null?void 0:z.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 z;return((z=M.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.T("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.T(_.m3,{text:function(){var z;
return(z=M.data())==null?void 0:z.text},
className:function(){var z;return((z=M.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"qc");var BmV=_.Mf(function(M){M=_.rH(M,{config:void 0,themeOverride:void 0});var z=M.data,J=M.config,R=M.themeOverride;M={};M=_.Qe("ytm-lp-offer-card-option-view-model",(M["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var B;return(B=R())==null?void 0:B.useDarkTheme},M));
var D=_.ol(function(){var B,O;(B=J())==null||(O=B.handleRadioButtonClick)==null||O.call(B,z());return!1}),N=function(){var B;
return(B=J())==null?void 0:B.shouldDisplayRadioButton},Z=function(){var B;
return(B=z().featureListItems)!=null?B:[]};
return _.T("ytm-lp-offer-card-option-view-model",null,_.T("div",{class:M,"on:click":_.ol(function(){if(N()){var B,O;(B=J())==null||(O=B.handleRadioButtonClick)==null||O.call(B,z())}return!1})},_.T(_.I,{cond:N,
then:function(){return _.T("div",null,_.T("input",{type:"radio","on:click":D,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var B;return!((B=J())==null||!B.isOptionSelected)}}))}}),_.T("div",null,_.T("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.T(_.m3,{text:function(){return z().eyebrowText}})),_.T("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.T(_.m3,{text:function(){return z().subtitle}})),_.T(_.I,{cond:function(){return Z().length>0},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.T(_.t_,{data:Z},{lpFeatureListItemViewModel:kXu}))}}),_.T("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.T(_.m3,{text:function(){return z().description}})))))},"rc");
BmV.idomCompat=!0;var O_g=_.Mf(function(M){var z=M.data;var J=M.themeOverride;M=_.S(_.eh(function(){var N,Z=(N=z().offerOptions)==null?void 0:N[0];return _.G(Z,OMV)||{}}));
var R=M.next().value,D=M.next().value;M={};return _.T("ytm-lp-offer-card-view-model",null,_.T("div",{class:_.Qe("ytm-lp-offer-card-view-model",(M["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(J==null||!J().useDarkTheme)},M))},_.T("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.T(_.I,{cond:function(){return z().titleIconType},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.T(_.vS,{icon:function(){var N;return((N=z().titleIconType)==null?void 0:N.toString())||""}}))}}),_.T("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.T(_.m3,{text:function(){return z().title}})),_.T(_.t_,{data:function(){return z().titleBadge}},{badgeViewModel:function(N){return _.T("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.T(_.kY,{data:N.data}))}})),_.T("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.T(_.t_,{data:function(){return z().offerOptions}},{lpOfferCardOptionViewModel:function(N){var Z=N.data;
return _.T(_.MH,null,_.T("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.T(BmV,{data:Z,config:function(){var B;return{shouldDisplayRadioButton:(z().offerOptions||[]).length>1,isOptionSelected:Z().id===((B=R())==null?void 0:B.id),handleRadioButtonClick:function(O){return void D(O)}}},
themeOverride:J}))}})),_.T("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.T(_.t_,{data:function(){var N;
return(N=R())==null?void 0:N.purchaseButtonOverride}},{buttonViewModel:_.lT}))))},"sc");
O_g.idomCompat=!0;var Tmg=_.Mf(function(M){var z=M.data;var J=M.themeOverride;M={};M=_.Qe("ytm-lp-offer-card-section-view-model",(M["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var R;return J==null?void 0:(R=J())==null?void 0:R.useDarkTheme},M));
return _.T("ytm-lp-offer-card-section-view-model",null,_.T("div",{class:M},_.T(_.I,{cond:function(){return z().title!==void 0},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.T("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.T(_.m3,{text:function(){return z().title}})),_.T(_.I,{cond:function(){return z().subtitle},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.T(_.m3,{text:function(){return z().subtitle}}))}}))}}),_.T("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.T(_.t_,{data:function(){return z().offerCards}},{lpOfferCardViewModel:function(R){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.T(O_g,{data:R.data,
themeOverride:J}))}})),_.T(_.I,{cond:function(){return z().footer},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.T(_.m3,{text:function(){return z().footer}}))}})))},"tc");var IMp=_.Mf(function(M){var z=M.data;return _.T("lp-offer-table-cell-content-view-model",null,_.T("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.T(_.tg,null,_.T(_.w3,{when:function(){return z().title}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return z().title}})}),_.T(_.w3,{when:function(){return z().subTitle}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return z().subTitle}})}),_.T(_.w3,{when:function(){return z().featureDescription}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return z().featureDescription}})}),_.T(_.w3,{when:function(){return z().description}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return z().description}})}),_.T(_.w3,{when:function(){return z().iconType}},function(){return _.T("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.T(_.vS,{icon:function(){return z().iconType.toString()}}))}),_.T(_.w3,{when:function(){return z().purchaseButton}},function(){return _.T(_.t_,{data:function(){return z().purchaseButton}},{buttonViewModel:function(J){return _.T("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.T(_.lT,{data:J.data}))}})}),_.T(_.w3,{when:function(){return z().note}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return z().note}})}),_.T(_.w3,{when:function(){return z().featureDetail}},function(){return _.T(_.m3,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return z().featureDetail}})}),_.T(_.w3,{when:function(){return z().badge}},function(){return _.T(_.t_,{data:function(){return z().badge}},{badgeViewModel:_.kY})}))))},"uc");
IMp.idomCompat=!0;var oXQ=_.Mf(function(M){var z=M.data;return _.T("lp-offer-table-cell-view-model",null,_.T("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(z().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.T(_.t_,{data:function(){return z().contents}},{lpOfferTableCellContentViewModel:IMp})))},
"vc");
oXQ.idomCompat=!0;var XMS=_.Mf(function(M){var z=M.data;var J=M.lpTableIsFirstRow;var R=M.lpTableIsLastRow;var D=function(){return(J==null?0:J())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},N=function(){return(J==null?0:J())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(R==null?0:R())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.T("ytm-lp-offer-table-row-view-model",null,_.T("div",{class:"yt-lp-offer-table-row-view-model"},_.T(_.t_,{data:function(){return z().rowHeaderCell}},{lpOfferTableCellViewModel:function(Z){return _.T("div",{class:D},_.T(oXQ,{data:Z.data}))}}),_.T(_.t_,{data:function(){return z().contentCells}},{lpOfferTableCellViewModel:function(Z){return _.T("div",{class:N},_.T(oXQ,{data:Z.data}))}})))},"wc");
XMS.idomCompat=!0;var lMa=_.Mf(function(M){var z=M.data;var J=M.themeOverride;var R=_.JF().resolve(_.zw(_.Ah)),D=function(){return _.G(z().logo,YQV)||{}};
M={};return _.T("ytm-lp-offer-table-section-view-model",null,_.T("div",{class:"yt-lp-offer-table-view-model"},_.T(_.I,{cond:function(){var N,Z;return R&&R()||(J==null?0:J().useDarkTheme)?(N=D())==null?void 0:N.imageDark:(Z=D())==null?void 0:Z.imageLight},
then:function(N){return _.T(_.rv,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,B,O;return(O=(Z=D())==null?void 0:(B=Z.accessibilityData)==null?void 0:B.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.T(_.m3,{text:function(){return z().subtitle}})),_.T(_.I,{cond:function(){return z().disclaimers},
then:function(N){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.T(_.G4,{each:N},function(Z){return _.T("div",null,_.T(_.m3,{text:Z}))}))}}),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.T(_.t_,{data:function(){return z().rows}},{lpOfferTableRowViewModel:function(N,Z){return _.T(XMS,{data:N.data,
lpTableIsFirstRow:function(){return Z()===0},
lpTableIsLastRow:function(){return Z()===z().rows.length-1}})}})),_.T("div",{class:_.Qe((M["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return z().hasFooterBackground},M))},_.T(_.I,{cond:function(){return z().footer},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.T(_.m3,{text:function(){return z().footer}}))}}),_.T(_.I,{cond:function(){return z().footerTitle},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.T(_.m3,{text:function(){return z().footerTitle}}))}}),_.T(_.I,{cond:function(){return z().footerDescription},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.T(_.m3,{text:function(){return z().footerDescription}}))}}))))},"xc");
lMa.idomCompat=!0;var eGJ=_.Mf(function(M){var z=M.data;var J=M.themeOverride;var R=_.JF().resolve(_.zw(_.Ah)),D=function(){var B;return J==null?void 0:(B=J())==null?void 0:B.useDarkTheme},N=function(){var B,O;
return R&&R()||D()?(B=z().image)==null?void 0:B.imageDark:(O=z().image)==null?void 0:O.imageLight};
M={};M=_.Qe("ytm-lp-small-feature-section-view-model",(M["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=D,M));var Z=function(){var B,O,X;return(X=(B=z().image)==null?void 0:(O=B.accessibilityData)==null?void 0:O.label)!=null?X:""};
return _.T("ytm-lp-small-feature-section-view-model",{class:M},_.T(_.I,{cond:function(){return N()&&!X_w},
then:function(){return _.T("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.T(_.rv,{data:function(){return N()},
alt:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.T("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.T("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.T(_.I,{cond:function(){return z().title},
then:function(B){return _.T(_.m3,{text:B})}})),_.T("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.T(_.m3,{text:function(){return z().description}}))))},"yc");
eGJ.idomCompat=!0;var Qct=_.Mf(function(M){var z=M.data;var J=M.themeOverride;M={};return _.T("ytm-lp-small-feature-section-group-view-model",null,_.T("div",{class:_.Qe("ytm-lp-small-feature-section-group-view-model",(M["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(J==null||!J().useDarkTheme)},M))},_.T("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.T(_.t_,{data:function(){return z().smallFeatures}},{lpSmallFeatureSectionViewModel:function(R){return _.T("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.T(eGJ,{data:R.data,
themeOverride:J}))}}))))},"zc");
Qct.idomCompat=!0;_.N7(_.Mf(function(M){var z=M.data;var J=function(){return z().forcedTheme==="USER_INTERFACE_THEME_DARK"},R=function(){return z().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},D=function(){var Z="",B,O;
var X=_.JF().resolve(_.zw(_.Ah));X=J()||(X==null?0:X())?(B=z().themedImageViewModel)==null?void 0:B.imageDark:(O=z().themedImageViewModel)==null?void 0:O.imageLight;(B=XGp((X==null?void 0:X.sources)||[]))&&B.url&&(Z=R()?"background-image: linear-gradient(to bottom, transparent, "+(z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.hr(B.url)+");":"background-image: url("+_.hr(B.url)+");");return Z},N=function(){return{useDarkTheme:J()}};
M={};return _.T("yt-section-group-view-model",null,_.T("div",{class:_.Qe("yt-lp-section-group-view-model",(M["yt-lp-section-group-view-model--premium-force-dark-mode"]=J,M["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M))},_.T(_.I,{cond:function(){return D().length},
then:function(){var Z={};return _.T("div",{class:_.Qe("yt-lp-section-group-view-model__bg-image",(Z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=R,Z)),style:D})}}),_.T("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.T(_.t_,{data:function(){return z().sections}},{lpFaqSectionViewModel:function(Z){return _.T(Nmv,{data:Z.data,
themeOverride:N})},
lpHeaderSectionViewModel:function(Z){return _.T(PCp,{data:Z.data,themeOverride:N})},
lpHeadlineSectionViewModel:function(Z){return _.T(SM$,{data:Z.data,themeOverride:N})},
lpLargeFeatureSectionViewModel:function(Z){return _.T(Z_k,{data:Z.data,themeOverride:N})},
lpOfferCardSectionViewModel:function(Z){return _.T(Tmg,{data:Z.data,themeOverride:N})},
lpComplexOfferCardSectionViewModel:function(Z){return _.T(zGu,{data:Z.data})},
lpOfferTableSectionViewModel:function(Z){return _.T(lMa,{data:Z.data,themeOverride:N})},
lpSmallFeatureSectionGroupViewModel:function(Z){return _.T(Qct,{data:Z.data,themeOverride:N})},
lpCouponBannerViewModel:function(Z){return _.T(JIt,{data:Z.data})}}))))},"Ac"),"yt-section-group-view-model",{props:{data:_.zn}});var prp=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.UWQ=_.Mf(function(M){function z(){if(prp.has(M.data().displayType)){var X=!R(),l;if((l=M.disableDeselection)==null||!l.call(M)||X){M.data().selected=X;l=Object.assign({},Z(),{selected:X});B(l);var e;(e=M.callback)==null||e.call(M,l,X)}}}
var J=_.AL("chip-view-model"),R=function(){var X,l;return!!(((X=M.selected)==null?void 0:X.call(M))!==void 0?(l=M.selected)==null?0:l.call(M):Z().selected)},D=_.S(_.eh(M.data)),N=D.next().value;
D=D.next().value;var Z=N,B=D,O=_.U3(j1e,function(){return M.data().chipEntityKey||""});
return _.T("chip-view-model",{class:"ytChipViewModelHost",el:J},_.T(rlp,{data:function(){var X,l=Object.assign({},Z(),{selected:R()}),e=O(),Q=(X=M.disableDeselection)==null?void 0:X.call(M);a:switch(l.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:(e==null?void 0:e.text)||l.text,state:l.disabled?1:l.selected?0:2,type:X,onTap:FlG(l,J,z,Q),
accessibilityLabel:l.accessibilityLabel||l.text}}}))},"Bc");
_.UWQ.idomCompat={callbacks:{callback:!0}};_.vXV=_.Mf(function(M){var z=_.U3(t2n,function(){var Z;return(Z=M.data())==null?void 0:Z.chipBarStateEntityKey}),J=function(){return M.data().disableDeselection},R=_.S(_.eh(function(){var Z;
if(((Z=z())==null?void 0:Z.selectedIndex)!=void 0)return z().selectedIndex;var B,O;Z=_.S(((B=M.data())==null?void 0:(O=B.chips)==null?void 0:O.entries())||[]);for(B=Z.next();!B.done;B=Z.next()){B=_.S(B.value);O=B.next().value;B=B.next().value;var X=void 0;if((X=_.G(B,_.LM))==null?0:X.selected)return O}return-1})),D=R.next().value,N=R.next().value;
return _.T("chip-bar-view-model",{class:_.Qe("ytChipBarViewModelHost",M.className),role:"tablist"},_.T(_.t_,{data:function(){return M.data().chips}},{chipViewModel:function(Z,B){return _.T("div",{class:"ytChipBarViewModelChipWrapper"},_.T(_.UWQ,{data:Z.data,
selected:function(){return B()===D()},
callback:function(O,X){O=!!X;X=B();N(O?X:-1);var l,e=(l=M.data())==null?void 0:l.chipBarStateEntityKey;e&&O&&_.Cd(_.pf("chipBarStateEntity",e,{key:e,selectedIndex:X}))},
disableDeselection:M.disableDeselection||J}))}}))},"Cc");_.N7(_.vXV,"chip-bar-view-model",{props:{data:_.Dv,className:_.Dv,disableDeselection:_.Dv}});_.GXa=_.Mf(function(M){var z=M.data;M={};return _.T("divider-view-model",{class:_.Qe("divider-view-model-wiz",(M["divider-view-model-wiz__inset-thin-padding"]=function(){return z().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},M))},_.T("div",{class:_.Qe("divider-view-model-wiz__base-divider",function(){return Y6o(z().dividerStyle)}),
style:_.UN({"background-color":function(){return z().backgroundColor?_.u7(z().backgroundColor):void 0}})}))},"Dc");
_.GXa.idomCompat=!0;_.N7(_.GXa,"divider-view-model",{props:{data:_.zn}});var x8=new Map,wF=new Map,s1R=0,tk;var Kle=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],q6G={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var wM$,xWB;wM$=function(M){return function(z){return function(){return(z==null?void 0:z())!==void 0?String(z())+M:void 0}}};
_.cB=wM$("px");xWB=wM$("s");var tSp=Gbe(function(M){return M.targetGroupId}).useUpdatableData;var pMJ=_.Mf(function(M){function z(z8){return function(){var O8=m().numItemsPerGridRow,I3=z8()*O8;O8=I3+O8;var vY,te;return(te=(vY=R().contents)==null?void 0:vY.slice(I3,O8))!=null?te:[]}}
var J=_.rH(M,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),R=J.data,D=J.layoutContainerWidth,N=J.shouldUseOwnContainerSize,Z=J.marginSettings,B=_.xn(),O=_.S(tSp(function(){var z8,O8;return{targetGroupId:(z8=R().targetingContext)==null?void 0:(O8=z8.targetGroupId)==null?void 0:O8[0]}})).next().value;
J=_.S(_.kE(!0,void 0,"f25nob"));var X=J.next().value,l=J.next().value,e=function(){var z8,O8=(z8=_.G(R().showMoreButton,_.s3))==null?void 0:z8.trackingParams;O8&&_.Ub(_.Gm(),O8);l(!1)},Q=function(){var z8,O8=(z8=_.G(R().showLessButton,_.s3))==null?void 0:z8.trackingParams;
O8&&_.Ub(_.Gm(),O8);l(!0)};
J=_.AL("grid-shelf-view-model");var v=_.a9R(J,{canHaveZeroSize:!1}),x=function(){var z8;return(z8=R().contentAspectRatio)!=null?z8:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},m=_.o4(function(){var z8=_.ff({containerWidth:N()&&v.width()>0?v.width()||D():D(),
sizing:"EXTRA_COMPACT",marginSettings:Z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:z8.maxContainerWidth,numItemsPerGridRow:z8.numItems,contentPadding:N()?z8.margin:z8.contentMargin,itemWidth:z8.itemWidth,itemMargin:z8.gutter/2}},void 0,"b3gcJf"),y=function(){if(R().enableVerticalExpansion){if(X())return H();
var z8,O8,I3=(O8=(z8=R().contents)==null?void 0:z8.length)!=null?O8:0;return Math.ceil(I3/m().numItemsPerGridRow)}return m().numItemsPerGridRow<=2?2:1},H=function(){var z8;
return Math.ceil(((z8=R().minCollapsedItemCount)!=null?z8:1)/m().numItemsPerGridRow)},q=function(){return R().enableVerticalExpansion&&R().showLessButton&&!X()&&y()>H()},b=function(){var z8,O8;
return R().enableVerticalExpansion&&R().showMoreButton&&X()&&((O8=(z8=R().contents)==null?void 0:z8.length)!=null?O8:0)>m().numItemsPerGridRow*H()},V=function(){return!q()},E=function(){return!b()},L={};
return _.T("grid-shelf-view-model",{class:_.Qe("ytGridShelfViewModelHost",M.className,(L.ytGridShelfViewModelHostHasBottomButton=function(){return q()||b()},L.ytGridShelfViewModelHostIsDismissed=function(){var z8,O8=(z8=O())!=null?z8:{};
z8=O8.behavior;var I3=O8.isDismissed,vY=O8.stamperContextTargetId;O8=O8.stamperIndex;if(!(_.U("mweb_see_fewer_shorts_group_dismissal")&&I3&&z8&&vY))return!1;var te;I3=B;for(var wR,qb,cY=((wR=I3)==null?0:wR.targetId)?_.YE((qb=I3)==null?void 0:qb.targetId):void 0;((te=I3)==null?0:te.parent)&&cY!==vY;)I3=I3.parent,qb=wR=void 0,cY=((wR=I3)==null?0:wR.targetId)?_.YE((qb=I3)==null?void 0:qb.targetId):void 0;te=cY===vY?I3:void 0;if(!te)return!1;var Pu;vY=te==null?void 0:(Pu=te.stamperIndex)==null?void 0:
Pu.call(te);return z8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||z8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&vY!=null&&O8!=null&&vY>O8},L)),
el:J,style:_.UN({"margin-left":(0,_.cB)(function(){return m().contentPadding}),
"margin-right":(0,_.cB)(function(){return m().contentPadding})})},_.T(_.I,{cond:function(){return _.G(R().header,uf2)},
then:function(z8){return _.T(_.lI,{data:z8,disableHorizontalPadding:!0})}}),_.T("div",null,_.T(_.G4,{each:function(){return Array(y())}},function(z8,O8){return _.T(jcS,{className:M.className,
items:z(O8),responsiveGridShelfLayout:m,contentAspectRatio:x})})),_.T("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.T(_.t_,{data:function(){return R().showMoreButton}},{buttonViewModel:function(z8){return _.T("div",{hidden:E},_.T(_.lT,{data:z8.data,
onClick:e}))}}),_.T(_.t_,{data:function(){return R().showLessButton}},{buttonViewModel:function(z8){return _.T("div",{hidden:V},_.T(_.lT,{data:z8.data,
onClick:Q}))}})))},"Ec");
pMJ.idomCompat=!0;var jcS=_.Mf(function(M){var z=M.items;var J=M.responsiveGridShelfLayout;var R=M.contentAspectRatio;M=M.className;var D=_.AL("div");gUR(D,function(){a:{var Z=D.value;for(var B=z(),O=[],X=0;X<B.length;X++){var l=_.G(B[X],erV);if(!l||l==null||!l.inlinePlayerData){Z=null;break a}var e=Z.children.item(X);if(!e){Z=null;break a}O.push({thumbnailElement:e,videoData:l})}Z={gridVideoPreviewData:{gridItems:O}}}return Z});
var N=(0,_.cB)(function(){return-J().itemMargin});
return _.T("div",{el:D,class:_.Qe("ytGridShelfViewModelGridShelfRow",M),style:_.UN({"margin-left":N,"margin-right":N})},_.T(_.t_,{data:z,replacementWrapper:function(Z){return _.T(FCB,{responsiveGridShelfLayout:J},Z)}},{shortsLockupViewModel:function(Z){return _.T(FCB,{responsiveGridShelfLayout:J},_.T(St2,{data:Z.data,
aspectRatio:function(){return R()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Fc"),FCB=_.Mf(function(M){return _.T("div",{style:_.UN({width:(0,_.cB)(function(){return M.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+M.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},M.children)},"Gc");
pMJ.idomCompat=!0;_.N7(pMJ,"grid-shelf-view-model",{props:{data:_.zn,layoutContainerWidth:_.zn,shouldUseOwnContainerSize:_.zn,marginSettings:_.zn,className:_.zn}});_.YMJ=_.Mf(function(M){var z=_.S(_.kE(!1,void 0,"YYtxR")),J=z.next().value,R=z.next().value;z={};return _.T("yt-alert-banner-view-model",{class:_.Qe("ytAlertBannerViewModelHost",M.className,function(){var D;a:switch((D=M.data())==null?void 0:D.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":D="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":D="ytAlertBannerViewModelWarning";break a;default:D="ytAlertBannerViewModelInformational"}return D},(z.ytAlertBannerViewModelDismissed=
J,z.ytAlertBannerViewModelFullbleed=M.fullbleed,z.ytAlertBannerViewModelNarrow=M.narrow,z.ytAlertBannerViewModelIsInRichGrid=M.isInRichGrid,z))},_.T(_.I,{cond:function(){var D;
return!((D=M.data())==null?0:D.hideIcon)},
then:function(){return _.T("div",{class:"ytAlertBannerViewModelIcon"},_.T(_.vS,{icon:function(){return"info_circle"}}))}}),_.T("div",{class:"ytAlertBannerViewModelOuterContainer"},_.T("div",{class:"ytAlertBannerViewModelContainer"},_.T("div",{class:"ytAlertBannerViewModelContent"},_.T("div",{class:"ytAlertBannerViewModelHeading"},_.T(_.m3,{text:function(){var D;
return(D=M.data())==null?void 0:D.heading}})),_.T("div",{class:"ytAlertBannerViewModelBody"},_.T(_.m3,{text:function(){var D;
return(D=M.data())==null?void 0:D.body}})))),_.T(_.t_,{data:function(){var D;
return(D=M.data())==null?void 0:D.actionButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.T(_.t_,{data:function(){var D;
return(D=M.data())==null?void 0:D.dismissButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var N;((N=M.data())==null?0:N.disableLocalDismissBehavior)||R(!0)}})}}))},"Hc");_.N7(_.YMJ,"yt-alert-banner-view-model",{props:{data:_.zn,fullbleed:_.zn,narrow:_.zn,isInRichGrid:_.zn,className:_.zn}});_.de=_.Mf(function(M){var z=M.data;var J=M.callback;var R=M.enableSingleChipSelection;var D=M.disableChipsScrollAnimation;var N=_.iW("div");M=_.S(_.kE(!0,void 0,"SPw5zc"));var Z=M.next().value,B=M.next().value;M=_.S(_.kE(!1,void 0,"gLFsSb"));var O=M.next().value,X=M.next().value,l=!1,e=0;_.FT(function(){B(x());X(m())});
M=_.S(_.eh(function(){var z8={};return z().autoselectedChipIndex!=null?(z8[z().autoselectedChipIndex]=!0,z8):{}}));
var Q=M.next().value,v=M.next().value,x=function(){var z8=N.value;return z8==null||z8.scrollLeft-1<=0},m=function(){var z8=N.value;
return z8==null?!1:z8.scrollLeft+1>=(z8==null?NaN:z8.scrollWidth)-(z8==null?NaN:z8.clientWidth)},y=function(){return z().isHorizontallyScrollable},H=function(z8){N.value!=null&&(_.HW("HTML_DIR")==="rtl"&&(z8=-z8),N.value.scrollBy({left:z8,
behavior:(D==null?0:D())?"instant":"smooth"}))},q=function(){H(-320)},b=function(){H(320)},V=_.ol(function(z8){l=!0;
e=z8.clientX}),E=_.ol(function(z8){if(l){z8=z8.clientX;
var O8=z8-e;e=z8;var I3;(I3=N.value)==null||I3.scrollBy({left:-O8})}}),L=_.ol(function(){var z8=x(),O8=m();
z8!==Z()&&B(z8);O8!==O()&&X(O8)});
MS("pointerup",function(){l&&(l=!1)});
return _.T("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.T(_.TM,{contentId:function(){return z().contentId},
useModernStyle:!0},function(){var z8={},O8={};return _.T("div",null,_.T(_.I,{cond:function(){return z().title},
then:function(){return _.T("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.T("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return z().title}),_.T(_.t_,{data:function(){return z().overflowButton}},{buttonViewModel:_.lT}))}}),_.T("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.T(_.I,{cond:function(){return z().previousButton},
then:function(){var I3={};return _.T("div",{class:_.Qe("ytChipsShelfViewModelLeftArrowContainer",(I3.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return Z()},I3))},_.T(_.t_,{data:function(){return z().previousButton}},{buttonViewModel:function(vY){return _.T(_.lT,{data:vY.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:q})}}))}}),_.T("div",{el:N,
"on:pointerdown":V,"on:pointermove":E,"on:scroll":L,class:_.Qe("ytChipsShelfViewModelChipsScrollContainer",(z8.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=y,z8))},_.T("div",{class:_.Qe("ytChipsShelfViewModelChipsContainer",(O8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=y,O8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,O8)),role:"tablist"},_.T(_.t_,{data:function(){return z().contents}},{chipViewModel:function(I3,vY){return _.T("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.T(_.UWQ,{data:I3.data,
callback:function(te,wR){var qb=vY();if(R==null?0:R()){var cY={};v((cY[qb]=wR,cY))}else cY={},v(Object.assign({},Q(),(cY[qb]=wR,cY)));J==null||J(te,wR,qb)},
disableDeselection:R,selected:function(){return!!Q()[vY()]}}))}}))),_.T(_.I,{cond:function(){return z().nextButton},
then:function(){var I3={};return _.T("div",{class:_.Qe("ytChipsShelfViewModelRightArrowContainer",(I3.ytChipsShelfViewModelRightArrowContainerIsHidden=O,I3))},_.T(_.t_,{data:function(){return z().nextButton}},{buttonViewModel:function(vY){return _.T(_.lT,{data:vY.data,
className:"ytChipsShelfViewModelRightArrow",onClick:b})}}))}})))}))},"Ic");
_.de.idomCompat={callbacks:{callback:!0}};_.N7(_.de,"chips-shelf-view-model",{props:{data:_.zn,callback:_.Dv,enableSingleChipSelection:_.zn,disableChipsScrollAnimation:_.zn}});var mWV=_.Mf(function(M){M=_.rH(M,{disabled:!1});var z=M.active,J=M.disabled;M={};M=_.Qe("ytSwitchShapeTrack",(M.ytSwitchShapeTrackActive=function(){return z()},M.ytSwitchShapeTrackDisabled=function(){return J()},M));
var R={};R=_.Qe("ytSwitchShapeKnob",(R.ytSwitchShapeKnobActive=function(){return z()},R));
return _.T("switch-shape",{class:"ytSwitchShapeHost"},_.T("div",{class:M}),_.T("div",{class:R}))},"Jc");var gXa=_.Mf(function(M){var z=_.rH(M,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),J=z.data;M=z.className;var R=z.handleOnTapEventInParent,D=z.parentActive;z=_.S(_.eh(function(){var e;return(e=D())!=null?e:J().switchedOnByDefault||!1}));
var N=z.next().value,Z=z.next().value,B=function(){return J().isDisabled},O=_.AL("button");
z=_.ol(function(e){return e.key==="Enter"?(e.preventDefault(),O.value.click(),!1):!0});
var X=_.ol(function(e){if(J().handleOnTapEventInParent||R())return!0;if(B())return!1;EUw(J(),N(),e);Z(!N());return!1}),l={};
l=_.Qe("ytSwitchButtonViewModelButton",(l.ytSwitchButtonViewModelTappable=function(){return!B()},l));
return _.T("switch-button-view-model",{class:_.Qe("ytSwitchButtonViewModelHost",M)},_.T("button",{el:O,class:l,"on:click":X,"on:keydown":z,"aria-label":function(){return N()?J().a11yLabelSwitchedOn:J().a11yLabelSwitchedOff},
"aria-checked":N,"aria-disabled":B,role:"switch"},_.T(mWV,{active:N,disabled:B})))},"Kc");var scV=_.Mf(function(M){var z=M.data;var J=M.isLeading;var R=M.hideSelectionTextChevron;var D=M.isToggled;var N=function(){return J()?z().leadingImage:z().trailingImage},Z=function(){a:switch(z().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var l="expand_more";
break a;default:l="chevron_right"}return l};
M={};var B=_.Qe("yt-list-item-view-model-wiz__image-container",(M["yt-list-item-view-model-wiz__leading"]=J,M["yt-list-item-view-model-wiz__trailing"]=function(){return!J()},M)),O=_.Qe("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
M={};var X=_.Qe("yt-list-item-view-model-wiz__accessory",(M["yt-list-item-view-model-wiz__leading"]=J,M["yt-list-item-view-model-wiz__trailing"]=function(){return!J()},M));
return _.T(_.I,{cond:function(){var l=z(),e=J();return!!(e&&(l.leadingImage||l.leadingAccessory)||!e&&(l.trailingImage||l.trailingButton||l.trailingButtons||l.selectionText))},
then:function(){return _.T(_.MH,null,_.T(_.I,{cond:N,then:function(l){return _.T("div",{class:B,"aria-hidden":"true"},_.T(_.rv,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:O,isToggled:D}))}}),_.T(_.I,{cond:function(){return J()&&z().leadingAccessory},
then:function(){return _.T("div",{class:B},_.T(_.t_,{data:function(){return z().leadingAccessory}},{avatarViewModel:function(l){return _.T(_.dj,{data:l.data,
avatarButtonCustomClassName:O})},
collectionThumbnailViewModel:function(l){return _.T(z6$,{data:l.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.T(_.I,{cond:function(){return!J()&&z().trailingButton},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__button-container"},_.T(_.t_,{data:function(){return z().trailingButton}},{buttonViewModel:function(l){return _.T(_.lT,{data:l.data,
className:X})}}))}}),_.T(_.I,{cond:function(){var l;
return!J()&&((l=z().trailingButtons)==null?void 0:l.buttons)},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__button-container"},_.T(_.t_,{data:function(){var l;return(l=z().trailingButtons)==null?void 0:l.buttons}},{buttonViewModel:function(l){return _.T(_.lT,{data:l.data,
className:X})},
accountLinkButtonViewModel:function(l){return _.T(Vdv,{data:l.data,className:X})},
switchButtonViewModel:function(l){return _.T(gXa,{data:l.data,className:X})},
subscribeButtonViewModel:function(l){return _.T(_.cH,{data:l.data,isOverlay:!1,animateWidth:!1,className:X})},
toggleButtonViewModel:function(l){return _.T(_.cm,{data:l.data,className:X})}}))}}),_.T(_.I,{cond:function(){return!J()&&!!z().selectionText},
then:function(){return _.T(_.MH,null,_.T(_.m3,{text:function(){return z().selectionText},
className:_.Qe("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.T(_.I,{cond:function(){return!(R==null?0:R())},
then:function(){return _.T(_.vS,{icon:Z,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Lc");var nXk=_.Mf(function(M){var z=M.data;return _.T(_.I,{cond:function(){return z().title||z().subtitle},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.T(_.I,{cond:function(){return z().title},
then:function(J){return _.T("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.T(_.m3,{text:J,className:"yt-list-item-view-model-wiz__title"}))}}),_.T(_.I,{cond:function(){return z().subtitle},
then:function(J){return _.T(_.m3,{text:J,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Mc");var KL=_.Mf(function(M){var z=M.data;var J=M.hideSelectionTextChevron;var R=M.TrailingAccessory;var D=M.isToggled;var N=M.disabled;var Z=M.isSelectItem;var B=M.isCompact;var O=M.inPopup;var X=M.disableHorizontalPadding;M=M.isTappableWithoutSelect;var l={};return _.T("div",{class:_.Qe("yt-list-item-view-model-wiz__label",(l["yt-list-item-view-model-wiz__container"]=function(){return!(Z==null?0:Z())},l["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!z().isDisabled||!(N==null||
!N())},l["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!z().subtitle},l["yt-list-item-view-model-wiz__container--compact"]=B,l["yt-list-item-view-model-wiz__container--tappable"]=M,l["yt-list-item-view-model-wiz__container--in-popup"]=O,l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(X==null?void 0:X())&&!(Z==null?0:Z())},l))},_.T(scV,{data:z,
isLeading:!0,hideSelectionTextChevron:J,isToggled:D}),_.T(nXk,{data:z}),_.T(_.I,{cond:function(){return!!R},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__trailing"},R&&_.T(R,null))},
else:function(){return _.T(scV,{data:z,isLeading:!1,hideSelectionTextChevron:J,isToggled:D})}}))},"Nc");var yIg=_.Mf(function(M){var z=_.rH(M,{checked:!1});M=z.name;var J=z.onChange,R=z.onClick,D=z.checked,N=z.labelRenderable,Z=z.hasLeadingLabel,B=z.labelClass,O=z.isCompact,X=z.selectElementClass;z=z.disableHorizontalPadding;var l="checkbox"+_.dq(_.HB),e=_.ol(function(x){R==null||R(x);return!1}),Q=_.ol(function(x){J==null||J(x);
return!1}),v={};
return _.T("checkbox-shape",null,_.T("label",{class:_.Qe("checkbox-shape-wiz",B,(v["checkbox-shape-wiz--compact"]=O,v["checkbox-shape-wiz--disable-horizontal-padding"]=z,v))},_.T("input",{class:"checkbox-shape-wiz__input",id:l,checked:D,name:M,type:"checkbox","prop:checked":D,"on:change":Q,"on:click":e}),_.T(_.I,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.T(hG$,{isLeading:!0,selectElementClass:X})}}),_.T(_.I,{cond:function(){return!!N},
then:function(){return _.T("div",{class:"checkbox-shape-wiz__label"},N==null?void 0:N())}}),_.T(_.I,{cond:Z,
then:function(){return _.T(hG$,{isLeading:!1,selectElementClass:X})}})))},"Oc");
yIg.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var hG$=_.Mf(function(M){var z=M.selectElementClass;M={};return _.T("div",{class:_.Qe("checkbox-shape-wiz__checkbox",z,(M["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(z==null?0:z())},M)),
"aria-hidden":"true"},_.T(_.vS,{icon:_.U("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.T(_.vS,{icon:_.U("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Pc");_.$O=_.Mf(function(M){var z=M.name;var J=M.onChange;var R=M.onClick;var D=M.checked;var N=M.labelRenderable;var Z=M.useCheckIcon;var B=M.hasLeadingLabel;var O=M.labelClass;var X=M.isCompact;var l=M.selectElementClass;var e=M.ariaLabel;M=M.className;var Q="radio"+_.dq(_.HB),v=_.AL("input"),x=_.ol(function(L){v.value.checked=!(D==null||!D());J==null||J(L);return!1}),m=_.ol(function(L){R==null||R(L);
return!1}),y=_.ol(function(L){_.U("enable_ios_webview_radio_button_responsiveness")&&(L.preventDefault(),v.value.click())}),H=_.S(_.kE(!1,void 0,"nXiHX")),q=H.next().value,b=H.next().value;
H=_.ol(function(){var L;((L=_.JF().resolve(_.zw(_.OQ)))==null?0:L.isKeyBoardInUse())&&b(!0)});
var V=_.ol(function(){b(!1)}),E={};
return _.T("radio-shape",{class:_.Qe("radio-shape-wiz",M)},_.T("input",{el:v,class:"radio-shape-wiz__input",id:Q,"prop:checked":D,name:z,type:"radio","on:change":x,"on:click":m,"aria-label":e,"on:focusin":H,"on:focusout":V}),_.T("label",{class:_.Qe("radio-shape-wiz__label-container",O,(E["radio-shape-wiz--compact"]=X,E["radio-shape-wiz__label-container--keyboard-focused"]=q,E)),for:Q,"on:click":y},_.T(_.I,{cond:function(){return!(B==null?0:B())},
then:function(){return _.T(H_a,{checked:D,useCheckIcon:Z,isLeading:!0,selectElementClass:l})}}),_.T(_.I,{cond:function(){return!!N},
then:function(){return _.T("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(e==null?0:e())?"true":"false"}},N==null?void 0:N())}}),_.T(_.I,{cond:B,
then:function(){return _.T(H_a,{checked:D,useCheckIcon:Z,isLeading:!1,selectElementClass:l})}})))},"Qc");
_.$O.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var H_a=_.Mf(function(M){var z=M.useCheckIcon;var J=M.selectElementClass;M=function(){return(z==null?0:z())?"CHECK":_.U("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var R={};return _.T("div",{class:_.Qe("radio-shape-wiz__radio",J,(R["radio-shape-wiz__radio--check-icon"]=z,R["radio-shape-wiz__radio--radio-default-style"]=function(){return!(J==null?0:J())},R)),
"aria-hidden":"true"},_.T(_.vS,{icon:M}),_.T(_.vS,{icon:M,active:function(){return!(z==null?0:z())}}))},"Rc");_.uI=_.Mf(function(M){var z=M.data;var J=M.isMenuItem;var R=M.isCompact;var D=M.onTap;var N=M.trailingAccessory;var Z=M.hideSelectionTextChevron;var B=M.disabled;var O=M.inPopup;var X=M.disableHorizontalPadding;var l=M.isOverlay;M=M.isToggled;var e=_.d4(function(O8){a:{var I3=z();if((I3==null?0:I3.entitySelectorType)&&(I3==null?0:I3.entityKey))switch(I3.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":O8=_.$n(O8,I3.entityKey);O8=O8==null?void 0:
O8.value;I3=!1;O8==="CAPTIONS_UNAVAILABLE"&&(I3=!0,O8="");O8=Object.assign({},!!O8&&{selectionText:{content:O8}},!!O8&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:I3});break a;default:O8={}}else O8={}}return O8}),Q=function(){return _.U("enable_web_shorts_captions_language_command")?Object.assign({},z(),e()):z()},v=function(){return!(Q().isSelected===void 0||!Q().selectionStyle||Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},x=function(){return(_.$C(Q().rendererContext)||
D)&&!v()},m={},y=_.Qe("yt-list-item-view-model-wiz__container",(m["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.$C(Q().rendererContext)||v()},m["yt-list-item-view-model-wiz__container--compact"]=R,m["yt-list-item-view-model-wiz__container--in-popup"]=O,m["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(X==null?void 0:X())&&v()},m)),H=function(){return Q().leadingImage||Q().leadingAccessory},q=_.Qe("yt-list-item-view-model-wiz__image-container",
function(){return H()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
m=_.ol(function(O8){return void(D==null?void 0:D(O8))});
var b=_.abw(),V=_.S(_.kE(!1,void 0,"iQppzc")),E=V.next().value,L=V.next().value,z8={data:Q,hideSelectionTextChevron:Z,TrailingAccessory:N,isToggled:M,disabled:B,isSelectItem:v,isCompact:R,inPopup:O,disableHorizontalPadding:X,isTappableWithoutSelect:x};N={};return _.T("yt-list-item-view-model",{el:_.zL(_.uE(function(){return Q().rendererContext}),D_8(function(){return x==null?void 0:x()},{focusin:function(){var O8;
((O8=_.JF().resolve(_.zw(_.OQ)))==null?0:O8.isKeyBoardInUse())&&L(!0)},
focusout:function(){L(!1)}})),
class:_.Qe("yt-list-item-view-model-wiz",(N["yt-list-item-view-model-wiz--is-overlay"]=l,N["yt-list-item-view-model-wiz--keyboard-focused"]=E,N)),role:function(){return(J==null?0:J())?"menuitem":"listitem"},
tabindex:function(){var O8=x();return D||O8?0:void 0},
"on:keydown":b,"on:click":m},_.T(_.I,{cond:v,then:function(){return _.T(_.tg,null,_.T(_.w3,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.T(yIg,{labelRenderable:function(){return _.T(KL,Object.assign({},z8))},
isCompact:R,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:y,selectElementClass:q,disableHorizontalPadding:X})}),_.T(_.w3,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.T(_.$O,{labelRenderable:function(){return _.T(KL,Object.assign({},z8))},
isCompact:R,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:y,selectElementClass:q})}),_.T(_.w3,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.T(_.$O,{labelRenderable:function(){return _.T(KL,Object.assign({},z8))},
isCompact:R,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:y,selectElementClass:q,useCheckIcon:!0})}),_.T(_.xy,null,function(){return _.T(KL,Object.assign({},z8))}))},
else:function(){return _.T(KL,Object.assign({},z8))}}))},"Sc");
_.uI.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.cIV=_.Mf(function(M){var z=M.data;var J=M.onTap;var R=M.onSwitch;var D=M.overrideDisabled;M=M.disableHorizontalPadding;var N=_.S(_.eh(function(){var e;return((e=Llo(l()))==null?void 0:e.switchedOnByDefault)||!1})),Z=N.next().value,B=N.next().value;
N=_.S(_.kE(!1,void 0,"ZHBkbb"));var O=N.next().value,X=N.next().value,l=function(){var e;if(!(e=z().switchButton)){var Q=z();e=D==null?void 0:D();Q={switchOnCommand:Q.switchOnCommand,switchOffCommand:Q.switchOffCommand,switchedOnByDefault:Q.switchedOnByDefault,isDisabled:Q.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:Q.a11yLabelSwitchedOn,a11yLabelSwitchedOff:Q.a11yLabelSwitchedOff};e!==void 0&&(Q.isDisabled=e);e={switchButtonViewModel:Q}}return e};
return _.T("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.T(_.uI,{data:function(){return{title:z().title,subtitle:z().attributedSubtitle,leadingImage:z().leadingImage,leadingAccessory:z().leadingAccessory,isDisabled:z().isDisabled}},
onTap:function(e){var Q=Llo(l());!Q||Q.isDisabled||z().ignoreTapUntilCommandCompletes&&O()||(J==null||J(e),EUw(Q,Z(),e,z().ignoreTapUntilCommandCompletes,X),B(!Z()),R==null||R(Z()))},
trailingAccessory:function(){return _.T(_.t_,{data:l},{switchButtonViewModel:function(e){return _.T(gXa,{data:e.data,parentActive:Z,handleOnTapEventInParent:!!J})}})},
disableHorizontalPadding:M}))},"Tc");var dW2=_.Mf(function(M){var z=_.S(_.eh(function(){var D,N;return!!((D=M.data())==null?0:(N=D.initialState)==null?0:N.isToggled)})),J=z.next().value,R=z.next().value;
z=_.ol(function(){R(!J())});
return _.T("toggleable-list-item-view-model",{el:_.zL(_.uE(function(){return M.data().rendererContext})),
class:_.Qe("toggleableListItemViewModelHost",M.className),"on:click":z},_.T(_.I,{cond:function(){if(J()){var D=M.data().toggledListItem;D=_.G(D,_.YC)}else D=M.data().defaultListItem,D=_.G(D,_.YC);return D},
then:function(D){return _.T(_.uI,{data:D,isToggled:J,ariaLabel:function(){var N=J()?M.data().toggledListItem:M.data().defaultListItem,Z;N=(Z=_.G(N,_.YC))==null?void 0:Z.rendererContext;var B;return(B=_.G(N,_.pM))==null?void 0:B.label},
ariaPressed:function(){return J()}})}}))},"Uc");var KCV=_.e9("DOWNLOAD",{},"Download"),$WV=_.e9("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),uXt=_.e9("RETRY",{},"Retry"),qM2=_.e9("PAUSE_DOWNLOADING",{},"Pause downloading"),WCV=_.e9("RESUME_DOWNLOAD",{},"Resume download"),Aqc={text:KCV,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},j4={text:$WV,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},bbY={text:uXt,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ibp={text:qM2,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},C88={text:WCV,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var aMa=_.Mf(function(M){var z=function(){var B=M.data();B=_.dZ(B.rendererContext);var O;return(O=_.G(B,_.lE))==null?void 0:O.videoId},J=_.d4(function(B){var O=z(),X=zae(M.data());
return O?_.KD(B,O):X?_.$f(B,X):"TRANSFER_STATE_UNKNOWN"}),R=_.U3(_.B_3,z),D=_.d4(function(B){return _.Rye(B,z(),zae(M.data()))}),N=function(){return MVn(J(),R(),_.dZ(M.data().rendererContext),!!zae(M.data()))},Z=function(){return D()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.T("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Z},_.T(_.I,{cond:function(){return!Z()},
then:function(){return _.T(_.I,{cond:N,then:function(B){return _.T(_.G4,{each:B},function(O){return _.T(_.uI,{data:O,isCompact:M.isCompact,isMenuItem:M.isMenuItem,inPopup:M.inPopup,disableHorizontalPadding:M.disableHorizontalPadding})})}})}}))},"Vc");
aMa.idomCompat=!0;_.VSQ=_.Mf(function(M){var z=M.data;var J=M.isCompact;var R=M.hideSelectionTextChevron;var D=M.inPopup;var N=M.isOverlay;var Z=M.disableHorizontalPadding;var B=function(){return JRc(z())&&(D==null?void 0:D())};
M={};return _.T("yt-list-view-model",{class:_.Qe("yt-list-view-model-wiz",(M["yt-list-view-model-wiz--kaios-spat-nav"]=X_w&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",M["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return NOo(z())},M)),
role:function(){return B()?"menu":"list"},
style:_.UN({"max-height":function(){var O,X=(O=z())==null?void 0:O.visibleElementCount;if(X)return NOo(z())?(X+.5)*48+"px":(X+.5)*40+"px"}})},_.T(_.t_,{data:function(){return z().listItems}},{listItemViewModel:function(O){return _.T(_.uI,{data:O.data,
isMenuItem:B,isCompact:J,hideSelectionTextChevron:R,inPopup:D,isOverlay:N,disableHorizontalPadding:Z})},
toggleableListItemViewModel:function(O){return _.T(dW2,{data:O.data})},
downloadListItemViewModel:function(O){return _.T(aMa,{data:O.data,isMenuItem:B,isCompact:J,inPopup:D,disableHorizontalPadding:Z})},
switchListItemViewModel:function(O){return _.T(_.cIV,{data:O.data,disableHorizontalPadding:Z})}}))},"Wc");
_.VSQ.idomCompat=!0;var EXQ=_.Mf(function(M){var z=M.data;var J=M.isOverlay;M={};return _.T("yt-course-perks-view-model",{class:_.Qe("ytwCoursePerksViewModelHost",(M.ytwCoursePerksViewModelHostOverlay=J,M))},_.T("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T("div",null,_.T(_.I,{cond:function(){return z().perks},
then:function(R){return _.T(_.VSQ,{data:function(){return{listItems:R()}},
isCompact:!0,isOverlay:J})}})))},"Xc");_.N7(EXQ,"yt-course-perks-view-model",{props:{data:_.Dv,isOverlay:_.Dv}});_.N7(_.Mf(function(M){var z=M.data;return _.T("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.T("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.T(_.m3,{text:function(){return z().progressSummary}})),_.T("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.T("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.UN({width:function(){return z().progressPercentage*100+"%"}})})))},"Yc"),"yt-course-progress-view-model",{props:{data:_.zn}});var fMV=_.Mf(function(M){var z={};return _.T("yt-progress-view-model",{class:_.Qe("ytwProgressViewModelHost",(z.ytwProgressViewModelHostOverlay=_.ba(M.isOverlay,!1),z))},_.T(_.I,{cond:function(){return M.data().progressSummary},
then:function(J){return _.T("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.T(_.m3,{text:J}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressContainer"},_.T(_.I,{cond:function(){return M.data().leadingLabel},
then:function(J){return _.T("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.T(_.m3,{text:J}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressBar"},_.T("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(M.data().progressPercentage||0)*100+"%"}}))))},"Zc");var qi=_.Mf(function(M){var z=M.starNumber;var J=M.data;var R=function(){var D;return((D=J())==null?void 0:D.rating)||0};
return _.T(_.I,{cond:function(){return z()},
then:function(D){return _.T(_.tg,null,_.T(_.w3,{when:function(){return R()>=D()-.25}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.vS,{icon:"STAR_FILLED"}))}),_.T(_.w3,{when:function(){return R()>=D()-.75}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.vS,{icon:"STAR_HALF"}))}),_.T(_.xy,null,function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.vS,{icon:"STAR_BORDER"}))}))}})},"$c"),LC$=_.Mf(function(M){M=M.data;
return _.T("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.T(qi,{starNumber:1,data:M}),_.T(qi,{starNumber:2,data:M}),_.T(qi,{starNumber:3,data:M}),_.T(qi,{starNumber:4,data:M}),_.T(qi,{starNumber:5,data:M}))},"ad");_.N7(_.Mf(function(M){var z=_.rH(M,{}).data;return _.T("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.T("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.T(_.m3,{text:function(){var J;return(J=z())==null?void 0:J.title}})),_.T("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.T(_.I,{cond:function(){return z().starProgressViewModels},
then:function(J){return _.T("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.T(_.t_,{data:J},{progressViewModel:fMV}))}}),_.T("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.T("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.T(_.m3,{text:function(){var J;
return(J=z())==null?void 0:J.averageRatingLabel}})),_.T(_.I,{cond:function(){return z().zeroStateText},
then:function(J){return _.T("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.T(_.m3,{text:J}))}}),_.T(_.I,{cond:function(){return z().starRatingViewModel},
then:function(J){return _.T("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.T(_.t_,{data:J},{starRatingViewModel:LC$}))}}),_.T("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.T(_.m3,{text:function(){var J;
return(J=z())==null?void 0:J.totalRatingsCountLabel}})))))},"bd"),"yt-course-ratings-view-model",{props:{data:_.Dv}});var AI2;AI2={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"}};_.i_t=_.Mf(function(M){var z=_.AL("yt-learning-journey-loader-view-model"),J=_.o9();_.FT(function(){requestAnimationFrame(function(){var D;(D=J.lottieEl)==null||D.addEventListener("DOMLoaded",function(){var N;(N=M.onLottieLoaded)==null||N.call(M)})});
var R=M.data().browseEndpoint;R&&_.aE(R)});
return _.T("yt-learning-journey-loader-view-model",{class:_.Qe("learningJourneyLoaderViewModelHost",M.className),"data-target-id":function(){var R;return((R=M.data)==null?void 0:R.call(M).targetId)||""},
el:z},_.T(_.xK,{className:_.Qe("learningJourneyLoaderViewModelLoader",M.className),animationName:function(){return AI2.animationConfig.name},
data:AI2,animationRef:J}))},"cd");_.N7(_.i_t,"yt-learning-journey-loader-view-model",{props:{data:_.zn,className:_.Dv,onLottieLoaded:_.Dv}});var Sin=new Set,PBw=null;var b_k=_.Mf(function(M){var z=null,J=null,R=function(){return M.data()},D=function(){var x=R();
var m=_.JF().resolve(_.zw(_.Ah));x=m!=null&&m()?x.darkThemeColorPalette:x.lightThemeColorPalette;return{primaryTextColor:FB(x,0),secondaryTextColor:FB(x,1),optionColor:FB(x,2),backgroundColor:FB(x,3),videoBackgroundColor:FB(x,4)}},N=function(){return!!D().optionColor},Z=_.S(_.kE(-1,void 0,"FNv5Ne")),B=Z.next().value,O=Z.next().value,X=function(x){return B()===x},l=function(x){return R().correctAnswerIndex===x},e=function(){return B()!==-1},Q=function(){var x=e(),m=B()===R().correctAnswerIndex;
return x?m?264685:264684:264683},v=function(x){return B()===R().correctAnswerIndex&&l(x)};
return _.T("learning-journey-quiz-view-model",{class:_.Qe("learningJourneyQuizViewModelHost",M.className),style:_.UN({background:function(){return D().backgroundColor}})},_.T(_.I,{cond:function(){return!!R().video},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.UN({background:function(){return D().videoBackgroundColor}})},_.T(_.t_,{data:function(){return R().video}},{lockupViewModel:function(x){return _.T(_.Xc,{data:x.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.T("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.T(_.I,{cond:function(){return!!R().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.T(_.m3,{text:function(){return R().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.UN({"align-items":function(){return R().overflowMenu?"start":"center"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.UN({"min-height":function(){return R().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizYoututorText",
el:_.zL(function(x){_.pr(Q(),x,z,function(m){z=m})}),
style:_.UN({color:function(){return D().primaryTextColor}}),
"client-ve-type":Q},_.T(_.m3,{text:function(){return R().questionHeaderText}})))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.zL(function(x){_.pr(264688,x,J,function(m){J=m})}),
style:_.UN({color:function(){return D().secondaryTextColor}}),
"client-ve-type":264688},_.T(_.m3,{text:function(){var x=R();return e()?x.explanationText:x.questionSubheaderText}}))),_.T("div",{class:_.Qe("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.T(_.G4,{each:function(){return R().optionsData||[]}},function(x,m){var y={};
return _.T("div",{class:_.Qe("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(y.learningJourneyQuizViewModelHostQuizHover=function(){return!e()},y.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=N,y.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return e()&&l(m())},y.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return B()!==R().correctAnswerIndex&&X(m())},y)),
"on:click":_.ol(function(){if(e())return!1;O(m());return!1}),
style:_.UN({background:function(){var H=m();return e()&&X(H)?"":N()?D().optionColor:"transparent"}}),
role:"button","aria-disabled":e,"tab-index":"0","client-ve-type":264686},_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.T(_.m3,{text:x.optionText}),_.T(_.I,{cond:function(){var H=m();return e()&&(X(H)||l(H))},
then:function(){return _.T(CC2,{isOptionCorrect:l,optionIndex:m,isOptionSelectedAndCorrect:v,colors:D})}})))}),_.T(_.I,{cond:e,
then:function(){return _.T("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.T("div",{class:"learningJourneyQuizYoututorExplanationText"},_.T(_.m3,{text:function(){return R().explanationHeaderText}})),_.T(_.m3,{text:function(){return R().optionsData[B()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"dd"),CC2=_.Mf(function(M){var z={};
return _.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.Qe("learningJourneyQuizYoututorOptionIconTrailing",(z.learningJourneyQuizViewModelHostQuizPulse=function(){return M.isOptionSelectedAndCorrect(M.optionIndex())},z.learningJourneyQuizYoututorIconIncorrectFill=function(){return!M.isOptionSelectedAndCorrect(M.optionIndex())&&!M.isOptionCorrect(M.optionIndex())},z.learningJourneyQuizYoututorIconCorrectFill=function(){return M.isOptionCorrect(M.optionIndex())},
z))},_.T("path",{d:function(){var J=M.optionIndex();
return M.isOptionCorrect(J)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"ed");
b_k.idomCompat=!0;var rIV;_.MLt=_.Mf(function(M){var z=null,J=null,R=null,D=function(){return M.data()},N=function(){var V=D();
var E=_.JF().resolve(_.zw(_.Ah));V=E!=null&&E()?V.darkThemeColorPalette:V.lightThemeColorPalette;return{primaryTextColor:Y8(V,0),secondaryTextColor:Y8(V,1),optionColor:Y8(V,2),backgroundColor:Y8(V,3),videoBackgroundColor:Y8(V,4)}},Z=function(){return!!N().optionColor},B=_.S(_.kE(-1,void 0,"oGWitb")),O=B.next().value,X=B.next().value,l=function(V){return O()===V},e=function(V){return D().correctAnswerIndex===V},Q=function(){return O()!==-1},v=function(){return O()===D().correctAnswerIndex},x=function(){var V=
D(),E=Q(),L=v();
return E?L?V.successTitle:V.failureTitle:V.questionHeaderText},m=function(){var V=Q(),E=v();
return V?E?264685:264684:264683},y=function(){var V=D();
return Q()?V.explanationText:V.questionSubheaderText},H=function(){return!!D().video},q=function(V){return v()&&e(V)},b=_.ol(function(){X(-1);
return!1});
return _.T(_.I,{cond:function(){return D().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.T(b_k,{data:function(){return D()}})},
else:function(){return _.T("learning-journey-quiz-view-model",{class:_.Qe("learningJourneyQuizViewModelHost",M.className),style:_.UN({background:function(){return N().backgroundColor}})},_.T(_.I,{cond:H,
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.UN({background:function(){return N().videoBackgroundColor}})},_.T(_.t_,{data:function(){return D().video}},{lockupViewModel:function(V){return _.T(_.Xc,{data:V.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.T("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.T(_.I,{cond:function(){return!!D().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.T(_.m3,{text:function(){return D().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.UN({"align-items":function(){return D().overflowMenu?"start":"center"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.UN({"min-height":function(){return D().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.zL(function(V){_.pr(m(),V,z,function(E){z=E})}),
style:_.UN({color:function(){return N().primaryTextColor}}),
"client-ve-type":m},_.T(_.m3,{text:x}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.T(_.I,{cond:Q,then:function(){return _.T("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.zL(function(V){_.pr(264687,V,J,function(E){J=E})}),
"on:click":b,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.UN({fill:function(){return N().primaryTextColor}})},_.T("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.T(_.t_,{data:function(){return D().overflowMenu}},{buttonViewModel:function(V){return _.T(_.lT,{data:V.data})}}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.zL(function(V){_.pr(264688,V,R,function(E){R=E})}),
style:_.UN({color:function(){return N().secondaryTextColor}}),
"client-ve-type":264688},_.T(_.m3,{text:y}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.T(_.G4,{each:function(){return D().optionsData||[]}},function(V,E){var L={};
return _.T("div",{class:_.Qe("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(L.learningJourneyQuizViewModelHostQuizHover=function(){return!Q()},L.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Z,L.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return q(E())},L.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!v()&&l(E())},L.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Q()&&
!l(E())},L)),
"on:click":_.ol(function(){if(Q())return!1;X(E());return!1}),
style:_.UN({background:function(){var z8=E();return Q()&&l(z8)?"":Z()?N().optionColor:"transparent"}}),
role:"button","aria-disabled":Q,"tab-index":"0","client-ve-type":264686},_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.T(_.I,{cond:Q,then:function(){return _.T(rIV,{isOptionCorrect:e,optionIndex:E,isOptionSelectedAndCorrect:q,colors:N})}}),_.T(_.m3,{text:V.optionText})))})))))}})},"fd");
rIV=_.Mf(function(M){var z={};return _.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var J=M.optionIndex();return M.isOptionCorrect(J)?"0 0 24 24":"0 -960 960 960"},
class:_.Qe("learningJourneyQuizViewModelHostQuizOptionIconLeading",(z.learningJourneyQuizViewModelHostQuizPulse=function(){return M.isOptionSelectedAndCorrect(M.optionIndex())},z)),
style:_.UN({fill:function(){return M.colors().primaryTextColor}})},_.T("path",{d:function(){var J=M.optionIndex();
return M.isOptionCorrect(J)?"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"}}))},"gd");
_.MLt.idomCompat=!0;_.N7(_.MLt,"learning-journey-quiz-view-model",{props:{data:_.zn,className:_.zn}});var zRp=_.Mf(function(M){var z=M.data;return _.T("yt-suspense-view-model",{class:_.Qe("ytSuspenseViewModelHost")},_.T(_.t_,{data:function(){var J;return(J=z().config)==null?void 0:J.contents}},{lockupViewModel:_.Xc}))},"hd");var Jft=_.Mf(function(M){var z=_.rH(M,{palette:void 0,isLastItem:!1}),J=z.palette,R=z.isLastItem,D=function(){return M.data().isHighlighted},N=function(){var O;
return k7R((O=J())==null?void 0:O.iconDisabledColor)},Z=function(){var O;
return k7R((O=J())==null?void 0:O.primaryTitleColor)},B=function(){var O;
return k7R((O=J())==null?void 0:O.secondaryTitleColor)};
z={};return _.T("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.zL(_.uE(function(){return M.data().rendererContext}))},_.T(_.t_,{data:function(){return M.data().thumbnail}},{thumbnailViewModel:_.NL}),_.T("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.T("div",{class:_.Qe("ytMacroMarkerListItemViewModelTimeDescription",(z.ytMacroMarkerListItemViewModelHighlighted=D,z)),
style:_.UN({"background-color":function(){return D()?Z():N()},
color:function(){return D()?"":B()}})},_.T(_.m3,{text:function(){return M.data().timestamp}})),_.T("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.UN({"background-color":function(){return R()?"transparent":N()}})}),_.T("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(D()?Z():B())}},_.T(_.m3,{text:function(){return M.data().title}}))))},"id");_.WB=_.Mf(function(M){function z(Nb){q("transform:translateX("+(_.HW("HTML_DIR")==="rtl"?"":"-")+Nb+"px)")}
function J(Nb){return Math.min(Math.max(Nb,0),H()-z8())}
function R(){var Nb=E()+te();return D()?(Math.round(z8()/Nb)||1)*Nb:0}
var D=function(){return M.data().items||[]},N=function(){return M.data().previousButton},Z=function(){return M.data().nextButton},B=function(){var Nb,MB;
return(MB=(Nb=M.disableArrows)==null?void 0:Nb.call(M))!=null?MB:!1},O=function(){var Nb;
return!((Nb=M.forceNarrowLayout)==null||!Nb.call(M))},X=_.o4(function(){var Nb;
return!((Nb=M.centerAlignItems)==null||!Nb.call(M))&&H()<=z8()},void 0,"DL81uf"),l=_.AL("horizontal-shelf-view-model"),e=_.AL("div"),Q=_.S(_.kE(0,void 0,"xZFppf")),v=Q.next().value,x=Q.next().value;
Q=_.S(_.kE(0,void 0,"pH9gvd"));var m=Q.next().value,y=Q.next().value,H=m;m=_.S(_.kE("",void 0,"oYcWy"));Q=m.next().value;var q=m.next().value;m=_.S(_.kE(0,void 0,"lI6NJb"));var b=m.next().value,V=m.next().value,E=b;m=_.S(_.kE(0,void 0,"yPqhW"));b=m.next().value;var L=m.next().value,z8=b;m=_.S(_.kE(!1,void 0,"u4CvOe"));var O8=m.next().value,I3=m.next().value;m=_.S(_.kE(0,void 0,"oQOBbe"));b=m.next().value;var vY=m.next().value,te=b;m=_.S(_.kE(0,void 0,"fCqgxd"));var wR=m.next().value,qb=m.next().value;
m=_.S(_.kE("50%",void 0,"kjP5ke"));var cY=m.next().value,Pu=m.next().value,yV=function(){var Nb,MB=(Nb=M.data())==null?void 0:Nb.responsiveContainerConfiguration,vu,Tc;return MB?aj0(MB==null?void 0:MB.responsiveSize):(Tc=(vu=M.sizing)==null?void 0:vu.call(M))!=null?Tc:"STANDARD"};
m=_.o4(function(){return!B()&&v()>0},void 0,"oVCO3d");
b=_.o4(function(){return!B()&&v()<H()-z8()},void 0,"MQ6Gb");
var Ik=function(){x(J(v()-R()));z(v())},rR=function(){x(J(v()+R()));
z(v())},ea=function(){l.value!==null&&s$()},ok;
_.mF(function(){s$();window.ResizeObserver?(ok=new ResizeObserver(_.j6(ea,0)),ok.observe(l.value)):window.addEventListener("resize",ea)});
_.pq(function(){if(window.ResizeObserver){var Nb;(Nb=ok)==null||Nb.disconnect()}else window.removeEventListener("resize",ea)});
var s$=function(){var Nb=l.value.clientWidth,MB=M.includeMargin!==void 0?M.includeMargin():!1,vu;var Tc=M.hasPeek!==void 0?M.hasPeek():!((vu=M.data())==null||!vu.hasPeek);Nb=_.ff({containerWidth:Nb,hasPeek:Tc,sizing:yV(),marginSettings:MB?O()?4:1:0});vY(Nb.gutter);qb(Nb.margin);V(Nb.itemWidth);I3(Nb.maxContainerWidth<528||O());L(Nb.maxContainerWidth);D()&&y((Nb.itemWidth+Nb.gutter)*D().length-Nb.gutter);if(D()){var Gt;if(((Gt=M.thumbnailAspectRatio)==null?void 0:Gt.call(M))!==void 0){var zc;Pu(E()/
quH((zc=M.thumbnailAspectRatio)==null?void 0:zc.call(M))/2+"px")}else Pu("50%")}},pw={},iJ={};
return _.T("horizontal-shelf-view-model",{class:_.Qe("ytwHorizontalShelfViewModelHost",M.className),el:l},_.T(_.I,{cond:function(){var Nb;return M.data().header&&!((Nb=M.horizontalShelfExperiments)==null?0:Nb.call(M).hideHeader)},
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.UN({width:function(){return z8()+"px"},
padding:function(){return"0 "+wR()+"px"}})},_.T(_.t_,{data:function(){return M.data().header}},{sectionHeaderViewModel:function(Nb){return _.T(_.lI,{data:Nb.data,
disableHorizontalPadding:!0,forceSmallLayout:O8,useResponsiveLayout:!0})}}))}}),_.T("div",{class:_.Qe("ytwHorizontalShelfViewModelOuterContainer",(pw.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return X()},pw)),
style:_.UN({"margin-top":function(){var Nb,MB=M.data().header&&!((Nb=M.horizontalShelfExperiments)==null?0:Nb.call(M).hideHeader),vu;return(((vu=M.ensureMarginTop)==null?0:vu.call(M))&&!MB?12:0)+"px"}})},_.T("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.UN({width:function(){return z8()+"px"},
padding:function(){return"0 "+wR()+"px"},
overflow:function(){return B()?"auto":"hidden"}})},_.T("div",{class:_.Qe("ytwHorizontalShelfViewModelItems",(iJ.ytwHorizontalShelfViewModelCenterAlignItems=function(){return X()},iJ)),
el:e,style:Q},_.T(_.t_,{data:D},{macroMarkerListItemViewModel:function(Nb,MB){return _.T("div",{style:_.UN({width:function(){return E()+"px"},
"margin-right":function(){return(MB()===D().length-1?0:te())+"px"}})},_.T(Jft,{data:Nb.data,
palette:_.ba(M.palette),isLastItem:function(){return MB()===D().length-1}}))},
lockupViewModel:function(Nb,MB){var vu=Nb.data;return _.T("div",{style:_.UN({width:function(){return E()+"px"},
"margin-right":function(){return(MB()===D().length-1?0:te())+"px"}})},_.T(_.Xc,{data:vu,
containerType:4,sizing:yV,protectBackground:M.protectBackground,thumbnailFixedWidth:function(){return BOR(vu())+"px"},
thumbnailTargetWidth:function(){return BOR(vu())}}))},
suspenseViewModel:function(Nb,MB){return _.T("div",{style:_.UN({width:function(){return E()+"px"},
"margin-right":function(){return(MB()===D().length-1?0:te())+"px"}})},_.T(zRp,{data:Nb.data}))}}))),_.T(_.I,{cond:m,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.UN({top:function(){return cY()}})},_.T(_.t_,{data:N},{buttonViewModel:function(Nb){return _.T(_.lT,{data:Nb.data,
onClick:Ik})}}))}}),_.T(_.I,{cond:b,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.UN({top:function(){return cY()}})},_.T(_.t_,{data:Z},{buttonViewModel:function(Nb){return _.T(_.lT,{data:Nb.data,
onClick:rR})}}))}})))},"jd");
_.WB.idomCompat=!0;var RRg=_.Mf(function(M){var z=function(){return M.data().targetId||""},J=function(){var m;
return((m=M.data())==null?void 0:m.expansionEntityKey)||""},R=_.U3(_.$n,J),D=!0,N=function(){var m;
return((m=R())==null?void 0:m.value)===z()},Z=function(m){_.Cd(_.pf("stringEntity",J(),{key:J(),
value:m?z():""}))};
_.FT(function(){D=!1;M.data().isExpanded&&Z(!0)});
var B=function(){if(N()){var m=!0;M.onCollapse!==void 0&&(m=M.onCollapse());m&&Z(!1)}else Z(!0)},O=_.ol(B),X=function(){var m;
return(((m=M.accordionStyle)==null?void 0:m.call(M))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},l=_.AL("div"),e=function(){var m,y;
return(y=(m=_.G(M.data().rendererContext,_.pM))==null?void 0:m.label)!=null?y:""},Q=function(){var m,y;
return{disabled:(m=M.hideIfNotExpanded)==null?void 0:m.call(M),ariaHidden:(y=M.hideIfNotExpanded)==null?void 0:y.call(M)}},v={},x={};
return _.T("yt-accordion-item-view-model",{class:_.Qe("ytAccordionItemViewModelHost",M.className,(v.ytAccordionItemViewModelExpanded=function(){return N()},v.ytAccordionItemViewModelHidden=function(){var m;
return(m=M.hideIfNotExpanded)==null?void 0:m.call(M)},v.ytAccordionItemViewModelMini=X,v)),
"data-target-id":z},_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:"ytAccordionItemViewModelLeftSection","on:click":O,title:e,"aria-hidden":function(){var m;return(m=M.hideIfNotExpanded)==null?void 0:m.call(M)}},_.T(_.m3,{text:function(){return M.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:e})),_.T("div",{class:"ytAccordionItemViewModelRightSection"},_.T(_.t_,{data:function(){return N()?M.data().expandButton:M.data().collapseButton}},{buttonViewModel:function(m){return _.T(_.lT,{data:m.data,
className:"ytAccordionItemViewModelToggleButton",onClick:B,buttonOverrides:Q})}}))),_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:_.Qe("ytAccordionItemViewModelContent",(x.ytAccordionItemViewModelExpandedSubtitle=function(){return N()},x)),
el:l,style:_.UN({"max-height":function(){return D?"auto":N()?l.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!N()}},_.T(_.I,{cond:function(){return!X()},
then:function(){return _.T(_.m3,{text:function(){return M.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.T(_.t_,{data:function(){return M.data().content}},{horizontalShelfViewModel:function(m){return _.T(_.WB,{data:m.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"kd");_.Det=_.Mf(function(M){var z=_.S((0,_.trk)(M.data)).next().value,J=function(){return M.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},R=function(){return J()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},D=_.S(_.kE(!0,void 0,"FVec2e")),N=D.next().value,Z=D.next().value,B=function(){return R()&&N()},O=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Z(!N())}}},X=_.ol(function(){z().onTitleTap&&_.aE(z().onTitleTap||{})});
D={};return _.T("yt-accordion-view-model",{class:_.Qe("ytAccordionViewModelHost",(D.ytAccordionViewModelMinimized=function(){return B()},D)),
"data-target-id":function(){return M.data().targetId||""}},_.T(_.I,{cond:function(){return R()||!!z().title},
then:function(){return _.T("div",{class:"ytAccordionViewModelHeader"},_.T("div",{class:"ytAccordionViewModelTitleSection"},_.T("div",{class:"ytAccordionViewModelTitleWrapper"},_.T(_.I,{cond:function(){return!!M.data().headerIcon},
then:function(){return _.T(_.vS,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var l;return(l=M.data().headerIcon)==null?void 0:l.iconType}})}}),_.T("div",{class:"ytAccordionViewModelTitle",
"on:click":X},_.T(_.m3,{className:"ytAccordionViewModelTitleText",text:function(){return z().title}})))),_.T("div",{class:"ytAccordionViewModelButtonSection"},_.T(_.I,{cond:R,
then:function(){return _.T(_.XC,{data:O,iconName:function(){return B()?"chevron_down":"chevron_collapse"}})}})))}}),_.T("div",{class:"ytAccordionViewModelContent"},_.T(_.t_,{data:function(){return z().contents}},{accordionItemViewModel:function(l){return _.T(RRg,{data:l.data,
className:"ytAccordionViewModelRow",accordionStyle:J,hideIfNotExpanded:B,onCollapse:function(){return R()?(Z(!0),!1):!0}})}})),_.T("div",null,_.T(_.I,{cond:function(){return!R()&&(!!z().disclaimerFooter||!!z().footer)},
then:function(){return _.T("div",{class:"ytAccordionViewModelFooter"},_.T(_.m3,{text:function(){return z().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.T(_.t_,{data:function(){return M.data().footer}},{flexibleActionsViewModel:function(l){return _.T(_.Kx,{data:l.data,
layout:0})}}))}})))},"ld");_.N7(_.Det,"yt-accordion-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=null,J=null,R,D=(R=_.JF().resolve(_.zw(_.Ah)))==null?void 0:R(),N=_.S(_.kE(!1,void 0,"EVXQGb"));R=N.next().value;var Z=N.next().value;N=_.S(_.kE(!0,void 0,"W9FIJf"));var B=N.next().value,O=N.next().value,X=_.AL("textarea",function(y){_.pr(264503,y,z,function(H){z=H})}),l=function(y){Z(!0);
y={learningJourneyFormData:{query:y}};_.aE(M.data().searchEndpoint||{},{form:{formData:y}});return!1},e=_.ol(function(y){y.target.closest("button-view-model")&&Z(!0)});
N=_.ol(function(){O(X.value.value.length===0)});
var Q=_.ol(function(y){if(y.key==="Enter"&&!y.shiftKey&&!B()){var H=y.target;y.preventDefault();l(H.value)}}),v={},x={},m={};
return _.T("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.T("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.T(_.rv,{data:function(){return M.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.T("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.T("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.T("div",{class:_.Qe("ytLearningJourneyZeroStateSearchBar",(v.ytLearningJourneyZeroStateSearchBarDark=D,v))},_.T("textarea",{class:_.Qe("ytLearningJourneyZeroStateTextInput",(x.ytLearningJourneyZeroStateTextInputDark=D,x)),el:X,"on:keyup":N,"on:keydown":Q,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.T("div",{class:_.Qe("ytLearningJourneyZeroStateSearchButtonContainer",(m.ytLearningJourneyZeroStateSearchButtonContainerDark=D,m))},_.T(_.lT,{data:function(){return _.G(M.data().searchButton,_.s3)},
className:"search-button",onClick:function(){return l(X.value.value)},
buttonOverrides:function(){return{disabled:B(),style:D?"mono-inverse":"mono",size:"XL"}}}))),_.T(_.I,{cond:function(){return!!M.data().errorBanner},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.zL(function(y){_.pr(264617,y,J,function(H){J=H})})},_.T(_.t_,{data:function(){return M.data().errorBanner}},{alertBannerViewModel:function(y){return _.T(_.YMJ,{data:y.data,
"client-ve-type":264617})}}))}})),_.T(_.I,{cond:R,
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.T(_.t_,{data:function(){return M.data().loader}},{learningJourneyLoaderViewModel:function(y){return _.T(_.i_t,{data:y.data})}}))},
else:function(){return _.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.T(_.I,{cond:function(){return!!M.data().learningJourneyShelf},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().learningJourneySectionTitle}),_.T(_.t_,{data:function(){return M.data().learningJourneyShelf}},{horizontalShelfViewModel:function(y){return _.T(_.WB,{data:y.data,
centerAlignItems:!0})}}))}}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().suggestedJourneySectionTitle}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":e},_.T(_.t_,{data:function(){return M.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(y){return _.T(_.Kx,{data:y.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"md"),"yt-learning-journey-zero-state",{props:{data:_.zn}});var NYp=_.Mf(function(M){var z=M.data;return _.T("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Qe("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.T(_.m3,{text:function(){var J;return(J=z())==null?void 0:J.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.T(_.t_,{data:function(){return z().actionButton}},{buttonViewModel:function(J){return _.T(_.lT,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:J.data})}}))},"nd");var Pyk=_.Mf(function(M){var z=M.data;return _.T("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Qe("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.T(_.m3,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var J;return(J=z())==null?void 0:J.displayName},
ellipsisTruncate:!0}),_.T(_.t_,{data:function(){return z().badge}},{buttonViewModel:function(J){return _.T(_.lT,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:J.data})}}))},"od");_.N7(_.Mf(function(M){var z=M.data;return _.T("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.T("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.T(_.m3,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var J;return(J=z())==null?void 0:J.rank}})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.T(_.t_,{data:function(){return z().content}},{liveLeaderboardItemChannelContentViewModel:Pyk,
liveLeaderboardItemActionContentViewModel:NYp})),_.T(_.m3,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var J;return(J=z())==null?void 0:J.points}}))},"pd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;return _.T("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.T(_.m3,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var J,R;return(J=z())==null?void 0:(R=J.ranking)==null?void 0:R.rank}}),_.T("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj})),_.T(_.m3,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var J,R;return(J=z())==null?void 0:(R=J.channelContent)==null?void 0:R.channelName}}),_.T(_.m3,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var J;return(J=z())==null?void 0:J.points}}))},"qd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.zn}});var SnV=_.Mf(function(M){M=_.rH(M,{wrapper:!1}).wrapper;return _.T(_.I,{cond:M,then:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.T("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"rd");
SnV.idomCompat=!0;var Z0$=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],kq2=_.Mf(function(M){var z=M.data;var J=_.zL(),R=_.o4(function(){return z().command},void 0,"o6t5Yb");
_.jP(function(){R()&&_.u5(R(),{form:{element:J.value}})},"qIHWLc");
return _.T("div",{el:J,class:"YtQrCodeRendererHostContainer"},_.T(_.I,{cond:function(){return z().qrCodeImage},
then:function(D){return _.T(_.rv,{data:D,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.T(_.I,{cond:function(){return z().spinner},
then:function(){return _.T(SnV,null)}})}}),_.T(_.I,{cond:function(){return z().label},
then:function(D){return _.T(_.m3,{text:D,className:"YtQrCodeRendererHostLabel"})}}),_.T(_.I,{cond:function(){return z().labels},
then:function(D){return _.T("div",{class:"YtQrCodeRendererHostLabels"},_.T(_.G4,{each:D},function(N){return _.T(_.m3,{text:N})}))}}))},"td");_.N7(_.Mf(function(M){var z=M.data;var J=_.o4(function(){return z().qrEntityKey},void 0,"joYCxd"),R=_.o4(function(){return z().deleteEntityOnDismiss},void 0,"x3yAde"),D=_.o4(function(){return z().command},void 0,"dJe1Re"),N=_.U3(HAp,J);
M=_.o4(function(){return z().qrCodeImage},void 0,"qM5dZe");
var Z=_.o4(function(){return z().style&&Z0$.includes(z().style)},void 0,"CaNEkf"),B=_.J1({visibilityCallback:function(O){O&&D()&&_.u5(D())},
showOption:{calledOnce:!0,state:"visible"}});_.mF(function(){_.pq(function(){R()&&J()&&_.ia().dispatch(_.pf("qrCodeEntity",J()))})});
return _.T("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.zL(B)},_.T(_.I,{cond:Z,then:function(){return _.T(_.I,{cond:N,then:function(O){return _.T(kq2,{data:O})}})}}),_.T(_.I,{cond:M,
then:function(O){return _.T(_.rv,{data:O,alt:""})}}))},"sd"),"yt-qr-code-renderer",{props:{data:_.zn}});_.BYB=_.Mf(function(M){var z=M.data;var J=M.topbarOffset;var R,D=((R=_.JF().resolve(_.zw(_.Ah)))==null?void 0:R())||!1;return _.T("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var N=z();var Z,B,O=D?(Z=N.config)==null?void 0:Z.darkThemeBackgroundColor:(B=N.config)==null?void 0:B.lightThemeBackgroundColor;N=O?_.u7(O):void 0;N="background-color: "+N+";";J!==void 0&&(N+="top: -"+J()+"px;");return N},
"aria-hidden":!0},_.T(_.I,{cond:function(){var N,Z,B;return!!((N=z().backgroundImageConfig)==null?0:(Z=N.image)==null?0:(B=Z.sources)==null?0:B.length)},
then:function(){return _.T(_.rv,{data:function(){var N;return(N=z().backgroundImageConfig)==null?void 0:N.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.T("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+O$b(D,z().gradientColorConfig)+";"}}))},"ud");
_.BYB.idomCompat=!0;var aM=_.Mf(function(M){var z=M.className;var J=M.data;var R=M.isOverlay;var D=M.maxLinesOverride;var N=M.useMediumText;var Z=function(){return J().alwaysShowTruncationText},B=function(){return J().truncationText},O=function(){return N!==void 0&&N()?"medium":"small"},X=function(){return R!==void 0&&R()?"overlay":"default"},l=function(){var x,m;
return(m=(x=_.G(J().rendererContext,_.pM))==null?void 0:x.label)!=null?m:""};
M=_.S(_.kE(!1,void 0,"xVwzHf"));var e=M.next().value,Q=M.next().value;M=_.ol(function(){J().expandOnTap&&Q(!e());return!1});
var v={};return _.T("yt-description-preview-view-model",{el:_.zL(_.uE(function(){return J().rendererContext})),
class:_.Qe("yt-description-preview-view-model-wiz",z,(v["yt-description-preview-view-model-wiz--clickable"]=function(){var x;return!((x=_.G(J().rendererContext,zHe))==null||!x.onTap)},v["yt-description-preview-view-model-wiz--is-overlay"]=R,v)),
"on:click":M},_.T(_.I,{cond:function(){return J().description},
then:function(x){return _.T(_.I,{cond:e,then:function(){var m={};return _.T("div",{class:_.Qe("yt-description-preview-view-model-wiz__description",(m["yt-description-preview-view-model-wiz__description--medium-text"]=N,m))},_.T(_.m3,{text:x}))},
else:function(){return _.T(tw2,{text:x,alwaysShowTruncationText:Z,truncationText:B,maxLines:function(){var m;return(m=D==null?void 0:D())!=null?m:J().maxLines},
textStyle:X,accessibilityLabel:l,textSize:O})}})}}))},"vd");
aM.idomCompat=!0;var O0S=_.Mf(function(M){var z=M.data;var J=M.isOverlay;return _.T("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.T("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.T(_.t_,{data:function(){return z().header}},{sectionHeaderViewModel:function(R){return _.T(_.lI,{data:R.data,
isOverlay:J})}})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.T(_.t_,{data:function(){return z().channelInfoButtons}},{flexibleActionsViewModel:_.Kx})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.T(_.t_,{data:function(){return z().description}},{descriptionPreviewViewModel:function(R){return _.T(aM,{data:R.data,
isOverlay:J})}})))},"wd");
O0S.idomCompat=!0;var TYS=_.Mf(function(M){var z=M.data;var J={};return _.T("factoid-view-model",{class:_.Qe("ytwFactoidViewModelHost",(J.ytwFactoidViewModelHostOverlay=M.isOverlay,J))},_.T(_.m3,{text:function(){return z().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.T(_.m3,{text:function(){return z().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"xd");
TYS.idomCompat=!0;var IlV=_.Mf(function(M){var z=M.data;var J=M.isOverlay;return _.T("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.T(_.t_,{data:function(){return z().factoids}},{factoidViewModel:function(R){return _.T(TYS,{data:R.data,
isOverlay:J})}}))},"yd");
IlV.idomCompat=!0;_.owV=_.Mf(function(M){var z=M.data;var J=M.isOverlay;return _.T("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.T(_.t_,{data:function(){return z().items}},{channelInfoViewModel:function(R){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(O0S,{data:R.data,
isOverlay:J}))},
coursePerksViewModel:function(R){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(EXQ,{data:R.data,isOverlay:J}))},
descriptionPreviewViewModel:function(R){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(aM,{data:R.data,isOverlay:J}))},
factoidsRowViewModel:function(R){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(IlV,{data:R.data,isOverlay:J}))},
progressViewModel:function(R){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(fMV,{data:R.data,isOverlay:J}))}}))},"zd");var XOt=_.Mf(function(M){return _.T("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.T(_.t_,{data:function(){return M.data().content}},{courseMetadataViewModel:function(z){return _.T(_.owV,{data:z.data,
isOverlay:M.isOverlay})},
progressViewModel:function(z){return _.T(fMV,{data:z.data})}}))},"Ad");var llg=_.Mf(function(M){var z=M.data;M=M.className;var J=function(){var D;return _.$C((D=z())==null?void 0:D.rendererContext)},R={};
R=(R["dynamic-text-view-model-wiz"]=!0,R["dynamic-text-view-model-wiz--tappable"]=function(){return J()},R);
return _.T("yt-dynamic-text-view-model",{el:_.zL(_.uE(function(){var D;return(D=z())==null?void 0:D.rendererContext})),
role:function(){return J()?"link":void 0},
tabindex:function(){return J()?0:void 0},
class:_.Qe(M,R)},_.T("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var D,N,Z;return(Z=(N=_.G((D=z())==null?void 0:D.rendererContext,_.pM))==null?void 0:N.label)!=null?Z:""}},_.T(_.m3,{text:function(){return z().text},
userInput:!0})))},"Bd");
llg.idomCompat=!0;_.VI=_.Mf(function(M){var z=M.data;var J=M.isPositionRelative;var R=_.IYe("(max-width: 527.9px)"),D=function(){var N,Z;return(Z=(N=z())==null?void 0:N.style)!=null?Z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
M={};return _.T("yt-image-banner-view-model",{el:_.zL(_.uE(function(){var N;return(N=z())==null?void 0:N.rendererContext})),
class:_.Qe((M["yt-image-banner-view-model-wiz"]=!0,M["yt-image-banner-view-model-wiz--inset"]=function(){return oL3(D())},M["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.YE(!0)&&!(J==null?0:J())},M["yt-image-banner-view-model-wiz--small-inset"]=function(){return oL3(D())&&R()},M["yt-image-banner-view-model-wiz--tappable"]=function(){var N;
return _.$C((N=z())==null?void 0:N.rendererContext)},M))},_.T(_.I,{cond:function(){var N;
return(N=z())==null?void 0:N.image},
then:function(){return _.T(_.rv,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.T(_.t_,{data:function(){var N;
return(N=z())==null?void 0:N.overlays}},{thumbnailHoverOverlayViewModel:c8}))},"Cd");
_.VI.idomCompat=!0;var eRu;eRu=_.Mf(function(M){var z=M.condition;var J=M.content;return _.T(_.I,{cond:z,then:function(){return _.T("div",{class:"page-header-view-model-wiz__scroll-container"},J())},
else:function(){return J()}})},"Dd");
_.QW2=_.Mf(function(M){var z=M.data;var J=M.noPadding;var R=M.enableBanner;var D=M.cinematicContainerTopbarOffset;var N=M.allowCinematicContainerOverflow;var Z=M.displayAsSidebar;var B=M.displayAsPanel;var O=M.alwaysUseMediumTextDescription;var X=Xzn(),l=function(){return!!z().image||!!z().animatedImage},e=function(){return!!z().background},Q=function(){return(Z==null?0:Z())||(B==null?0:B())?1:X()},v=function(){return Q()===1},x=function(){return v()||Q()===2},m=function(){return Q()===4},y=function(){var wR=
z();
var qb=!!z().heroImage;var cY=Q(),Pu=lYn(z()),yV=Z==null?void 0:Z(),Ik=!wR.metadata,rR;if(rR=qb?_.G(wR.heroImage,xJt):_.G(wR.animatedImage||wR.image,xJt)){wR=rR.style;var ea=rR.layoutMode;if(ea!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(rR=DFG(R6G(rR)),qb)qb=TO8(cY,wR,ea,rR,yV);else b:if(Ik)qb=cY===1?{size:48}:{size:72};else switch(cY){case 1:qb={size:72};break b;case 2:qb={size:120};break b;default:qb=Pu<4?{size:120}:{size:160}}else qb=void 0}else qb={size:0};return qb};
M={};M=_.Qe((M["page-header-view-model-wiz"]=!0,M["page-header-view-model-wiz--no-padding"]=function(){return!(J==null||!J())},M["page-header-view-model-wiz--small-top-padding"]=function(){return v()&&!z().actions&&!(B==null?0:B())||Q()===2&&!(l()||z().heroImage)},M["page-header-view-model-wiz--small-bottom-padding"]=function(){return x()&&!z().actions&&!(B==null?0:B())},M["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(N==null?0:N())},M["page-header-view-model-wiz--display-as-sidebar"]=
Z,M));
var H={},q=_.Qe((H["page-header-view-model-wiz__page-header-headline"]=!0,H["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var wR;return(wR=y())==null?void 0:wR.allowFullWidth},H)),b=function(){var wR;
return x()&&!((wR=y())==null?0:wR.allowFullWidth)},V=function(){return v()&&(!!z().heroImage||l())&&lYn(z())>0},E=function(){return V()&&(B==null?void 0:B())};
H={};var L=_.Qe((H["page-header-view-model-wiz__page-header-title"]=!0,H["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!V()},H["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return V()&&!E()},H["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=E,H["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=e,H));
H={};var z8=_.Qe((H["page-header-view-model-wiz__page-header-headline-image"]=!0,H["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!z().heroImage&&x()},H));
H={};var O8=_.Qe((H["page-header-view-model-wiz__page-header-banner-container"]=R,H["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var wR;return(R==null?void 0:R())&&((wR=_.G(z().banner,_.jVV))==null?void 0:wR.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},H));
H={};var I3=_.Qe((H["page-header-view-model-wiz__page-header-content-metadata"]=!0,H["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=e,H));H={};var vY=_.Qe((H["page-header-view-model-wiz__page-header-flexible-actions"]=!0,H["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!z().metadata||x()},H["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!x()},H));
H={};var te=_.Qe((H["page-header-view-model-wiz__page-header-attribution"]=!0,H["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=e,H));return _.T("yt-page-header-view-model",{class:M},_.T(_.I,{cond:e,then:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-background"},_.T(_.t_,{data:function(){return z().background}},{cinematicContainerViewModel:function(wR){return _.T(_.BYB,{data:wR.data,
topbarOffset:D})}}))}}),_.T(eRu,{condition:function(){return!(Z==null||!Z())},
content:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-content"},_.T(_.I,{cond:function(){return(R==null?void 0:R())&&z().banner},
then:function(){return _.T("div",{class:O8},_.T(_.t_,{data:function(){return z().banner}},{imageBannerViewModel:_.VI}))}}),_.T("div",{class:q},_.T(_.I,{cond:l,
then:function(){return _.T(_.t_,{data:function(){var wR;if(!(wR=z().animatedImage)){wR=z();if(l()){var qb=wR=Object.assign({},wR),cY=Q(),Pu=lYn(z()),yV=qb.image,Ik=_.G(yV,txV),rR=Ik==null?void 0:Ik.avatar,ea=_.G(rR,_.q6);if(yV&&rR&&ea){switch(cY){case 1:ea.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ea.avatarImageSize="AVATAR_SIZE_XXL";break;default:Pu<4?ea.avatarImageSize="AVATAR_SIZE_XXL":ea.avatarImageSize="AVATAR_SIZE_XXXL"}_.U("web_enable_sink_page_header_view_model")&&(_.hh(rR,_.q6,Object.assign({},
ea)),Ik.avatar=Object.assign({},rR),_.hh(yV,txV,Object.assign({},Ik)),qb.image=Object.assign({},yV))}}wR=wR.image}return wR}},{contentPreviewImageViewModel:function(wR){return _.T(_.BC,{data:wR.data,
className:z8,imageSizeConfig:y})},
decoratedAvatarViewModel:function(wR){return _.T(_.Km,{data:wR.data,className:z8})}})}}),_.T(_.I,{cond:function(){return!!z().heroImage&&!b()},
then:function(){return _.T(_.t_,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(wR){return _.T(_.BC,{data:wR.data,
className:z8,imageSizeConfig:y})}})}}),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.I,{cond:function(){return!!z().heroImage&&b()},
then:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.T(_.t_,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(wR){return _.T(_.BC,{data:wR.data,
className:z8,imageSizeConfig:y})}}))}}),_.T(_.t_,{data:function(){return z().title}},{dynamicTextViewModel:function(wR){return _.T(llg,{data:wR.data,
className:L})}}),_.T(_.t_,{data:function(){return z().metadata}},{contentMetadataViewModel:function(wR){return _.T(_.Oz,{data:wR.data,
layout:function(){return v()?1:0},
className:I3,isOverlay:e,useMediumText:m})}}),_.T(_.I,{cond:function(){return z().description&&!v()},
then:function(){return _.T(_.t_,{data:function(){return z().description}},{descriptionPreviewViewModel:function(wR){return _.T(aM,{data:wR.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:e,maxLinesOverride:function(){return v()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||m()}})}})}}),_.T(_.I,{cond:function(){return z().attribution&&!x()},
then:function(){return _.T(_.t_,{data:function(){return z().attribution}},{attributionViewModel:function(wR){return _.T(klt,{data:wR.data,
className:te,useMediumText:m})}})}}),_.T(_.I,{cond:function(){return z().actions&&!x()},
then:function(){return _.T(_.t_,{data:function(){return z().actions}},{flexibleActionsViewModel:function(wR){return _.T(_.Kx,{data:wR.data,
layout:function(){return eap(Q())},
className:vY})}})}}))),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.I,{cond:function(){return z().description&&v()},
then:function(){return _.T(_.t_,{data:function(){return z().description}},{descriptionPreviewViewModel:function(wR){return _.T(aM,{data:wR.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:e,maxLinesOverride:function(){return v()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||m()}})}})}}),_.T(_.I,{cond:function(){return z().attribution&&x()},
then:function(){return _.T(_.t_,{data:function(){return z().attribution}},{attributionViewModel:function(wR){return _.T(klt,{data:wR.data,
className:te,useMediumText:m})}})}}),_.T(_.I,{cond:function(){return z().actions&&x()},
then:function(){return _.T(_.t_,{data:function(){return z().actions}},{flexibleActionsViewModel:function(wR){return _.T(_.Kx,{data:wR.data,
layout:function(){return eap(Q())},
className:vY})}})}})),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.t_,{data:function(){return z().bottomMetadataFlexibleContainer}},{flexibleContainer:function(wR){return _.T(XOt,{data:wR.data,
isOverlay:e})}})))}}))},"Ed");
_.QW2.idomCompat=!0;_.N7(_.Mf(function(M){var z=_.S(_.kE(!1,void 0,"j5qbkc")),J=z.next().value,R=z.next().value;return _.T("yt-official-card-view-model",{class:_.Qe("ytOfficialCardViewModelHost",M.className),style:_.UN({"background-color":function(){var D,N=wrw((D=M.data())==null?void 0:D.backgroundColor);return N?_.qG(N):void 0}})},_.T(_.t_,{data:function(){return M.data().header}},{pageHeaderViewModel:function(D){return _.T(_.QW2,{data:D.data,
noPadding:!0})}}),_.T(_.t_,{data:function(){return M.data().contents}},{horizontalShelfViewModel:function(D){return _.T(_.WB,{data:D.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.T(_.I,{cond:J,
then:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandedContent"},_.T(_.t_,{data:function(){return M.data().expandedContents}},{horizontalShelfViewModel:function(D){return _.T(_.WB,{data:D.data,
sizing:"MINI"})}}),_.T("div",{class:"ytOfficialCardViewModelCollapseButton"},_.T(_.t_,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
onClick:function(){R(!J())}})}})))},
else:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandButton"},_.T(_.t_,{data:function(){return M.data().expandButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
onClick:function(){R(!J())}})}}))}}))},"Fd"),"yt-official-card-view-model",{props:{data:_.zn,
className:_.zn}});var Q0w=_.gZ({buttonViewModel:_.lT});_.RO(UQb);var UeV=_.Mf(function(M){var z,J=(z=_.JF().resolve(_.zw(_.Ah)))==null?void 0:z();return _.T("ytw-search-friction-view-model",{class:_.Qe("ytwSearchFrictionViewModelHost",M.className)},_.T("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.T("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.T(_.I,{cond:function(){return J&&M.data().darkThemeImage?M.data().darkThemeImage:M.data().image},
then:function(R){return _.T(_.rv,{data:R,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.T(_.t_,{data:function(){return M.data().overflowMenuButton}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.T(_.m3,{text:function(){return M.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.T(_.G4,{each:function(){return M.data().bodyText||[]}},function(R){return _.T(_.m3,{text:R,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.T(_.t_,{data:function(){return M.data().actions}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.T(_.m3,{text:function(){return M.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.T(_.m3,{text:function(){return M.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Gd"),vw2=_.U("web_enable_sink_search_friction_view_model_ks")?UQb:UeV,Gq2=_.U("web_enable_sink_search_friction_view_model_ks")?_.lP(UQb):UeV;
UeV.idomCompat=!0;_.U("web_enable_sink_search_friction_view_model_ks")?_.Il(vw2,"ytw-search-friction-view-model",{propNames:["data"]}):_.N7(Gq2,"ytw-search-friction-view-model",{props:{data:_.zn,className:_.zn}});_.EW=_.Mf(function(M){var z=_.AL("markdown-div"),J,R=(J=_.JF().resolve(_.zw(_.Ah)))==null?void 0:J();_.jP(function(){var D=z.value;var N=new xBQ,Z=new Map(N.JSC$9268_sanitizerTable.globalAttributePolicies);Z.set("style",{policyAction:4});N.JSC$9268_sanitizerTable=new pQ(N.JSC$9268_sanitizerTable.allowedElements,N.JSC$9268_sanitizerTable.elementPolicies,N.JSC$9268_sanitizerTable.allowedGlobalAttributes,Z,N.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes);var B=["data-time"];if(B===void 0)Z=
new Set(N.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes),Z.add("data-"),N.JSC$9268_sanitizerTable=new pQ(N.JSC$9268_sanitizerTable.allowedElements,N.JSC$9268_sanitizerTable.elementPolicies,N.JSC$9268_sanitizerTable.allowedGlobalAttributes,N.JSC$9268_sanitizerTable.globalAttributePolicies,Z);else{Z=new Set(N.JSC$9268_sanitizerTable.allowedGlobalAttributes);B=_.S(B);for(var O=B.next();!O.done;O=B.next()){O=O.value;if(O.indexOf("data-")!==0)throw Error("ma`"+O);Z.add(O)}N.JSC$9268_sanitizerTable=
new pQ(N.JSC$9268_sanitizerTable.allowedElements,N.JSC$9268_sanitizerTable.elementPolicies,Z,N.JSC$9268_sanitizerTable.globalAttributePolicies,N.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes)}Z=new Set(N.JSC$9268_sanitizerTable.allowedGlobalAttributes);Z.add("class");N.JSC$9268_sanitizerTable=new pQ(N.JSC$9268_sanitizerTable.allowedElements,N.JSC$9268_sanitizerTable.elementPolicies,Z,N.JSC$9268_sanitizerTable.globalAttributePolicies,N.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes);
_.C3(D,_.Qkt(N.build(),G7p(M.text())));wzR(z.value)},"nk5Hce");
J={};return _.T("div",null,_.T("markdown-div",{class:_.Qe("ytwMarkdownDivHost",(J.ytwMarkdownDivDark=R,J.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var D;return((D=M.isSmallText)==null?void 0:D.call(M))||!1},J.ytwMarkdownDivHostWrapCodeBlocks=function(){var D;
return((D=M.wrapCodeBlocks)==null?void 0:D.call(M))||!1},J.ytwMarkdownDivHostEnableDefaultStyling=function(){var D;
return!((D=M.disableDefaultStyling)==null?0:D.call(M))},J)),
el:z}))},"Hd");
_.EW.idomCompat=!0;var wOu=_.Mf(function(M){var z=M.imageData;var J=_.ba(M.isInList,!1),R=function(){return J()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.T("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.T(_.I,{cond:function(){return z().image},
then:function(D){return _.T(_.rv,{data:D,alt:function(){return R().alt},
contentMode:function(){return R().contentMode},
targetWidth:function(){return R().targetWidth},
targetHeight:function(){return R().targetHeight},
className:function(){return R().className}})}}),_.T("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.T("div",{class:_.Qe("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.T(_.m3,{text:function(){return z().title}})),_.T(_.G4,{each:function(){var D;
return(D=z().description)!=null?D:[]}},function(D){return _.T("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.T(fL,{content:D}))})))},"Id"),xeg=_.Mf(function(M){var z=M.list;
var J=function(){var R;return(R=z().items)!=null?R:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelListContent"},_.T(_.I,{cond:function(){return z().title},
then:function(R){return _.T("div",{class:_.Qe("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.T(_.m3,{text:R}))}}),_.T(_.I,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.T("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.T(_.G4,{each:J},function(R){return _.T("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.T(fL,{content:R,isInList:!0}))}))}}),_.T(_.I,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.T("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.T(_.G4,{each:J},function(R){return _.T("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.T(fL,{content:R,isInList:!0}))}))}}),_.T(_.I,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelImageList"},_.T(_.G4,{each:J},function(R){return _.T("div",{class:"ytwGenAiRichTextViewModelListItem"},_.T(fL,{content:R,isInList:!0}))}))}}))},"Jd"),tLJ=_.Mf(function(M){var z=M.table;
return _.T("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.T("thead",null,_.T("tr",null,_.T(_.G4,{each:function(){var J,R;return(R=(J=z().header)==null?void 0:J.cells)!=null?R:[]}},function(J){return _.T("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.T(_.G4,{each:function(){return J.contents}},function(R){return _.T(fL,{content:R})}))}))),_.T("tbody",null,_.T(_.G4,{each:function(){var J;
return(J=z().rows)!=null?J:[]}},function(J){return _.T("tr",null,_.T(_.G4,{each:function(){return J.cells}},function(R){return _.T("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.T(_.G4,{each:function(){return R.contents}},function(D){return _.T(fL,{content:D})}))}))})))},"Kd"),fL=_.Mf(function(M){var z=M.content;
var J=_.ba(M.isInList,!1),R=function(){var D,N;return(N=(D=z().contentBlock)==null?void 0:D.contents)!=null?N:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.T(_.I,{cond:function(){return z().text},
then:function(D){return _.T(_.m3,{className:"ytwGenAiRichTextViewModelText",text:D})}}),_.T(_.I,{cond:function(){return z().image},
then:function(D){return _.T(wOu,{imageData:D,isInList:J})}}),_.T(_.I,{cond:function(){return z().list},
then:function(D){return _.T(xeg,{list:D})}}),_.T(_.I,{cond:function(){return z().contentBlock},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.T(_.G4,{each:R},function(D){return _.T(fL,{content:D,isInList:!1})}))}}),_.T(_.I,{cond:function(){return z().table},
then:function(D){return _.T(tLJ,{table:D})}}))},"Ld"),jW$=_.Mf(function(M){var z={};
z=_.jF("ytwGenAiRichTextViewModelHost",(z.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Sz("search_overview_link_style")),z));return _.T("gen-ai-rich-text-view-model",{class:z},_.T(fL,{content:function(){return M.data().content}}))},"Md");_.pOB=_.Mf(function(M){var z=M.data;var J=function(){var m;return((m=z().loadingUi)!=null?m:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},R=function(){return z().isLoading&&(J()==="UNSPECIFIED"||J()==="GHOST_CARD")},D=function(){return!z().isLoading},N=function(){return!!z().content&&!z().contents},Z=function(){return!!z().contents},B=function(){return!!z().nextQueryButtons},O=function(){return z().isLoading&&J()==="INVISIBLE"},X=function(){var m,y;
return(y=(m=z().headerIcon)==null?void 0:m.iconType)!=null?y:""},l=function(){var m;
return(m=z().content)!=null?m:""},e=function(){return!!z().sourcesSection},Q,v=!((Q=_.JF().resolve(_.zw(_.Ah)))==null||!Q()),x=_.o4(function(){var m=[],y=z().contents;
if(y)for(var H=0;H<y.length;H++){var q=_.G(y&&y[H],cVg);q&&m.push(q)}return m},void 0,"ycU97e");
_.mF(function(){z().isLoading||_.hd("so_re",void 0,"search_overview_answer")});
return _.T("ytd-overview-answer-view-model",{class:function(){var m={};m=(m.ytdOverviewAnswerViewModelHost=!0,m.ytdOverviewAnswerViewModelDarkBackground=v&&!O(),m.ytdOverviewAnswerViewModelLightBackground=!v&&!O(),m);return _.jF(m)}},_.T(_.I,{cond:function(){return!O()},
then:function(){return _.T(_.MH,null,_.T("h2",null,_.T("div",{class:"ytdOverviewAnswerViewModelHeader"},_.T(_.I,{cond:X,then:function(m){return _.T("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.T(_.vS,{icon:m}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.T("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return z().headerText}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.T(_.m3,{text:function(){return z().headerSubtext}}))))),_.T(_.I,{cond:R,
then:function(){return _.T(xQ8,null)}}),_.T(_.I,{cond:D,
then:function(){return _.T(_.MH,null,_.T(_.I,{cond:N,then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelText"},_.T(_.EW,{text:l,isSmallText:!0}))}}),_.T(_.I,{cond:Z,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelRichText"},_.T(_.G4,{each:x},function(m){return _.T(jW$,{data:m})}))}}),_.T(_.I,{cond:B,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.T(_.t_,{data:function(){return z().nextQueryButtons}},{buttonViewModel:function(m){return _.T(_.lT,{data:m.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.WB}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.T("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.T(_.I,{cond:function(){return!!_.G(z().likeButtonViewModel,_.KM)&&!!_.G(z().dislikeButtonViewModel,_.d$)},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.T(_.uA,{data:function(){return _.G(z().likeButtonViewModel,_.KM)},
disableIconAnimation:!0}),_.T(_.$k,{data:function(){return _.G(z().dislikeButtonViewModel,_.d$)}}))}})),_.T(_.I,{cond:function(){var m;
return(m=z().sourcesSection)==null?void 0:m.headerText},
then:function(m){return _.T("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.T(_.m3,{text:m}))}})),_.T(_.I,{cond:e,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelSources"},_.T(_.t_,{data:function(){var m;return(m=z().sourcesSection)==null?void 0:m.sourcesShelf}},{buttonViewModel:_.lT,
horizontalShelfViewModel:function(m){return _.T(_.WB,{data:m.data,includeMargin:!0,hasPeek:!0})}}))}}),_.T(_.I,{cond:function(){return z().disclaimerText},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.T(_.m3,{text:function(){return z().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Nd");var FBa=_.Mf(function(M){var z=M.data;var J=M.active;var R=_.AL("transcript-segment-view-model");_.jP(function(){var D,N,Z,B=((D=_.JF().resolve(_.zw(_.Ah)))==null?0:D())?(N=z())==null?void 0:N.darkThemeColorPalette:(Z=z())==null?void 0:Z.lightThemeColorPalette;B&&(B.additiveBackground&&R.value.style.setProperty("--timestamp-active-background-color",_.qG(B.additiveBackground)),B.textSecondary&&R.value.style.setProperty("--timestamp-active-color",_.u7(B.textSecondary)))},"KHcbwb");
M={};return _.T("transcript-segment-view-model",{class:_.Qe("ytwTranscriptSegmentViewModelHost",(M.ytwTranscriptSegmentViewModelHostActive=J,M.ytwTranscriptSegmentViewModelHostModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),M)),el:R},_.T(_.I,{cond:function(){var D;return(D=z())==null?void 0:D.timestamp},
then:function(D){var N={};return _.T("div",{class:_.Qe("ytwTranscriptSegmentViewModelTimestamp",(N.ytwTranscriptSegmentViewModelTimestampActive=J,N))},D)}}),_.T(_.m3,{text:function(){var D,N,Z;
return(Z=(D=z())==null?void 0:D.attributedText)!=null?Z:{content:(N=z())==null?void 0:N.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Od");var Yn2=_.Mf(function(M){var z=M.data;return _.T("div",{class:"yt-video-attributes-section-view-model__header"},_.T("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return z().headerTitle}),_.T(_.I,{cond:function(){return z().headerSubtitle},
then:function(){return _.T("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return z().headerSubtitle})}}))},"Pd"),mea=_.Mf(function(M){function z(m){return Math.max(Math.min(m,0),X()-B())}
var J=M.data;var R;M=_.AL("div",function(m){var y=function(){l(m.clientWidth)};
y();window.ResizeObserver&&(R=new ResizeObserver(y),R.observe(m))});
var D=_.AL("div",function(m){O(m.scrollWidth)}),N=_.S(_.kE(0,void 0,"Y8rd0c")),Z=N.next().value;
N=N.next().value;var B=Z,O=N;N=_.S(_.kE(0,void 0,"kDvR6b"));Z=N.next().value;N=N.next().value;var X=Z,l=N;Z=_.S(_.kE(0,void 0,"Kit3De"));var e=Z.next().value,Q=Z.next().value;_.pq(function(){var m;(m=R)==null||m.disconnect()});
var v=function(){Q(z(e()+X()))},x=function(){Q(z(e()-X()))};
return _.T("yt-video-attributes-section-view-model",null,_.T("div",{class:"yt-video-attributes-section-view-model"},_.T(_.I,{cond:function(){return J().headerTitle},
then:function(){return _.T(Yn2,{data:J})}}),_.T("div",{class:_.Qe("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:M},_.T("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.UN({transform:function(){var m=e();_.HW("HTML_DIR")==="rtl"&&(m*=-1);return"translateX("+m+"px)"}}),
el:D},_.T(_.t_,{data:function(){return J().videoAttributeViewModels}},{videoAttributeViewModel:FOv}))),_.T(_.t_,{data:function(){return J().footerButton}},{buttonViewModel:function(m){return _.T(_.lT,{data:m.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.T(_.I,{cond:function(){return e()<0&&J().previousButton},
then:function(){return _.T("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.T(_.t_,{data:function(){return J().previousButton}},{buttonViewModel:function(m){return _.T(_.lT,{data:m.data,
onClick:v})}}))}}),_.T(_.I,{cond:function(){return e()>X()-B()&&J().nextButton},
then:function(){return _.T("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.T(_.t_,{data:function(){return J().nextButton}},{buttonViewModel:function(m){return _.T(_.lT,{data:m.data,
onClick:x})}}))}})))},"Qd");
mea.idomCompat=!0;var gwa=_.Mf(function(M){var z=M.data;var J=M.active;var R={},D={};return _.T("timeline-item-view-model",{class:_.Qe("ytwTimelineItemViewModelHost",(R.ytwTimelineItemViewModelHostChapterChild=M.chapterChild,R.ytwTimelineItemViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),R))},_.T("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.T("div",{class:_.Qe("ytwTimelineItemViewModelTimestamp",(D.ytwTimelineItemViewModelTimestampActive=
J,D))},function(){return z().timestamp})),_.T("div",{class:"ytwTimelineItemViewModelContentItems"},_.T(_.t_,{data:function(){return z().contentItems}},{transcriptSegmentViewModel:function(N){return _.T(FBa,{data:N.data,
active:J})},
videoAttributesSectionViewModel:mea})))},"Rd");var sWt=_.Mf(function(M){var z=M.data;M={};return _.T("timeline-chapter-view-model",{class:_.Qe("ytwTimelineChapterViewModelHost")},_.T("div",{class:_.Qe("ytwTimelineChapterViewModelTitle",(M.ytwTimelineChapterViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),M))},function(){return z().title}),_.T(_.t_,{data:function(){return z().contents}},{timelineItemViewModel:function(J){return _.T(gwa,{data:J.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(J){return _.T(mea,{data:J.data})}}))},"Sd");var nwg=_.Mf(function(M){var z=M.data;var J=_.AL("macro-markers-panel-item-view-model"),R=_.U3(_.gao,function(){var N;return(N=z().markersEngagementPanelSyncEntityKey)!=null?N:""}),D=function(){var N;
return((N=R())==null?void 0:N.activeItemIndex)===z().index};
M=_.ol(function(N){var Z,B,O,X,l;return _.k(function(e){if(e.nextAddress==1)return N.stopPropagation(),_.cn(_.Hn(N),J.value,["A".toString(),"BUTTON".toString()])?e.return():(Z=_.$S(z().onTap))?e.yield(_.T_(),2):e.return();B=e.yieldResult;X=(O=_.G(Z,_.Au))==null?void 0:O.startTimeSeconds;X===void 0||(l=B)!=null&&l.seekTo(X,!0);_.UI(e)})});
return _.T("macro-markers-panel-item-view-model",{class:_.Qe("ytwMacroMarkersPanelItemViewModelHost",{"is-active":D}),el:J,"on:click":M,tabindex:0},_.T(_.t_,{data:function(){var N;return(N=z())==null?void 0:N.item}},{timelineChapterViewModel:function(N){return _.T(sWt,{data:N.data,
active:D})},
timelineItemViewModel:function(N){return _.T(gwa,{data:N.data,active:D})},
videoAttributeViewModel:FOv}))},"Td");
nwg.idomCompat=!0;_.N7(nwg,"macro-markers-panel-item-view-model",{props:{data:_.zn}});_.N7(mea,"yt-video-attributes-section-view-model",{props:{data:_.zn}});var hRV=_.Mf(function(M){var z=function(){var J,R,D;return(D=(J=M.data().leadingLogoAccessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)!=null?D:""};
return _.T("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.T(_.I,{cond:function(){return M.data().leadingLogo},
then:function(J){return _.T(_.rv,{className:"ytwFantasySectionHeaderViewModelLogo",data:J,alt:z})}}),_.T("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.T(_.m3,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return M.data().title}}),_.T(_.m3,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return M.data().subtitle}})),_.T(_.t_,{data:function(){return M.data().trailingButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ud");var yfv=_.Mf(function(M){var z={};z=_.Qe("ytwFantasyTeamViewModelHost",(z.ytwFantasyTeamViewModelCompact=function(){var D;return!((D=M.compact)==null||!D.call(M))},z.ytwFantasyTeamViewModelUser=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},z.ytwFantasyTeamViewModelOpponent=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},z));
var J=function(){var D,N,Z;return(Z=(D=M.data().teamLogoAccessibility)==null?void 0:(N=D.accessibilityData)==null?void 0:N.label)!=null?Z:""},R=_.U3(naH,function(){return M.data().teamEntityKey});
return _.T("ytw-fantasy-team-view-model",{class:z},_.T(_.I,{cond:function(){return M.data().teamLogo},
then:function(D){return _.T(_.rv,{className:"ytwFantasyTeamViewModelLogo",data:D,alt:J})}}),_.T("div",{class:"ytwFantasyTeamViewModelMetadata"},_.T("div",{class:"ytwFantasyTeamViewModelHeader"},_.T(_.m3,{className:"ytwFantasyTeamViewModelScore",
text:function(){var D;return(D=R())==null?void 0:D.score}}),_.T(_.vS,{icon:function(){var D;
return(D=R())==null?void 0:D.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.T(_.m3,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var D;return(D=R())==null?void 0:D.projectedScore}})),_.T(_.m3,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return M.data().primaryText}}),_.T(_.m3,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return M.data().secondaryText}}),_.T(_.m3,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return M.data().tertiaryText}})),_.T(_.m3,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var D;return(D=R())==null?void 0:D.score}}))},"Vd");_.N7(_.Mf(function(M){return _.T("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.T("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.T(_.t_,{data:function(){return M.data().summaryHeader}},{fantasySectionHeaderViewModel:hRV})),_.T(_.t_,{data:function(){return M.data().userTeam}},{fantasyTeamViewModel:yfv}),_.T(_.t_,{data:function(){return M.data().opponentTeam}},{fantasyTeamViewModel:yfv}))},"Wd"),"fantasy-league-summary-view-model",{props:{data:_.zn}});var H0S=_.Mf(function(M){var z=_.rH(M,{shape:{},useCustomTabRenderable:!1}),J=z.shape;z=z.useCustomTabRenderable;var R=M.customTabRenderable,D=function(){return J().disabled},N=function(){return J().selected},Z=function(){return J().title},B=function(){return J().icon},O=_.AL("yt-tab-shape");
M=_.ol(function(e){var Q;if(!D()&&((Q=J().aTagConfig)==null?0:Q.onclick))J().aTagConfig.onclick(e);return!1});
var X=_.ol(function(e){if(e.key==="Enter"||e.key==="ArrowUp"||e.key==="ArrowDown")e.preventDefault(),O.value.click();return!1}),l={};
return _.T("yt-tab-shape",{class:_.Qe("yt-tab-shape-wiz",function(){return J().className},(l["yt-tab-shape-wiz__tab--last-tab"]=function(){return J().isLastTab},l["yt-tab-shape-wiz--host-disabled"]=D,l["yt-tab-shape-wiz--host-clickable"]=!R,l)),
role:R?void 0:"tab","aria-selected":N!=null?N:!1,"aria-disabled":D,tabindex:R?void 0:0,"on:click":M,"on:keydown":X,el:O,"tab-identifier":function(){return J().identifier},
"tab-title":Z},_.T(_.I,{cond:z,then:function(){return R()},
else:function(){var e={},Q={};return _.T(_.MH,null,_.T("div",{class:_.Qe("yt-tab-shape-wiz__tab",(e["yt-tab-shape-wiz__tab--tab-selected"]=N,e))},_.T(_.I,{cond:B,then:function(v){return _.T(_.vS,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return v().iconType}})}}),Z),_.T("div",{class:_.Qe("yt-tab-shape-wiz__tab-bar",(Q["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=N,Q))}))}}))},"Xd");
H0S.idomCompat={callbacks:{customTabRenderable:!0}};_.deJ=_.Mf(function(M){var z=M.shape;M=_.S(_.kE(48,void 0,"r9IBlb"));var J=M.next().value,R=M.next().value;M=_.S(_.kE(0,void 0,"Bd7rmd"));var D=M.next().value,N=M.next().value,Z=function(){return z().tabs},B=_.AL("yt-tab-group-shape"),O=function(){var X,l;
return(l=(X=Z())==null?void 0:X.findIndex(function(e){return e.selected}))!=null?l:-1};
_.mF(function(){var X=B.value.querySelectorAll("yt-tab-shape"),l=O()>-1?X[O()]:void 0;_.no.addJob(function(){R((l==null?void 0:l.getBoundingClientRect().width)||0)},8,0)});
_.jP(function(){var X=O(),l=_.no.addJob(function(){var e,Q=((e=B.value)==null?void 0:e.querySelectorAll("yt-tab-shape"))||[],v;R(((v=X>-1?Q[X]:void 0)==null?void 0:v.getBoundingClientRect().width)||0);for(v=e=0;v<X;v++)e+=Q[v].offsetWidth+24;_.HW("HTML_DIR")==="rtl"&&(e=-e);N(e)},8,0);
_.pq(function(){_.no.cancelJob(l)})},"EHixkc");
M={};return _.T("yt-tab-group-shape",{class:_.Qe("yt-tab-group-shape-wiz",(M["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return z().isOverflowHidden},M)),
el:B},_.T(_.I,{cond:Z,then:function(X){return _.T(_.MH,null,_.T("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.T(_.G4,{each:X},function(l,e){return _.T(H0S,{shape:function(){return Object.assign({},l,{isLastTab:e()===X().length-1})},
customTabRenderable:l.customTabRenderable,useCustomTabRenderable:!!l.customTabRenderable})})),_.T(cfk,{width:J,
sliderOffset:D}))}}))},"Yd");
_.deJ.idomCompat=!0;var cfk=_.Mf(function(M){var z=_.ba(M.sliderOffset,0),J=M.width;return _.T("div",{class:"yt-tab-group-shape-wiz__slider",style:_.UN({width:function(){return J()+"px"},
transform:function(){return"translateX("+z()+"px)"}})})},"Zd");var KB2=_.Mf(function(M){var z=function(){var N,Z,B;return(B=(N=M.data().playerLogoAccessibility)==null?void 0:(Z=N.accessibilityData)==null?void 0:Z.label)!=null?B:""},J=_.U3(hZR,function(){return M.data().playerEntityKey}),R={};
R=_.Qe("ytwFantasyPlayerViewModelHost",(R.ytwFantasyPlayerViewModelPlaying=function(){var N;return!((N=J())==null||!N.isPlayerPlaying)},R.ytwFantasyPlayerViewModelOnField=function(){var N;
return((N=J())==null?void 0:N.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},R.ytwFantasyPlayerViewModelRedZone=function(){var N;
return((N=J())==null?void 0:N.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},R));
var D=function(){var N,Z,B,O=((N=_.JF().resolve(_.zw(_.Ah)))==null?0:N())?(Z=M.data().playerLogoBackgroundColor)==null?void 0:Z.darkTheme:(B=M.data().playerLogoBackgroundColor)==null?void 0:B.lightTheme;return O===void 0?"":_.qG(O)};
return _.T("ytw-fantasy-player-view-model",{class:R},_.T(_.I,{cond:function(){return M.data().playerLogo},
then:function(N){return _.T("div",{class:"ytwFantasyPlayerViewModelLogo"},_.T("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.T(_.rv,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.UN({"background-color":D}),data:N,alt:z})),_.T("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.T(_.vS,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.T("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.T("div",{class:"ytwFantasyPlayerViewModelHeader"},_.T(_.m3,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var N;return(N=M.data())==null?void 0:N.playerNameText}}),_.T(_.m3,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var N;return(N=M.data())==null?void 0:N.playerDescriptionText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.m3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=J())==null?void 0:N.gamePeriodText}}),_.T(_.m3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=M.data())==null?void 0:N.opponentTeamText}}),_.T(_.m3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=J())==null?void 0:N.gameStatusText}}),_.T(_.m3,{className:_.Qe("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var N;return(N=J())==null?void 0:N.playerStatusText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.m3,{text:function(){var N;
return(N=J())==null?void 0:N.playerStatsText}}))),_.T(_.m3,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var N;return(N=J())==null?void 0:N.fantasyScore}}))},"$d");var $ea=_.Mf(function(M){return _.T("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.T(_.I,{cond:function(){return M.data().players},
then:function(z){return _.T(_.t_,{data:z},{fantasyPlayerViewModel:KB2})}}))},"ae");var u0v=_.Mf(function(M){var z=_.S(_.eh(function(){var D;return(D=M.data().selectedTabIdentifierKey)!=null?D:""})),J=z.next().value,R=z.next().value;
_.FT(function(){var D;(D=M.setSelectedTabSignal)==null||D.call(M,J)});
return _.T("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.T("div",{class:"ytTabbedViewModelTabGroup"},_.T(_.deJ,{shape:function(){var D=M.data(),N=[],Z={tabs:N};if(!D.tabs)return Z;D=_.S(D.tabs);for(var B=D.next(),O={};!B.done;O={tabViewModel:void 0},B=D.next())if(O.tabViewModel=_.G(B.value,AEB),O.tabViewModel){var X=B=void 0;N.push({aTagConfig:{onclick:function(l){return function(){var e;R((e=l.tabViewModel.tabIdentifier)!=null?e:"")}}(O)},
identifier:O.tabViewModel.tabIdentifier,selected:J()===O.tabViewModel.tabIdentifier,title:(X=(B=O.tabViewModel.title)==null?void 0:B.content)!=null?X:""})}return Z}})),_.T(_.t_,{data:function(){var D,N=_.S((D=M.data().tabs)!=null?D:[]);
for(D=N.next();!D.done;D=N.next())if((D=_.G(D.value,AEB))&&D.tabIdentifier===J())return D.content}},{fantasyRosterViewModel:$ea}))},"be");_.N7(_.Mf(function(M){var z=_.S(tV0()),J=z.next().value,R=z.next().value;return _.T("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.T(_.m3,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return M.data().title}}),_.T(_.I,{cond:function(){return M.data().tabbedViewModel},
then:function(D){return _.T(_.t_,{data:D},{tabbedViewModel:function(N){return _.T(u0v,{data:N.data,setSelectedTabSignal:R})}})}}),_.T(_.I,{cond:function(){var D,N=(D=_.G(M.data().tabbedViewModel,iZJ))==null?void 0:D.tabs;
D=_.G(N==null?void 0:N[0],AEB);N=_.G(N==null?void 0:N[1],AEB);var Z=D==null?void 0:D.tabIdentifier;if(J()===Z){var B,O;if(!((B=_.G(D==null?void 0:D.content,u$g))==null?0:(O=B.players)==null?0:O.length))return M.data().noUserTeamPlayersText}else{var X,l;if(!((X=_.G(N==null?void 0:N.content,u$g))==null?0:(l=X.players)==null?0:l.length))return M.data().noOpponentTeamPlayersText}},
then:function(D){return _.T(_.m3,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:D})}}))},"ce"),"ytw-fantasy-matchup-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){return _.T("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.T(_.m3,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return M.data().title}}),_.T(_.I,{cond:function(){return M.data().matchupTeamPairs},
then:function(z){return _.T(_.G4,{each:z,keyBy:"INDEX"},function(J){return _.T("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.T(_.t_,{data:function(){return[J().firstTeam,J().secondTeam]}},{fantasyTeamViewModel:function(R){return _.T(yfv,{data:R.data,
compact:!0})}}))})}}))},"de"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=function(){var D,N,Z;return(Z=(D=M.data().userLogoAccessibility)==null?void 0:(N=D.accessibilityData)==null?void 0:N.label)!=null?Z:""},J=function(){var D,N,Z;
return(Z=(D=M.data().opponentLogoAccessibility)==null?void 0:(N=D.accessibilityData)==null?void 0:N.label)!=null?Z:""},R=_.U3(spp,function(){return M.data().entityKey});
return _.T("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.T(_.I,{cond:function(){return M.data().userLogo},
then:function(D){return _.T(_.rv,{className:"ytwFantasyWinProbabilityViewModelLogo",data:D,alt:z})}}),_.T("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.T(_.m3,{text:function(){return M.data().title}})),_.T(_.I,{cond:function(){return M.data().opponentLogo},
then:function(D){return _.T(_.rv,{className:"ytwFantasyWinProbabilityViewModelLogo",data:D,alt:J})}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.m3,{text:function(){var D;
return(D=R())==null?void 0:D.userWinNumberLabel}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.T("div",{class:_.Qe("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.UN({flex:function(){var D,N;return(N=(D=R())==null?void 0:D.userWinNumber)!=null?N:50}})}),_.T("div",{class:_.Qe("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.UN({flex:function(){var D,N;return(N=(D=R())==null?void 0:D.opponentWinNumber)!=null?N:50}})})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.m3,{text:function(){var D;
return(D=R())==null?void 0:D.opponentWinNumberLabel}}))))},"ee"),"fantasy-win-probability-view-model",{props:{data:_.zn}});var qnS={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},WBV=_.Mf(function(M){return _.T(_.t_,{data:M.button},{buttonViewModel:function(z){return _.T(_.lT,{data:z.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"fe"),alJ=_.Mf(function(M){return _.T("ytd-backstage-locked-post-view-model",{class:_.Qe("ytdBackstageLockedPostViewModelHost",M.className)},_.T("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.T(_.t_,
{data:function(){return M.data().authorAvatar}},{decoratedAvatarViewModel:_.Km})),_.T("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.T(_.m3,{text:function(){return M.data().authorText}})),_.T("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.T(_.m3,{text:function(){return M.data().publishedTimeText}}),_.T(_.t_,{data:function(){return M.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(z){return _.T(Zg2,
{data:z.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.T("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.T(_.m3,{text:function(){return M.data().contentText}})),_.T(_.tg,null,_.T(_.w3,{when:function(){return M.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.T(_.rv,{data:qnS,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.T(_.m3,{text:function(){return M.data().lockedText}}))}),_.T(_.w3,{when:function(){return M.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.T(_.rv,{data:qnS,
alt:""})),_.T(_.m3,{text:function(){return M.data().lockedText}}))})),_.T("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.T(WBV,{button:function(){return M.data().likeButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return M.data().voteCountA11y}},_.T(_.m3,{text:function(){return M.data().voteCount}})),_.T(WBV,{button:function(){return M.data().dislikeButton}}),_.T(WBV,{button:function(){return M.data().commentButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return M.data().commentCountA11y}},_.T(_.m3,{text:function(){return M.data().commentCount}}))))},"ge");
alJ.idomCompat=!0;_.N7(alJ,"ytd-backstage-locked-post-view-model",{props:{data:_.zn,className:_.zn}});_.nn("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var LL=function(){var M=_.g.apply(this,arguments)||this;M.darkerPanels=_.U("web_watch_darker_panels");M.commentsHidePanelButton=!1;M.isWatchGrid=!1;M.continuationShowButton=!1;M.isSearch=!1;M.isConstrainedList=!1;M.isWatch=!1;M.eligibleToSwitchToGrid=!1;M.useBigThumbs=!1;M.notSticky=!1;M.epRestyle=!1;M.isCarouselInFeed=!0;M.topSpacingZero=!1;M.continuationIsInitialLoad=!0;M.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");
M.mastheadHeight=0;M.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};M.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return M};
_.w(LL,_.g);_.P=LL.prototype;_.P.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||z.forEach(function(J){J.containerType=M})}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",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:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")}}};
_.P.created=function(){};
_.P.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.P.handleIntersect=function(M){this.notSticky=M[0].intersectionRatio===1};
_.P.attached=function(){var M=this;document.addEventListener("scroll",_.ou(this,this.updateHeaderState));var z;this.mastheadHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(J){M.handleIntersect(J)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){document.removeEventListener("scroll",_.ou(this,this.updateHeaderState));var M;(M=this.intersectionObserver)==null||M.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect()};
_.P.updated=function(M){M.has("data")&&this.updateHeaderState()};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(BG2(!this.notSticky))};
_.P.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var M=_.SN(this.hostElement).querySelector("ytd-comments-header-renderer");M&&(M.hidePanelButton=this.commentsHidePanelButton)}};
_.P.onRetrieveLocation=function(M,z){this.containsComments()&&(this.firstCommentsLoaded=z.hasComments=!0)};
_.P.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.P.onLoadReloadContinuation=function(M,z){var J=this;M.stopPropagation();this.isReloading=!0;_.Pv(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(R){var D=_.JF().resolve(_.HP);R=z(R);D.postData(R).then(function(N){J.onReloadContinuationData(N)})}})};
_.P.onReloadContinuationData=function(M){if(M=this.get("response.continuationContents.itemSectionContinuation",M)||this.get("response.contents.itemSectionRenderer",M)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",M)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",M))this.set("data.contents",M.contents||M.results),M.header&&this.set("data.header",M.header),this.set("data.continuations",
M.continuations||[]);this.isReloading=!1};
_.P.computeContentsClass=function(M){return M?"reloading":""};
_.P.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.P.computeSectionIdentifier=function(M){return M==null?void 0:M.sectionIdentifier};
_.P.computeFitContainer=function(M){return(M==null?void 0:M.sectionIdentifier)==="youchat-item-section"};
_.P.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.U("kevlar_disable_comments_auto_load")};
_.P.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.P.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeHasDestinationShelfRenderer=function(M){var z,J;return!!(M==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.destinationShelfRenderer)};
_.P.computeHasSectionGroupViewModel=function(M){var z,J;return!!(M==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.sectionGroupViewModel)};
_.P.computeHasQrCodeRenderer=function(M){var z,J;return!!(M==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.qrCodeRenderer)};
_.P.computeStaticCommentsHeader=function(M){return M&&this.containsComments()};
_.P.computeEpRestyle=function(M){return _.U("web_ep_restyling")&&M&&this.containsComments()};
_.P.computeIsContinuationCommentSection=function(M){return(M==null?void 0:M.targetId)==="shorts-engagement-panel-comments-section"||(M==null?void 0:M.targetId)==="comments-section"||(M==null?void 0:M.targetId)==="engagement-panel-comments-section"};
_.P.computeSuppressPaddingDisclaimer=function(){var M,z,J,R;return!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:(R=J.productListHeaderRenderer)==null?0:R.suppressPaddingDisclaimer)};
_.P.computeHeaderStyle=function(M){switch(M==null?void 0:M.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.P.dataChanged=function(){this.firstCommentsLoaded=!1};
_.P.observeDataContentsLength=function(){var M,z;((M=this.data)==null?0:(z=M.contents)==null?0:z.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.P.onYtDismissibleItemDismissedChange=function(M){this._setItemDismissed(M.type==="yt-dismissible-item-dismissed")};
_.P.triggerContinuations=function(){for(var M=_.SN(this.hostElement).querySelector("#continuations").children,z=0;z<M.length;z++)M[z].trigger()};
_.P.triggerInitialContinuations=function(){for(var M=_.SN(this.hostElement).querySelector("#continuations").children,z=0;z<M.length;z++)M[z].triggerIfNotPreviouslyTriggered()};
_.P.handleYtItemSectionContinuation=function(M,z){var J;z&&((J=this.data)==null?void 0:J.sectionIdentifier)!==z||(this.set("data.continuations",[M]),this.triggerContinuations())};
_.P.handleYtItemSectionReplace=function(M,z){var J;z&&((J=this.data)==null?void 0:J.sectionIdentifier)!==z||(this.set("data.contents",M),this.set("data.continuations",[]))};
_.P.computeUseHeightHack=function(M){return M&&!_.U("kevlar_disable_height_hack")};
_.P.computeTopSpacingZero=function(M){return M};
_.P.continuationShowButtonChanged=function(){var M=_.SN(this.hostElement).querySelector("ytd-continuation-item-renderer");M&&(M.showButton=this.continuationShowButton)};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("data-changed",this.data))};
_.rX.Object.defineProperties(LL.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R,D,N,Z;return!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:(R=J.shelfRenderer)==null?0:(D=R.content)==null?0:(N=D.gridRenderer)==null?0:(Z=N.targetId)==null?0:Z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z[0])==null?0:J.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Sz("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
LL.prototype.dataChangedForBinding=LL.prototype.dataChangedForBinding;LL.prototype.continuationShowButtonChanged=LL.prototype.continuationShowButtonChanged;LL.prototype.onYtDismissibleItemDismissedChange=LL.prototype.onYtDismissibleItemDismissedChange;LL.prototype.observeDataContentsLength=LL.prototype.observeDataContentsLength;LL.prototype.dataChanged=LL.prototype.dataChanged;LL.prototype.onServiceRequestCompleted=LL.prototype.onServiceRequestCompleted;LL.prototype.onLoadReloadContinuation=LL.prototype.onLoadReloadContinuation;
LL.prototype.onRetrieveLocation=LL.prototype.onRetrieveLocation;LL.prototype.commentsHidePanelButtonChanged=LL.prototype.commentsHidePanelButtonChanged;LL.prototype.dispatchChipBarIsSticky=LL.prototype.dispatchChipBarIsSticky;LL.prototype.updateLockupContainerTypes=LL.prototype.updateLockupContainerTypes;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],LL.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],LL.prototype,"ytLazyListBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],LL.prototype,"ytNextContinuationBehavior",void 0);
_.u([_.p(_.AU),_.W("design:type",Object)],LL.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],LL.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],LL.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],LL.prototype,"darkerPanels",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],LL.prototype,"engagementPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"commentsHidePanelButton",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"isWatchGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"continuationShowButton",void 0);_.u([_.Y({computed:"computeIsContinuationCommentSection(data)"}),_.W("design:type",Boolean)],LL.prototype,"continuationIsCommentsSection",void 0);
_.u([_.Y({value:!0}),_.W("design:type",Boolean)],LL.prototype,"autoFill",void 0);_.u([_.Y(),_.W("design:type",Boolean)],LL.prototype,"continuationDisablePrescanVisibility",void 0);_.u([_.Y(),_.W("design:type",Boolean)],LL.prototype,"isReloading",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"isSearch",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"isConstrainedList",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"isWatch",void 0);
_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"eligibleToSwitchToGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"useBigThumbs",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],LL.prototype,"notSticky",void 0);_.u([_.Y({selector:_.cS}),_.W("design:type",Object)],LL.prototype,"isGridViewEnabled",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Object)],LL.prototype,"epRestyle",void 0);_.u([_.F("isWatch"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"hideShortsShelfHeader",null);_.u([_.F("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"thumbnailWidth",null);
_.u([_.F("isSearch","containerWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"thumbnailTargetWidth",null);_.u([_.F("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"sizing",null);_.u([_.F("isWatch","isGridViewEnabled","useBigThumbs","data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],LL.prototype,"lockupContainerType",null);
_.u([_.la("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],LL.prototype,"updateLockupContainerTypes",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],LL.prototype,"pageSubtype",void 0);_.u([_.Y({computed:"computeContainerWidth()"}),_.W("design:type",Number)],LL.prototype,"containerWidth",void 0);_.u([_.Y(),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"isPlaylist",null);
_.u([_.Y(),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"isClipList",null);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"isCarouselInFeed",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"isPlaylistVideoContainer",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"isSearchFrictionPage",null);
_.u([_.Y({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.W("design:type",Boolean)],LL.prototype,"useHeightHack",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.W("design:type",Object)],LL.prototype,"topSpacingZero",void 0);_.u([_.Y({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.W("design:type",Boolean)],LL.prototype,"showButton",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],LL.prototype,"firstCommentsLoaded",void 0);_.u([_.Y(),_.W("design:type",Object)],LL.prototype,"continuationIsInitialLoad",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],LL.prototype,"itemDismissed",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.W("design:type",String)],LL.prototype,"sectionIdentifier",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.W("design:type",String)],LL.prototype,"fitContainer",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.W("design:type",Boolean)],LL.prototype,"hasDestinationShelfRenderer",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Boolean)],LL.prototype,"staticCommentsHeader",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],LL.prototype,"enableSqueezebackPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],LL.prototype,"enableAnchoredPanel",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.W("design:type",Boolean)],LL.prototype,"hasSectionGroupViewModel",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.W("design:type",Boolean)],LL.prototype,"hasQrCodeRenderer",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.W("design:type",Boolean)],LL.prototype,"suppressDisclaimerSeparator",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.W("design:type",String)],LL.prototype,"headerStyle",void 0);
_.u([_.F("isSearch"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"lockupExperiments",null);_.u([_.F("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LL.prototype,"typographyBump",null);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],LL.prototype,"header",void 0);_.u([_.la("notSticky"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"dispatchChipBarIsSticky",null);
_.u([_.la("commentsHidePanelButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"commentsHidePanelButtonChanged",null);_.u([_.Xw("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],LL.prototype,"onRetrieveLocation",null);
_.u([_.Xw("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Function]),_.W("design:returntype")],LL.prototype,"onLoadReloadContinuation",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"onServiceRequestCompleted",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"dataChanged",null);
_.u([_.wH("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"observeDataContentsLength",null);_.u([_.Xw("yt-dismissible-item-dismissed"),_.Xw("yt-dismissible-item-undismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],LL.prototype,"onYtDismissibleItemDismissedChange",null);
_.u([_.la("continuationShowButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"continuationShowButtonChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"dataChangedForBinding",null);_.u([_.c({is:"ytd-item-section-renderer",disableElementRegistration:!0})],LL);
_.d(LL,"ytd-item-section-renderer",function(){if(RCa!==void 0)return RCa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return RCa=M},{mode:1});var VL2;var FIc=_.id(_.e9("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Ewt={},pzn=(Ewt[0]={title:_.JN(_.e9("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Mv("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Ewt[1]={title:_.JN(_.e9("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Mv("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Ewt);_.nn("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Aj=function(){var M=_.g.apply(this,arguments)||this;M.allVideosCount=0;M.allPlaylistCount=0;M.isOnline=!1;M.shouldRenderDownloadsBanner=!1;M.shouldRenderDownloadsBannerUpsell=!1;M.hasOptedIntoSmartDownloads=!1;M.areAllSmartDownloadsDeleted=!1;M.smartDownloadsCompleted=!1;return M};
_.w(Aj,_.g);Aj.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Aj.prototype.attached=function(){this.downloadsToRenderChanged()};
Aj.prototype.detached=function(){this.set("renderableData",{})};
Aj.prototype.downloadsToRenderChanged=function(){var M=_.rA().getState().entities,z=_.gA(M),J=_.U("kevlar_playlist_dl_page_killswitch")?K9R(M):_.sh(M),R=_.sVY(M),D=_.HNY(M),N=_.tN(z);M=_.nD(M);this.set("renderableData",mQw(J,z,R,D,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,N,M))};
Aj.prototype.downloadsToRenderChanged=Aj.prototype.downloadsToRenderChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],Aj.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Aj.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Aj.prototype,"renderableData",void 0);_.u([_.Y({selector:_.bNp}),_.W("design:type",Object)],Aj.prototype,"allVideosCount",void 0);_.u([_.Y({selector:UYn}),_.W("design:type",Object)],Aj.prototype,"allPlaylistCount",void 0);_.u([_.Y({selector:_.dA}),_.W("design:type",Object)],Aj.prototype,"isOnline",void 0);_.u([_.Y({selector:_.N_n}),_.W("design:type",Object)],Aj.prototype,"shouldRenderDownloadsBanner",void 0);
_.u([_.Y({selector:_.kNH}),_.W("design:type",Object)],Aj.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.u([_.Y({selector:_.P_e}),_.W("design:type",Object)],Aj.prototype,"hasOptedIntoSmartDownloads",void 0);_.u([_.Y({selector:_.SE8}),_.W("design:type",Object)],Aj.prototype,"areAllSmartDownloadsDeleted",void 0);_.u([_.Y({selector:ZZR}),_.W("design:type",Object)],Aj.prototype,"smartDownloadsCompleted",void 0);
_.u([_.wH("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Aj.prototype,"downloadsToRenderChanged",null);_.u([_.c({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Aj);
_.d(Aj,"ytd-offline-item-section-renderer",function(){if(VL2!==void 0)return VL2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return VL2=M},
{mode:1});var flV;var LBa;var iI=function(){return _.g.apply(this,arguments)||this};
_.w(iI,_.g);
iI.prototype.onDataChanged=function(){if(this.JSC$16577_lastData){var M=this.getFilterClass(this.JSC$16577_lastData.status);M&&this.hostElement.classList.remove(M)}var z;(M=this.getFilterClass((z=this.data)==null?void 0:z.status))&&this.hostElement.classList.add(M);M==="selected"?_.SN(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.SN(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");M==="disabled"?_.SN(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.SN(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16577_lastData=this.data};
iI.prototype.getFilterClass=function(M){switch(M){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
iI.prototype.onDataChanged=iI.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iI.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iI.prototype,"onDataChanged",null);_.u([_.c({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],iI);
_.d(iI,"ytd-search-filter-renderer",function(){if(LBa!==void 0)return LBa;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return LBa=M},{mode:_.B5("kevlar_poly_si_batch_j075")?1:2});var CL=function(){return _.g.apply(this,arguments)||this};
_.w(CL,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],CL.prototype,"data",void 0);_.u([_.c({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],CL);
_.d(CL,"ytd-search-filter-group-renderer",function(){if(flV!==void 0)return flV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return flV=M},{mode:_.B5("kevlar_poly_si_batch_j075")?1:2});var Af$;var bI=function(){return _.g.apply(this,arguments)||this};
_.w(bI,_.g);bI.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Q7());this.isCollapsed=!this.isCollapsed};
bI.prototype.navigateToAboutTheseResultsPage=function(){var M=_.sw("https://www.youtube.com/howyoutubeworks/product-features/search/");M?_.VZ(window,M,"_blank"):_.$y(Error("Rh"))};
bI.prototype.dataChanged=function(){this.isCollapsed=!0};
bI.prototype.computeShowBottomBorder=function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.button)==null?0:z.toggleButtonRenderer)||!((J=this.data)==null||!J.aboutTheseResultsButton)};
bI.prototype.dataChanged=bI.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bI.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.W("design:type",Boolean)],bI.prototype,"showBottomBorder",void 0);_.u([_.Y(),_.W("design:type",Boolean)],bI.prototype,"renderCollapsibleMenu",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],bI.prototype,"isCollapsed",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bI.prototype,"dataChanged",null);_.u([_.c({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bI);
_.d(bI,"ytd-search-sub-menu-renderer",function(){if(Af$!==void 0)return Af$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Af$=M},{mode:1});var i0t;var Cyu=new _.Nh("SECTION_LIST_RENDERER_TOKEN");var b0J;var re=function(){return _.g.apply(this,arguments)||this};
_.w(re,_.g);re.prototype.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],re.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],re.prototype,"headerStyle",void 0);_.u([_.c({is:"ytd-text-header-renderer",disableElementRegistration:!0})],re);
_.d(re,"ytd-text-header-renderer",function(){if(b0J!==void 0)return b0J;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return b0J=M},{mode:1});var rfJ;var Mt=function(){return _.g.apply(this,arguments)||this};
_.w(Mt,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Mt.prototype,"data",void 0);_.u([_.c({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Mt);
_.d(Mt,"ytd-minor-moment-header-renderer",function(){if(rfJ!==void 0)return rfJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return rfJ=M},{mode:1});var MTJ;var zZ=function(){return _.g.apply(this,arguments)||this};
_.w(zZ,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zZ.prototype,"data",void 0);_.u([_.c({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],zZ);
_.d(zZ,"ytd-minor-moment-setting-alert-renderer",function(){if(MTJ!==void 0)return MTJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return MTJ=M},{mode:1});var zEt;var JHg;var J2=function(){var M=_.g.apply(this,arguments)||this;M.booleanSettingById=!1;M.smartDownloadsEnabledVE=_.O3(128287);M.smartDownloadsDisabledVE=_.O3(128286);M.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return M};
_.w(J2,_.g);_.P=J2.prototype;_.P.attachSmartDownloadsSettingVes=function(){var M;this.activeVeForLogging||((M=this.data)==null?void 0:M.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.ln(_.Gm(),this.smartDownloadsEnabledVE),_.ln(_.Gm(),this.smartDownloadsDisabledVE))};
_.P.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Pv(this.hostElement,"yt-settings-switch-ready")};
_.P.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.P.onSwitchChange=function(M){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(M=_.b7(M).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.U("kevlar_settings_switch_resolve_command_killswitch")?_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(M)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.P.handleUpdateSettingsSwitch=function(M){(M=_.G(M,Skv))&&this.data&&this.data.id===M.id&&this.set("data.enabled",!!M.enabled)};
_.P.onToggleSettingsSwitch=function(M,z){this.data&&this.data.id===M&&this.set("data.enabled",z!=null?z:!this.data.enabled)};
_.P.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.NJ.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.P.maybeLogSmartDownloadsSettingVisibility=function(){var M=_.y5(),z;M&&((z=this.data)==null?void 0:z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.VC(M,[this.smartDownloadsEnabledVE]),_.Ef(M,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.VC(M,[this.smartDownloadsDisabledVE]),_.Ef(M,[this.smartDownloadsEnabledVE])))};
_.P.maybeLogSmartDownloadsSettingClick=function(){var M;((M=this.data)==null?void 0:M.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Q6(_.Gm(),this.activeVeForLogging)};
_.P.updateDataEnabledFromBinding=function(M){this.set("data.enabled",M.detail.value)};
_.rX.Object.defineProperties(J2.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!M&&(M=this.ytRendererBehavior.getSimpleString(this.data.title));return M}}});
J2.prototype.dataChanged=J2.prototype.dataChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],J2.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],J2.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],J2.prototype,"data",void 0);_.u([_.Y({selector:function(M,z){if(Object.keys(M==null?void 0:M.entities).length)switch(z){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return $Je(M.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.W("design:type",Object)],J2.prototype,"booleanSettingById",void 0);_.u([_.Y(),_.W("design:type",nu)],J2.prototype,"activeVeForLogging",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],J2.prototype,"toggleAriaLabel",null);_.u([_.wH("data"),_.wH("booleanSettingById"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J2.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],J2);
_.d(J2,"ytd-settings-switch-renderer",function(){if(JHg!==void 0)return JHg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return JHg=M},{mode:1});var Rx=function(){return _.g.apply(this,arguments)||this};
_.w(Rx,_.g);Rx.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}}}}};
_.rX.Object.defineProperties(Rx.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var M=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(M+=" remove-left-margin");this.data.extraBottomSpace&&(M+=" extra-bottom-space");return M}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Rx.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rx.prototype,"contentsClassName",null);_.u([_.c({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Rx);
_.d(Rx,"ytd-minor-moment-setting-section-renderer",function(){if(zEt!==void 0)return zEt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return zEt=M},{mode:1});var RES;var DO=function(){return _.g.apply(this,arguments)||this};
_.w(DO,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],DO.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],DO.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],DO);
_.d(DO,"ytd-empty-product-details-renderer",function(){if(RES!==void 0)return RES;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return RES=M},{mode:1});var DMg;var Nat;var Nt=function(){var M=_.g.apply(this,arguments)||this;M.expanded=!0;return M};
_.w(Nt,_.g);Nt.prototype.getBadgeRowClass=function(M,z,J){for(var R=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),D=R.next();!D.done;D=R.next())D.value.onShow();M=M.selected;return J?M!==-1?M===z?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(M!==void 0?M:0)===z?"badge-line":"badge-hidden"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Nt.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Nt.prototype,"expanded",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Nt);
_.d(Nt,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Nat!==void 0)return Nat;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Nat=M},{mode:1});var Pcg;var PL=function(){var M=_.g.apply(this,arguments)||this;M.expanded=!0;return M};
_.w(PL,_.g);PL.prototype.getContainerClasses=function(M,z){M=M?"expanded":"collapsed";z&&(M+=" item");return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PL.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],PL.prototype,"expanded",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],PL);
_.d(PL,"ytd-sponsorships-perk-renderer",function(){if(Pcg!==void 0)return Pcg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Pcg=M},{mode:1});var SxB;var S1=function(){var M=_.g.apply(this,arguments)||this;M.expanded=!0;return M};
_.w(S1,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],S1.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],S1.prototype,"expanded",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],S1);
_.d(S1,"ytd-sponsorships-perks-renderer",function(){if(SxB!==void 0)return SxB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SxB=M},{mode:1});var ZO=function(){var M=_.g.apply(this,arguments)||this;M.isCollapsed=!1;return M};
_.w(ZO,_.g);ZO.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
ZO.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
ZO.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var M;this.expandCollapseButton=_.G((M=this.data)==null?void 0:M.expandButton,_.aR)}else{var z;this.expandCollapseButton=_.G((z=this.data)==null?void 0:z.collapseButton,_.aR)}};
ZO.prototype.updateExpandCollapseButton=ZO.prototype.updateExpandCollapseButton;ZO.prototype.onDataChanged=ZO.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ZO.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ZO.prototype,"isCollapsed",void 0);_.u([_.Y(),_.W("design:type",Object)],ZO.prototype,"expandCollapseButton",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZO.prototype,"onDataChanged",null);_.u([_.wH("data","isCollapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZO.prototype,"updateExpandCollapseButton",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ZO);
_.d(ZO,"ytd-sponsorships-expandable-perks-renderer",function(){if(DMg!==void 0)return DMg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return DMg=M},{mode:1});var ZiJ;var kc=function(){return _.g.apply(this,arguments)||this};
_.w(kc,_.g);kc.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kc.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],kc);
_.d(kc,"ytd-sponsorships-actionable-message-renderer",function(){if(ZiJ!==void 0)return ZiJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return ZiJ=M},{mode:1});var kHg;var BL=function(){return _.g.apply(this,arguments)||this};
_.w(BL,_.g);_.P=BL.prototype;_.P.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.P.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.P.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.computeMessageContainerStyle=function(M){var z=M.expandableItems?" style-clickable":"";return M.messageContainerStyle?M.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+z:"style-unspecified"+z};
_.P.isSinglePerk=function(M){return!!M.messageContainerStyle&&(M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.P.onExpandedChanged=function(){var M=this;if(this.expanded)for(var z=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),J=z.next();!J.done;J=z.next())J.value.onShow();_.C4(this,function(){_.Pv(M.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
BL.prototype.onDataChanged=BL.prototype.onDataChanged;BL.prototype.onExpandedChanged=BL.prototype.onExpandedChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],BL.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],BL.prototype,"expanded",void 0);
_.u([_.la("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"onExpandedChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],BL);
_.d(BL,"ytd-sponsorships-expandable-message-renderer",function(){if(kHg!==void 0)return kHg;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return kHg=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var BaB;var Os=function(){return _.g.apply(this,arguments)||this};
_.w(Os,_.g);Os.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"}}}}};
Os.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.G(this.data.endButton,_.aR).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Os.prototype.onDataChanged=Os.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Os.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Os.prototype,"onDataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Os);
_.d(Os,"ytd-sponsorships-heading-renderer",function(){if(BaB!==void 0)return BaB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BaB=M},{mode:1});var OiJ;var TZ=function(){return _.g.apply(this,arguments)||this};
_.w(TZ,_.g);_.u([_.Y(),_.W("design:type",Object)],TZ.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],TZ);
_.d(TZ,"ytd-sponsorships-links-renderer",function(){if(OiJ!==void 0)return OiJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return OiJ=M},{mode:1});var TaJ;var Ix=function(){return _.g.apply(this,arguments)||this};
_.w(Ix,_.g);_.P=Ix.prototype;_.P.onDataChanged=function(){if(this.data&&this.data.expandableItems){var M;(M=_.SN(this.hostElement).querySelector("tp-yt-paper-button"))==null||M.setAttribute("role","button")}else{var z;(z=_.SN(this.hostElement).querySelector("tp-yt-paper-button"))==null||z.removeAttribute("role")}};
_.P.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.P.getTileClasses=function(M){return M?"tile expandable-tile":"tile"};
_.P.getButtonDisabled=function(M){return M?void 0:""};
Ix.prototype.onDataChanged=Ix.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ix.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Ix.prototype,"expanded",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ix.prototype,"onDataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Ix);
_.d(Ix,"ytd-sponsorships-list-tile-renderer",function(){if(TaJ!==void 0)return TaJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return TaJ=M},{mode:1});var Iit;var oPV;var ox=function(){return _.g.apply(this,arguments)||this};
_.w(ox,_.g);ox.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ox.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],ox);
_.d(ox,"ytd-sponsorships-promotion-renderer",function(){if(oPV!==void 0)return oPV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oPV=M},{mode:1});var Xxv;var Xg=function(){return _.g.apply(this,arguments)||this};
_.w(Xg,_.g);Xg.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Xg.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Xg);
_.d(Xg,"ytd-sponsorships-purchase-option-renderer",function(){if(Xxv!==void 0)return Xxv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Xxv=M},{mode:1});var liu;var eEB;var QUu=function(){return _.g.apply(this,arguments)||this};
_.w(QUu,_.g);_.u([_.Y(),_.W("design:type",Object)],QUu.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],QUu);
_.d(QUu,"ytd-ypc-offer-promo-renderer",function(){if(eEB!==void 0)return eEB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return eEB=M},{mode:1});var lX=function(){return _.g.apply(this,arguments)||this};
_.w(lX,_.g);_.P=lX.prototype;
_.P.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.P.expansionCTA=function(M,z){return M&&(z?M.collapseCallToAction:M.expansionCallToAction)};
_.P.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.P.expansionCallToActionTap=function(){var M=this;this.expanded=!this.expanded;_.C4(this,function(){_.Pv(M.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var M,z=(M=this.data)==null?void 0:M.onVisible;z&&this.ytComponentBehavior.resolveCommand(z)};
_.P.computeDisplayTitle=function(M){return!(!M||this.titledisplaystatus!=="show")};
_.P.computeDisplaySeparator=function(){return!1};
_.P.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
lX.prototype.onDataChanged=lX.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],lX.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lX.prototype,"data",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],lX.prototype,"expanded",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],lX.prototype,"purchaseButtonClicked",void 0);_.u([_.Y({reflectToAttribute:!0,value:"show"}),_.W("design:type",String)],lX.prototype,"titledisplaystatus",void 0);_.u([_.Y({computed:"computeDisplayTitle(data.title)"}),_.W("design:type",Boolean)],lX.prototype,"displayTitle",void 0);
_.u([_.Y({computed:"computeDisplaySeparator(data)"}),_.W("design:type",Boolean)],lX.prototype,"displaySeparator",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lX.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],lX);
_.d(lX,"ytd-sponsorships-tier-renderer",function(){if(liu!==void 0)return liu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return liu=M},{mode:2});var e1=function(){return _.g.apply(this,arguments)||this};
_.w(e1,_.g);
e1.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],e1.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],e1);
_.d(e1,"ytd-sponsorships-management-renderer",function(){if(Iit!==void 0)return Iit;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Iit=M},{mode:1});var UM$;var QG=function(){return _.g.apply(this,arguments)||this};
_.w(QG,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QG.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],QG);
_.d(QG,"ytd-open-in-native-app-view-model",function(){if(UM$!==void 0)return UM$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return UM$=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var vPV;var GHv;var wxu=_.Ca(["top-"]),xMa=_.Ca(["bottom-"]),tT$=_.Ca(["left-"]),jUa=_.Ca(["right-"]),pxB={},FjV=function(M,z,J){M.removeAttribute("top-"+J);M.removeAttribute("bottom-"+J);M.removeAttribute("left-"+J);M.removeAttribute("right-"+J);z&&(z.top&&_.bs([_.R$(wxu)],M,"top-"+J,z.top),z.bottom&&_.bs([_.R$(xMa)],M,"bottom-"+J,z.bottom),z.left&&_.bs([_.R$(tT$)],M,"left-"+J,z.left),z.right&&_.bs([_.R$(jUa)],M,"right-"+J,z.right))};
pxB.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(M){var z,J=_.SN((z=this.hostElement)!=null?z:this),R;z=this.cardItemBoxBehaviorMarginTargetId&&J?J.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(R=this.hostElement)!=null?R:this;FjV(z,M,"margin")},
cardItemContainerPaddingChanged_:function(M){var z,J=_.SN((z=this.hostElement)!=null?z:this),R;z=this.cardItemBoxBehaviorPaddingTargetId&&J?J.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(R=this.hostElement)!=null?R:this;FjV(z,M,"padding")}}];var Us={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Yxg;var mMS;var vL=function(){return _.g.apply(this,arguments)||this};
_.w(vL,_.g);vL.prototype.textColorChanged_=function(){this.hostElement.style.color=Us[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
vL.prototype.textColorChanged_=vL.prototype.textColorChanged_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.u([_.p(pxB.YtCardItemBoxBehavior),_.W("design:type",Object)],vL.prototype,"ytCardItemBoxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vL.prototype,"data",void 0);_.u([_.la("data.textColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vL.prototype,"textColorChanged_",null);
_.u([_.cU({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],vL);
_.d(vL,"yt-card-item-text-renderer",function(){if(mMS===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Yxg===void 0&&(Yxg=document.createElement("template"));var R=Yxg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);mMS=M}M=mMS;return M},{mode:2});var gPJ;var sU$;var GZ=function(){return _.g.apply(this,arguments)||this};
_.w(GZ,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GZ.prototype,"data",void 0);_.u([_.cU({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],GZ);
_.d(GZ,"yt-card-item-badge-renderer",function(){if(sU$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;gPJ===void 0&&(gPJ=document.createElement("template"));var R=gPJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);sU$=M}M=sU$;return M},{mode:2});var nPa;var hE$;var w9=function(){return _.g.apply(this,arguments)||this};
_.w(w9,_.g);w9.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],w9.prototype,"data",void 0);_.u([_.cU({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],w9);
_.d(w9,"yt-card-item-text-collection-renderer",function(){if(hE$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;nPa===void 0&&(nPa=document.createElement("template"));var R=nPa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);hE$=M}M=hE$;return M},{mode:2});var yHg;var Hi$;var xc=function(){return _.g.apply(this,arguments)||this};
_.w(xc,_.g);xc.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]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xc.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Number)],xc.prototype,"iconSize",void 0);_.u([_.cU({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],xc);
_.d(xc,"yt-card-item-text-with-button-renderer",function(){if(Hi$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;yHg===void 0&&(yHg=document.createElement("template"));var R=yHg;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Hi$=M}M=Hi$;return M},{mode:2});var t2=function(){return _.g.apply(this,arguments)||this};
_.w(t2,_.g);t2.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],t2.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],t2);
_.d(t2,"ytd-commerce-cart-summary-line-item-renderer",function(){if(GHv!==void 0)return GHv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return GHv=M},{mode:1});_.nn("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var j1=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;return M};
_.w(j1,_.g);_.P=j1.prototype;_.P.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.P.updateSummary=function(){var M=this.commerceCartCheckoutButtonEntity,z;if(((z=this.data)==null?0:z.cartButton)&&M.checkoutSummaryText){var J,R=sm((J=this.data)==null?void 0:J.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",nr(M.checkoutSummaryText));if(M.checkoutDetailText){var D;J=sm((D=this.data)==null?void 0:D.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",nr(M.checkoutDetailText))}if(M.checkoutAdditionalMetadataText){var N;
D=sm((N=this.data)==null?void 0:N.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",nr(M.checkoutAdditionalMetadataText))}}else M.estimatedTotalPrice&&(N=sm((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",nr(M.estimatedTotalPrice)))};
_.P.updateIsHidden=function(){var M,z=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;z!==void 0&&(this.hidden=z)};
_.P.updateCheckoutButton=function(){var M,z=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isDisabled;z!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",z);var J;M=(J=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:J.innertubeCommand;M!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",M);var R;J=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutButtonText;J!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:J})};
j1.prototype.entityChanged=j1.prototype.entityChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],j1.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],j1.prototype,"fullWidth",void 0);_.u([_.Y(),_.W("design:type",Object)],j1.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],j1.prototype,"compact",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],j1.prototype,"hidden",void 0);
_.u([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ddw}),_.W("design:type",Object)],j1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.u([_.la("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"entityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],j1);
_.d(j1,"ytd-commerce-cart-checkout-button-renderer",function(){if(vPV!==void 0)return vPV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return vPV=M},{mode:2});var cHV;_.dMv={};
_.dMv.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",_.ou(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ou(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(M){!this.tappableItemBehaviorTapEnabled||M.keyCode!==13&&M.keyCode!==32||M.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var M=this.data.onTap;M.ypcGetCartEndpoint?(_.kQ(this.hostElement,[M]),this.tappableItemBehaviorTapEnabled=!1):M.ypcOffersEndpoint?_.kQ(this.hostElement,[M]):_.Bv(this.hostElement,[M],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(M){this.tappableItemBehaviorTapEnabled=!!M},
tappableItemBehaviorOnTapEnabledChanged_:function(){var M=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(M.setAttribute("tabIndex",0),M.setAttribute("role","button")):(M.removeAttribute("tabIndex"),M.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(M){M.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var KjB;var $Mt;var p6=function(){return _.g.apply(this,arguments)||this};
_.w(p6,_.g);p6.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.hM("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.hM("sharingToggleButtonAndDefaultButton")}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p6.prototype,"data",void 0);_.u([_.cU({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],p6);
_.d(p6,"yt-card-item-actions-renderer",function(){if($Mt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;KjB===void 0&&(KjB=document.createElement("template"));var R=KjB;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$Mt=M}M=$Mt;return M},{mode:2});var u1g;var qxQ;var Wju;var ai2;var VTk;var EPk;var Fg=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return M};
_.w(Fg,_.g);Fg.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Fg.prototype.handleDarkModeToggledAction_=function(M){this.isDarkTheme_=M};
Fg.prototype.computeThemeImage_=function(M,z){if(!M||!M.imageLight)return!1;this.isCircular_=M.isCircular;M.imageWidth&&(this.hostElement.style.width=M.imageWidth+"px");M.imageHeight&&(this.hostElement.style.height=M.imageHeight+"px");M.borderWidth&&(this.image.style.borderWidth=M.borderWidth+"px",this.image.style.borderStyle="solid");M.borderColor&&(this.image.style.borderColor=_.qG(M.borderColor));return z&&M.imageDark?M.imageDark:M.imageLight};
Fg.prototype.computeThemeIcon_=function(M){var z,J;if(!(M==null?0:(z=M.themedIcon)==null?0:(J=z.icon)==null?0:J.iconType))return!1;this.icon.style.color=Us[M.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(M.imageWidth||18)+"px";this.icon.style.height=(M.imageHeight||18)+"px";return _.oE(M.themedIcon.icon.iconType)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(pxB.YtCardItemBoxBehavior),_.W("design:type",Object)],Fg.prototype,"ytCardItemBoxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Fg.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fg.prototype,"data",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Fg.prototype,"fit",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Fg.prototype,"isDarkTheme_",void 0);_.u([_.Y({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.W("design:type",Object)],Fg.prototype,"themeImage_",void 0);_.u([_.Y({computed:"computeThemeIcon_(data)"}),_.W("design:type",Object)],Fg.prototype,"themeIcon_",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],Fg.prototype,"isCircular_",void 0);
_.u([_.Qc("#image"),_.W("design:type",Object)],Fg.prototype,"image",void 0);_.u([_.Qc("#icon"),_.W("design:type",Object)],Fg.prototype,"icon",void 0);_.u([_.cU({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Fg);
_.d(Fg,"yt-themed-image-renderer",function(){if(EPk===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;VTk===void 0&&(VTk=document.createElement("template"));var R=VTk;J.call(z,R.content.cloneNode(!0),M.content.firstChild);EPk=M}M=EPk;return M},{mode:2});var Yc=function(){return _.g.apply(this,arguments)||this};
_.w(Yc,_.g);Yc.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"}}}}};
Yc.prototype.computeImagePlacement_=function(M){return M||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Yc.prototype,"data",void 0);_.u([_.Y({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.W("design:type",String)],Yc.prototype,"imagePlacement",void 0);
_.u([_.cU({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Yc);
_.d(Yc,"yt-card-item-text-with-image-renderer",function(){if(ai2===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Wju===void 0&&(Wju=document.createElement("template"));var R=Wju;J.call(z,R.content.cloneNode(!0),M.content.firstChild);ai2=M}M=ai2;return M},{mode:2});var m5=function(){return _.g.apply(this,arguments)||this};
_.w(m5,_.g);m5.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"}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],m5.prototype,"data",void 0);_.u([_.cU({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],m5);
_.d(m5,"yt-card-item-error-renderer",function(){if(qxQ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;u1g===void 0&&(u1g=document.createElement("template"));var R=u1g;J.call(z,R.content.cloneNode(!0),M.content.firstChild);qxQ=M}M=qxQ;return M},{mode:2});var fiJ;var Lja;_.nn("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var g9=function(){return _.g.apply(this,arguments)||this};
_.w(g9,_.g);_.P=g9.prototype;
_.P.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.P.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.P.backgroundColorChanged_=function(){var M,z=(M=this.data)==null?void 0:M.backgroundColor;M=Us[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.SN(this.hostElement).querySelector("#main-content").style.backgroundColor=M};
_.P.headerPromoBackgroundColorChanged_=function(){var M,z=(M=this.data)==null?void 0:M.headerPromoBackgroundColor;M=Us[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.SN(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=M};
_.P.errorRendererVisibilityChanged_=function(){var M=this.isExpanded_,z;this.isErrorRendererVisible_=!((z=this.data)==null||!z.errorRenderer)&&!M};
_.P.onYtToggleButton_=function(M,z){this.isExpanded_=z.toggled};
g9.prototype.onYtToggleButton_=g9.prototype.onYtToggleButton_;g9.prototype.errorRendererVisibilityChanged_=g9.prototype.errorRendererVisibilityChanged_;g9.prototype.headerPromoBackgroundColorChanged_=g9.prototype.headerPromoBackgroundColorChanged_;g9.prototype.backgroundColorChanged_=g9.prototype.backgroundColorChanged_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(pxB.YtCardItemBoxBehavior),_.W("design:type",Object)],g9.prototype,"ytCardItemBoxBehavior",void 0);_.u([_.p(_.dMv.YtTappableItemBehavior),_.W("design:type",Object)],g9.prototype,"ytTappableItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],g9.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],g9.prototype,"isExpanded_",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],g9.prototype,"isErrorRendererVisible_",void 0);_.u([_.la("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g9.prototype,"backgroundColorChanged_",null);_.u([_.la("data.headerPromoBackgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g9.prototype,"headerPromoBackgroundColorChanged_",null);
_.u([_.la("data.errorRenderer","isExpanded_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g9.prototype,"errorRendererVisibilityChanged_",null);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],g9.prototype,"onYtToggleButton_",null);_.u([_.cU({is:"yt-card-item-renderer",disableElementRegistration:!0})],g9);
_.d(g9,"yt-card-item-renderer",function(){if(Lja===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;fiJ===void 0&&(fiJ=document.createElement("template"));var R=fiJ;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Lja=M}M=Lja;return M},{mode:2});_.nn("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ss=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;return M};
_.w(ss,_.g);_.P=ss.prototype;_.P.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,z=(M=this.commerceCartHeaderEntity)==null?void 0:M.isHidden;z!==void 0&&(this.hidden=z)}};
_.P.updateTitle=function(){var M=this.commerceCartHeaderEntity.isDisabled,z,J,R=(J=_.G((z=this.data)==null?void 0:z.item,xKV))==null?void 0:J.headingRenderer;R&&(z=sm(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".0.cardItemTextRenderer.textColor",M?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.P.updateSummaryText=function(){var M=this.commerceCartHeaderEntity;if(this.compact){var z,J,R=(J=_.G((z=this.data)==null?void 0:z.item,xKV))==null?void 0:J.headingRenderer;R&&(z=sm(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".1.cardItemTextRenderer.text",M.shortHeaderSummaryText?nr(M.shortHeaderSummaryText):M.headerSummaryText?nr(M.headerSummaryText):""))}else{var D;if(z=(D=_.G((R=this.data)==null?void 0:R.item,xKV))==null?void 0:D.additionalInfoRenderer)z=sm(z,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".text",M.headerSummaryText?nr(M.headerSummaryText):"")}};
_.P.updateCheckoutButton=function(){var M=this.commerceCartHeaderEntity,z,J,R=(J=_.G((z=this.data)==null?void 0:z.item,xKV))==null?void 0:J.additionalInfoRenderer;z=sm(R,"buttonRenderer");var D;J=(D=this.commerceCartHeaderEntity)==null?void 0:D.isButtonDisabled;var N;D=(N=this.commerceCartHeaderEntity)==null?void 0:N.isButtonHidden;J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.isDisabled",J);D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
D);var Z;M=(Z=M.checkoutButtonCommand)==null?void 0:Z.innertubeCommand;M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.command",M)};
ss.prototype.entityChanged=ss.prototype.entityChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],ss.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ss.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ss.prototype,"compact",void 0);_.u([_.Y({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(M,z){return _.Is(M.entities,"commerceCartHeaderEntity",z)}}),
_.W("design:type",Object)],ss.prototype,"commerceCartHeaderEntity",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ss.prototype,"hidden",void 0);_.u([_.la("commerceCartHeaderEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ss.prototype,"entityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],ss);
_.d(ss,"ytd-commerce-cart-header-renderer",function(){if(cHV!==void 0)return cHV;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return cHV=M},{mode:1});var AH$;var iiJ=_.j6(function(M,z){var J;return(J=M.onChangeCallback)==null?void 0:J.call(M,z)},1E3),CcQ=_.Mf(function(M){var z=M.data;
var J=M.iconMinus;M=M.iconPlus;var R=function(){return!!z().disabled},D=_.S(_.kE(0,void 0,"r56zNb")),N=D.next().value,Z=D.next().value;
D={};D=_.Qe("yt-spec-quantity-incrementer-shape__icon",(D["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return R()||N()===(z().onRemoveCommand?0:1)},D));
var B={};B=_.Qe("yt-spec-quantity-incrementer-shape__icon",(B["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return N()>=z().maxValue||R()},B));
var O={};O=_.Qe("yt-spec-quantity-incrementer-shape__text",(O["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return N()>z().maxValue},O["yt-spec-quantity-incrementer-shape__text--text-disabled"]=R,O));
var X=_.ol(function(){if(N()===1){var e,Q;(Q=(e=z()).onRemoveCommand)==null||Q.call(e)}e=N()>z().maxValue?z().maxValue:N()-1;Z(e);iiJ(z(),e);return!1}),l=_.ol(function(){if(N()===z().maxValue)return!1;
var e=N()+1;Z(e);iiJ(z(),e);return!1});
_.FT(function(){Z(z().value)});
return _.T("quantity-incrementer-shape",null,_.T("div",{class:"yt-spec-quantity-incrementer-shape"},_.T("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return N()===(z().onRemoveCommand?0:1)||R()},
"aria-label":function(){return N()!==1?z().minusLabel:z().minimumReachedLabel},
"on:click":X},_.T(_.Tn,{model:{circular:!0}}),_.T("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.T("div",{class:D},J()))),_.T("div",{class:O},N),_.T("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return N()>=z().maxValue||R()},
"aria-label":function(){return N()!==z().maxValue?z().plusLabel:z().maximumReachedLabel},
"on:click":l},_.T(_.Tn,{model:{circular:!0}}),_.T("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.T("div",{class:B},M())))))},"he");_.N7(_.Mf(function(M){function z(){J().onRemoveCommand&&_.aE(J().onRemoveCommand)}
var J=M.data;var R=_.U3(pDH,function(){return J().quantityIncrementerEntityKey});
return _.T("yt-quantity-incrementer-view-model",null,_.T(CcQ,{data:function(){var D=J(),N;var Z=R()?!((N=R())==null||!N.disabled):!1;var B;N=R()?(B=R())==null?void 0:B.quantity:J().quantity;return nLe(D,Z,z,N)},
iconMinus:function(){return _.T(_.vS,{icon:"BAR_HORIZONTAL",className:_.jF("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.T(_.vS,{icon:"ADD",className:_.jF("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"ie"),"yt-quantity-incrementer-view-model",{props:{data:_.zn}});var n6=function(){var M=_.g.apply(this,arguments)||this;M.compact=!1;M.hasQuantityIncrementer=!1;return M};
_.w(n6,_.g);n6.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"}}}};
n6.prototype.computeHasQuantityIncrementer=function(){var M;return!!_.G((M=this.data)==null?void 0:M.picker,Fgt)};
n6.prototype.onLabelClick=function(){var M;(M=this.dropdownEl)==null||M.open()};
_.u([_.Qc("ytd-dropdown-renderer"),_.W("design:type",Object)],n6.prototype,"dropdownEl",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],n6.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],n6.prototype,"quantityColor",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],n6.prototype,"compact",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.W("design:type",Object)],n6.prototype,"hasQuantityIncrementer",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],n6);
_.d(n6,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(AH$!==void 0)return AH$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AH$=M},{mode:1});var bia;var rHS;var h2=function(){return _.g.apply(this,arguments)||this};
_.w(h2,_.g);h2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
h2.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
h2.prototype.updateTitle=function(){var M=this.disabledCartItemEntity;M.disableActionName&&this.set("data.title",nr(M.disableActionName))};
h2.prototype.updateButton=function(){var M,z=(M=this.disabledCartItemEntity.undoCommand)==null?void 0:M.innertubeCommand;z!==void 0&&(this.set("data.actionButton.buttonRenderer.command",z),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
h2.prototype.entityChanged=h2.prototype.entityChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(M,z){return _.Is(M.entities,"disabledCartItemEntity",z)}}),
_.W("design:type",Object)],h2.prototype,"disabledCartItemEntity",void 0);_.u([_.Y(),_.W("design:type",Object)],h2.prototype,"data",void 0);_.u([_.la("disabledCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h2.prototype,"entityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],h2);
_.d(h2,"ytd-disabled-cart-item-renderer",function(){if(rHS!==void 0)return rHS;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rHS=M},{mode:1});_.nn("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var yG=function(){var M=_.g.apply(this,arguments)||this;M.compact=!1;M.hidden=!1;M.errorHidden=!1;M.noOnTap=!1;return M};
_.w(yG,_.g);_.P=yG.prototype;
_.P.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.P.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var M=this.firstButtonElement;M.alignByText=!0;M.iconAlignByText=!0}};
_.P.computeNoOnTap=function(M){return!M};
_.P.updateQuantityColor=function(){if(this.pickerElement){var M,z=(M=this.commerceCartItemEntity)==null?void 0:M.quantityColor;this.pickerElement.quantityColor=z}};
_.P.updateTotalPriceColor=function(){var M,z=(M=this.commerceCartItemEntity)==null?void 0:M.totalPriceColor;if(z){var J;M=_.G((J=this.data)==null?void 0:J.quantityPicker,jYV);if(J=_.G(M==null?void 0:M.price,tuV))J.textColor=z}};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,z=(M=this.commerceCartItemEntity)==null?void 0:M.isHidden;z!==void 0&&(this.hidden=z)}};
_.P.updateHideErrorMessage=function(){var M,z=(M=this.commerceCartItemEntity)==null?void 0:M.hideErrorMessage;z!==void 0&&(this.errorHidden=z)};
_.P.updateQuantity=function(){var M=this,z,J=(z=this.commerceCartItemEntity)==null?void 0:z.quantity,R;z=(R=this.commerceCartItemEntity)==null?void 0:R.totalPrice;if(J){this.updateTotalPriceColor();this.updateQuantityColor();var D;R=_.G((D=this.data)==null?void 0:D.quantityPicker,jYV);if(D=_.G(R==null?void 0:R.price,tuV))D.text=z?{simpleText:z.content}:void 0;if(z=_.G(R==null?void 0:R.picker,Fgt))z.quantity=J;var N;if(D=(N=_.G(R==null?void 0:R.picker,Y4k))==null?void 0:N.entries){N=!1;z=void 0;D=
_.S(D);for(R=D.next();!R.done;R=D.next())R=R.value,R.dropdownItemRenderer&&(z||(z=R.dropdownItemRenderer),R.dropdownItemRenderer.isSelected=!1,J===R.dropdownItemRenderer.int32Value&&(N=!0,R.dropdownItemRenderer.isSelected=!0));!N&&z&&(z.isSelected=!0)}_.C4(this,function(){var Z;M.set("data.quantityPicker",_.gu.unsafeClone((Z=M.data)==null?void 0:Z.quantityPicker))})}};
yG.prototype.onYtRendererstamperFinished=yG.prototype.onYtRendererstamperFinished;yG.prototype.entityChanged=yG.prototype.entityChanged;_.u([_.Y(),_.W("design:type",Object)],yG.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yG.prototype,"compact",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],yG.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(M,z){return _.Is(M.entities,"commerceCartItemEntity",z)}}),
_.W("design:type",Object)],yG.prototype,"commerceCartItemEntity",void 0);_.u([_.Y(),_.W("design:type",Object)],yG.prototype,"quantityPicker",void 0);_.u([_.Y(),_.W("design:type",Object)],yG.prototype,"compactQuantityPicker",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yG.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yG.prototype,"errorHidden",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.W("design:type",Object)],yG.prototype,"noOnTap",void 0);_.u([_.Qc("ytd-commerce-cart-item-quantity-picker-renderer"),_.W("design:type",Object)],yG.prototype,"pickerElement",void 0);_.u([_.Qc("yt-button-renderer"),_.W("design:type",Element)],yG.prototype,"firstButtonElement",void 0);
_.u([_.la("commerceCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yG.prototype,"entityChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yG.prototype,"onYtRendererstamperFinished",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],yG);
_.d(yG,"ytd-commerce-cart-item-renderer",function(){if(bia!==void 0)return bia;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return bia=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var MiB;var z7a;var HL=function(){return _.g.apply(this,arguments)||this};
_.w(HL,_.g);HL.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}}}}}};
HL.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
HL.prototype.updateCheckoutLineItems=function(){var M,z=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.checkoutLineItems;z&&(M=z.map(function(J){a:{var R=J.price,D=J.description;switch(J.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":J={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:nr(D),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:nr(R),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:J={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:nr(D),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:nr(R),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 J}),this.set("data.summaryLineItems",M))};
HL.prototype.updateIsHidden=function(){var M,z=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;z!==void 0&&(this.hostElement.hidden=z)};
HL.prototype.entityChanged=HL.prototype.entityChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],HL.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],HL.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],HL.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ddw}),_.W("design:type",Object)],HL.prototype,"commerceCartCheckoutButtonEntity",void 0);_.u([_.la("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HL.prototype,"entityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],HL);
_.d(HL,"ytd-commerce-cart-summary-renderer",function(){if(z7a!==void 0)return z7a;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return z7a=M},{mode:1});var Jct={};Jct.InjectBehavior=[S10.InjectBehavior];var R7a;var DXp;var cL=function(){return _.g.apply(this,arguments)||this};
_.w(cL,_.g);
cL.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:_.hM("menuRenderer")}}};
cL.prototype.onMenuTap=function(M){M.stopPropagation()};
_.rX.Object.defineProperties(cL.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var M,z;return!(((M=this.data)==null||!M.sectionHeading)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var M,z;return!(((M=this.data)==null||!M.image)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var M,z;return!(((M=this.data)==null||!M.menu)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.dMv.YtTappableItemBehavior),_.W("design:type",Object)],cL.prototype,"ytTappableItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cL.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.accessibilityData"),_.W("design:type",String),_.W("design:paramtypes",[])],cL.prototype,"ariaLabel",null);_.u([_.F("data.sectionHeading","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cL.prototype,"sectionHeadingVisible",null);_.u([_.F("data.image","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cL.prototype,"imageVisible",null);
_.u([_.F("data.menu","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cL.prototype,"menuVisible",null);_.u([_.cU({is:"yt-activity-item-renderer",disableElementRegistration:!0})],cL);
_.d(cL,"yt-activity-item-renderer",function(){if(DXp===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;R7a===void 0&&(R7a=document.createElement("template"));var R=R7a;J.call(z,R.content.cloneNode(!0),M.content.firstChild);DXp=M}M=DXp;return M},{mode:2});var NTv;var PhV;var Sgp;var Ztu;var d9=function(){return _.g.apply(this,arguments)||this};
_.w(d9,_.g);
d9.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"}}}}};
d9.prototype.backgroundColorChanged_=function(){var M,z=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=Us[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
d9.prototype.backgroundColorChanged_=d9.prototype.backgroundColorChanged_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],d9.prototype,"data",void 0);
_.u([_.la("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d9.prototype,"backgroundColorChanged_",null);_.u([_.cU({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],d9);
_.d(d9,"yt-offer-item-upsell-renderer",function(){if(Ztu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Sgp===void 0&&(Sgp=document.createElement("template"));var R=Sgp;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Ztu=M}M=Ztu;return M},{mode:2});_.nn("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var K6=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};M.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return M};
_.w(K6,_.g);_.P=K6.prototype;
_.P.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.hM("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.P.computeContainerStyle_=function(M){return M};
_.P.computeContainerIsHidden_=function(M){return M&&!!M.isHidden};
_.P.computeShowSpinner_=function(M,z){return M&&z==="in-progress"};
_.P.computeShowMoreContentsButton_=function(M,z,J,R,D){return!(!(R&&R.length||D&&D.length&&J)||!M||z)};
_.P.onToggleButton_=function(M){var z=this;M.stopPropagation();this.isExpanded_=M.detail&&M.detail.toggled;var J,R;this.isExpanded_&&!this.data.continuationSection.length&&((J=this.data)==null?0:(R=J.continuation)==null?0:R.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Pv(this.hostElement,"yt-load-next-continuation",function(D){return z.getContinuationUrl_(z.data.continuation.onClickContinuationData,D)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.kQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.P.onShowMoreContentsButtonClicked_=function(M){var z=this;M.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Pv(this.hostElement,"yt-load-next-continuation",function(J){return z.getContinuationUrl_(z.data.continuations[0].nextContinuationData,J)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.kQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.P.getContinuationUrl_=function(M,z){var J=M.continuation;M=M.clickTrackingParams;var R=_.y5();M&&R&&_.fY(R,_.pe(M));return _.Ag(z,{continuation:J})};
_.P.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var M=_.SN(this.hostElement).querySelector("#continuation-section");M&&(M=M.querySelectorAll("ytmusic-item-section-renderer"))&&M.forEach(function(z){return z.classList.add("memberships-and-purchases")})};
_.P.dataChanged_=function(){var M;this.isExpanded_=!((M=this.data)==null||!M.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.P.updateCardOnClickCommand_=function(M){M=_.G(M,Xmv);var z,J;this.data&&((z=this.data)==null?0:z.targetId)&&M&&M.targetId===((J=this.data)==null?void 0:J.targetId)&&M.onClickCommand&&(this.data.onClickCommand=M.onClickCommand,this.isOnClickCommand_=!0)};
_.P.backgroundColorChanged_=function(){var M,z=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=Us[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
K6.prototype.backgroundColorChanged_=K6.prototype.backgroundColorChanged_;K6.prototype.dataChanged_=K6.prototype.dataChanged_;K6.prototype.nextContinuationDataUpdated_=K6.prototype.nextContinuationDataUpdated_;K6.prototype.onToggleButton_=K6.prototype.onToggleButton_;_.u([_.p(_.AU),_.W("design:type",Object)],K6.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],K6.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],K6.prototype,"ytNextContinuationBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.u([_.p(Jct.InjectBehavior),_.W("design:type",Object)],K6.prototype,"injectBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],K6.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],K6.prototype,"compact",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],K6.prototype,"isExpanded_",void 0);_.u([_.Y({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.W("design:type",String)],K6.prototype,"containerStyle_",void 0);_.u([_.Y({value:"not-started"}),_.W("design:type",String)],K6.prototype,"continuationStatus_",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.W("design:type",Boolean)],K6.prototype,"showSpinner_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],K6.prototype,"isOnClickCommand_",void 0);_.u([_.Y({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.W("design:type",Boolean)],K6.prototype,"showMoreContentsButton_",void 0);
_.u([_.Y({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(M,z){return!z||M.entities?null:_.Is(M.entities,"cardItemContainerEntity",z)}}),
_.W("design:type",Object)],K6.prototype,"cardItemContainerEntity_",void 0);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],K6.prototype,"onToggleButton_",null);_.u([_.Xw("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"nextContinuationDataUpdated_",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"dataChanged_",null);_.u([_.la("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"backgroundColorChanged_",null);_.u([_.cU({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],K6);
_.d(K6,"yt-card-item-container-renderer",function(){if(PhV===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;NTv===void 0&&(NTv=document.createElement("template"));var R=NTv;J.call(z,R.content.cloneNode(!0),M.content.firstChild);PhV=M}M=PhV;return M},{mode:2});var $c=function(){return _.g.apply(this,arguments)||this};
_.w($c,_.g);$c.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"}}}};
$c.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
$c.prototype.computeLoadingHidden=function(){var M;return!((M=this.commerceCartPageStateEntity)==null?0:M.cartActionInProgress)};
$c.prototype.updateNotification=function(){var M,z=(M=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:M.summaryText;z&&this.set("data.cartNotification",nr(z))};
$c.prototype.notificationEntityChanged=$c.prototype.notificationEntityChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],$c.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$c.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],$c.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(M,z){return _.Is(M.entities,"commerceCartExpandableNotificationEntity",z)}}),
_.W("design:type",Object)],$c.prototype,"commerceCartExpandableNotificationEntity",void 0);_.u([_.Y({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(M,z){return _.Is(M.entities,"commerceCartPageStateEntity",z)}}),
_.W("design:type",Object)],$c.prototype,"commerceCartPageStateEntity",void 0);_.u([_.Qc("#spinner"),_.W("design:type",HTMLElement)],$c.prototype,"spinner",void 0);_.u([_.la("commerceCartExpandableNotificationEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$c.prototype,"notificationEntityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],$c);
_.d($c,"ytd-commerce-cart-renderer",function(){if(MiB!==void 0)return MiB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return MiB=M},{mode:1});var k2$;var uX=function(){var M=_.g.apply(this,arguments)||this;M.bigImage=!1;return M};
_.w(uX,_.g);_.rX.Object.defineProperties(uX.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.placeholderImageUrl}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uX.prototype,"bigImage",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],uX.prototype,"placeholderImageUrl",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],uX);
_.d(uX,"ytd-empty-product-shelf-renderer",function(){if(k2$!==void 0)return k2$;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return k2$=M},{mode:1});var BTv;var qt=function(){var M=_.g.apply(this,arguments)||this;M.itemStyle="link-item";M.watchMetadataRefresh=!1;M.skinnyMode=!1;M.metaPanel=!1;M.inStructuredDescription=!1;M.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};M.updateOnResizeDebouncer=null;return M};
_.w(qt,_.g);_.P=qt.prototype;_.P.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.P.attachVEs=function(M){M.trackingParams&&_.Gm().graftServerVe(M.trackingParams)};
_.P.handleUpdateMerchShelfAction=function(M){var z=this,J=_.G(M.updateMerchandiseShelfAction.merchandiseShelf,_.AnV);J&&(J.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){z.attachVEs(J);z.data=J},Number(J.renderDelayMs))):(this.attachVEs(J),this.data=J))};
_.P.updateOnResize=function(){if(this.JSC$16745_scrollContainer!==void 0&&this.JSC$16745_scrollContainer.clientWidth!==0&&this.items!==void 0){var M=this.JSC$16745_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_();var z;switch((z=this.data)==null?void 0:z.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var J,
R;((J=this.data)==null?void 0:(R=J.items)==null?void 0:R.length)===1?this.itemStyle="cta-item":this.itemStyle=M>=740?"large-item":"small-item"}}};
_.P.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Iq(this.updateOnResizeDebouncer,_.zx.after(100),this.updateOnResize)};
qt.prototype.debouncedUpdateOnResize=qt.prototype.debouncedUpdateOnResize;qt.prototype.dataChanged=qt.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],qt.prototype,"ytdHorizontalListBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qt.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qt.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qt.prototype,"itemStyle",void 0);_.u([_.Y({value:6}),_.W("design:type",Number)],qt.prototype,"initialCount",void 0);
_.u([_.Y({value:"data.items"}),_.W("design:type",String)],qt.prototype,"itemsPath",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qt.prototype,"watchMetadataRefresh",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qt.prototype,"skinnyMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qt.prototype,"metaPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qt.prototype,"inStructuredDescription",void 0);
_.u([_.Qc("#items"),_.W("design:type",HTMLDivElement)],qt.prototype,"items",void 0);_.u([_.Qc("#scroll-container"),_.W("design:type",HTMLDivElement)],qt.prototype,"JSC$16745_scrollContainer",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qt.prototype,"dataChanged",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qt.prototype,"debouncedUpdateOnResize",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],qt);
_.d(qt,"ytd-merch-shelf-renderer",function(){if(BTv!==void 0)return BTv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BTv=M},{mode:2});var OtB;var WL=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return M};
_.w(WL,_.g);_.P=WL.prototype;
_.P.addBackstagePostAction=function(M){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(M=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",M))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:M}):this.set("data.contents",[{backstagePostThreadRenderer:M}]))};
_.P.addBackstageCommentAction=function(M){var z=this.get("addBackstageCommentAction.parentId",M);M=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",M);if(z&&M){z=this.postIdToIndices(z);for(var J=0;J<z.length;J++){var R=z[J];if(R<0)break;R="data.contents."+R+".backstagePostThreadRenderer.comments";this.get(R)&&(this.get(R+".backstageCommentsRenderer.contents")&&this.push(R+".backstageCommentsRenderer.contents",{commentThreadRenderer:M}),this.get(R+".backstageCommentsRenderer.teaserContents")?
this.push(R+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:M}):this.set(R+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:M}]))}}};
_.P.addBackstageReplyAction=function(M){var z=this.get("addBackstageReplyAction.parentId",M);M=this.get("addBackstageReplyAction.renderer.commentRenderer",M);z&&M&&this.setCreatorReply(z,M)};
_.P.banAuthorAction=function(M){var z=this.get("banAuthorAction.commentId",M);z&&(M=this.get("banAuthorAction.parentCommentId",M)||this.getParentPostId(z),this.removeFromStream(z,M))};
_.P.hideReportedCommentAction=function(M){var z=this.get("hideReportedCommentAction.commentId",M);z&&((M=this.get("hideReportedCommentAction.parentCommentId",M))||(M=this.getParentPostId(z)),this.removeFromStream(z,M))};
_.P.replaceBackstageCommentAction=function(M){var z=this.get("replaceBackstageCommentAction.commentId",M),J=this.get("replaceBackstageCommentAction.parentId",M);M=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",M);if(z&&J&&M){J=this.postIdToIndices(J);for(var R=0;R<J.length;R++){var D=J[R];if(D<0)break;var N=this.commentIdToIndex(z,D,!1);if(N>=0){var Z=this.get("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+N+".commentThreadRenderer.replies.commentRepliesRenderer");
Z&&(M.replies={commentRepliesRenderer:Z});this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",N,1,{commentThreadRenderer:M})}N=this.commentIdToIndex(z,D,!0);if(N>=0){if(Z=this.get("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(N+".commentThreadRenderer.replies.commentRepliesRenderer")))M.replies={commentRepliesRenderer:Z};this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
N,1,{commentThreadRenderer:M})}}}};
_.P.replaceBackstagePostAction=function(M){var z=this.get("replaceBackstagePostAction.itemId",M);if(z){z=this.postIdToIndices(z);for(var J=0;J<z.length;J++){var R=z[J];if(R<0)break;var D=this.getPostRendererType(R),N=this.get("replaceBackstagePostAction.renderer."+D,M);if(!N&&D!=="sharedPostRenderer")break;var Z=!1;N||(Z=!0,N=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",M));if(!N)break;var B={};Z?(_.hh(B,$ov,N),this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
B)):(_.hh(B,new _.R_(D),N),this.set("data.contents."+R+".backstagePostThreadRenderer.post",B))}}};
_.P.replaceBackstageReplyAction=function(M){var z=this.get("replaceBackstageReplyAction.replyId",M),J=this.get("replaceBackstageReplyAction.parentId",M);M=this.get("replaceBackstageReplyAction.renderer.commentRenderer",M);z&&M&&J&&this.setCreatorReply(J,M)};
_.P.removeCommentAction=function(M){var z=this.get("removeCommentAction.commentId",M);if(z){var J=this.get("removeCommentAction.parentCommentId",M);J&&this.get("removeCommentAction.isCreatorReply",M)?this.setCreatorReply(J,void 0):(J||(J=this.getParentPostId(z)),this.removeFromStream(z,J))}};
_.P.setCreatorReply=function(M,z){var J=this.getParentPostId(M);if(J){J=this.postIdToIndices(J);for(var R=0;R<J.length;R++){var D=J[R];if(D<0)break;var N=this.commentIdToIndex(M,D,!1);if(N>=0){var Z="data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+N;N=Z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Z+=".commentThreadRenderer.replies";z==void 0?(this.set(Z,{}),this.set(N,!1)):(this.set(Z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),
this.set(Z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(N,!0))}N=this.commentIdToIndex(M,D,!0);N>=0&&(N="data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+N,D=N+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",N+=".commentThreadRenderer.replies",z==void 0?(this.set(N,{}),this.set(D,!1)):(this.set(N,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),this.set(D,!0)))}}};
_.P.removeFromStream=function(M,z){if(z){z=this.postIdToIndices(z);for(var J=0;J<z.length;J++){var R=z[J];if(R<0)break;var D=this.commentIdToIndex(M,R,!1);D>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",D,1);D=this.commentIdToIndex(M,R,!0);D>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",D,1);R="data.contents."+R+".backstagePostThreadRenderer.post.backstagePostRenderer";
D=R+".backstageAttachment.pollRenderer.votedCommentId";this.get(D)===M&&(this.set(D,null),this.set(R+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(z=this.postIdToIndices(M).reverse(),J=0;J<z.length;J++){R=z[J];if(R<0)break;D=this.getPostRendererType(R);var N=this.get("backstagePostThreadRenderer.post."+D,this.data.contents[R]);N.postId===M?this.splice("data.contents",R,1):D==="sharedPostRenderer"&&this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);N.scheduledPublishTimeSec&&_.S9(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.P.postIdToIndices=function(M){for(var z=[],J=0;J<this.data.contents.length;J++){var R=this.getPostRendererType(J);this.get("backstagePostThreadRenderer.post."+R+".postId",this.data.contents[J])===M&&z.push(J);if(R==="sharedPostRenderer"){var D=this.get("backstagePostThreadRenderer.post."+R+".originalPost.backstagePostRenderer.postId",this.data.contents[J]);R=this.get("backstagePostThreadRenderer.post."+R+".originalPost.postRenderer.postId",this.data.contents[J]);D!==M&&R!==M||z.push(J)}}return z};
_.P.commentIdToIndex=function(M,z,J){if(z<0)return-1;var R,D,N,Z,B=_.G((R=this.data)==null?void 0:(D=R.contents)==null?void 0:(N=D[z])==null?void 0:(Z=N.backstagePostThreadRenderer)==null?void 0:Z.comments,dot);return(z=J?B==null?void 0:B.teaserContents:B==null?void 0:B.contents)&&z.length?z.findIndex(function(O){return _.G(O,Ukg).comment.commentRenderer.commentId===M}):-1};
_.P.getParentPostId=function(M){M=M.split(".");if(M[1])return M[0]};
_.P.getPostRendererType=function(M){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[M])?"sharedPostRenderer":"backstagePostRenderer"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],WL.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],WL.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-backstage-items"})],WL);
_.d(WL,"ytd-backstage-items",function(){if(OtB!==void 0)return OtB;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return OtB=
M},{mode:1});var TTg;var Ixp={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},ax=function(){var M=_.g.apply(this,arguments)||this;M.disablePrescanVisibility=!0;M.canScheduleJobs=!0;M.engagementPanel=!1;M.hidePanelButton=!1;M.isWatchGrid=!1;M.hasShownSubscribersOnlyDisclaimer=!1;M.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return M};
_.w(ax,_.g);_.P=ax.prototype;_.P.created=function(){this.initCommentsCsi_();_.U("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.P.contentsChanged_=function(){var M;(M=this.data)!=null&&M.contents&&this.tickForCommentsTimer_("cml")};
_.P.headerChanged_=function(){var M;(M=this.data)!=null&&M.header&&this.tickForCommentsTimer_("cmhl")};
_.P.initCommentsCsi_=function(){_.nY("wn_comments");var M=_.y5();M&&_.sf({clientScreenNonce:M},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.P.createCommentAction_=function(M){M=_.gu.unsafeClone(M);var z,J;if(M=(z=_.G(M,Bsv))==null?void 0:(J=z.contents)==null?void 0:J.commentThreadRenderer){var R,D,N,Z,B,O;!this.isBackstage&&((R=this.data)==null?0:(D=R.header)==null?0:(N=D.commentsHeaderRenderer)==null?0:(Z=N.createRenderer)==null?0:(B=Z.commentSimpleboxRenderer)==null?0:(O=B.zeroStep)==null?0:O.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var X,
l,e;this.isBackstage&&_.G((X=this.data)==null?void 0:(l=X.header)==null?void 0:(e=l.commentsHeaderRenderer)==null?void 0:e.zeroStateMessage,udu)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(M)}};
_.P.doReplyInsert_=function(M,z,J,R){R?this.splice(M,R,0,z):this.push(M,z)};
_.P.getRepliesPath_=function(M){return"data.contents."+M+".commentThreadRenderer.replies"};
_.P.getRepliesContentsPath_=function(M,z){M=this.getRepliesPath_(M);return z?M+".commentRepliesRenderer.teaserContents":M+".commentRepliesRenderer.contents"};
_.P.showSubscribersOnlyDisclaimer_=function(M){(M=M.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&(_.S9(this.hostElement,"yt-open-popup-action",[M,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.P.createCommentReplyAction_=function(M){M=_.gu.unsafeClone(M);var z=_.G(M,OsS);if(M=z==null?void 0:z.contents){var J=this.commentIdToIndex_(z==null?void 0:z.parentCommentId);if(!(J<0)){var R=this.getRepliesPath_(J);if(this.get(R)){z=z.replyToCommentId;R=this.getRepliesContentsPath_(J,!1);if(this.get(R)){var D=this.get(R).length,N=R+"."+(D-1)+".continuationItemRenderer";this.get(N+".button")?(N=this.replyIdToIndex_(z,J,!1),this.doReplyInsert_(R,M,N,D-1)):this.get(N)||(D=this.replyIdToIndex_(z,J,
!1),this.doReplyInsert_(R,M,D,null))}R=this.getRepliesContentsPath_(J,!0);this.get(R)?(J=this.replyIdToIndex_(z,J,!0),(!z||J>=0)&&this.doReplyInsert_(R,M,J,null)):this.set(R,[M])}else this.set(R,{commentRepliesRenderer:{teaserContents:[M]}})}}};
_.P.hideReportedCommentAction_=function(M){var z=_.G(M,syg);if(M=z==null?void 0:z.commentId)(z=this.get("parentCommentId",z))||(z=this.getParentCommentId_(M)),this.remove_(M,z)};
_.P.getParentCommentId_=function(M){M=M.split(".");if(M[1])return M[0]};
_.P.removeCommentAction_=function(M){var z=_.G(M,lCa);if(M=z==null?void 0:z.commentId)z=(z==null?void 0:z.parentCommentId)||this.getParentCommentId_(M),this.remove_(M,z)};
_.P.pinCommentAction_=function(M){M=_.gu.unsafeClone(M);var z=_.G(M,XR$);z!=null&&z.commentId&&(M=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",M))&&(this.remove_(z.commentId),this.insert_(M,!0))};
_.P.unpinCommentAction_=function(M){M=_.gu.unsafeClone(M);M=_.G(M,evv);if(M!=null&&M.commentId){var z,J,R=(z=M.actionResult)==null?void 0:(J=z.update)==null?void 0:J.commentThreadRenderer;R&&(this.remove_(M.commentId),this.insert_(R))}};
_.P.banAuthorAction_=function(M){var z=_.G(M,kQ$);z!=null&&z.commentId&&(M=z.commentId,z=z.parentCommentId||this.getParentCommentId_(M),this.remove_(M,z))};
_.P.commentIdToIndex_=function(M){var z;return M&&(z=this.data)!=null&&z.contents?this.data.contents.findIndex(function(J){J=J.commentThreadRenderer;var R;return M===((J==null?void 0:J.commentViewModel)&&((R=_.G(J.commentViewModel,jyt))==null?void 0:R.commentId))}):-1};
_.P.insert_=function(M,z){z=z===void 0?!1:z;var J,R;if((J=this.data)==null?0:(R=J.contents)==null?0:R.some(function(N){return!!N.commentThreadRenderer}))for(J=0,R=this.data.contents.length;J<R;J++){var D=this.data.contents[J].commentThreadRenderer;
if(Ixp[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Ixp[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){z&&Ixp[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Ixp[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",J,1,{commentThreadRenderer:M}):this.splice("data.contents",J,0,{commentThreadRenderer:M});break}}else this.set("data.contents",[{commentThreadRenderer:M}])};
_.P.doReplyRemove_=function(M,z,J){M=this.replyIdToIndex_(M,z,J);M<0||(z=this.getRepliesContentsPath_(z,J),this.splice(z,M,1))};
_.P.remove_=function(M,z){z=this.commentIdToIndex_(z);z<0?(z=this.commentIdToIndex_(M),z<0||this.splice("data.contents",z,1)):_.U("web_delhi_comment_threads")||(this.doReplyRemove_(M,z,!1),this.doReplyRemove_(M,z,!0))};
_.P.replyIdToIndex_=function(M,z,J){if(z<0)return-1;z=this.getRepliesContentsPath_(z,J);z=this.get(z);if(!z||!z.length)return-1;J=0;for(var R=z.length;J<R;J++){var D=void 0,N=void 0;if(((D=z[J])==null?void 0:(N=D.commentViewModel)==null?void 0:N.commentId)===M)return J}return-1};
_.P.tickForCommentsTimer_=function(M){_.yC(M,void 0,"wn_comments")};
_.P.reloadComments_=function(M){M=_.G(M,xkv);_.G(M==null?void 0:M.command,_.uP)&&_.kQ(this.hostElement,[M==null?void 0:M.command])};
_.rX.Object.defineProperties(ax.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.data)==null?0:(z=M.header)==null?0:(J=z.commentsHeaderRenderer)==null?0:J.isBackstageContent)}}});
_.rX.Object.defineProperties(ax,{template:{configurable:!0,enumerable:!0,get:function(){if(TTg===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);TTg=M}M=TTg;return M}}});
ax.prototype.showSubscribersOnlyDisclaimer_=ax.prototype.showSubscribersOnlyDisclaimer_;ax.prototype.headerChanged_=ax.prototype.headerChanged_;ax.prototype.contentsChanged_=ax.prototype.contentsChanged_;_.u([_.p(_.N4),_.W("design:type",Object)],ax.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.B2H.YtHostElementBehavior),_.W("design:type",Object)],ax.prototype,"ytHostElementBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",Function)],ax.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.header.commentsHeaderRenderer.isBackstageContent"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ax.prototype,"isBackstage",null);_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"disablePrescanVisibility",void 0);_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"canScheduleJobs",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ax.prototype,"engagementPanel",void 0);
_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"hidePanelButton",void 0);_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"isWatchGrid",void 0);_.u([_.Y(),_.W("design:type",Object)],ax.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.u([_.la("data.contents"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ax.prototype,"contentsChanged_",null);
_.u([_.la("data.header"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ax.prototype,"headerChanged_",null);_.u([_.Xw("yt-show-subscribers-only-disclaimer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ax.prototype,"showSubscribersOnlyDisclaimer_",null);_.u([_.c({is:"ytd-comments"})],ax);var VG=function(){return _.vU.apply(this,arguments)||this};
_.w(VG,_.vU);_.P=VG.prototype;_.P.bindIf=function(M,z,J){return M?z:J};
_.P.bindIfDefined=function(M,z){return M!==void 0?M:z};
_.P.booleanString=function(M){return(!!M).toString()};
_.P.equals=function(){for(var M=_.H4.apply(0,arguments),z=M[0],J=1;J<M.length;J++)if(z!=M[J])return!1;return!0};
_.P.isGreaterThan=function(M,z){return M>z};
_.P.isLessThan=function(M,z){return M<z};
_.P.logicalAND=function(){for(var M=_.H4.apply(0,arguments),z=!!M[0],J=1;J<M.length;J++)z=z&&!!M[J];return z};
_.P.logicalOR=function(){for(var M=_.H4.apply(0,arguments),z=!!M[0],J=1;J<M.length;J++)z=z||!!M[J];return z};
_.P.toBool=function(M){return!!M};
VG.prototype.toBool=VG.prototype.toBool;VG.prototype.logicalOR=VG.prototype.logicalOR;VG.prototype.logicalAND=VG.prototype.logicalAND;VG.prototype.isLessThan=VG.prototype.isLessThan;VG.prototype.isGreaterThan=VG.prototype.isGreaterThan;VG.prototype.equals=VG.prototype.equals;VG.prototype.booleanString=VG.prototype.booleanString;VG.prototype.bindIfDefined=VG.prototype.bindIfDefined;VG.prototype.bindIf=VG.prototype.bindIf;_.u([_.Gp()],VG);_.o0S=[VG.prototype];var XFv;var lxV;var Es=function(){return _.g.apply(this,arguments)||this};
_.w(Es,_.g);Es.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Es.prototype.onBackIconTap_=function(){window.history.back()};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Es.prototype,"data",void 0);_.u([_.cU({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Es);
_.d(Es,"yt-header-with-back-renderer",function(){if(lxV===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;XFv===void 0&&(XFv=document.createElement("template"));var R=XFv;J.call(z,R.content.cloneNode(!0),M.content.firstChild);lxV=M}M=lxV;return M},{mode:2});var e7t;var QaJ;var f6=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(f6,_.g);_.P=f6.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M,this.setUrl())};
_.P.dataChanged=function(){var M=this;if(this.data){var z=this.setUrl();z&&_.Dk({destination:window,iframe:this.iframe,origin:_.Y5u(z.toString()),channelName:"yt-iframe",onMessage:function(J){(J=M.getCommunicationCommand(J.data))&&M.ytComponentBehavior.resolveCommand(J)},
onEstablished:function(){}})}};
_.P.setUrl=function(){if(this.data&&this.data.iframeUrl){var M=_.ho(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(M)return _.W4(this.iframe,M),M}};
_.P.getCommunicationCommand=function(M){var z;if((z=this.data)!=null&&z.onCommunicationCommandsMap){z=this.data.onCommunicationCommandsMap.find(function(D){return D.key===M});
if(z==null?0:z.value)return z==null?void 0:z.value;try{var J=PTJ(_.Ae(M)),R=this.data.onCommunicationCommandsMap.find(function(D){return D.key===(J==null?void 0:J.getMethodName())});
if(R==null?0:R.value)return R==null?void 0:R.value}catch(D){}}};
f6.prototype.dataChanged=f6.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],f6.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],f6.prototype,"data",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],f6.prototype,"isDarkTheme",void 0);_.u([_.Qc("#iframe"),_.W("design:type",HTMLIFrameElement)],f6.prototype,"iframe",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f6.prototype,"dataChanged",null);_.u([_.cU({is:"yt-iframe-renderer",disableElementRegistration:!0})],f6);
_.d(f6,"yt-iframe-renderer",function(){if(QaJ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;e7t===void 0&&(e7t=document.createElement("template"));var R=e7t;J.call(z,R.content.cloneNode(!0),M.content.firstChild);QaJ=M}M=QaJ;return M},{mode:2});_.L6=function(M){_.wS.call(this);this.callback=M;this.bezier=new Ufu(0,0,.4,0,.2,1,1,1);this.delay=new _.Ju(this.next,window,this);this.JSC$16784_animating=!1;_.OC(this,this.delay)};
_.w(_.L6,_.wS);_.L6.prototype.isAnimating=function(){return this.JSC$16784_animating};
_.L6.prototype.start=function(M,z,J){this.config={from:M,to:z,duration:J,startTime:(0,_.zU)()};this.JSC$16784_animating=!0;this.next()};
_.L6.prototype.stop=function(){this.delay.stop();this.JSC$16784_animating=!1;this.config=void 0};
_.L6.prototype.next=function(){if(this.config){var M=this.config,z=M.from,J=M.to,R=M.duration;M=M.startTime;var D=(0,_.zU)()-M;M=this.bezier;R=GmV(M,D/R);if(R==0)M=M.y0;else if(R==1)M=M.y3;else{D=Fd(M.y0,M.y1,R);var N=Fd(M.y1,M.y2,R);M=Fd(M.y2,M.y3,R);D=Fd(D,N,R);N=Fd(N,M,R);M=Fd(D,N,R)}M=_.dy(M,0,1);this.callback(z+(J-z)*M);M<1?this.delay.start():this.JSC$16784_animating=!1}};_.A2=new _.Nh("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var UXu={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},G2V=function(M,z,J,R){_.wS.call(this);this.JSC$16795_miniAppId=M;this.localReleaseId=z;this.derivedDeviceInterface=J;this.isForeground=R;this.JSC$16795_playNonceResolver=new _.Iz;this.playPingTimerId=NaN;this.playPingIntervalMs=_.NC("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.NC("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.U("enable_displaying_ppn");this.JSC$16795_miniAppClientDataProvider=_.JF().resolve(_.A2);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;v0V(this);var D=setTimeout(function(){_.yA(new _.xN("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16795_playNonceResolver.promise.then(function(){clearTimeout(D)})};
_.w(G2V,_.wS);var xXk=function(M,z){M.JSC$16795_playNonceResolver.resolve(z!=null?z:sK(8));M.enableDisplayingPpn&&wFu(M).then(function(J){M.JSC$16795_miniAppClientDataProvider.clientData.set("post_play_nonce",J)})},wFu=function(M){return _.k(function(z){return z.nextAddress==1?z.yield(M.JSC$16795_playNonceResolver.promise,2):z.return(z.yieldResult)})},v0V=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$16795_playNonceResolver.promise,2);z=R.yieldResult;J={miniAppInfo:{externalPostId:M.JSC$16795_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:z,derivedDeviceInterface:M.derivedDeviceInterface}};_.sf(J);_.UI(R)})},jaV=function(M){M.state!==0?_.yA(new _.xN("[MiniAppPlayLogger] recordPlayStart failed with state "+UXu[M.state])):(M.state=1,iX(M,"ma_cl"),C6(M,"PLAY_EVENT_TYPE_PLAY_START"),ti$(M))},pFS=function(M){M.isForeground=!1;
C6(M,"PLAY_EVENT_TYPE_PLAY_PAUSE")},FyQ=function(M){M.state!==1&&M.state!==2?_.yA(new _.xN("[MiniAppPlayLogger] recordPlayEnd failed with state "+UXu[M.state])):(M.state=3,window.clearInterval(M.playPingTimerId),M.playPingTimerId=NaN,P$3(),C6(M,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},YgV=function(M,z){M.state===2&&M.gameReady&&(M.firstClickRecorded?Date.now()-M.clickRecordedMs<M.playClickIntervalMs||(M.clickRecordedMs=Date.now(),C6(M,"PLAY_EVENT_TYPE_PLAY_CLICK")):z&&(iX(M,"ma_fua"),C6(M,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),M.firstClickRecorded=!0,M.clickRecordedMs=Date.now()))};
G2V.prototype.logError=function(M){var z=this,J;_.k(function(R){if(R.nextAddress==1)return M.metadata.externalPostId=z.JSC$16795_miniAppId,J=M.metadata,R.yield(Promise.race([z.JSC$16795_playNonceResolver.promise,new Promise(function(D){setTimeout(function(){D("")},3E4)})]),2);
J.postPlayNonce=R.yieldResult;M.metadata.localReleaseId=z.localReleaseId;M.loggingError.level="WARNING";_.nc(M.loggingError,M.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:M.metadata});_.UI(R)})};
var mXt=function(M,z,J,R){var D,N,Z,B,O,X;_.k(function(l){if(l.nextAddress==1)return l.yield(M.JSC$16795_playNonceResolver.promise,2);D=l.yieldResult;N={externalPostId:M.JSC$16795_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:D,sdkVersion:J,api:z};R!==void 0&&(N.networkRequestsMeasurement={networkRequests:_.R2(R,1),cachedRequests:_.R2(R,2),transferredBytes:_.R2(R,3)},(Z=R)==null?0:_.wo(Z,RR,6))&&(N.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((B=_.DG(R,
RR,6))==null?void 0:H9(B,1))||"0",cacheHits:((O=_.DG(R,RR,6))==null?void 0:H9(O,2))||"0",cachedBytes:((X=_.DG(R,RR,6))==null?void 0:H9(X,3))||"0"});_.gP("miniAppSdkUsage",N);_.UI(l)})},saS=function(M,z,J){var R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q;
_.k(function(b){if(b.nextAddress==1)return b.yield(M.JSC$16795_playNonceResolver.promise,2);R=b.yieldResult;D={externalPostId:M.JSC$16795_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:R,sdkVersion:J,measurementWindow:{startTimestampMs:String(sD(z,1)),endTimestampMs:String(sD(z,2))},frameRate:{averageFrameTimeDeltaMs:ny(z,3),averageFrameIdleTimeMs:ny(z,4)}};_.wo(z,DB,5)&&(D.networkRequests={networkRequests:(N=O4(z))==null?void 0:_.R2(N,1),cachedRequests:(Z=O4(z))==null?void 0:_.R2(Z,2),transferredBytes:(B=
O4(z))==null?void 0:_.R2(B,3),sameOriginStatusCodeToCounts:g0Q((O=O4(z))==null?void 0:FdY(O,4)),crossOriginStatusCodeToCounts:g0Q((X=O4(z))==null?void 0:FdY(X,5))},(l=O4(z))==null?0:_.wo(l,RR,6))&&(D.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((e=O4(z))==null?void 0:(Q=_.DG(e,RR,6))==null?void 0:H9(Q,1))||"0",cacheHits:((v=O4(z))==null?void 0:(x=_.DG(v,RR,6))==null?void 0:H9(x,2))||"0",cachedBytes:((m=O4(z))==null?void 0:(y=_.DG(m,RR,6))==null?void 0:H9(y,3))||"0"});_.wo(z,
yv$,7)&&(D.gameCapture={averageFrameTimeDeltaMs:(H=_.DG(z,yv$,7))==null?void 0:ny(H,1),averageFrameIdleTimeMs:(q=_.DG(z,yv$,7))==null?void 0:ny(q,2)});_.gP("miniAppPerformanceMetrics",D);_.UI(b)})},n0J=function(M,z){var J,R;
return _.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$16795_playNonceResolver.promise,2);J=D.yieldResult;R={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:M.JSC$16795_miniAppId,postPlayNonce:J,miniAppReleaseId:M.localReleaseId},derivedDeviceInterface:M.derivedDeviceInterface,adTriggerType:z,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.gP("miniAppAdEvent",R);_.UI(D)})};
G2V.prototype.disposeInternal=function(){_.wS.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var C6=function(M,z,J,R){J=J===void 0?{}:J;R=R===void 0?!1:R;var D,N,Z,B;_.k(function(O){if(O.nextAddress==1)return D=M.isForeground,N=M.beforeReady,O.yield(M.JSC$16795_playNonceResolver.promise,2);Z=O.yieldResult;B={externalPostId:M.JSC$16795_miniAppId,localReleaseId:M.localReleaseId,derivedDeviceInterface:M.derivedDeviceInterface,postPlayNonce:Z,type:z};J.sequenceGroup=Z;B.playState=N?"PLAY_STATE_NOT_READY":D?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.gP("miniAppPlayEvent",B,
J);R&&_.sB();_.UI(O)})},iX=function(M,z){var J;
_.k(function(R){if(R.nextAddress==1)return J=(0,_.zU)(),R.yield(M.JSC$16795_playNonceResolver.promise,2);_.hd(z,J);_.UI(R)})},ti$=function(M){isNaN(M.playPingTimerId)&&(M.playPingTimerId=_.O7(function(){M.state!==1&&M.state!==2?_.yA(new _.xN("[MiniAppPlayLogger] reportPlayPing failed with state "+UXu[M.state])):C6(M,"PLAY_EVENT_TYPE_PLAY_PING")},M.playPingIntervalMs))},g0Q=function(M){return Array.from(M.entries()).map(function(z){var J=_.S(z);
z=J.next().value;J=J.next().value;return{key:z,value:J}})};var h7p=function(){},ycp=function(M,z){M.showMiniAppAdCommand=z.showMiniAppAdCommand;
M.isEmbeddedInWebview=z.isEmbeddedInWebview;M.playLogger=z.playLogger},ccu=function(M,z){var J;
return _.k(function(R){if(R.nextAddress==1){if(!M.showMiniAppAdCommand||!M.isEmbeddedInWebview)return R.return(Hta(M,z));M.adResolver=new _.Iz;var D=new cc;J=_.Nc(D,3,z);cX(M.showMiniAppAdCommand,OC2(J));return R.yield(M.adResolver.promise,2)}return R.return(R.yieldResult)})};
h7p.prototype.onAdFinished=function(M){M=ToS(M);var z;(z=this.adResolver)==null||z.resolve(M)};
var Hta=function(M,z){var J;return _.k(function(R){if(R.nextAddress==1)R=R.yield((J=M.playLogger)==null?void 0:n0J(J,$QG(z)),2);else{var D=R.return;var N=new Oyu;N=_.Nc(N,1,2);R=D.call(R,N)}return R})};var dX2=new _.Nh("INNERTUBE_MANAGER_TOKEN");var Kyg=function(){this.callbacks={}};
Kyg.prototype.initialize=function(M){var z=this;this.callbacks=M;window.youtubewebview?window.youtubewebview.onmessage=function(J){$XV(z,J)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(J){$XV(z,J)})};
var $XV=function(M,z){if(z.data)try{var J=PTJ(z.data);if(_.ov(_.Gj(J,1))!=null){var R=Nd$(_.hv(J,2));switch(J.getMethodName()){case "yt-mini-app-load-audio-state":var D,N;(N=(D=M.callbacks).onAudioStateLoaded)==null||N.call(D,_.go(R,UB(R,Hc,1)));break;case "yt-mute-mini-app":var Z,B;(B=(Z=M.callbacks).onMuteMiniApp)==null||B.call(Z);break;case "yt-unmute-mini-app":var O,X;(X=(O=M.callbacks).onUnmuteMiniApp)==null||X.call(O);break;case "yt-playable-exit":var l,e;(e=(l=M.callbacks).onExit)==null||e.call(l);
break;case "yt-post-play-nonce":var Q,v;(v=(Q=M.callbacks).onPostPlayNonceReceived)==null||v.call(Q,c9(R,2,Hc));break;case "yt-confirm-exit-mini-app":var x,m;(m=(x=M.callbacks).confirmExitMiniApp)==null||m.call(x);break;case "yt-confirm-exit-mini-app-edu":var y,H;(H=(y=M.callbacks).confirmExitMiniAppEdu)==null||H.call(y);break;case "yt-benchmarking-response":var q,b;(b=(q=M.callbacks).onNativeBenchmarkingMessageReceived)==null||b.call(q,c9(R,2,Hc));break;case "yt-mini-app-load-3p-consent-state":var V,
E;(E=(V=M.callbacks).multiplayer3pAckStateLoaded)==null||E.call(V,_.go(R,UB(R,Hc,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var L,z8;(z8=(L=M.callbacks).exitMiniAppSeenStateLoaded)==null||z8.call(L,_.go(R,UB(R,Hc,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var O8,I3;(I3=(O8=M.callbacks).onNavigateToNewMiniApp)==null||I3.call(O8);break;case "yt-game-data-available":var vY,te;(te=(vY=M.callbacks).onGameDataAvailable)==null||te.call(vY,c9(R,2,Hc));break;case "yt-pause-mini-app":var wR,
qb;(qb=(wR=M.callbacks).onPauseMiniApp)==null||qb.call(wR);break;case "yt-resume-mini-app":var cY,Pu;(Pu=(cY=M.callbacks).onResumeMiniApp)==null||Pu.call(cY);break;case "yt-playable-ad-finished":var yV,Ik;(Ik=(yV=M.callbacks).onAdFinished)==null||Ik.call(yV,c9(R,2,Hc))}}else _.yA(Error("Sh"))}catch(rR){_.nc(Error("Th"))}else _.yA(Error("Uh"))};var qiG=function(M){this.rpcErrorCode=M};var bX=function(M,z,J){this.intervalMs=M;this.apiFunc=z;this.type=J;this.schedulerReady=!0};
bX.prototype.call=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1){if(z.type!==1&&M===z.cachedValue)return R.return();z.pendingApiRequestResolver||(z.pendingApiRequestResolver=new _.Iz);J=z.pendingApiRequestResolver.promise;z.cachedValue=M;return R.yield(uIQ(z),2)}return R.return(J)})};
bX.prototype.flush=function(M){M=M===void 0?!1:M;var z=this;return _.k(function(J){return z.cachedValue===void 0?J.return():J.yield(z.apiFunc(z.cachedValue,M),0)})};
var uIQ=function(M){var z,J,R;return _.k(function(D){switch(D.nextAddress){case 1:if(!M.schedulerReady||!M.pendingApiRequestResolver)return D.return();M.schedulerReady=!1;z=M.pendingApiRequestResolver;M.pendingApiRequestResolver=void 0;_.Io(D,2);if(M.cachedValue===void 0){D.jumpTo(4);break}return D.yield(M.apiFunc(M.cachedValue),5);case 5:J=D.yieldResult,z.resolve(J);case 4:_.ab(D,3);break;case 2:R=_.Qa(D),z.reject(R);case 3:setTimeout(function(){return _.k(function(N){M.schedulerReady=!0;return N.yield(uIQ(M),
0)})},M.intervalMs),_.UI(D)}})};var VVn=window.location.origin+"/miniapp_cloudsaves",WI0=[400,401],qg$=_.NC("cloud_save_game_data_rate_limit_ms",3E3),Vit=function(M){var z=this;this.JSC$16839_miniAppId=M;this.loadAttempts=0;this.cloudSaveIntervalMs=qg$;this.initialDownloadDataSucceeded=!1;this.JSC$16839_playNonceResolver=new _.Iz;this.scottyUploadRateLimiter=new bX(this.cloudSaveIntervalMs,function(J,R){return WyV(z,J,R)},2);
this.downloadDataPromise=axV(this);this.downloadDataPromise.then(function(){z.initialDownloadDataSucceeded=!0}).catch(function(){})},E0Q=function(M,z){z.then(function(J){return M.JSC$16839_playNonceResolver.resolve(J)})},fxQ=function(M){return _.k(function(z){return M.cachedData===void 0?z.return(M.downloadDataPromise):z.return(M.cachedData)})},LyS=function(M,z){return _.k(function(J){M.cachedData=z;
if(!M.initialDownloadDataSucceeded)throw Error("Vh");return J.yield(M.scottyUploadRateLimiter.call(z),0)})},Acu=function(){return new Promise(function(M){setTimeout(M,1E3,"")})},itJ=function(M,z){var J,R;
return _.k(function(D){if(D.nextAddress==1)return J=M.JSC$16839_miniAppId,D.yield(Promise.race([M.JSC$16839_playNonceResolver.promise,Acu()]),2);R={"X-YouTube-MiniAppId":J,"X-YouTube-PostPlayNonce":D.yieldResult};"DELEGATED_SESSION_ID"in _.hg&&KVH(z,R);return D.return(R)})},WyV=function(M,z,J){J=J===void 0?!1:J;
return _.k(function(R){return uv0()?_.U("enable_cloud_save_error_popup_after_retry")?R.return(new Promise(function(D,N){var Z,B,O,X,l;return _.k(function(e){switch(e.nextAddress){case 1:Z=0,B=!0,X=O=null;case 2:if(!(B&&Z++<2)){e.jumpTo(4);break}_.Io(e,5);return e.yield(ChV(M,z,J),7);case 7:O=e.yieldResult;B=O.ok?!1:!WI0.includes(O.status);_.ab(e,2);break;case 5:X=l=_.Qa(e);B=aYG(X);e.jumpTo(2);break;case 4:O?O.ok?(r9(M,qg$),D()):(r9(M,M.cloudSaveIntervalMs*2),N(Error("Wh`"+String(O.status),{cause:{rpcErrorCode:O.status}}))):
(r9(M,M.cloudSaveIntervalMs*2),N(X||Error("Xh"))),_.UI(e)}})})):R.return(new Promise(function(D,N){var Z,B;
return _.k(function(O){if(O.nextAddress==1){if(M.JSC$16839_miniAppId==="")return N(Error("Yh")),O.return();_.Io(O,2);return O.yield(ChV(M,z,J),4)}if(O.nextAddress!=2)return Z=O.yieldResult,Z.ok?(r9(M,qg$),D()):(r9(M,M.cloudSaveIntervalMs*2),N(Error("Wh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))),_.ab(O,0);B=_.Qa(O);r9(M,M.cloudSaveIntervalMs*2);N(B);_.UI(O)})})):R.return()})},ChV=function(M,z,J){J=J===void 0?!1:J;
var R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return R=_.YG((new TextEncoder).encode(z)),D=ELn(),Z.yield(itJ(M,D),2);N=Z.yieldResult;return Z.return(fetch(D,{method:"POST",body:new Blob([R]),headers:N,keepalive:J}))})},axV=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1){if(!uv0())return R.return("");if(M.JSC$16839_miniAppId==="")throw Error("Yh");if(M.loadAttempts>2)return R.return(M.downloadDataPromise);_.Io(R,2);return R.yield(bt$(M),4)}if(R.nextAddress!=2)return z=R.yieldResult,R.return(z);J=_.Qa(R);if(aYG(J)&&++M.loadAttempts<2)return R.return(axV(M));throw J;})},bt$=function(M){var z,J,R,D,N;
return _.k(function(Z){switch(Z.nextAddress){case 1:return _.Io(Z,2),z=ELn(),Z.yield(itJ(M,z),4);case 4:return J=Z.yieldResult,Z.yield(fetch(z,{method:"GET",headers:J}),5);case 5:return R=Z.yieldResult,R.ok?Z.yield(R.text(),6):Z.return(Promise.reject(Error("Zh`"+String(R.status),{cause:new qiG(R.status)})));case 6:return D=Z.yieldResult,Z.return((new TextDecoder).decode(_.Ae(D)));case 2:return N=_.Qa(Z),Z.return(Promise.reject(N))}})},r9=function(M,z){M.cloudSaveIntervalMs=z;
M.scottyUploadRateLimiter.intervalMs=M.cloudSaveIntervalMs};
Vit.prototype.flush=function(){var M=this;return _.k(function(z){return M.initialDownloadDataSucceeded?z.yield(M.scottyUploadRateLimiter.flush(!0),0):z.return()})};var rcp=kB(ZB(1),Pc(1)),Mju=kB(ZB(1),Pc(3)),MT=function(M){this.callbacks=M};
_.P=MT.prototype;_.P.onAudioToggled=function(M,z){(z===void 0||z)&&_.Qo("yt-mini-app-is-audio-enabled",M,2592E3)};
_.P.onPause=function(){this.onAudioToggled(!1,!1)};
_.P.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.P.returnNativeBenchmarkingMessage=function(){};
_.P.sendGameData=function(){};
_.P.sendStartGameFrameCapture=function(){};
var fYn=function(M,z,J){this.callbacks=M;var R=this;this.sdkVersion=new _.Iz;this.channel=new ngn(_.Dk({destination:window,iframe:z,origin:(new URL(J.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var D=zR;var N=ZB(5);var Z=new GjV;Z=_.$I(Z,1,1E4);N=_.Xq(N,4,m8v,Z);D(R,N);R.onAudioToggled(R.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){R.sdkVersion.resolve("")},1E4)};
_.w(fYn,MT);_.P=fYn.prototype;_.P.onAudioToggled=function(M,z){MT.prototype.onAudioToggled.call(this,M,z===void 0?!0:z);z=zR;var J=ZB(2),R=new U8u;M=_.SJ(R,1,M);M=_.Xq(J,3,m8v,M);z(this,M)};
_.P.onPause=function(){MT.prototype.onPause.call(this);zR(this,ZB(3))};
_.P.onResume=function(){MT.prototype.onResume.call(this);zR(this,ZB(4))};
_.P.returnNativeBenchmarkingMessage=function(M){var z=zR,J=ZB(6);var R=Pc(_.wo(M,CQ,1)?1:2);M=_.wo(M,CQ,1)?M:null;R=_.Xq(R,5,SO,M);z(this,kB(J,R))};
_.P.sendGameData=function(M){var z=zR,J=ZB(7);M=_.Xq(J,5,m8v,M);z(this,M)};
_.P.sendStartGameFrameCapture=function(){zR(this,ZB(9))};
var JD=function(M,z,J){var R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return R=M.callbacks,D=R.onSdkCalled,N=z,Z.yield(M.sdkVersion.promise,2);D.call(R,N,Z.yieldResult,J);_.UI(Z)})};
fYn.prototype.onMessage=function(){var M=this;return H5G(TO,function(z){var J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8,I3,vY,te,wR,qb,cY,Pu,yV,Ik,rR,ea,ok,s$,pw,iJ,Nb,MB,vu,Tc,Gt,zc,My,MN;return _.k(function(ZV){switch(ZV.nextAddress){case 1:if(!Kek(z.data))return _.yA(Error("$h")),ZV.return();J=_.yE(z.data,1);_.U("enable_iframe_message_get_type_via_fields")&&(R=z.data,J=D=_.yE(R,1));switch(J){case 8:if(z.data.hasMetadata()){var Lv=M.sdkVersion,em=Lv.resolve;var FQ=z.data.getMetadata();FQ=_.hv(FQ,
1);em.call(Lv,FQ);clearTimeout(M.sdkVersionTimeoutId)}break;case 6:return ZV.jumpTo(2);case 16:if(!_.xI(z.data,nIa,14,IR))return ZV.return();N=_.Ky(z.data,nIa,14,IR);(B=(Z=M.callbacks).onGameFrameReceived)==null||B.call(Z,N);return ZV.return();case 17:if(!_.xI(z.data,sJQ,15,IR))return ZV.return();(X=(O=M.callbacks).onGameAudioReceived)==null||X.call(O,_.Ky(z.data,sJQ,15,IR));return ZV.return();case 1:if(Lv=_.Ky(z.data,ts2,2,IR))switch(_.yE(Lv,1)){case 1:M.callbacks.onFirstFrameReady();if(_.U("enable_network_request_logging_on_game_events")&&
_.wo(Lv,DB,4)){JD(M,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.DG(Lv,DB,4));break}JD(M,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(FQ=(em=M.callbacks).onGameReady)==null||FQ.call(em);if(_.U("enable_network_request_logging_on_game_events")&&_.wo(Lv,DB,4)){JD(M,"MINI_APP_SDK_API_GAME_READY",_.DG(Lv,DB,4));break}JD(M,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.xI(Lv,Nj,3,jJu))M.callbacks.onResourceLoaded(_.Ky(Lv,Nj,3,jJu))}return ZV.return();case 3:return ZV.jumpTo(3);case 4:return ZV.jumpTo(4);
case 2:return ZV.jumpTo(5);case 9:return ZV.jumpTo(6);case 10:return M.callbacks.onClick(),ZV.return();case 5:return ZV.jumpTo(7);case 11:if(!_.xI(z.data,zO,9,IR))return ZV.return();l=_.Ky(z.data,zO,9,IR);(Q=(e=M.callbacks).onBenchmarkingMessageReceived)==null||Q.call(e,l);Lv=z.reply;em=ZB(1);FQ=Pc(1);var Yp=new zO;var Gc=new Uint8Array(R9p(l,UB(l,oIJ,6))|0);Yp=of(Yp,5,oIJ,_.pv(Gc,!1));FQ=_.Xq(FQ,5,SO,Yp);Lv.call(z,kB(em,FQ));return ZV.return();case 12:return ZV.jumpTo(8);case 13:return ZV.jumpTo(9);
case 15:if(!_.U("enable_open_yt_content"))return z.reply(Mju),ZV.return();if(!_.xI(z.data,gIp,12,IR))return z.reply(kB(ZB(1),Pc(2))),ZV.return();Lv=_.Ky(z.data,gIp,12,IR);v=_.hv(Lv,1);M.callbacks.onOpenYTContent(v);z.reply(rcp);return ZV.return();case 14:return ZV.jumpTo(10);default:return ZV.return()}ZV.jumpTo(0);break;case 2:if(!_.xI(z.data,Bc,5,IR))return ZV.return();em=z.data;Lv=UB(em,IR,5);em=em.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=nGw(em,em[_.NB]|0,Bc,Lv)||Bc[ySn]||(Bc[ySn]=
Hvc(Bc));Lv=_.zz(x,JV,1,_.JK());m=_.S(Lv);y=m.next();case 12:if(y.done){ZV.jumpTo(14);break}H=y.value;q=new _.xN;q.level=_.yE(H,2)===1?"WARNING":"ERROR";b=AR0(H.getSource());return ZV.yield(M.sdkVersion.promise,15);case 15:V={source:b,sdkVersion:ZV.yieldResult};_.Cv(_.Gj(H,6))!=null?(q.message=H.getMessage(),q.stack=_.hv(H,5),V.sdkErrorType=i$w(_.yE(H,6)),_.Cv(_.Gj(H,7))!=null&&(V.sdkApi=CBw(_.yE(H,7)))):q.stack=void 0;L=E=void 0;(L=(E=M.callbacks).onError)==null||L.call(E,{loggingError:q,metadata:V});
y=m.next();ZV.jumpTo(12);break;case 14:return ZV.return();case 3:return _.Io(ZV,16),Lv=ZV.yield,em=M.callbacks,FQ=em.onSave,Yp=_.Ky(z.data,vIt,4,IR),Yp=_.hv(Yp,1),Lv.call(ZV,FQ.call(em,Yp),18);case 18:z.reply(rcp);_.ab(ZV,17);break;case 16:return z8=_.Qa(ZV),O8=dF,I3=z8,vY=M.callbacks,te="MINI_APP_SDK_API_SAVE_DATA",ZV.yield(M.sdkVersion.promise,19);case 19:O8(I3,vY,te,ZV.yieldResult),z.reply(Mju);case 17:return ZV.yield(JD(M,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return ZV.return();case 4:return _.Io(ZV,
21),ZV.yield(M.callbacks.onLoad(),23);case 23:wR=ZV.yieldResult;Lv=z.reply;em=ZB(1);FQ=Pc(1);Yp=new vIt;Yp=_.G$(Yp,1,wR);FQ=_.Xq(FQ,3,SO,Yp);Lv.call(z,kB(em,FQ));_.ab(ZV,22);break;case 21:return qb=_.Qa(ZV),cY=dF,Pu=qb,yV=M.callbacks,Ik="MINI_APP_SDK_API_LOAD_DATA",ZV.yield(M.sdkVersion.promise,24);case 24:cY(Pu,yV,Ik,ZV.yieldResult),z.reply(Mju);case 22:return ZV.yield(JD(M,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ZV.return();case 5:_.Io(ZV,26);M.callbacks.onSendHighScore(sC(_.Ky(z.data,
cvQ,3,IR).getValue()));z.reply(kB(ZB(1),Pc(1)));_.ab(ZV,27);break;case 26:return rR=_.Qa(ZV),ea=dF,ok=rR,s$=M.callbacks,pw="MINI_APP_SDK_API_SEND_SCORE",ZV.yield(M.sdkVersion.promise,28);case 28:ea(ok,s$,pw,ZV.yieldResult),z.reply(Mju);case 27:return ZV.yield(JD(M,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ZV.return();case 6:if(!_.xI(z.data,d8S,8,IR)){ZV.jumpTo(30);break}Lv=ZV.yield;em=_.Ky(z.data,d8S,8,IR);em=_.yE(em,1);return Lv.call(ZV,JD(M,CBw(em)),30);case 30:return ZV.return();case 7:return Lv=
z.reply,em=ZB(1),FQ=Pc(1),Yp=M.callbacks.getLanguage(),FQ=of(FQ,4,SO,O5(Yp)),Lv.call(z,kB(em,FQ)),ZV.yield(JD(M,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ZV.return();case 8:if(!_.xI(z.data,Hya,10,IR))return ZV.return();iJ=_.Ky(z.data,Hya,10,IR);Nb=M.callbacks;MB=Nb.onSdkPerformanceUpdate;return ZV.yield(M.sdkVersion.promise,33);case 33:return MB.call(Nb,iJ,ZV.yieldResult),ZV.return();case 9:Lv=z.data;em=UB(Lv,IR,11);if(_.ov(_.Gj(Lv,em))==null)return z.reply(kB(ZB(1),Pc(2))),ZV.return();
vu=c9(z.data,11,IR);M.callbacks.onShareInviteCode(vu);z.reply(rcp);return ZV.yield(JD(M,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return ZV.return();case 10:if(_.xI(z.data,QJ$,13,IR)){ZV.jumpTo(35);break}return ZV.yield(M.callbacks.onShowMiniAppAd(2),36);case 36:return Tc=ZV.yieldResult,z.reply(kB(ZB(1),FeJ(Tc))),ZV.yield(JD(M,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ZV.return();case 35:Lv=_.Ky(z.data,QJ$,13,IR);a:switch(_.yE(Lv,1)){case 1:Lv={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Lv={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Lv={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Gt=Lv;zc=Gt.adType;My=Gt.sdkApi;Lv=ZV.yield;em=M.callbacks;FQ=em.onShowMiniAppAd;Yp=_.Ky(z.data,QJ$,13,IR);Yp=_.hv(Yp,2);return Lv.call(ZV,FQ.call(em,zc,Yp||void 0),38);case 38:return MN=ZV.yieldResult,z.reply(kB(ZB(1),FeJ(MN))),ZV.yield(JD(M,My),39);case 39:return ZV.return()}})})};
var zR=function(M,z){_.k(function(J){M.channel.send(z);_.UI(J)})},Kr=function(M,z,J){this.callbacks=M;
var R=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;M=WA8(z,(new URL(J.toString())).origin);this.gameSnacks=new AZY(M);this.gameSnacks.page.onReady(function(){R.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){R.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var D,N;(N=(D=R.callbacks).onGameReady)==null||N.call(D)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(D,N){try{R.callbacks.onSendHighScore(N)}catch(Z){dF(Z,R.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(D,N){var Z;return _.k(function(B){if(B.nextAddress==1)return _.Io(B,2),B.yield(R.callbacks.onSave(R.decoder.decode(N)),4);if(B.nextAddress!=2)return _.ab(B,0);Z=_.Qa(B);dF(Z,R.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return B.return()})});
this.gameSnacks.storage.onLoad(function(){var D,N;return _.k(function(Z){if(Z.nextAddress==1)return _.Io(Z,2),Z.yield(R.callbacks.onLoad(),4);if(Z.nextAddress!=2)return D=Z.yieldResult,Z.return(R.encoder.encode(D));N=_.Qa(Z);dF(N,R.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Z.return(R.encoder.encode(""))})});
this.gameSnacks.init()};
_.w(Kr,MT);Kr.prototype.onAudioToggled=function(M,z){MT.prototype.onAudioToggled.call(this,M,z===void 0?!0:z);var J;(J=this.gameSnacks)==null||J.audio.update(M)};
Kr.prototype.onPause=function(){MT.prototype.onPause.call(this);var M;(M=this.gameSnacks)==null||M.game.pause()};
Kr.prototype.onResume=function(){MT.prototype.onResume.call(this);var M;(M=this.gameSnacks)==null||M.game.resume()};var z9Q=b$3,JWB=_.Mf(function(M){var z=M.data;var J=M.loadingProgress;var R=M.forPaused;M=_.S(_.kE("",void 0,"H20Jvc"));var D=M.next().value,N=M.next().value;M=_.S(_.kE(!1,void 0,"wB49T"));var Z=M.next().value,B=M.next().value,O=[],X=function(){return"transform: scaleX("+(_.YE(J)||0)+")"},l=null,e=function(){return z()&&l!==null&&l!==void 0?l:l=z().showAnniversaryAnimation?6:z9Q()};
_.jP(function(){var m;if(z().timeOutMessages&&((m=z().timeOutMessages)==null?0:m.length)){l=null;m=_.S(O);for(var y=m.next();!y.done;y=m.next())clearTimeout(y.value);O.length=0;rRe(z().timeOutMessages,O,N,B)}},"BsN3G");
var Q=function(){return!!z().persistentErrorMessageTitle},v=function(){return J!==void 0},x=function(){return z().title};
return _.T("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var m,y=(m=z().backgroundImage)==null?void 0:m.sources,H;return(y==null?0:y.length)?"background-image: url("+((H=y[0])==null?void 0:H.url)+")":
""}}),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.T(_.I,{cond:function(){return!Q()&&!(R==null?0:R())},
then:function(){var m={};return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.T(_.xK,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+e()},
data:function(){var y="loading_animation_"+e();return{animationConfig:{name:y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+y+".json",loop:!0,autoplay:!0}}}})),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.T(_.I,{cond:x,
then:function(){return _.T("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},x)}}),_.T("p",{class:_.Qe("mini-app-splash-screen-view-model-wiz__timeout-message",(m["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return Z()},m)),
"aria-live":"polite"},D),_.T(_.I,{cond:v,then:function(){return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:X}))}})))}}),_.T(_.I,{cond:Q,
then:function(){return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.T("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return z().persistentErrorMessageTitle}),_.T(_.I,{cond:function(){return!!z().persistentErrorMessageDescription},
then:function(){return _.T("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return z().persistentErrorMessageDescription})}}))}}),_.T(_.I,{cond:R,
then:function(){return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__pause-content"},_.T("img",{class:"mini-app-splash-screen-view-model-wiz__pause-icon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.T("h3",{class:"mini-app-splash-screen-view-model-wiz__pause-message"},x))}})))},"je");var R9v=new _.Nh("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var DRu=Lq;Lq=function(M){function z(J){if(J){var R,D;(R=J.__spec)==null||(D=R.didUnmount)==null||D.call(R);for(R=0;R<J.childNodes.length;R++)z(J.childNodes[R])}}
DRu==null||DRu(M);sU(function(){for(var J=0;J<M.length;J++)z(M[J])})};var NnS=_.Mf(function(M){var z=M.data;var J=M.score;var R=M.formattedScore;var D=M.onScoreChanged;var N=M.isEmbeddedInWebview;var Z=_.iW("yt-mini-app-score-button-view-model"),B=function(){var v;return _.G(z==null?void 0:(v=z())==null?void 0:v.buttonViewModel,_.s3)},O=function(){var v;
return(J==null?void 0:J())||Number(z==null?void 0:(v=z())==null?void 0:v.lastScore)||0},X=function(){var v;
return(R==null?void 0:R())||((v=B())==null?void 0:v.title)||""},l,e=1;
if(M=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))M=Number(M),e=isNaN(M)?1:M/100;_.jP(function(){D==null||D(O());var v;var x=_.$S((v=B())==null?void 0:v.onTap);if(x){v=_.G(x,QVQ);var m,y,H;v=_.G(v==null?void 0:(m=v.panelLoadingStrategy)==null?void 0:(y=m.inlineContent)==null?void 0:(H=y.dialogViewModel)==null?void 0:H.customContent,TdV)}else v=void 0;if(m=v)m.score=X()},"KZFi5e");
M=_.ol(function(){var v,x,m=z==null?void 0:(v=z())==null?void 0:(x=v.loggingDirectives)==null?void 0:x.trackingParams;m&&_.Ub(_.JF().resolve(_.hs),m);return!1});
_.mF(function(){if(Z.value){var v=Z.value.querySelector("button"),x=B();v&&x&&Mvw(v,x);MS("yt-share-playable-with-high-score",function(){var m=O().toString(),y=z==null?void 0:z().onShareHighScoreCommand,H=z==null?void 0:z().highScoreShareClientParamIdentifier,q=N==null?void 0:N();y&&(q?(H=new PnV,m=_.G$(H,2,m),cX(y,m.JSC$12281_serializeBinary())):H&&(_.JF().resolve(R9v).clientParams.set(H,{miniAppClientParams:{highScore:m}}),H$n(y,!1)))})}});
var Q=function(){var v=B();v&&(J==null?0:J())&&v.accessibilityText&&(v.accessibilityText=v.accessibilityText.replace(l,X()));l=X();return{numberValue:O(),numberText:X(),heightPx:36,fontSizeMultiplier:e,shouldAnimate:!(J==null||!J())&&!0}};
return _.T("yt-mini-app-score-button-view-model",{class:function(){var v={};return _.jF("mini-app-score-button-view-model-wiz",(v["mini-app-score-button-view-model-wiz--is-visible"]=O()!==0,v))},
el:Z,"on:click":M},eXY(!1,function(){return _.T("span",{style:"display:none;"},O)}),_.T(_.t_,{data:function(){var v;
return z==null?void 0:(v=z())==null?void 0:v.buttonViewModel}},{buttonViewModel:function(v){return _.T(_.lT,{data:v.data,
animatedTextProps:Q})}}))},"ke");var Bnp=_.Mf(function(M){var z,J=(z=_.UE("yt-mini-app-is-theater-mode-enabled"))!=null?z:!1,R=_.U("enable_playable_container_save_button"),D=_.U("enable_play_next_destination_page_in_toolbar");z={};return _.T("ytm-mini-app-top-bar-view-model",null,_.T("div",{class:_.Qe("yt-mini-app-top-bar-view-model",(z["yt-mini-app-top-bar-view-model--mobile"]=!1,z["yt-mini-app-top-bar-view-model--desktop"]=!0,z))},_.T("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.T(_.I,{cond:function(){var N;
return!!M.data().backButtonEdu&&!((N=M.isExitMiniAppSeen)==null?0:N.call(M))},
then:function(){return _.T(_.t_,{data:function(){return M.data().backButtonEdu}},{buttonViewModel:_.lT})},
else:function(){return _.T(_.t_,{data:function(){return M.data().backButton}},{buttonViewModel:_.lT})}}),_.T(_.I,{cond:function(){return M.data().viewAllButton&&!0},
then:function(){return _.T(_.t_,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.lT})}}),_.T(_.I,{cond:function(){return M.data().title&&!0},
then:function(){return _.T("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return M.data().title})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.T(_.I,{cond:function(){var N;
return(N=M.isDesktopPlayPage)==null?void 0:N.call(M)},
then:function(){return _.T(_.MH,null,_.T(PqQ,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview}),_.T(SY$,{enableSaveButton:function(){return _.YE(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.T(ZVS,{menuButton:function(){return M.data().menuButton}}))},
else:function(){return _.T(_.I,{cond:function(){return!1},
then:function(){return _.T(_.t_,{data:function(){return M.data().playPageButton}},{buttonViewModel:function(N){return _.T(_.lT,{data:N.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.T(PqQ,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview})}})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.T(_.t_,{data:function(){return M.data().muteButton}},{toggleButtonViewModel:function(N){var Z=N.data;
return _.T(_.cm,{data:function(){var B,O;return Object.assign({},Z(),{isToggled:(O=(B=M.isAudioEnabled)==null?void 0:B.call(M))!=null?O:!0})},
onToggle:M.onAudioToggled,useOutlinedIcon:!0})}}),_.T(_.t_,{data:function(){return M.data().theatreModeButton}},{toggleButtonViewModel:function(N){var Z=N.data;
return _.T("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.T(_.cm,{data:function(){return Object.assign({},Z(),{isToggled:J})},
useOutlinedIcon:!0}))}}),_.T(kBQ,{fullscreenButton:function(){return M.data().fullscreenButton}}),_.T(_.I,{cond:function(){return _.YE(D)&&M.data().viewAllButton&&!1},
then:function(){return _.T(_.t_,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.lT})}}),_.T(_.I,{cond:function(){var N;
return!((N=M.isDesktopPlayPage)==null?0:N.call(M))},
then:function(){return _.T(_.MH,null,_.T(SY$,{enableSaveButton:function(){return _.YE(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.T(ZVS,{menuButton:function(){return M.data().menuButton}}))}}))))},"le");
Bnp.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var ZVS=_.Mf(function(M){return _.T(_.t_,{data:M.menuButton},{buttonViewModel:_.lT})},"me"),SY$=_.Mf(function(M){var z=M.enableSaveButton;
var J=M.saveButton;var R=M.isSaved;var D=M.onSaveToggled;return _.T(_.I,{cond:function(){return z()&&!(J==null||!J())},
then:function(){return _.T(_.t_,{data:function(){var N=_.G(J==null?void 0:J(),_.nf),Z;return{toggleButtonViewModel:Object.assign({},N,{isToggled:(Z=R==null?void 0:R())!=null?Z:!(N==null||!N.isToggled)})}}},{toggleButtonViewModel:function(N){return _.T(_.cm,{data:N.data,
onToggle:D})}})}})},"ne"),PqQ=_.Mf(function(M){var z=M.highScoreButton;
var J=M.score;var R=M.formattedScore;var D=M.onScoreChanged;var N=M.isEmbeddedInWebview;return _.T(_.t_,{data:z},{miniAppScoreButtonViewModel:function(Z){return _.T(NnS,{data:Z.data,score:J,formattedScore:R,onScoreChanged:D,isEmbeddedInWebview:N})}})},"oe"),kBQ=_.Mf(function(M){M=M.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.T(_.MH,null):_.T(_.t_,{data:M},{buttonViewModel:_.lT})},"pe");_.OVJ=new _.Nh("DESKTOP_CURRENT_PAGE");var e9v=_.Mf(function(M){var z=M.data;var J=_.U("force_active_time_logging_webview"),R=!1,D=new Kyg,N=void 0,Z=void 0,B=_.JF().resolve(dX2),O=new h7p,X=void 0,l=void 0,e=[],Q=void 0,v=void 0,x=!1,m=!1,y=!1,H=!1,q=new _.Iz,b=_.JF().resolve(R9v),V=_.JF().resolve(_.A2),E=_.JF().resolve(_.zw(tX)),L,z8=(L=_.JF().resolve(_.zw(_.OVJ)))==null?void 0:L.getCurrentPage(),O8=!1,I3=0,vY=function(iG){iG.preventDefault();return iG.returnValue=""},te;
M=_.S(_.kE(!((te=_.UE("yt-mini-app-is-audio-enabled"))!=null&&!te),void 0,"cGaEvf"));var wR=M.next().value,qb=M.next().value,cY;te=_.S(_.kE(!((cY=_.UE("exit-mini-app-seen-state"))==null||!cY),void 0,"DctXGe"));var Pu=te.next().value,yV=te.next().value;cY=_.S(_.kE(!1,void 0,"pU1jdd"));var Ik=cY.next().value,rR=cY.next().value;cY=_.S(_.kE(void 0,void 0,"ldLqDf"));var ea=cY.next().value,ok=cY.next().value;cY=_.S(_.kE(void 0,void 0,"mdofE"));var s$=cY.next().value,pw=cY.next().value;cY=_.S(_.kE(!0,void 0,
"T1gxCf"));var iJ=cY.next().value,Nb=cY.next().value;cY=_.S(_.kE(!1,void 0,"Dp92Vb"));var MB=cY.next().value,vu=cY.next().value;cY=_.S(_.kE(!1,void 0,"AsJEvf"));var Tc=cY.next().value,Gt=cY.next().value;cY=_.S(_.kE(void 0,void 0,"c55ogf"));var zc=cY.next().value,My=cY.next().value;cY=_.S(_.kE(0,void 0,"UuaLqf"));var MN=cY.next().value,ZV=cY.next().value,Lv=_.AL("mini-app-container-view-model"),em=function(){return z().isEmbeddedInWebview},FQ=function(){return z().hasPlayNextShelf};
MS("yt-page-type-changed",function(iG){if(_.U("enable_is_mini_app_page_active_bugfix"))iG.detail.newPageSubtype==="mini_app"&&iG.detail.newPageType==="ytd-browse"||!iJ()||By();else if(iG=_.gR8()==="mini_app",iG!==iJ())if(Nb(iG),iG){var Qu;iG=(Qu=z().playableId)==null?void 0:Qu.toString();iG!==void 0&&window.location.href.includes(iG)&&!m&&(H=!0,Yp(),ls.value&&wu(ls.value))}else iG||By()});
MS("yt-action",function(iG){iG.detail.actionName==="yt-engagement-panel-visible-changed"&&iG.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&iG.detail.args[2]==="PAmini_app_panel"&&By();_.U("enable_is_mini_app_page_active_bugfix")?iG.detail.actionName==="yt-history-load"&&!iJ()&&(z8==null?0:z8.active)?(Nb(!0),Yp(),ls.value&&wu(ls.value)):iG.detail.actionName==="yt-history-load"&&iJ()&&!z().isEmbeddedInWebview&&qB():iJ()&&iG.detail.actionName==="yt-history-load"&&(H?H=!1:z().isEmbeddedInWebview||
qB())});
_.pq(function(){Gc()});
_.jP(function(){Yp()},"gpydpe");
var Yp=function(){var iG=z().playableId,Qu=z().localReleaseId,Fl=z().derivedDeviceInterface;if(m)_.yA(new _.xN("[MiniAppContainerViewModel] onEnter was called more than once"));else{m=!0;N=new G2V(iG,Qu,Fl,document.visibilityState==="visible");jaV(N);Z=new Vit(iG);TnB(B,iG);ycp(O,{showMiniAppAdCommand:z().showMiniAppAdCommand,isEmbeddedInWebview:z().isEmbeddedInWebview,playLogger:N});tgn()&&(v=document.body.style.backgroundColor,_.uo(document.body,"background-color","black"));mh();yu();q=new _.Iz;
if(z().isEmbeddedInWebview){if(iG=(new URLSearchParams(window.location.search)).get("postPlayNonce"))xXk(N,iG),O8=!0;D.initialize({onAudioStateLoaded:function(Sm){UF(Sm)},
onMuteMiniApp:function(){UF(!1)},
onUnmuteMiniApp:function(){UF(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Sm){O8||(xXk(N,Sm),O8=!0)},
confirmExitMiniApp:function(){var Sm,kr,VW;return _.k(function(ys){if(ys.nextAddress==1)return z().confirmExitMiniAppCommand?ys.yield(Promise.race([q.promise,Promise.resolve(!1)]),2):ys.return();(Sm=ys.yieldResult)?!z().confirmExitMiniAppCommandEdu||(VW=(kr=Pu)==null?void 0:kr())!=null&&VW?Yr(z().confirmExitMiniAppCommand):(Yr(z().confirmExitMiniAppCommandEdu),_.Qo("exit-mini-app-seen-state","true",2592E6)):Yr(z().closeMiniAppCommand);_.UI(ys)})},
onNativeBenchmarkingMessageReceived:function(Sm){Sm=lPk(_.HIw(Sm));if(_.xI(Sm,_.yL,3,IPp)){var kr=_.Ky(Sm,_.yL,3,IPp),VW=cR8();var ys=sC(VW.getSeconds())-sC(kr.getSeconds());kr=_.R2(VW,2)-_.R2(kr,2);ys<0&&kr>0?(ys+=1,kr-=1E9):ys>0&&kr<0&&(--ys,kr+=1E9);ys=(new CQ).setSeconds(ys);ys=_.Ai(ys,2,_.bJ(kr),0);_.or(Sm,1,ys)}var Ke;(Ke=l)==null||Ke.returnNativeBenchmarkingMessage(Sm)},
multiplayer3pAckStateLoaded:function(Sm){qB(Sm)},
exitMiniAppSeenStateLoaded:function(Sm){z().confirmExitMiniAppCommandEdu&&yV(Sm)},
onNavigateToNewMiniApp:function(){Yr(z().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Sm){Sm=new URLSearchParams(Sm);var kr=void 0;Sm.has("invite_code")&&(kr=new x8V,Sm=Sm.get("invite_code"),kr=_.G$(kr,1,Sm));if(Sm=kr){var VW;(VW=l)==null||VW.sendGameData(Sm)}},
onPauseMiniApp:function(){R=!0;Xl()},
onResumeMiniApp:function(){R=!0;F3()},
onAdFinished:function(Sm){O.onAdFinished(Sm)}});
z().showMultiplayer3pConsentDialogCommand||q.resolve(!0);Yr(z().onContainerReadyCommand)}else xXk(N),q.resolve(!0);E0Q(Z,wFu(N));wFu(N).then(function(Sm){Sm={miniAppPlayData:{postPlayNonce:Sm}};var kr,VW=(kr=z().loggingDirectives)==null?void 0:kr.trackingParams;VW&&_.Gm().stateChanged(VW,Sm)});
iG=z().showSignInDialogCommand;!uv0()&&iG&&(_.Qo("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Yr(iG));z().confirmExitMiniAppCommand&&E&&(iG=ha8(z().confirmExitMiniAppCommand))&&(E.customConfirmationCommand=iG)}},Gc=function(){v&&_.uo(document.body,"background-color",v);
x=!1;Q&&Q.release();Z.flush().catch(function(iG){_.yA(iG)});
B.flush().catch(function(iG){_.yA(iG)});
FyQ(N);Bf();l=void 0;IHS(b)},By=function(){Nb(!1);
Gc();rR(!1);My(void 0);ok(void 0);pw(void 0);I3=0;ZV(0);m=!1},Xl=function(){var iG;
(iG=l)==null||iG.onPause();Q&&Q.release();Z.flush().catch(function(Qu){_.yA(Qu)});
B.flush().catch(function(Qu){_.yA(Qu)});
pFS(N);vu(!0)},F3=function(){var iG;
(iG=l)==null||iG.onResume();yu();iG=N;iG.isForeground=!0;C6(iG,"PLAY_EVENT_TYPE_PLAY_RESUME");vu(!1)},UF=function(iG){var Qu;
(Qu=l)==null||Qu.onAudioToggled(iG);qb(iG)},qB=function(iG){z().showMultiplayer3pConsentDialogCommand&&(z().isEmbeddedInWebview&&iG!==void 0&&q.resolve(iG),!iG&&_.gR8()==="mini_app"&&Yr(z().showMultiplayer3pConsentDialogCommand))},Ht=function(){var iG,Qu,Fl,Sm;
return _.k(function(kr){if(kr.nextAddress==1){!z().isLivestream||z().disableVideoCapture||(iG=l)!=null&&iG.sendStartGameFrameCapture();Qu=(new URL(window.location.href)).searchParams;if(Qu.has("invite_code")){var VW=new x8V,ys=Qu.get("invite_code");Fl=_.G$(VW,1,ys);(Sm=l)==null||Sm.sendGameData(Fl)}Ik()||(rR(!0),VW=N,VW.state!==1?_.yA(new _.xN("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+UXu[VW.state])):(_.ZR("mini_app_ids_without_game_ready").includes(VW.JSC$16795_miniAppId)&&(VW.gameReady=
!0),VW.state=2,VW.beforeReady=!1,iX(VW,"ma_ffr"),C6(VW,"PLAY_EVENT_TYPE_PLAY_READY")));return kr.yield(q.promise,2)}Yr(z().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();z().isEmbeddedInWebview||qB();_.UI(kr)})},Vu=function(){var iG=N;
iG.gameReady=!0;iX(iG,"ma_gr")},Rr=function(iG){var Qu;
return _.k(function(Fl){if(Fl.nextAddress==1)return _.Io(Fl,2),Fl.yield(LyS(Z,iG),4);if(Fl.nextAddress!=2)return _.ab(Fl,0);Qu=_.Qa(Fl);Yr(z().showSavingErrorPopupCommand);throw Qu;})},NH=function(){var iG,Qu;
return _.k(function(Fl){if(Fl.nextAddress==1)return _.Io(Fl,2),Fl.yield(fxQ(Z),4);if(Fl.nextAddress!=2)return iG=Fl.yieldResult,Fl.return(iG);Qu=_.Qa(Fl);Yr(z().showLoadingErrorDialogCommand);throw Qu;})},o$=function(iG){N.logError(iG)},wc=function(iG,Qu,Fl){mXt(N,iG,Qu,Fl)},PW=function(iG,Qu){saS(N,iG,Qu)},dV=function(){!J&&z().isEmbeddedInWebview||_.JL();
YgV(N,!0);x||(window.addEventListener("beforeunload",vY,{capture:!0}),x=!0)},CY=function(iG){var Qu,Fl,Sm,kr,VW,ys,Ke;
return _.k(function(eF){if(eF.nextAddress==1)return B&&(!X||X<iG)&&iG>0?eF.yield(oAv(B,iG),3):eF.jumpTo(0);Qu=eF.yieldResult;Fl=_.S(Qu);Sm=Fl.next().value;kr=Fl.next().value;VW=Sm;ys=kr;((Ke=VW)==null?0:Ke.displayString)&&ys&&(ok(ys),pw(VW.displayString));_.UI(eF)})},Fn=function(iG){var Qu=z().onBenchmarkingMessageReceivedCommand;
if(Qu){var Fl=cR8();_.Xq(iG,3,IPp,Fl);cX(Qu,eqV(iG))}},dR=function(iG){var Qu=z().onGameFrameReceivedCommand;
if(Qu){var Fl=new cc;var Sm=new Sq2;var kr=sD(iG,1);Sm=_.GF(Sm,1,kr);iG=_.hv(iG,2);iG=_.G$(Sm,2,iG);Fl=_.or(Fl,2,iG);cX(Qu,OC2(Fl))}},VH=function(iG){var Qu=z().onGameAudioDataReceivedCommand;
if(Qu){var Fl=new cc;var Sm=new kaS;iG=_.hv(iG,1);Sm=_.G$(Sm,1,iG);Fl=_.or(Fl,4,Sm);cX(Qu,OC2(Fl))}},QV=function(){var iG=new URLSearchParams(window.location.search);
if(z().isEmbeddedInWebview&&iG&&iG.get("override_hl")==="true"&&iG.get("hl"))return iG.get("hl");iG=document.documentElement.lang;return iG!==""?iG:_.WA},Iv=function(iG){var Qu=z().onShareInviteCodeCommand;
if(Qu)if(z().isEmbeddedInWebview){var Fl=new PnV;iG=_.G$(Fl,1,iG);cX(Qu,ZNa(iG))}else Fl=z().inviteCodeShareClientParamIdentifier,b.clientParams.set(Fl,{miniAppClientParams:{inviteCode:iG}}),Yr(Qu)},gi=function(iG){var Qu,Fl,Sm;
return _.k(function(kr){if(kr.nextAddress==1)return Qu=z().onMiniAppOpenYtContentRequested,B&&_.U("enable_open_yt_content")&&Qu?kr.yield(X7$(B,iG),3):kr.jumpTo(0);Fl=kr.yieldResult;if(Fl==="OK")if(z().isEmbeddedInWebview){var VW=new R_2;Sm=of(VW,2,Hc,O5(iG));cX(Qu,PMV(Sm))}else V.clientData.set("video_id",iG),Yr(Qu);_.UI(kr)})},ti=function(iG){I3+=_.R2(iG,3);
iG=Math.min(Math.log(1+I3/15E6*9)/Math.log(10),.99);ZV(iG);xp(iG)},xp=_.j6(function(iG){var Qu=z().updateLoadingProgressCommand;
if(Qu){var Fl=new R_2;iG=of(Fl,3,Hc,_.Wu(iG));cX(Qu,PMV(iG))}},100),wg=function(iG){return ccu(O,iG)},yu=function(){var iG,Qu;
((iG=_.o$p())==null?void 0:(Qu=iG.wakeLock)==null?void 0:Qu.request)!=null&&_.o$p().wakeLock.request("screen").then(function(Fl){Q=Fl}).catch(function(){})},ls=_.iW("iframe");
_.jP(function(){z().isSupportedCountry&&(uv0()||_.U("enable_sign_in_promo")||!z().showSignInDialogCommand?ls.value&&wu(ls.value):Yr(z().onMiniAppReadyCommand))},"HPyXid");
var lJ=function(){return _.T("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ik()?0:-1},
el:ls})},wu=function(iG,Qu){Qu=Qu===void 0?!1:Qu;
var Fl=Na();Fl&&(Qu||Fl.toString()!==iG.getAttribute("src"))&&(l=LI3(z().source,{isAudioEnabled:wR,onFirstFrameReady:Ht,onGameReady:Vu,onSave:Rr,onLoad:NH,onError:o$,onSdkCalled:wc,onSdkPerformanceUpdate:PW,onClick:dV,onSendHighScore:CY,onBenchmarkingMessageReceived:Fn,getLanguage:QV,onShareInviteCode:Iv,onResourceLoaded:ti,onOpenYTContent:gi,onShowMiniAppAd:wg,onGameFrameReceived:dR,onGameAudioReceived:VH},iG,Fl),th(iG,"load",function(){iX(N,"ma_il");th(iG,"load",function(){wu(iG,!0)})}),_.W4(iG,
Fl))},Na=function(){var iG=z().url;
if(iG&&(iG=_.ho(iG),iG!==null)){if(z().source&&z().source==="MINI_APP_SOURCE_GAMESNACKS")iG=_.Pj(iG,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.U("enable_origin_query_parameter_bugfix")){var Qu=_.gy(_.eoc(iG.toString()));Qu=new URLSearchParams(Qu||"");Qu.set("origin",window.location.origin);Qu=Qu.toString();iG=_.xq(iG).toString();iG=_.wi(tak.exec(iG)[0]+(Qu.trim()?"#"+Qu:""))}return iG}},di=function(){var iG={};
iG=_.Qe("yt-mini-app-container-view-model__loading-screen",(iG["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ik,iG));var Qu=function(){return Ik()?1:MN()};
return _.T("div",{class:iG},_.T(_.t_,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(Fl){return _.T(JWB,{data:Fl.data,
loadingProgress:Qu})}}))},hP=function(){var iG={};
return _.T("div",{class:_.Qe("yt-mini-app-container-view-model__pause-interstitial",(iG["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!MB()},iG["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=MB,iG))},_.T(_.t_,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(Qu){return _.T(JWB,{data:Qu.data,
forPaused:!0})}}))},mh=function(){e=[];
e.push(_.YS(window,"visibilitychange",function(){y||R&&em()||(document.visibilityState==="visible"?F3():Xl())}));
e.push(_.YS(window,"pagehide",function(){Gc()}));
e.push(_.YS(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Lv.value.dispatchEvent(new Event("tap"))},0)}));
e.push(_.YS(Lv.value,"pointerdown",function(){YgV(N,!1)},!0));
e.push(_.YS(Lv.value,"pause",function(){y=!0;Xl()}));
e.push(_.YS(Lv.value,"play",function(){y=!1;F3()}));
e.push(_.YS(Lv.value,"exit",function(){Gc()}));
var iG=navigator.keyboard,Qu=iG&&iG.lock;e.push(_.YS(window,dGv,function(){Gt($GV());$GV()?(z().hasPlayNextShelf&&f2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),bN("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Qu&&iG.lock(["Escape"])):(z().hasPlayNextShelf&&bN("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),f2("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Qu&&iG.unlock())}));
z().showMultiplayer3pConsentDialogCommand&&e.push(_.YS(window,"yt-playables-ack-3p-data-usage",function(){lHQ(B)}));
z().confirmExitMiniAppCommandEdu&&e.push(_.YS(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Qo("exit-mini-app-seen-state","true",2592E6)}));
z().onGameAudioDataReceivedCommand&&e.push(_.YS(window,"message",function(Fl){Fl=Fl.event_;var Sm,kr=(Sm=ls.value)==null?void 0:Sm.src;if(kr&&Fl.origin===(new URL(kr)).origin&&Fl.data&&Fl.data.type==="GAME_AUDIO"&&Fl.data.audio&&Fl.data.audio.length>0)if(_.U("enable_sending_unwrapped_game_audio_as_serialized_metadata"))KIc(z().onGameAudioDataReceivedCommand,Fl.data.audio);else{var VW=new FileReader;VW.onload=function(){var ys=new cc;var Ke=new kaS;Ke=_.G$(Ke,1,VW.result);ys=_.or(ys,4,Ke);cX(z().onGameAudioDataReceivedCommand,
OC2(ys))};
VW.readAsDataURL(new Blob([Fl.data.audio]))}}))},Bf=function(){e.forEach(function(iG){j5(iG)});
window.removeEventListener("beforeunload",vY,{capture:!0})},Yr=function(iG){iG&&H$n(iG,z().isEmbeddedInWebview||!1)},bN=function(iG,Qu){iG=_.S(Lv.value.getElementsByClassName(iG));
for(var Fl=iG.next();!Fl.done;Fl=iG.next())Fl.value.classList.add(Qu)},f2=function(iG,Qu){iG=_.S(Lv.value.getElementsByClassName(iG));
for(var Fl=iG.next();!Fl.done;Fl=iG.next())Fl.value.classList.remove(Qu)};
return function(){var iG={};iG=_.Qe("yt-mini-app-container-view-model",(iG["yt-mini-app-container-view-model--desktop"]=!0,iG["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iG["yt-mini-app-container-view-model--ios-web-view"]=tgn(),iG["yt-mini-app-container-view-model--no-top-bar"]=function(){return!z().topBar},iG["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return z().hasPlayNextShelf},iG["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return z().hasPlayNextShelf},iG["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Tc()&&z().hasPlayNextShelf},iG));
var Qu={};Qu=_.Qe("yt-mini-app-container-view-model__content",(Qu["yt-mini-app-container-view-model__content--desktop-content"]=!0,Qu["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Qu["yt-mini-app-container-view-model--desktop-play-page"]=function(){return z().hasPlayNextShelf},Qu));
return _.T("mini-app-container-view-model",{el:Lv},_.T("div",{class:iG},_.T(_.I,{cond:function(){return z().topBar&&!Tc()},
then:function(){return _.T(_.t_,{data:function(){return z().topBar}},{miniAppTopBarViewModel:function(Fl){return _.T(Bnp,{data:Fl.data,
isAudioEnabled:wR,onAudioToggled:function(Sm){UF(Sm)},
score:ea,formattedScore:s$,onScoreChanged:function(Sm){X=Sm},
isEmbeddedInWebview:em,isSaved:zc,onSaveToggled:function(Sm){My(Sm)},
isExitMiniAppSeen:Pu,isDesktopPlayPage:FQ})}})}}),_.T("div",{class:Qu},_.T(_.I,{cond:iJ,
then:function(){return lJ()}}),_.T(_.I,{cond:function(){return z().isLivestream},
then:function(){return hP()}}),_.T(_.I,{cond:function(){return!z().isEmbeddedInWebview},
then:function(){return di()}}))))}()},"qe");
e9v.idomCompat=!0;_.N7(e9v,"mini-app-container-view-model",{props:{data:_.zn}});var QAa=_.Mf(function(M){var z=M.data;return _.T("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.T("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.ol(function(){var J=z().onTap;J&&_.aE(J)})},_.T(_.I,{cond:function(){return z().icon},
then:function(J){return _.T(_.vS,{icon:function(){return J().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.T("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return z().title})))},"re");
QAa.idomCompat=!0;var URu=_.Mf(function(M){var z=_.AL("div"),J=_.S(_.kE(void 0,void 0,"kFCJ0c")),R=J.next().value,D=J.next().value;J=_.S(_.kE(void 0,void 0,"PIPgWd"));var N=J.next().value,Z=J.next().value;J=_.S(_.kE(void 0,void 0,"rV66ob"));var B=J.next().value,O=J.next().value,X=function(){var H=R();return H!==void 0?Math.abs(H):void 0},l=function(){var H=X();
return H===void 0||H<=3},e=function(){var H=X();
var q=N(),b=B();H=H!==void 0&&q!==void 0&&b!==void 0?q-b-H:void 0;return H===void 0||H<=3},Q=function(H){z.value&&z.value.scrollBy({top:0,
left:(_.HW("HTML_DIR")==="rtl"?-1:1)*H*z.value.clientWidth,behavior:"smooth"})},v=function(){var H;
D((H=z.value)==null?void 0:H.scrollLeft);var q;Z((q=z.value)==null?void 0:q.scrollWidth);var b;O((b=z.value)==null?void 0:b.clientWidth)},x=function(){Q(-.5)},m=function(){Q(.5)};
J=_.ol(function(){v()});
_.FT(function(){v();if(z.value&&window.ResizeObserver){var H=new ResizeObserver(v);H.observe(z.value);_.pq(function(){H.disconnect()})}});
var y={};return _.T("yt-sponsorships-scrollable-shelf",{class:_.Qe("ytdSponsorshipsScrollableShelfHost",M.className)},_.T("div",{class:_.Qe("ytdSponsorshipsScrollableShelfContent",(y.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return M.data().previousButton&&M.data().nextButton&&!l()&&!e()},y.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return M.data().previousButton&&!l()&&e()},y.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return M.data().nextButton&&
l()&&!e()},y)),
el:z,"on:scroll":J},M.children),_.T(_.I,{cond:function(){return!l()},
then:function(){return _.T(_.t_,{data:function(){return M.data().previousButton}},{buttonViewModel:function(H){return _.T(_.lT,{data:H.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:x})}})}}),_.T(_.I,{cond:function(){return!e()},
then:function(){return _.T(_.t_,{data:function(){return M.data().nextButton}},{buttonViewModel:function(H){return _.T(_.lT,{data:H.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:m})}})}}))},"se");
URu.idomCompat=!0;var GBt=_.Mf(function(M){var z=M.data;M={};return _.T("yt-sponsorships-hub",{class:_.Qe("ytdSponsorshipsHubHost",(M.ytdSponsorshipsHubHostIndented=function(){return z().indented},M))},_.T("div",{class:"ytdSponsorshipsHubHeader"},_.T("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.T("div",{class:"ytdSponsorshipsHubAvatar"},_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj})),_.T(_.I,{cond:function(){return z().badgeImage},
then:function(J){return _.T("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.T("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.T("div",{class:"ytdSponsorshipsHubBadge"},_.T(_.rv,{data:J,targetWidth:24,targetHeight:24,alt:""}))))}})),_.T("div",{class:"ytdSponsorshipsHubDetails"},_.T("div",{class:"ytdSponsorshipsHubTierName"},function(){return z().tierName}),_.T("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return z().membershipType}),_.T("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return z().membershipDurationOrExpiry})),_.T("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.T(_.t_,{data:function(){return z().manageButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.T(_.t_,{data:function(){return z().actionMenuButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.T("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return z().perksTitle}),_.T(URu,{data:function(){return{previousButton:z().previousPerkButton,
nextButton:z().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.T("div",{class:"ytdSponsorshipsHubPerkCards"},_.T(_.t_,{data:function(){return z().perkCards}},{sponsorshipsHubPerkCardViewModel:QAa}),_.T(_.I,{cond:function(){return z().viewAllPerksButton},
then:function(J){return _.T(vAV,{data:J})}}))))},"te");
GBt.idomCompat=!0;var vAV=_.Mf(function(M){var z=M.data;return _.T("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.T(_.t_,{data:function(){return z().button}},{buttonViewModel:_.lT}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.T("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return z().title}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return z().subtitle})))},"ue");
vAV.idomCompat=!0;_.N7(GBt,"yt-sponsorships-hub",{props:{data:_.zn}});_.w7g=_.Mf(function(M){var z=M.data;return _.T("yt-dual-avatar-view-model",{class:_.Qe("ytDualAvatarViewModelHost",M.className),style:_.UN({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var J;return((J=z().badgeCutoutRadius)!=null?J:14)+"px"}})},_.T("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.T(_.t_,{data:function(){return z().startAvatar}},{avatarViewModel:_.dj}),_.T(_.t_,{data:function(){return z().endAvatar}},{avatarViewModel:_.dj})),_.T(_.t_,{data:function(){return z().badge}},
{contentPreviewImageViewModel:function(J){return _.T("div",{class:"ytDualAvatarViewModelBadge"},_.T(_.BC,{data:J.data}))}}))},"ve");
_.w7g.idomCompat=!0;var tja=_.Mf(function(M){var z=M.data;var J,R=!((J=_.JF().resolve(_.zw(_.Ah)))==null||!J());M=_.o4(function(){var l,e,Q=R?(l=z().header)==null?void 0:l.backgroundColorDarkMode:(e=z().header)==null?void 0:e.backgroundColorLightMode;if(Q!==void 0)return _.qG(Q)},void 0,"UX2G6c");
J=_.o4(function(){var l,e;return R?(l=z().header)==null?void 0:l.backgroundImagePart1Dark:(e=z().header)==null?void 0:e.backgroundImagePart1Light},void 0,"GPAi1d");
var D=_.o4(function(){var l,e;return R?(l=z().header)==null?void 0:l.backgroundImagePart2Dark:(e=z().header)==null?void 0:e.backgroundImagePart2Light},void 0,"nboJld"),N=_.o4(function(){return _.HW("HTML_DIR")==="rtl"},void 0,"LGJceb"),Z=_.AL("yt-sponsorships-perks-list"),B=!1,O=function(){var l=Z.value;
if(l&&!B){var e,Q=(e=l.parentElement)==null?void 0:e.parentElement;if(Q)for(l=l.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),e=0;e<l.length;++e){var v=l[e];if(v instanceof HTMLElement){Q.scrollTo({top:v.offsetTop+v.clientHeight/2-Q.clientHeight/2,behavior:"smooth"});B=!0;break}}}};
_.mF(function(){var l=Z.value;if(l&&window.ResizeObserver){var e=new ResizeObserver(O);e.observe(l);_.pq(function(){e.disconnect()})}});
var X={};return _.T("yt-sponsorships-perks-list",{el:Z,class:_.Qe("ytdSponsorshipsPerksListHost",(X.ytdSponsorshipsPerksListHorizontalPadding=function(){return z().horizontalPaddingEnabled},X))},_.T("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.T("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.UN({"background-color":M})},_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.T(_.I,{cond:J,then:function(l){var e={};return _.T("div",{class:_.Qe((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,e.ytdSponsorshipsPerksListFlipped=N,e))},_.T(_.rv,{data:l,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.T(_.I,{cond:D,
then:function(l){var e={};return _.T("div",{class:_.Qe((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,e.ytdSponsorshipsPerksListFlipped=N,e))},_.T(_.rv,{data:l,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.T(_.t_,{data:function(){var l;
return(l=z().header)==null?void 0:l.dualAvatar}},{dualAvatarViewModel:_.w7g})))),_.T("div",{class:"ytdSponsorshipsPerksListBody"},_.T("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return z().title}),_.T(_.I,{cond:function(){return z().perks},
then:function(l){return _.T(_.G4,{each:l},function(e,Q){var v={};return _.T("div",{class:_.Qe("ytdSponsorshipsPerksListPerkContainer",(v.ytdSponsorshipsPerksListSelectedPerk=function(){var x=Q(),m=z().selectedPerkIndex;return x===m},v))},_.T(_.I,{cond:function(){return Q()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.T(_.I,{cond:function(){return e.icon},
then:function(x){return _.T(_.vS,{icon:function(){return x().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.T("div",{class:"ytdSponsorshipsPerksListPerkTitle"},e.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.T(_.m3,{text:e.description})),_.T(_.I,{cond:function(){return e.instructions},
then:function(){var x,m;return _.T("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(x=e.instructions)==null?void 0:x.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.T(_.m3,{text:(m=e.instructions)==null?void 0:m.text})))}}))),_.T(_.I,{cond:function(){return e.emoji},
then:function(x){return _.T("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.T(_.G4,{each:function(){return x()}},function(m){return _.T(_.rv,{data:m,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.T(xR$,{data:e}))})}})))},"we");
tja.idomCompat=!0;var xR$=_.Mf(function(M){var z=M.data;var J=function(Z,B){return Z===B},R=function(){var Z=z();
Z=_.G(Z==null?void 0:Z.badgesShelf,TNk);return Z!==void 0&&Z!==null?Z:{previousButton:{},nextButton:{}}},D=_.iW("div"),N=function(){var Z=D.value;
if(Z){var B=Z.parentElement;if(B){Z=Z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var O=0;O<Z.length;++O){var X=Z[O];if(X instanceof HTMLElement){B.scrollTo({left:X.offsetLeft+X.clientWidth/2-B.clientWidth/2,behavior:"instant"});break}}}}};
_.mF(function(){var Z=D.value;if(Z){var B=new ResizeObserver(N);B.observe(Z);_.pq(function(){B.disconnect()})}});
return _.T("div",null,_.T(_.I,{cond:function(){return z().badges},
then:function(Z){return _.T(URu,{data:R},_.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:D},_.T(_.G4,{each:function(){return Z()}},function(B,O){var X={},l={},e={};
return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.T(_.I,{cond:function(){return O()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.T("div",{class:_.Qe("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(X.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return J(O(),z().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!J(O(),z().currentBadgeIndex)},X))},_.T("div",{class:_.Qe("ytdSponsorshipsPerksListLoyaltyBadge",(l.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return J(O(),
z().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!J(O(),z().currentBadgeIndex)},l))},_.T(_.I,{cond:function(){return B.image},
then:function(Q){var v={};return _.T("div",{class:_.Qe((v.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return J(O(),z().currentBadgeIndex)},v.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!J(O(),z().currentBadgeIndex)},v))},_.T(_.rv,{data:Q,
alt:""}))}})),_.T("div",{class:_.Qe("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(e.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return J(O(),z().currentBadgeIndex)},e))},B.title)))})))}}))},"xe");
xR$.idomCompat=!0;_.N7(tja,"yt-sponsorships-perks-list",{props:{data:_.zn}});_.N7(_.Mf(function(M){return _.T("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.T(_.I,{cond:function(){return M.data().image},
then:function(z){return _.T(_.rv,{className:"ytwFantasyEmptyStateViewModelImage",data:z,ariaHidden:!0,alt:""})}}),_.T(_.m3,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return M.data().title}}),_.T(_.m3,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return M.data().subtitle}}),_.T(_.t_,{data:function(){return M.data().primaryButton}},{buttonViewModel:function(z){return _.T(_.lT,{data:z.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ye"),"ytw-fantasy-empty-state-view-model",{props:{data:_.zn}});var jA$;var zPp=_.gZ({buttonRenderer:_.ML});_.RO(Jl3);var p7p=_.Mf(function(M){var z=M.data;var J=M.uniqueId;var R=M.overrides;M=_.o4(function(){var D,N=((D=z().timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:J(),timings:N,experimentEnabled:N.length>0,enabled:N.length>0}},void 0,"xqyfv");
return _.T("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.T($8,{settings:M},_.T(_.t_,{data:function(){return z().buttonRenderer}},{buttonRenderer:function(D){return _.T(_.ML,{data:D.data,
buttonOverrides:R})}})))},"ze"),FkV=_.U("web_enable_sink_timed_animation_button_renderer_ks")?Jl3:p7p,YYg=_.U("web_enable_sink_timed_animation_button_renderer_ks")?_.lP(Jl3):p7p;
p7p.idomCompat=!0;_.U("web_enable_sink_timed_animation_button_renderer_ks")?_.Il(FkV,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]}):_.N7(YYg,"timed-animation-button-renderer",{props:{data:_.zn,uniqueId:_.zn,overrides:_.zn}});var Rm=function(){var M=_.g.apply(this,arguments)||this;M.hideJoinButtonBeforeSubscribed=_.U("hide_join_button_before_subscribed");M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return M};
_.w(Rm,_.g);_.P=Rm.prototype;_.P.hasShowDialogCommand=function(M){return!!_.G(M,QVQ)};
_.P.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateJoinButtonOverrides=function(){var M,z;(M=_.SN(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(z=M.polymerController)==null||z.set("overrides",this.joinButtonOverrides);if(M=_.SN(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))M.overrides=this.joinButtonOverrides};
_.P.handleButtonRefreshAction=function(M){if(M=_.G(M,t6k))this.set("data.membershipButton",M.membershipButton),this.notifyPath("data.membershipButton")};
_.P.onYtServiceRequestError=function(M){_.Cf(this.hostElement,M.detail.error.message)};
_.P.onKeydown=function(M){if(M.key==="Enter"){var z;(z=this.data)!=null&&z.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.P.handleUnsubscribeAction=function(){var M,z,J;((M=this.data)==null?void 0:(z=M.membershipButton)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.style)==="STYLE_PRIMARY"&&_.SN(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.rX.Object.defineProperties(Rm.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.data)==null?void 0:M.membershipButton,J;M=(z==null?void 0:z.buttonRenderer)||_.G(z==null?void 0:(J=z.timedAnimationButtonRenderer)==null?void 0:J.buttonRenderer,_.aR);return(M==null?void 0:M.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(M==null?void 0:M.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(M==null?void 0:M.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var M;if(this.hasShowDialogCommand((M=this.data)==null?void 0:M.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var M;if(this.hasShowDialogCommand((M=this.data)==null?void 0:M.navigationEndpoint))return"button"}}});
Rm.prototype.onYtServiceRequestError=Rm.prototype.onYtServiceRequestError;Rm.prototype.updateJoinButtonOverrides=Rm.prototype.updateJoinButtonOverrides;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Rm.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],Rm.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Rm.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.dL),_.W("design:type",Object)],Rm.prototype,"ironButtonState",void 0);_.u([_.Y(),_.W("design:type",Object)],Rm.prototype,"data",void 0);_.u([_.F("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rm.prototype,"hideJoin",null);
_.u([_.Y(),_.W("design:type",String)],Rm.prototype,"subscribeKey",void 0);_.u([_.Y({selectorArgs:["subscribeKey"],selector:nM8}),_.W("design:type",Object)],Rm.prototype,"subscriptionStateEntity",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Rm.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.u([_.F("subscriptionStateEntity"),_.Y({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],Rm.prototype,"subscribed",null);
_.u([_.F("subscribed","data.membershipButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rm.prototype,"joinButtonOverrides",null);_.u([_.F("data.navigationEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rm.prototype,"channelNameTabIndex",null);_.u([_.F("data.navigationEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],Rm.prototype,"channelNameRole",null);
_.u([_.la("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Rm.prototype,"updateJoinButtonOverrides",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Rm.prototype,"onYtServiceRequestError",null);_.u([_.c({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Rm);
var mRg=_.kS()(Rm,"ytd-video-owner-renderer",function(){if(jA$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);jA$=M}M=jA$;return M},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.N7(_.Mf(function(M){var z=M.data;var J;M=_.S(_.kE(!((J=_.UE("yt-mini-app-is-theater-mode-enabled"))==null||!J),void 0,"CtFFDf"));var R=M.next().value,D=M.next().value;J=_.S(_.kE(!1,void 0,"pRgDfb"));var N=J.next().value,Z=J.next().value;_.mF(function(){var X=_.YS(window,dGv,function(){Z($GV())});
_.pq(function(){j5(X)})});
var B;J=(B=_.JF().resolve(_.zw(Cyu)))!=null?B:function(){return _.T("div",null)};
_.Lc("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){D(!0);_.Qo("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Lc("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){D(!1);_.Qo("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
B={};M={};var O={};return _.T("mini-app-play-page-renderer",{class:_.Qe("miniAppPlayPageRendererHost",(B.miniAppPlayPageRendererHostDetailsView=function(){return!R()},B))},_.T("div",{class:_.Qe("miniAppPlayPageRendererGameContainer",(M.miniAppPlayPageRendererGameContainerDetailsView=function(){return!R()},M))},_.T(_.t_,{data:function(){return z().containerViewModel}},{miniAppContainerViewModel:e9v}),_.T(_.I,{cond:function(){return z().channel&&z().subscribeButton},
then:function(){var X={};return _.T("div",{class:_.Qe("miniAppPlayPageRendererChannelContainer",(X.miniAppPlayPageRendererHideVisibility=function(){return N()},X))},_.T(_.t_,{data:function(){return z().channel}},{videoOwnerRenderer:function(l){return _.T(mRg,{data:l.data})}}),_.T(_.t_,{data:function(){return z().subscribeButton}},{subscribeButtonViewModel:function(l){return _.T(_.cH,{data:l.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.T(_.I,{cond:function(){return!R()&&z().description},
then:function(){var X={};return _.T("div",{class:_.Qe("miniAppPlayPageRendererMiniAppDescriptionWrapper",(X.miniAppPlayPageRendererHideVisibility=function(){return N()},X))},_.T("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return z().description}))}})),_.T("div",{class:_.Qe("miniAppPlayPageRendererPlayNextContainer",(O.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!R()},O.miniAppPlayPageRendererHideVisibility=function(){return N()},O))},_.T(_.t_,{data:function(){return z().sectionList}},
{sectionListRenderer:J})))},"Ae"),"mini-app-play-page-renderer",{props:{data:_.zn}});var D_=function(){var M=_.g.apply(this,arguments)||this;M.isSearch=!1;M.isConstrainedList=!1;M.hasChipsBar=!1;M.inReplyPanel=!1;M.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};M.monitorScroll=!0;M.SCROLL_ANIMATION_DURATION_MS=300;M.nextContinuation={continuationType:"sectionListContinuation"};return M};
_.w(D_,_.g);_.P=D_.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(M){switch(M.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.P.created=function(){var M=this;this.JSC$16937_scrollAnimation=new _.L6(function(z){M.hostElement.scrollTop=z})};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.replacePrimaryContent=function(M){this.set("data.contents",M)};
_.P.computeHasSortFilter=function(M){return!!M&&!!M.sortFilterSubMenuRenderer};
_.P.computeShouldScrollInPanel=function(M){var z;return!!(M==null?0:(z=M.scrollPaneStyle)==null?0:z.scrollable)};
_.P.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.kz(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.P.scrollToTop=function(){this.hostElement.scrollTop=0};
_.P.scrollToItemSection=function(M){if(M=this.getItemByIdentifier(M))M=this.getScrollPositionForItem(M),this.hostElement.scrollTop!==M&&this.JSC$16937_scrollAnimation.start(this.hostElement.scrollTop,M,this.SCROLL_ANIMATION_DURATION_MS)};
_.P.getItemByIdentifier=function(M){var z=this.contents.querySelectorAll("ytd-item-section-renderer");if(z&&z.length!==0){var J=Array.from(z).findIndex(function(R){return R.sectionIdentifier===M});
return z[J===-1?0:J]}};
_.P.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===M)return 0;M=_.Hj(M).y+this.hostElement.scrollTop-_.Hj(this.hostElement).y;return Math.min(M,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.rX.Object.defineProperties(D_.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.targetId)==="browse-feedFEclips"}}});
D_.prototype.onScroll=D_.prototype.onScroll;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],D_.prototype,"ytLazyListBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],D_.prototype,"ytNextContinuationBehavior",void 0);
_.u([_.p(_.o0S),_.W("design:type",Object)],D_.prototype,"ytBooleanLogicBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],D_.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],D_.prototype,"data",void 0);_.u([_.Y({value:2}),_.W("design:type",Number)],D_.prototype,"initialCount",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],D_.prototype,"autoFill",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.W("design:type",Boolean)],D_.prototype,"hasSortFilter",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.W("design:type",Boolean)],D_.prototype,"hideBottomSeparator",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.W("design:type",Boolean)],D_.prototype,"shouldScrollInPanel",void 0);
_.u([_.Y(),_.W("design:type",Object)],D_.prototype,"isSearch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],D_.prototype,"isConstrainedList",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],D_.prototype,"responsiveSizing",void 0);_.u([_.Y(),_.W("design:type",Object)],D_.prototype,"hasChipsBar",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],D_.prototype,"pageSubtype",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],D_.prototype,"engagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],D_.prototype,"liveChatEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],D_.prototype,"inReplyPanel",void 0);_.u([_.Qc("#action-button"),_.W("design:type",HTMLElement)],D_.prototype,"actionButton",void 0);_.u([_.Y(),_.W("design:type",Object)],D_.prototype,"scrollUpButtonData",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],D_.prototype,"engagementPanelDropdown",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],D_.prototype,"engagementPanelDialog",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D_.prototype,"isClipList",null);_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],D_.prototype,"monitorScrollElement",void 0);_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],D_.prototype,"contents",void 0);
_.u([_.Xw("scroll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D_.prototype,"onScroll",null);_.u([_.c({is:"ytd-section-list-renderer",disableElementRegistration:!0})],D_);
var gAB=_.kS()(D_,"ytd-section-list-renderer",function(){if(i0t===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);i0t=M}M=i0t;return M},{mode:1});var sAV;var nAJ;var h9p;var yW2;var NT=function(){return _.g.apply(this,arguments)||this};
_.w(NT,_.g);NT.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
NT.prototype.onLikeButtonClick=function(M){M.stopPropagation();M.preventDefault()};
_.rX.Object.defineProperties(NT.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],NT.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NT.prototype,"ytRendererStamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NT.prototype,"data",void 0);
_.u([_.Y({selectorArgs:["data.likeStatusEntityKey"],selector:Kn}),_.W("design:type",Object)],NT.prototype,"likeStatusEntity",void 0);_.u([_.F("data","likeStatusEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],NT.prototype,"likeButtonRenderer",null);_.u([_.c({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],NT);
_.d(NT,"ytd-slim-metadata-toggle-button-renderer",function(){if(yW2!==void 0)return yW2;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return yW2=M},{mode:1});var PG=function(){var M=_.g.apply(this,arguments)||this;M.minimizePipBreakages=_.U("web_pip_minimize_breakages");M.showEqualizer=_.U("web_enable_playlist_video_lockup_equalizer");M.watchColorUpdate=_.U("kevlar_watch_color_update");M.actionMap={};return M};
_.w(PG,_.g);_.P=PG.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.P.computeEditableClass=function(M){return M&&M.menu?"editable":""};
_.P.computeSelected=function(M){return!(M==null||!M.selected)};
_.P.computeUseColorPalette=function(M){return!!((M==null?0:M.lightColorPalette)&&(M==null?0:M.darkColorPalette))};
_.P.computeLargerPlaylistThumbs=function(M,z){return _.U("web_enable_playlist_bigger_thumbnails")&&!z};
_.P.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.P.onYtServiceRequestSent=function(M,z){z.endpoint&&this.isHideEnclosingAction(z.endpoint)&&!this.selected&&WEB(_.Am(),this.data.videoId)};
_.P.isHideEnclosingAction=function(M){var z=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",M);M=this.get("likeEndpoint.status",M)==="INDIFFERENT";return z||M};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.rX.Object.defineProperties(PG.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.withinMiniplayer&&((M=this.data)==null?0:M.actionButtons))}}});
PG.prototype.onYtServiceRequestSent=PG.prototype.onYtServiceRequestSent;PG.prototype.canReorderChanged=PG.prototype.canReorderChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],PG.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.bl),_.W("design:type",Object)],PG.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PG.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"withinMiniplayer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],PG.prototype,"minimizePipBreakages",void 0);_.u([_.Y({computed:"computeSelected(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"selected",void 0);
_.u([_.Y({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"useColorPalette",void 0);_.u([_.Y({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"largerPlaylistThumbs",void 0);_.u([_.Y(),_.W("design:type",Object)],PG.prototype,"showEqualizer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"canReorder",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"touchPersistentDragHandle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],PG.prototype,"handleIsHovered",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],PG.prototype,"watchColorUpdate",void 0);_.u([_.Y(),_.W("design:type",String),_.W("design:paramtypes",[])],PG.prototype,"reorderIcon",null);
_.u([_.F("largerPlaylistThumbs"),_.W("design:type",Number),_.W("design:paramtypes",[])],PG.prototype,"thumbnailWidth",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],PG.prototype,"showActionButtons",null);_.u([_.wH("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PG.prototype,"canReorderChanged",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],PG.prototype,"onYtServiceRequestSent",null);_.u([_.c({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],PG);
_.d(PG,"ytd-playlist-panel-video-renderer",function(){if(h9p!==void 0)return h9p;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return h9p=M},{mode:2});var S7=function(){return _.g.apply(this,arguments)||this};
_.w(S7,_.g);S7.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],S7.prototype,"data",void 0);_.u([_.c({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],S7);
_.d(S7,"ytd-playlist-panel-supported-items",function(){if(nAJ!==void 0)return nAJ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return nAJ=
M},{mode:1});Kxa=!0;zYS("\\P{N}");var RPe;var HVJ=_.e9("END_OF_PLAYLIST",void 0,"End of playlist"),cWV=_.e9("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Z_=function(){var M=_.g.apply(this,arguments)||this;M.minimizePipBreakages=_.U("web_pip_minimize_breakages");M.updatedCoursePanel=_.U("move_three_dot_menu_to_playlist_panel_header_for_courses");M.hideHeaderText=!1;M.useColorPalette=!1;M.collapsed=!1;M.collapsedPreServerOverride="not_tracked";M.isHovered=!1;M.modernPanels=_.U("kevlar_watch_modern_panels");
M.expandLabel=_.e9("MINIPLAYER_EXPAND_LABEL");M.collapseLabel=_.e9("MINIPLAYER_COLLAPSE_LABEL");M.isFloating=!1;M.metaPanel=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};M.currentIndex=void 0;return M};
_.w(Z_,_.g);_.P=Z_.prototype;
_.P.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.scrollThrottle=new _.A_(this.onThrottledScroll,1E3,this)};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.computeOverflowMenuData=function(M){return M&&M.menu?M.menu:null};
_.P.computeCollapsible=function(M){return!M};
_.P.computeHasPlaylistButtons=function(M){return!(!M||!M.playlistButtons)};
_.P.computeHasSeparateSaveButton=function(M){return!(!M||!M.saveButton)};
_.P.computeHasToolbarButton=function(M,z){return!(!M||!(z||M.saveButton||M.menu))};
_.P.computePlaylistType=function(M){if(M&&M.playlistId)return M.playlistId.substring(0,4)};
_.P.computeCanReorder=function(M){return M?M.playlistId&&M.playlistId.startsWith("TLPQ")?!0:!!M.isEditable&&!M.isInfinite:!1};
_.P.attached=function(){var M=this;try{_.JF().resolve(_.aV).setPlaylistComponent(this.hostElement)}catch(z){if(_.U("kevlar_park_on_playlist_token_killswitch"))throw z;_.Eb().parkOrScheduleJob(function(){_.JF().resolve(_.aV).setPlaylistComponent(M.hostElement)},2,"ci")}_.DL(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.P.detached=function(){_.Ns(this.hostElement)};
_.P.computeTrailingIcon=function(M,z,J){return J?z?"yt-icons:collapse":"yt-icons:close":z?"yt-icons:expand":_.U("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.P.computeIndexMessage=function(M,z){return Pe0(M+1)+" / "+Pe0(z)};
_.P.onRenderStamperFinished=function(){if(this.scrollForStampDom){var M=!0;this.isHovered&&(M=!1);if(this.collapsed||this.hidden)M=!1;M&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.P.collapseChanged=function(){var M=this;this.collapsed||(_.xC(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.P.hiddenChanged=function(){var M=this;this.hidden||_.xC(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()})};
_.P.setupReordering=function(){var M=_.SN(this.hostElement).querySelector("#items");vxJ?_.oMQ(this.ytReorderableBehavior,M,M,"playlist-drag-handle"):_.oMQ(this.ytReorderableBehavior,M,M)};
_.P.scrollToCurrentVideo=function(){var M=this;_.no.addJob(function(){var z=_.SN(M.hostElement).querySelector("#items");if(z){z.style.setProperty("padding-bottom","");var J=_.SN(M.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(J){z=J.parentElement||_.gp(document);var R=z||_.gp(document);var D=_.Hj(J),N=_.Hj(R),Z=_.Xta(R);if(R==_.gp(document)){var B=D.x-R.scrollLeft;D=D.y-R.scrollTop}else B=D.x-N.x-Z.left,D=D.y-N.y-Z.top;J=Owg(J);N=R.clientHeight-
J.height;Z=R.scrollLeft;var O=R.scrollTop;Z+=B-(R.clientWidth-J.width)/2;R=new _.nO(Z,O+(D-N/2));z.scrollLeft=R.x;z.scrollTop=R.y}}},8)};
_.P.dataChanged=function(){var M=this;_.I4$(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.C4(this,function(){_.x4(M.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty();M.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.P.onFullBleedPlayerChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.onFullscreenChanged=function(){_.U("web_watch_imax_theater_mode")||_.U("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.updateNowPlayingOverlay=function(){_.U("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.P.onPlaylistLockupNowPlaying=function(M,z){z&&(this.activeNowPlayingRenderer=z);this.updateNowPlayingOverlay()};
_.P.onScroll=function(){this.scrollThrottle.fire()};
_.P.onThrottledScroll=function(){var M=this;_.x4(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty()})};
_.P.onToggleExpanded=function(M){!this.collapsible||M&&(_.b7(M).tagName==="A"||_.bP(_.CX(M),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.P.setCollapsed=function(M){this.collapsible&&(this.collapsed=M,_.ZL(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.P.handleCollapsedFromData=function(M){if(M){var z=M.playlistPanelCollapseState;z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||z==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),z=z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==z&&this.setCollapsed(z)):this.currentPlaylistId!==M.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(z=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==z&&this.setCollapsed(z),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=M.playlistId}};
_.P.handleDrop=function(M){var z=M.currDragItem;M=z.data.playlistSetVideoId;var J=_.HY(z.parentNode.childNodes,z),R=void 0;J>0&&(R=z.parentNode.childNodes[J-1].data.playlistSetVideoId);z=_.Am();if(z.responsePlaylistData&&z.responsePlaylistData.contents){var D=D4e(M,z.responsePlaylistData);z.responsePlaylistData=(0,_.gu.unsafeClone)(z.responsePlaylistData);gon(z.responsePlaylistData.contents,D,J);z.queueProxy?Q5g(z.queueProxy,D,J,M,R):z.playlistProxy&&Q5g(z.playlistProxy,D,J,M,R);_.CN(z,_.bn(z,z.response?
z.response.autoplayRenderer:void 0))}};
_.P.handleDarkModeChange=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.P.colorPaletteChanged=function(){var M,z=((M=this.data)==null?void 0:M.contents)||[],J;M=_.S(z);for(z=M.next();!z.done;z=M.next()){z=z.value;var R=void 0;if((R=z.playlistPanelVideoRenderer)==null?0:R.selected){M=z.playlistPanelVideoRenderer;R=z=void 0;(J=this.isDarkTheme?(z=M)==null?void 0:z.darkColorPalette:(R=M)==null?void 0:R.lightColorPalette)&&_.g4(this.hostElement,J);break}}this.useColorPalette=!!J};
_.rX.Object.defineProperties(Z_.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.playlistId)&&!((z=this.data)==null||!z.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var M=_.JF().resolve(_.zw(_.aV)),z;if(((z=this.data)==null?0:z.contents)&&(M==null?0:M.hasAutoplayData())){var J;if(((J=this.playlistLoopStateEntity)==null?void 0:J.state)==="PLAYLIST_LOOP_STATE_ONE"){if(M=this.data.currentIndex,M!==void 0){var R,D;var N=(R=this.data.contents[M])==null?void 0:(D=R.playlistPanelVideoRenderer)==null?void 0:D.title}}else{var Z,B=(Z=_.G(M.getAutoplayEndpoint(),_.Au))==null?void 0:Z.videoId,O,X;N=(O=this.data.contents.find(function(l){var e;
return((e=l.playlistPanelVideoRenderer)==null?void 0:e.videoId)===B}))==null?void 0:(X=O.playlistPanelVideoRenderer)==null?void 0:X.title}return N}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.nextVideoLabel?this.nextVideoTitle?_.CD(this.data.nextVideoLabel)+":":HVJ:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.U("web_mix_long_byline_from_data"))return _.id(cWV);var z;return(z=this.data)==null?void 0:z.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.playlistButtons)==null?void 0:(J=z.menuRenderer)==null?void 0:J.topLevelButtons;if(R)for(M=_.S(R),z=M.next();!z.done;z=M.next())if(z=z.value,z.playlistLoopButtonRenderer)return z.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.collapsed&&((M=this.data)==null?0:M.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Z_.prototype.colorPaletteChanged=Z_.prototype.colorPaletteChanged;Z_.prototype.onPlaylistLockupNowPlaying=Z_.prototype.onPlaylistLockupNowPlaying;Z_.prototype.updateNowPlayingOverlay=Z_.prototype.updateNowPlayingOverlay;Z_.prototype.onFullscreenChanged=Z_.prototype.onFullscreenChanged;Z_.prototype.onFullBleedPlayerChanged=Z_.prototype.onFullBleedPlayerChanged;Z_.prototype.dataChanged=Z_.prototype.dataChanged;Z_.prototype.hiddenChanged=Z_.prototype.hiddenChanged;Z_.prototype.collapseChanged=Z_.prototype.collapseChanged;
Z_.prototype.onRenderStamperFinished=Z_.prototype.onRenderStamperFinished;Z_.prototype.onMouseLeave=Z_.prototype.onMouseLeave;Z_.prototype.onMouseEnter=Z_.prototype.onMouseEnter;_.u([_.p(_.Hw),_.W("design:type",Object)],Z_.prototype,"ironResizableBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(O82.YtPlaylistPanelBehavior),_.W("design:type",Object)],Z_.prototype,"ytPlaylistPanelBehavior",void 0);_.u([_.p(_.Pm.YtTaskEmitterBehavior),_.W("design:type",Object)],Z_.prototype,"ytTaskEmitterBehavior",void 0);_.u([_.p(_.X$p),_.W("design:type",Object)],Z_.prototype,"ytReorderableBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Z_.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"autoplayData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Z_.prototype,"withinMiniplayer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"minimizePipBreakages",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"updatedCoursePanel",void 0);_.u([_.Y({computed:"setMenuData_(data)"}),_.W("design:type",Object)],Z_.prototype,"menuRendererData",void 0);_.u([_.Y({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],Z_.prototype,"overflowMenuDataTopRow",void 0);_.u([_.Y({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],Z_.prototype,"overflowMenuData",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"hideHeaderText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"useColorPalette",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.W("design:type",Boolean)],Z_.prototype,"collapsible",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"collapsed",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Z_.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.W("design:type",Boolean)],Z_.prototype,"hasPlaylistButtons",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.W("design:type",Boolean)],Z_.prototype,"hasSeparateSaveButton",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.W("design:type",Boolean)],Z_.prototype,"hasToolbar",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.W("design:type",String)],Z_.prototype,"playlistType",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"isHovered",void 0);_.u([_.Y({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Ks8}),_.W("design:type",Object)],Z_.prototype,"playlistLoopStateEntity",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"modernPanels",void 0);_.u([_.Y({value:56}),_.W("design:type",Number)],Z_.prototype,"scrollMargin",void 0);_.u([_.Y({computed:"computeCanReorder(data)"}),_.W("design:type",Boolean)],Z_.prototype,"canReorder",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"expandLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"collapseLabel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"isFloating",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Z_.prototype,"metaPanel",void 0);_.u([_.Y({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.W("design:type",String)],Z_.prototype,"trailingIcon",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Z_.prototype,"isDarkTheme",void 0);
_.u([_.Y({selector:_.HA}),_.W("design:type",Boolean)],Z_.prototype,"miniplayerIsActive",void 0);_.u([_.Y({selector:function(M){return M.watch.playerState}}),
_.W("design:type",Number)],Z_.prototype,"playerState",void 0);_.u([_.Y({selector:_.HS}),_.W("design:type",Boolean)],Z_.prototype,"isFullscreen",void 0);_.u([_.Y({selector:_.ye}),_.W("design:type",Boolean)],Z_.prototype,"isTheaterMode",void 0);_.u([_.Y(),_.W("design:type",Object)],Z_.prototype,"activeNowPlayingRenderer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z_.prototype,"moveThreeDotMenuToTopRow",null);
_.u([_.F("data","autoplayData","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z_.prototype,"nextVideoTitle",null);_.u([_.F("data","nextVideoTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],Z_.prototype,"nextVideoLabel",null);_.u([_.F("collapsed"),_.W("design:type",String),_.W("design:paramtypes",[])],Z_.prototype,"buttonAriaLabel",null);
_.u([_.F("data","playlistId","longBylineText"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z_.prototype,"mixLongByLine",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z_.prototype,"playlistLoopStateEntityKey",null);_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"onMouseEnter",null);
_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"onMouseLeave",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z_.prototype,"showNextVideoHeader",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"onRenderStamperFinished",null);
_.u([_.la("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"collapseChanged",null);_.u([_.la("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"hiddenChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"dataChanged",null);
_.u([_.F("isTheaterMode","isFullscreen"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z_.prototype,"isFullBleedPlayer",null);_.u([_.la("isTheaterMode","isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"onFullBleedPlayerChanged",null);_.u([_.la("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"onFullscreenChanged",null);
_.u([_.la("playerState","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"updateNowPlayingOverlay",null);_.u([_.Xw("yt-playlist-lockup-now-playing-active"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Z_.prototype,"onPlaylistLockupNowPlaying",null);
_.u([_.la("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z_.prototype,"colorPaletteChanged",null);_.u([_.c({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Z_);
_.dRV=_.kS()(Z_,"ytd-playlist-panel-renderer",function(){if(sAV===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);sAV=M}M=sAV;return M},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var KkS;var kH=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework");return M};
_.w(kH,_.g);kH.prototype.computeShouldButtonBeVertical=function(M,z){return M||z};
kH.prototype.onYtServiceRequestSent=function(M,z){(M=_.G(z.endpoint,_.uf))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.pf("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:M.status})):this.handleLikeEndpoint(M))};
kH.prototype.computelikeStatusEntityKey=function(M){return M==null?void 0:M.likeStatusEntityKey};
kH.prototype.handleLikeEndpoint=function(M){M.status==="LIKE"?this.JSC$16962_ytdDislikeToggleButtonRenderer.toggle(!1):M.status==="DISLIKE"?this.JSC$16962_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16962_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16962_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.rX.Object.defineProperties(kH.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var M;return Bze(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var M;if(this.data&&((M=this.data)==null||!M.hideDislikeButton)){var z;return Bze(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(z=this.likeStatusEntity)==null?void 0:z.likeStatus)}}}});
kH.prototype.onYtServiceRequestSent=kH.prototype.onYtServiceRequestSent;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kH.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kH.prototype,"vertical",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],kH.prototype,"textTransform",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kH.prototype,"useShortsIcon",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kH.prototype,"underIconLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kH.prototype,"modern",void 0);_.u([_.Y({value:"left"}),_.W("design:type",String)],kH.prototype,"buttonTooltipPosition",void 0);
_.u([_.Y(),_.W("design:type",Object)],kH.prototype,"overrides",void 0);_.u([_.Qc("#like-button"),_.W("design:type",Object)],kH.prototype,"JSC$16962_ytdLikeToggleButtonRenderer",void 0);_.u([_.Qc("#dislike-button"),_.W("design:type",Object)],kH.prototype,"JSC$16962_ytdDislikeToggleButtonRenderer",void 0);_.u([_.F("data","likeStatusEntity.likeStatus","useShortsIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],kH.prototype,"likeButton",null);
_.u([_.F("data","likeStatusEntity.likeStatus","useShortsIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],kH.prototype,"dislikeButton",null);_.u([_.Y({computed:"computelikeStatusEntityKey(data)"}),_.W("design:type",String)],kH.prototype,"likeStatusEntityKey",void 0);_.u([_.Y({selectorArgs:["likeStatusEntityKey"],selector:Kn}),_.W("design:type",Object)],kH.prototype,"likeStatusEntity",void 0);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],kH.prototype,"onYtServiceRequestSent",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],kH);
var $RS=_.kS()(kH,"ytd-like-button-renderer",function(){if(KkS===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);KkS=M}M=KkS;return M},{mode:1});_.urV={};
_.urV.YtConditionalRendererBehavior=[_.f.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(M,z){var J=this,R,D;return _.k(function(N){switch(N.nextAddress){case 1:if(!z)return J.hidden=!0,J.showSpinner=!1,N.return();if((R=M)==null?0:(D=R.visibilityCondition)==null?0:D.mode)switch(M.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return N.jumpTo(5);default:return N.jumpTo(6)}J.showSpinner=
!1;J.hidden=!0;return N.yield(J.shouldShow_(M),4);case 4:J.hidden=!N.yieldResult;N.jumpTo(0);break;case 5:return N.yield(J.shouldShow_(M),8);case 8:J.showSpinner=N.yieldResult;J.hidden=!1;N.jumpTo(0);break;case 6:return J.showSpinner=!1,N.yield(J.shouldShow_(M),9);case 9:J.hidden=!N.yieldResult,_.UI(N)}})},
shouldShow_:function(M){return M&&M.supportedDatas&&M.supportedDatas.rendererVisibilityConditionData&&M.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(M.supportedDatas.rendererVisibilityConditionData.showIf):M&&M.visibilityCondition&&M.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(M.visibilityCondition.showIf):M&&M.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(M.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(M){switch(M){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(M){switch(M){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var M=_.S9(this.hostElement,"yt-get-mdx-status");return M.length==1&&M[0].connected},
isLocationPermissionGranted_:function(){var M;return _.k(function(z){return z.nextAddress==1?navigator.permissions?z.yield(navigator.permissions.query({name:"geolocation"}),3):z.jumpTo(2):z.nextAddress!=2?(M=z.yieldResult,z.return(Promise.resolve(M.state==="granted"))):z.return(Promise.resolve(!1))})}}];var qY$=function(M,z){z=z===void 0?{}:z;var J=function(R){var D=document.createElement(M),N;var Z=(N=D.polymerController)!=null?N:D;r5G(D,Z,R,z);return D};
J.debugName=M+" (CoW wrapped)";return J}("yt-icon",{callbackProps:["onKeydown"]}),Wkv=_.U("web_bypass_polymer_yt_icon")&&_.U("kevlar_use_wil_icons")?_.Mf(function(M){var z=M.icon;
var J=M.active;var R=M.className;var D=M.style;var N=M.dataSelected;var Z=M.dataDisabled;var B=M.role;var O=M.themeOverride;var X=M.animateIcon;var l=M.ariaHidden;var e=M.ariaExpanded;var Q=M.ariaLabel;var v=M.tabindex;var x=M.id;var m=M.iconFilter;var y=M.onKeydown;var H=function(){var V=z==null?void 0:z(),E=null,L=void 0;V&&(V=aOV(V),V=YW3(V),V.length&&(E=V[1],L=V[0]));return{iconName:E,iconSetName:L}},q=function(){return V1a(H().iconName,J==null?void 0:J(),void 0,void 0,H().iconSetName,_.JF().resolve(_.XH))},
b=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:m==null?void 0:m()}};
return _.T(_.I,{cond:X,then:function(){return _.T(qY$,{icon:z,active:J,className:R,style:D,dataSelected:N,dataDisabled:Z,role:B,themeOverride:O,ariaHidden:l,ariaExpanded:e,ariaLabel:Q,tabindex:v,id:x,iconFilter:m,onKeydown:y})},
else:function(){return _.T(_.I,{cond:q,then:function(V){return _.T("span",{class:_.Qe("ytIconWrapperHost",R),role:B,"aria-label":Q,"aria-hidden":l,tabindex:function(){return isNaN(Number(v==null?void 0:v()))?void 0:Number(v==null?void 0:v())},
id:x,style:D,"on:keydown":_.ol(function(E){return void(y==null?void 0:y(E))})},_.T(Azw,{data:V,
options:b}))}})}})},"Be"):qY$;var aHa=function(M){var z=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];ESH();_.b9("ytglobal.ytUtilActivityCallback_",function(){_.ZL(M,"yt-user-activity")});
new zF(function(){return z.JSC$16978_onMouseMove});
document.addEventListener("scroll",function(){return z.onScroll});
window.addEventListener("resize",function(){return z.onResize})},Vjv=function(M,z,J){z in M.eventJobIds||(J=_.sj().addLowPriorityJob(function(){_.JL();
delete M.eventJobIds[z]},J),M.eventJobIds[z]=J)};
aHa.prototype.onScroll=function(M){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):M.target===document&&Vjv(this,"scroll",200)};
aHa.prototype.onResize=function(){Vjv(this,"resize",200)};
aHa.prototype.JSC$16978_onMouseMove=function(){Vjv(this,"mousemove",100)};
_.S0=function(M){M.scrollEventsToIgnore+=1;M.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){M.scrollEventsToIgnore--},500))};var EAk=function(M){this.element=M;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
EAk.prototype.showFeedbackDialog=function(M,z,J,R){var D=fHt();if(!D)return!1;var N=GKp();N.productId=D;z&&(N.flow="submit",N.report={description:z});J&&(fHt()==="59"?N.callback=_.ui(function(){_.gP("userFeedbackEvent",{});J()}):N.callback=_.ui(J));
N.bucket=R||_.HW("GOOGLE_FEEDBACK_BUCKET","Other");Lkk(N);M=AWQ(this,"GFEEDBACK",M);try{_.Ikp(N,M)}catch(Z){return _.$y(Z),!1}return!0};
EAk.prototype.showHelpDialog=function(M,z,J){var R=this,D=fHt();if(!D)return!1;var N={helpCenterPath:"/youtube",productData:AWQ(this,"GUIDED_HELP",J)};Lkk(N);var Z=GKp();Z.context=M||N.productData.context||"default";Z.defaultHelpArticleId=z;Z.enableSendFeedback=!0;(_.qH("gapi.load")||function(B,O){return O()})("client",function(){try{var B=EFt(D,N);
if(_.U("web_always_load_chat_support")&&!R.chatSupportLoaded)try{B.JSC$9942_loadChatSupport(Z),R.chatSupportLoaded=!0}catch(O){}B.startHelp(Z)}catch(O){_.$y(O)}})};
var fHt=function(){var M=_.HW("GOOGLE_FEEDBACK_PRODUCT_ID");M||_.$y(Error("di"));return M},Lkk=function(M){M&&(M.locale=_.U("kevlar_help_use_locale")?_.HW("INNERTUBE_CONTEXT_HL","en"):_.HW("HTML_LANG","en"))},AWQ=function(M,z,J){var R=M.productData;
delete R.origin;R.device=_.lG();var D;a:{if(D=document.createElement("canvas")){var N=D.getContext("experimental-webgl",{stencil:!0});if(N){var Z=N.getExtension("WEBGL_debug_renderer_info");if(Z){D=N.getParameter(Z.UNMASKED_RENDERER_WEBGL);break a}}if(N=D.getContext("webgl")){D=N.getParameter(N.RENDERER);break a}}D=null}R.gpu=D;R.isSDC=!!_.HW("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(D=_.HW("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.gu.extend(R,D);_.Ul3(z,R);_.v3e(R);(M=_.ZL(M.element,"yt-get-autonav-pause-debug-state"))&&
M.length&&(R.autonav_pause_state=M[0]);M=_.QW();R.browser_resolution=M.width+"\u00d7"+M.height+"@"+(window.devicePixelRatio||1)+"x";J&&_.gu.extend(R,J);return R};
EAk.prototype.resetProductData=function(){this.productData={}};var iVp=function(M){this.feedbackManager=new EAk(M)};
iVp.prototype.showFeedbackDialog=function(M,z,J,R){return this.feedbackManager.showFeedbackDialog(M,z,J,R)};
iVp.prototype.showHelpDialog=function(M,z,J){return this.feedbackManager.showHelpDialog(M,z,J)};var CqQ=function(){this.baseUrl="";this.aTag=document.createElement("a")},QBg=function(M,z,J){J=J===void 0?{}:J;
J.pbj||(J.pbj=1);J=_.m68(z,J);M.baseUrl&&J&&!_.ii(J)[1]&&!_.Ch(J)&&(z=M.baseUrl,Sp(z,"/")&&(z=z.slice(0,-1)),_.PY(J,"/")&&(J=J.slice(1)),J=z+"/"+J);_.K3(M.aTag,_.sw(J||""));return M.aTag.href};
CqQ.prototype.fetchData=function(M){return _.I5o(M)};
CqQ.prototype.postData=function(M,z){var J={method:"POST"};if(z){for(var R=_.S(Object.keys(z)),D=R.next();!D.done;D=R.next()){D=D.value;var N=z[D];_.E8(N)&&(z[D]=JSON.stringify(N))}J.postParams=z}return _.I5o(M,J)};
_.U1B=function(M,z,J,R,D){M=QBg(M,z,J);if(!M)throw R=Error("ei"),Object.assign(R,{params:z}),R;return _.I5o(M,D,R)};
CqQ.prototype.requestDataForServiceEndpoint=function(M,z){if(_.G(M,_.pkn))return this.fetchData("/getAccountSwitcherEndpoint");z=z||{};var J=_.G(M,u7v);J?z.se=J.base64EncodedServiceEndpoint:z.sej=JSON.stringify(M);(J=_.y5())&&_.U("enable_service_ajax_csn")&&(z.csn=J);z.theme=_.gB();_.G(M,t$8)&&_.HW("DELEGATION_CONTEXT")&&(z.delegation_context=JSON.stringify(_.HW("DELEGATION_CONTEXT")));J=null;for(var R in M)if(Sp(R,"Endpoint")||Sp(R,"Command")){J=R;break}if(!J){var D=Error("fi");Object.assign(D,{params:M});
_.pnG(D,"WARNING");return new _.If(function(Z,B){B(D)})}R={name:J};
var N;(J=(N=_.G(M,_.on))==null?void 0:N.signal)&&(R.signal=J);(N=_.fh(window.location.href))&&N.internalcountrycode&&(R.internalcountrycode=N.internalcountrycode);N="/service_ajax";_.U("debug_forward_web_query_parameters")&&(N=_.WVR(N,window.location.search));N=_.Ag(N,R);M.clickTrackingParams&&_.rM(N,{itct:M.clickTrackingParams});return this.postData(N,z)};_.bVB=new _.Nh("GFEEDBACK_TOKEN");var rW$;var MQ$;var zpS;var JZg;var BG=function(){var M=_.g.apply(this,arguments)||this;M.compact=!1;return M};
_.w(BG,_.g);BG.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BG.prototype.computeHasIcon_=function(M){return!!M};
BG.prototype.isSignInIcon_=function(M){return M=="yt-icons:prompted_sign_in"};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.urV.YtConditionalRendererBehavior),_.W("design:type",Object)],BG.prototype,"ytConditionalRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],BG.prototype,"data",void 0);
_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],BG.prototype,"icon_",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.W("design:type",Boolean)],BG.prototype,"hasIcon_",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.W("design:type",Boolean)],BG.prototype,"signInIcon_",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],BG.prototype,"compact",void 0);
_.u([_.cU({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],BG);
_.d(BG,"yt-player-error-message-renderer",function(){if(JZg===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;zpS===void 0&&(zpS=document.createElement("template"));var R=zpS;J.call(z,R.content.cloneNode(!0),M.content.firstChild);JZg=M}M=JZg;return M},{mode:2});var Rpa;var Dru;var OH=function(){return _.g.apply(this,arguments)||this};
_.w(OH,_.g);OH.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OH.prototype.computeIcon_=function(M){return M?"yt-icons:"+M.iconType.toLowerCase():"error_outline"};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OH.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],OH.prototype,"icon_",void 0);_.u([_.cU({is:"yt-player-kav-renderer",disableElementRegistration:!0})],OH);
_.d(OH,"yt-player-kav-renderer",function(){if(Dru===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Rpa===void 0&&(Rpa=document.createElement("template"));var R=Rpa;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Dru=M}M=Dru;return M},{mode:2});var tve=_.Ca(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.N7(_.Mf(function(M){var z=_.AL("div"),J=_.S(_.kE(0,void 0,"yt0wE")),R=J.next().value,D=J.next().value;J=_.S(_.kE(null,void 0,"CnFp5"));var N=J.next().value,Z=J.next().value;_.mF(function(){jDo(z.value,D,Z);z.value.scrollIntoView()});
J=pQH.bind(null,M.data,R);MS("resize",function(){var B=N();if(R()===1&&B!==null){var O;(O=window.grecaptcha)==null||O.reset(B)}});
return _.T("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.T("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.T("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var B,O;return(B=M.data().accessibility)==null?void 0:(O=B.accessibilityData)==null?void 0:O.label}),_.T(_.m3,{text:J,
className:_.Qe("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.T("div",{el:z,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Ce"),"yt-player-captcha-view-model",{props:{data:_.Dv}});var FPY=!1;_.NWQ=_.Mf(function(M){var z=M.data;return _.T("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.T(_.I,{cond:function(){return z().icon},
then:function(J){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.T(_.rv,{data:J,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.T(_.I,{cond:function(){return z().title},
then:function(J){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.T(_.m3,{text:J}))}}),_.T(_.I,{cond:function(){return z().description},
then:function(J){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.T(_.m3,{text:J}))}}),_.T(_.t_,{data:function(){return z().primaryButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.T(_.t_,{data:function(){return z().secondaryButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"De");
_.NWQ.idomCompat=!0;var Pt$=_.Mf(function(M){var z=M.data;_.VL();return _.T("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.T("div",{class:"player-interstitial-renderer-wiz__scrim"},_.T(_.t_,{data:function(){return z().content}},{interstitialViewModel:_.NWQ})))},"Ee");
Pt$.idomCompat=!0;_.N7(Pt$,"yt-player-interstitial-renderer",{props:{data:_.zn}});var TR=function(){var M=_.g.apply(this,arguments)||this;M.noBackground=!1;M.compact=!1;M.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return M};
_.w(TR,_.g);TR.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"}}}};
TR.prototype.onUpdatePlayerErrorMessageCommand_=function(M){if(_.G(M,zrQ)){var z;if(M=(z=_.G(M,zrQ))==null?void 0:z.newPlayerErrorMessageRenderer)this.data=M}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],TR.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],TR.prototype,"status",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],TR.prototype,"noBackground",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],TR.prototype,"compact",void 0);_.u([_.cU({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],TR);
var Sl2=_.kS()(TR,"yt-playability-error-supported-renderers",function(){if(MQ$===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;rW$===void 0&&(rW$=document.createElement("template"));var R=rW$;J.call(z,R.content.cloneNode(!0),M.content.firstChild);MQ$=M}M=MQ$;return M},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Yp8=void 0,g3p=void 0;var hPH=new gFV;var Z5k=function(M){this.store=M;this.thT=new _.hB$},ZiG=function(M,z,J){var R,D;
if(!(D=((R=z.playabilityStatus)==null?void 0:R.status)!=="OK")){M=M.store;var N;D=z.offlineState&&((N=z.videoDetails)==null?0:N.videoId)?_.U("enable_pl_r_c_cd")?JmG(M.getState().entities,z.videoDetails.videoId):!!mJ8(M.getState().entities,z.videoDetails.videoId):!1}if(D)return!0;D=KP8(z);if(D===1){if(_.U("ab_v_vid_sig")){var Z,B=(Z=z.videoDetails)==null?void 0:Z.videoId;if(!B||!J||B!==J){var O;z=new _.xN("282054944_vid",{hZg:J,fIC:(O=z.videoDetails)==null?void 0:O.videoId});_.nc(z)}}return!0}$4b=
0;var X,l;O=(B=z.auxiliaryUi)==null?void 0:(X=B.messageRenderers)==null?void 0:(l=X.bkaEnforcementMessageViewModel)==null?void 0:l.displayType;if(D!==3&&(O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;O={reason:_.JN(_.e9("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.U("ks_something_wrong_learn_more")?M2w("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.JN(_.e9("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:_.JN("282054944")};k6$(z,{playerErrorMessageRenderer:O});return!1},kHR=function(M,z){if(Rup(z)){_.QO(1,!0);
var J=(J=Rup(z))&&_.mlb()?J:void 0;J?(k6$(z,{enforcementMessageViewModel:J}),M.thT.increment("IN_PLAYER"),_.QO(5)):(M.thT.increment("SKIP_DISPLAY"),_.QO(2))}},k6$=function(M,z){M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",
errorScreen:z});M.videoDetails=void 0};
Z5k.prototype.handleResponse=function(M,z){if(M.playabilityStatus){var J,R,D,N=(z==null?void 0:(J=z.innerTubeRequest)==null?void 0:J.videoId)||(z==null?void 0:(R=z.innerTubeRequest)==null?void 0:(D=R.playerRequest)==null?void 0:D.videoId);ZiG(this,M,N)&&kHR(this,M)}};
Z5k[DW]=[Pf];var PcR=new _.Nh("ADBLOCK_DETECTION_SERVICE_TOKEN");var Ak=function(M){this.tNk=M};
Ak.prototype.bindInnertubeChallengeFetcher=function(M){this.tNk.bicf(M)};
Ak.prototype.registerChallengeFetchedCallback=function(M){this.tNk.bcr(M)};
Ak.prototype.getLatestChallengeResponse=function(){return this.tNk.blc()};var BWV;BWV=_.Ca(["https://static.doubleclick.net/instream/ad_status.js"]);_.O5v=_.Nx(BWV);var Xqp;_.Im=function(M,z,J){var R=this;this.network=M;this.options=z;this.networkStatusManager=J;this.nD=null;if(z.useBotguardEverywhere){var D=new _.Iz;this.nD=D.promise;_.R3.ytAtRC&&_.mn(_.no,function(){var N,Z;return _.k(function(B){if(B.nextAddress==1){if(!_.R3.ytAtRC)return B.return();N=TWp(null);return B.yield(R.v0(N),2)}Z=B.yieldResult;_.R3.ytAtRC&&_.R3.ytAtRC(JSON.stringify(Z));_.UI(B)})});
a5R().then(function(N){var Z,B,O,X;return _.k(function(l){if(l.nextAddress==1)return N.bindInnertubeChallengeFetcher(function(e){return R.v0(TWp(e))}),l.yield(YR8(),2);
Z=l.yieldResult;B=N.getLatestChallengeResponse();O=B.challenge;if(!O)throw Error("gi");X={challenge:O,tn:Lr(O),vm:Z,bgChallenge:new Em};D.resolve(X);N.registerChallengeFetchedCallback(function(e){e=e.challenge;if(!e)throw Error("hi");e={challenge:e,tn:Lr(e),vm:Z,bgChallenge:new Em};R.nD=Promise.resolve(e)});
_.UI(l)})})}else z.preload&&IwJ(this,new Promise(function(N){_.x4(_.no,function(){N(ogp(R))},0)}))};
Xqp=function(M){var z={preload:!0,useBotguardEverywhere:!0},J=!1;if(typeof z==="boolean")var R={preload:z};else typeof z==="undefined"?R={preload:!0}:(R=z,J=!!z.mTh);z=J?void 0:new _.VS;_.Im.instance=new _.Im(M,R,z);return _.Im.instance};
_.Im.prototype.s3i=function(){var M=this;return _.k(function(z){return z.nextAddress==1?z.yield(Promise.race([M.nD,null]),2):z.return(!!z.yieldResult)})};
_.Im.prototype.rif=function(M,z,J){var R=this,D,N,Z;return _.k(function(B){R.nD===null&&IwJ(R,ogp(R));D=!1;N={};Z=function(){var O,X,l;return _.k(function(e){switch(e.nextAddress){case 1:return e.yield(R.nD,2);case 2:O=e.yieldResult;N.challenge=O.challenge;if(!O.vm){"c1a"in O.tn&&(N.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");e.jumpTo(3);break}X=Object.assign({},{c:O.challenge,e:M},z);_.Io(e,4);D=!0;return e.yield(O.vm.snapshot({u0:X}),6);case 6:(l=e.yieldResult)?N.webResponse=l:N.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.ab(e,3);break;case 4:_.Qa(e),N.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(M==="ENGAGEMENT_TYPE_PLAYBACK"){var Q=O.tn,v={};if(Q.c6a){var x=Number(_.HW("DCLKSTAT",0));v.reportingStatus=String(Number(Q.c)^(isNaN(x)?0:x))}Q.c6b&&(v.broadSpectrumDetectionResult=String(Number(Q.c)^Number(_.HW("CATSTAT",0))));N.adblockReporting=v}return e.return(N)}})};
return B.return(Promise.race([Z(),lwu(J,function(){var O=Object.assign({},N);D&&(O.error="ATTESTATION_ERROR_VM_TIMEOUT");return O})]))})};
var TWp=function(M){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(z.interpreterHash=M);return z},ogp=function(M,z){z=z===void 0?0:z;
var J,R,D,N,Z,B,O,X,l,e,Q,v;return _.k(function(x){switch(x.nextAddress){case 1:J=TWp(yAV().saQ);if(_.U("att_fet_ks"))return _.Io(x,7),x.yield(M.v0(J),9);_.Io(x,4);return x.yield(epu(M,J),6);case 6:Z=x.yieldResult;D=Z.yL3;N=Z.a2r;R=Z;_.ab(x,3);break;case 4:return _.Qa(x),_.yA(Error("ii`"+z)),Qip(M,864E5),x.return({challenge:"",tn:{},vm:void 0,bgChallenge:void 0});case 9:R=x.yieldResult;if(!R)throw Error("ji");if(!R.challenge)throw Error("ki");D=R.challenge;N=Lr(D);if("c1a"in N&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("li");
_.ab(x,3);break;case 7:B=_.Qa(x);_.yA(B);z++;if(z>=5)return _.yA(Error("ii`"+z)),Qip(M,864E5),x.return({challenge:"",tn:{},vm:void 0,bgChallenge:void 0});O=1E3*Math.pow(2,z-1)+Math.random()*1E3;return x.return(new Promise(function(m){_.x4(_.no,function(){m(ogp(M,z))},O)}));
case 3:X=WP3(N);Qip(M,X*1E3);l=void 0;if(!("c1a"in N&&R.bgChallenge)){x.jumpTo(10);break}e=qp3(R.bgChallenge);_.Io(x,11);return x.yield(cAa(yAV(),e),13);case 13:_.ab(x,12);break;case 11:return Q=_.Qa(x),_.yA(Q),x.return({challenge:D,tn:N,vm:l,bgChallenge:e});case 12:return _.Io(x,14),l=new _.ds({challenge:e,wmR:{lR:"aGIf"}}),x.yield(l.bCN,16);case 16:_.ab(x,10);break;case 14:v=_.Qa(x),_.yA(v),l=void 0;case 10:return x.return({challenge:D,tn:N,vm:l,bgChallenge:e})}})};
_.Im.prototype.v0=function(M){var z=this,J;return _.k(function(R){J=z.networkStatusManager;if(!J||J.isNetworkAvailable())return R.return(z.network.v0(M));_.Hv("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(D){J.listenOnce("publicytnetworkstatus-online",function(){z.network.v0(M).then(D)})}))})};
var Ur$=function(M){if(!M)throw Error("ji");if(!M.challenge)throw Error("ki");var z=M.challenge,J=Lr(z);if("c1a"in J&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("li");return Object.assign({},M,{yL3:z,a2r:J})},epu=function(M,z){var J,R,D,N,Z;
return _.k(function(B){switch(B.nextAddress){case 1:J=void 0,R=0,D={};case 2:if(!(R<5)){B.jumpTo(4);break}if(!(R>0)){B.jumpTo(5);break}D.gEQ=1E3*Math.pow(2,R-1)+Math.random()*1E3;return B.yield(new Promise(function(O){return function(X){_.x4(_.no,function(){X(void 0)},O.gEQ)}}(D)),5);
case 5:return _.Io(B,7),B.yield(M.v0(z),9);case 9:return N=B.yieldResult,B.return(Ur$(N));case 7:J=Z=_.Qa(B),Z instanceof Error&&_.yA(Z);case 8:R++;D={gEQ:void 0};B.jumpTo(2);break;case 4:throw J;}})},IwJ=function(M,z){M.nD=z},vg$=function(M){var z,J,R;
return _.k(function(D){if(D.nextAddress==1)return D.yield(Promise.race([M.nD,null]),2);z=D.yieldResult;var N=ogp(M);M.nD=N;(J=z)==null||(R=J.vm)==null||R.dispose();_.UI(D)})},Qip=function(M,z){var J=Date.now()+z,R=function(){var D;
return _.k(function(N){D=J-Date.now();return D<1E3?N.yield(vg$(M),0):(_.x4(_.no,R,Math.min(D,6E4)),N.jumpTo(0))})};
R()},lwu=function(M,z){return new Promise(function(J){_.x4(_.no,function(){J(z())},M)})};var G6p=function(){};
G6p.prototype.processContext=function(M){var z=_.Im.instance;if(!z)return _.r$();var J=iIp(M);return J?new bU(z.rif(J,f5G(M),500).then(function(R){var D;(M==null?0:(D=M.innerTubeRequest)==null?0:D.context)||(M.innerTubeRequest.context={});D=M.innerTubeRequest.context;D.request||(D.request={});D.request.attestationResponseData=R})):_.r$()};var wqJ=function(M){this.innertubeTransportService=M};
wqJ.prototype.v0=function(M){_.Hv("att_fsr",void 0,"attestation_challenge_fetch");return _.W2(this.innertubeTransportService,M,_.MG(_.Jpa)).then(function(z){_.Hv("att_frr",void 0,"attestation_challenge_fetch");return z})};_.xrv=function(M){this.innertubeTransportService=M};var tQS=new _.Nh("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var jia=function(){},Fu2=function(M,z,J,R,D){var N=_.HW("YPC_MB_URL");
_.hmw(N).then(function(){pqv(N,M,z,J,R,D)})},pqv=function(M,z,J,R,D,N){try{var Z=payments.business.integration,B=payments.business.integration.Style.create().withMaterialDesignStyle(),O=Z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.U("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle("windowConstrained"));N&&(O=O.usingCloseCallback(N));var X=J?J:_.HW("YPC_GB_LANGUAGE"),l=_.HW("SESSION_INDEX");Z.bootstrap.fromPaymentsUrl(M);Z.bootstrap.asMashupMode(O).usingGaiaIndex(l).usingLocale(X).usingStyle(B).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Z.standaloneContextAuthId.forGaia()).purchaseManager(z,function(e){R&&R(e)}).load(void 0,D)}catch(e){throw D&&D(e),_.nc(e),e;
}};var Yl$=new _.Nh("PURCHASE_MANAGER_TOKEN");var mrV=function(){var M=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return M.videos},
getContinuationsPresent:function(){return M.continuationsPresent},
setVideos:function(z){M.videos=z},
getRecommendedVideos:function(){return M.recommendedVideos},
setRecommendedVideos:function(z){M.recommendedVideos=z}}};
mrV.prototype.addVideos=function(M){M&&(this.videos=M.filter(function(z){return!!_.bIp(z)}).map(function(z){var J=_.bIp(z);
a:{var R;if(z.playlistVideoRenderer&&((R=z.playlistVideoRenderer)==null?0:R.voteSortTiebreaker))var D=z.playlistVideoRenderer.voteSortTiebreaker;else{if(_.G(z,bf)){var N;if(R=(D=_.G(z,bf))==null?void 0:(N=D.playlistItemData)==null?void 0:N.voteSortTiebreaker){D=R;break a}}D=""}}return{itemId:J,videoId:_.zmR(z),voteCount:_.JO8(z),voteSortTiebreaker:D}}),this.continuationsPresent=!!_.G(M[M.length-1],_.z0))};
var ggV=function(M,z){return M.videos.findIndex(function(J){return J.itemId===z})},sig=function(M,z){return M.recommendedVideos.findIndex(function(J){return J.itemId===z})},ngQ=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:M}}}}};_.JF().resolve(_.Rb).resolveCommand(M)};var hp$=function(){mrV.apply(this,arguments)};
_.w(hp$,mrV);
var SGV=function(M,z,J,R){if(!M.parentElem)throw Error("qi");var D=ggV(M,z);D===-1&&(D=sig(M,z),D=D!==-1?D+M.videos.length:-1);if(D===-1)throw Error("ri");var N=D>=M.videos.length?M.recommendedVideos[D-M.videos.length]:M.videos[D];N.voteCount=J;N.voteSortTiebreaker=Date.now().toString();D>=M.videos.length?M.recommendedVideos.splice(D-M.videos.length,1):M.videos.splice(D,1);var Z=M.videos;for(var B=0,O=Z.length-1;B<=O;){var X=Math.floor((B+O)/2);if(Z[X].voteCount<N.voteCount)O=X-1;else if(Z[X].voteCount>N.voteCount)B=
X+1;else{a:{var l=N.voteSortTiebreaker;var e=Z[X].voteSortTiebreaker;if(l.length!==e.length)l=l.length>e.length;else{for(var Q=0;Q<l.length;Q++){var v=l.charCodeAt(Q),x=e.charCodeAt(Q);if(v>x){l=!0;break a}if(v<x)break}l=!1}}l?O=X-1:B=X+1}}Z=B;if(Z===-1)throw Error("si");M.videos.splice(Z,0,N);D!==Z&&yZQ(M,D,Z,z,J,R)},yZQ=function(M,z,J,R,D,N){var Z,B=(Z=M.parentElem)==null?void 0:Z.children,O=Math.min(z,J),X=Math.max(z,J);
if(B)for(Z=O;Z<=X;Z++)B[Z].style.viewTransitionName="item-"+String(Z);document.startViewTransition(function(){if(M.parentElem){var l=M.parentElem.children;if(!(!l||z<0||z>=l.length||J<0||J>=l.length)){var e=l[z];if(e){e.remove();M.showRefreshPill=J>=M.videos.length-1&&M.continuationsPresent;if(!M.showRefreshPill){l=l[J]||null;var Q;(Q=M.parentElem)==null||Q.insertBefore(e,l)}_.Pv(M.parentElem,"yt-update-video-data-voting-animation",{toIdx:J,itemId:R,newVoteCount:D,voteStatus:N,hideItem:M.showRefreshPill})}}}}).finished.then(function(){if(B)for(var l=
O;l<=X;l++)B[l].style.viewTransitionName="";
if(M.showRefreshPill)ngQ(_.e9("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var e;if(e=l=(e=M.parentElem)==null?void 0:e.children[J])e=l.getBoundingClientRect(),l=e.bottom,e=!(e.top>=0&&l<=M.clientHeight);e&&(e=_.QC(z>J?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(z-J)),ngQ(e))}})};var dr2=function(M,z){var J=this;M?this.innertubeTransportServicePromise=Promise.resolve(M):z&&(this.innertubeTransportServicePromise=z(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bX(3E3,function(R){return H5J(J,R)},0);
this.validateMiniAppVideoIdRateLimiter=new bX(3E3,function(R){return cZ$(J,R)},1)},TnB=function(M,z){M.JSC$17090_miniAppId=z;
M.reportMiniAppValueRateLimiter=new bX(3E3,function(J){return H5J(M,J)},0);
M.validateMiniAppVideoIdRateLimiter=new bX(3E3,function(J){return cZ$(M,J)},1)},oAv=function(M,z){var J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.reportMiniAppValueRateLimiter.call(z),2);J=R.yieldResult;return R.return([J,z])})},H5J=function(M,z){var J,R,D,N,Z,B,O;
return _.k(function(X){switch(X.nextAddress){case 1:return X.yield(M.innertubeTransportServicePromise,2);case 2:return J=X.yieldResult,R=_.MG(ZxV),D=Date.now(),N={externalPostId:M.JSC$17090_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(D/1E3),nanos:Math.round(D%1E3*1E6)},intValue:""+z}},_.Io(X,3),X.yield(_.W2(J,N,R),5);case 5:Z=X.yieldResult;_.ab(X,4);break;case 3:throw B=_.Qa(X),B;case 4:if(Z){if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("ti`"+
Z.errorMetadata.status);if(O=Z.userStatResult)return X.return(O);throw Error("ui");}throw Error("vi");}})},lHQ=function(M){var z,J,R,D,N;
_.k(function(Z){switch(Z.nextAddress){case 1:return Z.yield(M.innertubeTransportServicePromise,2);case 2:return z=Z.yieldResult,J=_.MG(ZxV),R={externalPostId:M.JSC$17090_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Io(Z,3),Z.yield(_.W2(z,R,J),5);case 5:D=Z.yieldResult;_.ab(Z,4);break;case 3:throw N=_.Qa(Z),N;case 4:if(D==null)throw Error("vi");if("error"in D&&D.error)throw D.error;if(D.errorMetadata)throw Error("ti`"+D.errorMetadata.status);_.UI(Z)}})};
dr2.prototype.flush=function(){var M=this;return _.k(function(z){return z.nextAddress==1?z.yield(M.reportMiniAppValueRateLimiter.flush(),2):z.yield(M.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var X7$=function(M,z){return _.k(function(J){return J.nextAddress==1?J.yield(M.validateMiniAppVideoIdRateLimiter.call(z),2):J.return(J.yieldResult)})},cZ$=function(M,z){var J,R,D,N,Z,B;
return _.k(function(O){switch(O.nextAddress){case 1:return O.yield(M.innertubeTransportServicePromise,2);case 2:return J=O.yieldResult,R=_.MG(M0V),D={videoId:z},_.Io(O,3),O.yield(_.W2(J,D,R),5);case 5:N=O.yieldResult;_.ab(O,4);break;case 3:throw Z=_.Qa(O),Z;case 4:if(N){if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("ti`"+N.errorMetadata.status);if(B=N.playabilityStatus)return O.return(B.status);throw Error("wi");}throw Error("vi");}})};
dr2[DW]=[_.zw(_.cP),_.zw(hdV)];var KuV=function(){this.clientData=new Map};
KuV.prototype.getData=function(M){return this.clientData.get(M)};var $r2=function(M){this.store=M};
$r2.prototype.handleResponse=function(M){(M=_.G(M.frameworkUpdates,iP))&&_.Uh(M,this.store)};
$r2[DW]=[_.Vo];var uVg=new _.Nh("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var qlQ={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Wuu=new _.Nh("ICON_SET_TOKEN"),aw$=new _.Nh("ICON_URL_PROVIDER_TOKEN"),VQu=new _.Nh("PREFETCH_ICONS_TOKEN"),Egt=new _.Nh("ICON_MAP_FN_TOKEN");var om={},fwV=(om.ACCESS_TIME="clock",om.ACCOUNT_BOX="person_account",om.ACCOUNT_BOX_CAIRO="person_account_cairo",om.ACCOUNT_CIRCLE="person_circle",om.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",om.ACCOUNT_LINKED="account_link_success",om.ACCOUNT_UNLINKED="account_link",om.ADD_FRIEND="people",om.ADD_MODERATOR="shield_add",om.ADD_TO_LIBRARY="bookmark",om.ADD_TO_PLAYLIST="add",om.ADD_TO_QUEUE_TAIL="list_queue",om.ADD_TO_REMOTE_QUEUE="list_music",om.ADD_TO_WATCH_LATER="clock",om.ADD_VIDEO_LINK="film_strip_add",
om.ALERT_WARN_RED="alert_triangle",om.ARROW_BACK="arrow_left",om.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",om.ARROW_DROP_DOWN="chevron_down",om.ARROW_DROP_UP="chevron_up",om.ARROW_FORWARD="arrow_right",om.AUDIOTRACK="audio",om.AUTO_AWESOME="sparkle",om.AVATAR_ANONYMOUS="person_circle",om.AVATAR_LOGGED_OUT="person_circle",om.BACK="arrow_left",om.BAR_CHART="bar_graph",om.BLOCK="slash_circle_left",om.BLOCK_USER="slash_circle_left",om.BOOKMARK_BORDER="bookmark",om.BREAKING_NEWS_ALT_1="article_alert",
om.BROADCAST_CAIRO="podcast_cairo",om.BUG_REPORT="bug",om.CAMERA_ALT="camera",om.CAMPAIGN="megaphone",om.CANCEL="x_circle",om.CAPTIONS="closed_caption",om.CAST_OUTLINE="chromecast",om.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",om.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",om.CHAT="message_bubble_left",om.CHAT_BUBBLE="message_bubble_empty",om.CHAT_SPARK="spark_message_bubble_left",om.CHECK_BOX_OUTLINE_BLANK="box_empty",om.CHECK_CIRCLE_OUTLINE="check_circle",om.CHECK_CIRCLE_THICK="check_circle",om.CLARIFY=
"article_clarify",om.CLOSED_CAPTION_SELECTED="closed_caption",om.CLOSE="x_mark",om.CLOUD_UPLOAD="cloud_arrow_up",om.COLLAPSE="chevron_up",om.COLLAPSE_CAIRO="chevron_up_cairo",om.COLLECTION="layers",om.COLOR_LENS="palette",om.COMMENT="message_bubble_right",om.CONSENT_SHIELD="person_shield",om.CONTENT_CUT="scissors",om.CONTENT_CUT_CAIRO="scissors_cairo",om.COURSE=_.U("web_enable_course_icon_update")?"creator_academy":"lightbulb",om.COURSE_CAIRO=_.U("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",om.CREATION_LIVE="radar_live",om.CREATION_POST="box_pencil",om.CREATION_UPLOAD="my_videos",om.CREATION_UPLOAD_RED="upload",om.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",om.CREATOR_STUDIO="youtube_studio",om.DASHBOARD="grid_asymmetrical",om.DELETE="trash_can",om.DELETE_SWEEP="trash_can",om.DESKTOP="laptop",om.DISLIKE="thumb_down",om.DISLIKE_SELECTED="thumb_down",om.DISMISSAL="x_mark",om.DISMISS_QUEUE="list_remove",om.DONE_ALL="check_double",om.DOWN_ARROW="arrow_down",om.DO_NOT_DISTURB=
"slash_circle_left",om.DRAFT="paper_corner_folded",om.DRAG_HANDLE="bars_2",om.EDIT="pencil",om.EMOJI="face_very_happy",om.EMOJI_FLAGS="flag",om.EMOJI_OBJECTS="lightbulb",om.EMOJI_PEOPLE="face_very_happy",om.EMOJI_RECENT="clock",om.EMPTY_HEART="heart",om.EMPTY_LIKE="thumb_up",om.ERROR_BLACK="alert_circle",om.ERROR_OUTLINE="alert_circle",om.EXIT_APP="arrow_in",om.EXIT_TO_APP="arrow_in",om.EXPAND="chevron_down",om.EXPAND_ALL="chevron_expand",om.EXPAND_CAIRO="chevron_down_cairo",om.EXPAND_LESS="chevron_up",
om.EXPAND_MORE="chevron_down",om.EXPLORE="compass",om.EXPLORE_DESTINATION="compass",om.EXTERNAL_LINK="open_new",om.FAB_UPLOAD="upload",om.FACE_HAPPY_OUTLINE="face_happy",om.FACT_CHECK="article_check",om.FASHION_LOGO="fashion",om.FASHION_LOGO_CAIRO="fashion_cairo",om.FAVORITE="heart",om.FEEDBACK="message_bubble_alert",om.FEEDBACK_CAIRO="message_bubble_alert_cairo",om.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",om.FILL_ARROW_SOLID_UP_16="arrow_solid_up",om.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
om.FILTER="menu_filter",om.FIRST_PAGE="chevron_first",om.FLAG="flag",om.FULL_HEART="heart",om.GAME_CONSOLE_DPAD="game_console_dpad",om.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",om.GAMING_LOGO="gaming",om.GAMING_LOGO_CAIRO="gaming_cairo",om.GO_TO_PAGE="arrow_right",om.GROUPS="people_group",om.HAPPY="face_happy",om.HEALTH_AND_SAFETY="shield_plus",om.HELP="question_circle",om.HELP_CAIRO="question_circle_cairo",om.HELP_OUTLINE="question_circle",om.HIDE="slash_circle_left",om.IMAGE="image",
om.INFINITY_ICON="infinity",om.INFO="info_circle",om.INFO_OUTLINE="info_circle",om.INSERT_CHART="bar_graph_box_vertical",om.INSERT_CHART_OUTLINED="bar_graph_box_vertical",om.INSERT_PHOTO="image",om.KEEP="pin",om.KEEP_OFF="pin_off",om.KEYBOARD="keyboard",om.KEYBOARD_ARROW_DOWN="chevron_down",om.KEYBOARD_ARROW_UP="chevron_up",om.KIDS_BLOCK="slash_circle_left",om.LANGUAGE="globe",om.LAST_PAGE="chevron_last",om.LAUNCH="open_new",om.LEARNING="lightbulb",om.LEARNING_CAIRO="lightbulb_cairo",om.LIBRARY_ADD=
Pu3("library_add"),om.LIBRARY_OUTLINE="library",om.LIBRARY_REMOVE=Pu3(),om.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",om.LIKES_PLAYLIST="thumb_up",om.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",om.LIKE="thumb_up",om.LIKE_SELECTED="thumb_up",om.LIVE="radar_live",om.LIVE_CAIRO="radar_live_cairo",om.LIVE_UNLISTED="link",om.LOCATION_ON="location_point",om.LOCATION_PIN="location_point",om.LOOP="arrow_repeat",om.LOOP_ACTIVE="arrow_repeat",om.LOOP_ONE="arrow_repeat_1",om.LOOP_ONE_ACTIVE="arrow_repeat_1",om.MEH=
"face_meh",om.MEMBERS_ONLY_MODE_OFF="message_bubble_left",om.MESSAGE="message_bubble_left",om.MICROPHONE_ON="mic",om.MIX="youtube_mix",om.MONETIZATION_ON="dollar_sign_circle",om.MONEY_FILL="dollar_sign_container",om.MONEY_FILL_JPY="yen_sign_container",om.MONEY_HEART="dollar_sign_heart",om.MORE_HORIZ="overflow_horizontal",om.MORE_VERT="overflow_vertical",om.MUSIC="audio",om.MUSIC_CAIRO="audio_cairo",om.MUSIC_NOTE_SYMBOL="music",om.MUSIC_SHUFFLE="arrow_shuffle",om.MY_CHANNEL="person_circle",om.MY_LOCATION=
"location_point",om.NEWS_STORY="news",om.NEXT="chevron_right",om.NOTIFICATIONS="bell",om.NOTIFICATIONS_ACTIVE="bell_on",om.NOTIFICATIONS_CAIRO="bell_cairo",om.NOTIFICATIONS_DONE_CHECKMARK="check",om.NOTIFICATIONS_INBOX="bell",om.NOTIFICATIONS_NONE="bell",om.NOTIFICATIONS_OFF="bell_off",om.NOT_INTERESTED="slash_circle_left",om.OFFICIAL_ARTIST_BADGE="audio",om.OFFLINE_CLOUD="cloud_off",om.OFFLINE_DOWNLOAD="download",om.OFFLINE_DOWNLOAD_CAIRO="download_cairo",om.OFFLINE_PAUSE="pause",om.OPEN_IN_NEW=
"open_new",om.OUTLINE_ADJUST="adjust",om.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",om.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",om.OUTLINE_BAG="bag",om.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",om.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",om.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",om.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",om.PAID="dollar_sign",om.PAUSE_OUTLINED="pause",om.PAYMENT="credit_card",om.PERSON_RADAR_FILLED="person_radar",om.PHONE_DOWNLOAD="mobile_download",
om.PLAYABLES_LOGO="tic_tac_toe",om.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",om.PLAYLISTS="list_play_arrow",om.PLAYLISTS_CAIRO="list_play_arrow_cairo",om.PLAYLIST_ADD=Pu3("list_add"),om.PLAYLIST_ADD_CHECK=Pu3("list_check"),om.PLAYLIST_PLAY="list_play_arrow",om.PLAY_ALL="play_arrow",om.PLAY_CIRCLE="play_arrow_circle",om.PLAY_OUTLINED="play_arrow_circle",om.PRIVACY_INFO="shield",om.PRIVACY_PRIVATE="lock",om.PRIVACY_PUBLIC="earth",om.PRIVACY_UNLISTED="link",om.PROMOTE="megaphone",om.PURCHASES="price_tag",
om.PURCHASE_SUPER_CHAT="super_chat",om.PURCHASE_SUPER_STICKER="super_sticker",om.QUESTION_ANSWER="message_bubble_question",om.QUEUE_PLAY_LAST="list_queue_last",om.QUEUE_PLAY_NEXT="list_play_arrow",om.REMIX_FILLED="youtube_shorts_remix",om.REMOVE="bar_circle",om.REMOVE_CIRCLE="bar_circle",om.REMOVE_CIRCLE_OUTLINE="bar_circle",om.REMOVE_DONE="check_double_off",om.REMOVE_FROM_HISTORY="bar_circle",om.REMOVE_FROM_PLAYLIST="bar_circle",om.REMOVE_MODERATOR="shield_off",om.REPLAY="arrow_circle",om.REPLAY_10=
"skip_back_10",om.REPORT_PROBLEM="alert_triangle",om.SAD="face_sad",om.SAVE_PLAYLIST="bookmark",om.SCHEDULE="clock",om.SCHOOL="creator_academy",om.SCREEN_FULLSCREEN="screen_full",om.SEARCH_HISTORY="arrow_time",om.SELL="price_tag",om.SETTINGS="gear",om.SETTINGS_CAIRO="gear_cairo",om.SETTINGS_LIGHT="gear",om.SETTINGS_MATERIAL="gear",om.SHARE_ARROW="share",om.SHIELD_WITH_AVATAR="person_shield",om.SHOPPING_BAG="bag",om.SHOPPING_BAG_CAIRO="bag_cairo",om.SHOPPING_CART="cart",om.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
om.SHORTS_DISLIKE="youtube_shorts_thumb_down",om.SHORTS_LIKE="youtube_shorts_thumb_up",om.SHORTS_SHARE="youtube_shorts_share",om.SHUFFLE="arrow_shuffle",om.SLOW_MODE_OFF="message_bubble_left",om.SOCIAL="people",om.SORT="menu_sort",om.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",om.SPEED_1X="1x",om.SPEED_1_POINT_2X="1_point_2x",om.SPEED_1_POINT_5X="1_point_5x",om.SPEED_1_POINT_8X="1_point_8x",om.SPEED_2X="2x",om.SPEED_POINT_2X="point_2x",om.SPEED_POINT_8X="point_8x",om.SPONSORSHIP_STAR="star_circle",
om.STAFF_PICK="spotlight",om.START_DVR="add",om.STAR_BORDER="star",om.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",om.STICKER_EMOTICON="face_happy",om.STOP_DVR="stop",om.SUBSCRIBE="youtube_logo_icon",om.SUBSCRIBE_PLUS="add_cairo",om.SUBSCRIPTION_MANAGER="gear",om.SUPERVISOR_ACCOUNT="people",om.SUPER_CHAT_FOR_GOOD="hands_heart",om.SWAP_HORIZ="arrow_swap_horizontal",om.SWITCH_ACCOUNTS="person_account",om.TAB_ACCOUNT="person",om.TAB_ACTIVITY="bell",om.TAB_BOOKMARK="bookmark",om.TAB_EXPLORE="compass",
om.TAB_HOME="home",om.TAB_HOME_CAIRO="home_cairo",om.TAB_INBOX="mail",om.TAB_LIKED="thumb_up",om.TAB_MUSIC_PREMIUM="youtube_music",om.TAB_SHORTS="youtube_shorts",om.TAB_SHORTS_CAIRO="youtube_shorts_cairo",om.TAB_SUBSCRIPTIONS="subscriptions",om.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",om.TAB_TRENDING="fire",om.TIMER="stopwatch",om.TRAILER="youtube_originals",om.TRENDING="fire",om.TRENDING_CAIRO="fire_cairo",om.TRENDING_UP="rating_up",om.TROPHY="trophy",om.TROPHY_CELEBRATIONS="fireworks",om.TUNE=
"adjust",om.UNBLOCK_USER="bar_circle",om.UNLIMITED="youtube_logo_icon",om.UNPLUGGED_LIVE_GUIDE="radar_live",om.UNPLUGGED_SPORTS="eye_off",om.UPLOADS="library",om.UP_ARROW="arrow_up",om.VERTICAL_ALIGN_BOTTOM="download",om.VERY_HAPPY="face_very_happy",om.VERY_SAD="face_very_sad",om.VIDEOGAME_ASSET="gaming",om.VIDEOS="play_arrow_circle",om.VIDEO_CALL="video_camera_add",om.VIDEO_LIBRARY_WHITE="library",om.VIDEO_YOUTUBE="youtube_logo_icon",om.VIEW_LIST="list_view",om.VIEW_LIST_CAIRO="list_view_cairo",
om.VISIBILITY="eye",om.VISIBILITY_OFF="eye_off",om.VOLUME_MUTE="volume_off",om.VOLUME_UP="volume_on",om.WALLPAPER="image",om.WARNING="alert_triangle",om.WATCH_HISTORY="arrow_time",om.WATCH_HISTORY_CAIRO="arrow_time_cairo",om.WATCH_LATER="clock",om.WATCH_LATER_CAIRO="clock_cairo",om.WATCH_RELATED_MIX="youtube_mix",om.WHAT_TO_WATCH="home",om.YOUTUBE_MUSIC_MONOCHROME="youtube_music",om.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",om.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
om.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",om.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",om.YT_OUTLINE_MUSIC_24="music",om);var Xz={},LuV=(Xz.ACCESS_TIME="clock",Xz.ACCOUNT_BOX="person_square",Xz.ACCOUNT_BOX_CAIRO="person_square",Xz.ACCOUNT_CIRCLE="person_circle",Xz.ACCOUNT_CIRCLE_CAIRO="person_circle",Xz.ACCOUNT_LINKED="account_link",Xz.ACCOUNT_UNLINKED="account_link",Xz.ADD_CIRCLE="add_circle",Xz.ADD_CIRCLE_OUTLINE="add_circle",Xz.ADD_FRIEND="person_child",Xz.ADD_MODERATOR="shield_add",Xz.ADD_TO_LIBRARY="bookmark",Xz.ADD_TO_PLAYLIST="add",Xz.ADD_TO_QUEUE_TAIL="queue",Xz.ADD_TO_REMOTE_QUEUE="playlist_audio",Xz.ADD_TO_WATCH_LATER=
"clock",Xz.ADD_VIDEO_LINK="film_strip_add",Xz.ADMIN_PANEL_SETTINGS="person_gear",Xz.ALERT_WARN_RED="alert_triangle",Xz.ALIGN_LEFT="text_align_left",Xz.ARROWS_ALERT="arrow_split_alert",Xz.ARROW_BACK="arrow_left",Xz.ARROW_CIRCLE="arrow_counterclockwise",Xz.ARROW_CIRCLE_PLAY="replay",Xz.ARROW_CIRCLE_RIGHT="arrow_clockwise",Xz.ARROW_DIAGONAL="arrow_up_left",Xz.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Xz.ARROW_DROP_DOWN="triangle_down",Xz.ARROW_DROP_UP="triangle_up",Xz.ARROW_FORWARD="arrow_right",Xz.ARROW_PAUSE=
"pause_history",Xz.ARROW_UNDO="undo",Xz.ARTICLE="text_page",Xz.ARTICLE_ALERT="text_page_alert",Xz.ARTICLE_CHECK="text_page_check",Xz.ARTICLE_CLARIFY="text_page_info",Xz.AUDIOTRACK="audio",Xz.AUDIO_BADGE="audio_badge",Xz.AUDIO_SURROUND="surround_sound",Xz.AUTO_AWESOME="sparkles",Xz.AVATAR_ANONYMOUS="person_circle",Xz.AVATAR_LOGGED_OUT="person_circle",Xz.BACK="arrow_left",Xz.BAR_CHART="chart_bar",Xz.BAR_CIRCLE="minus_circle",Xz.BAR_HORIZONTAL="minus",Xz.BLOCK="circle_slash",Xz.BLOCK_USER="circle_slash",
Xz.BOOKMARK_BORDER="bookmark",Xz.BOX_OPEN_CHECK="quiz",Xz.BOX_PENCIL="square_pencil",Xz.BOX_STACK_3="square3_stack",Xz.BREAKING_NEWS_ALT_1="text_page_alert",Xz.BROADCAST="podcast",Xz.BROADCAST_CAIRO="podcast",Xz.BUG_REPORT="bug",Xz.CAMERA_ALT="camera",Xz.CAMPAIGN="megaphone",Xz.CANCEL="x_circle",Xz.CAPTIONS="closed_captions",Xz.CAST_ICON="chromecast",Xz.CAST_OUTLINE="chromecast",Xz.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Xz.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Xz.CHAT="text_bubble",
Xz.CHAT_BUBBLE="bubble",Xz.CHECK_BOX="check_square",Xz.CHECK_BOX_OUTLINE_BLANK="square",Xz.CHECK_CIRCLE_FILLED="check_circle",Xz.CHECK_CIRCLE_OUTLINE="check_circle",Xz.CHECK_CIRCLE_THICK="check_circle",Xz.CHECK_DOUBLE="check_done",Xz.CHECK_DOUBLE_OFF="check_done_slash",Xz.CHEVRON_LEFT="chevron_left",Xz.CHEVRON_RIGHT="chevron_right",Xz.CHEVRON_RIGHT_CAIRO="chevron_right",Xz.CIRCLES_OVERLAP="account_link",Xz.CLAPPERBOARD_CAIRO="clapperboard",Xz.CLARIFY="text_page_info",Xz.CLOCK_ARROWS="clock_split",
Xz.CLOCK_ARROWS_ALERT="clock_split_alert",Xz.CLOSED_CAPTION="closed_captions",Xz.CLOSED_CAPTION_SELECTED="closed_captions",Xz.CLOSE="x",Xz.CLOUD_UPLOAD="cloud_arrow_up",Xz.COLLAPSE="chevron_up",Xz.COLLAPSE_CAIRO="chevron_up",Xz.COLLECTION="square3d_stack",Xz.COLOR_LENS="paint_palette",Xz.COMMENT="text_bubble",Xz.CONSENT_SHIELD="person_shield",Xz.CONTENT_CUT="scissors",Xz.CONTENT_CUT_CAIRO="scissors",Xz.COURSE="graduation_cap",Xz.COURSE_CAIRO="graduation_cap",Xz.CREATION_LIVE="live",Xz.CREATION_POST=
"square_pencil",Xz.CREATION_UPLOAD="video",Xz.CREATION_UPLOAD_RED="upload",Xz.CREATOR_ACADEMY="graduation_cap",Xz.CREATOR_STUDIO="youtube_studio",Xz.DARK_THEME="theme",Xz.DELETE="trash_can",Xz.DELETE_SWEEP="trash_can",Xz.DESKTOP="laptop",Xz.DISLIKE="thumb_down",Xz.DISLIKE_SELECTED="thumb_down",Xz.DISMISSAL="x",Xz.DISMISS_QUEUE="playlist_x",Xz.DOGFOOD="pawprint",Xz.DOLLAR_SIGN="dollar_sign_circle",Xz.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Xz.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Xz.DOWN_ARROW=
"arrow_down",Xz.DO_NOT_DISTURB="circle_slash",Xz.DRAFT="document",Xz.DRAG_HANDLE="equal",Xz.EARTH="globe",Xz.EDIT="pencil",Xz.EMOJI="face_very_happy",Xz.EMOJI_FLAGS="flag",Xz.EMOJI_OBJECTS="lightbulb",Xz.EMOJI_PEOPLE="face_very_happy",Xz.EMOJI_RECENT="clock",Xz.EMPTY_HEART="heart",Xz.EMPTY_LIKE="thumb_up",Xz.ERROR_BLACK="alert_circle",Xz.ERROR_OUTLINE="alert_circle",Xz.ERROR_WHITE="alert_circle",Xz.EXIT_APP="arrow_in",Xz.EXIT_TO_APP="arrow_in",Xz.EXPAND="chevron_down",Xz.EXPAND_ALL="chevron_expand",
Xz.EXPAND_CAIRO="chevron_down",Xz.EXPAND_LESS="chevron_up",Xz.EXPAND_MORE="chevron_down",Xz.EXPLORE="compass",Xz.EXPLORE_DESTINATION="compass",Xz.EXTERNAL_LINK="arrow_up_right",Xz.EYE_OFF="eye_slash",Xz.FAB_UPLOAD="upload",Xz.FACE_HAPPY_OUTLINE="face_happy",Xz.FACE_MEH="face_neutral",Xz.FACT_CHECK="text_page_check",Xz.FASHION_LOGO="fashion",Xz.FASHION_LOGO_CAIRO="fashion",Xz.FAVORITE="thumb_up",Xz.FEEDBACK="alert_bubble",Xz.FEEDBACK_CAIRO="alert_bubble",Xz.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Xz.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Xz.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Xz.FLAG_CAIRO="flag",Xz.FLASH_OFF="flash_slash",Xz.FLASH_ON="flash",Xz.FULL_HEART="heart",Xz.GAMING_LOGO="gaming",Xz.GAMING_LOGO_CAIRO="gaming",Xz.GO_TO_PAGE="arrow_right",Xz.GROUPS="person3",Xz.HAND_SWIPE_LEFT="gesture_swipe_left",Xz.HAND_SWIPE_RIGHT="gesture_swipe_right",Xz.HAPPY="face_happy",Xz.HEALTH_AND_SAFETY="shield_health",Xz.HEART_BOX="heart_cube",Xz.HELP="help_circle",Xz.HELP_CAIRO="help_circle",
Xz.HELP_OUTLINE="help_circle",Xz.HIDE="circle_slash",Xz.INCOGNITO_CAIRO="incognito",Xz.INFINITY_ICON="infinity",Xz.INFO="info_circle",Xz.INFO_OUTLINE="info_circle",Xz.INSERT_CHART="chart_bar_square",Xz.INSERT_CHART_OUTLINED="chart_bar_square",Xz.INSERT_PHOTO="image",Xz.KEEP="pin",Xz.KEEP_OFF="pin_slash",Xz.KEYBOARD="keyboard",Xz.KEYBOARD_ARROW_DOWN="chevron_down",Xz.KEYBOARD_ARROW_UP="chevron_up",Xz.KIDS_BLOCK="circle_slash",Xz.LANGUAGE="globe",Xz.LAUNCH="arrow_up_right",Xz.LEARNING="lightbulb",Xz.LEARNING_CAIRO=
"lightbulb",Xz.LIBRARY_ADD="bookmark",Xz.LIBRARY_IMAGE="image_stack",Xz.LIBRARY_MUSIC="audio_square_stack",Xz.LIBRARY_OUTLINE="play_square_stack",Xz.LIBRARY_REMOVE="bookmark",Xz.LIBRARY_SAVED="check_square_stack",Xz.LIKES_PLAYLIST="thumb_up",Xz.LIKES_PLAYLIST_CAIRO="thumb_up",Xz.LIKE="thumb_up",Xz.LIKE_SELECTED="thumb_up",Xz.LIST_QUEUE="queue",Xz.LIVE_CAIRO="live",Xz.LIVE_UNLISTED="link",Xz.LOCATION_ON="location_pin",Xz.LOCATION_PIN="location_pin",Xz.LOCATION_POINT="location_pin",Xz.LOOP="repeat",
Xz.LOOP_ACTIVE="repeat",Xz.LOOP_ONE="repeat1",Xz.LOOP_ONE_ACTIVE="repeat1",Xz.MEET="google_meet",Xz.MEH="face_neutral",Xz.MEMBERSHIPS="memberships",Xz.MEMBERS_ONLY_MODE_OFF="text_bubble",Xz.MENU_FILTER="filter",Xz.MESSAGE="text_bubble",Xz.MESSAGE_BUBBLE_GEAR="bubble_gear",Xz.MESSAGE_BUBBLE_LEFT="text_bubble",Xz.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Xz.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Xz.MESSAGE_BUBBLE_QUESTION="help_bubble",Xz.MICROPHONE_ON="mic",Xz.MONETIZATION_ON="dollar_sign_circle",
Xz.MONEY_FILL="dollar_sign_rectangle",Xz.MONEY_FILL_JPY="yen_sign_rectangle",Xz.MONEY_HAND="dollar_sign_circle_hand",Xz.MONEY_HEART="dollar_sign_heart",Xz.MOON_Z="sleep_timer",Xz.MORE_HORIZ="overflow_horizontal",Xz.MORE_VERT="overflow_vertical",Xz.MUSIC="audio",Xz.MUSIC_CAIRO="audio",Xz.MUSIC_EXPLICIT_BADGE="explicit",Xz.MUSIC_NEW_RELEASE="audio_badge",Xz.MUSIC_NOTE_SYMBOL="audio",Xz.MUSIC_SCISSORS="audio_scissors",Xz.MUSIC_SHUFFLE="shuffle",Xz.MY_CHANNEL="person_circle",Xz.MY_LOCATION="location_pin",
Xz.MY_VIDEOS="video",Xz.MY_VIDEOS_CAIRO="video",Xz.NEWS_CAIRO="news",Xz.NEWS_STORY="news",Xz.NEXT="chevron_right",Xz.NOTE_ADD="bubble_pencil",Xz.NOTIFICATIONS="bell",Xz.NOTIFICATIONS_ACTIVE="bell_waves",Xz.NOTIFICATIONS_CAIRO="bell",Xz.NOTIFICATIONS_DONE_CHECKMARK="check",Xz.NOTIFICATIONS_INBOX="bell",Xz.NOTIFICATIONS_NONE="bell",Xz.NOTIFICATIONS_OFF="bell_slash",Xz.NOT_INTERESTED="circle_slash",Xz.OFFICIAL_ARTIST_BADGE="audio",Xz.OFFLINE_CLOUD="cloud_slash",Xz.OFFLINE_DOWNLOAD="download",Xz.OFFLINE_DOWNLOAD_CAIRO=
"download",Xz.OFFLINE_PAUSE="pause",Xz.OPEN_IN_NEW="arrow_up_right",Xz.OUTLINE_ADJUST="adjust",Xz.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Xz.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Xz.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Xz.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Xz.OUTLINE_BAG="bag",Xz.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Xz.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Xz.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Xz.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Xz.PAID=
"dollar_sign_circle",Xz.PAUSE_OUTLINED="pause",Xz.PAYMENT="credit_card",Xz.PEOPLE="person_child",Xz.PEOPLE_2="person2_rectangle",Xz.PEOPLE_GROUP="person3",Xz.PEOPLE_NOTE="bubble_asterisk",Xz.PERSON_2="person2",Xz.PERSON_ACCOUNT="person_square_stack",Xz.PERSON_MINUS="person_x",Xz.PERSON_MUSIC="person_audio",Xz.PERSON_RADAR="person_waves",Xz.PERSON_RADAR_FILLED="person_waves",Xz.PERSON_SETTING="person_gear",Xz.PHONE="phone",Xz.PHONE_DOWNLOAD="mobile_arrow_down",Xz.PICTURE_IN_PICTURE="picture_in_picture",
Xz.PLAYABLES_LOGO="playables",Xz.PLAYABLES_LOGO_CAIRO="playables",Xz.PLAYLISTS="playlist",Xz.PLAYLISTS_CAIRO="playlist",Xz.PLAYLIST_ADD_CHECK="bookmark",Xz.PLAY_ALL="play",Xz.PLAY_ARROW="play",Xz.PLAY_ARROW_CIRCLE="play_circle",Xz.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Xz.PLAY_CIRCLE="play_circle",Xz.PLAY_OUTLINED="play_circle",Xz.PODCAST_ADD="podcast_add",Xz.PODCAST_CHECK="podcast_check",Xz.PRIVACY_INFO="shield_x",Xz.PRIVACY_PRIVATE="lock",Xz.PRIVACY_PUBLIC="globe",Xz.PRIVACY_UNLISTED=
"link",Xz.PROMOTE="megaphone",Xz.PURCHASES="price_tag",Xz.PURCHASE_SUPER_CHAT="super_chat",Xz.PURCHASE_SUPER_STICKER="super_sticker",Xz.QUESTION_ANSWER="help_bubble",Xz.QUESTION_CIRCLE="help_circle",Xz.QUEUE_PLAY_LAST="queue_last",Xz.QUEUE_PLAY_NEXT="playlist",Xz.QUOTATION_MARK="quote",Xz.RADAR_LIVE="live",Xz.REMOVE="minus_circle",Xz.REMOVE_CIRCLE="minus_circle",Xz.REMOVE_CIRCLE_OUTLINE="minus_circle",Xz.REMOVE_FROM_HISTORY="minus_circle",Xz.REMOVE_FROM_PLAYLIST="minus_circle",Xz.REMOVE_MODERATOR=
"shield_slash",Xz.REPLAY="arrow_counterclockwise",Xz.REPLAY_10="skip10_back",Xz.REPLAY_ARROW="replay",Xz.REPORT_PROBLEM="alert_triangle",Xz.RSS_OFF="rss_slash",Xz.SAD="face_sad",Xz.SAVE_PLAYLIST="bookmark",Xz.SCHEDULE="clock",Xz.SCHOOL="graduation_cap",Xz.SCREEN_DEFAULT="player_default",Xz.SCREEN_FULLSCREEN="player_full_enter",Xz.SCREEN_LIGHT="ambient_mode",Xz.SCREEN_ROTATION="rotate_portrait",Xz.SCREEN_SWITCH="player_switch",Xz.SCREEN_THEATRE="player_theater",Xz.SEARCH_CAIRO="search",Xz.SEARCH_HISTORY=
"history",Xz.SELL="price_tag",Xz.SETTINGS="gear",Xz.SETTINGS_CAIRO="gear",Xz.SETTINGS_LIGHT="gear",Xz.SETTINGS_MATERIAL="gear",Xz.SETTINGS_REMOTE="remote_waves",Xz.SHARE="share",Xz.SHARE_ARROW="share",Xz.SHARE_CAIRO="share",Xz.SHIELD="shield_x",Xz.SHIELD_OFF="shield_slash",Xz.SHIELD_WITH_AVATAR="person_shield",Xz.SHOPPING_BAG="bag",Xz.SHOPPING_BAG_CAIRO="bag",Xz.SHOPPING_CART="cart",Xz.SHORTS_COMMENT="text_bubble",Xz.SHORTS_DISLIKE="thumb_down",Xz.SHORTS_LIKE="thumb_up",Xz.SHORTS_SHARE="share",Xz.SKIP_FORWARD_30=
"skip30_forward",Xz.SLASH_CIRCLE_RIGHT="circle_slash",Xz.SLOW_MODE="bubble_slow",Xz.SLOW_MODE_OFF="text_bubble",Xz.SOCIAL="person_child",Xz.SPARKLE="sparkles",Xz.SPARK_IMAGE="image_spark",Xz.SPARK_RADAR="spark_waves",Xz.SPARK_VIDEO="video_spark",Xz.SPEAKER_GROUP="speaker_stack",Xz.SPEAKER_OFF="speaker_slash",Xz.SPEED_1X="n1x",Xz.SPEED_1_POINT_2X="n1point2x",Xz.SPEED_1_POINT_5X="n1point5x",Xz.SPEED_1_POINT_8X="n1point8x",Xz.SPEED_2X="n2x",Xz.SPONSORSHIP_STAR="star_circle",Xz.SPORTS="basketball",Xz.SPOTLIGHT=
"spotlight",Xz.STAFF_PICK="spotlight",Xz.START_DVR="add",Xz.STAR_BORDER="star",Xz.STAR_CIRCLE_RIBBON="memberships_gift",Xz.STAR_HALF="star_half_filled",Xz.STAR_SHOOTING="hype",Xz.STICKER="sticker",Xz.STICKER_EMOTICON="face_happy",Xz.STOP_DVR="stop",Xz.SUBSCRIBE="youtube",Xz.SUBSCRIBE_PLUS="add",Xz.SUBSCRIPTION_MANAGER="gear",Xz.SUPERSTAR="super_star",Xz.SUPERVISOR_ACCOUNT="person_child",Xz.SUPER_CHAT_FOR_GOOD="hands_heart",Xz.SWAP_HORIZ="arrow_swap_horizontal",Xz.SWITCH_ACCOUNTS="person_square_stack",
Xz.TAB_ACCOUNT="person",Xz.TAB_ACTIVITY="bell",Xz.TAB_BOOKMARK="bookmark",Xz.TAB_EXPLORE="compass",Xz.TAB_HOME="home",Xz.TAB_HOME_CAIRO="home",Xz.TAB_INBOX="mail",Xz.TAB_LIKED="thumb_up",Xz.TAB_MUSIC_PREMIUM="youtube_music",Xz.TAB_SHORTS="shorts",Xz.TAB_SHORTS_CAIRO="shorts",Xz.TAB_SUBSCRIPTIONS="subscriptions",Xz.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Xz.TAB_TRENDING="trending",Xz.TARGET="target",Xz.TARGET_ADD="target_add",Xz.TEMPLATE_ADD="template_add",Xz.TEXT="font",Xz.TIMER="stopwatch",Xz.TRENDING_CAIRO=
"trending",Xz.TRENDING_UP="arrow_trend_up",Xz.TROPHY_CAIRO="trophy",Xz.TROPHY_CELEBRATIONS="fireworks",Xz.TROPHY_STAR="star_trophy",Xz.TUNE="adjust",Xz.TV_OFF="tv_slash",Xz.UNBLOCK_USER="minus_circle",Xz.UNFAVORITE="thumb_down",Xz.UNLIMITED="youtube",Xz.UNPLUGGED_LIVE_GUIDE="live",Xz.UNPLUGGED_SPORTS="eye_slash",Xz.UPLOADS="play_square_stack",Xz.UP_ARROW="arrow_up",Xz.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Xz.VERTICAL_ALIGN_TOP="chevron_up_end",Xz.VERY_HAPPY="face_very_happy",Xz.VERY_SAD="face_very_sad",
Xz.VIDEOS="play_circle",Xz.VIDEO_CALL="video_camera_add",Xz.VIDEO_LIBRARY_WHITE="play_square_stack",Xz.VIDEO_QUALITY_4K="n4k",Xz.VIDEO_QUALITY_8K="n8k",Xz.VIDEO_YOUTUBE="youtube",Xz.VIEW_LIST_CAIRO="view_list",Xz.VIEW_MODULE="view_column3_row2",Xz.VISIBILITY="eye",Xz.VISIBILITY_OFF="eye_slash",Xz.VOLUME_DOWN="volume_min",Xz.VOLUME_MUTE="volume_mute",Xz.VOLUME_OFF="volume_mute",Xz.VOLUME_STABLE="stable_volume",Xz.VOLUME_UP="volume_max",Xz.WALLPAPER="image",Xz.WARNING="alert_triangle",Xz.WATCH_HISTORY=
"history",Xz.WATCH_HISTORY_CAIRO="history",Xz.WATCH_LATER="clock",Xz.WATCH_LATER_CAIRO="clock",Xz.WATCH_RELATED_MIX="mix",Xz.WHAT_TO_WATCH="home",Xz.YOUTUBE_LINKED_TV="tv_mobile",Xz.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Xz.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Xz.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Xz.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Xz.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Xz.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Xz.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Xz);var AZu={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,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,7,24],[1,7,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,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,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,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,
1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],
[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var i5Q={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,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,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,7,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,8,24],[1,8,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,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],
[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,
36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],
csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,
1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_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,8,24],[1,8,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:[[1,4,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,1,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,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,
2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],
n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,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,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,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,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,3,24],[0,3,36],[0,3,48],[1,3,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,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],
[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,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,13,24],[1,13,24],[1,13,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,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,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],
skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,
24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,
1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],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]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,
2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,
24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var CtV={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"},lO=function(M){this.iconUrlProvider=M};
lO.prototype.resolveIcon=function(M,z){var J=CtV[M.iconName.toUpperCase()];J&&(M.iconName=J);var R=M.iconName;R=R.replace(/-/g,"_");M=Object.assign({},M,{iconName:this.mapIconTypeToStandardName(R,!!J)||R.toLowerCase()});if(_.U("enable_web_delhi_icons")||J){var D;return Dq3(i5Q,M,((D=this.iconUrlProvider)==null?void 0:D.getYtStandardUrl)||ZBH,z)}var N;return Dq3(AZu,M,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||STR,z)};
lO.prototype.mapIconTypeToStandardName=function(M,z){return _.U("enable_web_delhi_icons")||z?LuV[M.toUpperCase()]:fwV[M.toUpperCase()]};
lO[DW]=[_.zw(aw$)];var b5v=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),rZQ=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Mpv=function(M){this.urlProvider=this.iconUrlProvider=M};
_.w(Mpv,lO);
Mpv.prototype.resolveIcon=function(M,z){M.iconName==="youtube_logo"&&(M.iconName="yt-logo-updated");if(M.iconName==="youtube_premium_logo"||M.iconName==="youtube_red_logo")M.iconName="yt-logo-red-updated";var J=Object.assign({},M);M.iconName==="menu"&&(_.U("enable_web_delhi_icons")||(J.iconName="bars_3"),J.iconStyle="youtube_outline");M.iconSetName==="socialNetworksRound"&&(M.iconName==="mail"&&(J.iconName="email"),M.iconName==="embed"&&(J.iconSize=60));M.iconName==="more"&&(J.iconName="overflow_horizontal");
M.iconName==="fullscreen"&&(J.iconName="screen_full");M.iconName==="premium_standalone"&&(J.iconName="premium_standalone_cairo");_.U("enable_connect_icon_update_web")&&M.iconName==="account_linked"&&(J.iconName="circles_overlap_check",J.iconStyle="youtube_fill");_.U("enable_connect_icon_update_web")&&M.iconName==="account_unlinked"&&(J.iconName="circles_overlap",J.iconStyle="youtube_outline");b5v.has(M.iconName)&&(J.iconStyle="youtube_fill");_.U("enable_web_delhi_icons")&&(M.iconName==="playlist_add"&&
(J.iconName="bookmark"),M.iconName==="offline_pin"&&(J.iconName="arrow_down_circle",J.iconStyle="youtube_fill"),rZQ.has(M.iconName)&&(J.iconName+="_updated"));M=Object.assign({},J,{iconName:(lO.prototype.mapIconTypeToStandardName.call(this,J.iconName)||J.iconName).toLowerCase()});var R;return(M=Dq3(qlQ,M,((R=this.urlProvider)==null?void 0:R.getUrl)||keG,z))?M:lO.prototype.resolveIcon.call(this,J,z)};
Mpv[DW]=[_.zw(aw$)];_.z0N=1;var e7=function(M,z){this.JSC$17121_commandHandler=M;this.innertubeTransportService=z};
_.w(e7,VX);e7.prototype.resolveCommand=function(M,z){var J=this,R,D,N;return _.k(function(Z){return(R=_.G(M,eIv))?Z.return(Jes(J,R,(D=z)==null?void 0:(N=D.form)==null?void 0:N.element)):Z.return()})};
var Jes=function(M,z,J){z={profileCardContext:z.profileCardContext,profileOwnerExternalChannelId:z.profileOwnerExternalChannelId};var R=_.MG(d4Q);return _.W2(M.innertubeTransportService,z,R).then(function(D){if(!D)throw new _.xN("GetProfileCard failed");if(D=D.popupCommand){M.JSC$17121_commandHandler.resolveCommand(D,{form:{element:J}});_.Xx(_.Gm(),66557);D=D==null?void 0:D.clickTrackingParams;var N=_.hu();D&&N&&_.Gm().graftServerVe(D,N)}})};
e7[DW]=[_.Rb,_.cP];var Qt=function(){};
_.w(Qt,VX);Qt.prototype.resolveCommand=function(M){var z,J;return _.k(function(R){z=_.G(M,jNV);if(!z)return R.return();J=Number(z.enableDelayedPacfLoggingTvMs);if(isNaN(J)){var D=eK();BKk(D,z,0)}else BKk(eK(),z,J);_.UI(R)})};_.UH=function(){};
_.w(_.UH,VX);
_.UH.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X;return _.k(function(l){R=_.G(M,pKg);N=(D=z.form)==null?void 0:D.element;B=(Z=N)==null?void 0:Z.closest("ytd-enforcement-message-view-model");if(!R||!B)return l.return();J.allowAdsAction||(O=R.fundingChoiceInstructionPageUrl,J.allowAdsAction=new APp(window,_.ho(O)));var e=J.allowAdsAction;e.wallElement=B;e.allowAdsPopup.style.setProperty("display","flex","important");var Q=e.scrollManager;Q.originalBodyOverflow=Q.JSC$9966_domHelper.JSC$9293_document_.body.style.overflow;Q.JSC$9966_domHelper.JSC$9293_document_.body.style.overflow=
"hidden";e.wallElement.style.setProperty("display","none","important");P0v(e.accessibilityManager,e.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((X=J.allowAdsAction.allowAdsPopup)&&X instanceof HTMLElement)for(e=_.S(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Q=e.next();!Q.done;Q=e.next()){var v=_.S(Q.value);Q=v.next().value;v=v.next().value;X.style.setProperty(Q,v)}_.UI(l)})};
_.UH.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var vG=function(){};
_.w(vG,VX);vG.prototype.resolveCommand=function(M){var z;return _.k(function(J){z=_.G(M,iMJ);if(!z)return J.return();_.H6p(M);_.UI(J)})};var GR=function(M){this.JSC$17136_commandHandler=M};
_.w(GR,VX);
GR.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1){J=_.G(M,jwV);if((R=J)==null||!R.text||!navigator.clipboard)return l.return();_.Io(l,2);return l.yield(navigator.clipboard.writeText(J.text),4)}if(l.nextAddress!=2){if(!J.successActions||J.successActions.length===0)return l.return();D=_.S(J.successActions);for(N=D.next();!N.done;N=D.next())Z=N.value,z.JSC$17136_commandHandler.resolveCommand(Z);return _.ab(l,0)}_.Qa(l);if(!J.failureActions||J.failureActions.length===
0)return l.return();B=_.S(J.failureActions);for(O=B.next();!O.done;O=B.next())X=O.value,z.JSC$17136_commandHandler.resolveCommand(X);_.UI(l)})};
GR[DW]=[_.Rb];var wh=function(M){this.JSC$17140_commandHandler=M};
_.w(wh,VX);
wh.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){switch(v.nextAddress){case 1:R=_.G(M,Rga);if(!R)return v.return();_.Io(v,2);if(!R.imageBytes&&!R.imageUrl)throw Error("xi");if(!R.imageUrl){if(R.imageBytes){N=R.imageBytes;Z=N.replace(/-/g,"+").replace(/_/g,"/");var x=T8n(Z);D=_.yZ(x)}v.jumpTo(4);break}return v.yield(fetch(R.imageUrl),5);case 5:return B=v.yieldResult,v.yield(B.blob(),6);case 6:O=v.yieldResult,D=_.yZ(O);case 4:e=(X=z)==null?void 0:(l=X.form)==
null?void 0:l.element;Q=document.createElement("a");_.K3(Q,D);e.appendChild(Q);Q.download="";Q.click();e.removeChild(Q);URL.revokeObjectURL(_.Yq(D));R.successCommand&&J.JSC$17140_commandHandler.resolveCommand(R.successCommand);_.ab(v,0);break;case 2:_.Qa(v),R.errorCommand&&J.JSC$17140_commandHandler.resolveCommand(R.errorCommand),_.UI(v)}})};
wh[DW]=[_.Rb];var xH=function(M){this.store=M};
_.w(xH,VX);xH.prototype.resolveCommand=function(M){var z=this,J,R,D;return _.k(function(N){R=(J=_.G(M,_.hht))==null?void 0:J.entityBatchUpdate;if(!R)return N.jumpTo(0);D=Object.assign({},R,{mutations:[].concat(_.Yj(R.mutations||[]))});return N.yield(_.Uh(D,z.store),0)})};var R0N=function(M){this.JSC$17147_commandHandler=M;this.feedbackDialogMap=new Map};
R0N.prototype.openDialog=function(M,z){(M=this.feedbackDialogMap.get(M))&&this.JSC$17147_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:M}},z)};
R0N[DW]=[_.Rb];var tD=new _.Nh("FEEDBACK_CONTROLLER_TOKEN");var j7=new _.Nh("APP_STORE_TOKEN");var p2=function(M,z){this.store=M;this.controller=z};
_.w(p2,VX);p2.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V;return _.k(function(E){if(E.nextAddress==1){R=_.G(M,_.Hf);if(N=(D=R)==null?void 0:D.contentId)for(B=_.S(((Z=R)==null?void 0:Z.actions)||[]),O=B.next();!O.done;O=B.next())X=O.value,Dbu(J,X,N);Q=(l=z)==null?void 0:(e=l.form)==null?void 0:e.element;return E.yield(_.kQ(Q,[M,{impression:(v=z)==null?void 0:v.disableClickTracking}]).catch(function(){}),2)}x=E.yieldResult;
((m=x)==null?0:(y=m.data)==null?0:(H=y.feedbackResponses)==null?0:H.length)&&(b=(q=x.data.feedbackResponses[0])==null?void 0:q.followUpDialog)&&N&&(V=J.controller)!=null&&V.feedbackDialogMap.set(N,b);_.UI(E)})};
var Dbu=function(M,z,J){var R=_.G(z,_.TV);if(R){R=_.S(R.commands||[]);for(var D=R.next();!D.done;D=R.next())Dbu(M,D.value,J)}_.G(z,_.YB)&&M.store.dispatch(_.pf("commandEntity",Zle(J),{key:J,command:z}));_.G(z,xo$)&&M.store.dispatch(_.pf("commandEntity",Zle(J),{key:J,command:z}))};
p2[DW]=[j7,tD];var Fz=function(M){this.controller=M};
_.w(Fz,VX);Fz.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z;return _.k(function(B){R=_.G(M,_.qp);N=(D=R)==null?void 0:D.targetId;if(((Z=R)==null?void 0:Z.signal)!=="TELL_US_WHY"||!N)return B.return();J.controller.openDialog(N,z);_.UI(B)})};
Fz[DW]=[tD];var YH=function(M){this.store=M};
_.w(YH,VX);YH.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X;return _.k(function(l){R=_.G(M,AI0);N=(D=R)==null?void 0:D.contentId;O=(Z=z)==null?void 0:(B=Z.form)==null?void 0:B.element;X=_.kQ(O,[M]);N&&J.undo(N);return l.yield(X,0)})};
YH.prototype.undo=function(M){this.store.dispatch(_.pf("commandEntity",Zle(M),{key:M,command:void 0}))};
YH[DW]=[j7];var mf=function(M){this.JSC$17162_commandHandler=M};
_.w(mf,VX);mf.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X;return _.k(function(l){J=_.G(M,iFa);R=J.flowStateKey;D=J.validationFailureCommand;N=J.submitValidFormCommand;Z=Brn(_.rF,[R||""]);B=_.G(Z,bFV);((O=B)==null?0:O.isValid)&&N&&z.JSC$17162_commandHandler.resolveCommand(N);((X=B)==null?0:X.isValid)||!D||z.JSC$17162_commandHandler.resolveCommand(D);_.UI(l)})};
mf[DW]=[_.Rb];var gh=function(M){this.innertubeTransportService=M};
_.w(gh,VX);gh.prototype.resolveCommand=function(M,z){var J=this,R;return _.k(function(D){return D.yield(_.fn(J.innertubeTransportService,M,(R=z)==null?void 0:R.form).then(function(N){var Z,B;z==null||(Z=z.commandController)==null||(B=Z.onSuccess)==null||B.call(Z,M,N)},function(N){var Z,B;
z==null||(Z=z.commandController)==null||(B=Z.onServerError)==null||B.call(Z,M,N)}),0)})};
gh[DW]=[_.cP];var sH=function(){};
_.w(sH,VX);sH.prototype.resolveCommand=function(M){var z,J,R,D;return _.k(function(N){if(z=_.G(M,_.oKB)){if(J=z.gtmId)R=_.HW("GL",""),_.Ha(J,R);(D=z.gtmData)&&_.ca(D)}_.UI(N)})};var n2=function(M,z){this.innertubeTransportService=M;this.JSC$17173_actionRouter=z};
_.w(n2,VX);n2.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,Lcv);if(!J)return D.return();R=J.command;if(!R)return D.return();z.JSC$17173_actionRouter.triggerAction("yt-insert-rich-section-action",J);return D.yield(_.fn(z.innertubeTransportService,R,{disableCache:!0}),0)})};
n2[DW]=[_.cP,Du];o68.bind(null,Ez);var NRs=o68.bind(null,pTQ);l$p.bind(null,Ez);var PGw=l$p.bind(null,pTQ);Qeb.bind(null,Ez);var S8N=Qeb.bind(null,pTQ);var hD=function(){};
_.w(hD,VX);
hD.prototype.resolveCommand=function(M){var z,J,R,D,N,Z,B,O,X,l;return _.k(function(e){z=_.G(M,nst);if(!z)return e.return();R=((J=z.operations)==null?void 0:J.operations)||[];D=_.S(R);for(N=D.next();!N.done;N=D.next())if(Z=N.value,Z.insertItemSectionContent){var Q=Z.insertItemSectionContent,v=Q.contents||[];Q.insertByPositionInSection?NRs(Q.insertByPositionInSection.sectionTargetId,v,Q.insertByPositionInSection.position):Q.insertByRelativePositionInSection&&Q.insertByRelativePositionInSection.sectionTargetId&&Q.insertByRelativePositionInSection.itemTargetId&&
PGw(Q.insertByRelativePositionInSection.sectionTargetId,Q.insertByRelativePositionInSection.itemTargetId,v,Q.insertByRelativePositionInSection.relativePosition)}else Z.replaceSection?(Q=Z.replaceSection,v={},Q.replaceByTargetId?v=Q.replaceByTargetId:Q.replaceByGroupId&&(v={targetId:Q.replaceByGroupId.groupId,newContent:Q.replaceByGroupId.newContent,undoKey:""}),v.newContent&&muk(v.targetId,{continuationItems:[v.newContent]})):Z.removeItem?(Q=Z.removeItem,Q.removeByTargetId&&Q.sectionTargetId&&S8N(Q.sectionTargetId,
Q.removeByTargetId.targetIds||[])):Z.removeSection&&(Z.removeSection.removeByTargetId?(B=void 0,Zpw(((B=Z.removeSection)==null?void 0:B.removeByTargetId.targetIds)||[])):Z.removeSection.removeByGroupId&&(O=void 0,Zpw(((O=Z.removeSection)==null?void 0:O.removeByGroupId.groupIds)||[])));l=((X=z.operations)==null?void 0:X.scrollConfig)||{};k8N(l);_.UI(e)})};
var Zpw=function(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next())muk(z.value,{continuationItems:[]})},k8N=function(M){if(M.scrollToItem){var z=M.scrollToItem.item||{},J=z.itemTargetId;
z=z.sectionTargetId;if(J&&z){var R=document.querySelector("[data-target-id="+z+"]"),D=R==null?void 0:R.querySelector("[data-target-id="+J+"]");R&&D&&setTimeout(function(){var N=D.offsetTop-R.offsetTop,Z;if(((Z=M.scrollToItem)==null?void 0:Z.scrollPosition)==="SCROLL_POSITION_CENTER")N-=R.offsetHeight/2,N+=D.offsetHeight/2;else{var B;((B=M.scrollToItem)==null?void 0:B.scrollPosition)==="SCROLL_POSITION_END"&&(N-=R.offsetHeight,N+=D.offsetHeight)}R.scroll({top:N,behavior:"smooth"})},100)}}};var HG=new _.Nh("CLIENT_NAME_TOKEN");var BRN=new _.Nh("DEFAULT_STORE_EXPIRATION_TOKEN");var Sxb=new _.Nh("CLIENT_LOCATION_SERVICE_TOKEN");var cG=function(M,z,J){this.clientName=M||_.HW("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=z||_.h9.getInstance();this.JSC$17201_commandHandler=J||_.l5.instance};
_.w(cG,VX);cG.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){R=(J=_.G(M,qqu))==null?void 0:J.onComplete;z.clientLocationService.clearLocationPlayabilityToken(z.clientName);R&&z.JSC$17201_commandHandler.resolveCommand(R);_.UI(D)})};
cG[DW]=[HG,Sxb,_.Rb];var dh=function(M){this.innertubeTransportService=M};
_.w(dh,VX);dh.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z;return _.k(function(B){N=(R=z)==null?void 0:(D=R.form)==null?void 0:D.element;return B.yield(_.fn(J.innertubeTransportService,M,(Z=z)==null?void 0:Z.form).then(function(O){UU8(N,new CustomEvent("yt-service-request-completed"),{data:O},_.HW("openPopupConfig"))}),0)})};
dh[DW]=[_.cP];var K2=function(){};
_.w(K2,VX);K2.prototype.resolveCommand=function(M){var z,J;return _.k(function(R){z=_.G(M,J$a);J=document.querySelector("mini-app-container-view-model");if(!z||!J)return R.return();z.isPlaying?J.dispatchEvent(new Event("play")):J.dispatchEvent(new Event("pause"));_.UI(R)})};var $H=function(){};
_.w($H,VX);$H.prototype.resolveCommand=function(M){var z,J,R,D,N,Z,B;return _.k(function(O){z=_.G(M,ZEV);if((J=z)==null||!J.paramKeys)return O.return();R=z.paramKeys;D=_.um(window.location.href);N=_.S(R);for(Z=N.next();!Z.done;Z=N.next())B=Z.value,D.JSC$9998_queryData_.remove(B);window.history.replaceState(window.history.state,document.title,D.toString());_.UI(O)})};var OpN=function(){this.dropdownMap=new Map};_.TRw=new _.Nh("DROPDOWN_CONTROLLER_TOKEN");var uO=function(M){this.controller=M};
_.w(uO,VX);uO.prototype.resolveCommand=function(M){var z=this,J,R,D,N;return _.k(function(Z){J=_.G(M,qEJ);if(!J)return Z.return();R=J;D=R.dropdownId;N=R.selectedOptionIndex;if(D===void 0||N===void 0)return Z.return();var B=z.controller.dropdownMap.get(D);B&&B(N);_.UI(Z)})};
uO[DW]=[_.TRw];var qT=function(M){this.controller=M};
_.w(qT,VX);qT.prototype.resolveCommand=function(M){var z=this,J;return _.k(function(R){return(J=_.G(M,zTV))?R.yield(z.controller.closeDialog(),0):R.return()})};
qT[DW]=[_.yw];var WG=function(M){this.controller=M};
_.w(WG,VX);WG.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,dPJ);if(!J)return D.return();var N,Z=J.panelIdentifier||((N=J.identifier)==null?void 0:N.tag);if(!Z)throw Error("yi");return(R=Z)?D.yield(z.controller.hidePanel(R),0):D.jumpTo(0)})};
WG[DW]=[_.nx];var am=function(M,z){this.innertubeTransportService=M;this.controller=z};
_.w(am,VX);am.prototype.resolveCommand=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return J=_.G(M,K7B),(R=J)!=null&&R.panelId?Z.yield(z.controller.getReloadContinuation(J.panelId),2):Z.return();if(Z.nextAddress!=3)return(D=Z.yieldResult)?Z.yield(_.fn(z.innertubeTransportService,M,{continuation:D}),3):Z.return();N=Z.yieldResult;return Z.yield(z.controller.updatePanel(J.panelId,N.content,!1),0)})};
am[DW]=[_.cP,_.nx];var Vt=function(M,z,J){this.innertubeTransportService=M;this.JSC$17237_screenManager=z;this.JSC$17237_commandHandler=J};
_.w(Vt,VX);
Vt.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1){J=_.G(M,_.Yvv);if(!J)return O.return();if(J.commands)for(R=_.S(J.commands),D=R.next();!D.done;D=R.next())N=D.value,z.JSC$17237_commandHandler.resolveCommand(N,{disableClickTracking:!0});Z=_.pe(M.clickTrackingParams);_.Xx(z.JSC$17237_screenManager,21760,Z,{layer:7,parentLayer:0});return O.yield(_.fn(z.innertubeTransportService,M),2)}B=O.yieldResult;if(!B)return O.return();z.JSC$17237_screenManager.graftServerVe(B.trackingParams,Z,
7);_.UI(O)})};
Vt[DW]=[_.cP,_.hs,_.Rb];var EH=new _.Nh("PANEL_LOADING_STRATEGY_TOKEN");var L2=function(M,z){this.controller=M;this.panelLoadingStrategy=z};
_.w(L2,VX);
L2.prototype.resolveCommand=function(M,z){var J=this,R,D,N;return _.k(function(Z){R=_.G(M,QVQ);if((D=R)==null||!D.panelLoadingStrategy)return Z.return();N=function(B){var O,X,l,e,Q,v,x,m,y,H;return _.k(function(q){X=_.G((O=B.dialogViewModel)==null?void 0:O.header,W_k);l={viewModel:B.dialogViewModel};e={};if(x=_.U("web_enable_dialog_header_label")?(Q=X)==null?void 0:(v=Q.headline)==null?void 0:v.content:void 0)e.ariaLabel=x;R.dismissOnBackgroundTap===!1&&(e.isModal=!0);return B.dialogViewModel?q.yield(J.controller.openDialog(l,
(H=(m=z)==null?void 0:(y=m.form)==null?void 0:y.element)!=null?H:document.body,e),0):q.return()})};
return Z.yield(J.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:N,createScreenConfig:{layer:4}}),0)})};
L2[DW]=[_.yw,EH];var AD=function(M,z,J){this.innertubeTransportService=M;this.controller=z;this.JSC$17257_screenManager=J};
_.w(AD,VX);
AD.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x;return _.k(function(m){switch(m.nextAddress){case 1:R=_.G(M,_.yq);if(!R)return m.return();var y,H=R.panelIdentifier||((y=R.identifier)==null?void 0:y.tag);if(!H)throw Error("yi");D=H;return m.yield(J.controller.isVisible(D,!0),2);case 2:if((N=m.yieldResult)&&R.blockIfPanelOpen)return m.return();O=(B=(Z=J.controller).getPanelContent)==null?void 0:B.call(Z,D);if(!(y=O))if(R){var q;y=((q=R.globalConfiguration)==null?void 0:
q.initialState)||R.engagementPanel;if(q=!y)q=!!(R==null?0:(H=R.engagementPanelPresentationConfigs)==null?0:H.engagementPanelPopupPresentationConfig);q&&(y=_.Uqe(R.panelIdentifier,R.identifier))}else y=void 0;X=y;l=R.engagementPanelPresentationConfigs;e=R.engagementPanelExtras;return m.yield(J.controller.showPanel(D,X,l,e,(Q=z)==null?void 0:(v=Q.form)==null?void 0:v.element),3);case 3:if(!R.globalConfiguration){m.jumpTo(0);break}_.Xx(J.JSC$17257_screenManager,32633);return m.yield(_.fn(J.innertubeTransportService,
M),5);case 5:return x=m.yieldResult,J.JSC$17257_screenManager.graftServerVe(x.trackingParams),m.yield(J.controller.updatePanel(D,x.content,!0,e,void 0,x.updatePanelContinuationData),0)}})};
AD[DW]=[_.cP,_.nx,_.hs];var iO=function(M,z){this.controller=M;this.panelLoadingStrategy=z};
_.w(iO,VX);iO.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O;return _.k(function(X){R=_.G(M,_.Fa);if((D=R)==null||!D.panelLoadingStrategy)return X.return();B=Ici(J.controller,(N=z)==null?void 0:(Z=N.form)==null?void 0:Z.element);O=function(l){return _.k(function(e){return l.sheetViewModel?e.yield(J.controller.openSheet({viewModel:l.sheetViewModel},B),0):e.return()})};
return X.yield(J.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:O,createScreenConfig:{layer:0}}),0)})};
iO[DW]=[_.hX,EH];var C2=function(M,z){this.controller=M;this.JSC$17265_commandHandler=z};
_.w(C2,VX);C2.prototype.resolveCommand=function(M,z){var J=this,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){R=_.G(M,W7a);var B=_.G(R.showCommand,_.yq),O,X,l=(X=B==null?void 0:B.panelIdentifier)!=null?X:B==null?void 0:(O=B.identifier)==null?void 0:O.tag;if(!l)throw Error("zi");D=l;return Z.yield(J.controller.isVisible(D),2)}return(N=Z.yieldResult)?Z.yield(J.controller.hidePanel(D),0):Z.yield(J.JSC$17265_commandHandler.resolveCommand(R.showCommand,z),0)})};
C2[DW]=[_.nx,_.Rb];var bO=function(M,z,J){this.innertubeTransportService=M;this.controller=z;this.JSC$17268_screenManager=J};
_.w(bO,VX);
bO.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8;return _.k(function(O8){switch(O8.nextAddress){case 1:return R=J=_.G(M,apJ),D=R.targetPanelIdentifier,N=R.contentSourcePanelIdentifier,Z=R.globalConfiguration,((B=D)==null?0:B.tag)&&((O=N)==null?0:O.tag)?Z?O8.yield(z.controller.showPanel(D.tag,_.Uqe(D.tag,D),void 0,void 0,void 0),5):O8.yield((Q=(e=z.controller).getPanel)==null?void 0:Q.call(e,N.tag),4):O8.return();case 4:v=O8.yieldResult;X=(x=v)==null?
void 0:(y=(m=x).getPanelContent)==null?void 0:y.call(m);O8.jumpTo(3);break;case 5:return O8.yield(_.fn(z.innertubeTransportService,M),6);case 6:H=O8.yieldResult,((q=H)==null?0:q.trackingParams)&&z.JSC$17268_screenManager.graftServerVe(H.trackingParams),X=(b=H)==null?void 0:b.content,l=(V=H)==null?void 0:V.updatePanelContinuationData;case 3:if(L=(E=X)==null?void 0:E.engagementPanelSectionListRenderer)return O8.yield(z.controller.showPanel(D.tag,void 0,void 0,void 0,void 0,{content:L.content,secondaryHeaderContent:(z8=
L.header)!=null?z8:{},targetId:L.targetId},l),0);O8.jumpTo(0)}})};
bO[DW]=[_.cP,_.nx,_.hs];var oow=function(){};
_.w(oow,VX);oow.prototype.resolveCommand=function(M){var z,J,R;return _.k(function(D){if(D.nextAddress==1)return(z=_.G(M,bCB))?D.yield(_.T_(),2):D.return();J=D.yieldResult;if(!J)return D.return();var N=J,Z=(R=z)==null?void 0:R.languageCode,B;(N==null?0:(B=N.isReady)==null?0:B.call(N))&&(Z=v6w(N,Z))&&N.setAudioTrack(Z);_.UI(D)})};var rh=function(){};
_.w(rh,VX);var XYl=function(M){var z;return _.k(function(J){z=_.HW("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;M.JSC$17279_mainAppPlayer=new JX(z);document.addEventListener("yt-page-data-updated",M.JSC$17279_pauseOnNavigation.bind(M));_.UI(J)})};
rh.prototype.JSC$17279_pauseOnNavigation=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return z=M.JSC$17279_mainAppPlayer,R.yield(z.api,2);J=R.yieldResult;J.pauseVideo();_.UI(R)})};
var lcl=function(M,z,J){var R;return _.k(function(D){R=M.JSC$17279_mainAppPlayer;return D.yield(R.loadVideoWithPlayerVars({videoId:z,audio_only:"1",player_params:J}),0)})};
rh.prototype.pauseVideo=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return z=M.JSC$17279_mainAppPlayer,R.yield(z.api,2);J=R.yieldResult;J.pauseVideo();_.UI(R)})};
rh.prototype.playVideo=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return z=M.JSC$17279_mainAppPlayer,R.yield(z.api,2);J=R.yieldResult;J.playVideo();_.UI(R)})};
var e0v=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return z=M.JSC$17279_mainAppPlayer,R.yield(z.api,2);J=R.yieldResult;J.mute();_.UI(R)})},Q3s=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1)return z=M.JSC$17279_mainAppPlayer,R.yield(z.api,2);J=R.yieldResult;J.unMute();_.UI(R)})},Ubd=function(M,z){return _.k(function(J){switch(J.nextAddress){case 1:switch(z){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return J.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return J.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return J.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return J.jumpTo(5)}J.jumpTo(0);break;case 2:return J.yield(M.playVideo(),7);case 7:J.jumpTo(0);break;case 3:return J.yield(M.pauseVideo(),8);case 8:J.jumpTo(0);break;case 4:return J.yield(e0v(M),9);case 9:J.jumpTo(0);break;case 5:return J.yield(Q3s(M),10);case 10:J.jumpTo(0)}})};
rh.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){return v.nextAddress==1?(J=_.G(M,CHQ),((R=J)==null?0:R.newPlaybackParams)||((D=J)==null?0:D.controlAction)?z.JSC$17279_mainAppPlayer?v.jumpTo(2):v.yield(XYl(z),2):v.return()):((N=J)==null?0:N.newPlaybackParams)?(O=(Z=J)==null?void 0:(B=Z.newPlaybackParams)==null?void 0:B.externalVideoId,Q=(e=(X=J)==null?void 0:(l=X.newPlaybackParams)==null?void 0:l.playerParams)!=null?e:"",O?v.yield(lcl(z,O,Q),0):v.return()):
v.yield(Ubd(z,J.controlAction),0)})};var M1=function(M){this.JSC$17286_commandHandler=M};
_.w(M1,VX);
M1.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return(J=_.G(M,r$J))?O.yield(_.T_(),2):O.return();R=O.yieldResult;if(!R)return O.return();var X=R,l=(D=J)==null?void 0:D.languageCode,e=(N=J)==null?void 0:N.isAutoTranslated;X.getVideoData&&_.wio(X).length&&((l=tMn(X,l,e))?X.setOption("captions","track",l):(X.setOption("captions","stickyLoading",{}),X.setOption("captions","track",{})));Z=R.isSubtitlesOn()?_.e9("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.e9("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");B=_.J9(Z);z.JSC$17286_commandHandler.resolveCommand(B);_.UI(O)})};
M1[DW]=[_.Rb];var zY=function(M,z){this.shortsPlayerPromise=M;this.JSC$17290_commandHandler=z};
_.w(zY,VX);
zY.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1)return(J=_.G(M,lpp))?l.yield(z.shortsPlayerPromise,2):l.return();R=l.yieldResult;var e=jeG(R);e!=null&&e.length||(R.loadModule("captions"),e=jeG(R));D=e;if((N=D)==null||!N.length)return Z=_.e9("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),B=_.J9(Z),z.JSC$17290_commandHandler.resolveCommand(B),l.return();R.toggleSubtitles();O=R.isSubtitlesOn()?_.e9("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.e9("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");X=_.J9(O);z.JSC$17290_commandHandler.resolveCommand(X);_.UI(l)})};
zY[DW]=[_.Rdt,_.Rb];var JY=function(M){this.JSC$17293_actionRouter=M;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(z,J){z.triggerAction("yt-dismiss-shopping-timely-shelf-action",J)}]])};
_.w(JY,VX);JY.prototype.resolveCommand=function(M){var z=this,J,R,D;return _.k(function(N){J=_.G(M,Jn$);if((R=J)==null||!R.overlayId)return N.return();D=z.dismissPlayerOverlayActions.get(J.overlayId);if(!D)throw Error("Ai`"+J.overlayId);D(z.JSC$17293_actionRouter,J);_.UI(N)})};
JY[DW]=[Du];var RB=function(M){this.JSC$17297_playerPromise=M};
_.w(RB,VX);RB.prototype.resolveCommand=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return(J=_.G(M,uek))?Z.yield(z.JSC$17297_playerPromise,2):Z.return();R=Z.yieldResult;D=R.getVideoData().video_id;J.videoId===D&&(N=Number(J.offsetFromVideoStartMilliseconds),N>=0&&R.seekTo(N/1E3));_.UI(Z)})};
RB[DW]=[_.SF];var vou=_.Tr("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),D6=function(M){this.store=M};
_.w(D6,VX);
var G8l=function(M){var z,J,R,D;return _.k(function(N){if(N.nextAddress==1)return z=_.HW("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,J=_.HW("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,R=z||J,M.JSC$17301_mainAppPlayer=new JX(R),N.yield(M.JSC$17301_mainAppPlayer.api,2);D=N.yieldResult;D.addEventListener("onStateChange",M.JSC$17301_playerStateChangeListener.bind(M));document.addEventListener("yt-page-data-updated",M.JSC$17301_pauseOnNavigation.bind(M));window.addEventListener("state-navigatestart",
M.JSC$17301_pauseOnNavigation.bind(M));_.UI(N)})};
D6.prototype.JSC$17301_playerStateChangeListener=function(M){switch(M){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}wYt(this)};
var wYt=function(M){M.store.dispatch(_.pf("sfvAudioItemCurrentlyPlayingEntity",vou,{key:vou,externalVideoId:M.externalVideoId,sfvAudioItemPlaybackState:M.playbackState,nowPlayingEntityValue:M.nowPlayingEntityValue}))};
D6.prototype.JSC$17301_pauseOnNavigation=function(){var M=this,z,J,R,D;return _.k(function(N){if(N.nextAddress==1){if(!M.JSC$17301_mainAppPlayer){var Z=new _.xN("Error: mainAppPlayer is unavailable",M.JSC$17301_mainAppPlayer);_.nc(Z);return N.return()}return N.yield(M.JSC$17301_mainAppPlayer.api,2)}z=N.yieldResult;R=(J=z)==null?void 0:J.getPlayerState();R!==1||(D=z)!=null&&D.pauseVideo();_.UI(N)})};
D6.prototype.playVideo=function(M,z,J){var R=this,D,N;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield((D=R.JSC$17301_mainAppPlayer)==null?void 0:D.api,2);N=Z.yieldResult;if(!R.JSC$17301_mainAppPlayer||!N){var B=new _.xN("Error: mainAppPlayer is unavailable",R.JSC$17301_mainAppPlayer);_.nc(B);return Z.return()}return Z.yield(R.JSC$17301_mainAppPlayer.loadVideoWithPlayerVars({videoId:R.externalVideoId,audio_only:"1",start:M/1E3,end:M/1E3+z,player_params:J}),0)})};
D6.prototype.pauseVideo=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1){if(!M.JSC$17301_mainAppPlayer){var D=new _.xN("Error: mainAppPlayer is unavailable",M.JSC$17301_mainAppPlayer);_.nc(D);return R.return()}return R.yield(M.JSC$17301_mainAppPlayer.api,2)}z=R.yieldResult;(J=z)==null||J.pauseVideo();_.UI(R)})};
D6.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V;return _.k(function(E){if(E.nextAddress==1)return J=_.G(M,T$t),D=(R=J)==null?void 0:R.nowPlayingEntityValue,Z=(N=J)==null?void 0:N.externalVideoId,e=Number((l=(B=J)==null?void 0:(O=B.defaultStartPoints)==null?void 0:(X=O[0])==null?void 0:X.offsetMs)!=null?l:"0"),H=Number((y=(Q=J)==null?void 0:(v=Q.defaultStartPoints)==null?void 0:(x=v[0])==null?void 0:(m=x.duration)==null?void 0:m.seconds)!=null?y:"15"),V=(b=
(q=J)==null?void 0:q.playerParams)!=null?b:"",D&&Z?z.JSC$17301_mainAppPlayer?E.jumpTo(2):E.yield(G8l(z),2):E.return();if(E.nextAddress!=6){if(z.nowPlayingEntityValue&&D===z.nowPlayingEntityValue)return z.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?E.yield(z.pauseVideo(),0):E.yield(z.playVideo(e,H,V),0);z.externalVideoId=Z;z.nowPlayingEntityValue=D;z.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return E.yield(z.playVideo(e,H,V),6)}wYt(z);return E.jumpTo(0)})};
D6[DW]=[Pf];var N1=function(M){this.JSC$17321_commandHandler=M};
_.w(N1,VX);N1.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return(R=_.G(M,MRv))?O.yield(_.T_(),2):O.return();D=O.yieldResult;if(!D)return O.return();(N=g6p(D))?J.JSC$17321_commandHandler.resolveCommand(N,z):(Z=_.e9("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),B=_.J9(Z),J.JSC$17321_commandHandler.resolveCommand(B));_.UI(O)})};
N1[DW]=[_.Rb];var PV=function(M){this.JSC$17324_playerPromise=M};
_.w(PV,VX);PV.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z;return _.k(function(B){if(B.nextAddress==1){J=_.G(M,q_p);if(!J)return B.return();R=J.overlayRenderer;return R?(D=_.G(R,R1u))?B.yield(z.JSC$17324_playerPromise,3):B.jumpTo(0):B.return()}N=B.yieldResult;N.renderChapterSeekingAnimation(1,_.CD(D.text),(Z=D.icon)==null?void 0:Z.iconType);_.UI(B)})};
PV[DW]=[_.SF];var SA=function(M){this.store=M};
_.w(SA,VX);
SA.prototype.resolveCommand=function(M){var z=this,J,R,D;return _.k(function(N){if(N.nextAddress==1){J=_.G(M,bsv);if(!J)return N.return();R="";(D=z.store.getState().collabInviteLink)&&J.id===D.playlistId?R=D.inviteLinkURL:J.shortUrl&&(R=J.shortUrl);return R?N.yield(navigator.clipboard.writeText(R),3):N.jumpTo(0)}var Z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.e9("COPY_LINK_SUCCESS_TOAST")}}}}};_.JF().resolve(_.Rb).resolveCommand(Z);_.UI(N)})};
SA[DW]=[j7];var Z6=function(M,z){this.innertubeTransportService=M;this.JSC$17334_commandHandler=z};
_.w(Z6,VX);Z6.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){if(v.nextAddress==1)return(R=_.G(M,_.fM))?v.yield(_.fn(J.innertubeTransportService,M,(D=z)==null?void 0:D.form),2):v.return();(N=v.yieldResult)&&N.errorMetadata&&(Z=N,B=_.J9(Z.error.message),J.JSC$17334_commandHandler.resolveCommand(B));O=N;if((X=O)==null?0:X.actions)for(l=_.S(O.actions),e=l.next();!e.done;e=l.next())Q=e.value,J.JSC$17334_commandHandler.resolveCommand(Q);_.UI(v)})};
Z6[DW]=[_.cP,_.Rb];var kv=function(){};
_.w(kv,VX);kv.prototype.resolveCommand=function(M){var z;return _.k(function(J){z=_.G(M,qeB);if(!z)return J.return();(new DOB(z)).show();_.UI(J)})};_.BV=new _.Nh("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Oo=function(M,z,J,R){this.store=M;this.innertubeTransportService=z;this.controller=J;this.JSC$17342_commandHandler=R};
_.w(Oo,VX);
Oo.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8,I3,vY,te,wR;return _.k(function(qb){if(qb.nextAddress==1){R=_.G(M,_.uU);if(!R)return qb.return();if(R.clientActions){D=_.S(R.clientActions);for(N=D.next();!N.done;N=D.next())Z=N.value,J.JSC$17342_commandHandler.resolveCommand(Z);var cY,Pu=z==null?void 0:(cY=z.form)==null?void 0:cY.element;Pu&&_.Pv(Pu,"yt-dismissible-item-action",R.clientActions)}return qb.yield(_.fn(J.innertubeTransportService,M,(B=
z)==null?void 0:B.form),2)}if(O=qb.yieldResult)O.errorMetadata?(X=O,l=_.J9(X.error.message),J.JSC$17342_commandHandler.resolveCommand(l),"error"in O&&((e=z)==null?0:(Q=e.commandController)==null?0:Q.onServerError)&&((v=z)==null||(x=v.commandController)==null||x.onServerError(M,O))):(m=z)==null||(y=m.commandController)==null||(q=(H=y).onSuccess)==null||q.call(H,M,O);b=O;((V=b)==null?0:V.collaborationInviteLink)&&R.playlistId&&(_.U("web_enable_invite_collaborators_link")||_.U("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
J.store.dispatch(_.Nv({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:R.playlistId,inviteLinkUrl:b.collaborationInviteLink}}));((E=b)==null?0:E.redirectEndpoint)&&J.JSC$17342_commandHandler.resolveCommand(b.redirectEndpoint);((L=b)==null?0:(z8=L.newHeader)==null?0:z8.playlistHeaderRenderer)?xbu(J.controller,b.newHeader.playlistHeaderRenderer):((O8=b)==null?0:(I3=O8.newHeader)==null?0:I3.musicEditablePlaylistDetailHeaderRenderer)&&xbu(J.controller,b.newHeader.musicEditablePlaylistDetailHeaderRenderer);
J.controller.playlistVideoListElement&&((vY=b)==null?0:(te=vY.playlistEditResults)==null?0:(wR=te[0])==null?0:wR.playlistEditVideoAddedResultData)&&((Pu=J.controller.playlistVideoListElement)==null||Pu.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:b.playlistEditResults[0].playlistEditVideoAddedResultData})));_.UI(qb)})};
Oo[DW]=[j7,_.cP,_.BV,_.Rb];var TY=function(M,z){this.controller=M;this.JSC$17352_commandHandler=z};
_.w(TY,VX);TY.prototype.resolveCommand=function(M,z){var J=this,R,D,N;return _.k(function(Z){R=_.G(M,rQa);J.controller.showRefreshPill&&((D=R)==null?0:D.command)&&(J.JSC$17352_commandHandler.resolveCommand((N=R)==null?void 0:N.command,z),J.controller.showRefreshPill=!1);_.UI(Z)})};
TY[DW]=[_.T1,_.Rb];var IB=function(M,z){this.store=M;this.JSC$17356_commandHandler=z||_.l5.instance};
_.w(IB,VX);IB.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){R=_.G(M,Tqu);D=J.store.getState().radioButtonGroup;if((N=R)==null?0:N.command)J.JSC$17356_commandHandler.resolveCommand((Z=R)==null?void 0:Z.command,z);else if(D&&((B=R)==null?void 0:B.formId)===D.currentFormId)for(O=Object.values(D.commandsMap),X=_.S(O),l=X.next();!l.done;l=X.next())e=l.value,(Q=_.$S(e))&&J.JSC$17356_commandHandler.resolveCommand(Q,z);_.UI(v)})};
IB[DW]=[_.Vo];var oB=new _.Nh("USER_PREFS");var lx=function(M){this.JSC$17361_prefCookie=M};
_.w(lx,VX);lx.prototype.resolveCommand=function(M){var z=this,J;return _.k(function(R){(J=_.G(M,hvg))&&typeof J.useListView==="boolean"&&(_.GV(0,155,J.useListView),z.JSC$17361_prefCookie.save());_.UI(R)})};
lx[DW]=[oB];var eA=function(M){this.JSC$17365_prefCookie=M};
_.w(eA,VX);eA.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z;return _.k(function(B){J=_.G(M,aCV);if((R=J)==null||!R.gl)return B.return();D=J.gl;N={persist_gl:"1",gl:D};z.JSC$17365_prefCookie.set("gl",D);z.JSC$17365_prefCookie.save();Z=Hwt(N);_.EA(Z);_.UI(B)})};
eA[DW]=[oB];var Qp=function(M){this.JSC$17369_prefCookie=M};
_.w(Qp,VX);Qp.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,zhS);if(!J)return D.return();R=!1;J.flagNum&&typeof J.value==="boolean"?(_.GV(0,J.flagNum,J.value),R=!0):J.key&&typeof J.stringValue==="string"&&(z.JSC$17369_prefCookie.set(J.key,J.stringValue),R=!0);R&&z.JSC$17369_prefCookie.save();_.UI(D)})};
Qp[DW]=[oB];var Uo=new _.Nh("PREF_STORAGE_PROMISE_TOKEN");var vV=function(M){this.JSC$17373_prefStoragePromise=M};
_.w(vV,VX);vV.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return(J=_.G(M,Rh2))?D.yield(z.JSC$17373_prefStoragePromise,2):D.return();R=D.yieldResult;return R===void 0||J.key===void 0||J.value===void 0?D.return():D.yield(R.set(J.key,J.value),0)})};
vV[DW]=[Uo];var tpc=function(M){this.innertubeTransportService=M};
_.w(tpc,VX);tpc.prototype.resolveCommand=function(M,z){var J=this,R,D;return _.k(function(N){(R=_.G(M,_.HMv))&&R&&R.isFirstRequest&&(_.nY("search_overview_answer"),_.hd("so_rq",void 0,"search_overview_answer"));return N.yield(_.fn(J.innertubeTransportService,M,(D=z)==null?void 0:D.form),0)})};
tpc[DW]=[_.cP];var j3l=function(){};
_.w(j3l,VX);
j3l.prototype.resolveCommand=function(M){var z,J,R,D,N,Z,B,O,X;return _.k(function(l){z=_.G(M,$Pg);if((J=z)==null?0:J.sectionIdentifier){if(z.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(D=(R=document.getElementsByTagName(z.sectionIdentifier))==null?void 0:R.item(0))D.scrollIntoView({behavior:"smooth"}),(N=dfo(D))&&N.focus({preventScroll:!0});return l.return()}Z=document.querySelector("[section-identifier="+z.sectionIdentifier+"]");B=document.querySelector("[section-identifier="+z.referenceSectionIdentifier+
"]");if(!Z)return l.return();O=z.verticalScrollOffsetDp?z.verticalScrollOffsetDp:0;B&&(O-=B.offsetTop);window.scrollTo({top:Z.offsetTop+O,behavior:"smooth"});(X=dfo(Z))&&X.focus({preventScroll:!0})}_.UI(l)})};var GY=function(M){this.JSC$17385_commandHandler=M};
_.w(GY,VX);
GY.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O;return _.k(function(X){if(X.nextAddress==1){J=_.G(M,DJ$);if(!J||!J.imageBytes||!navigator.clipboard)return X.return();if(J.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.nc(Error("Ci")),X.return();_.Io(X,2);D=(R=J)==null?void 0:R.imageBytes;N=D.replace(/-/g,"+").replace(/_/g,"/");Z=T8n(N);B={};O=[new ClipboardItem((B[Z.type]=Z,B))];return X.yield(navigator.clipboard.write(O),4)}if(X.nextAddress!=2)return J.successCommand&&
z.JSC$17385_commandHandler.resolveCommand(J.successCommand),_.ab(X,0);_.Qa(X);J.errorCommand&&z.JSC$17385_commandHandler.resolveCommand(J.errorCommand);_.UI(X)})};
GY[DW]=[_.Rb];var wt=function(M,z){this.innertubeTransportService=M;this.JSC$17389_commandHandler=z};
_.w(wt,VX);wt.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return(R=_.G(M,NN$))?O.yield(_.fn(J.innertubeTransportService,M,(D=z)==null?void 0:D.form),2):O.return();(N=O.yieldResult)&&N.errorMetadata&&R.onFailureCommand&&J.JSC$17389_commandHandler.resolveCommand(R.onFailureCommand);Z=N;((B=Z)==null?0:B.shareCommand)&&J.JSC$17389_commandHandler.resolveCommand(Z.shareCommand,z);_.UI(O)})};
wt[DW]=[_.cP,_.Rb];var xv=function(){};
_.w(xv,VX);xv.prototype.resolveCommand=function(M){var z,J;return _.k(function(R){z=_.G(M,isu);if(!z||!navigator.share)return R.return();J={url:z.url};try{return R.return(navigator.share(J))}catch(D){}_.UI(R)})};var tY=function(){};
_.w(tY,VX);tY.prototype.resolveCommand=function(){return _.k(function(M){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.UI(M)})};var jA=function(M){this.JSC$17399_navigationConfirmationService=M};
_.w(jA,VX);jA.prototype.resolveCommand=function(){var M=this;return _.k(function(z){M.JSC$17399_navigationConfirmationService.cancelPendingNavigation();_.UI(z)})};
jA[DW]=[tX];var pP=function(M){this.JSC$17402_screenManager=M};
_.w(pP,VX);pP.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X;return _.k(function(l){D=(R=z.form)==null?void 0:R.event;Z=(N=z.form)==null?void 0:N.element;if(!D)throw new _.xN("Event not passed in when resolving command");B=_.S(D.composedPath());for(O=B.next();!O.done;O=B.next())if(X=O.value,X.tagName==="YT-COPY-LINK-RENDERER")return X.copyUrlToClipboard(),Z&&_.al(J.JSC$17402_screenManager,Z),l.return();_.UI(l)})};
pP[DW]=[_.hs];var FR=function(){this.JSC$17406_miniAppClientDataProvider=_.JF().resolve(_.A2)};
_.w(FR,VX);FR.prototype.resolveCommand=function(){var M=this,z,J;return _.k(function(R){if(M.JSC$17406_miniAppClientDataProvider.clientData.has("video_id")){var D=M.JSC$17406_miniAppClientDataProvider,N=D.clientData.get("video_id");N&&D.clientData.delete("video_id");z="https://youtube.com/watch?v="+N;J=_.sw(z);if(J===void 0)throw Error("Di`"+z);_.VZ(window,J)}_.UI(R)})};var Yv=function(){};
_.w(Yv,VX);Yv.prototype.resolveCommand=function(){return _.k(function(M){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.UI(M)})};var mL=function(){};
_.w(mL,VX);mL.prototype.resolveCommand=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.BJp(window.document.documentElement),2);(M=document.querySelector("mini-app-container-view-model iframe"))&&M.focus();_.UI(z)})};var gt=function(M){this.JSC$17413_navigationConfirmationService=M};
_.w(gt,VX);
gt.prototype.resolveCommand=function(){var M=this;return _.k(function(z){var J=M.JSC$17413_navigationConfirmationService,R=_.JF().resolve(_.g_),D;if(((D=J.navigateParams)==null?void 0:D.data)!==void 0){var N;_.ZJB(R,J.navigateParams.endpoint,J.navigateParams.data,(N=J.navigateParams.navigationType)!=null?N:1,J.navigateParams.tempData,J.navigateParams.isMiniplayer,void 0,!0);J.navigateParams=void 0;J.customConfirmationCommand=void 0}else J.navigateParams&&(R.navigate(J.navigateParams.endpoint,J.navigateParams.reload,
J.navigateParams.params,J.navigateParams.tempData,J.navigateParams.requestType,J.navigateParams.createScreenConfig,!0),J.navigateParams=void 0,J.customConfirmationCommand=void 0);_.UI(z)})};
gt[DW]=[tX];var so=function(){};
_.w(so,VX);so.prototype.resolveCommand=function(){return _.k(function(M){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.UI(M)})};var nP=function(M){this.JSC$17418_prefStorage=M};
_.w(nP,VX);nP.prototype.resolveCommand=function(){var M=this,z,J;return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(M.JSC$17418_prefStorage,2);case 2:return(z=R.yieldResult)?R.yield(z.set("sfvle",!1),3):R.return();case 3:return R.yield(z.set("sfvles",!0),4);case 4:J=_.vv(),_.GV(0,203,!1),_.GV(0,204,!0),J.save(),_.UI(R)}})};
nP[DW]=[Uo];var hY=function(M){this.JSC$17421_prefStorage=M};
_.w(hY,VX);hY.prototype.resolveCommand=function(){var M=this,z,J;return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(M.JSC$17421_prefStorage,2);case 2:return(z=R.yieldResult)?R.yield(z.set("sfvle",!0),3):R.return();case 3:return R.yield(z.set("sfvles",!0),4);case 4:J=_.vv(),_.GV(0,203,!0),_.GV(0,204,!0),J.save(),_.UI(R)}})};
hY[DW]=[Uo];_.pYt=new _.Nh("SNACKBAR_CONTROLLER_TOKEN");_.Fwm=new _.Nh("SHOULD_SHOW_PIVOT_BAR_TOKEN");var yp=function(M){this.controller=M};
_.w(yp,VX);yp.prototype.resolveCommand=function(M){var z=this,J;return _.k(function(R){J=_.G(M,egV);if(!J)return R.return();var D=z.controller;D.closeSnackbarFn&&D.closeSnackbarFn();_.UI(R)})};
yp[DW]=[_.pYt];var HV=function(M,z){this.controller=M;this.sheetController=z};
_.w(HV,VX);HV.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O;return _.k(function(X){R=_.G(M,UJB);if(!R)return X.return();Z=Ici(J.sheetController,(D=z)==null?void 0:(N=D.form)==null?void 0:N.element);B=_.G(R.content,dn$);if(!B)return X.return();var l=J.controller,e=B,Q=(O=R.animationStyle)!=null?O:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(l.showSnackbarFn)l.showSnackbarFn({snackbarViewModel:e,animationStyle:Q,durationMs:R.durationSeconds*1E3,target:Z});else throw Error("nj");_.UI(X)})};
HV[DW]=[_.pYt,_.hX];var cV=function(){};
_.w(cV,VX);cV.prototype.resolveCommand=function(M){var z;return _.k(function(J){z=_.G(M,JbJ);if(!z||typeof z.key!=="string"||typeof z.value!=="string")return J.return();window.localStorage.setItem(z.key,z.value);_.UI(J)})};var dt=function(M){this.store=M};
_.w(dt,VX);dt.prototype.resolveCommand=function(M){var z=this,J;return _.k(function(R){J=_.G(M,LC8);if(!J||!J.stepId||!J.token)return R.return();z.store.dispatch(NG$({stepId:J.stepId,token:J.token,isSelected:!1}));_.UI(R)})};
dt[DW]=[j7];var KP=function(M,z,J){this.innertubeTransportService=M;this.store=z;this.JSC$17440_screenManager=J};
_.w(KP,VX);
KP.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E,L,z8,O8;return _.k(function(I3){J=_.G(M,Awa);if(!J||(R=J.stepIds)==null||!R.length)return I3.return();D=z.store.getState().talkToRecs;N=[];Z=[];B=_.S(J.stepIds);for(O=B.next();!O.done;O=B.next())for(X=O.value,l=void 0,(e=(l=D.stepStates[X])==null?void 0:l.userQuery)&&Z.push({userQuery:e.userQuery,userQueryToken:e.token}),Q=void 0,v=(Q=D.stepStates[X])==null?void 0:Q.selectionStates,x=_.S(Object.entries(v)),m=
x.next();!m.done;m=x.next())y=m.value,H=_.S(y),q=H.next().value,b=H.next().value,V=q,E=b,E.isSelected&&N.push(V);L={selectedChipTokens:N,userQueries:Z,submittedStepIds:J.stepIds};z8={browseTalk2recsFormData:L};J.browseEndpoint?(O8=M,_.hh(O8,_.Gh,J.browseEndpoint)):J.command&&(O8=J.command);return O8?I3.yield(_.fn(z.innertubeTransportService,O8,{formData:z8,disableCache:!0}).then(function(vY){(vY==null?0:vY.trackingParams)&&z.JSC$17440_screenManager.graftServerVe(vY==null?void 0:vY.trackingParams)}),
0):I3.return()})};
KP[DW]=[_.cP,j7,_.hs];var $v=function(M){this.store=M};
_.w($v,VX);$v.prototype.resolveCommand=function(M){var z=this,J;return _.k(function(R){J=_.G(M,fMc);if(!J||!J.stepId||!J.token)return R.return();z.store.dispatch(NG$({stepId:J.stepId,token:J.token,isSelected:!0}));_.UI(R)})};
$v[DW]=[j7];var ux=function(M){this.store=M};
_.w(ux,VX);ux.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B;return _.k(function(O){R=_.G(M,iQp);if(!R||!R.stepId||!R.userQueryToken)return O.return();B=(Z=(D=z)==null?void 0:(N=D.form)==null?void 0:N.userQuery)!=null?Z:"";J.store.dispatch(_.Nv({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:R.stepId,userQueryToken:R.userQueryToken,userQuery:B}}));_.UI(O)})};
ux[DW]=[j7];_.Y8G=new _.Nh("TIMELY_ACTIONS_CONTROLLER_TOKEN");var q1=function(M){this.controller=M};
_.w(q1,VX);q1.prototype.resolveCommand=function(M){var z=this,J,R,D,N;return _.k(function(Z){J=_.G(M,cnp);if(!J)return Z.return();R=J;D=R.id;N=R.isVisible;if(D===void 0||N===void 0)return Z.return();var B;(B=z.controller.timelyActionsMap.get(D))==null||B(D,N);_.UI(Z)})};
q1[DW]=[_.Y8G];var mbw=function(){this.timelyActionsMap=new Map};var WV=function(M){this.JSC$17467_commandHandler=M};
_.w(WV,VX);WV.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z;return _.k(function(B){J=_.G(M,_.F7);if(!J)return B.return();N=(R=J.item)==null?void 0:(D=R.notificationTextRenderer)==null?void 0:D.successResponseText;if(!N)return B.return();Z=_.zh(N);z.JSC$17467_commandHandler.resolveCommand(Z);_.UI(B)})};
WV[DW]=[_.Rb];var aB=function(M,z){this.innertubeTransportService=M;this.JSC$17472_playerApiPromise=z};
_.w(aB,VX);
aB.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l;return _.k(function(e){if(e.nextAddress==1)return e.yield(z.JSC$17472_playerApiPromise,2);J=e.yieldResult;R=J.getOption("captions","track");D=Object.assign({},_.G(M,_.xDu));(Z=(N=J.getVideoData())==null?void 0:N.video_id)?D.externalVideoId=Z:_.WW(Error("Ei"));if((B=R)==null?0:B.languageCode)D.languageCode=R.languageCode;if((O=R)==null?0:O.kind)D.kind=R.kind;if((X=R)==null?0:X.name)D.name=R.name;l=Object.assign({},M,{getTranscriptEndpoint:D});return e.yield(_.fn(z.innertubeTransportService,
l),0)})};
aB[DW]=[_.cP,_.SF];var Vp=function(){};
_.w(Vp,VX);Vp.prototype.resolveCommand=function(M){var z,J,R,D,N,Z,B,O;return _.k(function(X){z=_.G(M,OFk);if((J=z)==null||!J.paramKeyValuePairs)return X.return();R=window.location.href;D=_.S(z.paramKeyValuePairs);for(N=D.next();!N.done;N=D.next())Z=N.value,Z.key&&Z.value&&(B={},R=_.Lh(R,(B[Z.key]=Z.value,B)));O=_.JF().resolve(_.GW);_.vH(O,R);_.UI(X)})};var Eo=function(M,z){this.JSC$17479_commandHandler=M;this.innertubeTransportService=z};
_.w(Eo,VX);
Eo.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b;return _.k(function(V){switch(V.nextAddress){case 1:return(N=(R=z)==null?void 0:(D=R.form)==null?void 0:D.element)&&_.WX(N),Z=_.vv().get("hl"),B="",_.Io(V,2),V.yield(yOY(Z),4);case 4:B=V.yieldResult;_.ab(V,3);break;case 2:return _.Qa(V),N&&_.aZ(N),_.nc(Error("Gi"),"ERROR"),V.return();case 3:O=_.G(M,OEg);if(!O)return N&&_.aZ(N),V.return();(e=(X=O.commerceActionConfig)==null?void 0:(l=X.commandLifeCycleConfig)==null?
void 0:l.onStartCommand)&&J.JSC$17479_commandHandler.resolveCommand(e);return V.yield(_.fn(J.innertubeTransportService,M,{client_data:{paymentsClientToken:{token:B}}}),5);case 5:(Q=V.yieldResult)?(N&&_.aZ(N),((y=Q)==null?0:y.command)&&J.JSC$17479_commandHandler.resolveCommand(Q.command),(b=(H=O.commerceActionConfig)==null?void 0:(q=H.commandLifeCycleConfig)==null?void 0:q.onSuccessCommand)&&J.JSC$17479_commandHandler.resolveCommand(b)):(N&&_.aZ(N),_.nc(Error("Hi")),(m=(v=O.commerceActionConfig)==
null?void 0:(x=v.commandLifeCycleConfig)==null?void 0:x.onFailureCommand)&&J.JSC$17479_commandHandler.resolveCommand(m)),_.UI(V)}})};
Eo[DW]=[_.Rb,_.cP];var fP=function(M,z,J){this.store=M;this.JSC$17495_commandHandler=z;this.innertubeTransportService=J};
_.w(fP,VX);
fP.prototype.resolveCommand=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e;return _.k(function(Q){R=_.G(M,Txv);D=R.googlePaymentPayload;R.onStartCommand&&J.JSC$17495_commandHandler.resolveCommand(R.onStartCommand);N=D.encryptedPurchaseParams;Z=D.ypcLogWalletAnalyticDataEndpoint;B=R.serializedTransactionFlowLoggingParams;O=D.serializedPaymentsClientParams;X=R.ypcCujContext;e=dqp(J.innertubeTransportService,(l=z)==null?void 0:l.form,N,Z,B,O,X);return Q.return(e.then(function(v){HB8(z==null?void 0:z.form,
!1);var x=J.store,m=J.JSC$17495_commandHandler,y=v.integratorData;y==null||y===""||v.error!=null?(String(v.error)==="-1"&&R.onDismissCommand?m.resolveCommand(R.onDismissCommand):String(v.error)!=="-1"&&R.onFailureCommand&&m.resolveCommand(R.onFailureCommand),String(v.error)!=="-1"&&String(v.error)!=="132"&&_.nc(Error("Ii"),"ERROR")):(R.googlePaymentEntityKey&&x.dispatch(_.pf("commerceAcquisitionClientPayloadEntity",R.googlePaymentEntityKey,{key:R.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:y,
fundsGuaranteeCallbackClientData:v.integratorClientCallbackData}}})),R.onSuccessCommand&&m.resolveCommand(R.onSuccessCommand));_.Of()},function(v){HB8(z==null?void 0:z.form,!1);
_.nc(v,"ERROR");R.onFailureCommand&&J.JSC$17495_commandHandler.resolveCommand(R.onFailureCommand)}))})};
fP[DW]=[Pf,_.Rb,_.cP];var LP=function(M,z){this.JSC$17499_commandHandler=M;this.purchaseManager=z};
_.w(LP,VX);
LP.prototype.resolveCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l;return _.k(function(e){J=_.G(M,IJa);((R=J)==null?0:(D=R.commandLifeCycleConfig)==null?0:D.onStartCommand)&&z.JSC$17499_commandHandler.resolveCommand(J.commandLifeCycleConfig.onStartCommand);if(!((N=J)==null?0:(Z=N.googlePaymentPurchaseManagerPayload)==null?0:Z.securePayloadBytes))return _.nc(Error("Ji"),"ERROR"),e.return();B=TBJ(_.Ae(J.googlePaymentPurchaseManagerPayload.securePayloadBytes));O=_.vv().get("hl");X=_.Ln();Fu2(B.serialize(),
O,function(Q){X.resolve(Q)},function(Q){X.reject(Q)},X.resolve);
l=X.promise;return e.return(l.then(function(Q){if(Q)if(Q==null?0:Q.errorCode){_.nc(Error("Ki`"+Q.errorCode),"ERROR");var v,x;((v=J)==null?0:(x=v.commandLifeCycleConfig)==null?0:x.onFailureCommand)&&z.JSC$17499_commandHandler.resolveCommand(J.commandLifeCycleConfig.onFailureCommand)}else if(Q==null?0:Q.isCancelled){var m,y;((m=J)==null?0:(y=m.commandLifeCycleConfig)==null?0:y.onCancelCommand)&&z.JSC$17499_commandHandler.resolveCommand(J.commandLifeCycleConfig.onCancelCommand)}else{var H,q;((H=J)==
null?0:(q=H.commandLifeCycleConfig)==null?0:q.onSuccessCommand)&&z.JSC$17499_commandHandler.resolveCommand(J.commandLifeCycleConfig.onSuccessCommand)}},function(Q){_.nc(Q,"ERROR");
var v,x;((v=J)==null?0:(x=v.commandLifeCycleConfig)==null?0:x.onFailureCommand)&&z.JSC$17499_commandHandler.resolveCommand(J.commandLifeCycleConfig.onFailureCommand)}))})};
LP[DW]=[_.Rb,Yl$];var gol=function(M,z){this.JSC$17507_commandHandler=M;this.commandAllowlistOverride=z;var J;this.commandAllowlist=(J=this.commandAllowlistOverride)!=null?J:AM};
gol.prototype.handleResponse=function(M,z,J){var R,D=z==null?void 0:(R=z.config)==null?void 0:R.command;if(!D||this.commandAllowlist.some(function(N){return!!_.G(D,N)})){z=void 0;
J!==void 0&&(z={form:{element:J}});M.onResponseReceivedCommand&&this.JSC$17507_commandHandler.resolveCommand(M.onResponseReceivedCommand,z);M.onResponseReceivedAction&&this.JSC$17507_commandHandler.resolveCommand(M.onResponseReceivedAction,z);M.onResponseReceivedEndpoint&&this.JSC$17507_commandHandler.resolveCommand(M.onResponseReceivedEndpoint,z);M.command&&this.JSC$17507_commandHandler.resolveCommand(M.command,z);if(M.onResponseReceivedCommands)for(J=_.S(M.onResponseReceivedCommands),R=J.next();!R.done;R=
J.next())this.JSC$17507_commandHandler.resolveCommand(R.value,z);if(M.onResponseReceivedActions)for(J=_.S(M.onResponseReceivedActions),R=J.next();!R.done;R=J.next())this.JSC$17507_commandHandler.resolveCommand(R.value,z);if(M.onResponseReceivedEndpoints)for(J=_.S(M.onResponseReceivedEndpoints),R=J.next();!R.done;R=J.next())this.JSC$17507_commandHandler.resolveCommand(R.value,z);if(M.actions)for(M=_.S(M.actions),J=M.next();!J.done;J=M.next())this.JSC$17507_commandHandler.resolveCommand(J.value,z)}};
gol[DW]=[_.Rb,_.zw(gdp)];var s3w=new _.Nh("INNERTUBE_TOKEN_SERVICE");var nol=new _.Nh("SCHEDULER_TOKEN");var h0t=function(M){this.scheduler=M;M={};this.tokenMap=(M.app={},M.user={},M)};
h0t.prototype.handleResponse=function(M,z){if(!z)throw Error("Li");var J;if(M=(J=M.responseContext)==null?void 0:J.innertubeTokenJar){if(M.appTokens){var R,D,N;J=(R=z.innerTubeRequest.context)==null?void 0:(D=R.request)==null?void 0:(N=D.innertubeTokenJar)==null?void 0:N.appTokens;yei(this,M.appTokens,this.tokenMap.app,J)}if(M.userTokens){var Z,B,O;z=(Z=z.innerTubeRequest.context)==null?void 0:(B=Z.request)==null?void 0:(O=B.innertubeTokenJar)==null?void 0:O.userTokens;yei(this,M.userTokens,this.tokenMap.user,
z)}}};
h0t.prototype.processContext=function(M){M.request||(M.request={});var z=Object.keys(this.tokenMap.app).length,J=Object.keys(this.tokenMap.user).length;if(z||J)M.request.innertubeTokenJar={},z&&(M.request.innertubeTokenJar.appTokens=[].concat(_.Yj(Object.values(this.tokenMap.app).flat()))),J&&(M.request.innertubeTokenJar.userTokens=[].concat(_.Yj(Object.values(this.tokenMap.user).flat())))};
var yei=function(M,z,J,R){z=_.S(z);for(var D=z.next(),N={};!D.done;N={token$jscomp$138:void 0},D=z.next()){N.token$jscomp$138=D.value;if(N.token$jscomp$138.type===void 0)throw new _.xN("InnerTube token has no type",N.token$jscomp$138);if(N.token$jscomp$138.clearTokens)J[N.token$jscomp$138.type]=[];else if(N.token$jscomp$138.value!==void 0){J[N.token$jscomp$138.type]||(J[N.token$jscomp$138.type]=[]);if(R!==void 0&&R.length){D=_.S(R);for(var Z=D.next(),B={};!Z.done;B={requestToken:void 0},Z=D.next())B.requestToken=
Z.value,Z=J[N.token$jscomp$138.type].findIndex(function(O){return function(X){return X===O.requestToken||(0,_.gu.equals)(X,O.requestToken)}}(B)),Z>-1&&J[N.token$jscomp$138.type].splice(Z,1)}J[N.token$jscomp$138.type].push(N.token$jscomp$138);
N.token$jscomp$138.maxAgeSeconds&&Number(N.token$jscomp$138.maxAgeSeconds)>0&&M.scheduler.addLowPriorityJob(function(O){return function(){var X=J[O.token$jscomp$138.type].indexOf(O.token$jscomp$138);X>-1&&J[O.token$jscomp$138.type].splice(X,1)}}(N),Number(N.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.xN("InnerTube token has no value",N.token$jscomp$138);
}};
h0t[DW]=[nol];var Hpi=new _.Nh("LOCAL_INNERTUBE_ROUTER_TOKEN"),cec=new _.Nh("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var AY=function(M){this.serviceMap=M};
AY.prototype.shouldPreferLocalResponse=function(M,z){return(M=dbd(this,M))?M.shouldPreferLocalResponse(z):!1};
AY.prototype.localInnertubeResponse=function(M,z){var J=this,R;return _.k(function(D){return(R=dbd(J,M))?D.return(R.localInnertubeResponse(z)):D.return(Promise.reject(Error("Mi")))})};
AY.prototype.canProvideFallbackResponse=function(M,z){return(M=dbd(this,M))?M.canProvideFallbackResponse(z):!1};
AY.prototype.localFallbackInnertubeResponse=function(M,z){var J=this,R;return _.k(function(D){return(R=dbd(J,M))?D.return(R.localFallbackInnertubeResponse(z)):D.return(Promise.reject(Error("Mi")))})};
var dbd=function(M,z){z=_.Ib(z);return z?(M=M.serviceMap[z])?M:null:null};
AY[DW]=[cec];var wy=function(){};
wy.prototype.shouldPreferLocalResponse=function(){return!1};
wy.prototype.localInnertubeResponse=function(){return _.k(function(M){return M.return(Promise.reject(Error("Ni")))})};
wy.prototype.canProvideFallbackResponse=function(){return!0};
wy.prototype.localFallbackInnertubeResponse=function(){var M,z,J;return _.k(function(R){M=vX("CLOSE_POPUP");z={openPopupAction:$qp()};J={actions:[M,z]};return R.return(J)})};var dW0=function(M,z){this.JSC$17557_upliftPromise=M;this.store=z};
_.P=dW0.prototype;_.P.shouldPreferLocalResponse=function(M){var z=M.videoId,J;if(J=z)J=JmG(this.store.getState().entities,M.videoId);return J&&Rgp(this.store.getState().entities,z)?qTw(this.store.getState().entities,M.playlistId):!1};
_.P.localInnertubeResponse=function(M){var z=this,J;return _.k(function(R){return(J=z.getPlayerResponse(M))?R.return(Promise.resolve(J)):R.return(Promise.reject(Error("Oi")))})};
_.P.canProvideFallbackResponse=function(M){return!!M.videoId};
_.P.localFallbackInnertubeResponse=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.JSC$17557_upliftPromise,2);J=z.getPlayerResponse(M);var D;J?D=R.return(Promise.resolve(J)):D=pD(z.store.getState().entities,M.videoId)?R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.JN(_.e9("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:zN8()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.JN(_.e9("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:M2w()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return D})};
_.P.getPlayerResponse=function(M){return mJ8(this.store.getState().entities,M.videoId)};var G0=function(M,z){this.localPlayerService=M;this.localWatchNextService=z};
G0.prototype.shouldPreferLocalResponse=function(M){var z=M.playerRequest;M=M.watchNextRequest;return!!(z&&this.localPlayerService.shouldPreferLocalResponse(z)&&M&&this.localWatchNextService.shouldPreferLocalResponse(M))};
G0.prototype.localInnertubeResponse=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){J=M.playerRequest;R=M.watchNextRequest;if(!J||!R)throw new _.xN("Missing streaming request",M);return Z.yield(z.localPlayerService.localInnertubeResponse(J),2)}if(Z.nextAddress!=3)return D=Z.yieldResult,Z.yield(z.localWatchNextService.localInnertubeResponse(R),3);N=Z.yieldResult;return Z.return({playerResponse:D,watchNextResponse:N})})};
G0.prototype.canProvideFallbackResponse=function(M){var z=M.playerRequest;M=M.watchNextRequest;return!!(z&&this.localPlayerService.canProvideFallbackResponse(z)&&M&&this.localWatchNextService.canProvideFallbackResponse(M))};
G0.prototype.localFallbackInnertubeResponse=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return J=M.playerRequest,R=M.watchNextRequest,J&&R?Z.yield(z.localPlayerService.localFallbackInnertubeResponse(J),2):Z.return(Promise.reject(new _.xN("Missing streaming request",M)));if(Z.nextAddress!=3)return D=Z.yieldResult,Z.yield(z.localWatchNextService.localFallbackInnertubeResponse(R),3);N=Z.yieldResult;return Z.return({playerResponse:D,watchNextResponse:N})})};var Qq=function(M){this.JSC$17567_persistentStorePromiseAccessor=M};
Qq.prototype.shouldPreferLocalResponse=function(){return!1};
Qq.prototype.localInnertubeResponse=function(){return _.k(function(M){return M.return(Promise.reject(Error("Pi")))})};
Qq.prototype.canProvideFallbackResponse=function(){return!0};
Qq.prototype.localFallbackInnertubeResponse=function(){var M=this,z,J;return _.k(function(R){return R.nextAddress==1?R.yield(M.JSC$17567_persistentStorePromiseAccessor(),2):R.nextAddress!=3?(z=R.yieldResult)?R.yield(z.get("service:guide:fallback"),3):R.return(Promise.reject(Error("Qi"))):(J=R.yieldResult)&&_.Dz(J)?R.return(W1e(_.Dz(J))):R.return(Promise.reject(Error("Ri")))})};var xT=function(){};
xT.prototype.shouldPreferLocalResponse=function(){return!1};
xT.prototype.localInnertubeResponse=function(){return _.k(function(M){return M.return(Promise.reject(Error("Si")))})};
xT.prototype.canProvideFallbackResponse=function(){return!0};
xT.prototype.localFallbackInnertubeResponse=function(){var M,z,J;return _.k(function(R){M=vX("CLOSE_POPUP");z={openPopupAction:$qp()};J={actions:[M,z]};return R.return(J)})};var e3=function(){this.urlMap=Kw5;this.fallbackCommand=_.tm};
e3.prototype.shouldPreferLocalResponse=function(M){return(M=M.url)?!!$bt(this,M):!1};
e3.prototype.localInnertubeResponse=function(M){var z=this,J;return _.k(function(R){return(J=M.url)?R.return(unm(M,$bt(z,J))):R.return(Promise.reject(Error("Ti")))})};
e3.prototype.canProvideFallbackResponse=function(){return!0};
e3.prototype.localFallbackInnertubeResponse=function(M){var z=this,J,R,D,N,Z,B,O;return _.k(function(X){J=M.url;if(!J)return X.return(unm(M,z.fallbackCommand));if(R=$bt(z,J))return X.return(unm(M,R));D=void 0;N=_.Ib(J);N==="/watch"&&(Z=_.KW(J,"v"))&&(O=(B=_.KW(J,"list"))!=null?B:void 0,D=_.zr(Z,O));D||(D=z.fallbackCommand);return X.return(unm(M,D))})};
var $bt=function(M,z){if(z)return M.urlMap[_.aT(z)]},unm=function(M,z){z&&M.parentTrackingParams&&(z.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:M.parentTrackingParams}},z.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:z})};var Uj=function(M,z,J){this.JSC$17577_upliftPromise=M;this.store=z;this.JSC$17577_persistentStorePromiseAccessor=J};
Uj.prototype.shouldPreferLocalResponse=function(){return!1};
Uj.prototype.localInnertubeResponse=function(){return _.k(function(M){return M.return(Promise.reject(Error("Ui")))})};
Uj.prototype.canProvideFallbackResponse=function(){return!0};
Uj.prototype.localFallbackInnertubeResponse=function(){var M=this;return _.k(function(z){return z.return(q8v(M))})};
var q8v=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(Rh(M.JSC$17577_upliftPromise,M.store),2);z=R.yieldResult;J={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[uu8(z)]}}}};return R.return(Wws(M,J))})},Wws=function(M,z){var J,R;
return _.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$17577_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3)return J=D.yieldResult,D.yield(N5(J),3);R=D.yieldResult;return D.return({responseContext:{},contents:z,topbar:R})})};var XL=function(M,z,J){this.JSC$17584_upliftPromise=M;this.store=z;this.JSC$17584_persistentStorePromiseAccessor=J};
XL.prototype.shouldPreferLocalResponse=function(M){var z=M.videoId;return z&&JmG(this.store.getState().entities,z)&&Rgp(this.store.getState().entities,z)?qTw(this.store.getState().entities,M.playlistId):!1};
XL.prototype.localInnertubeResponse=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return(J=M.videoId)?D.yield(z.JSC$17584_upliftPromise,2):D.return(Promise.reject(Error("Vi")));if(D.nextAddress!=3)return D.yield(acv(z,M,J),3);R=D.yieldResult;return D.return(Vpv(z,R,J))})};
XL.prototype.canProvideFallbackResponse=function(M){return M.videoId?!0:!1};
XL.prototype.localFallbackInnertubeResponse=function(M){var z=this,J,R,D,N;return _.k(function(Z){switch(Z.nextAddress){case 1:return(J=M.videoId)?Z.yield(z.JSC$17584_upliftPromise,2):Z.return(Promise.reject(Error("Vi")));case 2:return Z.yield(acv(z,M,J),3);case 3:R=Z.yieldResult;if(pD(z.store.getState().entities,J)){Z.jumpTo(4);break}return Z.yield(Rh(z.JSC$17584_upliftPromise,z.store),5);case 5:return D=Z.yieldResult,Z.return(EoN(R,D));case 4:return JmG(z.store.getState().entities,J)&&Rgp(z.store.getState().entities,
J)?Z.return(Vpv(z,R,J)):(N={title:_.JN(_.e9("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:zN8()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Z.return(EoN(R,N)))}})};
var acv=function(M,z,J){var R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return R=z.playlistId,D=_.zr(J,R),O.yield(M.JSC$17584_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return N=O.yieldResult,O.yield(N5(N),3);Z=O.yieldResult;B={responseContext:{},currentVideoEndpoint:D,topbar:Z};return O.return(B)})},Vpv=function(M,z,J){if(M=pD(M.store.getState().entities,J)){var R;
J=M.videoEntity;var D,N={title:Rs(J.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.D8((R=J.localizedStrings)==null?void 0:R.viewCount),viewCount:_.D8((D=J.localizedStrings)==null?void 0:D.viewCount)}}};J.publishedTimestampMillis&&(N.dateText=_.D8(Unn(new Date(Number(J.publishedTimestampMillis)))));R={videoPrimaryInfoRenderer:N};D=M.videoEntity;M=M.channelEntity;M={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Rs(_.e9("SHOW_MORE",void 0,"Show more")),
showLessText:Rs(_.e9("SHOW_LESS",void 0,"Show less")),description:D.formattedDescription,owner:{videoOwnerRenderer:{title:Rs(M.title),thumbnail:M.avatar}}}};z.contents={twoColumnWatchNextResults:{results:{results:{contents:[R,M]}}}}}return z},EoN=function(M,z){M.contents={singleColumnWatchNextResults:{results:{results:{contents:[uu8(z)]}}}};
return M};var vf=function(M,z,J){this.JSC$17589_upliftPromise=M;this.store=z;this.JSC$17589_persistentStorePromiseAccessor=J};
vf.prototype.shouldPreferLocalResponse=function(){return!1};
vf.prototype.localInnertubeResponse=function(){return _.k(function(M){return M.return(Promise.reject(Error("Wi")))})};
vf.prototype.canProvideFallbackResponse=function(){return!0};
vf.prototype.localFallbackInnertubeResponse=function(){var M=this,z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return N.yield(M.JSC$17589_persistentStorePromiseAccessor(),2);case 2:return z=N.yieldResult,N.yield(N5(z),3);case 3:return J=N.yieldResult,R={responseContext:{},topbar:J},N.yield(M.JSC$17589_upliftPromise,4);case 4:return N.yield(Rh(M.JSC$17589_upliftPromise,M.store),5);case 5:return D=N.yieldResult,R.watchStatus={backgroundPromoRenderer:D},N.return(R)}})};var fcw=new _.Nh("ENDPOINT_MAP");var Lwt=function(){var M=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return M.sequenceMap}}},D1v=function(M,z,J){var R,D=(R=z.config)==null?void 0:R.sequenceStrategy;
if(!D)return J();M.sequenceMap.has(D.sequenceKey)||M.sequenceMap.set(D.sequenceKey,[]);M=M.sequenceMap.get(D.sequenceKey);switch(D.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Aew(M,z,J);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ipl(M,z,J);default:throw new _.xN("Request could not be sequenced",z);}},Aew=function(M,z,J){var R,D,N;
return _.k(function(Z){M.length>0?(D=M[M.length-1],R=D.responsePromise.then(function(){return J()})):R=J();
N={request:z,responsePromise:R};M.push(N);CGc(M,N);return Z.return(N.responsePromise)})},ipl=function(M,z,J){J=J();
if(M.length>0)for(var R=_.S(M),D=R.next();!D.done;D=R.next())D.value.responsePromise=J;var N={request:z,responsePromise:J};M.push(N);CGc(M,N);return Promise.resolve().then(function(){return M.indexOf(N)>0?N.responsePromise.then(function(Z){return Object.assign({},Z,{sequenceMetaData:{skipProcessing:!0}})}):N.responsePromise})},CGc=function(M,z){z.responsePromise.then(function(){var J=M.indexOf(z);
J>-1&&M.splice(J,1)})};var bpw=new _.Nh("REQUEST_SEQUENCING");var ix=function(){};
_.w(ix,eE);ix.prototype.getApiPaths=function(){return[]};
ix.prototype.getExtension=function(M){return _.G(M,XKp)};
ix.prototype.JSC$13017_buildRequest=function(M,z){M.recaptchaToken=z.recaptchaToken};
ix.prototype.getApiUrl=function(){return"/das_captcha"};var CP=function(){};
_.w(CP,eE);CP.prototype.getApiPaths=function(){return ksB};
CP.prototype.getExtension=function(M){return _.G(M,akg)};
CP.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.createBackstagePostParams&&(M.createBackstagePostParams=z.createBackstagePostParams);J.comment_text&&(M.commentText=J.comment_text);if(J.attached_video_id)M.videoAttachment={videoId:J.attached_video_id};else if(J.image_poll_options)M.pollAttachmentData={options:J.image_poll_options};else if(J.poll_options)M.pollAttachment={choices:J.poll_options};else if(J.quiz_options)M.quizAttachmentData={options:J.quiz_options};else if(J.image_blob_id)M.imageAttachment=
{encryptedBlobId:J.image_blob_id},J.source_video_id&&(M.imageAttachment.sourceExternalVideoId=J.source_video_id),J.image_preview_coordinates&&(M.imageAttachment.previewCoordinates=JSON.parse(J.image_preview_coordinates));else if(J.images_data)M.imagesAttachment={imagesData:J.images_data};else if(J.clip_external_video_id!==void 0||J.clip_offset_ms!==void 0||J.clip_duration_ms!==void 0){var R,D,N,Z,B;M.clipAttachment={externalVideoId:(N=J.clip_external_video_id)!=null?N:"",offsetMs:(Z=(R=J.clip_offset_ms)==
null?void 0:R.toString())!=null?Z:"",durationMs:(B=(D=J.clip_duration_ms)==null?void 0:D.toString())!=null?B:""}}else J.shared_post_id&&(M.sharedPostAttachment={postId:J.shared_post_id});J.tagged_video_id&&(M.postCreationData={taggedVideoId:J.tagged_video_id});J.access_restrictions&&(typeof J.access_restrictions==="number"&&(z=J.access_restrictions,M.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof J.access_restrictions==="string"&&
(M.accessRestrictionsParams=J.access_restrictions));J.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=J.scheduled_publish_time_sec.toString())};var bx=function(){};
_.w(bx,eE);bx.prototype.getApiPaths=function(){return l2V};
bx.prototype.getExtension=function(M){return _.G(M,B$J)};
bx.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.decorateMessageParams&&(M.params=z.decorateMessageParams);J.text&&(M.text=J.text)};var rt=function(){};
_.w(rt,eE);rt.prototype.getApiPaths=function(){return cpv};
rt.prototype.getExtension=function(M){return _.G(M,V6g)};
rt.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;J.video_id&&(M.videoId=J.video_id)};var MU=function(){};
_.w(MU,eE);MU.prototype.getApiPaths=function(){return qPB};
MU.prototype.getExtension=function(M){return _.G(M,_.on)};
MU.prototype.JSC$13017_buildRequest=function(M,z,J){J.suggestions_query&&(M.input=J.suggestions_query)};var zf=function(){};
_.w(zf,eE);zf.prototype.getApiPaths=function(){return vk$};
zf.prototype.getExtension=function(M){return _.G(M,Eiu)};
zf.prototype.JSC$13017_buildRequest=function(M,z,J){J.comment_text!==void 0&&(M.commentText=J.comment_text);J.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=J.scheduled_publish_time_sec.toString());M.updateBackstagePostParams=z.updateBackstagePostParams};var Jz=function(){};
_.w(Jz,eE);Jz.prototype.getApiPaths=function(){return Cr};
Jz.prototype.getExtension=function(M){return _.G(M,_.uP)};
Jz.prototype.JSC$13017_buildRequest=function(M,z,J){J.formData&&(M.formData=J.formData);z.token?M.continuation=z.token:z.continuationTokenKey&&(J=_.rA().getState(),z=_.Is(J.entities,"continuationTokenEntity",z.continuationTokenKey))&&(M.continuation=String(z.continuationToken))};
var red=function(){};
_.w(red,eE);_.P=red.prototype;_.P.getApiPaths=function(){return Cr};
_.P.getExtension=function(M){return _.G(M,_.Gh)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$13024_getStoreKey=function(M){if((M=this.getExtension(M))&&M.browseId){var z={browseId:M.browseId};M.browseEndpointContextSupportedConfigs&&(z.browseEndpointContextSupportedConfigs=JSON.stringify(M.browseEndpointContextSupportedConfigs));M.params&&(z.params=M.params);M.query&&(z.query=M.query);return _.Lu("browse",z)}};
_.P.JSC$13017_buildRequest=function(M,z,J){z.browseId&&(M.browseId=z.browseId);z.params&&(M.params=z.params);z.query&&(M.query=z.query);J.formData?M.formData=J.formData:z.formData&&(M.formData=z.formData);z.browseId==="FEsubscriptions"&&_.vv().getFlag(155)&&(M.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");z.browseId==="SPaccount_playback"&&(J=_.vv(),M.formData||(M.formData={}),M.formData.accountSettingsFormData={flagCaptionsDefaultOff:J.getFlag(65),flagAutoCaptionsDefaultOn:J.getFlag(66),
flagDisableInlinePreview:J.getFlag(186),flagAudioDescriptionDefaultOn:J.getFlag(198)});if(z.browseId==="FEwhat_to_watch"){J=_.vv();var R=J.getFlag(196);J.getFlag(197)&&(M.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:R}}})}z.browseId==="FEwhat_to_watch"&&(z=_.vv().getFlag(186),M.inlineSettingStatus=z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(M,z){z=z===void 0?{}:z;var J={};if(M=this.JSC$13024_getStoreKey(M,z))J.storeStrategy={storeKey:M,disableCache:z.disableCache};_.U("web_log_browse_ticks_ks")||(J.requestTick="br_s",J.responseTick="br_r");return J};var Rp=function(){};
_.w(Rp,eE);Rp.prototype.getApiPaths=function(){return Rja};
Rp.prototype.getExtension=function(M){return _.G(M,veB)};
Rp.prototype.JSC$13017_buildRequest=function(M,z,J){M.legacyYoutubeChannelUsername=J.legacyYouTubeChannelUsername||"";M.legacyYoutubeChannelPassword=J.legacyYouTubeChannelPassword||""};var Dt=function(){};
_.w(Dt,eE);Dt.prototype.getApiPaths=function(){return B0V};
Dt.prototype.getExtension=function(M){return _.G(M,MB$)};
Dt.prototype.JSC$13017_buildRequest=function(M,z,J){J.recaptcha_response_token&&(M.recaptchaResponseToken=J.recaptcha_response_token);J.channel_id&&(M.channelId=J.channel_id)};var NU=function(){};
_.w(NU,eE);NU.prototype.getApiPaths=function(){return GWt};
NU.prototype.getExtension=function(M){return _.G(M,PHV)};
NU.prototype.JSC$13017_buildRequest=function(M,z,J){z.externalChannelId&&(M.externalChannelId=z.externalChannelId);J.handle&&(M.handleUpdate={handle:J.handle},z.handleEditSource&&(M.handleUpdate.handleEditSource=z.handleEditSource))};var PZ=function(){};
_.w(PZ,eE);PZ.prototype.getApiPaths=function(){return jjJ};
PZ.prototype.getExtension=function(M){return _.G(M,YeS)};
PZ.prototype.JSC$13017_buildRequest=function(M,z,J){z.request&&(M.channelId=z.request.channelId);var R;if(J==null?0:(R=J.uploadDefaults)==null?0:R.emojiReactionSet)M.uploadDefaultsRequest||(M.uploadDefaultsRequest={}),M.uploadDefaultsRequest.emojiReactionSet=J.uploadDefaults.emojiReactionSet};var SD=function(){};
_.w(SD,eE);SD.prototype.getApiPaths=function(){return YSt};
SD.prototype.getExtension=function(M){return _.G(M,zvp)};
SD.prototype.JSC$13017_buildRequest=function(M,z,J){z.externalChannelId&&(M.externalChannelId=z.externalChannelId);z.channelHandleEntityKey&&(M.channelHandleEntityKey=z.channelHandleEntityKey);z.handleEditSource&&(M.handleEditSource=z.handleEditSource);J.handle?M.handle=J.handle:J.name&&(M.name=J.name)};var Zt=function(){};
_.w(Zt,eE);Zt.prototype.getApiPaths=function(){return Plt};
Zt.prototype.getExtension=function(M){return _.G(M,aB$)};
Zt.prototype.JSC$13017_buildRequest=function(M,z){z.actions?M.actions=z.actions:z.action&&(M.actions=[z.action])};var ka=function(){};
_.w(ka,eE);ka.prototype.getApiPaths=function(){return SP2};
ka.prototype.getExtension=function(M){return _.G(M,_.uP)};
ka.prototype.JSC$13017_buildRequest=function(M,z){z.token&&(M.continuation=z.token)};var BZ=function(){};
_.w(BZ,eE);BZ.prototype.getApiPaths=function(){return ypt};
BZ.prototype.getExtension=function(M){return _.G(M,_.uP)};
BZ.prototype.JSC$13017_buildRequest=function(M,z){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";z.token&&(M.fetchCommentsParams={continuation:z.token})};var OX=function(){};
_.w(OX,eE);OX.prototype.getApiPaths=function(){return TbB};
OX.prototype.getExtension=function(M){return _.G(M,WRJ)};
OX.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.createReplyParams&&(M.createReplyParams=z.createReplyParams);z.commentText&&(M.commentText=_.CD(z.commentText));J.comment_text&&(M.commentText=J.comment_text);J.image_blob_id&&(M.imageAttachment={encryptedBlobId:J.image_blob_id});J.botguard_response&&(M.botguardResponse=J.botguard_response)};
_.rX.Object.defineProperties(OX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Tf=function(){};
_.w(Tf,eE);Tf.prototype.getApiPaths=function(){return I2u};
Tf.prototype.getExtension=function(M){return _.G(M,_.q4g)};
Tf.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.createCommentParams&&(M.createCommentParams=z.createCommentParams);z.commentText&&(M.commentText=_.CD(z.commentText));z.videoPositionMention&&(M.videoPositionMention=z.videoPositionMention);z.sources&&(M.sources=z.sources);J.comment_text&&(M.commentText=J.comment_text);J.attached_video_id?M.videoAttachment={videoId:J.attached_video_id}:J.poll_options?M.pollAttachment={choices:J.poll_options}:J.image_blob_id?M.imageAttachment=
{encryptedBlobId:J.image_blob_id}:J.shared_post_id&&(M.sharedPostAttachment={postId:J.shared_post_id});J.access_restrictions&&typeof J.access_restrictions==="number"&&(z=J.access_restrictions,M.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});J.botguard_response&&(M.botguardResponse=J.botguard_response)};
_.rX.Object.defineProperties(Tf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ip=function(){};
_.w(Ip,eE);Ip.prototype.getApiPaths=function(){return wHk};
Ip.prototype.getExtension=function(M){return _.G(M,EBk)};
Ip.prototype.JSC$13017_buildRequest=function(M,z,J){z.commentText&&(M.replyText=_.CD(z.commentText));J.comment_text&&(M.replyText=J.comment_text);M.updateReplyParams=z.updateReplyParams};
_.rX.Object.defineProperties(Ip.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var op=function(){};
_.w(op,eE);op.prototype.getApiPaths=function(){return xmp};
op.prototype.getExtension=function(M){return _.G(M,VOg)};
op.prototype.JSC$13017_buildRequest=function(M,z,J){z.commentText&&(M.commentText=_.CD(z.commentText));J.comment_text&&(M.commentText=J.comment_text);M.updateCommentParams=z.updateCommentParams};
_.rX.Object.defineProperties(op.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xt=function(){};
_.w(Xt,eE);Xt.prototype.getApiPaths=function(){return t0$};
Xt.prototype.getExtension=function(M){return _.G(M,tBg)};
Xt.prototype.JSC$13017_buildRequest=function(M,z){z.settings&&(M.settings=z.settings)};var lr=function(){};
_.w(lr,eE);lr.prototype.getApiPaths=function(){return FGJ};
lr.prototype.getExtension=function(M){return _.G(M,JQV)};
lr.prototype.JSC$13017_buildRequest=function(M,z){z.channelCreationToken&&(M.channelCreationToken=z.channelCreationToken);z.source&&(M.source=z.source)};var eD=function(){};
_.w(eD,eE);eD.prototype.getApiPaths=function(){return Oka};
eD.prototype.getExtension=function(M){return _.G(M,Nst)};
eD.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;if(J.name&&(J.given_name||J.family_name))M=new _.xN("channel creation cannot set both GAIA and YouTube names",z),_.nc(M);else{if(z.zeroStepChannelCreationParams){if(!J.comment_text){M=new _.xN("zero_step_create_comment_params but no zero_step_texts",z);_.nc(M);return}M.zeroStepChannelCreationParams=z.zeroStepChannelCreationParams;M.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
J.comment_text,J.botguard_response&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=J.botguard_response))}M.channelCreationToken=z.channelCreationToken;J.given_name&&(M.givenName=J.given_name);J.family_name&&(M.familyName=J.family_name);z.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(M.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(J.name||J.handle||J.avatar_url||J.encryptedBlobId||J.isNameChanged!==void 0||J.isHandleChanged!==void 0||J.isDefaultProfilePhoto!==
void 0||J.obakeImageSource)M.overrideChannelCreationParams={},J.name&&(M.overrideChannelCreationParams.name=J.name),J.handle&&(M.overrideChannelCreationParams.handle=J.handle),J.avatar_url&&(M.overrideChannelCreationParams.avatarUrl=J.avatar_url),J.encryptedBlobId&&(M.overrideChannelCreationParams.blobEncryptionId=J.encryptedBlobId),J.enableIdentityForAllChannelCreationDialog&&(J.encryptedBlobId?M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
J.isDefaultProfilePhoto!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=J.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),J.isNameChanged!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationNameTag=J.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),J.isHandleChanged!==
void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=J.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),J.obakeImageSource&&(M.overrideChannelCreationParams.obakeImageSourceType=J.obakeImageSource))}};var Qb=function(){};
_.w(Qb,eE);Qb.prototype.getApiPaths=function(M){return(M=this.getExtension(M))&&M.status==="DISLIKE"?v1$:M&&M.status==="INDIFFERENT"?N0$:f2V};
Qb.prototype.getExtension=function(M){return _.G(M,_.uf)};
Qb.prototype.JSC$13017_buildRequest=function(M,z){z.target&&(M.target=z.target);if(z=this.getParams(z))M.params=z};
Qb.prototype.getParams=function(M){switch(M==null?void 0:M.status){case "DISLIKE":return M.dislikeParams;case "INDIFFERENT":return M.removeLikeParams;default:return M==null?void 0:M.likeParams}};var UX=function(){};
_.w(UX,eE);UX.prototype.getApiPaths=function(){return XH$};
UX.prototype.getExtension=function(M){return _.G(M,bMg)};
UX.prototype.JSC$13017_buildRequest=function(M,z){z.settingItemId&&(M.settingItemId=z.settingItemId);z.stringValue!=null&&z.stringValue!==void 0?M.newValue={stringValue:z.stringValue}:z.intValue?M.newValue={intValue:z.intValue}:z.boolValue!==null&&z.boolValue!==void 0?M.newValue={boolValue:z.boolValue}:(M=new _.xN("Unknown value type for SetSettingEndpoint.",z),_.nc(M))};var vZ=function(){};
_.w(vZ,eE);vZ.prototype.getApiPaths=function(){return eup};
vZ.prototype.getExtension=function(M){return _.G(M,X2g)||void 0};
vZ.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.channelIds&&(M.channelIds=z.channelIds);z.siloName&&(M.siloName=z.siloName);z.params&&(M.params=z.params);J.botguardResponse&&(M.botguardResponse=J.botguardResponse);J.feature&&(M.clientFeature=J.feature)};
_.rX.Object.defineProperties(vZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Gf=function(){};
_.w(Gf,eE);Gf.prototype.getApiPaths=function(){return UmJ};
Gf.prototype.getExtension=function(M){return _.G(M,rV$)||void 0};
Gf.prototype.JSC$13017_buildRequest=function(M,z){z.channelIds&&(M.channelIds=z.channelIds);z.siloName&&(M.siloName=z.siloName);z.params&&(M.params=z.params)};
_.rX.Object.defineProperties(Gf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wC=function(M){this.shareClientParamsProvider=M};
_.w(wC,eE);wC.prototype.getApiPaths=function(){return LPY};
wC.prototype.getExtension=function(M){return _.G(M,FTv)||_.G(M,_.Yvv)||_.G(M,pwk)};
wC.prototype.JSC$13017_buildRequest=function(M,z){z.serializedShareEntity&&(M.serializedSharedEntity=z.serializedShareEntity);if(z.clientParamIdentifier){var J;if((J=this.shareClientParamsProvider)==null?0:J.clientParams.has(z.clientParamIdentifier)){J=this.shareClientParamsProvider;z=z.clientParamIdentifier;var R=J.clientParams.get(z);R&&J.clientParams.delete(z);M.clientParams=R}}};
wC[DW]=[R9v];var xa=function(){};
_.w(xa,eE);xa.prototype.getApiPaths=function(){return MCt};
xa.prototype.getExtension=function(M){return _.G(M,geQ)};
xa.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var tz=function(){};
_.w(tz,eE);tz.prototype.getApiPaths=function(){return Gsa};
tz.prototype.getExtension=function(M){return _.G(M,FvJ)};
tz.prototype.JSC$13017_buildRequest=function(M,z){z.dismissal&&(M.items=[z.dismissal])};
_.rX.Object.defineProperties(tz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jD=function(){};
_.w(jD,eE);jD.prototype.getApiPaths=function(){return VCp};
jD.prototype.getExtension=function(M){return _.G(M,_.Hf)||void 0};
jD.prototype.JSC$13017_buildRequest=function(M,z,J){M.feedbackTokens=[];z.feedbackToken&&M.feedbackTokens.push(z.feedbackToken);if(z=z.cpn||J.cpn)M.feedbackContext={cpn:z};M.isFeedbackTokenUnencrypted=!!J.is_feedback_token_unencrypted;M.shouldMerge=!1;J.extra_feedback_tokens&&(M.shouldMerge=!0,M.feedbackTokens=M.feedbackTokens.concat(J.extra_feedback_tokens))};
_.rX.Object.defineProperties(jD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pA=function(){};
_.w(pA,eE);pA.prototype.getApiPaths=function(){return VCp};
pA.prototype.getExtension=function(M){return _.G(M,_.on)};
pA.prototype.JSC$13017_buildRequest=function(M,z,J){J.feedback_tokens&&(M.feedbackTokens=J.feedback_tokens,M.shouldMerge=!0)};
_.rX.Object.defineProperties(pA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ft=function(){};
_.w(Ft,eE);Ft.prototype.getApiPaths=function(){return VCp};
Ft.prototype.getExtension=function(M){return _.G(M,AI0)};
Ft.prototype.JSC$13017_buildRequest=function(M,z){z.undoToken&&(M.feedbackTokens=[z.undoToken]);z.isUndoTokenUnencrypted&&(M.isFeedbackTokenUnencrypted=z.isUndoTokenUnencrypted)};
_.rX.Object.defineProperties(Ft.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ya=function(){};
_.w(Ya,eE);Ya.prototype.getApiPaths=function(){return mma};
Ya.prototype.getExtension=function(M){return _.G(M,tHQ)};
Ya.prototype.JSC$13017_buildRequest=function(M,z){z.nextEndpoint&&_.G(z.nextEndpoint,_.af)?M.nextEndpoint={urlEndpoint:_.G(z.nextEndpoint,_.af)}:z.nextEndpoint&&_.G(z.nextEndpoint,_.Au)&&(M.nextEndpoint={watchEndpoint:_.G(z.nextEndpoint,_.Au)});z.setRacy&&(M.setRacy=z.setRacy);z.setControvercy&&(M.setControvercy=z.setControvercy)};var mZ=function(M){this.JSC$17770_storeWithEntities=M};
_.w(mZ,eE);mZ.prototype.getApiPaths=function(){return x4V};
mZ.prototype.getExtension=function(M){return _.G(M,Ab$)};
mZ.prototype.JSC$13017_buildRequest=function(M,z){z.flowId&&(M.flowId=z.flowId);z.targetId&&(M.targetId=z.targetId);z.continuation&&(M.continuation=z.continuation);var J=z.flowStateEntityKey;if(z.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&J&&this.JSC$17770_storeWithEntities){var R;if(z=(R=this.JSC$17770_storeWithEntities.getState())==null?void 0:R.entities)if(R=_.kf(J).entityType,R=_.Is(z,R,J))M.flowState=R,M.flowStateEntityKey=J}};
_.rX.Object.defineProperties(mZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
mZ[DW]=[Pf];var Ma5=function(){};
_.w(Ma5,eE);_.P=Ma5.prototype;_.P.getApiPaths=function(){return a2p};
_.P.JSC$13024_getStoreKey=function(){return _.Lu("guide")};
_.P.getRequestConfig=function(){var M=this.JSC$13024_getStoreKey(),z;M&&(z={storeStrategy:{storeKey:M}});return z};
_.P.isNavigationCommand=function(){return!0};
_.P.getExtension=function(M){return _.G(M,_.on)};
_.P.JSC$13017_buildRequest=function(M){M.fetchLiveState=!0};var gC=function(){};
_.w(gC,eE);gC.prototype.getApiPaths=function(){return D4S};
gC.prototype.getExtension=function(M){return _.G(M,KRk)};
gC.prototype.JSC$13017_buildRequest=function(){};var sX=function(){};
_.w(sX,eE);sX.prototype.getApiPaths=function(){return Nbt};
sX.prototype.getExtension=function(M){return _.G(M,$ju)};
sX.prototype.JSC$13017_buildRequest=function(){};var nA=function(){};
_.w(nA,eE);nA.prototype.getApiPaths=function(){return rs$};
nA.prototype.getExtension=function(M){return _.G(M,_.uP)};
nA.prototype.JSC$13017_buildRequest=function(M,z){z.token&&(M.continuation=z.token);var J,R;M==null||(J=M.context)==null||(R=J.user)==null||delete R.onBehalfOfUser};
nA.prototype.getRequestConfig=function(M){var z={},J;if(((J=this.getExtension(M))==null?void 0:J.sessionIndex)!==void 0){var R;z={authStrategy:{sessionIndex:(R=this.getExtension(M))==null?void 0:R.sessionIndex}}}return z};var hz=function(){};
_.w(hz,eE);hz.prototype.JSC$13017_getRequest=function(M){var z=this.getExtension(M),J=M="";if(z==null?0:z.popup)M="true";if(z==null?0:z.disableSignout)J="true";z={};return{input:"/getAccountSwitcherEndpoint",requestShell:fu("/getAccountSwitcherEndpoint","GET",(z["X-YouTube-Delegation-Context"]=_.HW("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),z["X-YouTube-Account-Switcher-Popup"]=M,z["X-YouTube-Account-Switcher-Disable-Signout"]=J,z)),innerTubeRequest:{}}};
hz.prototype.getApiPaths=function(){return[]};
hz.prototype.getExtension=function(M){return _.G(M,_.pkn)};
hz.prototype.JSC$13017_buildRequest=function(){};var yb=function(){};
_.w(yb,eE);yb.prototype.JSC$13017_getRequest=function(M){var z="/cross_account_channel_transfer";(M=this.getExtension(M))&&(z=Qnn(z,{target_session:M.targetSessionIndex,source_rapt:M.sourceRapt,rapt:M.targetRapt}));return{input:z,requestShell:fu(z,"GET"),innerTubeRequest:{}}};
yb.prototype.getApiPaths=function(){return[]};
yb.prototype.getExtension=function(M){return _.G(M,GEp)};
yb.prototype.JSC$13017_buildRequest=function(){};var HZ=function(){};
_.w(HZ,eE);HZ.prototype.getApiPaths=function(){return tCQ};
HZ.prototype.isNavigationCommand=function(){return!0};
HZ.prototype.getExtension=function(M){return _.G(M,_.on)};
HZ.prototype.JSC$13017_buildRequest=function(M){var z=_.vv().get("gsml","");z&&(M.safetyModeLockerObfuscatedGaiaId=z);M.userInterfaceTheme=_.gB(!0);_.sA()?M.deviceTheme="DEVICE_THEME_SELECTED":_.wH3()?M.deviceTheme="DEVICE_THEME_SUPPORTED":M.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var cZ=function(){};
_.w(cZ,eE);cZ.prototype.getApiPaths=function(){return rs$};
cZ.prototype.getExtension=function(M){return _.G(M,wKV)};
cZ.prototype.JSC$13017_buildRequest=function(M,z){if(z&&z.requestType&&(M.requestType=z.requestType,z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var J=z.nextUrl;J&&(_.vQ3(J)||r3(J))&&(M.nextNavendpoint={urlEndpoint:{url:J}})}z&&z.channelSwitcherQuery&&(M.channelSwitcherQuery=z.channelSwitcherQuery);z&&z.triggerChannelCreation&&(M.triggerChannelCreation=z.triggerChannelCreation);var R;if(z==null?0:(R=z.contentOwnerConfig)==
null?0:R.externalContentOwnerId)M.contentOwnerConfig=z.contentOwnerConfig;M.callCircumstance=z&&z.requestType&&z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var D,N;z=M==null?void 0:(D=M.context)==null?void 0:(N=D.user)==null?void 0:N.onBehalfOfUser;if(z!==void 0){M.obfuscatedSelectedGaiaId=z;var Z,B;M==null||(Z=M.context)==null||(B=Z.user)==null||delete B.onBehalfOfUser}var O,X;if(D=M==null?void 0:(O=M.context)==null?void 0:(X=O.user)==null?
void 0:X.serializedDelegationContext)M.selectedSerializedDelegationContext=D};var dC=function(){};
_.w(dC,eE);dC.prototype.getApiPaths=function(){return zjV};
dC.prototype.getExtension=function(M){return _.G(M,m02)};
dC.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var KA=function(){};
_.w(KA,eE);KA.prototype.getApiPaths=function(){return BbQ};
KA.prototype.getExtension=function(M){return _.G(M,_.ayu)};
KA.prototype.JSC$13017_buildRequest=function(M,z){if(z=z.createBroadcastRequest)M.useMasks=z.useMasks,M.broadcastType=z.broadcastType,M.broadcastSource=z.broadcastSource,M.broadcastMetadata=z.broadcastMetadata,M.broadcastMetadataMask=z.broadcastMetadataMask,M.videoMetadata=z.videoMetadata,M.videoMetadataMask=z.videoMetadataMask,M.liveChatSettingsUpdate=z.liveChatSettingsUpdate,M.liveChatSettingsUpdateMask=z.liveChatSettingsUpdateMask,M.cloneVideoId=z.cloneVideoId,M.cloneWithOverrides=z.cloneWithOverrides,
M.targetEntity=z.targetEntity,M.scheduledRedirectMetadata=z.scheduledRedirectMetadata};var $a=function(){};
_.w($a,eE);$a.prototype.getApiPaths=function(){return o1V};
$a.prototype.getExtension=function(M){return _.G(M,c$v)};
$a.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.params&&(M.params=z.params);J.questionText&&(M.questionText=J.questionText);J.optionText&&J.optionText.length>0&&(M.optionText=J.optionText)};var ur=function(){};
_.w(ur,eE);ur.prototype.getApiPaths=function(){return ej$};
ur.prototype.getExtension=function(M){return _.G(M,y$V)};
ur.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var qU=function(){};
_.w(qU,eE);qU.prototype.getApiPaths=function(){return m4u};
qU.prototype.getExtension=function(M){return _.G(M,gDJ)};
qU.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var WZ=function(){};
_.w(WZ,eE);WZ.prototype.getApiPaths=function(){return sLt};
WZ.prototype.getExtension=function(M){return _.G(M,s_p)};
WZ.prototype.JSC$13017_buildRequest=function(M,z,J){z.params&&(M.params=z.params);z.continuation&&(M.continuation=z.continuation);J.currentPlayerState&&J.currentPlayerState.playerOffsetMs&&(M.currentPlayerState={playerOffsetMs:J.currentPlayerState.playerOffsetMs.toString()})};var ap=function(){};
_.w(ap,eE);ap.prototype.getApiPaths=function(){return n1u};
ap.prototype.getExtension=function(M){return _.G(M,mh$)};
ap.prototype.JSC$13017_buildRequest=function(M,z,J){z.params&&(M.params=z.params);J.continuation&&(M.continuation=J.continuation);"hidden"in J&&(M.webClientInfo={isDocumentHidden:J.hidden});J.isInvalidationTimeoutRequest&&(M.isInvalidationTimeoutRequest=J.isInvalidationTimeoutRequest);J.invalidationPayload&&(z=YqV(_.Ae(MC(J.invalidationPayload))),M.invalidationPayloadLastPublishAtUsec=H9(z,2));J.reloadActionPanel&&(M.reloadActionPanel=J.reloadActionPanel);J.fullReload&&(M.fullReload=J.fullReload);
J.currentPlayerState&&(M.currentPlayerState=J.currentPlayerState)};var Vb=function(){};
_.w(Vb,eE);Vb.prototype.getApiPaths=function(){return LGV};
Vb.prototype.getExtension=function(M){return _.G(M,HCp)};
Vb.prototype.JSC$13017_buildRequest=function(M,z){M.params=z.params};var EX=function(){};
_.w(EX,eE);EX.prototype.getApiPaths=function(){return g1V};
EX.prototype.getExtension=function(M){return _.G(M,E7k)};
EX.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var fA=function(){};
_.w(fA,eE);fA.prototype.getApiPaths=function(){return hjv};
fA.prototype.getExtension=function(M){return _.G(M,fpS)};
fA.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var LA=function(){};
_.w(LA,eE);LA.prototype.getApiPaths=function(){return ApV};
LA.prototype.getExtension=function(M){return _.G(M,dhu)};
LA.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var Az=function(){};
_.w(Az,eE);Az.prototype.getApiPaths=function(){return ClV};
Az.prototype.getExtension=function(M){return _.G(M,K8$)};
Az.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var ir=function(){};
_.w(ir,eE);ir.prototype.getApiPaths=function(){return PA2};
ir.prototype.getExtension=function(M){return _.G(M,n7$)};
ir.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var DT=function(){};
_.w(DT,eE);DT.prototype.getApiPaths=function(){return IXV};
DT.prototype.getExtension=function(M){return _.G(M,_.$hQ)};
DT.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.params&&(M.params=z.params);J.client_message_id&&(M.clientMessageId=J.client_message_id);J.recaptcha_token&&(M.recaptchaToken=J.recaptcha_token);J.rich_message&&J.rich_message.text_segments?(z=J.rich_message.text_segments.map(function(R){var D={};R.text&&(D.text=R.text);R.emoji_id&&(D.emojiId=R.emoji_id);return D}),M.richMessage={textSegments:z}):J.message&&(M.message=J.message);
J.currentPlayerState&&(M.currentPlayerState=J.currentPlayerState)};var Nw=function(){};
_.w(Nw,eE);Nw.prototype.getApiPaths=function(){return okp};
Nw.prototype.getExtension=function(M){return _.G(M,uMu)};
Nw.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var Pk=function(){};
_.w(Pk,eE);Pk.prototype.getApiPaths=function(){return Qju};
Pk.prototype.getExtension=function(M){return _.G(M,W8g)};
Pk.prototype.JSC$13017_buildRequest=function(M,z,J){z.isUserInitiated&&(M.isUserInitiated=z.isUserInitiated);z.initiationSource&&(M.initiationSource=z.initiationSource);J.locationInfo&&(M.context.client.locationInfo=J.locationInfo)};var S$=function(){};
_.w(S$,eE);S$.prototype.getApiPaths=function(){return iku};
S$.prototype.getExtension=function(M){return _.G(M,VRV)};
S$.prototype.JSC$13017_buildRequest=function(M,z,J){z.metadataUpdateRequest&&(z=z.metadataUpdateRequest,M.encryptedVideoId=z.encryptedVideoId,z.liveChat&&(z=z.liveChat,M.liveChat||(M.liveChat={}),z.performAsExternalChannelId&&(M.liveChat.performAsExternalChannelId=z.performAsExternalChannelId),z.source&&(M.liveChat.source=z.source)));var R;if(J==null?0:(R=J.liveChat)==null?0:R.liveChatSettings)M.liveChat||(M.liveChat={}),J=J.liveChat.liveChatSettings,M.liveChat.newLiveChatSettings=J,M.liveChat.newLiveChatSettingsMask||
(M.liveChat.newLiveChatSettingsMask={}),J.emojiReactionSet&&(M.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ZT=function(){};
_.w(ZT,eE);ZT.prototype.getApiPaths=function(){return FSp};
ZT.prototype.getExtension=function(M){return _.G(M,_.Mx$)};
ZT.prototype.JSC$13017_buildRequest=function(M,z,J){J.continuation?M.continuation=J.continuation:z.videoId&&(M.videoId=z.videoId);J.clientParams&&(M.clientParams=J.clientParams)};var kd=function(){};
_.w(kd,eE);kd.prototype.getApiPaths=function(){return ypt};
kd.prototype.getExtension=function(M){return _.G(M,_.$B)};
kd.prototype.JSC$13017_buildRequest=function(M,z){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";M.fetchCommentsParams={};z.videoId&&(M.fetchCommentsParams.encryptedVideoId=z.videoId);z.postId&&(M.fetchCommentsParams.postId=z.postId);z.externalChannelId&&(M.fetchCommentsParams.externalChannelId=z.externalChannelId);z.linkedCommentId&&(M.fetchCommentsParams.linkedCommentId=z.linkedCommentId);(0,_.gu.isEmpty)(M.fetchCommentsParams)&&delete M.fetchCommentsParams};var Bk=function(){};
_.w(Bk,eE);Bk.prototype.getApiPaths=function(){return Cr};
Bk.prototype.JSC$13017_buildRequest=function(M){M.browseId="FEnotifications_inbox"};
Bk.prototype.getExtension=function(M){return _.G(M,_.on)};var Ou=function(){};
_.w(Ou,eE);Ou.prototype.getApiPaths=function(){return ypt};
Ou.prototype.JSC$13017_buildRequest=function(M,z){z.signal==="GET_NOTIFICATIONS_MENU"&&(M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");z.ctoken&&(M.ctoken=z.ctoken)};
var z2w=function(){};
_.w(z2w,Ou);z2w.prototype.getExtension=function(M){return _.G(M,_.on)};
var JSl=function(){};
_.w(JSl,Ou);JSl.prototype.getExtension=function(M){return _.G(M,G5Q)};var TI=function(){};
_.w(TI,eE);TI.prototype.getApiPaths=function(){return umv};
TI.prototype.getExtension=function(M){return _.G(M,_.on)};
TI.prototype.JSC$13017_buildRequest=function(){};var IG=function(){};
_.w(IG,eE);IG.prototype.getApiPaths=function(){return bkS};
IG.prototype.getExtension=function(M){return _.G(M,AVt)||void 0};
IG.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params);z.secondaryParams&&(M.secondaryParams=z.secondaryParams)};var oG=function(){};
_.w(oG,eE);oG.prototype.getApiPaths=function(){return rpv};
oG.prototype.getExtension=function(M){return _.G(M,g7J)};
oG.prototype.JSC$13017_buildRequest=function(M,z){z.undo&&(M.undo=z.undo);z.serializedOptOut&&(M.serializedOptOut=z.serializedOptOut);z.serializedRecordInteractionsRequest&&(M.serializedRecordInteractionsRequest=z.serializedRecordInteractionsRequest)};var Xi=function(){};
_.w(Xi,eE);Xi.prototype.getApiPaths=function(){return JX$};
Xi.prototype.getExtension=function(M){return _.G(M,swB)};
Xi.prototype.JSC$13017_buildRequest=function(M,z){z.serializedInteractionsRequest&&(M.serializedRecordNotificationInteractionsRequest=z.serializedInteractionsRequest)};var lR=function(){};
_.w(lR,eE);lR.prototype.getApiPaths=function(){return AlY};
lR.prototype.getExtension=function(M){return _.G(M,y0n)};
lR.prototype.JSC$13017_buildRequest=function(M,z,J){z=z===void 0?{}:z;J=J===void 0?{}:J;z.videoId?M.videoId=z.videoId:z.playlistId&&(M.playlistId=z.playlistId);var R,D=(R=z.offlineWebClientEligibility)!=null?R:J.offlineWebClientEligibility;D&&(M.offlineWebClientEligibility=D);var N;if(R=(N=z.preferredFormatType)!=null?N:J.preferredFormatType)M.preferredFormatType=R;var Z;if(N=(Z=z.lastOfflineQualitySettingsSavedMs)!=null?Z:J.lastOfflineQualitySettingsSavedMs)M.lastOfflineQualitySettingsSavedMs=N;
z.params&&(M.params=z.params)};var e$=function(){};
_.w(e$,eE);e$.prototype.getApiPaths=function(){return RV};
e$.prototype.getExtension=function(M){return _.G(M,_.uP)};
e$.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.token&&(M.continuation=z.token);J.formData&&(M.formData=J.formData)};var Qj=function(){};
_.w(Qj,eE);Qj.prototype.getApiPaths=function(){return RV};
Qj.prototype.getExtension=function(M){return _.G(M,K7B)};
Qj.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;M.continuation=J.continuation};var Uu=function(){};
_.w(Uu,eE);Uu.prototype.getApiPaths=function(){return RV};
Uu.prototype.getExtension=function(M){return _.G(M,_.yq)};
Uu.prototype.JSC$13017_buildRequest=function(M,z){var J,R=z.panelIdentifier||((J=z.identifier)==null?void 0:J.tag);R&&(M.panelId=R);var D;if((D=z.globalConfiguration)==null?0:D.params){var N;M.params=(N=z.globalConfiguration)==null?void 0:N.params}};
_.rX.Object.defineProperties(Uu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vk=function(){};
_.w(vk,eE);vk.prototype.getApiPaths=function(){return RV};
vk.prototype.getExtension=function(M){return _.G(M,QVQ)};
vk.prototype.JSC$13017_buildRequest=function(M,z){z.panelLoadingStrategy&&f$R(M,z.panelLoadingStrategy)};var GI=function(){};
_.w(GI,eE);GI.prototype.getApiPaths=function(){return RV};
GI.prototype.getExtension=function(M){return _.G(M,WTQ)};
GI.prototype.JSC$13017_buildRequest=function(M,z){z.loadingStrategy&&f$R(M,z.loadingStrategy)};var w6=function(){};
_.w(w6,eE);w6.prototype.getApiPaths=function(){return RV};
w6.prototype.getExtension=function(M){return _.G(M,_.Fa)};
w6.prototype.JSC$13017_buildRequest=function(M,z){z.panelLoadingStrategy&&f$R(M,z.panelLoadingStrategy)};var xd=function(){};
_.w(xd,eE);xd.prototype.getApiPaths=function(){return RV};
xd.prototype.getExtension=function(M){return _.G(M,apJ)};
xd.prototype.JSC$13017_buildRequest=function(M,z){var J,R=(J=z.contentSourcePanelIdentifier)==null?void 0:J.tag;R&&(M.panelId=R);var D;if((D=z.globalConfiguration)==null?0:D.params){var N;M.params=(N=z.globalConfiguration)==null?void 0:N.params}};var t0=function(){};
_.w(t0,eE);t0.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
t0.prototype.getExtension=function(M){return _.G(M,VcV)};
t0.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var j$=function(){};
_.w(j$,eE);j$.prototype.getApiPaths=function(){return pHg};
j$.prototype.getExtension=function(M){return _.G(M,LTt)};
j$.prototype.JSC$13017_buildRequest=function(M,z){z.externalChannelId&&(M.externalChannelId=z.externalChannelId);z.superChatAction&&(M.superChatAction=z.superChatAction);z.superStickersAction&&(M.superStickersAction=z.superStickersAction)};var p1=function(){};
_.w(p1,eE);p1.prototype.getApiPaths=function(){return jLV};
p1.prototype.getExtension=function(M){return _.G(M,djg)||_.G(M,c08)};
p1.prototype.JSC$13017_buildRequest=function(M,z){z.videoIds?M.videoIds=z.videoIds:z.videoId&&(M.videoIds=[z.videoId]);z.playlistId&&(M.playlistId=z.playlistId);z.params&&(M.params=z.params);M.excludeWatchLater=!1};var Fi=function(){};
_.w(Fi,eE);Fi.prototype.getApiPaths=function(){return XgQ};
Fi.prototype.getExtension=function(M){return _.G(M,_.fM)};
Fi.prototype.JSC$13017_buildRequest=function(M,z,J){J.create_playlist_title?M.title=J.create_playlist_title:z.title&&(M.title=z.title);if(J.create_playlist_privacy_status&&typeof J.create_playlist_privacy_status==="number"){a:{var R=J.create_playlist_privacy_status;if(R!==0){if(R===1){R="PUBLIC";break a}if(R===2){R="UNLISTED";break a}}R="PRIVATE"}M.privacyStatus=R}else z.privacyStatus&&(M.privacyStatus=z.privacyStatus);J.create_playlist_description&&(M.description=J.create_playlist_description);z.videoIds&&
(M.videoIds=z.videoIds);z.params&&(M.params=z.params);z.sourcePlaylistId&&(M.sourcePlaylistId=z.sourcePlaylistId)};var Yd=function(){};
_.w(Yd,eE);Yd.prototype.getApiPaths=function(){return QLS};
Yd.prototype.getExtension=function(M){return _.G(M,fBa)};
Yd.prototype.JSC$13017_buildRequest=function(M,z){M.playlistId=z.playlistId};var mM=function(){};
_.w(mM,eE);mM.prototype.getApiPaths=function(){return Hkk};
mM.prototype.getExtension=function(M){return _.G(M,tcS)};
mM.prototype.JSC$13017_buildRequest=function(M,z){z.playlistId&&(M.playlistId=z.playlistId);z.params&&(M.params=z.params)};var g6=function(){};
_.w(g6,eE);g6.prototype.getApiPaths=function(){return zuJ};
g6.prototype.getExtension=function(M){return _.G(M,_.uU)||void 0};
g6.prototype.JSC$13017_buildRequest=function(M,z){z.actions&&(M.actions=z.actions);z.params&&(M.params=z.params);z.playlistId&&(M.playlistId=z.playlistId)};var su=function(){};
_.w(su,eE);_.P=su.prototype;_.P.getApiPaths=function(){return Ruv};
_.P.getExtension=function(M){return _.G(M,_.je)};
_.P.JSC$13017_buildRequest=function(M,z){z.videoId&&(M.playerRequest={videoId:z.videoId},z.playerParams&&(M.playerRequest.params=z.playerParams),z.racyCheckOk&&(M.playerRequest.racyCheckOk=!!z.racyCheckOk),z.contentCheckOk&&(M.playerRequest.contentCheckOk=!!z.contentCheckOk));z.params&&(M.params=z.params);z.inputType&&(M.inputType=z.inputType);M.disablePlayerResponse=!0};
_.P.getRequestConfig=function(M){var z;(M=this.JSC$13024_getStoreKey(M))&&(z={storeStrategy:{storeKey:M}});_.U("web_log_reels_ticks")&&(z=z||{},z.requestTick="r_wrs",z.responseTick="r_wrr");return z};
_.P.JSC$13024_getStoreKey=function(M){M=this.getExtension(M);if(_.U("shorts_controller_retrieve_seedless_sequence_v2")){if((M==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Lu("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.U("web_shorts_prefetch_service_enabled")&&M!=null&&M.videoId){var z={videoId:M.videoId};M.params&&(z.params=M.params);return _.Lu("reel_item_watch",z)}};var n1=function(){};
_.w(n1,eE);_.P=n1.prototype;_.P.getApiPaths=function(){return Dmk};
_.P.getExtension=function(M){return _.G(M,_.je)};
_.P.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;M.sequenceParams=z.sequenceParams;var R;((R=J)==null?0:R.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:J.contentPlaybackContext})};
_.P.JSC$13024_getStoreKey=function(M){if(_.U("web_enable_delay_shorts_sequence_call")||_.U("shorts_controller_retrieve_seedless_sequence_v2"))if(M=this.getExtension(M),M==null?0:M.sequenceParams)return _.Lu("reel_watch_sequence",{sequenceParams:M.sequenceParams})};
_.P.getRequestConfig=function(M){M=this.JSC$13024_getStoreKey(M);var z;M&&(z={storeStrategy:{storeKey:M}});_.U("reel_watch_sequence_request_log_ticks")&&(z=z||{},z.requestTick="r_wsrs",z.responseTick="r_wsrr",z.processorTick="r_wsrp");return z};
var h0=function(){};
_.w(h0,eE);h0.prototype.getApiPaths=function(){return Dmk};
h0.prototype.getExtension=function(M){return _.G(M,_.uP)};
h0.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.token&&(M.continuation=z.token);var R;((R=J)==null?0:R.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:J.contentPlaybackContext})};
h0.prototype.getRequestConfig=function(M){M=this.JSC$13024_getStoreKey(M);var z;M&&(z={storeStrategy:{storeKey:M}});_.U("reel_watch_sequence_request_log_ticks")&&(z=z||{},z.requestTick="r_wsrs",z.responseTick="r_wsrr",z.processorTick="r_wsrp");return z};var yj=function(){};
_.w(yj,eE);yj.prototype.getApiPaths=function(){return wg2};
yj.prototype.getExtension=function(M){return _.G(M,_.Lv2)};
yj.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.flagAction&&(M.action=z.flagAction);z.flagRequestType&&(M.flagRequestType=z.flagRequestType);z.additionalDetailCheckboxChecked&&(M.additionalDetailCheckboxChecked=z.additionalDetailCheckboxChecked);z.legalCheckboxChecked&&(M.legalCheckboxChecked=z.legalCheckboxChecked);z={};J.flag_issue_type!==void 0&&(z.issue=J.flag_issue_type);J.flag_affiliation!==void 0&&(z.affiliation=J.flag_affiliation);J.flag_full_name&&(z.fullName=J.flag_full_name);
Object.keys(z).length&&(M.legalReportDetails=z);if(J.flag_description||J.text)M.userComments=J.flag_description||J.text;z={};J.minutes!==void 0&&J.seconds!==void 0&&(z.minutes=J.minutes,z.seconds=J.seconds);J.vss_id&&(z.vssId=J.vss_id);Object.keys(z).length&&(M.videoReportDetails=z);z={};J.video_ids&&(z.videoIds=J.video_ids);J.impersonated_channel_url&&(z.impersonatedChannelUrl=J.impersonated_channel_url);Object.keys(z).length&&(M.channelAbuseReportDetails=z)};
_.rX.Object.defineProperties(yj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hk=function(){};
_.w(Hk,eE);Hk.prototype.getApiPaths=function(){return YP2};
Hk.prototype.getExtension=function(M){return _.G(M,UhV)};
Hk.prototype.JSC$13017_buildRequest=function(M,z){z.blockedForKidsContent&&(M.blockedForKidsContent=z.blockedForKidsContent)};var ck=function(){};
_.w(ck,eE);ck.prototype.getApiPaths=function(){return SSQ};
ck.prototype.getExtension=function(M){return _.G(M,H13)};
ck.prototype.JSC$13017_buildRequest=function(M,z,J){M.params=z.params;J.impersonated_channel_url&&(M.impersonatedChannelUrl=J.impersonated_channel_url)};var d6=function(){};
_.w(d6,eE);d6.prototype.getApiPaths=function(){return E1V};
d6.prototype.getExtension=function(M){return _.G(M,_.vDV)};
d6.prototype.JSC$13017_buildRequest=function(M,z){z.items&&(M.items=z.items);z.kidGaiaId&&(M.kidGaiaId=z.kidGaiaId)};var K1=function(){};
_.w(K1,eE);K1.prototype.getApiPaths=function(){return pgk};
K1.prototype.getExtension=function(M){return _.G(M,_.HMv)};
K1.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params);z.targetId&&(M.targetId=z.targetId)};var $d=function(){};
_.w($d,eE);$d.prototype.getApiPaths=function(){return Oxt};
$d.prototype.getExtension=function(M){return _.G(M,w3B)};
$d.prototype.JSC$13017_buildRequest=function(M,z){z.externalVideoId&&(M.externalVideoId=z.externalVideoId);z.query&&(M.query=z.query);z.sourceTimelines&&(M.sourceTimelines=z.sourceTimelines)};var uR=function(){};
_.w(uR,eE);uR.prototype.getApiPaths=function(){return T0a};
uR.prototype.getExtension=function(M){return _.G(M,_.uP)||void 0};
uR.prototype.JSC$13017_buildRequest=function(M,z){z.token&&(M.continuation=z.token)};
_.R25=function(){};
_.w(_.R25,eE);_.P=_.R25.prototype;_.P.getApiPaths=function(){return T0a};
_.P.getExtension=function(M){return _.G(M,_.wB)||void 0};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$13024_getStoreKey=function(M,z){z=z===void 0?{}:z;if(!z.disableCache&&(M=this.getExtension(M))&&M.query)return z={query:M.query},M.params&&(z.params=M.params),_.Lu("search",z)};
_.P.JSC$13017_buildRequest=function(M,z,J){z.query&&(M.query=z.query);z.params&&(M.params=z.params);if(!_.U("web_forward_suggest_stats_killswitch")){var R=_.G(z,eOg);R&&(M.suggestStats=R)}var D;!_.U("kevlar_searchbox_stats_killswitch")&&((D=J.tempData)==null?0:D.gs_l)&&!_.G(z,eOg)&&(M.webSearchboxStatsUrl="/search?oq="+(J.tempData.oq||"")+"&gs_l="+J.tempData.gs_l);var N;if((N=J.tempData)==null?0:N.entityMid)z=M.suggestionSearchParams||{},z.entityMid=J.tempData.entityMid,M.suggestionSearchParams=z;
if(_.U("enable_desktop_vdcbg_components")||_.U("enable_inline_muted_playback_on_web_search"))J=_.vv().getFlag(186),M.inlineSettingStatus=J?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.P.getRequestConfig=function(M,z){z=z===void 0?{}:z;M=this.JSC$13024_getStoreKey(M,z);var J;M&&(J={storeStrategy:{storeKey:M}});_.U("web_log_search_ticks_ks")||(J=J||{},J.requestTick="sr_s",J.responseTick="sr_r");return J};var qw=function(){};
_.w(qw,eE);qw.prototype.getApiPaths=function(){return KGv};
qw.prototype.getExtension=function(M){return _.G(M,NN$)};
qw.prototype.JSC$13017_buildRequest=function(M,z){z.serializedGetSharingProviderDataParams&&(M.serializedGetSharingProviderDataParams=z.serializedGetSharingProviderDataParams)};var Wk=function(){};
_.w(Wk,eE);Wk.prototype.getApiPaths=function(){return $4B};
Wk.prototype.getExtension=function(M){return _.G(M,Wvg)};
Wk.prototype.JSC$13017_buildRequest=function(M,z){z.endpoint&&(M.endpoint=z.endpoint);z.action&&(M.action=z.action)};var aG=function(){};
_.w(aG,eE);aG.prototype.getApiPaths=function(){return U4J};
aG.prototype.getExtension=function(M){return _.G(M,LRp)};
aG.prototype.JSC$13017_buildRequest=function(M,z){M.videoId=z.videoId;z.scheduledRedirectMetadataSourceVideoId&&(M.scheduledRedirectMetadata={sourceVideoId:z.scheduledRedirectMetadataSourceVideoId})};var Vj=function(){};
_.w(Vj,eE);Vj.prototype.getApiPaths=function(){return lXg};
Vj.prototype.getExtension=function(M){return _.G(M,_.f1$)};
Vj.prototype.JSC$13017_buildRequest=function(M,z){M.params=z.params;M.correctionText=z.correctionText};var Eu=function(){};
_.w(Eu,eE);Eu.prototype.getApiPaths=function(){return E3p};
Eu.prototype.getExtension=function(M){return _.G(M,_.xDu)};
Eu.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params);M.searchQuery=z.searchQuery;M.languageCode=z.languageCode;M.kind=z.kind;M.name=z.name;M.externalVideoId=z.externalVideoId};var f1=function(){};
_.w(f1,eE);f1.prototype.getApiPaths=function(){return sj$};
f1.prototype.getExtension=function(M){return _.G(M,SQ2)};
f1.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.params=z.params)};var L1=function(M){this.JSC$18041_storeWithEntities=M};
_.w(L1,eE);L1.prototype.getApiPaths=function(){return Zkt};
L1.prototype.getExtension=function(M){return _.G(M,kng)||_.G(M,OEg)};
L1.prototype.JSC$13017_buildRequest=function(M,z,J){J.client_data&&(M.clientData=J.client_data);if(z.commerceActionConfig){var R=z.commerceActionConfig;z=R.actionId;R=R.commerceActionParams;z&&(M.actionId=z);R&&(M.commerceActionParams=R)}else{var D=z.actionId,N=z.commerceActionParams;J=z.entityKeys;D&&(M.actionId=D);N&&(M.commerceActionParams=N);var Z;z=(R=this.JSC$18041_storeWithEntities)==null?void 0:(Z=R.getState())==null?void 0:Z.entities;if(J&&z){R=[];Z=_.S(J);for(J=Z.next();!J.done;J=Z.next())if(D=
J.value,J=_.kf(D).entityType,D=_.Is(z,J,D))N={},R.push((N[J]=D,N));M.entityMutationPayloads=R}}};
L1.prototype.getRequestConfig=function(M){var z,J=(z=_.G(M,kng))==null?void 0:z.requestSequenceType;if(J&&M.clickTrackingParams&&J!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:M.clickTrackingParams,sequenceType:J}}};
L1[DW]=[Pf];var A0=function(){};
_.w(A0,eE);A0.prototype.getApiPaths=function(){return nkg};
A0.prototype.getExtension=function(M){return _.G(M,_.mK2)};
A0.prototype.JSC$13017_buildRequest=function(M,z){z.feedbackData&&(M.feedbackData=z.feedbackData);z.params&&(M.itemParams=z.params)};
_.rX.Object.defineProperties(A0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iR=function(){};
_.w(iR,eE);iR.prototype.getApiPaths=function(){return hu$};
iR.prototype.getExtension=function(M){return _.G(M,gKv)};
iR.prototype.JSC$13017_buildRequest=function(M,z,J){J.payments_payload&&(M.paymentsPayload=J.payments_payload);J.offer_params&&(M.offerParams=J.offer_params);z.transactionParams&&(M.transactionParams=z.transactionParams)};var C1=function(){};
_.w(C1,eE);C1.prototype.getApiPaths=function(){return yX2};
C1.prototype.getExtension=function(M){return _.G(M,_.sYa)};
C1.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.buybucketParams&&(M.buybucketData={params:z.buybucketParams},z.stickerParams?M.buybucketData.stickerParams=z.stickerParams:(J.rich_chat_message?M.buybucketData.richChatMessage=J.rich_chat_message:J.chat_message_text&&(M.buybucketData.chatMessageText=J.chat_message_text),J.purchase_price_micros&&(M.buybucketData.purchasePriceMicros=J.purchase_price_micros.toString())));z.donationAmountMicros&&(M.tipAmountMicros=z.donationAmountMicros,
z.tipParams&&(M.tipParams=z.tipParams));z.offerParams&&(M.offerParams=z.offerParams);z.productData&&(M.productData=z.productData);z.transactionParams&&(M.transactionParams=z.transactionParams)};var bR=function(){};
_.w(bR,eE);bR.prototype.getApiPaths=function(){return Hxg};
bR.prototype.getExtension=function(M){return _.G(M,ysJ)};
bR.prototype.JSC$13017_buildRequest=function(M,z){z.updateFopParams&&(M.updateFopParams=z.updateFopParams)};var r6=function(){};
_.w(r6,eE);r6.prototype.getApiPaths=function(){return cXk};
r6.prototype.getExtension=function(M){return _.G(M,_.M9)};
r6.prototype.JSC$13017_buildRequest=function(M,z){z.couponCode&&(M.couponCode=z.couponCode);z.params&&(M.itemParams=z.params)};var Md=function(){};
_.w(Md,eE);Md.prototype.getApiPaths=function(){return dmQ};
Md.prototype.getExtension=function(M){return _.G(M,_.Bxa)};
Md.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;z.params&&(M.params=z.params);J.ctk&&(M.clientToken=J.ctk)};var zJ=function(M){this.JSC$18076_storeWithEntities=M};
_.w(zJ,eE);zJ.prototype.getApiPaths=function(){return KSV};
zJ.prototype.getExtension=function(M){return _.G(M,_.AV)};
zJ.prototype.JSC$13017_buildRequest=function(M,z,J){J.purchase_price_micros&&(M.productData={pdgData:{purchasePriceMicros:J.purchase_price_micros.toString()}},J.rich_chat_message&&(M.productData.pdgData.richChatMessage=J.rich_chat_message),J.currency_code&&(M.productData.pdgData.currencyCode=J.currency_code));z.transactionParams&&(M.transactionParams=z.transactionParams);z.clientLocationContext&&(M.clientLocationContext=z.clientLocationContext);J.payments_payload&&(M.paymentsPayload=J.payments_payload);
J.funds_guarantee_callback_client_data&&(M.fundsGuaranteeCallbackClientData=J.funds_guarantee_callback_client_data);var R,D;J=(R=this.JSC$18076_storeWithEntities)==null?void 0:(D=R.getState())==null?void 0:D.entities;if(z.entityKeys&&J){R=[];z=_.S(z.entityKeys);for(D=z.next();!D.done;D=z.next()){var N=D.value;D=_.kf(N).entityType;if(N=_.Is(J,D,N)){var Z={};R.push((Z[D]=N,Z))}}M.entityMutationPayloads=R}};
zJ[DW]=[Pf];var J7=function(){};
_.w(J7,eE);J7.prototype.getApiPaths=function(){return $mV};
J7.prototype.getExtension=function(M){return _.G(M,nKB)};
J7.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;J.backend_analytics&&(M.serializedBackendAnalyticsEvent=J.backend_analytics);z.offerParams&&(M.offerParams=z.offerParams)};var Rt=function(){};
_.w(Rt,eE);Rt.prototype.getApiPaths=function(){return cXk};
Rt.prototype.getExtension=function(M){return _.G(M,mFR)};
Rt.prototype.JSC$13017_buildRequest=function(M,z){z.params&&(M.itemParams=z.params)};var D4=function(){};
_.w(D4,eE);D4.prototype.getApiPaths=function(){return uyB};
D4.prototype.getExtension=function(M){return _.G(M,_.lJp)};
D4.prototype.JSC$13017_buildRequest=function(M,z,J){J.resume_time_ms&&(M.resumeTimeMs=J.resume_time_ms);z.pauseParams&&(M.pauseParams=z.pauseParams)};var Nd=function(){};
_.w(Nd,eE);Nd.prototype.getApiPaths=function(){return qS$};
Nd.prototype.getExtension=function(M){return _.G(M,_.h1J)};
Nd.prototype.JSC$13017_buildRequest=function(M,z,J){J=J===void 0?{}:J;J.c&&(M.redeemCode=J.c);J.rd&&(M.riskData=J.rd);J.ctk&&(M.clientToken=J.ctk)};var P$=function(){};
_.w(P$,eE);P$.prototype.getApiPaths=function(){return WSk};
P$.prototype.getExtension=function(M){return _.G(M,_.e1k)};
P$.prototype.JSC$13017_buildRequest=function(M,z){z.resumeParams&&(M.resumeParams=z.resumeParams)};var Sk=function(M,z){this.clientName=M;this.defaultExpirationDelayMs=z};
Sk.prototype.put=function(M,z){var J=this,R;return _.k(function(D){R=Object.assign({},z.data);R.key=M;R.clientName=J.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,_.zU)())+J.defaultExpirationDelayMs).toString());return D.return(J.putInternal(M,R))})};
Sk[DW]=[HG,BRN];var DBN=function(){Sk.apply(this,arguments);this.JSC$18106_responseStore=new Map};
_.w(DBN,Sk);_.P=DBN.prototype;_.P.get=function(M){var z=this;return _.k(function(J){return J.return(Qw(z,M))})};
_.P.putInternal=function(M,z){var J=this,R,D,N;return _.k(function(Z){R=J.defaultExpirationDelayMs;z.expireTimestampMs&&(R=Number(z.expireTimestampMs)-Math.round((0,_.zU)()),D=_.NC("mweb_override_response_store_expiration_ms"),D>0&&D<R&&(R=D));N=setTimeout(function(){J.remove(M)},R);
J.JSC$18106_responseStore.set(M,{entryData:z,timer:N});_.UI(Z)})};
_.P.remove=function(M){var z=this;return _.k(function(J){Ng5(z,M);_.UI(J)})};
_.P.removeAll=function(){var M=this;return _.k(function(z){M.JSC$18106_responseStore.forEach(function(J){clearTimeout(J.timer)});
M.JSC$18106_responseStore.clear();_.UI(z)})};
_.P.has=function(M){return!!this.JSC$18106_responseStore.get(M)};
_.P.getKeys=function(){return this.JSC$18106_responseStore.keys()};
var Qw=function(M,z){if(M=M.JSC$18106_responseStore.get(z))return new _.e0(M.entryData)},Ng5=function(M,z){var J=M.JSC$18106_responseStore.get(z);
J&&(clearTimeout(J.timer),M.JSC$18106_responseStore.delete(z))};var L18;var Cu8=function(M,z,J){Sk.call(this,M,z);this.token=J};
_.w(Cu8,Sk);_.P=Cu8.prototype;_.P.get=function(M){var z=this,J,R;return _.k(function(D){return D.nextAddress==1?D.yield(iBw(z.token),2):D.nextAddress!=3?(J=D.yieldResult,D.yield(J.get("ResponseStore",[M,z.clientName]),3)):(R=D.yieldResult)?D.return(new _.e0(R)):D.return(void 0)})};
_.P.putInternal=function(M,z){var J=this,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(iBw(J.token),2);R=D.yieldResult;return D.yield(R.put("ResponseStore",z),0)})};
_.P.remove=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(iBw(z.token),2);J=R.yieldResult;return R.return(J.delete("ResponseStore",[M,z.clientName]))})};
_.P.removeAll=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(iBw(M.token),2);z=J.yieldResult;return J.yield(I3g(z,IDBKeyRange.only(M.clientName)),0)})};
_.P.has=function(){throw Error("Xi");};_.Z4=new _.Nh("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var PJw=function(M){var z;this.stateTagsData=(z=M.responseContext)==null?void 0:z.stateTags},S$l=function(M){var z;
return((z=M.stateTagsData)==null?void 0:z.stateTagsModified)||[]};var Zvl;Zvl=function(M){this.JSC$18119_responseStore=M};
_.Ej=function(M,z,J){if(!_.U("state_tags_killswitch")){var R=new PJw(z);if(S$l(R).length>0){var D=M.JSC$18119_responseStore.getKeys();D=_.S(D);for(var N=D.next();!N.done;N=D.next()){N=N.value;var Z=Qw(M.JSC$18119_responseStore,N);if(Z){var B=_.Dz(Z);a:{var O=void 0;Z=S$l(R);B=((O=(new PJw(B)).stateTagsData)==null?void 0:O.relevantStateTags)||[];O=_.S(B);for(B=O.next();!B.done;B=O.next())if(B=B.value,B.stateTag!=null&&Z.includes(B.stateTag)&&B.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Z=
!0;break a}Z=!1}Z&&Ng5(M.JSC$18119_responseStore,N)}}}}var X;R=(X=z.responseContext)==null?void 0:X.maxAgeSeconds;J&&R&&Number(R)>0&&(z=kC(z,R),M.JSC$18119_responseStore.put(J,new _.e0(z)))};
Zvl.prototype.handleResponse=function(M,z){if(!z)throw Error("Yi");var J,R;z=(J=z.config)==null?void 0:(R=J.storeStrategy)==null?void 0:R.storeKey;_.Ej(this,M,z)};
Zvl[DW]=[_.lA];_.REe=new _.Nh("STORE_RESPONSE_PROCESSOR_TOKEN");var ktm=function(M){this.JSC$18122_responseStore=M};
ktm.prototype.handleResponse=function(M,z){if(z.input.match(_.MG(Dmk))){var J;if(M==null?0:(J=M.entries)==null?0:J.length)for(M=_.S(M.entries),z=M.next();!z.done;z=M.next()){J=z.value.command;var R=void 0;z=(R=_.G(J,_.je))==null?void 0:R.unserializedPrefetchData;if(!J||!z)break;R=(new su).JSC$13024_getStoreKey(J);var D=_.G(z,Uj$),N=void 0,Z=void 0,B=void 0,O=_.NC("web_shorts_prefetch_service_ttl_seconds")>0?_.NC("web_shorts_prefetch_service_ttl_seconds"):Number((B=(N=D)==null?void 0:(Z=N.responseContext)==
null?void 0:Z.maxAgeSeconds)!=null?B:3600);R&&O>0&&(D=kC(D,O),this.JSC$18122_responseStore.put(R,new _.e0(D)));J=(new w_).JSC$13024_getStoreKey(J);z=_.G(z,RrS);N=D=R=void 0;Z=_.NC("web_shorts_prefetch_service_ttl_seconds")>0?_.NC("web_shorts_prefetch_service_ttl_seconds"):Number((N=(R=z)==null?void 0:(D=R.responseContext)==null?void 0:D.maxAgeSeconds)!=null?N:3600);J&&Z>0&&(z=kC(z,Z),this.JSC$18122_responseStore.put(J,new _.e0(z)))}}};
ktm[DW]=[_.lA];var Bgl=function(M){this.innertubeTransportService=M};
Bgl[DW]=[_.cP];var Ovu=new _.Nh("SUBMIT_API_SERVICE_TOKEN");var kM=function(){this.scheduler=_.sj()},Tgi;
kM.prototype.pause=function(){throw Error("Zi");};
kM.prototype.resume=function(){throw Error("Zi");};
kM.prototype.queue=function(M){var z=this,J=_.Ln(),R=_.x4(this.scheduler,function(){try{var D;if(_.l5.instance)var N=_.l5.instance;else{var Z=new _.xN("Error: Unexpected uninitialized CommandHandler.");_.nc(Z);N=void 0}(D=N)==null||D.resolveCommand(M.command);J.resolve()}catch(B){J.reject(B)}});
J.promise.thenCatch(function(D){D instanceof _.q9&&z.scheduler.cancelJob(R)});
return J.promise};
kM.prototype.queueAll=function(M){var z=new Map;M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,z.set(J.id,this.queue(J));return z};var opm=function(M,z){var J=this;this.taskModel=M;this.onTaskCancelledCallback=z;this.resolver=_.Ln();M=M.proto.prefetchConfig;if(!M)throw Error("$i");if(!M.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(R){R instanceof _.q9&&(IV5(J,J.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),J.onTaskCancelledCallback(J.taskModel.id,J.jobId),J.tick("pcc"));
throw R;});
this.timerName=this.taskModel.id;_.nY(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
opm.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 IV5=function(M,z){_.sf({prefetchInfo:{cancellationReason:z}},M.timerName)};
opm.prototype.tick=function(M){_.hd(M,void 0,this.timerName)};var O9=function(){var M=this;this.scheduler=_.sj();this.maxInflightTasks=_.NC("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.NC("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Hea;this.onTaskCancelled=function(z,J){J&&M.scheduler.cancelJob(J);Xuu(M,z);B$(M,3)}},lV5=function(){O9.instance||(O9.instance=new O9);
return O9.instance};
O9.prototype.pause=function(){this.prefetchCoordinatorState=0};
O9.prototype.resume=function(){B$(this,0)};
O9.prototype.queue=function(M){M=e2w(this,M);B$(this,1);return M};
O9.prototype.queueAll=function(M){var z=new Map;M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,z.set(J.id,e2w(this,J));B$(this,1);return z};
var e2w=function(M,z){var J=M.allPrefetchTasks.get(z.id);if(J)return J.cancellablePromise;try{var R=new opm(z,M.onTaskCancelled)}catch(N){return _.gv(N)}J=R;J.tick("pcq");var D={prefetchInfo:{taskId:J.taskModel.id,isPrefetch:!0,fetchAction:J.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:J.taskModel.command.clickTrackingParams}};J.taskModel.csn&&(D.clientScreenNonce=J.taskModel.csn);_.sf(D,J.timerName);M.allPrefetchTasks.set(z.id,R);M.drainingHeap.insert(-R.getPriority(),R);return R.cancellablePromise},
B$=function(M,z){M.prefetchCoordinatorState===z&&(M.prefetchCoordinatorState=2,Qkc(M))},Qkc=function(M){for(var z={};M.prefetchCoordinatorState!==0;z={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(M.inflightPrefetchTasks.size>=M.maxInflightTasks){M.prefetchCoordinatorState=3;break}z.prefetchTask$jscomp$1=M.drainingHeap.remove();if(!z.prefetchTask$jscomp$1){M.prefetchCoordinatorState=1;break}z.taskId$jscomp$3=z.prefetchTask$jscomp$1.taskModel.id;if(M.allPrefetchTasks.has(z.taskId$jscomp$3)){var J=-1;M.coordinatorTimeoutMs>0&&(J=_.x4(M.scheduler,function(R){return function(){TJ(M,R.taskId$jscomp$3,Error("bj"))}}(z),M.coordinatorTimeoutMs));
M.inflightPrefetchTasks.set(z.taskId$jscomp$3,J);if(!M.JSC$18140_commandHandler){if(!_.l5.instance){TJ(M,z.taskId$jscomp$3,Error("cj"));continue}M.JSC$18140_commandHandler=_.l5.instance}a:switch(z.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":J=1;break a;default:J=0}z.prefetchTask$jscomp$1.jobId=M.scheduler.addJob(function(R){return function(){R.prefetchTask$jscomp$1.tick("pcr");try{M.JSC$18140_commandHandler.resolveCommand(R.prefetchTask$jscomp$1.taskModel.command)||
TJ(M,R.taskId$jscomp$3,Error("dj"))}catch(D){TJ(M,R.taskId$jscomp$3,D)}}}(z),J,0)}}},UBc=function(M,z){(z=Xuu(M,z))!=null&&(z.resolver.resolve(),z.tick("pce"));
B$(M,3)},TJ=function(M,z,J){(z=Xuu(M,z,J))!=null&&(z.resolver.reject(J),z.tick("pcc"),IV5(z,"CANCELLATION_REASON_ERROR"),Math.random()<=_.NC("prefetch_coordinator_error_logging_sampling_rate")&&(J=new _.xN("Prefetch Command failed.",z.taskModel.id,J.message),_.nc(J)));
B$(M,3)},Xuu=function(M,z,J){var R=M.allPrefetchTasks.get(z);
R?((J=M.inflightPrefetchTasks.get(z))&&J!==-1&&M.scheduler.cancelJob(J),M.inflightPrefetchTasks.delete(z),M.allPrefetchTasks.delete(z)):_.yA(new _.xN("Unexpected missing prefetch task when deleting task.",z,J==null?void 0:J.message));return R};var vpu=function(M,z,J,R,D){this.id=M;this.triggerOn=z;this.cancelOn=J;this.command=R;this.proto=D};
_.rX.Object.defineProperties(vpu.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var GtN=function(){this.JSC$18145_prefetchCoordinator=lV5();Tgi||(Tgi=new kM);this.defaultCoordinator=Tgi},wuw;
GtN.getInstance=function(){wuw||(wuw=new GtN);return wuw};
GtN.prototype.get=function(M){switch(M){case 0:return this.JSC$18145_prefetchCoordinator;default:return this.defaultCoordinator}};var It=function(){this.coordinatorSupplier=GtN.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},jkl=function(M){var z=_.y5()||void 0,J=Object.keys(xBl)[0];
if(J){var R=M.taskIdByTriggerId.get(J);if(R!=null){M.taskIdByTriggerId.delete(J);J=[];R=_.S(R);for(var D=R.next();!D.done;D=R.next())if(D=M.tasks.get(D.value))z!=="UNDEFINED_CSN"&&(D.csn=z),J.push(D);J=MZc(J);z=[];J=_.S(J);for(R=J.next();!R.done;R=J.next()){D=_.S(R.value);R=D.next().value;D=D.next().value;R=M.coordinatorSupplier.get(R).queueAll(D);R=_.S(R);var N=R.next();for(D={};!N.done;D={taskId$jscomp$9:void 0},N=R.next()){var Z=_.S(N.value);N=Z.next().value;Z=Z.next().value;D.taskId$jscomp$9=
N;N=Z;z.push(D.taskId$jscomp$9);M.queuedPromisesByTask.set(D.taskId$jscomp$9,_.mi(N,function(B){return function(){tav(M,B.taskId$jscomp$9)}}(D)))}}}}else _.yA(new _.xN("Unexpected malformed TriggerEvent."))};
It.prototype.trigger=function(M,z){var J=this,R=this.tasks.get(M);if(!R||this.queuedPromisesByTask.has(M))return!1;puu(this,M,R.triggerOn);z!=="UNDEFINED_CSN"&&(R.csn=z);z=this.coordinatorSupplier.get(R.taskType).queue(R);this.queuedPromisesByTask.set(M,_.mi(z,function(){tav(J,M)}));
return!0};
It.prototype.cancel=function(M){var z=this.queuedPromisesByTask.get(M);if(z)z.cancel();else return tav(this,M)};
var tav=function(M,z){M.queuedPromisesByTask.delete(z);var J=M.tasks.get(z);if(!J)return!1;M.tasks.delete(z);puu(M,z,J.triggerOn);(J=rOn(J.cancelOn))&&(M=M.taskIdByCancelId.get(J))&&M.delete(z);return!0},puu=function(M,z,J){(J=Object.keys(J)[0])&&(M=M.taskIdByTriggerId.get(J))&&M.delete(z)};var xBl={taskRegistered:{}},ot=function(){It.instance||(It.instance=new It);this.JSC$18154_taskManager=It.instance};
_.w(ot,VX);
ot.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,luV);if((R=J)==null||!R.tasks){var N=new _.xN("RegisterTasksCommand is missing tasks.");_.nc(N);return D.return()}N=z.JSC$18154_taskManager;for(var Z=_.S(J.tasks),B=Z.next();!B.done;B=Z.next())if(B=B.value,B=B.id&&B.triggerOn&&B.cancelOn&&B.command?new vpu(B.id,B.triggerOn,B.cancelOn,B.command,B):void 0,B){var O=Object.keys(B.triggerOn)[0];if(O){var X=rOn(B.cancelOn);X?(N.tasks.set(B.id,B),N.taskIdByTriggerId.has(O)||N.taskIdByTriggerId.set(O,
new Set),N.taskIdByTriggerId.get(O).add(B.id),N.taskIdByCancelId.has(X)||N.taskIdByCancelId.set(X,new Set),N.taskIdByCancelId.get(X).add(B.id)):_.yA(new _.xN("Unexpected malformed cancelOn field."))}else _.yA(new _.xN("Unexpected malformed triggerOn field."))}else _.yA(new _.xN("Unexpected malformed Task proto."));jkl(z.JSC$18154_taskManager);_.UI(D)})};var F$w={},Y$v=(F$w.rendered={priority:_.U("web_adaptive_early_init")?8:0,callback:function(){var M={};M.numCpu=navigator.hardwareConcurrency;var z={};z.ramGb=_.R3.navigator.deviceMemory;var J={staticContext:{}};z.ramGb&&zC8(z.ramGb)&&(J.staticContext.memoryTotalKbytes=(z.ramGb*1048576).toString());M.numCpu&&zC8(M.numCpu)&&(J.staticContext.cpuCores=M.numCpu);if(_.U("web_enable_adaptive_appl_signal")){M={};z=_.cv("rses_dpj");var R=_.cv("rsef_dpj");z&&z>0&&R&&R>0&&(z=Math.ceil(R-z),z>0&&(M.loadLatency=
z));M.loadLatency&&zC8(M.loadLatency)&&(J.appL=M.loadLatency.toString())}_.gP("applicationStarted",J)}},F$w);var mBc=new _.Nh("WINDOW_ON_ERROR"),gp5=new _.Nh("ERROR_WEIGHT_MAPS"),sk5=new _.Nh("INIT_ERROR");var npG={},h2d=(npG.initialized={priority:10,callback:function(M){M.injector.resolve(sk5)()}},npG);var ySl=function(){},Hvs=function(){var M=_.qH("meta_logger_impl");
M||(M=new ySl,_.b9("meta_logger_impl",M));return M},cSG=function(){Hvs().csiSubscriptionKey=oz0("meta_logging_csi_event",function(M){var z=M.timerName;
if(M=M.timelineData){_.nY(z,{startTime:M.startTime},z);M.infos&&_.sf(M.infos,z);for(var J=_.S(Object.keys(M.ticks)),R=J.next();!R.done;R=J.next())R=R.value,_.hd(R,M.ticks[R],z)}})};
ySl.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&efe(this.csiSubscriptionKey)};var dBl={},K$u=(dBl.initialized={priority:10,callback:function(){cSG()}},dBl);var $Bi=function(M,z){this.innertubeClientName=M;this.JSC$18170_prefCookie=z};
$Bi.prototype.record=function(){if(_.U("web_li_record_binary_eval_tick")){var M=_.cv("rsef_dpj");var z=_.cv("rses_dpj");M=M!==void 0&&z!==void 0?Math.round(M-z):void 0;if(M!==void 0&&M>0){z=_.UE(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var J=this.poolSize;if(!(z.valuesSeen>=1E9)){if(z.valuesSample.length<J)z.valuesSample.push(M);else{var R=Math.floor(Math.random()*(z.valuesSeen+1));R<J&&(z.valuesSample[R]=M)}z.valuesSeen+=1}_.Qo(this.storagePrefix+"-"+this.innertubeClientName,
z,2592E3);M=z.valuesSample;z=J6R(M);M=M.length<this.poolSize?void 0:z<400?1:z<1700?2:3;M!==void 0&&(this.JSC$18170_prefCookie.set(this.cookiePrefix+this.innertubeClientName,M),this.JSC$18170_prefCookie.save())}}else _.va(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18170_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18170_prefCookie.save()};
$Bi[DW]=[HG,oB];var uQl=function(){$Bi.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.w(uQl,$Bi);var q$G=new _.Nh("PAGE_LOAD_TIME_TOKEN");var W$u=function(M){this.signal=M;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;M.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.x4(_.no,this.disableLoggingAndSendPayload,1E4)};
W$u.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.no.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),aVw(this))};
var aVw=function(M){var z=_.hu();if(z){var J={webClientComponentsData:{components:Array.from(M.ids,function(R){return{id:R}})}};
M.ids.clear();_.Gm().visualElementStateChanged(z,J)}};var Vaw=new _.Nh("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Xs=function(M,z){this.JSC$18199_storeWithEntities=M;this.JSC$18199_commandHandler=z;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Xs.prototype.start=function(){this.JSC$18199_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Xs.prototype.observeDownloadingEntities=function(){var M=_.CUo(this.JSC$18199_storeWithEntities.getState().entities).map(function(R){return bMR(R)});
if(M.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var z={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:JqY()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.JN(_.e9("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18199_commandHandler.resolveCommand(z)}this.downloadingEntities=M}else if(this.downloadingEntities.length){var J=iMG(this.JSC$18199_storeWithEntities.getState().entities).map(function(R){return bMR(R)});
this.downloadingEntities.filter(function(R){return J.includes(R)}).length&&(M={openPopupAction:K1p()},this.JSC$18199_commandHandler.resolveCommand(M));
this.downloadingEntities=[]}};
Xs[DW]=[Pf,_.Rb];var Epw;_.lg=function(M,z,J,R,D,N,Z,B){this.JSC$18202_playerApiPromise=M;this.JSC$18202_commandHandler=z;this.JSC$18202_screenManager=J;this.offlineWebClientEligibility=R;this.JSC$18202_prefStorage=D;this.JSC$18202_actionRouter=N;this.entityTypeMap=Z;this.JSC$18202_persistentStorePromiseAccessor=B;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Epw=function(){var M=_.JF().resolve(_.lg),z;_.k(function(J){if(J.nextAddress==1)return M.downloadFailureListenerBound?J.return():J.yield(M.JSC$18202_playerApiPromise,2);z=J.yieldResult;z.addEventListener("onOfflineOperationFailure",function(R){if(R.failureReason&&R.entityKey&&R.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(R.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var D=_.kf(R.entityKey).entityId;D&&M.JSC$18202_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
D)}else if(_.U("kevlar_woffle")){D=M.JSC$18202_commandHandler;var N=D.resolveCommand;R=R.failureReason;var Z=_.e9("TRANSFER_FAILED",void 0,"Download failed");R==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Z=_.e9("STORAGE_FULL",void 0,"Storage full"));N.call(D,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.JN(Z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
M.downloadFailureListenerBound=!0;_.UI(J)})};
_.lg.prototype.deleteVideo=function(M,z){var J=this,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(J.JSC$18202_playerApiPromise,2);R=Z.yieldResult;N={offlineLoggingData:{offlineDeleteReason:(D=z)!=null?D:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return Z.yield(R.queueOfflineAction(M,J.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",N),0)})};
_.lg.prototype.pauseVideoDownload=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.JSC$18202_playerApiPromise,2);J=R.yieldResult;J.pauseVideoDownload(M);_.UI(R)})};
_.lg.prototype.resumeVideoDownload=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.JSC$18202_playerApiPromise,2);J=R.yieldResult;return R.yield(J.resumeVideoDownload(M),0)})};
_.lg[DW]=[_.SF,_.Rb,_.hs,Vaw,Uo,Du,fnV,GN];var fVw=new _.Nh("DOWNLOAD_STATE_STORE_TOKEN");var L$G=function(M,z){this.JSC$18222_persistentStorePromiseAccessor=M;this.store=z;this.upliftCompletionResolver=new _.Iz},CJi=function(){var M=_.JF().resolve(ASw),z;
_.k(function(J){switch(J.nextAddress){case 1:if(M.upliftImplPromise)return J.return(M.upliftImplPromise);_.Io(J,2);M.upliftImplPromise=ivs(M);return J.yield(M.upliftImplPromise,4);case 4:M.upliftCompletionResolver.resolve();_.ab(J,3);break;case 2:throw z=_.Qa(J),M.upliftCompletionResolver.reject(z),z;case 3:return J.return(M.upliftImplPromise)}})},ivs=function(M){var z,J,R;
return _.k(function(D){switch(D.nextAddress){case 1:return _.cW("LOGGED_IN")?D.yield(M.JSC$18222_persistentStorePromiseAccessor(),2):D.return();case 2:z=D.yieldResult;if(!z)return _.hd("vdeur"),D.return();_.hd("vdeus");_.Io(D,3);return D.yield(bvu(z),5);case 5:J=D.yieldResult;M.store.dispatch(HMp(J));z.observe(function(N){cVR(M.store,N)});
_.ab(D,4);break;case 3:throw R=_.Qa(D),_.hd("vdeur"),R;case 4:_.hd("vdeuc"),_.UI(D)}})},bvu=function(M){var z;
return _.k(function(J){if(J.nextAddress==1)return J.yield(k3R(M),2);z=J.yieldResult;return J.return(z.reduce(function(R,D){if(!D.data||!D.key||!D.entityType)return R;R[D.entityType]||(R[D.entityType]={});R[D.entityType][D.key]=D.data;return R},{}))})};
L$G[DW]=[GN,_.Vo];var ASw;ASw=new _.Nh("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.ek=new _.Nh("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Qi=function(M,z){this.JSC$18225_persistentStorePromiseAccessor=M;this.transportService=z};
Qi.prototype.refresh=function(){var M=this,z,J,R,D;return _.k(function(N){if(N.nextAddress==1)return _.cW("LOGGED_IN")?N.yield(M.JSC$18225_persistentStorePromiseAccessor(),2):N.return();if(N.nextAddress!=3)return(z=N.yieldResult)?N.yield(VMG(z),3):N.return();if((J=N.yieldResult)&&!(Number(J.data.refreshTimestampMs||0)<(0,_.zU)()))return N.return();R={browseId:"SPaccount_downloads"};D=_.MG(Cr);_.W2(M.transportService,R,D).then(function(Z){var B;if(z&&(Z==null?void 0:(B=Z.responseContext)==null?void 0:
B.maxAgeSeconds)!==0){var O;B=(Z==null?void 0:(O=Z.responseContext)==null?void 0:O.maxAgeSeconds)||604800;O=String(Math.floor((0,_.zU)())+B*1E3);z.put("service:downloads_settings:fallback",new _.e0({innertubeResponse:Z,refreshTimestampMs:O}))}});
_.UI(N)})};
Qi[DW]=[_.Z4,_.cP];var U9=function(M,z){this.JSC$18229_playerPromise=M;this.store=z;this.started=!1};
U9.prototype.start=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return M.started?J.return():J.yield(M.JSC$18229_playerPromise,2);z=J.yieldResult;z.addEventListener("onOrchestrationBecameLeader",M.updateIsLeader.bind(M,!0));z.addEventListener("onOrchestrationLostLeader",M.updateIsLeader.bind(M,!1));if(z.isOrchestrationLeader)M.updateIsLeader(z.isOrchestrationLeader());else{var R=new _.xN("Function isOrchestrationLeader is undefined",{"player.isReady":z.isReady(),"player.playVideo":z.playVideo?
"defined":"undefined"});_.nc(R);M.updateIsLeader(!1)}M.started=!0;_.UI(J)})};
U9.prototype.updateIsLeader=function(M){this.store.dispatch(_.Nv({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:M}}))};
U9[DW]=[_.SF,_.Vo];var rSl=function(M,z){this.networkStatusManager=M;this.JSC$18232_prefStoragePromise=z;this.redirectsToPreload=["https://youtube.com"]},Mmv=function(){var M=_.JF().resolve(rSl),z,J,R,D,N,Z;
_.k(function(B){switch(B.nextAddress){case 1:return B.yield(M.JSC$18232_prefStoragePromise,2);case 2:z=B.yieldResult;if(!(J=z)){B.jumpTo(3);break}return B.yield(z.get("yt-redirect-prefetch-id"),4);case 4:J=B.yieldResult;case 3:if(J||!M.networkStatusManager.isNetworkAvailable())return B.return();R={cache:"reload",redirect:"manual"};D=_.S(M.redirectsToPreload);N=D.next();case 5:if(N.done){if(!z){B.jumpTo(0);break}return B.yield(z.set("yt-redirect-prefetch-id",!0,86400),0)}Z=N.value;_.Io(B,8);return B.yield(_.R3.fetch(Z,
R),10);case 10:_.ab(B,6);break;case 8:_.Qa(B);case 6:N=D.next(),B.jumpTo(5)}})};var v$=function(M){M?(this.container=M,this.containerWasInjected=!0):this.containerWasInjected=!1};
v$.prototype.openDialog=function(M,z,J){var R=this,D;return _.k(function(N){(D=R.container)==null||D.openDialog(M,z,J);_.UI(N)})};
v$.prototype.closeDialog=function(){var M=this,z;return _.k(function(J){(z=M.container)==null||z.closeDialog();_.UI(J)})};
v$.prototype.isDialogOpen=function(){var M=this,z,J;return _.k(function(R){return R.return((J=(z=M.container)==null?void 0:z.isDialogOpen())!=null?J:!1)})};
v$[DW]=[_.zw(gWv)];_.zww=new _.Nh("POPUP_CONTROLLER_TOKEN");var Jit=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Jit.prototype.registerPanel=function(M,z){if(M){this.panelMap.set(M,z);var J=this.pendingPanelResolvers.get(M);J&&(J.resolve(z),this.pendingPanelResolvers.delete(M))}};
Jit.prototype.getPanel=function(M){var z=this,J;return _.k(function(R){return(J=z.panelMap.get(M))?R.return(J):R.return(RwN(z,M))})};
var RwN=function(M,z){var J,R;return _.k(function(D){if(J=M.pendingPanelResolvers.get(z))return D.return(J.promise);R=new _.Iz;M.pendingPanelResolvers.set(z,R);return D.return(R.promise)})},DNs=function(M){Jit.call(this);
var z=this;this.popupController=M;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return z.panelMap.size}}};
_.w(DNs,Jit);_.P=DNs.prototype;_.P.getReloadContinuation=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.getPanel(M),2);J=R.yieldResult;return R.return(J.getReloadContinuation())})};
_.P.showPanel=function(M,z,J,R,D,N,Z){var B=this,O,X,l,e;return _.k(function(Q){if(Q.nextAddress==1){Z&&B.updatePanelContinuationDatas.set(M,Z);if((O=J)==null?0:(X=O.engagementPanelPopupPresentationConfig)==null?0:X.popupType){l=J.engagementPanelPopupPresentationConfig.popupType;D===void 0&&(D=document.body);var v=Q.return,x=B.popupController,m=x.openPopup;a:switch(l){case "PANEL_POPUP_TYPE_DIALOG":var y="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":y="DROPDOWN";break a;default:throw Error("fj`"+
l);}return v.call(Q,m.call(x,M,z,y,D))}return Q.yield(B.getPanel(M),2)}e=Q.yieldResult;(z||N)&&e.updatePanel(z,!1,R,N);e.showPanel(R);_.UI(Q)})};
_.P.hidePanel=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(z.getPanel(M),2);J=R.yieldResult;J.hidePanel();z.popupController.closePopup(M);_.UI(R)})};
_.P.isVisible=function(M,z){var J=this,R;return _.k(function(D){if(D.nextAddress==1)return z&&!J.panelMap.has(M)?D.return(!1):D.yield(J.getPanel(M),2);R=D.yieldResult;return D.return(R.isVisible())})};
_.P.updatePanel=function(M,z,J,R,D,N){J=J===void 0?!1:J;var Z=this,B;return _.k(function(O){if(O.nextAddress==1){if(!z&&!D)return O.return();N&&Z.updatePanelContinuationDatas.set(M,N);return O.yield(Z.getPanel(M),2)}B=O.yieldResult;B.updatePanel(z,J,R,D);_.UI(O)})};
_.P.registerPanelContent=function(M,z){M&&this.panelContentMap.set(M,z)};
_.P.unregisterPanelContent=function(M){this.panelContentMap.delete(M)};
_.P.getPanelContent=function(M){return this.panelContentMap.get(M)};
_.P.getUpdatePanelContinuationData=function(M){return this.updatePanelContinuationDatas.get(M)};
DNs[DW]=[_.zww];var GJ=function(M,z){this.innertubeTransportService=M;this.JSC$18248_screenManager=z},Nll=function(M){var z;
return!((z=M.panelLoadingStrategy)==null||!z.requestTemplate)};
GJ.prototype.makeRequest=function(M){var z=this,J,R;return _.k(function(D){switch(D.nextAddress){case 1:if(!Nll(z)){D.jumpTo(2);break}_.Io(D,3);return D.yield(_.fn(z.innertubeTransportService,M),5);case 5:return J=D.yieldResult,J?D.return(J.content):(_.nc(Error("gj")),D.return(void 0));case 3:R=_.Qa(D),_.nc(R);case 2:return D.return(void 0)}})};
GJ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
GJ.prototype.execute=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e;return _.k(function(Q){if(Q.nextAddress==1){J=M;R=J.data;D=J.fallbackVe;N=J.parentVe;Z=J.createScreenConfig;B=J.renderFn;O=J.command;z.panelLoadingStrategy=R;var v,x,m=((v=z.panelLoadingStrategy)==null?0:v.screenVe)?(x=z.panelLoadingStrategy)==null?void 0:x.screenVe:D;m&&_.Xx(z.JSC$18248_screenManager,m,N,Z);return(X=z.getContent())?Q.yield(B(X),2):Q.jumpTo(2)}return Q.nextAddress!=4?Nll(z)?Q.yield(z.makeRequest(O),4):Q.return():(e=l=
Q.yieldResult)?Q.yield(B(e),0):Q.return()})};
GJ[DW]=[_.cP,_.hs];var w1=function(){};
w1.prototype.getContainer=function(){return _.zV()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
w1.prototype.openSheet=function(M,z){var J=this,R,D,N,Z,B,O;return _.k(function(X){switch(X.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.Io(X,2,3),D=LW,X.yield(J.isSheetOpen(),5);case 5:N=X.yieldResult;qxn(R,xc8(D));if(N){if(z&&J.currentTarget===z)return(Z=J.getContainer())==null||Z.closeSheet(),X.return();J.pendingData={data:M,target:Ici(J,z)};return X.return()}M.viewModel&&(M={viewModel:M.viewModel});(B=J.getContainer())==null||B.openSheet(M,z);J.currentTarget=z;case 3:_.X4(X);
WjY(R);_.eX(X,0);break;case 2:O=_.Qa(X),R.error=O,R.hasError=!0,X.jumpTo(3)}})};
w1.prototype.closeSheet=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield((z=M.getContainer())==null?void 0:z.closeSheet(),2);if(J.nextAddress!=4)return M.currentTarget=void 0,M.pendingData?J.yield(M.openSheet(M.pendingData.data,M.pendingData.target),4):J.jumpTo(0);M.pendingData=void 0;_.UI(J)})};
w1.prototype.isSheetOpen=function(){var M=this,z,J;return _.k(function(R){return R.return((J=(z=M.getContainer())==null?void 0:z.isSheetOpen())!=null?J:!1)})};
var Ici=function(M,z){if(!_.U("web_parent_target_for_sheets"))return z;var J,R;return(R=(J=M.getContainer())==null?void 0:J.getParentTarget(z))!=null?R:z};var S3=window.documentPictureInPicture;var G33=_.Ca(["dark"]),wdc=_.Ca(["system-icons"]),xgY=_.Ca(["typography"]),tZ0=_.Ca(["lang"]),jCn=_.Ca(["style"]),eCp=_.Ca(["dir"]),QCb=_.Ca(["rounded-container"]),Ugo=_.Ca(["style"]),Fb8=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],xM=function(M){this.JSC$18260_clientRoot=M;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
xM.prototype.openWindow=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return window.documentPictureInPicture&&_.Yo()&&!z.currentPipWindow?D.yield((J=S3?S3:null)==null?void 0:J.requestWindow(M),2):D.return(!1);if(D.nextAddress!=3){R=D.yieldResult;if(!R)return D.return(!1);R.addEventListener("pagehide",function(){Pww(z)});
R.addEventListener("resize",z.handlePipWindowResize);z.pipWindowResizeDelay=new _.Ju(function(){z.currentPipWindow&&_.S9(z.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.eU(z.currentPipWindow.innerWidth,z.currentPipWindow.innerHeight)])},R);
pd8(R);mgn(R);return D.yield(law(R),3)}if(!Iao())return D.return(!1);z.currentPipWindow=R;z.JSC$18260_eventForwarder=YGo(R,z.JSC$18260_clientRoot);z.pipWindowResizeDelay.start();return D.return(!0)})};
xM.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Pww=function(M){if(M.currentPipWindow){var z,J;(z=S3?S3:null)==null||(J=z.window)==null||J.close();M.currentPipWindow.removeEventListener("resize",M.handlePipWindowResize);var R;(R=M.pipWindowResizeDelay)==null||R.dispose();M.pipWindowResizeDelay=void 0;var D;(D=M.JSC$18260_eventForwarder)==null||D.stop();M.JSC$18260_eventForwarder=void 0;z=_.S(M.onCloseCallbacks);for(J=z.next();!J.done;J=z.next())J=J.value,J();M.onCloseCallbacks=[];M.currentPipWindow=null}};
xM.prototype.getWindow=function(){return this.currentPipWindow};
var S5G=function(M,z){var J;(J=M.onCloseCallbacks)==null||J.push(z)};
xM.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Yo()};
_.rX.Object.defineProperties(xM.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
xM[DW]=[Cgv];var Zwc=new _.Nh("PICTURE_IN_PICTURE_CONTROLLER");var g$w=function(M,z){this.lengthY=this.lengthX=0;this.lengthX=z.x-M.x;this.lengthY=z.y-M.y};var kcl=function(){},xbu=function(M,z){var J;
(J=M.headerElement)==null||J.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:z}))};var Bls=function(){};
Bls.prototype.openPopup=function(M,z,J,R){var D=this,N;return _.k(function(Z){if(!D.container)return Z.return();N={openPopupAction:{popup:z,popupType:J,uniqueId:M}};return Z.return(D.container.handleOpenPopupAction(N,R))})};
Bls.prototype.closePopup=function(M){this.container&&this.container.closePopup(M)};var Owl=function(){this.openTunnels=new Map},xdn=function(M,z,J){if(c6Y(J)){var R=_.KW(J,"gclid");
J={handleEvent:function(B){z&&!z.closed&&typeof z.postMessage==="function"&&B&&B.origin&&B.source===z&&B.data&&B.data.action==="gcl_setup"&&z.postMessage(Object.assign({},{action:"gcl_transfer"},R&&{gclid:R},{gadSource:2}),B.origin)}};
for(var D=_.S(M.openTunnels),N=D.next();!N.done;N=D.next()){var Z=_.S(N.value);N=Z.next().value;Z=Z.next().value;if(N.closed)try{window.removeEventListener("message",Z),M.openTunnels.delete(N)}catch(B){_.nc(B)}}z&&M.openTunnels.size<15&&(M.openTunnels.set(z,J),window.addEventListener("message",J))}};var Tli=function(){this.clientParams=new Map},IHS=function(M){for(var z=_.S(M.clientParams.keys()),J=z.next();!J.done;J=z.next())J=J.value,J.startsWith("yt-mini-app-share")&&M.clientParams.delete(J)};var Isl=function(M,z){_.wS.call(this);var J=this;this.shortsController=M;this.storeWithShorts=z;M=_.jx(this.storeWithShorts,_.zxw,function(R){if(R){var D,N=(D=J.shortsController.getRoot())==null?void 0:D.getPlayer(),Z;(D=(Z=J.shortsController.alternativePlayerContainerElement)==null?void 0:Z.getPlayerContainer())&&(N==null||N.appendTo(D))}else{var B;Z=(B=J.shortsController.alternativePlayerContainerElement)==null?void 0:B.getPlayerContainer().querySelector("#player");D=J.shortsController.activeIndex;
(B=(N=J.shortsController.getRoot())==null?void 0:N.querySelector('ytd-reel-video-renderer[id="'+D+'"] #player-container'))&&(Z==null||Z.appendTo(B,void 0,!0))}});
this.addOnDisposeCallback(M)};
_.w(Isl,_.wS);var t7=function(M,z,J,R,D){var N=this;this.storeWithShorts=M;this.ephemeralResponseStore=z;this.store=J;this.innertubeTransportService=R;this.innertubeTransportLoader=D;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.d4(_.k8);this.isShortsPipActive=_.d4(_.BX);this.nextReelVe=_.O3(56921);this.prevReelVe=_.O3(56922);this.backButtonVe=_.O3(22156);this.TEST_ONLY={getActiveModules:function(){return N.activeModules}}},oG5=function(M){M.unsubscribeFromStore=
_.jx(M.storeWithShorts,_.Mrb,function(z){M.initOrDisposeActiveModules(z);
!z&&M.storeWithShorts.getState().shorts.isFullscreen&&(_.Jd(document.documentElement),M.storeWithShorts.dispatch(_.r3u(!1)))});
M.initOrDisposeActiveModules(_.Mrb(M.storeWithShorts.getState()))},MG$,zsV,Xtm;
t7.prototype.initOrDisposeActiveModules=function(M){M?this.activeModules.push(new Isl(this,this.storeWithShorts)):(_.ru(this.activeModules),this.activeModules.length=0)};
t7.prototype.registerRootElement=function(M){this.rootElement=M;oG5(this)};
t7.prototype.getRoot=function(){return this.rootElement};
t7.prototype.setActiveIndex=function(M){this.activeIndex=M};
_.Lm2=function(M,z){var J,R,D,N,Z,B,O;return _.k(function(X){switch(X.nextAddress){case 1:return J=new su,(R=J.JSC$13024_getStoreKey(z))&&M.ephemeralResponseStore.has(R)?X.yield(M.ephemeralResponseStore.get(R),7):X.yield(Xtm(M,z),4);case 4:D=X.yieldResult;if(!R){X.jumpTo(3);break}N=kC(D,3600);return X.yield(M.ephemeralResponseStore.put(R,new _.e0(N)),3);case 7:D=(Z=X.yieldResult)==null?void 0:_.Dz(Z);case 3:return((B=D)==null?0:B.replacementEndpoint)&&(O=_.G(D.replacementEndpoint,_.je))&&D.sequenceContinuation&&
(O.sequenceParams=D.sequenceContinuation),X.return(D)}})};
MG$=function(M,z){z=(new n1).JSC$13024_getStoreKey(z);return!!z&&M.ephemeralResponseStore.has(z)};
zsV=function(M,z,J){var R,D,N,Z,B;_.k(function(O){if(O.nextAddress==1){R=new n1;D=R.JSC$13024_getStoreKey(z);if(!D)return O.return();if(J.reelWatchSequenceResponse)return N=kC(J.reelWatchSequenceResponse,3600),M.ephemeralResponseStore.put(D,new _.e0(N)),O.jumpTo(0);if(!M.ephemeralResponseStore.has(D))return O.jumpTo(0);B=J;return O.yield(M.ephemeralResponseStore.get(D),4)}B.reelWatchSequenceResponse=(Z=O.yieldResult)==null?void 0:_.Dz(Z);_.UI(O)})};
Xtm=function(M,z){var J=J===void 0?{}:J;var R,D,N;return _.k(function(Z){switch(Z.nextAddress){case 1:if(M.innertubeTransportService){R=M.innertubeTransportService;Z.jumpTo(2);break}if(!M.innertubeTransportLoader){_.$y(Error("ij"));Z.jumpTo(2);break}return Z.yield(M.innertubeTransportLoader(),4);case 4:R=Z.yieldResult;case 2:return Z.yield((D=R)==null?void 0:_.fn(D,z,J),5);case 5:return N=Z.yieldResult,Z.return(N)}})};
_.rX.Object.defineProperties(t7.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
t7[DW]=[KmV,_.lA,Pf,_.zw(_.cP),_.zw(hdV)];_.lsw=new _.Nh("STORAGE_MANAGER_TOKEN");var qGp=["touchmove","scroll"];var Wb0={onSpanEnd:function(M){if(M.parent==null){var z=M.name;_.nY(z);u5p(M,z)}}};var eww=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Qvi;
eww.prototype.enqueue=function(M,z){z===1?this.currentPersistentToast=M:this.queue.push(M);this.openToast()};
eww.prototype.openToast=function(){var M;(M=this.currentToast)!=null&&M.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.jk=new _.Nh("TOAST_MANAGER_TOKEN");var UNl=new _.Nh("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var vGm=new _.Nh("VIEW_TRANSITION_COORDINATOR_TOKEN");var Gcv=function(M){this.config=M;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;M=_.S(M.transitionConfigs);for(var z=M.next();!z.done;z=M.next())z=_.S(z.value).next().value,this.transitionTasksMap.set(z,[])};
Gcv.prototype.registerElement=function(M,z,J){J=J===void 0?!1:J;for(var R=_.S(Object.keys(z)),D=R.next(),N={};!D.done;N={viewTransitionName:void 0},D=R.next()){D=D.value;N.viewTransitionName=z[D];var Z=this.elementTasksMap.get(M),B=void 0;if((B=Z)==null?0:B.has(D)){_.hL(new _.xN("Element already registered for transition",M.tagName,D));break}Z=Z||new Map;Z.set(D,{beforeTransition:function(O){return function(){M.style.viewTransitionName=O.viewTransitionName}}(N),
afterTransition:function(){M.style.viewTransitionName&&(M.style.viewTransitionName="")},
runOnce:J});this.elementTasksMap.set(M,Z)}};
_.V9=function(M,z){var J=M.elementTasksMap.get(z);J&&(J.clear(),J.size===0&&M.elementTasksMap.delete(z))};
Gcv[DW]=[UNl];var wtc;_.xNw=_.Mf(function(M){return _.T("basic-content-view-model",{class:_.Qe("ytBasicContentViewModelHost",_.ba(M.className))},_.T(_.I,{cond:function(){return M.data().headline},
then:function(z){return _.T("div",{class:"ytBasicContentViewModelHeadline"},_.T(_.m3,{text:z}))}}),_.T(_.G4,{each:function(){return M.data().paragraphs||[]},
keyBy:"INDEX"},function(z){return _.T("div",{class:"ytBasicContentViewModelParagraph"},_.T(_.I,{cond:function(){var J=z();return!!(J.header||J.customHeader||J.headline)},
then:function(){return _.T(wtc,{paragraph:z})}}),_.T(_.I,{cond:function(){return z().asset||z().text},
then:function(){return _.T("div",{class:"ytBasicContentViewModelParagraphContent"},_.T(_.I,{cond:function(){return z().asset},
then:function(J){return _.T("div",{class:"ytBasicContentViewModelParagraphAsset"},_.T(_.t_,{data:J},{contentPreviewImageViewModel:_.BC}))}}),_.T(_.I,{cond:function(){return z().text},
then:function(J){return _.T("div",{class:"ytBasicContentViewModelParagraphText"},_.T(_.m3,{text:J}))}}))}}))}))},"Fe");
wtc=_.Mf(function(M){var z=M.paragraph;return _.T(_.MH,null,_.T(_.I,{cond:function(){return z().headline},
then:function(J){return _.T(_.m3,{text:J,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.T(_.t_,{data:function(){return z().header||z().customHeader}},{sectionHeaderViewModel:function(J){return _.T(_.lI,{data:J.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ge");var jvw=_.Mf(function(M){var z=_.AL("yt-expandable-metadata-header-view-model"),J=_.ol(function(R){if(!_.cn(_.Hn(R),z.value,["A".toString(),"BUTTON".toString()])){var D;(D=M.expandedCallback)==null||D.call(M,!1)}});
return _.T("yt-expandable-metadata-header-view-model",{el:z,class:"ytExpandableMetadataHeaderViewModelHost"},_.T(_.I,{cond:function(){return M.expanded()},
then:function(){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":J},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.T(_.I,{cond:function(){return M.data().expandedTitleImage},
then:function(R){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.T(_.rv,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R}))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.T(_.m3,{text:function(){return M.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.T(_.m3,{text:function(){return M.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.T(_.m3,{text:function(){return M.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.t_,{data:function(){return M.data().infoButton}},{buttonViewModel:_.lT}),_.T(_.t_,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
onClick:function(){var D;(D=M.expandedCallback)==null||D.call(M,!1)}})}})))},
else:function(){return _.T(tmw,Object.assign({},M))}}))},"He"),ptG=_.Mf(function(M){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.T(_.I,{cond:function(){return M.data().collapsedLabelImage},
then:function(z){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.T(_.rv,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:z,alt:""}))}}),_.T(_.m3,{text:function(){return M.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ie"),tmw=_.Mf(function(M){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.ol(function(){var z;return void((z=M.expandedCallback)==null?void 0:z.call(M,!0))})},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.T(_.I,{cond:function(){return M.data().collapsedImage},
then:function(z){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.T(_.rv,{width:16,height:16,data:z,alt:""}))}}),_.T(_.I,{cond:function(){return M.data().showLeadingCollapsedLabel},
then:function(){return _.T(ptG,Object.assign({},M))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.T(_.m3,{text:function(){return M.data().collapsedTitle}}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.I,{cond:function(){return!M.data().showLeadingCollapsedLabel},
then:function(){return _.T(ptG,Object.assign({},M))}}),_.T(_.t_,{data:function(){return M.data().infoButton}},{buttonViewModel:_.lT}),_.T(_.t_,{data:function(){return M.data().expandButton}},{buttonViewModel:function(z){return _.T(_.lT,{data:z.data,
onClick:function(){var J;(J=M.expandedCallback)==null||J.call(M,!0)}})}})))},"Je");_.Fdt=_.Mf(function(M){var z=_.S(_.eh(function(){return M.data().initiallyExpanded})),J=z.next().value,R=z.next().value,D,N=(D=_.JF().resolve(_.zw(_.Ah)))==null?void 0:D(),Z=function(){var B=M.data().colorData;
if(B)return N?B==null?void 0:B.darkColorPalette:B==null?void 0:B.lightColorPalette};
return _.T("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.UN({"background-color":function(){var B=Z();return(B==null?0:B.section2Color)?_.qG(B.section2Color):""}})},_.T(_.t_,{data:function(){return M.data().header}},{expandableMetadataHeaderViewModel:function(B){return _.T(jvw,{data:B.data,
expanded:function(){return!!J()},
expandedCallback:function(O){R(O)}})}}),_.T(_.I,{cond:function(){return J()},
then:function(){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.T(_.t_,{data:function(){return M.data().expandedContent}},{horizontalShelfViewModel:function(B){return _.T(_.WB,{data:B.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Z})},
videoSummaryContentViewModel:function(B){return _.T(Yd$,{data:B.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(B){return _.T(_.Xc,{data:B.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(B){return _.T(_.xNw,{data:B.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.T(_.t_,{data:function(){return M.data().expandedBottomButtons}},{buttonViewModel:function(B){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.T(_.lT,{data:B.data}))}}))}}))},"Ke");var Y5t=_.Mf(function(M){var z=M.text;var J=M.marqueeSpacing;var R=M.scrollDelay;var D=M.scrollDuration;var N=M.enableMarqueeScroll;M=M.large;var Z=_.S(_.kE(!1,void 0,"kfNqfd")),B=Z.next().value,O=Z.next().value,X=_.S(_.kE(0,void 0,"bYgZbf"));Z=X.next().value;var l=X.next().value,e=_.AL("marquee-scroll");X=_.AL("div");var Q=_.AL("span"),v=_.JF().resolve(_.Ce);_.jP(function(){if(N()){var y=Q.value.getBoundingClientRect().width,H=e.value.getBoundingClientRect().width;if(y>H){var q=(v==="ltr"?-1:1)*
(y+(J?J():16));Promise.resolve().then(function(){O(!0);l(q)})}}},"giRlme");
var x={},m={};return _.T("marquee-scroll",{class:_.Qe("ytMarqueeScrollHost",(x.ytMarqueeScrollHostLarge=M,x)),el:e},_.T("div",{id:"marquee-scroll-inner-container",class:_.Qe("ytMarqueeScrollInnerContainer",(m.ytMarqueeScrollAnimationEnabled=function(){return B()},m)),
el:X,style:_.UN({gap:J?(0,_.cB)(J):"16px","animation-duration":D?xWB(D):"16s","animation-delay":R?xWB(R):"3s","--marquee-translate":(0,_.cB)(Z)})},_.T("span",{el:Q,dir:"auto"},_.T(_.m3,{text:z,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.T(_.I,{cond:B,then:function(){return _.T("span",{"aria-hidden":"true",dir:"auto"},_.T(_.m3,{text:z,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Le");_.mNl=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;M=_.ol(function(){z().onTapCommand&&_.aE(z().onTapCommand);return!1});
var R=_.abw(),D=function(){return(J==null?void 0:J())===1?22:16},N={};
return _.T("reel-sound-metadata-view-model",{class:_.Qe("ytReelSoundMetadataViewModelHost",(N.ytReelSoundMetadataViewModelHostLarge=function(){return(J==null?void 0:J())===1},N)),
"on:click":M,tabindex:0,role:"button","on:keydown":R},_.T("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.T(_.I,{cond:function(){return z().musicIcon},
then:function(Z){return _.T(_.rv,{data:Z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:D})}}),_.T("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.T(Y5t,{text:function(){return z().soundMetadata},
enableMarqueeScroll:function(){return!!z().enableMarqueeScroll},
large:function(){return(J==null?void 0:J())===1}}))))},"Me");var gGl,svG,p8,Hwc,dNl,yiw,ulv,$Nu;gGl=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];svG=_.NC("wil_icon_max_concurrent_fetches",Infinity);
p8=function(M,z,J){var R=this;this.iconSet=M;this.appDirection=z;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.R3.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.U("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.U("wil_icon_network_first");this.renderWhenIdle=_.U("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.U("wil_icon_load_immediately");this.isPurging=!1;M=function(){R.cacheStorageAvailable&&(R.cacheStorageAsync=_.R3.caches.open("yt-icons").then(function(N){return R.cacheStorageSync=N}).catch(function(){R.cacheStorageAvailable=!1}))};
J=(J==null?void 0:J())||{};J=_.S(Object.entries(J));for(z=J.next();!z.done;z=J.next()){var D=_.S(z.value);z=D.next().value;D=D.next().value;D=XT(D);nGd(D);this.iconCache[z]=D.cloneNode(!0)}this.isPurging=hw5(this);this.isPurging instanceof Promise?this.isPurging.then(M):M()};
_.ftY=function(M,z){var J=M.resolveIcon(z);return J?M.renderingMode===1?yiw(M,J,M.renderingMode):(z=M.iconCache[J.url])?(z=z.cloneNode(!0),Hwc(M,z),yiw(M,J,M.renderingMode,z)):_.cim(M,J).then(function(R){var D=R?0:1;Hwc(M,R);return yiw(M,J,D,R)}):(_.hL(new _.xN("Icon not found",{iconShape:z})),function(){})};
Hwc=function(M,z){if(z){M.counter+=1;M="_yt"+M.counter;z=[z].concat(_.Yj(z.getElementsByTagName("*")));z=_.S(z);for(var J=z.next();!J.done;J=z.next())if(J=J.value,J.tagName==="style"&&J.textContent)J.textContent=dNl(J.textContent,M,!0);else for(var R=_.S(J.attributes),D=R.next();!D.done;D=R.next()){D=D.value;D.name==="id"&&(D.value+=M);["mask","fill","clip-path"].includes(D.name)&&(D.value=dNl(D.value,M));if(D.name==="style"){var N=J.style;try{N.cssText=dNl(N.cssText,M,!0)}catch(l){var Z=void 0,B=
void 0,O=void 0,X=void 0;Fs({error:((Z=l)==null?void 0:(O=(B=Z).toString)==null?void 0:O.call(B))||"",el:J.outerHTML,style:!!N,cssText:(X=N)==null?void 0:X.cssText})}}D.name==="xlink:href"&&(D.value=D.value.replace(/#(.*)/,"#$1"+M))}}};
dNl=function(M,z,J){var R=/url\(["']?#(.*?)["']?\)/;(J===void 0?0:J)&&(R=/url\(["']?#(.*?)["']?\)/g);return M.replace(R,"url(#$1"+z+")")};
yiw=function(M,z,J,R){return function(D,N){var Z=Object.assign({},{iconColor:"currentcolor",iconWidth:z.size+"px",iconHeight:z.size+"px",iconDisplay:"block"},N);N=_.lm("DIV");var B=Z.iconColor,O=Z.iconFilter;Z="width: "+Z.iconWidth+"; height: "+Z.iconHeight+"; display: "+Z.iconDisplay+";";O&&(Z+=" filter: "+O+";");J===0&&(Z+=" fill: "+B+";");J===1&&(O=z.url,Z+=" -webkit-mask: url("+O+") no-repeat center / cover; mask: url("+(O+") no-repeat center / cover; background-color: ")+B);z.allowMirroring&&
M.appDirection==="rtl"&&(Z+=" transform: scale(-1, 1); transform-origin: center center;");N.setAttribute("style",Z);J===0&&R&&N.appendChild(R);D.appendChild(N)}};
_.cim=function(M,z){var J,R,D;return _.k(function(N){J=function(Z){return us(Z)};
R=z.url;if(!KdG(R))throw Error("lj");D=$Nu(M,R);return N.return(D.then(function(Z){return Z.clone().text()}).then(function(Z){var B=J(Z);
Z=z.size;var O=_.lm("DIV");_.C3(O,B);B=_.eJ(O.firstElementChild!==void 0?O.firstElementChild:_.VaJ(O.firstChild,!0));Z=nGd(B,Z);M.iconCache[R]=Z.cloneNode(!0);delete M.responsePromises[R];return Z}).catch(function(){}))})};
ulv=function(M){var z,J=(z=M.requestAninmationFrameResolver)==null?void 0:z.promise;J||(M.requestAninmationFrameResolver=new _.Iz,J=M.requestAninmationFrameResolver.promise,_.R3.requestAnimationFrame(function(){var R;(R=M.requestAninmationFrameResolver)==null||R.resolve();M.requestAninmationFrameResolver=null}));
return J};
$Nu=function(M,z){var J,R;return _.k(function(D){if(D.nextAddress==1)return M.waitForAnimationFrame?D.yield(ulv(M),2):D.jumpTo(2);J=M.responsePromises[z];J||(R=function(){var N,Z,B;return _.k(function(O){switch(O.nextAddress){case 1:if(!M.cacheStorageAvailable){N=void 0;O.jumpTo(2);break}if(Z=M.cacheStorageSync){O.jumpTo(3);break}return O.yield(M.cacheStorageAsync,4);case 4:Z=O.yieldResult;case 3:N=Z;case 2:return B=N,M.isNetworkFirstStrategy?O.return(M.fetchAndUpdateCache(z,B).catch(M.getCacheStorageResponse.bind(M,
z,B))):O.return(M.getCacheStorageResponse(z,B).catch(M.fetchAndUpdateCache.bind(M,z,B)))}})},J=M.renderWhenIdle?new Promise(function(N,Z){_.x4(_.no,function(){R().then(N).catch(Z)},10)}):R(),M.responsePromises[z]=J);
return D.return(J.catch(function(N){delete M.responsePromises[z];Fs({error:(N==null?0:N.toString)?N.toString():"",url:z});throw N;}))})};
p8.prototype.fetchAndUpdateCache=function(M,z){var J=this;return _.k(function(R){return R.return(q5s(J,M).then(function(D){Wdi(J,M,D,z);return D}))})};
var q5s=function(M,z){var J;return _.k(function(R){if(M.numFetches<svG)return M.numFetches+=1,R.return(ast(M,z).finally(function(){--M.numFetches;if(Object.keys(M.queuedResponseResolvers).length){var D=Object.keys(M.queuedResponseResolvers)[0],N=M.queuedResponseResolvers[D];delete M.queuedResponseResolvers[D];N.resolve(q5s(M,D))}}));
J=new _.Iz;M.queuedResponseResolvers[z]=J;return R.return(J.promise)})},ast=function(M,z,J){J=J===void 0?2:J;
var R;return _.k(function(D){R={credentials:"same-origin",priority:"low"};return D.return(_.R3.fetch(z,R).then(function(N){return N.ok?N:Promise.reject(Error("mj`"+N.status+"`"+N.statusText))}).catch(function(N){if(J>0)return ast(M,z,J-1);
throw N;}))})},Wdi=function(M,z,J,R){_.k(function(D){return R?D.return(new Promise(function(N){_.x4(_.no,function(){var Z,B;
return _.k(function(O){switch(O.nextAddress){case 1:if(!M.isNetworkFirstStrategy){Z=void 0;O.jumpTo(2);break}return O.yield(R.match(z).catch(function(){}),3);
case 3:Z=O.yieldResult;case 2:if(B=Z){O.jumpTo(4);break}return O.yield(R.put(z,J.clone()).catch(function(X){Fs({error:(X==null?0:X.toString)?X.toString():"",url:z})}),4);
case 4:N(),_.UI(O)}})},50)})):D.return()})};
p8.prototype.getCacheStorageResponse=function(M,z){return _.k(function(J){return z?J.return(z.match(M).then(function(R){return R&&R.ok?R:Promise.reject()})):J.return(Promise.reject())})};
var nGd=function(M,z){z===void 0||M.getAttribute("viewBox")||M.setAttribute("viewBox","0 0 "+z+" "+z);M.setAttribute("focusable","false");M.setAttribute("aria-hidden","true");try{M.style.pointerEvents="none",M.style.display="inherit",M.style.width="100%",M.style.height="100%"}catch(D){var J;Fs({error:((J=D)==null?0:J.toString)?D.toString():""});try{M.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(N){var R;Fs({error:((R=N)==null?0:R.toString)?N.toString():
""})}}return M},KdG=function(M){for(var z=_.S(gGl),J=z.next();!J.done;J=z.next())if(M.startsWith(J.value)&&M.endsWith(".svg"))return!0;
return!1};
p8.prototype.resolveIcon=function(M){return this.iconSet.resolveIcon(M)};
var Fs=function(M){_.yA(new _.xN("Error in IconManager",M))},hw5=function(M){if(_.U("wil_icons_cache_purge_killswitch"))return!1;
try{var z=_.R3.localStorage}catch(N){return!1}if(!z||!M.cacheStorageAvailable)return!1;var J=function(N){try{var Z;(Z=z)==null||Z.setItem("yt-icons-last-purged",N.toString())}catch(O){var B;Fs({error:((B=O)==null?0:B.toString)?O.toString():""})}},R=Number(z.getItem("yt-icons-last-purged"));
if(!R)return R=new Date,R=R.setDate(R.getDate()-Math.floor(Math.random()*90+1)),J(R),!1;if(function(N,Z){N=new Date(N);Z=new Date(Z);return Z.getMonth()-N.getMonth()+12*(Z.getFullYear()-N.getFullYear())}(R,Date.now())<3)return!1;
try{return _.R3.caches.delete("yt-icons").then(function(N){N&&J(Date.now());return N}).catch(function(){return!1}).finally(function(){M.isPurging=!1})}catch(N){var D;
Fs({error:((D=N)==null?0:D.toString)?N.toString():""});return!1}};
p8[DW]=[Wuu,_.Ce,_.zw(Egt)];_.YM=function(M,z){this.iconManager=M;this.iconsToFetch=z};
_.YM[DW]=[_.XH,_.zw(VQu)];var Vmw=function(){};var EGv=function(M,z,J){this.requestKey=M;this.fW1=z;this.o9R=J;this.nKa=function(){return new XMLHttpRequest};
this.ejQ=void 0;this.u2o=[]};
EGv.prototype.getLatestChallengeResponse=function(){return this.o9R};
var iOV=function(M,z,J){var R,D,N,Z;return _.k(function(B){if(B.nextAddress==1){_.nY("attestation_challenge_fetch");_.hd("att_fs",void 0,"attestation_challenge_fetch");if(!M.ejQ)throw new _.se(9,"Missing fetcher");return B.yield(M.ejQ(z,J),2)}R=B.yieldResult;N=(D=R)==null?void 0:D.bgChallenge;if(!N)throw new _.se(15,"Missing field");M.o9R=R;M.u2o.forEach(function(O){O(R)});
Z=qp3(N);_.hd("att_fc",void 0,"attestation_challenge_fetch");NLp("attestation_challenge_fetch");return B.return(Z)})},Q2S=function(M,z){var J,R,D,N,Z;
return _.k(function(B){switch(B.nextAddress){case 1:J=new Z0(100,3E5,.25,2),R=void 0;case 2:if(!(J.currBackoffCount_<10)){B.jumpTo(4);break}_.Io(B,5);if(!(J.currBackoffCount_>0)){B.jumpTo(7);break}return B.yield(VZe(J.getValue()),7);case 7:return B.yield(fs5(M,z),9);case 9:return D=B.yieldResult,B.return(D);case 5:N=_.Qa(B);N instanceof _.se?R=N:(Z=N instanceof Error?N.message:"Unknown",R=new _.se(9,Z));PYa(J);B.jumpTo(2);break;case 4:if(R)throw R;throw new _.se(9,"Unknown error");}})},fs5=function(M,
z){z=Kap($xQ(new dxB,z),M.requestKey);
var J=new _.Iz,R=M.nKa();R.open("POST",M.fW1);R.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");R.setRequestHeader("Content-Type","application/json+protobuf");R.onload=function(){if(_.yd8(R)){var D=Lqk(R.responseText);J.resolve(D)}else J.reject(new _.se(_.Ag3(_.kN(R)),R.statusText))};
R.onerror=function(){J.reject(new _.se(_.Ag3(_.kN(R)),R.statusText))};
R.send(z.serialize());return J.promise};var Ail=function(M){this.networkStatusManager=M;this.isDownloaded=E6e===void 0?function(){return!1}:E6e;
this.isReady=!1;this.iEh=Ldw(this)},Ldw=function(M){var z;
return _.k(function(J){if(J.nextAddress==1)return J.yield(YR8(),2);if(J.nextAddress!=3)return z=J.yieldResult,J.yield(kAg(z),3);M.iW=J.yieldResult;fae(M.iW).then(function(){M.isReady=!0});
return J.return(M.iW)})},iwd=function(M,z,J){M.iW?(M=M.iW.xN0({u0:J,
pMM:!0,fxB:!0}),z.serviceIntegrityDimensions={poToken:M}):_.nc(Error("oj"))};
Ail.prototype.processContext=function(M){var z=this;if(!M.input.match(_.MG(M0V)))return _.r$();var J=M.innerTubeRequest,R=J.videoId;return!R||this.isDownloaded(J)||this.networkStatusManager&&!this.iW&&!this.networkStatusManager.isNetworkAvailable()?_.r$():this.iW?this.isReady?(iwd(this,J,R),_.r$()):new bU(fae(this.iW).then(function(){iwd(z,J,R)})):new bU(this.iEh.then(function(D){return _.k(function(N){if(N.nextAddress==1)return N.yield(fae(D),2);
iwd(z,J,R);_.UI(N)})}))};var Cwm=new _.Nh("WEB_PO_CONTEXT_PROCESSOR");var bwv=function(M,z){var J=this;this.o3k=0;var R;this.rty=(R=z==null?void 0:z.rty)!=null?R:window;this.networkStatusManagerPromise=z==null?void 0:z.networkStatusManagerPromise;var D;this.requestKey=(D=z==null?void 0:z.requestKey)!=null?D:_.Sz("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var N;this.vkL=(N=z==null?void 0:z.vkL)!=null?N:function(O){return new Ks(O)};
var Z;R=(Z=z==null?void 0:z.cnr)!=null?Z:function(O,X,l){return new EGv(O,X,l)};
this.bgChallenge=qp3(M.bgChallenge);this.ttlSeconds=WP3(Lr(M.challenge||""));this.sC=R(this.requestKey,_.U("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.R3.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",M);E$0(this.sC);var B;this.gHi=(B=z==null?void 0:z.gHi)!=null?B:function(O){_.YS(J.rty.document,"visibilitychange",function(){J.rty.document.visibilityState===
"visible"&&O()})}},Mqw=function(M){if(!M.vm){var z={maxAttempts:5,
rzL:M.ttlSeconds*1E3};Lb8(M.rty);M.vm=M.vkL({sC:M.sC,wmR:{disable:_.U("html5_web_po_disable_remote_logging"),lR:"aGIf",i35:msY("html5_web_po_experiment_ids"),v9R:_.U("wpo_dis_lfdms")?0:1E3,psR:function(R){var D=MKV.get(R);D||(D=new rUJ(R),D=new Tz(D),MKV.set(R,D));return D}},
jB8:z,mPR:M.bgChallenge,y8H:A6H});M.o3k=Date.now();VU$(M.vm,function(){M.o3k=Date.now()});
ny8(M.vm,function(){return _.k(function(R){return R.return(ric(M))})});
var J=M.eHc.bind(M);M.networkStatusManagerPromise&&M.ttlSeconds>0&&M.networkStatusManagerPromise.then(function(R){R.listen("publicytnetworkstatus-online",J)});
M.gHi(J)}};
bwv.prototype.eHc=function(){if(Date.now()>this.o3k+this.ttlSeconds*1E3){var M;(M=this.vm)==null||aoa(M)}};
var ric=function(M){if(M.tLM)return M.tLM;if(!M.vm)throw Error("pj");M.tLM=new WR({vm:M.vm,sC:M.sC,jxR:!0,onError:A6H});return M.tLM},CzY=function(M,z){M=new bwv(M,z);
Mqw(M);ric(M)};var ms=function(M,z){this.store=M;this.queue=[];z==null||z.addEventListener("yt-navigate-start",this.reset.bind(this))};
ms.prototype.enqueue=function(M){var z=M.command,J=M.durationMs,R=M.elementToFocus;var D=M.label;var N=M.elementToFocus;M.command?D=_.e9("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:D,shortcut:_.e9("SHIFT_PLUS_ENTER")}):N&&(M=D+". "+_.e9("SHIFT_PLUS_ENTER")+" for more information.",D=_.e9("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:D,shortcut:_.e9("SHIFT_PLUS_ENTER")},M));J={announcement:D,durationMs:J!=null?J:8E3};z?J.command=z:R&&(R.classList.add("ephemeral-action-focusable-element"),J.selector=R.tagName+
".ephemeral-action-focusable-element");this.queue.push(J);ziv(this)};
ms.prototype.activate=function(M){var z=_.Pzw(this.store.getState());if(z){if(z==null?0:z.command)_.u5(z.command),this.store.dispatch(A3V(null));if(z==null?0:z.selector)z=document.querySelector(z.selector),_.Low(z);M.preventDefault()}};
var ziv=function(M){if(!_.Pzw(M.store.getState())&&M.queue.length){var z=M.queue.shift();z&&(M.previousAnnouncement===z.announcement&&(z.announcement+="\u00a0"),M.store.dispatch(A3V(z)),M.previousAnnouncement=z.announcement,M.timeoutId=setTimeout(function(){if(z.selector){var J;(J=document.querySelector(z.selector))==null||J.classList.remove("ephemeral-action-focusable-element")}M.store.dispatch(A3V(null));ziv(M)},z.durationMs))}};
ms.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(A3V(null));this.queue.length=0;this.timeoutId=void 0};
ms[DW]=[_.Vo,_.zw(_.g_)];_.g1=new _.Nh("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Jr5=window.AbortController||kh$;var Rim=new _.Nh("AUTH_SERVICE_TOKEN");var MS0=_.Ca(["about:blank"]),r68;var s9=new _.Nh("API_IFRAME_TOKEN"),DEw=new _.Nh("FETCH_FN_TOKEN"),Nid=new _.Nh("PARSE_FN_TOKEN"),Psw=new _.Nh("WINDOW_REQUEST_TOKEN"),Swl=new _.Nh("TEXT_DECODER_TOKEN");var iW$;iW$=new _.Nh("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Z3i=new _.Nh("MISC_UI_SHARED_FLAGS_TOKEN");var kAl=function(){};
kAl.prototype.getFlag=function(M){if(M.configType!==2)throw Error("qj");return Bil(M)};
var Bil=function(M){switch(M.flagType){case "bool":return _.U(M.flagName);case "int":return _.hS(_.NC(M.flagName));case "double":return _.NC(M.flagName);case "string":return _.Sz(M.flagName);case "int32_list":return msY(M.flagName);case "int64_list":return msY(M.flagName).map(function(z){return _.hS(z)});
case "string_list":return _.ZR(M.flagName);default:throw Error("rj");}};var n8=function(M,z,J){z=z===void 0?{}:z;KC.call(this,J===void 0?"uninitialized":J);this.env=M;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];z.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=z.shouldWaitOnAsyncImmediate)};
_.w(n8,KC);n8.prototype.init=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(M(z.env),2):(M(z.env),R.jumpTo(2));if(R.nextAddress!=4)return z.jobSet?R.yield(z.jobSet.completedResolver.promise,4):R.jumpTo(4);J=_.Eb();J.parkOrScheduleJob(function(){z.transition("rendering")},10,"ci");
_.UI(R)})};
n8.prototype.initialRender=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(M(z.env),2):(M(z.env),R.jumpTo(2));if(R.nextAddress!=4)return z.jobSet?R.yield(z.jobSet.completedResolver.promise,4):R.jumpTo(4);J=_.Eb();J.parkOrScheduleJob(function(){z.transition("rendered")},10,"cr");
_.UI(R)})};
n8.prototype.afterRenderImmediate=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(M(z.env),2):(M(z.env),R.jumpTo(2));if(R.nextAddress!=4)return z.jobSet?R.yield(z.jobSet.completedResolver.promise,4):R.jumpTo(4);J=_.Eb();J.parkOrScheduleJob(function(){z.transition("after-render-deferred")},10,"carml");
_.UI(R)})};
n8.prototype.afterRenderDeferred=function(M){var z=this;return _.k(function(J){M(z.env);_.UI(J)})};var O3w;_.yU("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});O3w={};_.TiG=(O3w.CSI=SMw(),O3w.ECATCHER=PCo(),O3w);var IdG={},oqs=(IdG.rendered={priority:0,callback:function(M){hJv(M.injector.resolve(tL))}},IdG);var rfG=new _.Nh("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),X4t=new _.Nh("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var ldc=function(M){this.callbackFnMap=M;this.configMap={}};
ldc.prototype.handleResponse=function(M){var z;if(M=(z=M.responseContext)==null?void 0:z.serviceTrackingParams)for(z=_.S(M),M=z.next();!M.done;M=z.next()){M=M.value;var J=M.params,R=M.service;if(J&&R){this.configMap[R]||(this.configMap[R]=new Fm$);M=this.configMap[R];var D=void 0,N=(D=this.callbackFnMap)==null?void 0:D[R];J=_.S(J);for(R=J.next();!R.done;R=J.next())D=R.value,R=D.key,D=D.value,R&&D&&(M.set(R,D),N&&N(R,D))}}};
ldc[DW]=[_.zw(X4t)];var eiw=!1,TmR=0,Z_3=null,O_R=null;var Qrl=new _.Nh("NETWORK_SLI_TOKEN");var UE5=function(M,z,J,R,D){this.networkSli=M;this.fetchFn=z;this.parseFn=J;this.requestFn=R;this.JSC$18385_textDecoder=D};
UE5.prototype.fetch=function(M,z,J){var R=this,D,N,Z;return _.k(function(B){D=vqw(R,M,z);Z=(N=R.fetchFn)!=null?N:fetch;return B.return(Z(D).then(function(O){return R.handleResponse(O,J)}).catch(function(O){_.yA(O);
if((J==null?0:J.expectJsonStrict)&&O instanceof Ff&&O.errorType===1)return Promise.reject(O)}))})};
var Rku=function(M,z,J,R){var D,N,Z,B,O,X,l;return _.k(function(e){switch(e.nextAddress){case 1:return D=vqw(M,z,J),_.Io(e,2),e.yield(fetch(D),4);case 4:N=e.yieldResult;_.ab(e,3);break;case 2:throw _.Qa(e),new Ff(2,"Failed to parse streaming response",D.url);case 3:if(!N.redirected&&!N.ok)throw(Z=M.networkSli)==null||Z.failure(),new _.xN("Streaming fetch request not ok",D.url);if(!N.body)throw new _.xN("No response body in streaming response",D.url);B={};if(_.U("web_streaming_fast"))return O=N.body.getReader(),
e.return(GAd(M,O,B,R));X=N.body.pipeThrough(new TextDecoderStream).getReader();l=new _.Ov;return e.return(w4l(M,X,l,Xk8,B,R))}})},vqw=function(M,z,J){if(M.networkSli){var R=_.Ib(_.Ms(z,"key"))||"/UNKNOWN_PATH";
M.networkSli.start(R)}R=J;_.U("wug_networking_gzip_request")&&(R=qVY(J));var D;return new ((D=M.requestFn)!=null?D:window.Request)(z,R)},GAd=function(M,z,J,R){var D,N,Z,B,O,X,l,e,Q,v,x;
return _.k(function(m){switch(m.nextAddress){case 1:D=M.JSC$18385_textDecoder?new M.JSC$18385_textDecoder("utf-8"):new TextDecoder("utf-8"),N="",Z=function(y){y=y.trim();y.length!==0&&y!=="]"&&y!=="["?(y.startsWith("[")&&(y=y.substring(1)),y.endsWith("]")&&(y=y.slice(0,-1)),y.endsWith(",")&&(y=y.slice(0,-1)),y=y.trim()):y=void 0;if(y)try{var H=JSON.parse(y);Xk8(J,H);R==null||R(J,H)}catch(q){throw new Ff(1,"Failed to parse streaming response",y);}},_.Io(m,2,3);
case 5:return m.yield(z.read(),8);case 8:B=m.yieldResult;O=B.value;if(X=B.done)return N.length>0&&Z(N),l=void 0,(l=M.networkSli)==null||l.success(),m.return(J);N+=D.decode(O,{stream:!0});e=N.split("\n");N=e.pop()||"";Q=_.S(e);for(v=Q.next();!v.done;v=Q.next())x=v.value,Z(x);m.jumpTo(5);break;case 3:_.X4(m);z.releaseLock();_.eX(m,0);break;case 2:throw _.Qa(m),new Ff(1,"Failed to parse streaming response");}})},w4l=function(M,z,J,R,D,N){var Z,B,O,X,l,e,Q,v,x;
return _.k(function(m){if(m.nextAddress==1)return m.yield(z.read(),2);Z=m.yieldResult;B=Z.value;if(O=Z.done)return(X=M.networkSli)==null||X.success(),m.return(D);try{l=J.parse(B)}catch(y){throw new Ff(1,"Failed to parse streaming response",B);}if(l!=null)for(e=_.S(l),Q=e.next();!Q.done;Q=e.next())v=Q.value,R(D,v),x=void 0,(x=N)==null||x(D,v);return m.return(w4l(M,z,J,R,D,N))})};
UE5.prototype.handleResponse=function(M,z){var J,R=(J=this.parseFn)!=null?J:JSON.parse;J=M.text().then(function(D){if((z==null?0:z.jspbResponseCtor)&&M.ok)return KAb(z.jspbResponseCtor,D);D=D.replace(")]}'","");if((z==null?0:z.expectJsonStrict)&&D)try{var N=R(D)}catch(B){throw new Ff(1,"JSON parsing failed after fetch");}var Z;return(Z=N)!=null?Z:R(D)});
M.redirected||M.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),J=J.then(function(D){_.yA(new _.xN("Error: API fetch failed",M.status,M.url,D));return Object.assign({},D,{errorMetadata:{status:M.status}})}));
return J};
UE5[DW]=[_.zw(Qrl),_.zw(DEw),_.zw(Nid),_.zw(Psw),_.zw(Swl)];var xE5=new _.Nh("NETWORK_MANAGER_TOKEN");var tqw=[1,2,4,8,16,30],p4i=function(M){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=M.maxTimeMs;this.maxFrameCount=M.maxFrameCount===void 0?Math.ceil(60*M.maxTimeMs/1E3):M.maxFrameCount;M=_.S(tqw);for(var z=M.next();!z.done;z=M.next())this.brokenFrameSummarizers.push(new jrG(z.value/60*1E3))},FA5=function(M){var z=M.frameCountInternal>=M.maxFrameCount;
return M.elapsedTimeMs>=M.maxTimeMs||z};
p4i.prototype.summarize=function(){for(var M=[],z=_.S(this.brokenFrameSummarizers),J=z.next();!J.done;J=z.next())J=J.value,J=J.brokenFrameCount!==0?{severityMs:Math.round(J.targetFrameTimeMs),eventCount:J.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(J.averageDurationBetweenEventsMs)}:void 0,J&&M.push(J);return{summaries:M,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.rX.Object.defineProperties(p4i.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 jrG=function(M){this.targetFrameTimeMs=M;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.rX.Object.defineProperties(jrG.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var YwN=function(){};
YwN.prototype.start=function(M,z){var J=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var R=new p4i({maxTimeMs:M});this.monitor=R;this.lastSummaryInternal=void 0;this.metadataToLog=z;return new Promise(function(D){var N=function(Z){if(Z===void 0)J.stop(),D(void 0);else if(J.monitor!==R)Z=Object.assign({},R.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),D(Z);else{var B=J.monitor;if(!FA5(B)){B.frameCountInternal++;if(B.prevTime===
void 0)B.startTime=Z;else for(var O=Z-B.prevTime,X=_.S(B.brokenFrameSummarizers),l=X.next();!l.done;l=X.next()){l=l.value;var e=l.currTimeMs;l.currTimeMs+=O;O>l.targetFrameTimeMs+2&&(l.brokenFrameCount++,l.timeOfFirstBrokenFrameMs===void 0&&(l.timeOfFirstBrokenFrameMs=e),l.timeOfLastBrokenFrameMs=e)}B.prevTime=Z}FA5(J.monitor)?D(J.stop()):_.no.addJob(N,5,0)}};
_.no.addJob(N,5,0)})};
YwN.prototype.stop=function(M){if(!this.monitor)return this.lastSummaryInternal;var z=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(z.monitoringDurationMs){M=M!=null?M:this.metadataToLog;var J={droppedFramesSummary:z,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};M&&(J[M.type]=M.data);_.gP("manualSmoothnessMeasurement",J)}this.monitor=void 0;this.lastSummaryInternal=z;this.metadataToLog=void 0;return z};_.mE5=new _.Nh("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var gqt;gqt=function(M){this.JSC$18408_expiringStorage=new jz(M)};
_.srG=function(M){if(_.IMo()&&(M=_.Qsw(_.Gw()+"::"+M)))return new gqt(M)};
gqt.prototype.set=function(M,z,J){J=J!==void 0?Date.now()+J:void 0;this.JSC$18408_expiringStorage.set(M,z,J)};
gqt.prototype.get=function(M){return this.JSC$18408_expiringStorage.get(M)};
gqt.prototype.remove=function(M){this.JSC$18408_expiringStorage.remove(M)};var nqw=new _.Nh("SESSION_STORAGE");_.h7=function(){};
_.h7.getInstance=function(){var M=_.qH("ytglobal.storage_");M||(M=new _.h7,_.b9("ytglobal.storage_",M));return M};
_.h7.prototype.estimate=function(){var M,z,J;return _.k(function(R){M=navigator;return((z=M.storage)==null?0:z.estimate)?R.return(M.storage.estimate()):((J=M.webkitTemporaryStorage)==null?0:J.queryUsageAndQuota)?R.return(oXn()):R.return()})};
_.b9("ytglobal.storageClass_",_.h7);var mWH=!!(DP[1]>>14&1);var GXp=0;var YMG=!1;var hil=_.Ca(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),yrl=_.Ca(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Kw5={"/":_.tm,"/?feature=ytca":_.tm,"/feed/downloads":_.bG3};var l2=function(M,z,J){this.JSC$18424_upliftPromise=M;this.store=z;this.JSC$18424_persistentStorePromiseAccessor=J};
l2.prototype.shouldPreferLocalResponse=function(M){return M.browseId==="FEdownloads"||M.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?!0:!1};
l2.prototype.localInnertubeResponse=function(M){var z=this;return _.k(function(J){return M.browseId==="FEdownloads"?_.U("kevlar_modern_downloads_page")?J.return(H3v(z)):J.return(crl(z)):M.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?J.return(dEG(z)):J.return(Promise.reject(Error("tj")))})};
l2.prototype.canProvideFallbackResponse=function(){return!0};
l2.prototype.localFallbackInnertubeResponse=function(M){var z=this,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return N.yield(z.JSC$18424_persistentStorePromiseAccessor(),2);case 2:J=N.yieldResult;if(M.browseId!=="SPaccount_downloads"||!J){N.jumpTo(3);break}return N.yield(VMG(J),4);case 4:if(R=N.yieldResult)return N.return(_.Dz(R));case 3:return M.browseId==="FEwhat_to_watch"?N.return(KAN(z)):(D=_.U("web_offline_continuation_automatic_retry")||_.U("web_offline_continuation_retry_button"))&&
M.continuation?N.return($Ew(z)):N.return(uqw(z))}})};
var KAN=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$18424_upliftPromise,2);z=_.Ybo(M.store.getState().entities);return z.length?J.return(qww(M,z)):J.return(uqw(M))})},crl=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$18424_upliftPromise,2);if(R.nextAddress!=3)return z=WAc([{offlineItemSectionRenderer:{}}]),R.yield(ads(M,z),3);J=R.yieldResult;J.onResponseReceivedActions=[vX("REFRESH_DOWNLOADS")];return R.return(J)})},H3v=function(M){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y;
return _.k(function(H){if(H.nextAddress==1)return H.yield(M.JSC$18424_upliftPromise,2);if(H.nextAddress!=3)return z=M.store.getState(),J=z.entities,R=_.gA(J),D=_.sh(J),N=_.P_e(z),Z=_.N_n(z),B=_.SE8(z),O=_.sVY(J),X=_.tN(R),l=_.nD(J),e=_.HNY(J),Q=_.kNH(z),v=_.dA(z),x={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.I9o(R,D,O,e,N,Z,X,l,B,Q,v),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},m="",_.U("kevlar_modern_downloads_skip_downloads_title")||
(m=_.e9("DOWNLOADS",void 0,"Downloads")),H.yield(Vqw(M,x,m),3);y=H.yieldResult;y.onResponseReceivedActions=[vX("REFRESH_DOWNLOADS")];return H.return(y)})},dEG=function(M){var z,J,R,D,N,Z,B,O,X;
return _.k(function(l){if(l.nextAddress==1)return l.yield(M.JSC$18424_upliftPromise,2);if(l.nextAddress!=3)return z=M.store.getState(),J=z.entities,R=_.gA(J),D=_.tN(R),N=_.nD(J),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Xr3(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},B=_.e9("SMART_DOWNLOADS",void 0,"Smart downloads"),O=Obc(D,N),l.yield(Vqw(M,Z,B,O),3);X=l.yieldResult;X.onResponseReceivedActions=
[vX("REFRESH_DOWNLOADS")];return l.return(X)})},uqw=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(Rh(M.JSC$18424_upliftPromise,M.store),2);z=R.yieldResult;J=WAc([uu8(z)]);return R.return(ads(M,J))})},$Ew=function(M){var z,J,R,D;
return _.k(function(N){if(N.nextAddress==1)return z={},J=M.store.getState().continuation.continuationCommand,_.hh(z,_.uP,J),N.yield(Rh(M.JSC$18424_upliftPromise,M.store,z,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);R=N.yieldResult;D={};_.hh(D,_.mkQ,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:R}}}],targetId:"browse-feedFEwhat_to_watch"});return N.return({responseContext:{},onResponseReceivedActions:[D]})})},WAc=function(M){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:M}}}}]}}},qww=function(M,z){var J,R;
return _.k(function(D){var N={contents:Gy(z)};J=N&&N.contents?N:{};_.U("kevlar_modern_downloads_page")&&(J=Object.assign({},_.l9b(z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:J}}}]}};return D.return(ads(M,R))})},ads=function(M,z){var J,R;
return _.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$18424_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3)return J=D.yieldResult,D.yield(N5(J),3);R=D.yieldResult;return D.return({responseContext:{},contents:z,topbar:R})})},Vqw=function(M,z,J,R){var D,N;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(M.JSC$18424_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return D=Z.yieldResult,Z.yield(N5(D),3);N=Z.yieldResult;var B=Z.return;var O=J;var X=R;O=O===void 0?"":O;X=X===void 0?"":X;O={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:O}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.e9("SETTINGS",void 0,"Settings"),accessibilityText:_.e9("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:_.Mv("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:O};
return B.call(Z,{responseContext:{},contents:z,topbar:N,header:{pageHeaderRenderer:O}})})};var Eql=function(){this.moduleRegistry={};this.fetchCount=0};
Eql.prototype.isFetching=function(){return this.fetchCount>0};
var Wf=function(M,z){M.moduleRegistry[z.toString()]={asyncId:z,isFetching:!1};return M};
Eql.prototype.JSC$18435_loadModules=function(){for(var M=this,z=new Map,J=[],R=_.S(_.H4.apply(0,arguments)),D=R.next();!D.done;D=R.next()){D=D.value;var N=this.moduleRegistry[D];N?N.resolver?z.set(D,N.resolver):(N.resolver=new _.Iz,z.set(D,N.resolver),J.push(N.asyncId),N.isFetching=!0):(N=new _.Iz,z.set(D,N),N.resolve(void 0))}J.length&&(this.fetchCount+=1,_.mi(_.oQ.getMultipleAsync.apply(_.oQ,_.Yj(J)).then(function(Z){for(var B=0;B<J.length;B++){var O=Z[B],X=M.moduleRegistry[J[B].toString()];X.isFetching=
!1;X.resolver.resolve(O)}}).catch(function(Z){for(var B=_.S(J),O=B.next();!O.done;O=B.next()){O=O.value;
var X=M.moduleRegistry[O.toString()];X.resolver=void 0;X.isFetching=!1;z.get(O.toString()).reject(Z)}}),function(){--M.fetchCount}));
return Promise.all([].concat(_.Yj(z.values())).map(function(Z){return Z.promise}))};_.ah=new _.Nh("MODULE_REGISTRY_TOKEN");var fdc={},LAt=(fdc.rendered={priority:0,callback:function(M){a:{var z=void 0;try{var J;b:{if(_.kPR()){var R=_.ebR(_.Gw()+"::pom");if(R){var D=new hE(R);break b}}D=void 0}var N=(J=D)==null?void 0:J.get("role_text");if(!N)break a;z={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:N}]}}}}}}catch(O){}z&&M.injector.resolve(_.Rb).resolveCommand(z)}try{var Z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Z){var B=JSON.parse(Z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
B&&M.injector.resolve(_.Rb).resolveCommand(B)}}catch(O){}}},fdc);var Arc,i3t={},Csv=(i3t.initialized={priority:10,callback:function(){Arc=mz()}},i3t.rendering={callback:function(M){var z;
return _.k(function(J){if(J.nextAddress==1)return J.yield(Arc,2);z=J.yieldResult;if(!z.endpoint)throw Error("vj`"+_.R3.location.href);hx(M,z);_.UI(J)})}},i3t);var b3w={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Yj(_.U("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(M){var z=M.stack;if(z.includes("chrome://")||z.includes("chrome-extension://")||M.message.includes("chrome-extension://")||z.includes("moz-extension://")||z.includes("local.adguard.org")||z.includes("auctioneer3.50million.club")||z.includes("youtubedownloader")||z.includes("youtube_home_page")||z.includes("is_youtube_video_no_longer_available")||
z.includes("switchScreenSizeHack")||z.includes("yt_main_big_banner.js")||z.includes("YouTubeCenter.js")||z.includes("/mytube.js")||z.includes("JSON.parseWrapper")||z.includes("/inj_js/common.js")||z.includes("firebug-lite")||z.includes(".repl.co/")||z.includes("linkfix")||z.includes("playAfterAd")||M.message.includes("Access is denied for this document")&&z.includes("<anonymous>")||M.fileName==="user-script"||M.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
z.includes("<anonymous>"))return!0;if(z.includes("https://www.youtube.com"))return!1;M=z.split("\n");if(!M.length)return!1;if(M.length<=3&&z.includes("s.onloadeddata"))return!0;z=0;for(var J=_.S(M),R=J.next();!R.done;R=J.next())R=R.value,(R.includes("https://")||R.includes("http://"))&&z++;return z/M.length>.95},
weight:0},{callback:function(M){return M.message==="Unknown Error"&&M.name.indexOf("NS_")===0},
weight:100},{callback:function(M){if(!_.Tj)return!1;var z=M.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||M.message.includes("available to complete this operation"),J=M.stack.includes("webcomponents")&&M.message==="Object doesn't support this action";M=M.message.includes("object that does not implement interface Element");return z||J||M},
weight:0},{callback:function(M){return M.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(M){return M.message==="Operation is not supported"&&(M.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(M){return M.stack.includes("eval code (eval (code:1:1)")||M.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(M){return M.message.includes("Permission denied")&&M.stack.includes("this.domHandler")?!0:M.name.includes("TypeError")&&M.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(M){if(!M.stack)return!1;var z=M.stack.trim().split("\n");z.length&&z[0].endsWith("Error: "+M.message)&&z.shift();z.length&&z[z.length-1].includes("at window.onerror (")&&z.pop();if(!z.length)return!0;if(M.message==="Script error.")return z[0].includes("www.youtube.com")||z.length>=2&&z[0].startsWith("at new")&&z[1].startsWith("at window.onerror");if(M.message==="Unexpected token")return!0;M=_.S(z);for(z=M.next();!z.done;z=M.next())if(z=z.value,!(z.includes("<anonymous>")||
z.startsWith("load@")||z.startsWith("global code@")||z.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(M){return M.message==="Cannot read property 'experiments'"&&M.stack.includes("/s/player/")},
weight:500},{callback:function(M){return M.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(M){return M.stack.includes("/embed.js")?(M.params&&M.params&&(M.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.U("use_error_suppression"))var M=_.HW("SUPPRESS_CLIENT_ERRORS",!1);else{if(M=_.es)M=/Chrome\/(\d+)/.exec(_.lG()),M=(M?parseFloat(M[1]):NaN)>=66;M=!(M||_.lN&&_.XZ(65)||_.cJ&&_.XZ(12.1)||i9&&_.XZ(79))}return M},
weight:500}]};var rrt={},MXd=(rrt.initialized={priority:10,callback:function(M){M.injector.addProvider({provide:Cgv,useValue:M.root});M.injector.addProvider({provide:mBc,useValue:TZH});M.injector.addProvider({provide:gp5,useValue:b3w});var z={};M.injector.addProvider((z.provide=sk5,z.useFactory=function(J,R){return function(){NUp(J,R)}},z[DW]=[mBc,
gp5],z));M.injector.addProvider({provide:w0,useClass:w0})}},rrt);var znw={},JGw=(znw.initialized={priority:3,callback:function(){var M;if(M=BAp()){M=M.replace("/",".");var z=_.vv();z.set("tz",M);z.save();M=!0}else M=!1;M||(M=_.vv(),M.set("utco",-Math.floor((new Date).getTimezoneOffset())),M.save())}},znw);var Rni={},Dyi=(Rni.initialized={priority:10,callback:function(M){M.injector.resolve(w0).start();M=_.fX();var z=_.cW("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.cW("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.cW("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.cW("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.T0(_.c$p(),{mainAppWeb:Object.assign({},M,{pageType:z})});_.T0(K88(),{mainAppWeb:Object.assign({},M,{pageType:z})});
_.T0($hn(),{mainAppWeb:M});_.T0(uMY(),{mainAppWeb:M});E4t(function(){_.Ih($hn(),"FAILURE");_.Ih(uMY(),"FAILURE")});
VSn();EXn();rX3()}},Rni);var NVs={},PYm=(NVs.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.hd("dl"),_.Eb().processSignal("pcl");else{var M=function(){_.hd("dl");_.Eb().processSignal("pcl");window.removeEventListener("load",M)};
window.addEventListener("load",M)}}},NVs);var SIt={},ZSc=(SIt.rendering={priority:0,callback:function(){var M=_.Eb();M.parkOrScheduleJob(function(){M.processSignal("eocs")},10,"eor",5E3)}},SIt);var kTc=function(){};
_.w(kTc,VX);
kTc.prototype.resolveCommand=function(M,z){var J,R,D,N,Z,B,O,X;return _.k(function(l){D=(J=_.G(M,_.v7a))==null?void 0:(R=J.dialog)==null?void 0:R.commentReplyDialogRenderer;if(!D)throw new _.xN("No dialog in createCommentReplyDialogEndpoint");Z=(N=z.form)==null?void 0:N.event;if(!Z)throw new _.xN("Event not passed in when resolving command");B=_.S(Z.composedPath());for(O=B.next();!O.done;O=B.next())if(X=O.value,X.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||X.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return X.showReplyDialog(D),l.return();
_.UI(l)})};var yi=function(M){this.pageRequestService=M;this.JSC$18450_prefetchCoordinator=lV5()};
_.w(yi,VX);yi.prototype.resolveCommand=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){J=_.G(M,MOB);if((R=J)==null||!R.taskId)throw Error("wj");D=J.taskId;_.Io(Z,2);return Z.yield(_.bzv(z.pageRequestService,M,{},"").then(function(B){if(!B)throw Error("xj");},function(B){throw Error("yj`"+B);
}),4)}if(Z.nextAddress!=2)return UBc(z.JSC$18450_prefetchCoordinator,D),_.ab(Z,0);
N=_.Qa(Z);TJ(z.JSC$18450_prefetchCoordinator,D,N);_.UI(Z)})};
yi[DW]=[tx];var H$=function(M){this.innertubeTransportService=M};
_.w(H$,VX);H$.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,bMg);if(J.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||J.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")R=J.boolValue?2:1,_.NJ.getInstance().setState(R,!0,!0);return D.yield(_.fn(z.innertubeTransportService,M),0)})};
H$[DW]=[_.cP];var c$=function(M){this.innertubeTransportService=M};
_.w(c$,VX);c$.prototype.resolveCommand=function(M){var z=this,J,R;return _.k(function(D){J=_.G(M,Gaa);if(!J)return D.return();R=[];J.contentCommand&&R.push(_.fn(z.innertubeTransportService,J.contentCommand));J.watchCommand&&R.push(_.fn(z.innertubeTransportService,J.watchCommand));return D.yield(Promise.all(R),0)})};
c$[DW]=[_.cP];var d1={},BVm=(d1.addToPlaylistEndpoint=rE(dh),d1.addToToastAction=rE(WV),d1.adsControlFlowOpportunityReceivedCommand=rE(Qt),d1.audioTrackSelectActionCommand=rE(oow),d1.backgroundAudioPlaybackCommand=rE(rh),d1.captionLanguageSelectActionCommand=rE(M1),d1.captionPickerEndpoint=rE(zY),d1.changeMiniAppPlayStateCommand=rE(K2),d1.changeTimelyActionVisibilityCommand=rE(q1),d1.channelCreationFormEndpoint=rE(gh),d1.clearLocationCommand=rE(cG),d1.clearUrlParamCommand=rE($H),d1.copyLinkCommand=rE(SA),d1.copyTextEndpoint=
rE(GR),d1.createCommentReplyDialogEndpoint=apG(kTc),d1.createPlaylistServiceEndpoint=rE(Z6),d1.dismissDialogEndpoint=rE(qT),d1.dismissPlayerOverlayCommand=rE(JY),d1.entityUpdateCommand=rE(xH),d1.feedbackEndpoint=rE(p2),d1.getAnswerCommand=rE(tpc),d1.getPaymentsClientTokenCommand=rE(Eo),d1.getTranscriptEndpoint=rE(aB),d1.googlePaymentBillingCommand=rE(fP),d1.googlePaymentPurchaseManagerCommand=rE(LP),d1.hideEngagementPanelEndpoint=rE(WG),d1.hideSnackbarCommand=rE(yp),d1.insertRichSectionCommand=rE(n2),
d1.learningJourneyCanvasCommand=rE(c$),d1.listMutationCommand=rE(hD),d1.logGtmCommand=rE(sH),d1.notifyDropdownOptionSelectedCommand=rE(uO),d1.openAdAllowlistInstructionCommand=rE(_.UH),d1.openOnePickAddVideoModalCommand=rE(kv),d1.persistSubscriptionsDisplayPreferencesCommand=rE(lx),d1.pingingEndpoint=rE(vG),d1.playlistEditEndpoint=rE(Oo),d1.playlistVotingRefreshPopupCommand=rE(TY),d1.profileCardCommand=rE(e7),d1.refreshPanelEndpoint=rE(am),d1.saveImageToDeviceEndpoint=rE(wh),d1.scrollToSectionEndpoint=
apG(j3l),d1.seekToVideoTimestampCommand=rE(RB),d1.selectCountryCommand=rE(eA),d1.setCookieCommand=rE(Qp),d1.setLocalStorageCommand=rE(cV),d1.setPrefStorageEntryCommand=rE(vV),d1.setSettingEndpoint=rE(H$),d1.sfvAudioItemPlaybackCommand=rE(D6),d1.shareImageCommand=rE(GY),d1.sharingProviderDataCommand=rE(wt),d1.showCaptionLanguageSelectActionCommand=rE(N1),d1.showDialogCommand=rE(L2),d1.showEngagementPanelEndpoint=rE(AD),d1.showSheetCommand=rE(iO),d1.showSnackbarCommand=rE(HV),d1.showTransientPlayerScrimOverlayCommand=
rE(PV),d1.submitFormWithValidationFlowCommand=rE(mf),d1.talkToRecsDeselectCommand=rE(dt),d1.talkToRecsNextCommand=rE(KP),d1.talkToRecsSelectCommand=rE($v),d1.talkToRecsUpdateTextCommand=rE(ux),d1.toggleEngagementPanelCommand=rE(C2),d1.undoFeedbackEndpoint=rE(YH),d1.updateEngagementPanelContentCommand=rE(bO),d1.updateUrlParamCommand=rE(Vp),d1.verifyCommand=rE(gh),d1.webNativeShareCommand=rE(xv),d1.webSubmitFormCommand=rE(IB),d1.ACK_PLAYABLES_3P_DATA_CONSENT=rE(tY),d1.CANCEL_NAVIGATION=rE(jA),d1.COPY_SHARE_URL=
rE(pP),d1.MINI_APP_EXIT_DIALOG_SEEN=rE(Yv),d1.MINI_APP_OPEN_URL=rE(FR),d1.REQUEST_MINI_APP_FULLSCREEN=rE(mL),d1.RESUME_NAVIGATION=rE(gt),d1.SHARE_PLAYABLE_WITH_HIGH_SCORE=rE(so),d1.TELL_US_WHY=rE(Fz),d1);_.U("web_enable_prefetching_videos_on_home")&&(BVm.prefetchWatchCommand=rE(yi),BVm.registerTasksCommand=rE(ot));_.U("enable_share_panel_navigation_logging_fix_on_web")&&(BVm.shareEntityServiceEndpoint=rE(Vt));var Njv=Object.assign({},BVm);var OS5={},TVl=(OS5.initialized={priority:10,callback:CC0},OS5);var IDl={},oj5=(IDl.initialized={callback:function(M){var z={},J={};kJb().install((z.document_disposed={callback:function(){_.U("finalize_all_timelines")?P$3():gE();kXY("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.vMw();var R=M.injector.resolve(w0);R.intervalId!==void 0&&(R.intervalId&&_.no.cancelJob(R.intervalId),R.intervalId=void 0,--R.currentPartitionIndex,R=Kst(R),R>0&&Vut({mainAppWeb:_.fX(),survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));csg(iU);CM!=null&&
CM.flush();ZS&&ZS.snapshotAndFlush();R=_.S(MKV.values());for(var D=R.next();!D.done;D=R.next())D.value.snapshotAndFlush()}},z),(J.flush_logs={callback:function(){_.sB()}},J))}},IDl);var Xym={},lDw=(Xym.rendered={priority:0,callback:function(){var M=new YC$;M.increment("STARTED");if(_.HW("LOGGED_IN")&&_.HW("SERVER_VERSION")!=="test"&&_.HW("SERVER_VERSION")!=="dev"&&!S$Q()&&!PJ2()){M.increment("EXECUTING");var z=document.createElement("iframe");z.style.display="none";_.Dye(z,2,_.hr("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.HW("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(z);M.increment("DONE")}}},Xym);var eni={},Qow=(eni.rendered={callback:function(){lV5().resume()}},eni);var Uyc={acknowledgeChannelTouStrikeCommand:pX(xa),addToPlaylistServiceEndpoint:pX(p1),addToPlaylistEndpoint:pX(p1),addUpcomingEventReminderEndpoint:pX(dC),browseEndpoint:pX(red),channelCreationFormEndpoint:pX(lr),channelCreationServiceEndpoint:pX(eD),claimLegacyYoutubeChannelEndpoint:pX(Rp),clearSearchHistoryEndpoint:pX(gC),clearWatchHistoryEndpoint:pX(sX),commerceActionCommand:Fk(L1),createBackstagePostEndpoint:pX(CP),createBroadcastCommand:pX(KA),createCommentEndpoint:pX(Tf),createCommentReplyEndpoint:pX(OX),
createLiveChatPollEndpoint:pX($a),createPlaylistServiceEndpoint:pX(Fi),crossAccountChannelTransferEndpoint:pX(yb),deleteLiveChatMessageCommand:pX(ur),deletePlaylistEndpoint:pX(Yd),deleteVideoEndpoint:pX(aG),dismissalEndpoint:pX(tz),feedbackEndpoint:pX(jD),flagEndpoint:pX(yj),getAccountSwitcherEndpoint:pX(hz),verifyCommand:pX(ix),getAccountsListInnertubeEndpoint:pX(cZ),getCommentsFromInboxCommand:pX(kd),getDownloadActionCommand:pX(lR),getFlowCommand:Fk(mZ),getKidsBlocklistPickerCommand:pX(Hk),getNotificationMenuEndpoint:pX(JSl),
getPaymentInstrumentsParamsCommand:pX(Md),getPaymentsClientTokenCommand:Fk(L1),getPdgBuyFlowCommand:pX(t0),getReportFormEndpoint:pX(ck),getSearchInVideoCommand:pX($d),getAnswerCommand:pX(K1),getSurveyCommand:pX(Wk),getTranscriptEndpoint:pX(Eu),getPostVideoPreviewEndpoint:pX(rt),decorateMessageEndpoint:pX(bx),likeEndpoint:pX(Qb),liveChatActionEndpoint:pX(Vb),liveChatEndpoint:pX(ap),liveChatItemContextMenuEndpoint:pX(qU),liveChatPurchaseMessageEndpoint:pX(EX),liveChatReplayEndpoint:pX(WZ),manageLiveChatUserEndpoint:pX(LA),
metadataUpdateCommand:pX(S$),moderateLiveChatEndpoint:pX(Az),modifyChannelNotificationPreferenceEndpoint:pX(IG),notificationOptOutEndpoint:pX(oG),openSuperStickerBuyFlowCommand:pX(fA),performCommentActionEndpoint:pX(Zt),playlistEditEndpoint:pX(g6),playlistEditorEndpoint:pX(mM),recordNotificationInteractionsEndpoint:pX(Xi),reelWatchEndpoint:pX(su),refreshPanelEndpoint:pX(Qj),removeUpcomingEventReminderEndpoint:pX(ir),resolveLocationCommand:pX(Pk),revealBusinessEmailCommand:pX(Dt),searchEndpoint:pX(_.R25),
sendLiveChatMessageEndpoint:pX(DT),sendLiveChatVoteEndpoint:pX(Nw),setSettingEndpoint:pX(UX),shareEntityServiceEndpoint:Fk(wC),sharingProviderDataCommand:pX(qw),showEngagementPanelEndpoint:pX(Uu),showMoreDrawerCommand:pX(GI),showSheetCommand:pX(w6),showDialogCommand:pX(vk),subscribeEndpoint:pX(vZ),transcriptSubmitCaptionCorrectionCommand:pX(Vj),undoFeedbackEndpoint:pX(Ft),unsubscribeEndpoint:pX(Gf),updateBackstagePostEndpoint:pX(zf),updateCommentEndpoint:pX(op),updateCommentReplyEndpoint:pX(Ip),updateCommentsSettingsEndpoint:pX(Xt),
updateCreatorChannelInnertubeCommand:pX(PZ),updateKidsBlacklistEndpoint:pX(d6),updateEngagementPanelContentCommand:pX(xd),updatePdgFeatureEnablementCommand:pX(j$),updatedMetadataEndpoint:pX(ZT),validateChannelHandleCommand:pX(SD),updateChannelPageSettingsEndpoint:pX(NU),verifyAgeEndpoint:pX(Ya),watchEndpoint:Fk(w_),whitelistEditEndpoint:pX(f1),ypcCancelRecurrenceEndpoint:pX(A0),ypcCompleteTransactionEndpoint:pX(iR),ypcFixInstrumentEndpoint:pX(bR),ypcGetCartEndpoint:pX(C1),ypcGetOffersEndpoint:pX(r6),
ypcHandleTransactionEndpoint:Fk(zJ),ypcLogWalletAnalyticDataEndpoint:pX(J7),ypcOffersEndpoint:pX(Rt),ypcPauseSubscriptionCommand:pX(D4),ypcRedeemCodeEndpoint:pX(Nd),ypcResumeSubscriptionCommand:pX(P$),ypcUpdateFopEndpoint:pX(bR)},K8={},vj5=(K8.GET_ACCOUNT_MENU=pX(HZ),K8.GET_NOTIFICATIONS_MENU=pX(z2w),K8.GET_NOTIFICATIONS_INBOX=pX(Bk),K8.GET_UNSEEN_NOTIFICATION_COUNT=pX(TI),K8.GET_USER_MENTION_SUGGESTIONS=pX(MU),K8.LOAD_GUIDE=pX(Ma5),K8.SUBMIT_FEEDBACK=pX(pA),K8),$M={},GTd=($M.CONTINUATION_REQUEST_TYPE_BROWSE=
pX(Jz),$M.CONTINUATION_REQUEST_TYPE_SEARCH=pX(uR),$M.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=pX(tE),$M.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=pX(nA),$M.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=pX(BZ),$M.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=pX(ka),$M.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=pX(h0),$M.CONTINUATION_REQUEST_TYPE_GET_PANEL=pX(e$),$M),wyl={player:Fk(w_),watchNext:pX(x5)},xyv={player:Fk(w_),reelItemWatch:pX(su),reelWatchSequence:pX(n1)},tXm={watchEndpoint:Fk(jE)},joi=
{commandEndpointMap:Uyc,signalEndpointMap:vj5,continuationEndpointMap:GTd,watchEndpointMap:wyl,reelWatchEndpointMap:xyv,streamingEndpointMap:tXm};var pyw,FWt,YIs;_.myw=((FWt=(pyw=window).matchMedia)==null?void 0:(YIs=FWt.call(pyw,"(prefers-reduced-motion: reduce)"))==null?void 0:YIs.matches)||!document.startViewTransition;var gjs={},soc={disableAllTransitions:_.myw,ignoredErrors:(gjs.DOCUMENT_HIDDEN=!0,gjs.WINDOW_SIZE_CHANGED=!0,gjs.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,gjs),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 njs=_.Ca("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),hnm=function(M){this.viewTransitionCoordinator=M;this.isBrowseTransitionEnabled=_.Sz("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.U("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.U("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.U("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){M=_.NC("web_page_transition_exit_ms");var z=_.NC("web_page_transition_wait_ms"),
J=_.NC("web_page_transition_enter_ms"),R=_.NC("web_page_transition_watch_exit_ms"),D=_.NC("web_page_transition_watch_wait_ms"),N=_.NC("web_page_transition_watch_enter_ms");if(!isNaN(M)||!isNaN(z)||!isNaN(J))if(M=gr3(njs,M,z,J,R,D,N))z=document.createElement("style"),z.textContent=kT8(M),document.head.appendChild(z)}};
hnm.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var M={};this.viewTransitionCoordinator.registerElement(document.documentElement,(M.slide="root-slide",M["lockup-to-watch"]="root-lockup-to-watch",M["learning-journey"]="root-learning-journey",M))}};
_.STg=function(M,z){M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&(M.registeredLockupThumbnail?M.lockupThumbnailRegisteredFromWatchEndpoint?_.yA(new _.xN("Lockup thumbnail registration order is incorrect.")):_.yA(new _.xN("Lockup thumbnail already registered.")):(M.registeredLockupThumbnail=z,_.yGv(M,z)))};
_.yGv=function(M,z){var J={};M.viewTransitionCoordinator.registerElement(z,(J["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",J),!0)};
hnm[DW]=[vGm];var b_3={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 ML8=["videoPrimaryInfoRenderer","title"],zRo=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var HSv;HSv=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.cGw=_.Mf(function(M){M=_.rH(M,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var z=M.data,J=M.playlistData,R=M.expanded,D=M.onExpandClick,N=M.isReadyToResume,Z=function(){var l;return!((l=J())==null||!l.contents)},B=function(){var l=J();
return l&&l.totalVideos&&l.currentIndex!==void 0?l.currentIndex+1+" / "+l.totalVideos:""};
M=_.ol(function(){_.ug(_.JF().resolve(_.q5));return!1});
var O=_.ol(function(){Z()&&D&&D()}),X={};
return _.T("ytd-miniplayer-info-bar",{class:_.Qe("ytdMiniplayerInfoBarHost",(X.ytdMiniplayerInfoBarHasPlaylistData=Z,X)),"on:click":O},_.T("div",{class:"ytdMiniplayerInfoBarContent"},_.T("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":M},_.T(_.m3,{text:function(){var l=z();var e=J();if(e==null?0:e.contents){var Q;l=(Q=_.SP0(e))==null?void 0:Q.title}else l=l==null?void 0:l.miniplayerTitle;return Jf8(l)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.T(_.I,{cond:N,then:function(){return _.T(iJk,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:HSv})}}),_.T("h1",null,_.T(_.m3,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var l=z();var e=J();l=N()?{simpleText:_.e9("CONTINUE_WATCHING",void 0,"Continue watching")}:(e==null?0:e.contents)?e.titleText:l==null?void 0:l.miniplayerSubtitle;return Jf8(l)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T(_.I,{cond:function(){return!!B()&&!N()},
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.T("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.T("span",null,B))}}))),_.T(_.I,{cond:Z,
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarExpand"},_.T(_.XC,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(l){D&&(D(),l.stopPropagation())}}},
iconName:function(){return R()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ne");var dyN;dyN=_.Mf(function(M){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.T(_.XC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:M.onTap}},
iconName:"yt-icons:close"}))},"Oe");
_.KWm=_.Mf(function(M){M=_.rH(M,{playabilityStatus:void 0,isDisabled:!1});var z=M.size,J=M.playabilityStatus,R=M.isDisabled,D=_.AL("div");M=_.S(_.kE(void 0,void 0,"bJr0Se"));var N=M.next().value,Z=M.next().value;M=_.d4(_.BX);var B=!1,O=function(){return z().height<=0};
_.jP(function(){var Q=z(),v=O(),x=N();x&&!v&&x.setInternalSize(Q.width,Q.height)},"OUOyKb");
_.FT(function(){var Q,v,x;return _.k(function(m){if(m.nextAddress==1){Q=_.JF().resolve(_.q5);v=Q.getPlayerElement();if(!Q.isMiniplayerActive()||!v||!D.value)return m.return();v.appendTo(D.value);return m.yield(v.getPlayerPromise(),2)}x=m.yieldResult;x.setSizeStyle(!1,!0);Z(x);_.UI(m)})});
_.pq(function(){X()});
_.jP(function(){var Q=N();if(Q)if(R()){var v=Q.getPlayerState();(B=v===-1||v===1||v===3)&&Q.pauseVideo()}else X()},"KKHe5");
var X=function(){if(B){B=!1;var Q;(Q=N())==null||Q.playVideo()}},l=_.ol(function(){_.ug(_.JF().resolve(_.q5))}),e={};
return _.T("ytd-miniplayer-player-container",{class:_.Qe("ytdMiniplayerPlayerContainerHost",(e.ytdMiniplayerPlayerContainerHidden=O,e.ytdMiniplayerPlayerContainerHostShortsPip=M,e)),style:_.UN({width:function(){return z().width+"px"},
height:function(){return z().height+"px"}})},_.T("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:D}),_.T(_.I,{cond:function(){return!!J()&&!_.hCG(J())},
then:function(){return _.T(Sl2,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Q;return((Q=J())==null?void 0:Q.errorScreen)||null},
status:function(){var Q;return((Q=J())==null?void 0:Q.status)||null}})}}),_.T(_.I,{cond:R,
then:function(){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":l},_.T(dyN,{onTap:function(){_.JF().resolve(_.q5).close()}}))}}))},"Pe");_.$yd=_.Mf(function(M){var z=M.toastData;var J=_.AL("ytd-miniplayer-toast");M=_.S(_.eh(function(){return!!z()}));
var R=M.next().value,D=M.next().value;M=_.S(_.kE(!1,void 0,"xkrBze"));var N=M.next().value,Z=M.next().value,B=function(){var l;return _.CD((l=z())==null?void 0:l.data.title)};
_.mF(function(){_.Vv.requestAvailability();z()&&D(!1)});
var O,X;_.jP(function(){R()&&(_.Pv(J.value,"iron-announce",{text:z().label+" "+B()}),O&&_.no.cancelJob(O),O=_.no.addLowPriorityJob(function(){Z(!0)},2500))},"OTdL1e");
_.jP(function(){N()&&(X&&_.no.cancelJob(X),X=_.no.addLowPriorityJob(function(){D(!1);Z(!1)},300))},"yybqib");
M={};return _.T("ytd-miniplayer-toast",{el:J,class:_.Qe("ytdMiniplayerToastHost",(M.ytdMiniplayerToastOpening=function(){return R()},M.ytdMiniplayerToastClosing=function(){return N()},M))},_.T(_.I,{cond:function(){var l;
return(l=z())==null?void 0:l.data},
then:function(l){return _.T(Sr$,{className:"ytdMiniplayerToastThumbnail",data:l,width:78})}}),_.T("div",{class:"ytdMiniplayerToastInfo"},_.T("div",{class:"ytdMiniplayerToastLabel"},function(){var l;
return(l=z())==null?void 0:l.label}),_.T("div",{class:"ytdMiniplayerToastTitle"},B)))},"Qe");var TYe;var XO8=null;var qI5=_.Mf(function(M){var z=M.progressState;var J=M.multiMarkersPlayerBarRenderer;var R=M.progressBarWidth;var D=function(){return UeH(J())},N=function(){return wOY(z())},Z=function(){return R()*(z().playedTime/z().videoDuration)};
return _.T("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.T(_.G4,{each:D},function(B,O){return _.T(u4c,{modifiedProps:N,chapters:D,index:O,playedProgressWidth:Z,backgroundGradientPosition:function(){var X=N(),l=D(),e=O(),Q=Z();return(X.playedTime-$T(_.G(l[e],Ka)))/X.playedTime*Q}})}))},"Re"),u4c=_.Mf(function(M){var z=M.modifiedProps;
var J=M.chapters;var R=M.index;var D=M.playedProgressWidth;var N=M.backgroundGradientPosition;M={};M=_.Qe("ytChapteredProgressBarChapteredPlayerBarChapter",(M.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Z().isScrubbing},M.ytChapteredProgressBarHoveredMacroMarker=function(){return Z().scrubberHovering},M.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Z().videoPosition==="seen"},M));
var Z=function(){return xeR(z(),J(),R())},B=function(){var O=z();
var X=J(),l=R();if(xeR(O,X,l).videoPosition!=="active")O=0;else{var e=$T(_.G(X[l],Ka));O=(O.playedTime-e)/(($T(_.G(X[l+1],Ka))||O.videoDuration)-e)}return O};
return _.T("div",{class:M,style:_.UN({width:function(){var O=z(),X=J(),l=R(),e=_.G(X[l],Ka);X=_.G(X[l+1],Ka);return(X?$T(X)-$T(e):O.videoDuration-$T(e))/O.videoDuration*100+"%"},
"background-color":function(){a:{var O=Z();switch(O.videoPosition){case "pending":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:O=""}}return O},
"background-size":function(){return(tLG(Z())?D():"")+"px"},
"background-position-x":function(){return(tLG(Z())?N():"")+"px"}})},_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var O=z(),X=J(),l=R();if(xeR(O,X,l).videoPosition==="seen")var e=0;else e=$T(_.G(X[l],Ka)),X=$T(_.G(X[l+1],Ka))||O.videoDuration,O=O.videoDuration*O.percentLoaded,e=X<=O?1:e>=O?0:(O-e)/(X-e);return"width: "+e*100+"%"}}),_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.UN({width:function(){return B()*100+"%"},
"background-size":function(){return(tLG(Z(),B())?D():"")+"px"},
"background-position-x":function(){return(tLG(Z(),B())?N():"")+"px"}})}))},"Se");var WWl=function(M,z){z=z===void 0?MFJ:z;var J,R=[],D,N=!1;return function(){var Z=_.H4.apply(0,arguments);if(N&&J===this&&z(Z,R))return D;D=M.apply(this,Z);N=!0;J=this;R=Z;return D}}(function(M){var z=M.heatMarkers,J=M.minHeightDp===void 0?0:M.minHeightDp,R=M.maxHeightDp===void 0?60:M.maxHeightDp;
var D=D===void 0?!1:D;var N=1E3/z.length;M=[];M.push({x:0,y:100});for(var Z=0;Z<z.length;Z++){var B=void 0,O=((B=_.G(z[Z],JsV))==null?void 0:B.heatMarkerIntensityScoreNormalized)||0;B=(Z+.5)*N;O=100-_.dy(O*100,J/321*100,R/321*100);Z!==0||D||M.push({x:0,y:O});M.push({x:B,y:O});Z===z.length-1&&M.push({x:1E3,y:O})}M.push({x:1E3,y:100});z="";for(J=0;J<M.length;J++)D=M[J],J===0?D="M "+D.x.toFixed(1)+","+D.y.toFixed(1):(R=sCn(M[J-1],M[J-2],D),N=sCn(D,M[J-1],M[J+1],!0),D=" C "+(R.x.toFixed(1)+","+R.y.toFixed(1)+
" "+N.x.toFixed(1)+","+N.y.toFixed(1)+" "+D.x.toFixed(1)+","+D.y.toFixed(1))),z+=D;return z});var aDm=_.Mf(function(M){var z=M.progressBarProps;var J=M.config;var R={};M=_.Qe("ytHeatSeekerHost",(R.ytHeatSeekerHighContrast=M.highContrast,R));var D=function(){return SnH(J().chapterData)};
return _.T("yt-progress-bar-heatseeker",{class:M,style:function(){var N;return"height: 320px; display: "+(z().isDragging&&((N=D())==null?0:N.heatMarkers)?"block":"none")}},_.T(_.I,{cond:D,
then:function(N){return _.T(_.I,{cond:function(){return N().heatMarkers},
then:function(){return _.T("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.T("path",{d:function(){return WWl(N())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Te");var VXG=_.Mf(function(M){var z=M.progressBarProps;var J=M.config;M={};M=_.Qe("ytProgressBarLineProgressBarLine",(M.ytProgressBarLineProgressBarLineRounded=function(){return J().rounded},M.ytProgressBarLineProgressBarLineBottomInset=function(){return J().position===2},M));
return _.T("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.T("div",{class:M},_.T("div",{class:"ytProgressBarLineProgressBarBackground"}),_.T("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+z().percentLoaded*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var R=z();return"width: "+(R.videoDuration?_.dy(R.hoveredTime/R.videoDuration,0,1):0)*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+De8(z())*100+"%"}})))},"Ue");
VXG.idomCompat=!0;var Ejt=_.Mf(function(M){var z=M.progressBarProps;var J=M.playheadData;var R=M.interpolateDotPosition;var D=M.hidePlayhead;M={};var N=_.Qe("ytProgressBarPlayheadProgressBarPlayheadDot",(M.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return z().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!z().isDragging&&D()},M));
return _.T("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.UN({"margin-left":function(){return NYo(z())*100+"%"},
transform:function(){return"translateX(-"+(R()?NYo(z())*12:6)+"px)"}})},_.T(_.I,{cond:function(){var Z;
return(Z=_.ba(J)())==null?void 0:Z.playheadImage},
then:function(Z){var B={};return _.T("div",{class:_.Qe("ytProgressBarPlayheadProgressBarPlayheadCustom",(B.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return z().isDragging},B.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!z().isDragging&&D()},B)),
style:_.UN({"transform-origin":function(){return(R()?NYo(z())*20:10)+"px center"}})},_.T(_.rv,{data:Z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.T("div",{class:N,style:_.UN({"transform-origin":function(){return(R()?NYo(z())*12:6)+"px center"}})})}}))},"Ve");
Ejt.idomCompat=!0;var qd=function(M,z,J,R,D,N){this.getProgressBarRect=M;this.updateProgressBarRect=z;this.getFilmstripYPosition=J;this.setFineScrubbingDraggedTime=R;this.updateFilmStripDraggedYDistance=D;this.resetFilmStripYOffset=N;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.A_(this.onThrottledSeek,100,this)},fD5=function(M,z,J){return function(R){M.handleClick(R,z(),J())}},iSi=function(M,z){return function(J){LWG(M,
J,AGl(J),z())}},CYi=function(M,z){return function(J){LWG(M,J,{x:J.clientX,
y:J.clientY},z())}},rGG=function(M,z,J){return function(R){var D=z(),N=J();
bSd(M,R,AGl(R),D,N,!0);if(N.onTouchMove)N.onTouchMove(D)}},zDt=function(M,z,J){return function(R){MUN(M,R,z(),J())}},JA5=function(M,z){return function(){M.handleMouseLeave(z())}},RDu=function(M,z,J){return function(){var R=z(),D=J();
W$(M,R,D);if(D.onTouchEnd)D.onTouchEnd(R)}},Dxd=function(M,z,J){return function(){var R=z(),D=J();
W$(M,R,D);if(D.onTouchEnd)D.onTouchEnd(R)}},Nuv=function(M,z,J){return function(){W$(M,z(),J())}},Pvw=function(M){return function(z){if(z.keyCode===39||z.keyCode===38){var J,R;
(J=M())==null||(R=J.playerApi)==null||R.seekBy(5,void 0,void 0,72)}else if(z.keyCode===37||z.keyCode===40){var D,N;(D=M())==null||(N=D.playerApi)==null||N.seekBy(-5,void 0,void 0,71)}}},Saw=function(M,z,J){return function(R){!J().disableScrubbing&&M.startPosition&&MUN(M,R,z(),J())}},ZOs=function(M,z,J){return function(){if(!J().disableScrubbing)if(M.startPosition){var R=z(),D=J();
W$(M,z(),J());if(D.onTouchEnd)D.onTouchEnd(R)}else z().setState({isDragging:!1})}},AGl=function(M){M=M.touches[0];
return{x:M.clientX,y:M.clientY}},MUN=function(M,z,J,R){if(z.buttons!==1){if(z.movementX||z.movementY)z.preventDefault(),z.stopPropagation(),M=k$c(M,J,z.clientX),J.setState({isHovering:!0,
hoveredTime:M*J.videoDuration})}else Buu(J),bSd(M,z,{x:z.clientX,y:z.clientY},J,R,!1)};
qd.prototype.handleMouseLeave=function(M){Buu(M)};
var Buu=function(M){M.isHovering&&M.setState({isHovering:!1,hoveredTime:0})},LWG=function(M,z,J,R){M.startPosition||(M.startPosition=J,M.updateProgressBarRect(),M.controlsWereVisibleBeforeDragging=R.controlsVisible,z.stopPropagation(),_.U("medium_progress_bar_modification")||z.preventDefault())},bSd=function(M,z,J,R,D,N){if(M.startPosition)if(N&&D.isInlinePlayback&&M.startPosition&&!M.hasDraggedTheMinimumDistance&&Math.abs(J.y-M.startPosition.y)>Math.abs(J.x-M.startPosition.x))W$(M,R,D);
else if(z.preventDefault(),z.stopPropagation(),R.videoDuration&&(M.startPosition&&!M.hasDraggedTheMinimumDistance&&(M.hasDraggedTheMinimumDistance=Math.abs(J.x-M.startPosition.x)>=1),D.enableFineScrubbing&&(M.startPosition&&(M.isDraggedForFineScrubbing=-(J.y-M.startPosition.y)>=60),!M.startPosition||J.y>=M.startPosition.y||(R.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:jWw(R.draggedTime,R,D.chapterData)}),M.setFineScrubbingDraggedTime(R.draggedTime),M.updateFilmStripDraggedYDistance(M.startPosition.y,
J.y,R))),M.hasDraggedTheMinimumDistance)){z=k$c(M,R,J.x);if(M.isDraggedForFineScrubbing){var Z;(Z=R.playerApi)==null||Z.pauseVideo();R.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:R.draggedTime,filmStripXDistance:jWw(z*R.videoDuration,R,D.chapterData)})}D.enableFineScrubbing&&(!D.enableFineScrubbing||M.getFilmstripYPosition(R)<68)||R.setState({draggedTime:z*R.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:M.controlsWereVisibleBeforeDragging});var B;(B=
D.cancelAutohideControlsFn)==null||B.call(D)}},W$=function(M,z,J){var R=J.enableFineScrubbing&&z.fineScrubbingActiveState!=="off";
if(z.isDragging||R){R={isDragging:!1,playedTime:z.draggedTime,controlsVisible:M.controlsWereVisibleBeforeDragging};J.enableFineScrubbing&&z.fineScrubbingActiveState!=="on"&&(M.resetFilmStripYOffset(),R.fineScrubbingActiveState="off");var D=D===void 0?XO8:D;var N=_.y5(0);if(N&&D){var Z=Math.round(z.playedTime*1E3),B=Math.round(z.draggedTime*1E3);Z>2147483647||B>2147483647||_.LY(N,D,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(Z),endMediaTimeMs:String(B),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}z.setState(R);
M.seekThrottle.fire(z.draggedTime,z,7);_.U("mweb_new_progress_bar_play_on_seek")&&M.resumeVideo(z);J.unmuteOnSeek&&(J=z.playerApi,z.volumeMuted&&(J==null||J.unMute()))}else z.setState({controlsVisible:!z.controlsVisible}),(N=J.triggerAutohideControlsAfterDelayFn)==null||N.call(J);M.startPosition=null;M.hasDraggedTheMinimumDistance=!1;M.isDraggedForFineScrubbing=!1;M.controlsWereVisibleBeforeDragging=!1};
qd.prototype.handleClick=function(M,z,J){this.updateProgressBarRect();M.stopPropagation();M=k$c(this,z,M.clientX)*z.videoDuration;z.setState({playedTime:M});if(z.playerState!==2){var R;(R=J.triggerAutohideControlsAfterDelayFn)==null||R.call(J)}this.seekThrottle.fire(M,z,7)};
var k$c=function(M,z,J){M=M.getProgressBarRect(z);return _.dy(0,(J-M.left)/M.width,1)};
qd.prototype.resumeVideo=function(M){if(M.draggedTime<M.videoDuration){var z;(z=M.playerApi)==null||z.playVideo()}};
qd.prototype.onThrottledSeek=function(M,z,J){if(z=z.playerApi){var R;if((R=z.getVideoData())==null?0:R.isLive)R=this.getProgressState(z),M+=(R==null?void 0:R.seekableStart)||0;z.seekTo(M,void 0,void 0,void 0,J)}};
qd.prototype.getProgressState=function(M){var z=M==null?void 0:M.getPresentingPlayerType();return M==null?void 0:M.getProgressState(z)};var Ioc,Tus,orl,lou,OOw,eDc,Q$G,Uxu,vrd;Ioc=_.Mf(function(M){var z=M.progressBarProps;var J=M.config;var R=M.progressBarWidthPx;var D=M.chapterData;var N=gwp(z,function(){return J().isShortsPage}),Z=function(){return!z().isHovering&&!J().isShortsPage};
M={};var B=_.Qe("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(M.ytPlayerStoryboardHostMwebShorts=function(){return J().isShortsPage&&!1},M));
return _.T("yt-player-storyboard",null,_.T(_.I,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.T(_.I,{cond:N,then:function(O){return _.T(_.I,{cond:Z,then:function(){return _.T("div",{class:B,"aria-hidden":"true"},_.T(OOw,{props:z,config:J,isBigboard:!0,chapterData:D}))},
else:function(){return _.T(Tus,{props:z,frame:O,config:J,progressBarWidthPx:R,chapterData:D})}})}})}}))},"We");
_.Xjw=_.Mf(function(M){var z=M.progressBarProps;var J=gwp(z,M.isShortsPage);return _.T("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.T(_.I,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.T(_.I,{cond:J,then:function(R){return _.T(orl,{frame:R,props:z,isBigboard:!0})}})}}))},"Xe");
Tus=_.Mf(function(M){var z=M.props;var J=M.frame;var R=M.config;var D=M.progressBarWidthPx;M=M.chapterData;var N={};N=_.Qe("ytPlayerStoryboardHost",(N.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},N.ytPlayerStoryboardHostInlinePlayer=function(){return R().isInlinePlayer},N.ytPlayerStoryboardHostFadeIn=function(){return R().useFadeInAnimation},N));
return _.T("div",{class:N,"aria-hidden":"true",style:function(){var Z=z(),B=pOb(J()),O=D();Z=FBp(Z)/Z.videoDuration;var X=O*Z,l=B/2+6;B=O-(B/2+6);return"left: "+(X<=l?l/O*100:X>=B?B/O*100:Z*100)+"%"}},_.T(_.I,{cond:function(){var Z=z();
return!(R().isShortsPage&&Z.videoDuration<15)},
then:function(){return _.T(orl,{frame:J,props:z,isBigboard:!1})}}),_.T(OOw,{props:z,
config:R,isBigboard:!1,chapterData:M}))},"Ye");
orl=_.Mf(function(M){var z=M.frame;var J=M.props;var R=M.isBigboard;var D=function(){var B,O;return(O=(B=J().playerApi)==null?void 0:B.getVideoContentRect())!=null?O:{width:0,height:0}},N=function(){return pOb(z())},Z=function(){var B=z();
return B?B.height/B.rows:0};
M={};M=_.Qe((M.ytPlayerStoryboardBigboardImageWrapper=R,M.ytPlayerStoryboardStoryboardImageWrapper=function(){return!R()},M));
return _.T("div",{class:M,style:function(){return"width: "+(R()?D().width:N())+"px; height: "+(R()?D().height:Z())+"px;"}},_.T(lou,{frame:z,
storyboardWidth:N,storyboardHeight:Z,storyboardScale:function(){return(R()?D().width:N())/N()}}))},"Ze");
lou=_.Mf(function(M){var z=M.frame;var J=M.storyboardWidth;var R=M.storyboardHeight;var D=M.storyboardScale;var N=function(){var Z=z().row,B=z().column,O=J(),X=R(),l=D();return{left:-B*O*l,top:-Z*X*l}};
return _.T("img",{src:function(){return z().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+N().left+"px; top: "+N().top+"px; width: "+z().width*D()+"px; height: "+z().height*D()+"px;"}})},"$e");
OOw=_.Mf(function(M){var z=M.props;var J=M.config;var R=M.isBigboard;var D=M.chapterData;M={};M=_.Qe("ytPlayerStoryboardMetadata",(M.ytPlayerStoryboardMetadataBigboard=R,M));return _.T("div",{class:M},_.T(_.I,{cond:R,then:function(){return _.T(_.MH,null,_.T(eDc,{props:z,config:J}),_.T(_.I,{cond:function(){a:{var N=z();var Z=J(),B=D(),O;if((Z==null?0:Z.activeChapter)&&((O=_.G(Z==null?void 0:Z.activeChapter,Ka))==null?0:O.title))N=!0;else{Z=_.S(Z08(B));for(Z=Z.next();!Z.done;Z=Z.next()){N=(Z=_.G(Z.value,
DKV))&&Yn0(N,Z);break a}N=!1}}return N},
then:function(){return _.T(Q$G,{props:z,config:J,isBigboard:!0,chapterData:D})}}))},
else:function(){return _.T(_.MH,null,_.T(Q$G,{props:z,config:J,isBigboard:!0,chapterData:D}),_.T(eDc,{props:z,config:J}))}}))},"af");
eDc=_.Mf(function(M){var z=M.props;var J=M.config;M={};M=_.Qe("ytPlayerStoryboardTimestamp",(M.ytPlayerStoryboardTimestampShorts=function(){return J().isShortsPage},M.ytPlayerStoryboardTimestampIsHovering=function(){return z().isHovering||J().isShortsPage&&!0},M));
return _.T("div",{class:M},_.T(_.MH,null,function(){return _.mep(FBp(z()))}))},"bf");
Q$G=_.Mf(function(M){var z=M.props;var J=M.config;var R=M.isBigboard;var D=M.chapterData;M={};R=_.Qe("ytPlayerStoryboardTitle",(M.ytPlayerStoryboardTitleBigboard=R,M));return _.T("div",{class:R},_.T(_.I,{cond:function(){return!J().isShortsPage},
then:function(){return _.T(Uxu,{props:z,activeChapter:function(){return J().activeChapter},
chapterData:D})}}))},"cf");
Uxu=_.Mf(function(M){var z=M.props;var J=M.activeChapter;var R=M.chapterData;return _.T(_.MH,null,_.T(_.G4,{each:function(){return Z08(R())},
keyBy:"INDEX"},function(D){return _.T(_.MH,null,_.T(_.I,{cond:function(){return _.G(D(),DKV)&&Yn0(z(),_.G(D(),DKV))},
then:function(){return _.T(vrd,{timedMarker:function(){return _.G(D(),DKV)}})}}))}),_.T(_.I,{cond:function(){var D;
return J()&&((D=_.G(J(),Ka))==null?void 0:D.title)},
then:function(D){return _.T(_.m3,{text:D,noPreWrap:!0})}}))},"df");
vrd=_.Mf(function(M){var z=M.timedMarker;return _.T(_.MH,null,_.T("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.T(_.vS,{icon:function(){return z().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.T(_.m3,{text:function(){return z().label},
noPreWrap:!0}))},"ef");_.G$u=_.Mf(function(M){var z=M.progressBarProps;var J=M.playheadData;var R=M.config;M=_.AL("yt-progress-bar");var D=_.AL("div"),N=_.AL("div"),Z=_.S(_.kE({width:0,left:0},void 0,"NcXsUb")),B=Z.next().value,O=Z.next().value,X=function(){N.value&&O(N.value.getBoundingClientRect())},l=function(){B().width<=0&&X();
return B()};
MS("resize",X);var e=new qd(l,function(){},function(){return 0},function(){},function(){},function(){}),Q=function(){return z()};
Z=_.S(_.kE(!1,void 0,"ZsF6Xc"));var v=Z.next().value,x=Z.next().value;Z=_.ol(function(){x(!0);R().position===2?setTimeout(function(){X()},100):X()});
var m=_.ol(function(){x(!1);JA5(e,Q)()}),y=_.ol(function(cY){R().doSeekOnClick&&fD5(e,Q,R)(cY);
return!1}),H=_.ol(function(cY){iSi(e,Q)(cY);
return!1}),q=_.ol(function(cY){CYi(e,Q)(cY);
return!1}),b=_.ol(function(cY){rGG(e,Q,R)(cY);
return!1}),V=_.ol(function(cY){zDt(e,Q,R)(cY);
return!1}),E=_.ol(function(){RDu(e,Q,R)();
return!1}),L=_.ol(function(){Dxd(e,Q,R)();
return!1}),z8=_.ol(function(){Nuv(e,Q,R)();
return!1}),O8=_.ol(function(cY){Pvw(Q)(cY);
return!1});
MS("mousemove",Saw(e,Q,R));MS("mouseup",ZOs(e,Q,R));_.mF(function(){llR(D.value);x(!1);X();ZOs(e,Q,R)()});
var I3={};I3=_.Qe("ytPlayerProgressBarHost",function(){return R().className},(I3.ytPlayerProgressBarHostReadOnly=function(){return R().disableScrubbing},I3.ytPlayerProgressBarHostHidden=function(){return R().hideProgressBar&&!v()},I3.ytPlayerProgressBarHostLowerPlayer=function(){return R().position===0},I3.ytPlayerProgressBarHostBottomEdge=function(){return R().position===1},I3.ytPlayerProgressBarHostBottomInset=function(){return R().position===2},I3.ytPlayerProgressBarHostCustom=function(){return R().position===
3},I3));
var vY={},te=_.Qe("ytPlayerProgressBarBackground",(vY.ytPlayerProgressBarBackgroundHide=function(){return R().position===2&&!v()&&!z().isDragging},vY));
vY={};vY=_.Qe("ytPlayerProgressBarDragContainer",(vY.ytPlayerProgressBarDragContainerBottomEdge=function(){return R().position===1},vY));
var wR={};wR=_.Qe("ytPlayerProgressBarProgressBar",(wR.ytPlayerProgressBarProgressBarInset=function(){return R().position===2},wR.ytPlayerProgressBarProgressBarInsetMinimized=function(){return R().position===2&&!v()&&!z().isDragging},wR));
var qb=function(){return Math.floor(De8(z())*100)};
return _.T("yt-progress-bar",{el:M,class:I3},_.T(_.I,{cond:function(){return R().position===2},
then:function(){return _.T("div",{class:te})}}),_.T("div",{el:D,
"on:click":y,"on:touchstart":H,"on:touchmove":b,"on:mouseenter":Z,"on:mousedown":q,"on:mouseleave":m,"on:mousemove":V,"on:mouseup":L,"on:touchend":E,"on:touchcancel":z8,"on:keydown":O8,class:vY,role:"slider","aria-valuenow":qb,"aria-valuetext":function(){return qb()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return z().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.e9("SEEK_SLIDER")},_.T("div",{el:N,class:wR},_.T(aDm,{progressBarProps:z,config:R,highContrast:function(){return!!R().isInlinePlayback}}),_.T(_.I,{cond:function(){return R().chapterData&&kq0(R().chapterData)},
then:function(){return _.T(qI5,{progressState:z,multiMarkersPlayerBarRenderer:function(){return R().chapterData},
progressBarWidth:function(){return B().width}})},
else:function(){return _.T(VXG,{progressBarProps:z,config:R})}}),_.T(Ejt,{progressBarProps:z,
playheadData:J,interpolateDotPosition:function(){return R().position!==2},
hidePlayhead:function(){return R().playheadDotBehavior===1&&!v()}}))),_.T(Ioc,{progressBarProps:z,
config:function(){return{activeChapter:Gq0(z(),R().chapterData),getProgressBarWidthPx:function(){return l().width},
isShortsPage:!!R().isShortsPage,isInlinePlayer:!!R().isInlinePlayback,useFadeInAnimation:!!R().isInlinePlayback}},
progressBarWidthPx:function(){return B().width},
chapterData:function(){return R().chapterData}}))},"ff");
_.G$u.idomCompat=!0;Object.assign({},_.BYb(),{setState:function(){},
domMeasurements:{},appApi:_.RRR(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var wjw;
_.xxu=_.Mf(function(){var M,z=(M=_.u2(sW8().playerApi))!=null?M:void 0;M=_.S(_.kE(!1,void 0,"HLFBmb"));var J=M.next().value,R=M.next().value;M=_.S(_.kE(!1,void 0,"lHH9bc"));var D=M.next().value,N=M.next().value;M=_.S(_.kE(!1,void 0,"zsY7yd"));var Z=M.next().value,B=M.next().value;M=_.S(_.kE(!1,void 0,"KeHQgc"));var O=M.next().value,X=M.next().value;M=_.S(_.kE(0,void 0,"gLLCj"));var l=M.next().value,e=M.next().value;M=_.S(_.kE(0,void 0,"s3RYkf"));var Q=M.next().value,v=M.next().value;M=_.S(_.kE(!1,void 0,
"Dn608e"));var x=M.next().value,m=M.next().value;M=_.S(_.kE(0,void 0,"AnkH1b"));var y=M.next().value,H=M.next().value;M=_.S(_.kE(0,void 0,"QYNL0b"));var q=M.next().value,b=M.next().value;M=_.S(_.kE("",void 0,"Yzw45d"));var V=M.next().value,E=M.next().value;M=_.S(_.kE(-1,void 0,"iiVI0c"));var L=M.next().value,z8=M.next().value,O8=_.o4(function(){var I3={controlsVisible:J(),isOverlayHidden:D(),shouldWaitToHideControls:Z(),isDragging:O(),isHovering:x(),videoDuration:y(),playedTime:q(),videoId:V(),draggedTime:Q(),
hoveredTime:l(),playerState:L()};return Object.assign({},_.BYb(),I3,{domMeasurements:{},setState:function(vY){vY.controlsVisible!==void 0&&R(vY.controlsVisible);vY.isOverlayHidden!==void 0&&N(vY.isOverlayHidden);vY.shouldWaitToHideControls!==void 0&&B(vY.shouldWaitToHideControls);vY.isDragging!==void 0&&X(vY.isDragging);vY.isHovering!==void 0&&m(vY.isHovering);vY.draggedTime!==void 0&&v(vY.draggedTime);vY.hoveredTime!==void 0&&e(vY.hoveredTime);vY.videoDuration!==void 0&&H(vY.videoDuration);vY.playedTime!==
void 0&&b(vY.playedTime);vY.videoId!==void 0&&E(vY.videoId);vY.playerState!==void 0&&z8(vY.playerState)},
appApi:_.RRR(),playerApi:z})},void 0,"ZW7y9");
_.FT(function(){z==null||z.addEventListener("onVideoProgress",owH(O8));z==null||z.addEventListener("onVideoDataChange",IlH(O8));z==null||z.addEventListener("onStateChange",O0e(O8))});
_.pq(function(){if(z==null?0:z.isReady())z==null||z.removeEventListener("onVideoProgress",owH(O8)),z==null||z.removeEventListener("onVideoDataChange",IlH(O8)),z==null||z.removeEventListener("onStateChange",O0e(O8))});
return _.T("desktop-shorts-player-controls",null,_.T(wjw,{playerControlsProps:O8}))},"gf");
wjw=_.Mf(function(M){var z=M.playerControlsProps;return _.T("div",{class:"desktopShortsPlayerControlsWizHost"},_.T(_.G$u,{progressBarProps:z,config:function(){return{isShortsPage:!0,hideProgressBar:z().videoDuration<30&&z().playerState!==2&&!z().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"hf");_.tUl=_.Mf(function(M){function z(I3){I3!==0||e()?I3>50&&(e()||!v())?(Q(!1),x(!0)):I3<=50&&(e()||v())&&(Q(!1),x(!1)):Q(!0)}
function J(I3,vY){var te;return _.k(function(wR){if(wR.nextAddress==1)return wR.yield(_.T_(),2);te=wR.yieldResult;vY&&te?(te.unMute(!0),I3&&(hRH(I3,te.getVolume()),y(te.getVolume()))):te&&(te.mute(!0),I3&&hRH(I3,0));_.UI(wR)})}
function R(I3){var vY,te;return _.k(function(wR){if(wR.nextAddress==1)return wR.yield(_.T_(),2);vY=wR.yieldResult;te=50;vY&&(te=vY.getVolume(),vY.isMuted()?hRH(I3,0):hRH(I3,te));y(te);_.UI(wR)})}
var D=M.orientation;M=_.AL("desktop-shorts-volume-controls");var N=_.AL("button"),Z=_.iW("input"),B=_.S(_.kE(!1,void 0,"F6vt0d")),O=B.next().value,X=B.next().value,l=_.S(_.kE(!1,void 0,"S5PCqb"));B=l.next().value;l=l.next().value;var e=B,Q=l;l=_.S(_.kE(!0,void 0,"Tgy4e"));B=l.next().value;l=l.next().value;var v=B,x=l;B=_.S(_.kE(50,void 0,"Dq3efd"));var m=B.next().value,y=B.next().value;B=_.o4(function(){var I3=e();return _.U("web_shorts_keyboard_enable_mute_shortcut")?I3?_.e9("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.e9("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):I3?_.e9("UNMUTE_VOLUME",void 0,"Unmute"):_.e9("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
l=_.o4(function(){var I3=e(),vY=v();return{sources:[{clientResource:{imageName:I3?_.U("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":vY?_.U("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.U("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var H=_.o4(function(){var I3=m();return e()?I3+"% volume muted":I3+"% volume"},void 0,"kvkmyc"),q=_.o4(function(){return D()==="vertical_down"},void 0,"zaNsZ");
_.mF(function(){function I3(){X(!0)}
function vY(){X(!1)}
Z&&Z.value&&(Z.value.addEventListener("focus",I3),Z.value.addEventListener("focusout",vY),R(Z.value).then(function(){z(Number(yfp(Z.value)))}));
N&&N.value&&(N.value.addEventListener("focus",I3),N.value.addEventListener("focusout",vY));_.pq(function(){var te;Z==null||(te=Z.value)==null||te.removeEventListener("focus",I3);var wR;Z==null||(wR=Z.value)==null||wR.removeEventListener("focusout",vY);var qb;N==null||(qb=N.value)==null||qb.removeEventListener("focus",I3);var cY;N==null||(cY=N.value)==null||cY.removeEventListener("focusout",vY)})});
var b=_.ol(function(){if(Z&&Z.value){var I3=Number(yfp(Z.value));nwR(I3);y(I3);Z.value.style.setProperty("--gradient-percent",I3+"%");z(I3)}return!1}),V=_.ol(function(){X(!0)}),E=_.ol(function(){Z&&Z.value&&(J(Z.value,e()),Q(!e()));
return!1}),L={},z8={},O8={};
return _.T("desktop-shorts-volume-controls",{"on:pointerleave":_.ol(function(){X(!1)}),
class:_.Qe("ytdDesktopShortsVolumeControlsHost",(L.ytdDesktopShortsVolumeControlsHostVertical=q,L.ytdDesktopShortsVolumeControlsHostExpanded=O,L)),el:M},_.T(_.I,{cond:function(){return!q()},
then:function(){var I3={};return _.T("div",{class:_.Qe("ytdDesktopShortsVolumeControlsBackgroundScrim",(I3.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=O,I3))})}}),_.T("div",{class:_.Qe((z8.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=q,z8))},_.T("button",{"aria-label":B,
title:B,el:N,"on:click":E,"on:pointerenter":V,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},l?_.T(_.rv,{data:l,alt:B,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.T("div",{class:_.Qe("ytdDesktopShortsVolumeControlsSliderContainer",(O8.ytdDesktopShortsVolumeControlsSliderContainerExpanded=O,O8.ytdDesktopShortsVolumeControlsSliderContainerVertical=q,O8.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=q,O8.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return O()&&q()},O8))},_.T("input",{"aria-label":_.e9("VOLUME"),
title:_.e9("VOLUME"),el:Z,"on:input":b,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":m,"aria-valuetext":H,"aria-valuemin":0,"aria-valuemax":100})))},"jf");_.j$w=_.Mf(function(M){var z=M.data;return _.T("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.T(_.a9,{command:function(){return z().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.T(_.I,{cond:function(){return z().iconName},
then:function(J){return _.T(_.vS,{icon:J})}}),_.T("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return z().text}),_.T(_.I,{cond:function(){return z().showEndChevron},
then:function(){return _.T(_.vS,{icon:"CHEVRON_RIGHT"})}})))},"kf");var pjt=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;M={};return _.T("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.T(_.t_,{data:function(){return z().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(R){var D=R.data;
return _.T(_.Km,{data:function(){return(J==null?void 0:J())===1?Object.assign({},D(),{avatar:{avatarViewModel:Object.assign({},_.G(D().avatar,_.q6),{avatarImageSize:"AVATAR_SIZE_48"})}}):D()}})}}),_.T(_.t_,{data:function(){return z().avatarStackViewModel}},{avatarStackViewModel:function(R){return _.T(_.$h,{data:R.data})}}),_.T(_.m3,{className:_.Qe("ytReelChannelBarViewModelChannelName",(M.ytReelChannelBarViewModelChannelNameLarge=function(){return(J==null?void 0:J())===1},M)),
text:function(){return z().channelName},
linkInheritColor:!0,userInput:!0}),_.T("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.T(_.t_,{data:function(){return z().subscribeButtonViewModel}},{subscribeButtonViewModel:function(R){var D=R.data;
return _.T(_.cH,{data:function(){return(J==null?void 0:J())===1?Object.assign({},D(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},D().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):D()},
isOverlay:!1})},
buttonViewModel:_.lT})),_.T("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.T(_.t_,{data:function(){var R,D;return(D=_.G((R=z())==null?void 0:R.sponsorButtonViewModel,QR2))==null?void 0:D.sponsorButton}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"lf");var Faw=_.Mf(function(M){var z=function(){var R;return(M==null?void 0:(R=M.overlayDensity)==null?void 0:R.call(M))===1?22:16},J={};
return _.T("yt-reel-multi-format-link-view-model",{class:_.Qe("ytReelMultiFormatLinkViewModelHost",(J.ytReelMultiFormatLinkViewModelHostTall=!0,J.ytReelMultiFormatLinkViewModelHostLarge=function(){var R;return((R=M.overlayDensity)==null?void 0:R.call(M))===1},J))},_.T(_.a9,{ariaLabel:function(){return M.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return M.data().command}},_.T("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.T(_.I,{cond:function(){return M.data().icon},
then:function(R){return _.T(_.rv,{data:R,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:z})}}),_.T(_.m3,{text:function(){return M.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"mf");
Faw.idomCompat=!0;var Yam=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;var R=_.AL("yt-shorts-suggested-action-view-model");M=_.S(_.kE(!1,void 0,"xDqzhe"));var D=M.next().value,N=M.next().value;M=_.S(_.kE(!1,void 0,"LI9CFd"));var Z=M.next().value,B=M.next().value,O=function(){return z().isMultiLineSa},X=_.U3(yz8,function(){var V,E;
return(E=(V=z().toggleableContent)==null?void 0:V.entityKey)!=null?E:""}),l=function(){var V,E,L;
return(L=z().toggleableContent)!=null&&L.entityKey?(E=(V=X())==null?void 0:V.value)!=null?E:!1:!1},e=function(){var V,E,L,z8,O8,I3,vY,te,wR,qb,cY;
return z().toggleableContent?l()?(V=z().toggleableContent)==null?void 0:V.toggledData:(E=z().toggleableContent)==null?void 0:E.untoggledData:{primaryText:(te=(L=z().defaultContent)==null?void 0:L.primaryText)!=null?te:z().text,secondaryText:(z8=z().defaultContent)==null?void 0:z8.secondaryText,onTapCommand:(wR=(O8=z().defaultContent)==null?void 0:O8.onTapCommand)!=null?wR:z().onTapCommand,icon:(qb=(I3=z().defaultContent)==null?void 0:I3.icon)!=null?qb:z().icon,image:(cY=(vY=z().defaultContent)==null?
void 0:vY.image)!=null?cY:z().image}},Q=function(){return O()?z().trailingTapTarget:void 0},v=function(V,E){return function(){return D()?E:V}},x=function(){return{leadingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(J==null?void 0:J())===1?v("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):v("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
M={};M=_.Qe((M.ytShortsSuggestedActionViewModelStaticHost=function(){return!O()},M.ytShortsSuggestedActionViewModelDynamicHost=O,M.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return O()&&Z()},M.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return O()&&!Z()},M));
_.mF(function(){if(O()){var V=0,E;if((E=z().animationParams)==null?0:E.shouldExpand){var L,z8;V=((z8=(L=z().animationParams)==null?void 0:L.expansionDelaySecs)!=null?z8:0)*1E3}var O8,I3=((O8=z().animationParams)==null?0:O8.shouldExpand)?setTimeout(function(){N(!0)},V):void 0,vY,te;
V=((vY=z().animationParams)==null?0:vY.visibilityDelaySecs)?((te=z().animationParams)==null?NaN:te.visibilityDelaySecs)*1E3:0;var wR=setTimeout(function(){B(!0)},V);
_.pq(function(){I3&&clearTimeout(I3);clearTimeout(wR)})}});
var m=function(V){_.aE(V,Object.assign({},{form:{element:R.value}}))},y=_.ol(function(){var V,E=(V=e())==null?void 0:V.onTapCommand;
E&&m(E)}),H=_.ol(function(){var V,E;
if(V=(E=Q())==null?void 0:E.onTapCommand)return m(V),!1}),q=_.UN({"vertical-align":"bottom",
"border-radius":function(){var V;return O()?((V=z().defaultContent)==null?0:V.isCircleImage)?"50%":"4px":"0px"},
width:function(){var V,E,L;return O()&&((V=z().defaultContent)==null?0:V.imageSize)?((L=(E=z().defaultContent)==null?void 0:E.imageSize)!=null?L:24)+"px":null},
height:function(){var V,E,L;return O()&&((V=z().defaultContent)==null?0:V.imageSize)?((L=(E=z().defaultContent)==null?void 0:E.imageSize)!=null?L:24)+"px":null}}),b={};
return _.T("yt-shorts-suggested-action-view-model",{class:M,el:R},_.T("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.T("button",{class:_.Qe(function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var V;
return(V=z().useFullRoundedBorder)!=null&&V?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!Q()&&O()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":O()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var V;
return(V=z().disableFixedHeight)!=null&&V?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(b.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(J==null?void 0:J())===1},b)),
"on:click":y},_.T(_.Tn,{model:{color:4}}),_.T("div",{class:_.Qe(function(){return O()?x().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.T(_.I,{cond:function(){var V;
return(V=e())==null?void 0:V.image},
then:function(V){return _.T(_.rv,{data:V,alt:"",className:function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:q})}}),_.T(_.I,{cond:function(){var V,E;
return(V=e())==null?void 0:(E=V.icon)==null?void 0:E.iconType},
then:function(V){return _.T(_.vS,{icon:V,active:l,className:function(){return O()?D()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.T(_.I,{cond:function(){var V;
return(V=e())==null?void 0:V.primaryText},
then:function(V){return _.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.T(_.m3,{text:V}))}}),_.T(_.I,{cond:function(){var V;
return(V=e())==null?void 0:V.secondaryText},
then:function(V){return _.T("div",{class:function(){return x().secondaryText()}},_.T(_.m3,{text:V}))}}))),_.T(_.I,{cond:Q,
then:function(V){return _.T("div",{class:function(){return x().trailingSection()},
"aria-label":function(){var E;return(E=V().a11yLabel)!=null?E:""},
"on:click":H,role:"button",tabindex:0},_.T(_.Tn,{model:{color:4}}),_.T(_.vS,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"nf");var mxu=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;var R=_.AL("yt-shorts-video-title-view-model");M=_.ol(function(Z){if(_.cn(_.Hn(Z),R.value,["A".toString()]))return!1;(Z=z().truncatedTextOnTapCommand)&&_.aE(Z);return!1});
var D={},N={};return _.T("yt-shorts-video-title-view-model",{el:R,class:_.Qe("ytShortsVideoTitleViewModelHost",(D.ytShortsVideoTitleViewModelHostClickable=function(){return!!z().truncatedTextOnTapCommand},D)),
"on:click":M},_.T("h2",{class:_.Qe("ytShortsVideoTitleViewModelShortsVideoTitle",(N.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(J==null?void 0:J())===1},N))},_.T(_.m3,{text:function(){return z().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"of");_.grv=_.Mf(function(M){var z=M.data;var J=M.overlayDensity;return _.T("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.T(_.t_,{data:function(){return z().metadataItems}},{badgeViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.kY,{data:R.data}))},
playerDisclosureViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.j$w,{data:R.data}))},
shortsSuggestedActionViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(Yam,{data:R.data,overlayDensity:J}))},
reelChannelBarViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(pjt,{data:R.data,overlayDensity:J}))},
reelMultiFormatLinkViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(Faw,{data:R.data,overlayDensity:J}))},
shortsVideoTitleViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(mxu,{data:R.data,overlayDensity:J}))},
reelSoundMetadataViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.mNl,{data:R.data,overlayDensity:J}))},
toggleButtonViewModel:function(R){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.cm,{data:R.data}))}}))},"pf");var s$G=_.Mf(function(M){var z=_.rH(M,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),J=z.size,R=z.onTap,D=z.disabled,N=z.tooltipText;return _.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(_.XC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:J(),disabled:D(),tooltipText:N(),onTap:R}},
iconName:M.iconType}))},"qf"),nrv=_.Mf(function(M){function z(l){l.stopPropagation();
l.code==="ArrowUp"?(l.preventDefault(),deG(B.value)):l.code==="ArrowDown"?(l.preventDefault(),KB0(B.value)):l.code==="KeyM"?H0e():(l.code==="KeyK"||l.code==="Space")&&cf3(O())}
var J=_.rH(M,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});M=J.previousButtonDisabled;var R=J.nextButtonDisabled,D=J.data,N=J.playabilityStatus,Z=J.previewThumbnail,B=_.AL("ytd-shorts-miniplayer-overlay"),O=_.d4(_.L9G),X;_.FT(function(){(X=_.yW(B.value))&&X.addEventListener("keydown",z)});
_.pq(function(){var l;(l=X)==null||l.removeEventListener("keydown",z)});
J=function(){var l,e,Q;return(l=D())==null?void 0:(e=l.reelPlayerOverlayRenderer)==null?void 0:(Q=e.likeButton)==null?void 0:Q.likeButtonRenderer};
return _.T("ytd-shorts-miniplayer-overlay",{el:B,class:"ytdShortsMiniplayerOverlayHost"},_.T("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.UN({"background-image":function(){var l=Z();return l?'url("'+_.Sh(l.thumbnails)+'")':""}})}),_.T("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.T("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.T(s$G,{iconType:function(){var l=O();
return l===2||l===-1||l===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){cf3(O())},
tooltipText:function(){var l=O();return l===1||l===3?_.e9("PLAYER_LABEL_PAUSE"):_.e9("PLAYER_LABEL_PLAY")}}),_.T(_.tUl,{orientation:"horizontal_right"})),_.T("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.T(s$G,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:M,onTap:function(){deG(B.value)},
tooltipText:_.e9("PREVIOUS_VIDEO_LABEL")}),_.T(s$G,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:R,onTap:function(){KB0(B.value)},
tooltipText:_.e9("NEXT_VIDEO_LABEL")}),_.U("web_shorts_pip_like_button")?_.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T($RS,{buttonTooltipPosition:"left",data:J,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.T("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.T(_.I,{cond:function(){var l,e;return _.G((l=D())==null?void 0:(e=l.reelPlayerOverlayRenderer)==null?void 0:e.metapanel,
_.oBg)},
then:function(l){return _.T("div",{class:_.Qe("ytdShortsMiniplayerOverlayInteractive")},_.T(_.grv,{data:l}))}})),_.T("div",{class:_.Qe("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var l;return!((l=D())==null||!l.adsOverlay)||N()&&!n$0(N())}},_.T("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.T(_.xxu,null)))),_.T(_.I,{cond:function(){var l=D(),e,Q;
l=_.G(l==null?void 0:(e=l.adsOverlay)==null?void 0:(Q=e.fulfillmentContent)==null?void 0:Q.fulfilledLayout,giv);return _.G(l==null?void 0:l.renderingContent,HQ$)},
then:function(l){return _.T("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.T(pra,{data:l}))}}))},"rf");var $ep=_.Mf(function(){var M=_.S(_.kE(new _.eU(NaN,NaN),void 0,"HSMFk")),z=M.next().value,J=M.next().value;M=_.S(_.kE(!1,void 0,"uaAxwf"));var R=M.next().value,D=M.next().value,N=_.S(_.kE(!1,void 0,"nVSwef"));M=N.next().value;var Z=N.next().value,B=_.JF().resolve(_.q5).miniplayerPropSignalMap[0],O=B.data,X=B.shortsData,l=B.nextButtonDisabled,e=B.shortsPreviewThumbnail,Q=B.previousButtonDisabled,v=B.externalPlaylistData;N=B.toastData;var x=B.playabilityStatus,m=B.isDisabled,y=B.playerVe,H=B.closeVe;
B=_.d4(_.BX);_.Lc("yt-pip-window-resized",function(E){J(E)});
_.Lc("yt-activate-pip-miniplayer",function(){return _.k(function(E){Z(!0);_.UI(E)})});
var q=function(){var E;return!((E=v())==null||!E.contents)&&R()},b=function(){var E=z(),L=!!O(),z8=q();
E=E.clone();L&&(E.height-=76);z8&&(E.height-=285);return E},V=function(){D(!R())};
_.jP(function(){var E=y(),L=_.y5(11),z8=_.hu(11);L&&z8&&E&&(_.qs(L,z8,E),z8=H())&&(_.Wv(L,E,[z8]),_.VC(L,[z8]))},"HPkp0c");
return _.T("ytd-pip-container",{class:"ytdPipContainerHost"},_.T(_.I,{cond:M,then:function(){return _.T(_.KWm,{isDisabled:m,playabilityStatus:x,size:b})}}),_.T(_.I,{cond:O,
then:function(){return _.T(_.cGw,{data:O,expanded:R,onExpandClick:V,playlistData:v})}}),_.T(_.I,{cond:q,
then:function(){return _.T("div",{class:"ytdPipContainerPlaylistPanel"},_.T(_.dRV,{data:v,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.T(_.I,{cond:B,
then:function(){return _.T(nrv,{data:X,nextButtonDisabled:l,previousButtonDisabled:Q,playabilityStatus:x,previewThumbnail:e})}}),_.T("div",{class:"ytdPipContainerToast"},_.T(_.$yd,{toastData:N})))},"sf");var at=function(M,z){var J=this;this.pipController=M;this.JSC$18590_clientRoot=z;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=rIc();this.watchPipEnabled=_.U("web_watch_pip");this.shortsPipEnabled=_.U("web_shorts_pip");this.JSC$18590_watchWhileEnabled=_.U("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;_.jx(_.rA(),W9Y,function(R){J.isSingleOptionSurveyActive=R});
this.JSC$18590_onPlayerPlayVideo=this.JSC$18590_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);_.EB(_.VA.getInstance(),this.miniplayerServiceActionMap,this.JSC$18590_clientRoot);M.pictureInPictureSupported()&&_.gP("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},MdV,Wa5,KaG,aom,VUd,k3g;
at.prototype.handleMediaSessionPipActivation=function(){var M=this,z;return _.k(function(J){_.x9().mediaSessionPipActivation=!0;z=_.JF().resolve(_.M6);return z.isOnWatch()&&M.watchPipEnabled?(_.x9().watchPipActivation=!0,_.hDs(M,z.data),J.jumpTo(0)):z.isOnShorts()&&M.shortsPipEnabled?(_.x9().shortsPipActivation=!0,_.yAs(M),J.jumpTo(0)):M.isMiniplayerActive()&&M.watchPipEnabled&&!M.watchWhileMode?J.yield(HOl(M),0):J.jumpTo(0)})};
var HOl=function(M){var z,J,R,D;return _.k(function(N){if(N.nextAddress==1)return z=!M.miniplayerToPipMode,J=M.playerElement,R=M.miniplayerData,D=M.watchResponse,N.yield(M.deactivate(),2);if(N.nextAddress!=3)return z?(_.x9().mediaSessionPipActivation=!0,_.x9().watchPipActivation=!0):_.x9().miniplayerButtonActivation=!0,N.yield(M.activate(J,R,D),3);M.miniplayerToPipMode=z;_.UI(N)})};
at.prototype.onDownloadedVideoDeleted=function(M){var z,J=_.G((z=this.miniplayerData)==null?void 0:z.watchEndpoint,_.Au),R,D;J&&((R=this.watchResponse)==null?void 0:(D=R.playerResponse)==null?void 0:D.offlineState)!==void 0&&(z=J.videoId)&&M&&z===M&&this.close()};
at.prototype.onShowMiniplayerCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){switch(v.nextAddress){case 1:return J=_.G(M,DPV),D=(R=J)==null?void 0:R.miniplayerCommand,N=_.G(D,_.Au),D&&N&&!z.active?v.yield(_.nN.getInstance(),2):v.return();case 2:return Z=v.yieldResult,v.yield((B=Z)==null?void 0:B.get("yt-miniplayer-shown-video-id"),3);case 3:O=v.yieldResult;X=N.videoId;if(!X||O===X)return v.return();l=_.JF().resolve(_.M6);if(l.isOnWatch())return _.yA(Error("Hj")),v.return();
e={channelItem:{externalId:btoa(X)}};z.readyToResumeVe=_.O3(121253,void 0,void 0,e);_.x9().showMiniplayerCommandActivation=!0;return v.yield(_.BUg(z,D,!0),4);case 4:return z.active&&(_.Vi(z,{readyToResumeVe:z.readyToResumeVe,isReadyToResume:!0}),z.isReadyToResume=!0),v.yield((Q=Z)==null?void 0:Q.set("yt-miniplayer-shown-video-id",N.videoId),5);case 5:z.readyToResumeVe=void 0,_.UI(v)}})};
at.prototype.init=function(M){this.miniplayerEl?_.yA(new _.xN("MiniplayerService already initialized.")):this.miniplayerEl=M};
at.prototype.isInitialized=function(){var M=!!this.miniplayerEl;M||_.yA(new _.xN("MiniplayerService used before initialized."));return M};
_.hDs=function(M,z){if(M.isInitialized()){var J=_.cf(z.response,!1,z.playerResponse),R=_.JF().resolve(_.M6).getPlayerFromWatch();_.x9().currentEndpoint=J.watchEndpoint||null;M.activate(R,J,z)}};
_.yAs=function(M){if(M.isInitialized()){var z=_.JF().resolve(_.M6).getPlayerFromShorts();M.activate(z)}};
MdV=function(M,z){var J;(J=!M.isInitialized())||(J=_.JF().resolve(_.M6).isOnWatch()&&M.watchPipMode,J=!(M.isMiniplayerActive()&&(_.x9().userActivation||_.x9().lockupActivation||J)));if(J)return!1;cAm(M,z)?_.ug(M):k3g(M,z);return M.watchPipMode?!_.JF().resolve(_.M6).isOnWatch():!0};
at.prototype.isMiniplayerActive=function(){return this.active};
var cAm=function(M,z){var J;z=(J=_.G(z,_.Au))==null?void 0:J.videoId;var R,D;M=(D=_.G((R=M.miniplayerData)==null?void 0:R.watchEndpoint,_.Au))==null?void 0:D.videoId;return z!=null&&z===M};
at.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Pv(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.S9(this.miniplayerEl,"yt-navigate-home-action"))};
_.BUg=function(M,z,J,R){J=J===void 0?!1:J;var D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:if(M.active){B.jumpTo(2);break}D=_.JF().resolve(_.M6);if(Z=(N=M.playerElement)!=null?N:D.getPlayerFromWatch()){B.jumpTo(3);break}return B.yield(_.JF().resolve(_.SF),4);case 4:Z=D.getPlayerFromWatch();case 3:if(!Z){_.yA(Error("Jj"));B.jumpTo(2);break}return B.yield(M.activate(Z,R),2);case 2:return M.active?B.yield(k3g(M,z,J),0):B.return()}})};
at.prototype.activate=function(M,z,J){var R=this,D,N,Z,B,O,X,l,e,Q;return _.k(function(v){switch(v.nextAddress){case 1:if(!R.isInitialized())return v.return();if(!M)return _.yA(Error("Jj")),v.return();if(_.X8p()||R.isMiniplayerActive())var x=!0;else x=_.x9().watchPipActivation||_.x9().watchWhileActivation,_.JF().resolve(_.M6).isOnWatch()&&!x?(_.yA(new _.xN("miniplayer activated on watch page")),x=!0):x=_.x9().watchWhileActivation?R.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Iao():
!1;if(x)return oht(),v.return();D=_.x9().mediaSessionPipActivation;N=_.x9().shortsPipActivation;Z=_.x9().watchPipActivation;O=(B=_.x9().watchWhileActivation)||Z;X=Z||N;if(!R.pictureInPictureEnabled()||!X){v.jumpTo(2);break}return v.yield(dxN(R,D),3);case 3:if(!v.yieldResult)return _.yA(Error("Ij")),oht(),v.return();case 2:return R.setActive(!0),R.watchResponse=J,R.playerElement=M,R.updateMiniplayerData(z),v.yield(KaG(R,M),4);case 4:if(!R.active)return _.yA(new _.xN("miniplayer deactivated during activation")),
R.removePlayerListeners(),v.return();x=_.JF().resolve(_.aV);x.addEventListener("yt-navigate",_.ou(R,R.onPlaylistNavigate));x.addEventListener("yt-playlist-data-updated",_.ou(R,R.JSC$18590_onPlaylistDataUpdated));R.JSC$18590_onPlaylistDataUpdated();oht();R.JSC$18590_watchWhileEnabled&&_.$xl(R,B);R.pictureInPictureEnabled()&&R.shortsPipEnabled&&(R.shortsPipMode=N,_.rA().dispatch(MtV(R.shortsPipMode)));R.pictureInPictureEnabled()&&R.watchPipEnabled&&(R.watchPipMode=Z,_.Xdo(R.handleMediaSessionPipActivation));
R.player&&(l=R.player.getPlayerState(),e=l===1,_.rA().dispatch(Z9$(l)),_.ZL(R.miniplayerEl,"yt-miniplayer-play-state-changed",[e]),_.x9().isVideoPlaying=e);_.ZL(R.miniplayerEl,"yt-miniplayer-endpoint-changed");u3w(R);_.qam(R);if(R.shortsPipMode||R.watchPipMode)v=v.yield(_.S9(R.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{x=v.yield;var m=_.S9(R.miniplayerEl,"yt-activate-miniplayer",[O])[0];v=x.call(v,m,6)}return v;case 6:if(R.watchResponse&&!_.U("miniplayer_copy_screen_on_activation_killswitch")){x=
R.getScreenLayer();m=_.y5(0);var y=whp(0);m&&y&&(_.cs(m,y,x),x===0&&vDc(void 0,0))}Wa5(R);aom(R,!0);(Q=R.getPlayerElement())==null||Q.focusOnPlayer();_.UI(v)}})};
at.prototype.updateMiniplayerData=function(M){this.miniplayerData=M;_.Vi(this,{data:M})};
_.qam=function(M){var z,J,R=((z=M.miniplayerData)==null?void 0:(J=z.miniplayerRenderer)==null?void 0:J.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";z=M.watchWhileMode||M.watchPipMode?R&&!_.JF().resolve(_.M6).isOnWatch():R;_.Vi(M,{isDisabled:z});var D,N;J=_.G((D=M.miniplayerData)==null?void 0:(N=D.miniplayerRenderer)==null?void 0:N.minimizedEndpoint,_.nM);z&&J&&_.JF().resolve(_.hX).openSheet({openPopupActionCommand:{openPopupAction:J}},M.miniplayerEl)};
Wa5=function(M){if(M.watchResponse&&!VUd(M)){var z,J=(z=M.watchResponse.playerResponse)==null?void 0:z.trackingParams;J&&(_.Vi(M,{expandVe:_.O3(35989),closeVe:_.O3(34699),readyToResumeCloseVe:_.O3(131070),repositionVe:_.O3(226204),resizeVe:_.O3(226205)}),_.Vi(M,{playerVe:_.pe(J)}))}};
KaG=function(M,z){return _.k(function(J){if(J.nextAddress==1)return z.preparePlayer(),J.yield(z.getPlayerPromise(),2);M.player=J.yieldResult;M.player&&(M.player.addEventListener("onPlayVideo",M.JSC$18590_onPlayerPlayVideo),M.player.addEventListener("onCloseMiniplayer",M.onPlayerCloseMiniplayer),M.player.addEventListener("onExpandMiniplayer",M.onPlayerExpandMiniplayer),M.player.addEventListener("onStateChange",M.onPlayerStateChange));_.UI(J)})};
_.P=at.prototype;_.P.JSC$18590_onPlayerPlayVideo=function(M){var z=M.sessionData&&"autonav"in M.sessionData,J;M.sessionData&&M.sessionData.itct&&(J=M.sessionData.itct);var R=M.watchEndpoint;z=R&&z?_.fTp(R,J):_.zr(M.videoId,M.listId||void 0,J);M.sessionData&&_.rM(_.G(z.commandMetadata,_.X9).url,M.sessionData);k3g(this,z)};
_.P.onPlayerExpandMiniplayer=function(){_.ug(this)};
_.P.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.P.onPlayerStateChange=function(){if(this.player){var M=this.player.getPlayerState(),z=M===1;_.rA().dispatch(Z9$(M));_.rA().dispatch(_.O9V(M));_.ZL(this.miniplayerEl,"yt-miniplayer-play-state-changed",[z]);_.x9().isVideoPlaying=z;if(M===0){z=!_.NJ.getInstance().isAutoplaySetExplicitly();var J,R,D,N,Z,B,O=(J=this.watchResponse.response)==null?void 0:(R=J.contents)==null?void 0:(D=R.twoColumnWatchNextResults)==null?void 0:(N=D.autoplay)==null?void 0:(Z=N.autoplay)==null?void 0:(B=Z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:B.confirmDialogRenderer;z&&O&&this.player.setAutonavState(1)}M===0&&this.watchWhileMode&&this.deactivate()}};
_.P.onPlaylistNavigate=function(M,z){var J=this,R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1){if(!_.G(z.endpoint,_.Au))return l.return();_.x9().currentEndpoint=z.endpoint;_.ZL(J.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.JF().resolve(_.M6).isOnWatch()&&(J.watchWhileMode||J.watchPipMode))return l.return();M.stopPropagation();(N=(D=_.G((R=z.endpoint)==null?void 0:R.commandMetadata,_.X9))==null?void 0:D.url)&&z.tempData&&!_.gu.isEmpty(z.tempData)&&_.rM(N,z.tempData);Z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};B=new ImB(function(){return J.getPlayerElement()},Z,{layer:J.getScreenLayer()});
O=function(e){B.processChunk({endpoint:z.endpoint,data:e})};
Eri(J);J.miniplayerFetchRequest=foi(J,z.endpoint,O);_.Io(l,2);return l.yield(J.miniplayerFetchRequest,4)}if(l.nextAddress!=2)return X=l.yieldResult,Law(J,X),_.ab(l,0);_.Qa(l);_.UI(l)})};
_.P.JSC$18590_onPlaylistDataUpdated=function(){var M=_.JF().resolve(_.aV).getPlaylistData();this.hasPlaylistData=!!M;_.Vi(this,{externalPlaylistData:M||{}})};
_.P.close=function(M){if(this.isInitialized())if(M){if(!((this.watchWhileMode||this.watchPipMode)&&_.JF().resolve(_.M6).isOnWatch()||this.shortsPipMode)){var z;(z=this.getPlayerElement())==null||z.stop()}this.deactivate()}else _.Am().closeMiniplayer(this.miniplayerEl)};
_.P.deactivate=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){if(!z.isInitialized()||!z.active)return Z.return();z.setActive(!1);Eri(z);(J=!!M&&cAm(z,M))&&z.isSingleOptionSurveyActive&&_.S9(z.miniplayerEl,"yt-show-watch-page-survey",[z.isSingleOptionSurveyActive]);return Z.yield(AAd(z),2)}if(Z.nextAddress!=3){aom(z,!1);z.isReadyToResume=!1;z.watchResponse=void 0;z.updateMiniplayerData(void 0);z.shortsPipMode&&(z.shortsPipMode=!1,_.rA().dispatch(MtV(z.shortsPipMode)),Pww(z.pipController),
(R=z.player)==null||R.setInternalSize(NaN,NaN));z.watchPipMode&&(z.watchPipMode=!1,Pww(z.pipController));(D=z.watchWhileMode)&&_.$xl(z,!1);z.removePlayerListeners();var B=_.JF().resolve(_.aV);B.removeEventListener("yt-navigate",_.ou(z,z.onPlaylistNavigate));B.removeEventListener("yt-playlist-data-updated",_.ou(z,z.JSC$18590_onPlaylistDataUpdated));_.x9().currentEndpoint=null;_.ZL(z.miniplayerEl,"yt-miniplayer-endpoint-changed");z.playerElement=null;oht();if(z.shortsPipMode||z.watchPipMode)Z=Z.jumpTo(3);
else{B=Z.yield;var O=_.S9(z.miniplayerEl,"yt-deactivate-miniplayer",[J,D])[0];Z=B.call(Z,O,3)}return Z}(N=z.player)==null||N.setInternalSize(NaN,NaN);z.player=null;_.UI(Z)})};
var AAd=function(M){var z;return _.k(function(J){z=_.JF().resolve(_.M6);return M.shortsPipMode?J.yield(z.movePlayerToShorts(M.playerElement),0):J.yield(z.movePlayerToWatch(M.playerElement),0)})};
at.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18590_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
at.prototype.setActive=function(M){this.active=M;this.isSingleOptionSurveyActive?_.S9(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.S9(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.rA().dispatch(_.Nv({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.$xl=function(M,z){M.watchWhileMode=z;_.Vi(M,{watchWhile:z})};
aom=function(M,z){if(!VUd(M))if(M.shortsPipMode||M.watchPipMode){var J;(J=M.player)==null||J.setDocumentPictureInPicture(z)}else{var R;(R=M.player)==null||R.setMinimized(z)}};
VUd=function(M){return M.watchWhileMode&&_.U("kevlar_watch_while_counterfactual")};
_.ug=function(M){var z;return _.k(function(J){switch(J.nextAddress){case 1:if(!M.isInitialized())return J.return();_.Io(J,2);return J.yield(M.miniplayerFetchRequest,4);case 4:_.ab(J,3);break;case 2:_.Qa(J);case 3:M.watchResponse&&M.miniplayerData&&M.miniplayerData.watchEndpoint?(z={url:M.watchResponse.url,endpoint:M.miniplayerData.watchEndpoint,data:M.watchResponse,miniplayer:!0},_.Pv(M.miniplayerEl,"yt-navigate-cache",z)):M.miniplayerData&&M.miniplayerData.watchEndpoint&&_.Pv(M.miniplayerEl,"yt-navigate",
{endpoint:M.miniplayerData.watchEndpoint}),_.UI(J)}})};
k3g=function(M,z,J){var R,D,N,Z;return _.k(function(B){if(B.nextAddress==1){if(cAm(M,z))return B.return();_.x9().currentEndpoint=z;_.ZL(M.miniplayerEl,"yt-miniplayer-endpoint-changed");_.ZL(M.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.x9().isVideoPlaying=!1;R={clientParams:{miniplayer:!0,autoSaveToQueue:!J}};D=new ImB(function(){return M.getPlayerElement()},R,{layer:M.getScreenLayer(),
parentLayer:0},void 0,M.readyToResumeVe);N=function(O){var X,l,e=Object.assign({},(X=O.playerResponse)==null?void 0:(l=X.playerConfig)==null?void 0:l.playbackStartConfig,{startPaused:!0}),Q;J&&((Q=O.playerResponse)==null?0:Q.playerConfig)&&(O.playerResponse.playerConfig.playbackStartConfig=e);D.processChunk({endpoint:z,data:O})};
Eri(M);M.miniplayerFetchRequest=foi(M,z,N);_.Io(B,2);return B.yield(M.miniplayerFetchRequest,4)}if(B.nextAddress!=2)return Z=B.yieldResult,Law(M,Z),_.ab(B,0);_.Qa(B);_.UI(B)})};
at.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Eri=function(M){M.miniplayerFetchRequest&&(M.miniplayerFetchRequest.cancel&&M.miniplayerFetchRequest.cancel("Active request obsolete"),M.miniplayerFetchRequest=null)},foi=function(M,z,J){var R=_.Y5.instance,D,N=(D=_.G(z.commandMetadata,_.X9))==null?void 0:D.url,Z;
D=!N||_.U("disable_miniplayer_tempdata")?{}:(Z=ZRG(N))!=null?Z:{};return Vq(R,z,D,window.location.href,"watch",function(B,O){J(O)},function(B){return B!==M.miniplayerFetchRequest})},Law=function(M,z){var J;
_.k(function(R){if(!z)return R.return();M.watchResponse=z;Wa5(M);u3w(M);J=_.cf(z.response,!1,z.playerResponse);if(M.isMiniplayerActive()){z.response&&(M.playerElement.watchNextData=z.response);var D=_.gu.getValueByKeys.apply(_.gu,[z].concat(_.Yj(xLv)));_.gu.getValueByKeys.apply(_.gu,[z].concat(_.Yj(YzB)))&&D&&_.JF().resolve(_.aV).setAutoplayRenderer(D);if(D)if(_.U("kevlar_is_pupi_enabled")){var N,Z,B,O,X,l=((N=z.response)==null?0:(Z=N.playerOverlays)==null?0:(B=Z.playerOverlayRenderer)==null?0:(O=
B.autonavToggle)==null?0:(X=O.autoplaySwitchButtonRenderer)==null?0:X.enabled)?2:1;_.NJ.getInstance().setState(l,!1,!1)}else N=Gxp()?2:1,(l=M.player)==null||l.setAutonavState(N);M.updateMiniplayerData(J);_.qam(M)}_.UI(R)})},u3w=function(M){var z,J,R=(z=M.watchResponse)==null?void 0:(J=z.playerResponse)==null?void 0:J.playabilityStatus,D;
z=R==null?void 0:(D=R.miniplayer)==null?void 0:D.miniplayerRenderer;(z==null?void 0:z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&z.minimizedEndpoint&&_.kQ(M.miniplayerEl,[z.minimizedEndpoint]);_.Vi(M,{playabilityStatus:R})};
at.prototype.openToast=function(M,z){_.Vi(this,{toastData:{data:M,label:z}})};
_.Vi=function(M,z){(0,M.miniplayerPropSignalMap[1])(z)};
at.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var M;return this.playerElement?this.playerElement:(M=_.SN(this.miniplayerEl).querySelector("#player-container"))==null?void 0:M.firstElementChild};
at.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var dxN=function(M,z){z=z===void 0?!1:z;var J,R,D,N,Z,B,O;return _.k(function(X){if(X.nextAddress==1){J=navigator.userActivation.isActive||z;if(!J||!M.pictureInPictureSupported())return X.return(!1);R=iOs(M);D=R.width;N=R.height;return X.yield(M.pipController.openWindow({width:D,height:N}),2)}Z=X.yieldResult;B=M.pipController.getWindow();if(!B||!Z)return X.return(!1);B.document.body.style.overflow="hidden";O=u0p(B);S5G(M.pipController,function(){Cvw(M);O()});
return X.return(!0)})},iOs=function(M){var z=_.x9().shortsPipActivation,J,R;
M=z?.5625:(R=(J=M.player)==null?void 0:J.getVideoAspectRatio())!=null?R:16/9;J=Math.min(window.innerWidth,window.innerHeight)/2;z=z?0:76;return M>1?new _.eU(J,z+J/M):new _.eU(J*M,z+J)},Cvw=function(M){var z;
_.k(function(J){z=_.JF().resolve(_.M6);return z.isOnWatch()&&M.watchPipMode||z.isOnShorts()&&M.shortsPipMode?J.yield(M.deactivate(),0):M.miniplayerToPipMode?J.yield(HOl(M),0):M.watchPipMode?J.yield(_.ug(M),0):J.jumpTo(0)})};
at.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.rX.Object.defineProperties(at.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
at[DW]=[Zwc,Cgv];var bOv="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(" "),
rAc="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(" "),MJN="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
zBw="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var JKu=null;var RBc={},D$l=(RBc.initialized={priority:10,callback:function(M){var z=_.JF();z.addProvider({provide:iW$,useClass:kAl});z.addProvider({provide:_.Z3i,useFactory:function(){return new CmB}});
z.addProvider({provide:HG,useValue:_.HW("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});z.addProvider({provide:BRN,useValue:5184E6});z.addProvider({provide:nol,useValue:_.sj()});z.addProvider({provide:q$G,useClass:CIu});z.addProvider({provide:f9,useClass:f9});z.addProvider({provide:_.SF,useFactory:function(){return zda.promise}});
z.addProvider({provide:_.Rdt,useFactory:function(){return _.JU2.promise}});
z.addProvider({provide:a4H,useValue:function(){var O;return((O=_.J_())==null?void 0:O.getPlayer())||null}});
var J={};z.addProvider((J.provide=_.Z4,J.useFactory=function(O,X){return function(){return bBG(O,X)}},J[DW]=[HG,
BRN],J));J={};z.addProvider((J.provide=_.lA,J.useClass=DBN,J[DW]=[HG,BRN],J));J={};z.addProvider((J.provide=_.REe,J.useClass=Zvl,J[DW]=[_.lA],J));z.addProvider({provide:j7,useFactory:_.rA});z.addProvider({provide:Pf,useFactory:_.rA});z.addProvider({provide:fVw,useFactory:_.rA});z.addProvider({provide:KmV,useFactory:_.rA});z.addProvider({provide:_.Vo,useFactory:_.rA});z.addProvider({provide:GN,useValue:_.eg});z.addProvider({provide:Rim,useClass:Ghb});z.addProvider({provide:uVg,useClass:$r2});z.addProvider({provide:L1,
useClass:L1});z.addProvider({provide:w_,useClass:w_});z.addProvider({provide:x5,useClass:x5});z.addProvider({provide:jE,useClass:jE});z.addProvider({provide:zJ,useClass:zJ});z.addProvider({provide:mZ,useClass:mZ});z.addProvider({provide:wC,useClass:wC});z.addProvider({provide:fcw,useValue:joi});z.addProvider({provide:_.hs,useFactory:_.Gm});z.addProvider({provide:oB,useFactory:_.vv});J={};z.addProvider((J.provide=qM0,J.useFactory=function(O){return function(X){var l=l===void 0?{}:l;var e,Q,v=(Q=_.G((e=
X.endpoint)==null?void 0:e.commandMetadata,_.X9))==null?void 0:Q.rootVe;if(v){var x,m;if(e=X.previousCsn||((m=_.G((x=X.endpoint)==null?void 0:x.commandMetadata,hrp))==null?void 0:m.parentCsn)){var y=y===void 0?{}:y;if(e!==_.y5(y.layer)||v!==whp(y.layer))F8p(e,y.cttAuthInfo,y.layer||0),vDc(e,y.layer||0),x=y.layer||0,_.yU(Gap(x===void 0?0:x),v);l.parentCsn=e}X.endpoint&&e?CAt(O,X.endpoint,l):_.Xx(O,v,void 0,l);var H;((H=X.response)==null?0:H.trackingParams)&&O.graftServerVe(X.response.trackingParams);
var q;((q=X.playerResponse)==null?0:q.trackingParams)&&O.graftServerVe(X.playerResponse.trackingParams);var b;((b=X.reelWatchSequenceResponse)==null?0:b.trackingParams)&&O.graftServerVe(X.reelWatchSequenceResponse.trackingParams)}}},J[DW]=[_.hs],J));
J={};z.addProvider((J.provide=ASw,J.useClass=L$G,J[DW]=[GN,_.Vo],J));J={};z.addProvider((J.provide=U9,J.useClass=U9,J[DW]=[_.SF,_.Vo],J));J={};z.addProvider((J.provide=Xs,J.useClass=Xs,J[DW]=[Pf,_.Rb],J));z.addProvider({provide:_.zww,useClass:Bls});J={};z.addProvider((J.provide=_.nx,J.useClass=DNs,J[DW]=[_.zww],J));z.addProvider({provide:_.hX,useClass:w1});z.addProvider({provide:_.pYt,useClass:Vmw});z.addProvider({provide:_.yw,useClass:v$});J={};z.addProvider((J.provide=_.BV,J.useClass=kcl,J[DW]=
[_.BV],J));z.addProvider({provide:_.T1,useClass:hp$});z.addProvider({provide:gh,useClass:gh});z.addProvider({provide:rh,useClass:rh});z.addProvider({provide:dh,useClass:dh});z.addProvider({provide:c$,useClass:c$});J={};z.addProvider((J.provide=e7,J.useClass=e7,J[DW]=[_.Rb,_.cP],J));z.addProvider({provide:EH,useClass:GJ});J={};z.addProvider((J.provide=iO,J.useClass=iO,J[DW]=[_.hX,EH],J));_.U("web_enable_feedback_endpoint_resolver")&&(J={},z.addProvider((J.provide=p2,J.useClass=p2,J[DW]=[j7,tD],J)),
z.addProvider({provide:tD,useClass:R0N}));_.U("web_enable_feedback_endpoint_resolver_batch_2")&&(J={},z.addProvider((J.provide=YH,J.useClass=YH,J[DW]=[j7],J)),J={},z.addProvider((J.provide=Fz,J.useClass=Fz,J[DW]=[tD],J)));J={};z.addProvider((J.provide=L2,J.useClass=L2,J[DW]=[_.yw,EH],J));J={};z.addProvider((J.provide=qT,J.useClass=qT,J[DW]=[_.yw],J));J={};z.addProvider((J.provide=AD,J.useClass=AD,J[DW]=[_.cP,_.nx],J));J={};z.addProvider((J.provide=Vt,J.useClass=Vt,J[DW]=[_.cP,_.hs],J));z.addProvider({provide:GY,
useClass:GY});J={};z.addProvider((J.provide=IB,J.useClass=IB,J[DW]=[j7],J));z.addProvider({provide:HV,useClass:HV});z.addProvider({provide:yp,useClass:yp});J={};z.addProvider((J.provide=dt,J.useClass=dt,J[DW]=[j7],J));J={};z.addProvider((J.provide=KP,J.useClass=KP,J[DW]=[_.cP,j7],J));J={};z.addProvider((J.provide=$v,J.useClass=$v,J[DW]=[j7],J));J={};z.addProvider((J.provide=ux,J.useClass=ux,J[DW]=[j7],J));J={};z.addProvider((J.provide=WG,J.useClass=WG,J[DW]=[_.nx],J));J={};z.addProvider((J.provide=
pP,J.useClass=pP,J[DW]=[_.hs],J));J={};z.addProvider((J.provide=nP,J.useClass=nP,J[DW]=[Uo],J));J={};z.addProvider((J.provide=hY,J.useClass=hY,J[DW]=[Uo],J));z.addProvider({provide:mL,useClass:mL});z.addProvider({provide:gt,useClass:gt});z.addProvider({provide:jA,useClass:jA});J={};z.addProvider((J.provide=C2,J.useClass=C2,J[DW]=[_.nx,_.Rb],J));z.addProvider({provide:hD,useClass:hD});J={};z.addProvider((J.provide=am,J.useClass=am,J[DW]=[_.cP,_.nx],J));z.addProvider({provide:K2,useClass:K2});J={};
z.addProvider((J.provide=Oo,J.useClass=Oo,J[DW]=[j7,_.cP,_.BV],J));J={};z.addProvider((J.provide=Z6,J.useClass=Z6,J[DW]=[_.cP,_.Rb],J));z.addProvider({provide:WDk,useValue:OB0});z.addProvider({provide:LDu,useValue:Btb});z.addProvider({provide:kv,useClass:kv});J={};z.addProvider((J.provide=SA,J.useClass=SA,J[DW]=[j7],J));J={};z.addProvider((J.provide=TY,J.useClass=TY,J[DW]=[_.T1,_.Rb],J));J={};z.addProvider((J.provide=mf,J.useClass=mf,J[DW]=[_.Rb],J));z.addProvider({provide:xH,useFactory:function(){return new xH(_.rA())}});
z.addProvider({provide:Sxb,useFactory:_.h9.getInstance});J={};z.addProvider((J.provide=cG,J.useClass=cG,J[DW]=[HG,Sxb,_.Rb],J));z.addProvider({provide:sH,useClass:sH});z.addProvider({provide:Qt,useClass:Qt});z.addProvider({provide:vG,useClass:vG});z.addProvider({provide:_.UH,useClass:_.UH});z.addProvider({provide:aB,useClass:aB});J={};z.addProvider((J.provide=D6,J.useClass=D6,J[DW]=[Pf],J));J={};z.addProvider((J.provide=N1,J.useClass=N1,J[DW]=[_.Rb],J));_.U("web_enable_prefetching_videos_on_home")&&
(z.addProvider({provide:ot,useClass:ot}),z.addProvider({provide:yi,useClass:yi}));J={};z.addProvider((J.provide=WV,J.useClass=WV,J[DW]=[_.Rb],J));z.addProvider({provide:GR,useClass:GR});J={};z.addProvider((J.provide=wt,J.useClass=wt,J[DW]=[_.cP,_.Rb],J));J={};z.addProvider((J.provide=wh,J.useClass=wh,J[DW]=[_.Rb],J));z.addProvider({provide:H$,useClass:H$});z.addProvider({provide:zY,useClass:zY});J={};z.addProvider((J.provide=M1,J.useClass=M1,J[DW]=[Pf,_.Rb],J));z.addProvider({provide:JY,useClass:JY});
J={};z.addProvider((J.provide=fP,J.useClass=fP,J[DW]=[Pf,_.Rb,_.cP],J));J={};z.addProvider((J.provide=LP,J.useClass=LP,J[DW]=[_.Rb],J));J={};z.addProvider((J.provide=Eo,J.useClass=Eo,J[DW]=[_.Rb,_.cP],J));J={};z.addProvider((J.provide=PV,J.useClass=PV,J[DW]=[_.SF],J));J={};z.addProvider((J.provide=RB,J.useClass=RB,J[DW]=[_.SF],J));z.addProvider({provide:Qp,useClass:Qp});z.addProvider({provide:vV,useClass:vV});z.addProvider({provide:cV,useClass:cV});z.addProvider({provide:xv,useClass:xv});z.addProvider({provide:eA,
useClass:eA});z.addProvider({provide:$H,useClass:$H});z.addProvider({provide:lx,useClass:lx});_.U("kevlar_enable_mss_lazy_load")&&z.addProvider({provide:_.ah,useClass:Eql});z.addProvider({provide:_.pZ,useClass:t7});z.addProvider({provide:Du,useFactory:function(){return _.VA.getInstance()}});
z.addProvider({provide:Vaw,useFactory:TUp});z.addProvider({provide:Uo,useFactory:function(){return _.nN.getInstance()}});
z.addProvider({provide:fnV,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});J={};z.addProvider((J.provide=_.lg,J.useClass=_.lg,J[DW]=[_.SF,_.Rb,_.hs,Vaw,Uo,Du,fnV,GN],J));z.addProvider({provide:_.GW,useClass:y7S});z.addProvider({provide:_.TRw,useClass:OpN});J={};z.addProvider((J.provide=uO,J.useClass=uO,J[DW]=[_.TRw],J));J={};z.addProvider((J.provide=_.ek,J.useFactory=function(O){return O.upliftCompletionResolver.promise},J[DW]=[ASw],J));
J=_.cW("IS_SHELL_LOAD")?"aa":"eocs";var R=_.cW("IS_SHELL_LOAD")?3:2;_.Eb().parkOrScheduleJob(function(){CJi()},R,J);
_.Eb().parkOrScheduleJob(function(){_.JF().resolve(U9).start()},2,"eocs");
_.Eb().parkOrScheduleJob(function(){Epw()},2,"eocs");
_.Eb().parkOrScheduleJob(function(){_.JF().resolve(Xs).start()},2,"eocs");
_.U("kevlar_debug_data_app_registration_ks")||X$o();z.addProvider({provide:_.pn,useValue:new aHa(M.root)});z.addProvider({provide:Wb,useValue:new Knp});z.addProvider({provide:_.bVB,useValue:new iVp(M.root)});z.addProvider({provide:_.HP,useValue:new CqQ});z.addProvider({provide:_.g_,useClass:j0});z.addProvider({provide:Zwc,useClass:xM});_.U("kevlar_network_sli_killswitch")||z.addProvider({provide:Qrl,useValue:dOV});z.addProvider({provide:s9,useFactory:zGY});_.U("web_bind_fetch")&&(J={},z.addProvider((J.provide=
DEw,J.useFactory=JI8,J[DW]=[_.zw(s9)],J)));_.U("web_bind_parse")&&(J={},z.addProvider((J.provide=Nid,J.useFactory=RGp,J[DW]=[_.zw(s9)],J)));_.U("web_bind_window_request")&&(J={},z.addProvider((J.provide=Psw,J.useFactory=DW8,J[DW]=[_.zw(s9)],J)));_.U("web_bind_text_decoder")&&(J={},z.addProvider((J.provide=Swl,J.useFactory=Nmp,J[DW]=[_.zw(s9)],J)));J={};z.addProvider((J.provide=cec,J.useFactory=KCc,J[DW]=[_.ek,j7,_.Z4],J));J={};z.addProvider((J.provide=Hpi,J.useClass=AY,J[DW]=[cec],J));z.addProvider({provide:bpw,
useClass:Lwt});z.addProvider({provide:s3w,useClass:h0t});J=[].concat(_.Yj(AM));_.U("web_continuation_response_processing")&&J.push(_.uP);J.push(kng);_.U("enable_share_panel_navigation_logging_fix_on_web")&&J.push(_.Yvv);z.addProvider({provide:gdp,useValue:J});z.addProvider({provide:Bab,useClass:gol});z.addProvider({provide:xE5,useClass:UE5});J={};z.addProvider((J.provide=PcR,J.useClass=Z5k,J[DW]=[Pf],J));_.no.addLowPriorityJob(function(){n3o()});
J={};z.addProvider((J.provide=q1a,J.useFactory=function(O){return function(X){var l,e=(l=_.G(X.commandMetadata,_.X9))==null?void 0:l.url;if(!e)throw new _.xN("No URL for PBJ Command",X);e=Qnn(e,{pbj:"1"});l=KVH(e,{})||{};l=Object.assign({},l,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.HW("STS").toString()});X=_.Xh({command:JSON.stringify(X),session_token:_.HW("XSRF_TOKEN")});return O.fetch(e,{method:"POST",headers:l,body:X})}},J[DW]=[xE5],J));
J=[];J.push(z.resolve(s3w));R={};R=(R.client_location=_.h9.getInstance(),R.consistency=_.pHR(),R.entities=z.resolve(uVg),R.response_received_commands=z.resolve(Bab),R.store=z.resolve(_.REe),R.tokens=z.resolve(s3w),R);_.U("web_service_params_response_processor")&&(z.addProvider({provide:X4t,useFactory:function(){var O={};return O.CSI=SMw(),O.ECATCHER=PCo(),O}}),z.addProvider({provide:rfG,
useClass:ldc}),R.service_params=z.resolve(rfG));if(_.U("web_shorts_prefetch_service_enabled")){var D=new ktm(z.resolve(_.lA));R.shorts_prefetch=D}R.adblock_detection=z.resolve(PcR);z.addProvider({provide:_.VS,useClass:_.VS});D=z.resolve(fcw);var N=[];_.U("PremiumClientSharedConfig__enable_att_context_processor")&&(z.addProvider({provide:tQS,useClass:G6p}),N.push(z.resolve(tQS)));if(_.U("owl_pl_await")){var Z={};z.addProvider((Z.provide=Cwm,Z.useFactory=function(O){return new Ail(O)},Z[DW]=[_.VS],
Z));
N.push(z.resolve(Cwm))}rDu(D,z.resolve(xE5),z.resolve(Rim),R,z.resolve(_.lA),J,N,z.resolve(Hpi),z.resolve(bpw));z.addProvider({provide:_.cP,useValue:_.Ve.instance});_.U("start_client_gcf")&&z.addProvider({provide:tL,useValue:g2V()});z.addProvider({provide:rSl,useFactory:function(){return new rSl(_.JF().resolve(_.VS),_.nN.getInstance())}});
_.Eb().parkOrScheduleJob(function(){Mmv()},1,"eocs");
J={};z.addProvider((J.provide=Qi,J.useClass=Qi,J[DW]=[_.Z4,_.cP],J));z.addProvider({provide:_.lsw,useFactory:_.h7.getInstance});_.Eb().parkOrScheduleJob(function(){_.JF().resolve(Qi).refresh()},0,"eocs");
Wm$(joi.watchEndpointMap||{},D.reelWatchEndpointMap||{},M.injector.resolve(_.cP));z.addProvider({provide:tx,useValue:_.Y5.instance});_.U("kevlar_signal_collection_killswitch")||(J={},z.addProvider((J.provide=uQl,J.useClass=uQl,J[DW]=[HG,oB],J)),_.Eb().parkOrScheduleJob(function(){_.JF().resolve(uQl).record()},1,"eocs"));
_.U("web_debug_handler_registration_killswitch")||_.Eb().parkOrScheduleJob(function(){I4w("DOWNLOAD_PES",Oje);_.U("offline_client_state_export_ks")||I4w("OFFLINE_CLIENT_STATE",Zjn)},0,"eocs");
_.U("kevlar_prevent_polymer_dynamic_font_load")&&_.Eb().parkOrScheduleJob(function(){var O=[_.Nx(hil),_.Nx(yrl)];O=_.S(O);for(var X=O.next();!X.done;X=O.next()){X=X.value;var l=document.createElement("link");_.ri(l,X,"stylesheet");document.head.appendChild(l)}},1,"eocs");
J=M.injector.resolve(_.cP);_.xrv.instance=new _.xrv(J);Vvp(Xqp(new wqJ(J)));J={};M.injector.addProvider((J.provide=zS,J.useFactory=function(O){(O=O==null?void 0:O.getCurrentPage())?O=O.visibilityObserver:(JKu||(JKu=nkR()),O=JKu);return O},J[DW]=[_.zw(_.M6)],J.skipCache=!0,J));
z.addProvider({provide:_.q5,useClass:at});z.addProvider({provide:tX,useClass:q9V});M.injector.addProvider({provide:cjJ,useValue:Wkv});z.addProvider({provide:FDt,useValue:SpH});z.addProvider({provide:_.Ah,useValue:QDw});M=z.addProvider;Qvi||(Qvi=new eww);M.call(z,{provide:_.jk,useValue:Qvi});z.addProvider({provide:_.Ce,useValue:_.HW("HTML_DIR")==="rtl"?"rtl":"ltr"});z.addProvider({provide:Wuu,useClass:Mpv});z.addProvider({provide:_.XH,useClass:p8});_.JF().addProvider({provide:VQu,useValue:_.U("enable_web_delhi_icons")?
rAc.concat(zBw):bOv.concat(MJN)});z.addProvider({provide:_.YM,useClass:_.YM});z.addProvider({provide:_.mE5,useValue:new YwN});z.addProvider({provide:dX2,useClass:dr2});z.addProvider({provide:tY,useClass:tY});z.addProvider({provide:FR,useClass:FR});M={};z.addProvider((M.provide=bO,M.useClass=bO,M[DW]=[_.cP,_.nx],M));z.addProvider({provide:Vp,useClass:Vp});z.addProvider({provide:R9v,useClass:Tli});z.addProvider({provide:so,useClass:so});z.addProvider({provide:xqS,useValue:ZBV});z.addProvider({provide:_.A2,
useClass:KuV});_.U("enable_payments_purchase_manager")&&z.addProvider({provide:Yl$,useClass:jia});z.addProvider({provide:nqw,useFactory:function(){return function(O){return _.srG(O)}}});
z.addProvider({provide:_.Y8G,useClass:mbw});M={};z.addProvider((M.provide=q1,M.useClass=q1,M[DW]=[_.Y8G],M));z.addProvider({provide:Yv,useClass:Yv});z.addProvider({provide:Cyu,useValue:gAB});z.addProvider({provide:J4g,useValue:_.Fdt});z.addProvider({provide:tkc,useClass:Owl});z.addProvider({provide:UNl,useValue:soc});M={};z.addProvider((M.provide=vGm,M.useClass=Gcv,M[DW]=[UNl],M));M={};z.addProvider((M.provide=_.xm,M.useClass=hnm,M[DW]=[vGm],M));M={};z.addProvider((M.provide=_.g1,M.useClass=ms,M[DW]=
[_.Vo,_.g_],M));if(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))M={},z.addProvider((M.provide=n2,M.useClass=n2,M[DW]=[_.cP,Du],M));if(_.U("web_enable_renderer_logger")){var B=new Jr5;Iy8(function(){B.abort()});
z.addProvider({provide:yaH,useValue:new W$u(B.signal)})}z.addProvider({provide:$t2,useValue:KZ8});M={};z.addProvider((M.provide=Ovu,M.useClass=Bgl,M[DW]=[_.cP],M))}},RBc);var NSw={},Pmm=(NSw.initialized={priority:10,callback:function(){if(!eiw){ESH();kXY("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.O7(_.Uf(kXY,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.U("log_heartbeat_with_lifecycles")){var M={};Nm.instance||(Nm.instance=new Nm);Nm.instance.install((M.document_visible={callback:BmH,priority:10},M.document_hidden={callback:BmH,priority:10},M))}else _.Mp(document,"visibilitychange",BmH);eiw=!0}(M=_.y5())&&M!=="UNDEFINED_CSN"&&Q_c(M)}},NSw);var SCm={},ZWd=(SCm.initialized={callback:function(M){var z=_.O3(232091),J=M.injector.resolve(_.hs);_.ln(J,z);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?qne()&&_.Q6(J,z):(M=M.injector.resolve(nqw)("refresh_detector"))&&(M.get("first_tab_load")?_.Q6(J,z):M.set("first_tab_load","1"))}},SCm);var kzi={},BSs=(kzi.initialized={priority:10,callback:i08},kzi);var OWw={},TS5=(OWw.initialized={priority:0,callback:function(){var M=new Fq2,z="other";_.es?z="chrome":_.lN?z="firefox":_.cJ?z="safari":i9&&(z="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(J){M.increment(_.vJ(),J,z)}).catch(function(){M.increment(_.vJ(),!1,z)}):M.increment(_.vJ(),!1,z)}},OWw);var I0m={},oFt=(I0m.rendering={priority:8,callback:CyY},I0m);var X6w={},l0l=(X6w.rendering={priority:10,callback:TaG},X6w.rendered={callback:OiG},X6w),eBw={},Q2i=(eBw.rendering={callback:TaG},eBw.rendered={callback:OiG},eBw);var U$m=!1,vFw={},Gzl=(vFw.initialized={priority:10,callback:function(){U$m||(eMR({didPatch:function(M){M.el&&vXH(M.el,M.props)},
didUnmount:function(M){Qc8(M.el)}}),U$m=!0)}},vFw);var w6w=/^\/shorts\/?$/;_.yU("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:{}}}}}}});
if(_.U("kevlar_enable_mss")){_.C9G(new ILB);var x$t=!0,tJd,E9;x$t=x$t===void 0?!1:x$t;tJd=tJd===void 0?!1:tJd;E9=E9===void 0?{}:E9;var j2t=E9.cssRowKey||"",p6w=E9.combinedSignature||"";!j2t&&window&&window._F_cssRowKey&&(j2t=window._F_cssRowKey,!p6w&&window._F_combinedSignature&&(p6w=window._F_combinedSignature));if(j2t&&typeof window._F_installCss!=="function")throw Error("td");var Fqw=E9.loaderClass||_.Eq,f8=dcp("base-js"),YC5,m$d=$cG("",f8);YC5=_.wi(m$d);var L8=new Fqw(YC5,j2t,p6w,x$t,tJd),gFs=
E9.useCors||f8&&f8.hasAttribute("crossorigin"),s25=E9.corsMode||f8&&f8.getAttribute("crossorigin");gFs&&(L8.useCors_=gFs);s25&&(L8.corsMode_=s25);E9.urlMaxLength&&(L8.urlMaxLength=E9.urlMaxLength);E9.fetchPriority&&(L8.fetchPriority=E9.fetchPriority);var nFd=YF();nFd.JSC$10020_loader_=L8;nFd.setBatchModeEnabled(!0)}
(function(){var M=document.querySelector("ytd-app");if(!M)throw Error("Kj");M=new n8({root:M,injector:_.JF()});M.install(Pmm);var z={};M.install((z.initialized={priority:10,callback:xAe},z));_.U("wp_lat_b")&&(z={},M.install((z.initialized={priority:10,callback:function(){bjR()}},z)));
z={};M.install((z.rendered={priority:0,callback:vh8},z));z={};M.install((z.rendered={priority:0,callback:function(){_.no.addLowPriorityJob(function(){_.z0N>1&&(In3(),QSG())},4E4)}},z));
M.install(PYm);M.install(ZWd);M.install(Gzl);hG8();M.install(oj5);M.install(MXd);M.install(Dyi);M.install(h2d);M.install(K$u);M.install(TVl);M.install(D$l);_.U("kevlar_enable_mss_lazy_load")&&M.install(BSs);M.install(JGw);M.install(TS5);if(!_.cW("IS_SHELL_LOAD")||_.U("kevlar_fetch_initial_data_promise_client")||_.U("sw_nav_preload_pbj")){var J=_.Ib(window.location.href);z=J&&J==="/watch";J=J&&J.match(w6w);z?M.install(Q2i):J?M.install(oFt):M.install(l0l)}else M.install(Csv);M.install(ZSc);_.U("web_enable_prefetching_videos_on_home")&&
M.install(Qow);_.U("start_client_gcf")&&M.install(oqs);M.install(Y$v);(new YC$).increment("INSTALLED");M.install(lDw);M.install(LAt);M.transition("initialized");aaG()})();
_.Th=[[["cmtpbmQjNXh1YWY3N2picWo=","dnZhbHVlI3R0N3gxbzVlcms="],"X01JTExJU0VDT05EUyNwbXU4eXd3cHR5eGhBRF9QTEFDRU1FTlRfS0lORA=="]];_.OA=["IzFjZjN2MWR0c2lqYWdsb2JhbENhbGxiYWNrcw==","OW9uQWJub3JtYWxpdHlEZXRlY3RlZCNqbmhmZHRjendheA==","YnhmbThsb25BZFNraXAjbW52eXlk","NzRmdXlyYXdfcGxheWVyX3Jlc3BvbnNlIzQ4bDdhbXo=","Y2k1cGxheWVyQWRzI2M4dTBmOHI2aA=="];_.rN="IzFjZjN2MWR0c2lqYWdsb2JhbENhbGxiYWNrcw== OW9uQWJub3JtYWxpdHlEZXRlY3RlZCNqbmhmZHRjendheA== YnhmbThsb25BZFNraXAjbW52eXlk NzRmdXlyYXdfcGxheWVyX3Jlc3BvbnNlIzQ4bDdhbXo= a2lwc19rcyNjYTVsZHBzYWhxeGV3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfcw== bjg0emNmYWJfc2FfZWYjaGdicXkw Y2k1cGxheWVyQWRzI2M4dTBmOHI2aA==".split(" ");
_._ModuleManager_initialize=function(M,z){if(!_.pW){if(!_.F_)return;_.C9G(_.F_())}_.pW.setAllModuleInfoString(M,z)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye:e/syf/syg:6/syh/h8y2qb:4,f,g,h,i/syi/JzFVk:d,h,i,k/syj:8/xwEKAe:3,9,g,i,m/syk:e/syl:1,b,e,g,k,m/sym:p/nmfa2d:i,o,q/syn:7,p/syo:h,i,q,s/CF909:o,t/Tm0L3c:t/L3n37:f,h,i,o,s/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syj','syi','syf','syc','syb','sy1','syl','sy7','sy6','syn','sym','syh','syg','syk','sye','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.bg=function(M,z,J,R,D){var N={};z&&(N[z]=J);R?N.errorType=R:D&&(N.errorReason=D);_.gP(M,N);_.sB()};
_.r1=function(M){var z=_.Eb();return _.H9k(z,M,1)};
_.sV({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var M=this.query;M&&(this.full||M[0]==="("||(M="("+M+")"),this._mq=window.matchMedia(M),this._add(),this.queryHandler(this._mq))},
queryHandler:function(M){this._setQueryMatches(M.matches)}});var a05;var VJN;var EFc=function(){};
_.P=EFc.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P._createRipple=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
EFc=_.sV({is:"tp-yt-paper-radio-button",_template:function(){if(VJN!==void 0)return VJN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;a05===void 0&&(a05=document.createElement("template"));var R=a05;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return VJN=M},
behaviors:[_.zc2],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(){_.C4(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var M=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),z=Math.floor(3*M);z%2!==M%2&&z++;this.updateStyles({"--paper-radio-button-ink-size":z+"px"})}})}});var f0w;var Lqv;_.sV({_template:function(){if(Lqv!==void 0)return Lqv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;f0w===void 0&&(f0w=document.createElement("template"));var R=f0w;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Lqv=M},
is:"tp-yt-paper-radio-group",behaviors:[_.oCp],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(M){var z=this._valueToItem(M);if(!z||!z.hasAttribute("disabled")){if(this.selected){z=this._valueToItem(this.selected);if(this.selected==M)if(this.allowEmptySelection)M="";else{z&&(z.checked=!0);return}z&&
(z.checked=!1)}_.fd.select.apply(this,[M]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(M){this._focusPrevious();M.preventDefault();this._activateFocusedItem()},
_onDownKey:function(M){this._focusNext();M.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(M){_.IU$._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(M){_.IU$._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.fd._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.yv._resetTabindices.apply(this,arguments);this.items.forEach(function(M){M.removeAttribute("aria-selected")},this)}});var AKl;_.nn("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var M2=function(){return _.g.apply(this,arguments)||this};
_.w(M2,_.g);_.P=M2.prototype;_.P.computeHasPrimaryIcon=function(M){return!(!M.icon&&!M.thumbnail)};
_.P.computeHasSecondary=function(M){return!(!M.secondaryIcon&&!M.secondaryNotificationText)};
_.P.computeHideSecondaryString=function(M){return!_.U("disable_hide_empty_secondary_string")&&!M.secondaryNotificationText};
_.P.computeCompactLinkStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeHasFitHeight=function(M){return M==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.P.isActiveEndpoint=function(M){return(M=this.get("commandMetadata.webCommandMetadata.url",M))?_.Ib(window.location.href)!=="/account_transfer_channel"&&_.Ib(window.location.href)!=="/gaia_link"&&_.Ib(window.location.href)!=="/channel_switcher"||M!=="/account"?_.Ib(window.location.href)===M:!0:!1};
_.P.onTap=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.kQ(this.hostElement,[this.data.serviceEndpoint])};
M2.prototype.onTap=M2.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],M2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.W("design:type",Boolean)],M2.prototype,"active",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.W("design:type",String)],M2.prototype,"compactLinkStyle",void 0);
_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],M2.prototype,"icon",void 0);_.u([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",Object)],M2.prototype,"secondaryIcon",void 0);_.u([_.Y({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],M2.prototype,"hasSecondary",void 0);_.u([_.Y({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],M2.prototype,"hideSecondaryString",void 0);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M2.prototype,"onTap",null);_.u([_.c({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],M2);
_.d(M2,"ytd-compact-link-renderer",function(){if(AKl!==void 0)return AKl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AKl=M},{mode:1});var iWd;_.nn("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var zb=function(){var M=_.g.apply(this,arguments)||this;M.role="link";M.tabindex="0";M.actionMap=_.U("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return M};
_.w(zb,_.g);_.P=zb.prototype;_.P.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.gB()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.P.getCurrentTheme=function(){return _.sA()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.gB()};
_.P.onThemeSelected=function(M,z){var J=M||z?M:_.mQ(),R=(J&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!J&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.xmo(_.Ib(window.location.href));_.GV(0,165,M);_.GV(0,174,z);this.prefs.save();R&&_.S9(this.hostElement,"yt-dark-mode-toggled-action",[J]);_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.onTap=function(){this.data.serviceEndpoint&&_.kQ(this.hostElement,[this.data.serviceEndpoint])};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
zb.prototype.onTap=zb.prototype.onTap;zb.prototype.dataChanged=zb.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],zb.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Mj),_.W("design:type",Object)],zb.prototype,"paperItemBehaviors",void 0);_.u([_.Y(),_.W("design:type",Object)],zb.prototype,"data",void 0);_.u([_.Y({value:function(){return _.vv()}}),
_.W("design:type",_.Sl)],zb.prototype,"prefs",void 0);_.u([_.Y(),_.W("design:type",Object)],zb.prototype,"label",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],zb.prototype,"role",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],zb.prototype,"tabindex",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zb.prototype,"dataChanged",null);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zb.prototype,"onTap",null);_.u([_.c({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],zb);
_.d(zb,"ytd-toggle-theme-compact-link-renderer",function(){if(iWd!==void 0)return iWd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return iWd=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var bWt,rKl;_.Ja=function(M){return!!M.getOptions("captions")};
_.CmN=function(M){return(M=M.getOption("captions","track"))?!!M.displayName:!1};
_.Rd=function(M,z){_.pr(z,M,function(){return bWt[z]},function(J){bWt[z]=J;
if(!_.U("mweb_player_ve_show_ks")){var R=_.y5(0);R&&J&&_.an(R,J)}})};
_.Dr=function(M){(M=bWt[M])&&_.Q6(_.Gm(),M)};
bWt={};var MP5;/*

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
*/
_.sV({_template:function(){if(MP5!==void 0)return MP5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;rKl===void 0&&(rKl=document.createElement("template"));var R=rKl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return MP5=M},
is:"tp-yt-paper-checkbox",behaviors:[_.zc2],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.C4(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var M=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),z="px",J=M.match(/[A-Za-z]+$/);J!==null&&(z=J[0]);M=parseFloat(M);J=8/3*M;z==="px"&&(J=Math.floor(J),J%2!==M%2&&J++);this.updateStyles({"--paper-checkbox-ink-size":J+
z})}})},
_computeCheckboxClass:function(M,z){var J="";M&&(J+="checked ");z&&(J+="invalid");return J},
_computeCheckmarkClass:function(M){return M?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.rkV._createRipple.call(this)}});var zSG=new _.R_("radioButtonSurveyOptionRenderer"),JPw=new _.R_("checkboxSurveyOptionRenderer");var RSv;var Dal;var Nfi=0,N2=function(){var M=_.g.call(this)||this;M.selected=!1;M.isOverlay=!1;M.inputId="toggle-option-"+Nfi;Nfi++;return M};
_.w(N2,_.g);N2.prototype.onTap=function(){_.Pv(this.hostElement,"ytd-toggle-option-clicked")};
_.u([_.Y(),_.W("design:type",String)],N2.prototype,"label",void 0);_.u([_.Y(),_.W("design:type",String)],N2.prototype,"inputId",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],N2.prototype,"selected",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],N2.prototype,"isOverlay",void 0);_.u([_.c({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.W("design:paramtypes",[])],N2);
_.d(N2,"ytd-toggle-option-renderer",function(){if(Dal!==void 0)return Dal;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Dal=M},{mode:1});var PE=function(){var M=_.g.apply(this,arguments)||this;M.isToggleOption=!1;M.isOverlay=!1;return M};
_.w(PE,_.g);PE.prototype.onTap=function(M){M.preventDefault();this.data&&(M=!this.data.checked,this.set("data.checked",M),_.Pv(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:M,value:this.data.value}))};
_.rX.Object.defineProperties(PE.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
PE.prototype.onTap=PE.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PE.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],PE.prototype,"isToggleOption",void 0);_.u([_.Y(),_.W("design:type",Object)],PE.prototype,"isOverlay",void 0);_.u([_.F("data.responseText"),_.W("design:type",String),_.W("design:paramtypes",[])],PE.prototype,"label",null);
_.u([_.Xw("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],PE.prototype,"onTap",null);_.u([_.c({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],PE);
_.d(PE,"ytd-checkbox-survey-option-renderer",function(){if(RSv!==void 0)return RSv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return RSv=M},{mode:1});var P0w;var SZ5;var Sd=function(){var M=_.g.apply(this,arguments)||this;M.checked=!1;M.isToggleOption=!1;return M};
_.w(Sd,_.g);Sd.prototype.onTap=function(){this.data&&(this.checked?_.S9(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.S9(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Sd.prototype.onTap=Sd.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Sd.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Sd.prototype,"checked",void 0);_.u([_.Y(),_.W("design:type",Object)],Sd.prototype,"isToggleOption",void 0);_.u([_.Xw("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Sd.prototype,"onTap",null);
_.u([_.c({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Sd);
_.d(Sd,"ytd-radio-button-survey-option-renderer",function(){if(SZ5!==void 0)return SZ5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SZ5=M},{mode:1});var Zr=function(){var M=_.g.apply(this,arguments)||this;M.disableAnimation=!1;M.isToggleOption=!0;M.followUpSurveyCommand=null;M.selectedRatingEndpoint=null;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.styleOverrideAttribute=!0;M.isDarkMode=!1;M.isSubmitted=!1;M.roundedContainer=!0;M.improveShortsResponseRate=_.U("web_improve_shorts_response_rate");M.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(Zr,_.g);_.P=Zr.prototype;
_.P.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.P.attached=function(){var M=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(J){var R;if((R=J[0])!=null&&R.isIntersecting){_.UU().reportShown(M.hostElement);var D;(D=M.intersectionObserver)==null||D.unobserve(M.hostElement)}},{rootMargin:"0px",
threshold:.6});var z;(z=this.intersectionObserver)==null||z.observe(this.hostElement)};
_.P.onDarkModeToggledAction=function(M){this.isDarkMode=M};
_.P.dataChanged=function(){var M;if(((M=this.data)==null?void 0:M.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var z;((z=this.data)==null?void 0:z.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var J,R,D,N;this.darkColorPalette=(J=this.data)==null?void 0:(R=J.inlineContent)==null?void 0:(D=R.compactVideoRenderer)==null?void 0:(N=D.thumbnail)==null?
void 0:N.darkColorPalette;var Z,B,O,X;this.lightColorPalette=(Z=this.data)==null?void 0:(B=Z.inlineContent)==null?void 0:(O=B.compactVideoRenderer)==null?void 0:(X=O.thumbnail)==null?void 0:X.lightColorPalette;var l,e;if(((l=this.data)==null?0:(e=l.inlineContent)==null?0:e.compactVideoRenderer)&&this.isShortsStyle){var Q,v,x,m;M=_.Sh((Q=this.data)==null?void 0:(v=Q.inlineContent)==null?void 0:(x=v.compactVideoRenderer)==null?void 0:(m=x.thumbnail)==null?void 0:m.thumbnails);_.Tp(this.hostElement,
{"--yt-background-url":"url("+M+")"})}};
_.P.handleRequestCompletion=function(){this.hostElement.hidden&&_.Pv(this.hostElement,"yt-dismissible-item-dismissed")};
_.P.onPopupClosed=function(M){var z;((z=M.detail)==null?void 0:z.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.S9(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.P.handleInlineSurveyRatingSelect=function(M,z){var J=this;this.selectedRatingEndpoint=M;this.followUpSurveyCommand=z;this.expanded=!!M;this.getOptionRenderers().forEach(function(R,D){J.notifyPath("followUpSurveyCommand.followUpOptions."+D+".checkboxSurveyOptionRenderer.checked");J.set("followUpSurveyCommand.followUpOptions."+D+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),M=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.S9(this.hostElement,"yt-reel-non-video-content-dismissal-command",[M]))};
_.P.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.S9(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var M,z=(M=this.data)==null?void 0:M.dismissalEndpoint;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.P.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.S9(this.hostElement,"yt-close-popup-action"))};
_.P.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var M=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{M=this.getOptionRenderers().filter(function(R){return R.checked});
if(M.length===0)return;M=M.map(function(R){return R.responseEndpoint})}var z=[];
M.forEach(function(R,D){D!==0&&(R=_.G(R,_.Hf))&&R.feedbackToken&&z.push(R.feedbackToken)});
if(M=M[0]){var J={};z.length>0&&(J.extra_feedback_tokens=z);this.ytComponentBehavior.resolveCommand(M,{form:J})}}};
_.P.getOptionRenderers=function(){var M=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(z){M.isSingleSelect=!!_.G(z,zSG);return M.isSingleSelect?_.G(z,zSG):_.G(z,JPw)}):[]};
_.P.handleInlineSurveyOptionSelect=function(M){M=this.optionSelector.indexOf(M);M!==-1&&this.optionSelector.selectIndex(M)};
_.P.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.P.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
_.P.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M=M&&this.maybeGetBackgroundColor(M);this.dismissibleEl.style.backgroundColor=!M||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.u7(M)};
_.rX.Object.defineProperties(Zr.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Zr.prototype.colorPaletteChanged=Zr.prototype.colorPaletteChanged;Zr.prototype.onPopupClosed=Zr.prototype.onPopupClosed;Zr.prototype.handleRequestCompletion=Zr.prototype.handleRequestCompletion;Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Zr.prototype,"actionHandlerBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],Zr.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.Qc("#follow-up-survey-options"),_.W("design:type",Object)],Zr.prototype,"optionSelector",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"disableAnimation",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"isToggleOption",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"followUpSurveyCommand",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"selectedRatingEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Zr.prototype,"expanded",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zr.prototype,"isSlimlineSurveyFollowUp",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zr.prototype,"isShortsStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zr.prototype,"styleOverrideAttribute",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Zr.prototype,"isSingleSelect",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"isDarkMode",void 0);
_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"lightColorPalette",void 0);_.u([_.Y(),_.W("design:type",Object)],Zr.prototype,"darkColorPalette",void 0);_.u([_.F("selectedRatingEndpoint","isShortsStyle"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Zr.prototype,"isOptionSelected",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zr.prototype,"roundedContainer",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zr.prototype,"improveShortsResponseRate",void 0);_.u([_.Qc("#dismissible"),_.W("design:type",HTMLElement)],Zr.prototype,"dismissibleEl",void 0);_.u([_.Qc("#dismiss-button yt-icon-button"),_.W("design:type",HTMLElement)],Zr.prototype,"dismissButtonEl",void 0);_.u([_.Qc("#inline-survey-header yt-icon-button"),_.W("design:type",HTMLElement)],Zr.prototype,"inlineHeaderDismissButtonEl",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zr.prototype,"dataChanged",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zr.prototype,"handleRequestCompletion",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Zr.prototype,"onPopupClosed",null);
_.u([_.la("darkColorPalette","lightColorPalette","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zr.prototype,"colorPaletteChanged",null);_.u([_.c({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Zr);
_.d(Zr,"ytd-inline-survey-renderer",function(){if(P0w!==void 0)return P0w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return P0w=M},{mode:1});var Zqd=["en-CA","en","es-MX","fr-CA"];_.kk5=_.Mf(function(M){var z=_.rH(M,{isOverlay:!1,isModern:!1}),J=z.captionIconType,R=z.onClick;M=z.ariaLabel;var D=z.ariaPressed,N=z.isOverlay,Z=z.isModern;z=_.AL("button",function(X){_.Rd(X,127299)});
var B=_.ol(function(X){_.Dr(127299);R==null||R(X);return!1}),O={};
return _.T("ytm-closed-captioning-button",{class:_.Qe("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return J()===-1&&N()},O.ytmClosedCaptioningButtonIconDisabled=function(){return J()===-1&&!N()},O))},_.T("button",{el:z,
class:"ytmClosedCaptioningButtonButton",title:M,"aria-label":M,"aria-pressed":D,"on:click":B},_.T(_.vS,{icon:function(){var X="",l=Z();var e=l?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";l=l?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Q=_.vv().get("hl");e=!Q||Zqd.includes(Q)?e:l;l=J();switch(l){case -1:case 0:X=e;break;case 1:X=e+"_FILLED";break;default:_.uJ(l)}return X}})))},"tf");
_.kk5.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.XD=function(M){return function(z,J){var R=M||J.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(z,J,{get:function(){var D;return this.$?this.$[R]:(D=_.eN(this))==null?void 0:D.querySelector("#"+R)},
enumerable:!0,configurable:!0})}};_.lk=function(M){M=M===void 0?!1:M;_.wS.call(this);this.pubSub_=new _.l9(M);_.OC(this,this.pubSub_)};
_.ZP(_.lk,_.wS);_.lk.prototype.subscribe=function(M,z,J){return this.isDisposed()?0:this.pubSub_.subscribe(M,z,J)};
_.lk.prototype.unsubscribe=function(M,z,J){return this.isDisposed()?!1:this.pubSub_.unsubscribe(M,z,J)};
_.lk.prototype.unsubscribeByKey=function(M){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(M)};
_.lk.prototype.publish=function(M,z){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Czt=function(){_.bg("ypcRedeemFlowStarted")},oc=function(M){_.bg("ypcRedeemFlowFailed",void 0,void 0,void 0,M)},bjl=function(M,z,J){z&&J&&(M.videos.forEach(function(R){R.videoId===z&&(R.itemId=J)}),M.recommendedVideos.forEach(function(R){R.videoId===z&&(R.itemId=J)}))};var r65;var MSw;/*

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
*/
_.sV({_template:function(){if(MSw!==void 0)return MSw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;r65===void 0&&(r65=document.createElement("template"));var R=r65;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return MSw=M},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(M,z){var J=this._resolveSrc(M);J!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",M===""||z?this._setLoading(!1):(this._resolvedSrc=J,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var M=this.$.sizedImgDiv.style,z=this.$.placeholder.style;M.backgroundSize=z.backgroundSize=this.sizing;M.backgroundPosition=z.backgroundPosition=this.sizing?this.position:"";M.backgroundRepeat=z.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(M){M=_.PN(M,this.$.baseURIAnchor.href);M.length>=2&&M[0]==="/"&&M[1]!=="/"&&(M=(location.origin||location.protocol+"//"+location.host)+M);return M}});var zGt;var JIc;_.sV({_template:function(){if(JIc!==void 0)return JIc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;zGt===void 0&&(zGt=document.createElement("template"));var R=zGt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return JIc=M},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(M){return M?"false":"true"},
_headingChanged:function(M){var z=this.getAttribute("heading"),J=this.getAttribute("aria-label");typeof J==="string"&&J!==z||this.setAttribute("aria-label",M)},
_computeHeadingClass:function(M){return M?" over-image":""},
_computeAnimated:function(M){return M}});var RGm=new _.R_("addRendererToItemSectionAction");var DWc;var XX=function(){return _.g.apply(this,arguments)||this};
_.w(XX,_.g);XX.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],XX.prototype,"rendererBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],XX.prototype,"dismissibleItemBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],XX.prototype,"rendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XX.prototype,"data",void 0);_.u([_.c({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],XX);
_.d(XX,"ytd-comment-history-entry-renderer",function(){if(DWc!==void 0)return DWc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return DWc=M},{mode:1});var Nmw;_.nn("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.nn("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var lC=function(){return _.g.apply(this,arguments)||this};
_.w(lC,_.g);_.P=lC.prototype;_.P.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.P.onTap=function(){this.data.recordClickEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var M=this.data.navigationEndpoint;M&&_.G(M,_.$B)&&_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})};
_.P.readChanged=function(){var M;_.kz(this.hostElement,"unread",!((M=this.data)==null?0:M.read))};
_.P.dataChanged=function(){this.data&&_.kz(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.P.computeThumbnailSize=function(){var M;return((M=this.data)==null?0:M.highPriorityNotification)?32:48};
_.P.getEndpointURL=function(M){return M&&!_.G(M,_.$B)?this.componentBehavior.computeHref_(M):null};
_.P.getEndpointData=function(M){return M&&!_.G(M,_.$B)?M:null};
lC.prototype.computeThumbnailSize=lC.prototype.computeThumbnailSize;lC.prototype.dataChanged=lC.prototype.dataChanged;lC.prototype.readChanged=lC.prototype.readChanged;lC.prototype.onKeyUp=lC.prototype.onKeyUp;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],lC.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lC.prototype,"data",void 0);_.u([_.Y({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.W("design:type",Number)],lC.prototype,"thumbnailSize",void 0);_.u([_.Xw("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],lC.prototype,"onKeyUp",null);
_.u([_.la("data.read"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lC.prototype,"readChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lC.prototype,"dataChanged",null);_.u([_.la("data.highPriorityNotification"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lC.prototype,"computeThumbnailSize",null);
_.u([_.c({is:"ytd-notification-renderer",disableElementRegistration:!0})],lC);
_.d(lC,"ytd-notification-renderer",function(){if(Nmw!==void 0)return Nmw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Nmw=M},{mode:1});var PCG;var eS=function(){return _.g.apply(this,arguments)||this};
_.w(eS,_.g);eS.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"}}}};
eS.prototype.computeActionButtonClass=function(M){return!M.actionButtons||M.actionButtons.length<=1?"single-button":M.description?"vertical-buttons":"horizontal-buttons"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],eS.prototype,"data",void 0);_.u([_.c({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],eS);
_.d(eS,"ytd-playlist-show-metadata-renderer",function(){if(PCG!==void 0)return PCG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return PCG=M},{mode:1});var SMd;_.nn("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Qr=function(){return _.g.apply(this,arguments)||this};
_.w(Qr,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Qr.prototype,"data",void 0);_.u([_.c({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Qr);
_.d(Qr,"ytd-purchase-item-renderer",function(){if(SMd!==void 0)return SMd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SMd=M},{mode:1});var Z_v;var kXt={};kXt.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(M){if(M)return M.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(M){if(M==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.nn("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var UM=function(){return _.g.apply(this,arguments)||this};
_.w(UM,_.g);UM.prototype.onYtNavigate=function(M){var z=this.openPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);z&&(M.stopPropagation(),this.openPopupBehavior.openPopup(z))};
UM.prototype.onYtNavigate=UM.prototype.onYtNavigate;_.u([_.p(kXt.YtSimpleTextSectionBehavior),_.W("design:type",Object)],UM.prototype,"ytSimpleTextSectionBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],UM.prototype,"openPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],UM.prototype,"data",void 0);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UM.prototype,"onYtNavigate",null);_.u([_.c({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],UM);
_.d(UM,"ytd-simple-text-section-renderer",function(){if(Z_v!==void 0)return Z_v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Z_v=M},{mode:1});var Bmu;_.nn("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var vM=function(){return _.g.apply(this,arguments)||this};
_.w(vM,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vM.prototype,"data",void 0);_.u([_.c({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],vM);
_.d(vM,"ytd-unlimited-page-feature-info-renderer",function(){if(Bmu!==void 0)return Bmu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Bmu=M},{mode:1});var O_l;var Tml;var GX=function(){return _.g.apply(this,arguments)||this};
_.w(GX,_.g);GX.prototype.dataChanged=function(){if(this.data){var M=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);M&&(M=_.PS(M,screen.width),this.hostElement.style.backgroundImage="url("+M+")")}};
GX.prototype.dataChanged=GX.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GX.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GX.prototype,"dataChanged",null);_.u([_.c({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],GX);
_.d(GX,"ytd-post-redemption-section-renderer",function(){if(Tml!==void 0)return Tml;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Tml=M},{mode:1});var IMG;var wm=function(){return _.g.apply(this,arguments)||this};
_.w(wm,_.g);wm.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wm.prototype,"data",void 0);_.u([_.c({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],wm);
_.d(wm,"ytd-ypc-post-redemption-renderer",function(){if(IMG!==void 0)return IMG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return IMG=M},{mode:1});_.nn("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var xX=function(){var M=_.g.apply(this,arguments)||this;M.MIN_CODE_LENGTH=12;M.MAX_CODE_LENGTH=24;return M};
_.w(xX,_.g);_.P=xX.prototype;_.P.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.P.created=function(){this.riskService=new _.sec;this.loadPaymentThenable=_.hmw(_.HW("YPC_MB_URL"))};
_.P.ready=function(){var M=this;this.code.addEventListener("keypress",function(z){M.onCodeInputKeypress(z)})};
_.P.dataChanged=function(){var M=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(z){z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,J.type==="attributes"&&J.attributeName==="dark"&&M.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.P.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var M=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+M+")")}};
_.P.computeRedeemButton=function(M){(M=this.get("redeemButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.P.onRedeemButtonTap=function(M){M.stopPropagation();Czt();this.redeemCode()};
_.P.redeemCode=function(){var M=this;this.isLoading=!0;var z=this.riskService.init();_.Ys([z,this.loadPaymentThenable]).then(function(){var J=M.data.redeemButton.buttonRenderer.serviceEndpoint,R=_.n6n(),D=payments.business.integration.ClientTokenFactory.createClientToken(_.G(J,_.h1J).countryCode,R);R={c:M.code.value.trim(),rd:window.btoa(R),ctk:D};J&&_.JF().resolve(_.Rb).resolveCommand(J,{form:Object.assign({},R,{element:M.hostElement})})},function(){M.showGenericError();
oc("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.$y(Error("mo"))})};
_.P.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isLoading=!1;var z,J;this.errorMessage=(z=M.detail)==null?void 0:(J=z.data)==null?void 0:J.errorMessage;var R,D;this.postRedemptionRenderer=(R=M.detail)==null?void 0:(D=R.data)==null?void 0:D.renderer;var N,Z;if(M=(N=M.detail)==null?void 0:(Z=N.data)==null?void 0:Z.redirectEndpoint)this.isLoading=!0,_.Pv(this.hostElement,"yt-navigate",{endpoint:M});this.errorMessage?oc("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
M)&&_.bg("ypcRedeemFlowSucceeded")};
_.P.onYtServiceRequestError=function(M){M.stopPropagation();this.isLoading=!1;if(M=this.get("detail.error.message",M))this.errorMessage=_.id(M);oc("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.P.onInvokeInstrumentManagerActionCompleted=function(M){M.stopPropagation();this.redeemCode()};
_.P.onInvokeInstrumentManagerActionError=function(M){M.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",M)){case "instrumentManagerLoadError":this.showGenericError();oc("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();oc("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.bg("ypcRedeemFlowCancelled")}};
_.P.onInput=function(){var M=this;_.Vc(this,"onInput",function(){var z=M.code.value.trim();M.redeemButtonDisabled=z.length<M.MIN_CODE_LENGTH||z.length>M.MAX_CODE_LENGTH},200)};
_.P.onCodeInputKeypress=function(M){M.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Czt(),this.redeemCode())};
_.P.computeImageUrl=function(M){return M?_.PS(M.thumbnails,600):null};
_.P.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
xX.prototype.onInvokeInstrumentManagerActionError=xX.prototype.onInvokeInstrumentManagerActionError;xX.prototype.onInvokeInstrumentManagerActionCompleted=xX.prototype.onInvokeInstrumentManagerActionCompleted;xX.prototype.onYtServiceRequestError=xX.prototype.onYtServiceRequestError;xX.prototype.onYtServiceRequestCompleted=xX.prototype.onYtServiceRequestCompleted;xX.prototype.dataChanged=xX.prototype.dataChanged;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],xX.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Boolean)],xX.prototype,"redeemButtonDisabled",void 0);
_.u([_.Y(),_.W("design:type",Object)],xX.prototype,"errorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],xX.prototype,"postRedemptionRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],xX.prototype,"observer",void 0);_.u([_.Qc("#code"),_.W("design:type",HTMLInputElement)],xX.prototype,"code",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xX.prototype,"dataChanged",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],xX.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],xX.prototype,"onYtServiceRequestError",null);
_.u([_.Xw("yt-invoke-instrument-manager-action-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],xX.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.u([_.Xw("yt-invoke-instrument-manager-action-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],xX.prototype,"onInvokeInstrumentManagerActionError",null);_.u([_.c({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],xX);
_.d(xX,"ytd-redeem-code-renderer",function(){if(O_l!==void 0)return O_l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return O_l=M},{mode:1});var oXl;_.nn("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var tI=function(){var M=_.g.apply(this,arguments)||this;M.businessEmailDisplayState="HIDE_SECTION";return M};
_.w(tI,_.g);_.P=tI.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.P.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.qI(_.seV),this.businessEmailDisplayState="CAPTCHA"))};
_.P.onYtServiceRequestCompleted=function(M){var z;if((z=M.detail.data)==null?0:z.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var J;if((J=M.detail.data)==null?0:J.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.computeEmailHref=function(M){return"mailto:"+M};
_.P.computeSafeUrl=function(M){if(M)return _.hr(M)};
_.P.onBusinessEmailCaptchaSubmit=function(){var M;(M=this.data)!=null&&M.onBusinessEmailRevealClickCommand&&(M=this.JSC$21580_captchaTextarea.value)&&(M={recaptcha_response_token:M,channel_id:this.data.channelId},_.JF().resolve(_.Rb).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},M,{element:this.hostElement})}))};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.rX.Object.defineProperties(tI.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.primaryLinks)&&!((z=this.data)==null?0:z.links)&&this.data.primaryLinks.every(function(J){return J.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.primaryLinks)&&!((z=this.data)==null?0:z.links)&&!this.shouldShowNewLinks}}});
tI.prototype.onYtServiceRequestCompleted=tI.prototype.onYtServiceRequestCompleted;tI.prototype.dataChanged=tI.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Qc("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],tI.prototype,"JSC$21580_captchaTextarea",void 0);_.u([_.Y(),_.W("design:type",Object)],tI.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],tI.prototype,"businessEmailDisplayState",void 0);_.u([_.Y(),_.W("design:type",String)],tI.prototype,"businessEmail",void 0);_.u([_.Y(),_.W("design:type",String)],tI.prototype,"businessEmailErrorMessage",void 0);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tI.prototype,"hideDetailsSection",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tI.prototype,"dataChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tI.prototype,"shouldShowNewLinks",null);_.u([_.F("data","shouldShowLinks"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tI.prototype,"shouldShowLegacyLinks",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tI.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],tI);
_.d(tI,"ytd-channel-about-metadata-renderer",function(){if(oXl!==void 0)return oXl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return oXl=M},{mode:1});var XMi;_.nn("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var jS=function(){return _.g.apply(this,arguments)||this};
_.w(jS,_.g);jS.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]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jS.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],jS.prototype,"lockupContainerType",void 0);_.u([_.Y(),_.W("design:type",String)],jS.prototype,"thumbnailFixedWidth",void 0);
_.u([_.c({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],jS);
_.d(jS,"ytd-channel-featured-content-renderer",function(){if(XMi!==void 0)return XMi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return XMi=M},{mode:1});var lMm;_.nn("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var p_=function(){var M=_.g.apply(this,arguments)||this;M.roundContainer=!0;M.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return M};
_.w(p_,_.g);_.P=p_.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.dataChanged=function(){this.imageWidth=this.imageHeight=24;var M=this.data;M.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!M.style&&M.image&&M.image.thumbnails.length&&(M=M.image.thumbnails[0],this.imageWidth=M.width||0,this.imageHeight=M.height||0)};
_.P.computeSource=function(M){return M.secondarySource?_.CD(M.secondarySource):_.CD(M.source)};
_.P.computeClarifyStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.P.isLargeStyle=function(M){return M==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.P.computeBackgroundStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.P.computeHasActionButton=function(M){return!!M.actionButton};
_.P.computeHasBottomSection=function(M){return!!M.ctaHasBottomSection};
_.P.computeIsSourceMissing=function(M){return M.ctaHasBottomSection===!1?!0:M&&this.computeSource(M)?!1:!0};
_.P.computeSecondaryEndpoint=function(M){return M.secondaryEndpoint||M.endpoint};
p_.prototype.dataChanged=p_.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p_.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],p_.prototype,"imageWidth",void 0);_.u([_.Y(),_.W("design:type",Number)],p_.prototype,"imageHeight",void 0);
_.u([_.Y({computed:"computeSecondaryEndpoint(data)"}),_.W("design:type",Object)],p_.prototype,"secondaryEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.W("design:type",Boolean)],p_.prototype,"hasActionButton",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.W("design:type",Boolean)],p_.prototype,"hasBottomSection",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.W("design:type",Boolean)],p_.prototype,"missingSource",void 0);_.u([_.Y({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],p_.prototype,"icon",void 0);_.u([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",String)],p_.prototype,"secondaryIcon",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.W("design:type",String)],p_.prototype,"clarifyStyle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.W("design:type",String)],p_.prototype,"backgroundStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],p_.prototype,"roundContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],p_.prototype,"amsterdamEnabled",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p_.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-clarification-renderer",disableElementRegistration:!0})],p_);
_.d(p_,"ytd-clarification-renderer",function(){if(lMm!==void 0)return lMm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return lMm=M},{mode:1});var eGw;var Qcc;var FX=function(){var M=_.g.apply(this,arguments)||this;M.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return M};
_.w(FX,_.g);_.P=FX.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.computeIcon=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.P.computeUseContacts=function(M){return!!M.contacts&&M.contacts.length>0};
_.P.computePhoneContact=function(M){var z,J;return(z=M.contacts)==null?void 0:(J=z.find(function(R){var D;return(R==null?void 0:(D=R.icon)==null?void 0:D.iconType)==="PHONE"}))==null?void 0:J.actionText};
_.P.computeSmsContact=function(M){var z,J;return(z=M.contacts)==null?void 0:(J=z.find(function(R){var D;return(R==null?void 0:(D=R.icon)==null?void 0:D.iconType)==="SMS"}))==null?void 0:J.actionText};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],FX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],FX.prototype,"amsterdamEnabled",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.W("design:type",Boolean)],FX.prototype,"useContacts",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.W("design:type",String)],FX.prototype,"phoneContact",void 0);_.u([_.c({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],FX);
_.d(FX,"ytd-single-action-emergency-support-renderer",function(){if(Qcc!==void 0)return Qcc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Qcc=M},{mode:1});_.nn("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var YX=function(){var M=_.g.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return M};
_.w(YX,_.g);YX.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],YX.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],YX.prototype,"amsterdamEnabled",void 0);
_.u([_.c({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],YX);
_.d(YX,"ytd-emergency-onebox-renderer",function(){if(eGw!==void 0)return eGw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return eGw=M},{mode:1});var UWl;_.nn("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var mC=function(){return _.g.apply(this,arguments)||this};
_.w(mC,_.g);mC.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mC.prototype,"data",void 0);_.u([_.c({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],mC);
_.d(mC,"ytd-exploratory-results-renderer",function(){if(UWl!==void 0)return UWl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return UWl=M},{mode:1});var vXu;_.nn("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var gm=function(){var M=_.g.apply(this,arguments)||this;M.messageData=null;return M};
_.w(gm,_.g);_.P=gm.prototype;_.P.onServiceRequestCompleted=function(M,z){M=z.actions||[];z=0;for(var J=M.length;z<J;z++){var R=M[z],D=void 0,N=void 0;if((D=_.G(R,_.YB))==null?0:(N=D.item)==null?0:N.messageRenderer)this.messageData=_.G(R,_.YB).item.messageRenderer}};
_.P.dataChanged=function(){var M=this.data;this.hostElement.hidden=!1;_.kz(this.hostElement,"is-channel",M&&!M.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.P.computeThumbnailWidth=function(M){return M?126:56};
_.P.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.P.onSubmitTap=function(){var M=this.data,z=this.selectedResponseIndex;M!==void 0&&z!==void 0&&(M=M.responses[z],M.responseData&&_.JF().resolve(_.Rb).resolveCommand(M.responseData,{form:{element:this.hostElement}}))};
_.P.onDismissTap=function(){this.hostElement.hidden=!0;var M=this.data;M!==void 0&&M.dismissalEndpoint&&_.JF().resolve(_.Rb).resolveCommand(M.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
gm.prototype.onSelectedResponseIndexChange=gm.prototype.onSelectedResponseIndexChange;gm.prototype.dataChanged=gm.prototype.dataChanged;gm.prototype.onServiceRequestCompleted=gm.prototype.onServiceRequestCompleted;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gm.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],gm.prototype,"messageData",void 0);
_.u([_.Y(),_.W("design:type",Number)],gm.prototype,"selectedResponseIndex",void 0);_.u([_.Qc("#submit-button"),_.W("design:type",HTMLButtonElement)],gm.prototype,"submitButton",void 0);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],gm.prototype,"onServiceRequestCompleted",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gm.prototype,"dataChanged",null);
_.u([_.la("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gm.prototype,"onSelectedResponseIndexChange",null);_.u([_.c({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],gm);
_.d(gm,"ytd-feedback-elicitation-single-question-renderer",function(){if(vXu!==void 0)return vXu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vXu=M},{mode:1});var GXm;var sM=function(){return _.g.apply(this,arguments)||this};
_.w(sM,_.g);sM.prototype.computeThumbnailWidth=function(M){return M?602:428};
sM.prototype.updateWideFromBinding=function(M){this.wide=M.detail.value};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sM.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],sM.prototype,"wide",void 0);_.u([_.c({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],sM);
_.d(sM,"ytd-newspaper-hero-video-renderer",function(){if(GXm!==void 0)return GXm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return GXm=M},{mode:1});var wMd;var n_=function(){return _.g.apply(this,arguments)||this};
_.w(n_,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],n_.prototype,"rendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],n_.prototype,"data",void 0);_.u([_.c({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],n_);
_.d(n_,"ytd-newspaper-mini-video-renderer",function(){if(wMd!==void 0)return wMd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wMd=M},{mode:1});var xWN;_.nn("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var hI=function(){return _.g.apply(this,arguments)||this};
_.w(hI,_.g);hI.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"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hI.prototype,"data",void 0);_.u([_.c({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],hI);
_.d(hI,"ytd-newspaper-renderer",function(){if(xWN!==void 0)return xWN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xWN=M},{mode:1});var tSG;_.nn("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var yr=function(){var M=_.g.apply(this,arguments)||this;M.isSegment=!1;M.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};M.nextContinuation={continuationType:"playlistVideoListContinuation"};return M};
_.w(yr,_.g);_.P=yr.prototype;_.P.attached=function(){_.JF();var M;(M=_.JF().resolve(_.zw(_.BV)))!=null&&(M.playlistVideoListElement=this.hostElement)};
_.P.detached=function(){var M;(M=_.JF().resolve(_.zw(_.BV)))!=null&&(M.playlistVideoListElement=void 0);M=_.JF().resolve(_.zw(_.T1));_.U("web_enable_voting_animation")&&M&&(M.parentElem=void 0,M.videos=[],M.continuationsPresent=!1,M.showRefreshPill=!1)};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.dataChanged=function(){var M=_.JF().resolve(_.zw(_.T1));if(_.U("web_enable_voting_animation")&&this.data&&M){var z=_.SN(this.hostElement).querySelector("#contents");z&&(M.parentElem=z);M.addVideos(this.data.contents)}_.I4$(this.ytReorderableBehavior)};
_.P.onRendererstamperFinished=function(){this.canReorder&&_.oMQ(this.ytReorderableBehavior,_.SN(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.P.onPlaylistReloading=function(){this.isReloading=!0};
_.P.onUpdateSetVideoId=function(M){if(M.detail&&this.data&&this.data.contents){var z=M.detail;M=this.data.contents.findIndex(function(D){var N;return((N=D.playlistVideoRenderer)==null?void 0:N.videoId)===z.videoId});
if(!(M<0)&&z.setVideoId&&(this.set("data.contents."+M+".playlistVideoRenderer.setVideoId",z.setVideoId),_.U("web_enable_voting_animation"))){var J;if(M=_.G((J=this.data.contents[M].playlistVideoRenderer)==null?void 0:J.engagementBar,_.rlo)){var R;(R=M.actions)==null||R.forEach(function(D){if(D=_.G(D,_.MMR))D.itemId=z.setVideoId})}(J=_.JF().resolve(_.zw(_.T1)))&&bjl(J,z.videoId,z.setVideoId)}}};
_.P.computeContentsClass=function(M){return M?"reloading":""};
_.P.computeIsSortable=function(M,z){return M&&z>0&&!this.isSegment&&!_.U("shorts_in_playlists_web")};
_.P.computeIsEditable=function(M){return M};
_.P.computeCanReorder=function(M){return M};
_.P.handlePlaylistRemoveVideosAction=function(M){if(this.get("playlistRemoveVideosAction.setVideoIds",M)&&this.data&&this.data.contents){M=_.G(M,_.yQV).setVideoIds;for(var z=this.data.contents.length-1;z>=0;){var J=this.data.contents[z].playlistVideoRenderer;J&&J.setVideoId&&M.includes(J.setVideoId)&&this.splice("data.contents",z,1);z--}_.S9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".playlistVideoRenderer.index",_.id(String(M+1)))};
_.P.handleDrop=function(M){M=M.currDragItem;var z=_.HY(M.parentNode.childNodes,M),J=this.data.contents.splice(Number(_.CD(M.data.index))-1,1)[0];this.data.contents.splice(z,0,J);z=z?this.get("contents."+(z-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();M=this.buildReorderServiceEndpoint(M.data.setVideoId,z);this.ytComponentBehavior.resolveCommand(M)};
_.P.buildReorderServiceEndpoint=function(M,z){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",M),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",z),this.data.onReorderEndpoint):null};
_.P.handleUpdatePlaylistAction=function(M){var z;(M=_.G((z=_.G(M,_.HsQ))==null?void 0:z.updatedRenderer,_.N$$))&&this.canReorder!==M.canReorder&&this.set("data.canReorder",M.canReorder);M&&M.contents&&(this.set("data.contents",M.contents),this.isReloading=!1);M&&M.continuations&&this.set("data.continuations",M.continuations)};
_.P.handleAddRendererToItemSectionAction=function(M){var z,J=(z=_.G(M,RGm))==null?void 0:z.renderer,R;J&&((R=_.G(M,RGm))==null?void 0:R.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,J),M=_.JF().resolve(_.zw(_.T1)),_.U("web_enable_voting_animation")&&M&&(J&&(z=_.bIp(J))&&M.recommendedVideos.push({itemId:z,videoId:_.zmR(J),voteCount:_.JO8(J),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.P.isVotingEnabledOnPlaylist=function(M){if(!M)return!1;M=_.S(M);for(M=M.next();!M.done;M=M.next()){var z=void 0;return!!_.G((z=M.value.playlistVideoRenderer)==null?void 0:z.engagementBar,_.rlo)}return!1};
_.P.onAppendContinuationItemsActionFinished=function(){var M;this.isVotingEnabledOnPlaylist((M=this.data)==null?void 0:M.contents)&&(this.updateIndices(),M=_.JF().resolve(_.zw(_.T1)),_.U("web_enable_voting_animation")&&M&&this.data&&M.addVideos(this.data.contents))};
_.P.updateVideoData=function(M){if(M.detail&&this.data&&this.data.contents){var z=M.detail;M=z.toIdx;var J=z.itemId,R=z.newVoteCount,D=z.voteStatus;z=z.hideItem;var N,Z,B=(N=this.data)==null?void 0:(Z=N.contents)==null?void 0:Z.findIndex(function(e){return _.bIp(e)===J});
if(!(B<0)){N=this.data.contents[B];var O;if((O=N.playlistVideoRenderer)==null?0:O.voteCount)N.playlistVideoRenderer.voteCount=R;var X;if(O=_.G((X=N.playlistVideoRenderer)==null?void 0:X.engagementBar,_.rlo)){var l;(l=O.actions)==null||l.forEach(function(e){(e=_.G(e,_.MMR))&&e.initialState&&(e.initialState.votes=R,e.initialState.status=D)})}this.data.contents.splice(B,1);
z||this.data.contents.splice(M,0,N);this.updateIndices()}}};
yr.prototype.updateVideoData=yr.prototype.updateVideoData;yr.prototype.onAppendContinuationItemsActionFinished=yr.prototype.onAppendContinuationItemsActionFinished;yr.prototype.onUpdateSetVideoId=yr.prototype.onUpdateSetVideoId;yr.prototype.onPlaylistReloading=yr.prototype.onPlaylistReloading;yr.prototype.onRendererstamperFinished=yr.prototype.onRendererstamperFinished;yr.prototype.dataChanged=yr.prototype.dataChanged;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],yr.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],yr.prototype,"ytNextContinuationBehavior",void 0);
_.u([_.p(_.X$p),_.W("design:type",Object)],yr.prototype,"ytReorderableBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],yr.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yr.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yr.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],yr.prototype,"isReloading",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yr.prototype,"isSegment",void 0);_.u([_.Y({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.W("design:type",Boolean)],yr.prototype,"isSortable",void 0);_.u([_.Y({computed:"computeIsEditable(data.isEditable)"}),_.W("design:type",Boolean)],yr.prototype,"isEditable",void 0);_.u([_.Y({computed:"computeCanReorder(data.canReorder)"}),_.W("design:type",Boolean)],yr.prototype,"canReorder",void 0);
_.u([_.Y({value:101}),_.W("design:type",Number)],yr.prototype,"scrollMargin",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yr.prototype,"dataChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yr.prototype,"onRendererstamperFinished",null);
_.u([_.Xw("yt-playlist-reloading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yr.prototype,"onPlaylistReloading",null);_.u([_.Xw("yt-update-set-video-id"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yr.prototype,"onUpdateSetVideoId",null);
_.u([_.Xw("yt-append-continuation-items-action-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yr.prototype,"onAppendContinuationItemsActionFinished",null);_.u([_.Xw("yt-update-video-data-voting-animation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yr.prototype,"updateVideoData",null);_.u([_.c({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],yr);
_.d(yr,"ytd-playlist-video-list-renderer",function(){if(tSG!==void 0)return tSG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return tSG=M},{mode:_.B5("kevlar_poly_si_batch_j047")?1:2});var jci;var HM=function(){return _.g.apply(this,arguments)||this};
_.w(HM,_.g);HM.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"}}}}};
HM.prototype.onTextWrapperTap=function(M){var z=this.data&&this.data.navigationEndpoint;z&&!_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:z})};
HM.prototype.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");M&&M.commandMetadata&&_.G(M.commandMetadata,_.hV)&&_.G(M.commandMetadata,_.hV).fireAutomatically&&_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})};
HM.prototype.dataChanged=HM.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.bl),_.W("design:type",Object)],HM.prototype,"ytdLockupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],HM.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],HM.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],HM.prototype,"biggerThumbsStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],HM.prototype,"leftAligned",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HM.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-movie-renderer"})],HM);
_.d(HM,"ytd-movie-renderer",function(){if(jci!==void 0)return jci;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return jci=M},{mode:1});var pMw;var cM=function(){var M=_.g.apply(this,arguments)||this;M.rounded=!0;M.pageAttachedTo=void 0;M.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return M};
_.w(cM,_.g);cM.prototype.attached=function(){this.pageAttachedTo=_.JF().resolve(_.M6).getCurrentPage();_.Pv(this.hostElement,"yt-player-attached",this.player)};
cM.prototype.detached=function(){var M;if((M=this.pageAttachedTo)==null?0:M.hostElement)_.Pv(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
cM.prototype.dataChanged=function(){var M;if((M=this.data)==null?0:M.videoId)M={video_id:this.data.videoId,autoplay:!0},!_.U("miniplayer_stop_channel_video_autoplay_killswitch")&&_.JF().resolve(_.q5).isMiniplayerActive()&&(M.pause_at_start=!0,M.autoplay=!1),this.player.loadVideoWithPlayerVars(M)};
cM.prototype.handleSignalActionPausePlayer=function(){_.R9().pause()};
cM.prototype.dataChanged=cM.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],cM.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"rounded",void 0);_.u([_.Qc("#player"),_.W("design:type",Object)],cM.prototype,"player",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cM.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],cM);
_.d(cM,"ytd-channel-video-player-renderer",function(){if(pMw!==void 0)return pMw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return pMw=M},{mode:1});var FCN;var YMw;var mWu;var dm=function(){var M=_.g.apply(this,arguments)||this;M.playing=!1;M.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.fp(M);M.active=!1;return M};
_.w(dm,_.g);_.P=dm.prototype;_.P.detached=function(){this.stop()};
_.P.play=function(){var M=this,z,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return M.active=!0,z=M.get("data.inlinePlaybackEndpoint.watchEndpoint"),J=z.videoId||M.data.videoId,R=z.startTimeSeconds||0,D=z.playerParams||null,_.U("kevlar_player_update_killswitch")?Z.yield(M.playerEl.update({args:{video_id:J,startSeconds:R,player_params:D}}),2):(M.playerEl.loadVideoWithPlayerVars({video_id:J,startSeconds:R,player_params:D,autoplay:!0}),Z.jumpTo(2));if(Z.nextAddress!=4)return Z.yield(M.playerEl.getPlayerPromise(),
4);N=Z.yieldResult;N.unloadModule("annotations_module");N.addEventListener("onStateChange",function(B){M.onPlayerStateChange(B)});
_.UI(Z)})};
_.P.onPlayerStateChange=function(M){if(this.active)switch(this.playing=M===1,M){case 1:_.Pv(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Pv(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.P.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.P.resize=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.playerEl.getPlayerPromise(),2);z=J.yieldResult;z.setSize(NaN,NaN);_.UI(J)})};
_.u([_.Y(),_.W("design:type",Object)],dm.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],dm.prototype,"playing",void 0);_.u([_.Y(),_.W("design:type",Object)],dm.prototype,"playerId",void 0);_.u([_.Qc("#player"),_.W("design:type",Object)],dm.prototype,"playerEl",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],dm);
_.d(dm,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(mWu!==void 0)return mWu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mWu=M},{mode:1});var gXm;var scu;var K_=function(){var M=_.g.apply(this,arguments)||this;M.width=0;return M};
_.w(K_,_.g);_.P=K_.prototype;_.P.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ou(this,this.onEnded));this.mp4El.addEventListener("error",_.ou(this,this.onError))};
_.P.detached=function(){this.videoEl.removeEventListener("ended",_.ou(this,this.onEnded));this.mp4El.removeEventListener("error",_.ou(this,this.onError))};
_.P.play=function(){var M=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var z=this.videoEl.play();z?z.then(function(){M.handleVideoStartPlaying()}).catch(function(){_.Pv(M.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Pv(this.hostElement,"yt-video-thumbnail-not-playing")};
_.P.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.P.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.P.dataChanged=function(){var M;if((M=this.data)==null?0:M.thumbnailPlaceholder)M=_.PS(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+M+")";this.stop();this.autoplay&&this.play()};
_.P.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.P.onEnded=function(){this.stop();_.Pv(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.P.onError=function(){_.Pv(this.hostElement,"yt-video-thumbnail-error")};
_.P.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.P.getVideoThumbnail=function(M){if(M&&M.length)return M[0]};
K_.prototype.dataChanged=K_.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],K_.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],K_.prototype,"animatePlaceholderOnEntrance",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],K_.prototype,"autoplay",void 0);_.u([_.Y({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.W("design:type",Object)],K_.prototype,"videoThumbnail",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],K_.prototype,"loop",void 0);_.u([_.Y(),_.W("design:type",Boolean)],K_.prototype,"isVideoPlaying",void 0);_.u([_.Y(),_.W("design:type",Object)],K_.prototype,"width",void 0);_.u([_.Qc("#mp4"),_.W("design:type",HTMLElement)],K_.prototype,"mp4El",void 0);_.u([_.Qc("#placeholder"),_.W("design:type",HTMLElement)],K_.prototype,"placeholderEl",void 0);_.u([_.Qc("#video"),_.W("design:type",HTMLVideoElement)],K_.prototype,"videoEl",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K_.prototype,"dataChanged",null);_.u([_.cU({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],K_);
_.d(K_,"yt-video-as-thumbnail-details",function(){if(scu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;gXm===void 0&&(gXm=document.createElement("template"));var R=gXm;J.call(z,R.content.cloneNode(!0),M.content.firstChild);scu=M}M=scu;return M},{mode:2});var $X=function(){var M=_.g.apply(this,arguments)||this;M.disableGridStateAware=!1;M.animationEnabled=_.U("enable_web_ketchup_hero_animation");M.transitioningOut=!1;M.narrow=!1;M.narrower=!1;M.isCarouselInFeed=!1;M.videoTimeoutJobId=0;M.panelTimeoutJobId=0;M.panelTimeoutJobStartMs=0;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.w($X,_.g);_.P=$X.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.P.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var M;this.player&&((M=this.data)==null?0:M.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.P.attached=function(){this.onWindowResized()};
_.P.detached=function(){this.clearTimeouts()};
_.P.onWindowResized=function(){this.updateSize()};
_.P.computePanelLayout=function(M){return M&&M.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.playVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.play();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.play()};
_.P.stopVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.stop();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.stop()};
_.P.transitionOut=function(){var M=this;this.transitioningOut=!0;return new Promise(function(z){var J=function(){_.SN(M.hostElement).querySelector("#action-button").removeEventListener("animationend",J);_.no.cancelJob(R);z();M.transitioningOut=!1};
var R=_.x4(_.no,J,1E3);_.SN(M.hostElement).querySelector("#action-button").addEventListener("animationend",J);M.player&&(M.player.playing=!1)})};
_.P.computeMetadataOrder=function(M){return M&&M.metadataOrder&&M.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?M.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.P.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.P.computeAvatarSize=function(M){return M&&M.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.P.onContentClick=function(M){if(!_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString()])){var z;if((z=this.data)==null?0:z.navigationEndpoint){var J;this.componentBehavior.resolveCommand((J=this.data)==null?void 0:J.navigationEndpoint)}}};
_.P.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.P.setBackgroundImage=function(M){if(M=this.getBackgroundImageUrl(M))_.SN(this.hostElement).querySelector("#hero").style.backgroundImage="url("+M+")"};
_.P.setScrimLayer=function(M){var z=this.getScrimLayerColorStops(M);M=((M==null?void 0:M.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(M=180);_.HW("HTML_DIR")==="rtl"&&(M=-M);z&&(_.SN(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+M+"deg, "+z+")")};
_.P.isNarrower=function(){return this.hostElement.clientWidth<$X.NARROW_VERSION_SIZE};
_.P.getScrimLayerColorStops=function(){var M,z=(M=this.data)==null?void 0:M.scrimColorValues;if(!z)return null;if(z.length===1)return M=_.qG(z[0]),M+" 0%, "+M+" 100%";if(z.length===3){var J=[0,72,98];return z.map(function(R,D){return _.qG(R)+" "+J[D]+"%"}).join(",")}return null};
_.P.getBackgroundImageUrl=function(M){return M&&M.largeFormFactorBackgroundThumbnail?_.PS((M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.P.onPlaying=function(){this.startVideoTimeout()};
_.P.onEnded=function(){this.rotate()};
_.P.startPanelTimeout=function(){var M=this;if(!this.panelTimeoutJobId){var z=this.get("data.minPanelDisplayDurationMs");z&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.x4(_.no,function(){M.rotate()},z))}};
_.P.startVideoTimeout=function(){var M=this;if(!this.videoTimeoutJobId){_.no.cancelJob(this.panelTimeoutJobId);var z=Date.now()-this.panelTimeoutJobStartMs;z=Math.max(0,this.get("data.minPanelDisplayDurationMs")-z);z=Math.max(this.get("data.minVideoPlayDurationMs")||0,z);this.videoTimeoutJobId=_.x4(_.no,function(){M.rotate()},z)}};
_.P.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.no.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.no.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.P.rotate=function(){this.clearTimeouts();_.Pv(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.rX.Object.defineProperties($X.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.SN(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.SN(this.hostElement).querySelector("#video")}}});
_.rX.Object.defineProperties($X,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
$X.prototype.onEnded=$X.prototype.onEnded;$X.prototype.onPlaying=$X.prototype.onPlaying;$X.prototype.dataChanged=$X.prototype.dataChanged;_.u([_.p(_.fk),_.W("design:type",Object)],$X.prototype,"ytdGridStateAwareBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$X.prototype,"componentBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],$X.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.p(_.o0S),_.W("design:type",Object)],$X.prototype,"ytBooleanLogicBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],$X.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"disableGridStateAware",void 0);_.u([_.Y(),_.W("design:type",Object)],$X.prototype,"data",void 0);_.u([_.Y({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.W("design:type",String)],$X.prototype,"panelLayout",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"animationEnabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"transitioningOut",void 0);
_.u([_.Y({computed:"computeMetadataOrder(data)"}),_.W("design:type",Boolean)],$X.prototype,"metadataOrder",void 0);_.u([_.Y({computed:"computeByline(data)"}),_.W("design:type",Object)],$X.prototype,"byline",void 0);_.u([_.Y({computed:"computeAvatarSize(data)"}),_.W("design:type",Number)],$X.prototype,"avatarSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"narrow",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"narrower",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"layoutStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$X.prototype,"isCarouselInFeed",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$X.prototype,"dataChanged",null);_.u([_.Xw("yt-default-promo-panel-renderer-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$X.prototype,"onPlaying",null);
_.u([_.Xw("yt-default-promo-panel-renderer-ended"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$X.prototype,"onEnded",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],$X);
_.d($X,"ytd-default-promo-panel-renderer",function(){if(YMw!==void 0)return YMw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return YMw=M},{mode:1});_.nn("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var uC=function(){var M=_.g.apply(this,arguments)||this;M.narrower=!1;M.dotMenuVisible=!1;M.paginationThumbnailsVisible=!1;M.active=!0;M.disableGridStateAware=!1;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.w(uC,_.g);_.P=uC.prototype;_.P.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.ou(this,this.onPageTypeChange));this.currentPageSubtype=_.UA(location.pathname);this.onWindowResized()};
_.P.detached=function(){this.jobId&&_.no.cancelJob(this.jobId);this.updateSizeJobId&&_.no.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ou(this,this.onPageTypeChange))};
_.P.onPageTypeChange=function(M){this.active=M.detail.newPageSubtype===this.currentPageSubtype};
_.P.onWindowResized=function(){this.updateSize()};
_.P.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.P.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.P.setCarouselItem=function(M){M>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.no.cancelJob(this.jobId);var z=this.getCurrentPanelElement();z&&z.stopVideo();this.currentItemIndex=M%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(z||(z=this.getCurrentPanelElement()),z.playVideo()):this.startRotationJob()};
_.P.scrollThumbnails=function(M){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var z=this.getCurrentPaginationElement();if(z){var J=_.SN(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?J.style.transform="translateX(0)":(z=z.offsetWidth+8,J.style.transform="translateX(-"+z*(M-Math.ceil(Math.floor(this.overlay.offsetWidth/z)/2)+1)+"px)")}}};
_.P.onDataChanged=function(){var M=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.xC(_.no,function(){var z;(z=M.getCurrentPanelElement())==null||z.updateSize();M.updateSize()}))};
_.P.getCurrentPanelElement=function(){return _.SN(_.SN(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.P.getCurrentPaginationElement=function(){return _.SN(_.SN(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.P.getNavigationClass=function(M,z){return M===z?"selected":""};
_.P.getNavigationDurationStyle=function(M){return"animation-duration:"+(this.get("data.carouselItems."+M+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.P.onNavigationTap=function(M){var z=this,J=M.model.index;J!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){z.setCarouselItem(J)}),this.autorotateActive=!1)};
_.P.onVideoThumbnailEnded=function(){var M=this;if(this.shouldRotate()){var z=this.getCurrentPaginationElement();z&&(z.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){z.classList.remove("finished");M.setNextCarouselItem()}))}};
_.P.onVideoThumbnailError=function(){this.startRotationJob()};
_.P.onVideoNotPlaying=function(){this.startRotationJob()};
_.P.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.P.startRotationJob=function(){var M=this;_.no.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.no.addLowPriorityJob(function(){M.getCurrentPanelElement().transitionOut().then(function(){M.setNextCarouselItem()})},this.rotationTimeout))};
_.P.computeDotMenuVisible=function(M,z){return!!M&&!!M.carouselItems&&M.carouselItems.length>1&&!M.paginationThumbnails||!!z};
_.P.computePaginationThumbnailsVisible=function(M,z){var J,R;return((R=M==null?void 0:(J=M.paginationThumbnails)==null?void 0:J.length)!=null?R:0)>1&&!z};
_.P.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.computePaginatorAlignment=function(M){return(M==null?void 0:M.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.P.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.P.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.P.isNarrower=function(M){return(M!=null?M:0)<$X.NARROW_VERSION_SIZE};
uC.prototype.activeChanged=uC.prototype.activeChanged;uC.prototype.onVideoNotPlaying=uC.prototype.onVideoNotPlaying;uC.prototype.onVideoThumbnailError=uC.prototype.onVideoThumbnailError;uC.prototype.onVideoThumbnailEnded=uC.prototype.onVideoThumbnailEnded;uC.prototype.onDataChanged=uC.prototype.onDataChanged;_.u([_.p(_.fk),_.W("design:type",Object)],uC.prototype,"ytdGridStateAwareBehavior",void 0);
_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],uC.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uC.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],uC.prototype,"currentItem",void 0);
_.u([_.Y(),_.W("design:type",Number)],uC.prototype,"currentItemIndex",void 0);_.u([_.Y(),_.W("design:type",Number)],uC.prototype,"rotationTimeout",void 0);_.u([_.Y(),_.W("design:type",Number)],uC.prototype,"loopCount",void 0);_.u([_.Y({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.W("design:type",String)],uC.prototype,"paginatorAlignment",void 0);_.u([_.Y(),_.W("design:type",Number)],uC.prototype,"jobId",void 0);
_.u([_.Y(),_.W("design:type",Number)],uC.prototype,"updateSizeJobId",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],uC.prototype,"isCarouselInFeed",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uC.prototype,"narrower",void 0);_.u([_.Y({computed:"computeDotMenuVisible(data, narrower)"}),_.W("design:type",Object)],uC.prototype,"dotMenuVisible",void 0);
_.u([_.Y({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.W("design:type",Object)],uC.prototype,"paginationThumbnailsVisible",void 0);_.u([_.Y({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.W("design:type",String)],uC.prototype,"layoutType",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],uC.prototype,"autorotateActive",void 0);_.u([_.Y(),_.W("design:type",Object)],uC.prototype,"active",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uC.prototype,"disableGridStateAware",void 0);_.u([_.Qc("#overlay"),_.W("design:type",HTMLElement)],uC.prototype,"overlay",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uC.prototype,"onDataChanged",null);
_.u([_.Xw("yt-video-thumbnail-ended"),_.Xw("yt-default-promo-panel-renderer-rotate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uC.prototype,"onVideoThumbnailEnded",null);_.u([_.Xw("yt-video-thumbnail-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uC.prototype,"onVideoThumbnailError",null);
_.u([_.Xw("yt-video-thumbnail-not-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uC.prototype,"onVideoNotPlaying",null);_.u([_.wH("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uC.prototype,"activeChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],uC);
_.d(uC,"ytd-carousel-item-renderer",function(){if(FCN!==void 0)return FCN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return FCN=M},{mode:2});var nXv;var hG5;var yIl;var H_m;var qW=function(){var M=_.g.apply(this,arguments)||this;M.originalQuery=null;M.originalEndpoint=null;return M};
_.w(qW,_.g);qW.prototype.computeShowOriginalQueryWithoutEndpoint_=function(M,z){return!(!M||z)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"correctedText",void 0);_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"correctedQuery",void 0);_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"correctedEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"originalText",void 0);_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"originalQuery",void 0);
_.u([_.Y(),_.W("design:type",Object)],qW.prototype,"originalEndpoint",void 0);_.u([_.Y({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.W("design:type",Boolean)],qW.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.u([_.cU({is:"yt-search-query-correction",disableElementRegistration:!0})],qW);
_.d(qW,"yt-search-query-correction",function(){if(H_m===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;yIl===void 0&&(yIl=document.createElement("template"));var R=yIl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);H_m=M}M=H_m;return M},{mode:2});_.nn("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var WM=function(){return _.g.apply(this,arguments)||this};
_.w(WM,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],WM.prototype,"data",void 0);_.u([_.cU({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],WM);
_.d(WM,"yt-did-you-mean-renderer",function(){if(hG5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;nXv===void 0&&(nXv=document.createElement("template"));var R=nXv;J.call(z,R.content.cloneNode(!0),M.content.firstChild);hG5=M}M=hG5;return M},{mode:2});var cIu;var dWw;_.nn("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ac=function(){return _.g.apply(this,arguments)||this};
_.w(ac,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ac.prototype,"data",void 0);_.u([_.cU({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ac);
_.d(ac,"yt-including-results-for-renderer",function(){if(dWw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;cIu===void 0&&(cIu=document.createElement("template"));var R=cIu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dWw=M}M=dWw;return M},{mode:2});var KCs;var $Ws;_.nn("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Vr=function(){return _.g.apply(this,arguments)||this};
_.w(Vr,_.g);Vr.prototype.computeExtraClasses_=function(M,z){var J="";M&&(J+=" "+M.toLowerCase().replace(/_/g,"-"));z&&(J+=" "+z.toLowerCase().replace(/_/g,"-"));return J};
Vr.prototype.computeUrlImg_=function(){var M=this.data;M.image&&(_.SN(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.PS(M.image.thumbnails,Number.MAX_VALUE)+")")};
Vr.prototype.computeUrlImg_=Vr.prototype.computeUrlImg_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Vr.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vr.prototype,"computeUrlImg_",null);_.u([_.cU({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Vr);
_.d(Vr,"yt-music-pass-feature-info-renderer",function(){if($Ws===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;KCs===void 0&&(KCs=document.createElement("template"));var R=KCs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$Ws=M}M=$Ws;return M},{mode:2});var uXc;var qMw;_.nn("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var EM=function(){return _.g.apply(this,arguments)||this};
_.w(EM,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],EM.prototype,"data",void 0);_.u([_.cU({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],EM);
_.d(EM,"yt-no-results-found-showing-results-for-renderer",function(){if(qMw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;uXc===void 0&&(uXc=document.createElement("template"));var R=uXc;J.call(z,R.content.cloneNode(!0),M.content.firstChild);qMw=M}M=qMw;return M},{mode:2});var WCs;var aMm;_.nn("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var f_=function(){return _.g.apply(this,arguments)||this};
_.w(f_,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],f_.prototype,"data",void 0);_.u([_.cU({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],f_);
_.d(f_,"yt-results-without-quotes-renderer",function(){if(aMm===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;WCs===void 0&&(WCs=document.createElement("template"));var R=WCs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);aMm=M}M=aMm;return M},{mode:2});var VSl;var EXl;_.nn("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var L_=function(){return _.g.apply(this,arguments)||this};
_.w(L_,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L_.prototype,"data",void 0);_.u([_.cU({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],L_);
_.d(L_,"yt-search-no-results-renderer",function(){if(EXl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;VSl===void 0&&(VSl=document.createElement("template"));var R=VSl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);EXl=M}M=EXl;return M},{mode:2});var fMs;var LC5;_.nn("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var AI=function(){return _.g.apply(this,arguments)||this};
_.w(AI,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AI.prototype,"data",void 0);_.u([_.cU({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],AI);
_.d(AI,"yt-showing-results-for-renderer",function(){if(LC5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;fMs===void 0&&(fMs=document.createElement("template"));var R=fMs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);LC5=M}M=LC5;return M},{mode:2});var AIw;var i_c;var CCw;var b_v;var iC=function(){var M=_.g.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.w(iC,_.g);iC.prototype.toggleAnswer_=function(M){var z=_.b7(M);z&&z.classList.contains("yt-simple-endpoint")||(M.preventDefault(),M.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
iC.prototype.toggleAnswer_=iC.prototype.toggleAnswer_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iC.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iC.prototype,"answerExpanded",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iC.prototype,"toggleAnswer_",null);
_.u([_.cU({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],iC);
_.d(iC,"yt-generic-faq-question-renderer",function(){if(b_v===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;CCw===void 0&&(CCw=document.createElement("template"));var R=CCw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);b_v=M}M=b_v;return M},{mode:2});_.nn("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var C_=function(){return _.g.apply(this,arguments)||this};
_.w(C_,_.g);C_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],C_.prototype,"data",void 0);_.u([_.cU({is:"yt-faq-section-renderer",disableElementRegistration:!0})],C_);
_.d(C_,"yt-faq-section-renderer",function(){if(i_c===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;AIw===void 0&&(AIw=document.createElement("template"));var R=AIw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);i_c=M}M=i_c;return M},{mode:2});var rIs;var MLc;_.nn("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var bC=function(){return _.g.apply(this,arguments)||this};
_.w(bC,_.g);
bC.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bC.prototype,"data",void 0);_.u([_.cU({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],bC);
_.d(bC,"yt-offer-item-expanded-renderer",function(){if(MLc===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;rIs===void 0&&(rIs=document.createElement("template"));var R=rIs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);MLc=M}M=MLc;return M},{mode:2});var zRG;var Jfc;_.nn("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var rm=function(){return _.g.apply(this,arguments)||this};
_.w(rm,_.g);
rm.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"}}}}};
rm.prototype.computeFullWidthMode=function(M){return!(!M||!M.fullWidthMode)};
rm.prototype.computeBorderlessMode=function(M){return!(!M||!M.borderlessMode)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rm.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.W("design:type",Boolean)],rm.prototype,"fullWidthMode",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.W("design:type",Boolean)],rm.prototype,"borderlessMode",void 0);_.u([_.cU({is:"yt-offer-item-renderer",disableElementRegistration:!0})],rm);
_.d(rm,"yt-offer-item-renderer",function(){if(Jfc===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;zRG===void 0&&(zRG=document.createElement("template"));var R=zRG;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Jfc=M}M=Jfc;return M},{mode:2});var RRl;var Dec;_.nn("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Me=function(){return _.g.apply(this,arguments)||this};
_.w(Me,_.g);Me.prototype.computeAriaLevel_=function(M){return this.getLevelID_(M)};
Me.prototype.getLevelID_=function(M){return(M=M.match(/[0-9]+$/))&&M.length==1?M[0]:"1"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Me.prototype,"data",void 0);_.u([_.Y({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.W("design:type",String)],Me.prototype,"ariaLevel",void 0);_.u([_.Y({value:"heading",reflectToAttribute:!0}),_.W("design:type",String)],Me.prototype,"role",void 0);
_.u([_.Y({value:-1,reflectToAttribute:!0}),_.W("design:type",Number)],Me.prototype,"tabindex",void 0);_.u([_.cU({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Me);
_.d(Me,"yt-subscription-product-header-renderer",function(){if(Dec===void 0){var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;RRl===void 0&&(RRl=document.createElement("template"));var R=RRl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Dec=M}M=Dec;return M},{mode:2});var NYG;var Pyv;_.nn("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var zq=function(){return _.g.apply(this,arguments)||this};
_.w(zq,_.g);zq.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:_.hM("menuRenderer"),events:!0}}};
zq.prototype.onStampFinished_=function(){_.SN(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
zq.prototype.onStampFinished_=zq.prototype.onStampFinished_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zq.prototype,"data",void 0);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zq.prototype,"onStampFinished_",null);
_.u([_.cU({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],zq);
_.d(zq,"yt-subscription-product-renderer",function(){if(Pyv===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;NYG===void 0&&(NYG=document.createElement("template"));var R=NYG;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Pyv=M}M=Pyv;return M},{mode:2});var Snu;var Z05;_.nn("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Jf=function(){return _.g.apply(this,arguments)||this};
_.w(Jf,_.g);Jf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Jf.prototype.imageScrimColorValuesChanged_=function(){var M,z=(M=this.data)==null?void 0:M.imageScrimColorValues;_.SN(this.hostElement).querySelector("#scrim").style.backgroundColor=z?_.qG(z[0]):"transparent"};
Jf.prototype.imageScrimColorValuesChanged_=Jf.prototype.imageScrimColorValuesChanged_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Jf.prototype,"data",void 0);
_.u([_.la("data.imageScrimColorValues"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Jf.prototype,"imageScrimColorValuesChanged_",null);_.u([_.cU({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Jf);
_.d(Jf,"yt-subscription-product-upsell-offer-renderer",function(){if(Z05===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Snu===void 0&&(Snu=document.createElement("template"));var R=Snu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Z05=M}M=Z05;return M},{mode:2});var kqw;var BYN;var O0i;var TYi;var Ilu;var owu;var RW=function(){return _.g.apply(this,arguments)||this};
_.w(RW,_.g);RW.prototype.onYtServiceRequestError_=function(M){_.Cf(this.hostElement,M.detail.error.message)};
RW.prototype.onYtServiceRequestError_=RW.prototype.onYtServiceRequestError_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RW.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],RW.prototype,"collapsible",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],RW.prototype,"isManageRed",void 0);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RW.prototype,"onYtServiceRequestError_",null);_.u([_.cU({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],RW);
_.d(RW,"yt-single-ypc-offer-renderer",function(){if(owu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Ilu===void 0&&(Ilu=document.createElement("template"));var R=Ilu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);owu=M}M=owu;return M},{mode:2});var Dl=function(){return _.g.apply(this,arguments)||this};
_.w(Dl,_.g);Dl.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Dl.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Dl.prototype,"isManageRed",void 0);_.u([_.cU({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Dl);
_.d(Dl,"yt-single-ypc-offer-list-renderer",function(){if(TYi===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;O0i===void 0&&(O0i=document.createElement("template"));var R=O0i;J.call(z,R.content.cloneNode(!0),M.content.firstChild);TYi=M}M=TYi;return M},{mode:2});var XOc;var lll;_.nn("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Ne=function(){return _.g.apply(this,arguments)||this};
_.w(Ne,_.g);Ne.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ne.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Ne.prototype,"isManageRed",void 0);_.u([_.cU({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Ne);
_.d(Ne,"yt-ypc-offers-list-renderer",function(){if(lll===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;XOc===void 0&&(XOc=document.createElement("template"));var R=XOc;J.call(z,R.content.cloneNode(!0),M.content.firstChild);lll=M}M=lll;return M},{mode:2});_.nn("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var PO=function(){return _.g.apply(this,arguments)||this};
_.w(PO,_.g);
PO.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PO.prototype,"data",void 0);_.u([_.cU({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],PO);
_.d(PO,"yt-unlimited-manage-subscription-page-renderer",function(){if(BYN===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;kqw===void 0&&(kqw=document.createElement("template"));var R=kqw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);BYN=M}M=BYN;return M},{mode:2});var eRt;var QWw;var SL=function(){return _.g.apply(this,arguments)||this};
_.w(SL,_.g);_.P=SL.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.P.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.onKeypress_=function(M){M.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.P.handleHeaderTap_=function(M){M.preventDefault();M.stopPropagation();this.expandOffers_()};
_.P.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.P.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
SL.prototype.dataChanged_=SL.prototype.dataChanged_;_.u([_.p(_.pH),_.W("design:type",Object)],SL.prototype,"ironA11yKeysBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SL.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],SL.prototype,"offersVisible_",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SL.prototype,"dataChanged_",null);_.u([_.cU({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],SL);
_.d(SL,"yt-collapsible-ypc-offer-renderer",function(){if(QWw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;eRt===void 0&&(eRt=document.createElement("template"));var R=eRt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);QWw=M}M=QWw;return M},{mode:2});var Ueu;var vww;_.nn("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Zl=function(){return _.g.apply(this,arguments)||this};
_.w(Zl,_.g);_.P=Zl.prototype;_.P.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.P.dataChanged_=function(){if(this.data.backgroundImage){var M=_.PS(this.data.backgroundImage.thumbnails,screen.width),z=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=z?"linear-gradient(180deg, "+z+"), url("+M+")":"url("+M+")";this.data.gtmId&&_.Ha(this.data.gtmId,_.HW("GL",""))}};
_.P.onYtServiceRequestError_=function(M){_.Cf(this.hostElement,M.detail.error.message)};
_.P.getScrimLayerColorStops_=function(){var M,z,J=(M=this.data.unlimitedHeaderV2Data)==null?void 0:(z=M.unlimitedHeaderV2Data)==null?void 0:z.scrimLayerColors;if(!J)return null;var R=100/J.length;return J.map(function(D,N){N*=R;return _.qG(D)+" "+N+"%"}).join(",")};
_.P.computeLogoWithPadding=function(M){var z,J,R;return(M=(z=M.unlimitedLogoImage)==null?void 0:(J=z.thumbnails)==null?void 0:(R=J[0])==null?void 0:R.height)&&M%31===0?!0:!1};
Zl.prototype.onYtServiceRequestError_=Zl.prototype.onYtServiceRequestError_;Zl.prototype.dataChanged_=Zl.prototype.dataChanged_;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.u([_.Y({computed:"computeLogoWithPadding(data)"}),_.W("design:type",Boolean)],Zl.prototype,"logoWithPadding",void 0);
_.u([_.Y(),_.W("design:type",Object)],Zl.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zl.prototype,"dataChanged_",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Zl.prototype,"onYtServiceRequestError_",null);_.u([_.cU({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Zl);
_.d(Zl,"yt-unlimited-page-header-renderer",function(){if(vww===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Ueu===void 0&&(Ueu=document.createElement("template"));var R=Ueu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);vww=M}M=vww;return M},{mode:2});var Gqw;var wOt;_.nn("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var kw=function(){return _.g.apply(this,arguments)||this};
_.w(kw,_.g);kw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kw.prototype,"data",void 0);_.u([_.cU({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],kw);
_.d(kw,"yt-unlimited-user-notification-renderer",function(){if(wOt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Gqw===void 0&&(Gqw=document.createElement("template"));var R=Gqw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);wOt=M}M=wOt;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.t_l=_.Mf(function(M){var z=_.rH(M,{numberOfChips:5}).numberOfChips;return _.T("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.T(_.G4,{each:function(){return Array(z==null?void 0:z())}},function(){return _.T("div",{class:"ytGhostChipShelfChip"})}))},"Ig");_.jOi=_.Mf(function(M){var z=function(){var N;return((N=M.data)==null?void 0:N.call(M).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},J=_.o9(),R=_.JF().resolve(_.Ce);
_.FT(function(){requestAnimationFrame(function(){var N;(N=J.lottieEl)==null||N.addEventListener("DOMLoaded",function(){var Z;(Z=M.onLottieLoaded)==null||Z.call(M)})})});
var D={};return _.T("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var N;return((N=M.data)==null?void 0:N.call(M).targetId)||""}},_.T(_.xK,{className:_.Qe((D.ytChatLoadingViewModelRtl=R==="rtl",D)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:z()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||z()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:z()}}},
animationRef:J}))},"Jg");
}catch(e){_._DumpException(e)}
try{
var $al,u8c,qZw,Wtl,aZw,VPm,EEt,fZc,APG,RLw,Gb,Jg5,bqm,zLt,MfN,rPl,C0w,DHw,N3v,Pis,SRw,wk,Zhw,k4G,T3l,jd,B3w,pJ,xW,F6,Ohl,ta,INd,oyl,XWu,lNw,eLl,QXd,vyw,tfN,FFN,YR5,mHs,gys,sX5,ny5,hLt,Hh5,dHu,$Hw,uTi,qRl,WFd,Vfi,EyG,fNG,LFN,Agv,ihv,Cic,rgm,RVd,JFt,Mzi,DCl,zVN,NQi,kw5,ZKt,P9m,S7u,mU,BQ5,OKw,IRs,UCw,vNw,Gwm,wJw,xCw,tzw,jbG,pJc,Fow,Y7N,gNl,sbl,nNG,lRv;
_.UJ=function(M){var z=new _.xN("Error accessing DB");return _.dmn().then(function(J){return new Promise(function(R,D){try{var N=J.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(M);N.onsuccess=function(){var Z=N.result;R(Z?Z.value:null)};
N.onerror=function(){z.params={key:M,source:"onerror"};D(z)}}catch(Z){z.params={key:M,
thrownError:String(Z)},D(z)}})},function(){return null})};
_.Ktw=function(M,z){var J=_.MXw(z);J!=="javascript:"&&J!=="data:"&&M.setAttribute("href",z)};
$al=function(M,z){return _.Is(M.entities,"flowStateEntity",z)};
u8c=function(M,z){return _.Is(M.entities,"contextNoteUserRatingEntityPayload",z)};
qZw=function(M){return _.he(M,function(z){return z.languageCode==="en"})};
Wtl=function(M){var z=vE;if(_.CmN(M))M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{});else{var J=_.he(_.wio(M),function(R){return R.displayName===z});
M.setOption("captions","track",J)}};
aZw=function(M){if(!M)return 0;var z=M.getPresentingPlayerType(),J=M.getVideoData();return J&&J.isLive?(M=M.getProgressState(z),M.seekableEnd-M.seekableStart):M.getDuration(z)};
VPm=function(M,z){for(var J=_.S(Object.keys(M)),R=J.next();!R.done;R=J.next())if(R=R.value,M[R]!==z[R])return!1;return!0};
EEt=function(){return document.getElementById("player-control-overlay")};
fZc=function(M){M!==-1&&!_.U("player_controls_log_creation_killswitch")&&EEt()&&(_.hd("pcu_cs",M),_.hd("pcu_ce"))};
APG=function(M){return _.T("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(M.subscribeButton?[M.subscribeButton,M.channelAccess]:[M.channelAccess]).map(function(z){return _.T("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz--button"},Lt5(z)))}))};
_.iqw=function(M){var z=M.data;var J=M.hideDivider;M=M.isChannelInfoCard;var R={};R=(R["yt-profile-identity-info-view-model-wiz__frame"]=!0,R["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!z.channelBanner,R);R={class:_.jF(R)};var D,N={imageBannerViewModel:{image:(D=z.channelBanner)==null?void 0:D.image,style:"IMAGE_BANNER_STYLE_INSET"}};D=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},z.channelBanner?_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
Lt5(N,{imageBannerViewModel:{isPositionRelative:!0}})):null);N=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},Lt5(z.avatar));var Z;var B=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},z.channelDisplayName),z.verifiedOrOacBadge?_.T("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.T(_.rv,{data:{thumbnails:[{url:(Z=z.verifiedOrOacBadge)==null?void 0:Z.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);Z=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},B,Lt5(z.threeDotMenu));B=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},z.channelHandle),z.channelPronouns&&z.channelHandle?_.T("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},z.channelPronouns)),_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},z.leftOfBulletInfo),z.leftOfBulletInfo&&z.rightOfBulletInfo?_.T("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},z.rightOfBulletInfo)));Z=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},Z,B);return _.T("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.T("div",R,D,_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},N,Z),z.channelDescription?_.T("div",{class:M?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
z.channelDescription):null,APG(z),J?null:_.T("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
RLw=function(M,z){var J=_.ba(M,{}),R=C0w("top",z),D=C0w("bottom",z),N=C0w("left",z),Z=C0w("right",z);return _.UN({top:function(){return Gb(J().position,R)},
bottom:function(){return Gb(J().position,D)},
left:function(){return Gb(J().position,N)},
right:function(){return Gb(J().position,Z)},
position:function(){return Gb(J().positionType,bqm)},
height:function(){return Gb(J().height,wk)},
width:function(){return Gb(J().width,wk)},
"min-width":function(){return Gb(J().minWidth,wk)},
"min-height":function(){return Gb(J().minHeight,wk)},
"max-width":function(){return Gb(J().maxWidth,wk)},
"max-height":function(){return Gb(J().maxHeight,wk)},
"aspect-ratio":function(){return Gb(J().aspectRatio,String)},
"margin-top":function(){return Gb(J().margin,R)},
"margin-bottom":function(){return Gb(J().margin,D)},
"margin-left":function(){return Gb(J().margin,N)},
"margin-right":function(){return Gb(J().margin,Z)},
"padding-top":function(){return Gb(J().padding,R)},
"padding-bottom":function(){return Gb(J().padding,D)},
"padding-left":function(){return Gb(J().padding,N)},
"padding-right":function(){return Gb(J().padding,Z)},
"flex-direction":function(){return Gb(J().flexDirection,rPl)},
"justify-content":function(){return Gb(J().justifyContent,MfN)},
"align-items":function(){return Gb(J().alignItems,zLt)},
"flex-grow":function(){return Gb(J().flexGrow,String)},
"flex-shrink":function(){return Gb(J().flexShrink,String)},
"flex-basis":function(){return Gb(J().flexBasis,wk)},
"align-self":function(){return Gb(J().alignSelf,zLt)},
"flex-wrap":function(){return Gb(J().flexWrap,Jg5)},
"align-content":function(){return Gb(J().alignContent,zLt)}})};
Gb=function(M,z){return M!==void 0?z(M):void 0};
Jg5=function(M){switch(M){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
bqm=function(M){switch(M){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
zLt=function(M){switch(M){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
MfN=function(M){switch(M){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
rPl=function(M){switch(M){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
C0w=function(M,z){var J=z==="rtl";switch(M){case "top":var R=DHw;break;case "bottom":R=N3v;break;case "left":R=Pis;break;default:R=SRw}return function(D){return Gb(R(D,J),wk)}};
DHw=function(M){var z=M.top;var J=M.vertical;M=M.all;var R;return(R=z!=null?z:J)!=null?R:M};
N3v=function(M){var z=M.bottom;var J=M.vertical;M=M.all;var R;return(R=z!=null?z:J)!=null?R:M};
Pis=function(M,z){var J=M.left;var R=M.end;var D=M.start;var N=M.horizontal;M=M.all;var Z,B;return(B=(Z=J!=null?J:z?R:D)!=null?Z:N)!=null?B:M};
SRw=function(M,z){var J=M.right;var R=M.end;var D=M.start;var N=M.horizontal;M=M.all;var Z,B;return(B=(Z=J!=null?J:z?D:R)!=null?Z:N)!=null?B:M};
wk=function(M){var z=M.value;switch(M.unit){case "YPC_DIMENSION_UNIT_POINT":return z+"px";case "YPC_DIMENSION_UNIT_FRACTION":return z+"%";default:return""+z}};
Zhw=function(M){switch(M){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
k4G=function(M){var z=M!=null?M:{};M=z.fontRole;var J=z.fontSize;z=z.fontWeight;if(M!==null&&J!==null)switch(M){case "YPC_FONT_ROLE_DISPLAY":switch(J){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(J){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return z===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(J){case "YPC_FONT_SIZE_XL":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
T3l=function(M,z,J){function R(l){return Object.values(l).map(function(e){var Q=e.productId;e=e.pricingOptionIndex;return xW(D(Q).pricingOptions,e).pricingOptionId})}
function D(l){return B().get(l)}
function N(l){l=R(l);J(l)}
var Z=ta([M,z],function(l,e){var Q=l==null?void 0:l.selectedPricingOptions;l={};var v=!0;if(Q&&e.length)for(var x=_.S(e),m=x.next();!m.done;m=x.next()){m=m.value;var y=B3w(m.pricingOptions,function(b){a:{b=b.pricingOptionId;for(var V=_.S(Q),E=V.next();!E.done;E=V.next())if(E.value===b){b=!0;break a}b=!1}return b});
if(y>=0){v=!1;var H=xW(m.pricingOptions,y),q=void 0;l[m.groupId]={productId:m.productId,pricingOptionIndex:y,pricingGroupAttributes:(q=H)==null?void 0:q.pricingGroupAttributes}}}v&&e.length&&(v=xW(e[0].pricingOptions,0),l[e[0].groupId]={productId:e[0].productId,pricingOptionIndex:0,pricingGroupAttributes:v==null?void 0:v.pricingGroupAttributes});return l}),B=ta([z],function(l){return new Map(l.map(function(e){return[e.productId,
e]}))}),O=ta([z],function(l){var e=new Map;
l=_.S(l);for(var Q=l.next();!Q.done;Q=l.next()){var v=Q.value;Q=v.groupId;var x=v.productId;v=_.S(jd(v.pricingOptions));for(var m=v.next();!m.done;m=v.next()){var y=_.S(m.value);m=y.next().value;y=y.next().value;e.set(y.pricingOptionId,{groupId:Q,productId:x,index:m,pricingOption:y,pricingGroupAttributes:y.pricingGroupAttributes})}}return e}),X=ta([z],function(l){var e=new Map;
l=_.S(l);for(var Q=l.next();!Q.done;Q=l.next()){var v=Q.value;Q=v.groupId;var x=v.productId,m=void 0;v=_.S(jd((m=v.pricingGroups)!=null?m:[]));for(m=v.next();!m.done;m=v.next()){var y=_.S(m.value);m=y.next().value;y=y.next().value;e.set(y.pricingGroupId,{groupId:Q,productId:x,index:m,pricingGroup:y,pricingGroupAttributes:y.pricingGroupAttributes})}}return e});
return{getProductById:D,isProductSelected:function(l){var e=D(l);if(!e)return!1;var Q;return((Q=Z()[e.groupId])==null?void 0:Q.productId)===l},
getSelectedPricingOptions:function(){return Object.values(Z()).map(function(l){var e=l.productId;l=l.pricingOptionIndex;return xW(D(e).pricingOptions,l)})},
getSelectedPricingGroupAttributesByGroupId:function(l){var e;return(l=(e=Z()[l])==null?void 0:e.pricingGroupAttributes)?Array.from(l):void 0},
getSelectedProductByGroupId:function(l){var e;return(l=(e=Z()[l])==null?void 0:e.productId)?D(l):void 0},
onProductSelected:function(l){var e=D(l);if(e){var Q=Z(),v;if(((v=Q[e.groupId])==null?void 0:v.productId)!==l){var x,m;v=(m=(x=Q[e.groupId])==null?void 0:x.pricingOptionIndex)!=null?m:0;pJ(e.pricingOptions)<=v&&(v=0);x=xW(e.pricingOptions,v);var y;m={};N(Object.assign({},Q,(m[e.groupId]={productId:l,pricingOptionIndex:v,pricingGroupAttributes:(y=x==null?void 0:x.pricingGroupAttributes)!=null?y:[]},m)))}}},
onPricingOptionSelected:function(l){var e=O().get(l);if(e){l=e.groupId;var Q=e.productId;e=e.index;var v=Z(),x,m;if(((x=v[l])==null?void 0:x.productId)!==Q||((m=v[l])==null?void 0:m.pricingOptionIndex)!==e){var y,H;x={};N(Object.assign({},v,(x[l]={productId:Q,pricingOptionIndex:e,pricingGroupAttributes:(H=(y=v[l])==null?void 0:y.pricingGroupAttributes)!=null?H:[]},x)))}}},
onPricingGroupSelected:function(l){var e=X().get(l);if(e){l=e.groupId;var Q=e.productId,v=e.pricingGroup.pricingGroupAttributes,x=D(Q);if(x){e=Z();var m=e[l].pricingGroupAttributes,y;if(((y=e[l])==null?void 0:y.productId)!==Q||!F6(Ohl(m,pJ(v)),v)){y=Array.from(v);for(v=pJ(v);v<pJ(m);v++){var H="",q=!1,b=Array.from(y);b.push(xW(m,v));for(var V=_.S(x.pricingGroups),E=V.next();!E.done;E=V.next())if(E=E.value,F6(E.pricingGroupAttributes,b)){y.push(xW(m,v));q=!0;break}else H===""&&pJ(E.pricingGroupAttributes)===
b.length&&F6(Ohl(E.pricingGroupAttributes,y.length),y)&&(H=xW(E.pricingGroupAttributes,v));q||y.push(H)}H=e[l].pricingOptionIndex;v=[];q=new Map;b=0;x=_.S(jd(x.pricingOptions));for(V=x.next();!V.done;V=x.next())E=_.S(V.value),V=E.next().value,E=E.next().value,F6(E.pricingGroupAttributes,y)&&v.push(V),F6(E.pricingGroupAttributes,m)&&q.set(V,b++);v.length===0?m=0:(m=q.get(H),m=m!==void 0&&m<v.length?v[m]:v[0]);x={};N(Object.assign({},e,(x[l]={productId:Q,pricingOptionIndex:m,pricingGroupAttributes:y},
x)))}}}},
onClearGroupSelected:function(l){var e=Z();e[l]&&(e=Object.fromEntries(Object.entries(e).filter(function(Q){return _.S(Q).next().value!==l})),N(e))}}};
jd=function(M){return function J(){var R,D,N,Z,B;return _.kT(J,function(O){switch(O.nextAddress){case 1:_.lY(O,2),R=0,D=_.S(M),N=D.next();case 4:if(N.done){O.jumpTo(2);break}Z=N.value;B=_.Oj;return O.yield([R++,Z],7);case 7:B(O.yieldResult);N=D.next();O.jumpTo(4);break;case 2:_.X4(O),_.eX(O,0)}})}()};
B3w=function(M,z){M=_.S(jd(M));for(var J=M.next();!J.done;J=M.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;if(z(R))return J}return-1};
pJ=function(M){var z=0;for(M=M[Symbol.iterator]();!M.next().done;)++z;return z};
xW=function(M,z){M=_.S(jd(M));for(var J=M.next();!J.done;J=M.next()){var R=_.S(J.value);J=R.next().value;R=R.next().value;if(J===z)return R}};
F6=function(M,z){if(!M&&!z)return!0;if(!M||!z)return!1;M=Array.from(M);z=Array.from(z);if(M.length!==z.length)return!1;for(var J=0;J<M.length;J++)if(M[J]!==z[J])return!1;return!0};
Ohl=function(M,z){z=z===void 0?Infinity:z;var J=[];M=_.S(jd(M));for(var R=M.next();!R.done;R=M.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;if(R>=z)break;R>=0&&J.push(D)}return J};
ta=function(M,z){var J,R;return function(){for(var D=M.map(function(Z){return Z()}),N=0;N<D.length;N++)if(!J||D[N]!==J[N]){J=D;
R=z.apply(null,_.Yj(D));break}return R}};
INd=function(M,z,J){var R=[];M=_.S(M);for(var D=M.next();!D.done;D=M.next()){D=D.value;var N=void 0;((N=z)==null?0:N.length)&&!F6(D.pricingGroupAttributes,z)||R.push({pricingOption:D,isSelected:J.includes(D.pricingOptionId)})}return R};
oyl=function(M,z){return _.Is(M.entities,"pdpStateEntity",z)};
XWu=function(M){var z,J;return!!(M.productId&&M.groupId&&((z=M.pricingOptions)==null?0:z.length)&&M.pricingOptions.every(function(R){return R.pricingOptionId})&&((J=M.pricingGroups)==null||!J.length||Array.isArray(M.pricingGroups)&&M.pricingGroups.every(function(R){return R.pricingGroupId&&R.pricingGroupAttributes&&R.pricingGroupAttributes.length>0})))};
lNw=function(M,z,J){return T3l(M,ta([z],function(R){return R.filter(XWu)}),J)};
eLl=function(M,z){return z.length===0?[M]:[M.slice(0,z[0]),M.slice(z[0])].filter(function(J){return J.length>0})};
QXd=function(M){switch(M){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
vyw=function(M,z,J,R){R=Object.assign({},R);_.hh(R,UHw,{selectedOptionId:M,primaryButtonOverride:J});_.ia().dispatch(_.pf("flowStateEntity",z,R))};
_.xHw=function(){if(!G4d){var M=_.S(_.kE(new Map,void 0,"Xuivje"));G4d=M.next().value;wWu=M.next().value}return G4d};
tfN=function(M){if(M)return _.xHw()().get(M)};
_.jXv=function(M,z){if(M&&z){var J=_.xHw();J().set(M,z);M=J();wWu(new Map(M))}};
_.pWw=function(M){return{onSubmit:function(){var z;(z=tfN(M()))==null||z.onSubmit()},
isValid:function(){var z=tfN(M());return z?z.isValid():!0},
isSubmitting:function(){var z,J;return!!((z=tfN(M()))==null?0:(J=z.isSubmitting)==null?0:J.call(z))}}};
FFN=function(M){switch(M){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
YR5=function(M){switch(M){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
mHs=function(M,z){return _.Is(M.entities,"contextNoteFeedEntityPayload",z)};
gys=function(M,z){switch(M){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return z==null?void 0:z.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return z==null?void 0:z.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return z==null?void 0:z.ratingNotHelpfulText}};
sX5=function(M,z){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:M.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:M.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:M.deleteDialogTitle}]},dialogMessages:[{runs:[{text:M.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:M.deleteActionText}]},command:{performCommentActionEndpoint:{action:z}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:M.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
ny5=function(M){M.style.height="auto";M.style.height=M.scrollHeight+"px"};
hLt=function(M){return[M.syncStep,M.asyncStep].filter(function(z){return z!==void 0})};
Hh5=function(M){var z,J,R;if(M=(z=M.structuredContextNoteFormSchema)==null?void 0:(J=z.fieldSchemas)==null?void 0:(R=J.noteBody)==null?void 0:R.validationSchema)for(z=_.S(hLt(M)),J=z.next();!J.done;J=z.next()){J=J.value.rules;if(!J)break;J=_.S(J);for(J=J.next();!J.done;J=J.next())return _.G(J.value,_.yg5)}};
dHu=function(M){if(M){M=_.S(hLt(M));for(var z=M.next();!z.done;z=M.next()){z=z.value.rules;if(!z)break;z=_.S(z);for(z=z.next();!z.done;z=z.next())return _.G(z.value,cgl)}}};
$Hw=function(M){if(M){M=_.S(hLt(M));for(var z=M.next();!z.done;z=M.next()){z=z.value.rules;if(!z)break;z=_.S(z);for(z=z.next();!z.done;z=z.next())return _.G(z.value,KFl)}}};
uTi=function(M){M=/^https?:\/\//.test(M)?M:"http://"+M;try{var z=_.um(M)}catch(J){return!1}if(z.toString()!==M)return!1;M=z.JSC$9998_domain_.split(".");return M.length>1&&M.every(function(J){return!!J})};
qRl=function(M,z,J,R){var D;R=(D=R.structuredContextNoteData)==null?void 0:D.createCommentEndpoint;if(D=_.G(R,_.q4g))return D.commentText=_.id(M),D.videoPositionMention=z,D.sources=J,R};
WFd=function(M){return M==null?void 0:M.stringValue};
Vfi=function(M,z,J){M=M.map(function(R,D){return{listItemViewModel:{title:R.title,subtitle:R.subtitle,leadingImage:R.leadingImage,trailingImage:D===z?aNt:void 0,rendererContext:{commandContext:{onTap:R.onTap}}}}});
return Object.assign({},J&&{header:{panelHeaderViewModel:{title:J}}},{content:{listViewModel:{listItems:M}}})};
EyG=function(M,z){if(M&&z)switch(z){case "SELECTION_TYPE_BOOL":return M.boolValue;case "SELECTION_TYPE_INT":return M.intValue;case "SELECTION_TYPE_STRING":return M.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return M.privacyStatusValue}};
fNG=function(M){var z;M=(z=M.options)==null?void 0:z.findIndex(function(J){return J.isSelected});
return M===void 0?-1:M};
LFN=function(M,z,J){var R=function(){return M().label},D={},N=_.Qe("ytDropdownViewModelLabel",(D.ytDropdownViewModelLabelError=z,D));
return _.T(_.I,{cond:function(){return M().label&&!(J()===-1&&M().label&&!M().placeholderText)},
then:function(){return _.T("div",{class:N},_.T(_.m3,{text:R}))}})};
Agv=function(M,z){var J={};J=_.Qe("ytDropdownViewModelTitle",(J.ytDropdownViewModelTitlePlaceholder=function(){return z()===-1},J));
return _.T("div",{class:J},_.T(_.m3,{text:function(){var R=M();var D=z();if(D===-1)R=R.placeholderText?R.placeholderText:R.label;else{var N,Z;R=(N=R.options)==null?void 0:(Z=N[D])==null?void 0:Z.title}return R}}))};
ihv=function(M,z){var J=function(){return M().hint};
return _.T(_.MH,null,_.T(_.I,{cond:function(){return J()&&!z()},
then:function(){return _.T("div",{class:_.Qe("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.T(_.m3,{text:J,className:"ytDropdownViewModelSupportText"}))}}),_.T(_.I,{cond:z,
then:function(){return _.T("div",{id:"dropdown-view-model-error",role:"alert",class:_.Qe("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.T(_.vS,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.T(_.m3,{text:z,className:"ytDropdownViewModelSupportText"}))}}))};
Cic=function(M,z){var J=_.JF().resolve(_.TRw);_.mF(function(){var R=M().id;R&&J!=null&&J.dropdownMap.set(R,z)})};
rgm=function(M){M=_.G(M.scheduleButton,bhs);M=_.G(M==null?void 0:M.primaryButton,_.s3);M=_.G(M==null?void 0:M.onTap,_.dv);var z,J,R=((J=_.G(M,_.TV))==null?void 0:J.commands)||[M];J=_.S(R);for(M=J.next();!M.done&&!(z=_.G(M.value,_.ayu));M=J.next());var D;z=(D=z)==null?void 0:D.createBroadcastRequest;if(!z)throw Error("Nj");return z};
RVd=function(M,z,J){J=J===void 0?{}:J;var R,D;return _.k(function(N){if(R=Mzi(z))return N.return(R);(D=zVN(M,z,J))&&JFt(z,D);return N.return(D)})};
JFt=function(M,z){var J=DCl(M);J&&z.then(function(R){_.JF().resolve(_.lA).put(J,new _.e0({innertubeResponse:R}))})};
Mzi=function(M){if(M=DCl(M)){var z=_.JF().resolve(_.lA);if(z.has(M))return z.get(M).then(function(J){return J==null?void 0:_.Dz(J)})}return null};
DCl=function(M){var z=_.G(M.endpoint,_.Au);if(z!=null&&z.videoId)return z={videoId:z.videoId},_.U("web_imp_player_mute_params")&&(z.mutedAtStart=M.startPlaybackInMutedState),_.Lu("inline_playback",z)};
zVN=function(M,z,J){M=_.fn(M,z.endpoint,NQi(z,J)).then(function(R){return R});
return Promise.resolve(M)};
NQi=function(M,z){z=_.U("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!M.startPlaybackInMutedState},z):Object.assign({},{vis:5,autonav:"1"},z);var J;z={contentPlaybackContext:_.YV(z,(J=_.G(M.endpoint.commandMetadata,_.X9))==null?void 0:J.url,window.location.href)};_.U("web_imp_player_mute_params")&&(z.overrideMutedAtStart=!M.startPlaybackInMutedState);return z};
kw5=function(M,z){var J=window.MutationObserver;J&&(YW=new J(function(R,D){R=_.S(R);for(var N=R.next();!N.done;N=R.next()){N=N.value;var Z;if(Z=N.type==="childList"&&N.target)a:{Z=M;N=P9m(N.target);Z=P9m(Z);for(var B=null,O=0;O<N.length;O++)if(Z.includes(N[O])){if(O===0){Z=!1;break a}B=N[O];break}B?(N=S7u(N,B),Z=S7u(Z,B),Z=N<Z):Z=!1}if(Z){z();D.disconnect();break}}}),(J=ZKt())&&YW.observe(J,{childList:!0,
subtree:!0}))};
ZKt=function(){var M=document.getElementsByTagName("ytd-rich-grid-renderer");if(M.length>0)return M[0];M=document.getElementsByTagName("ytd-section-list-renderer");return M.length>0?M[0]:null};
P9m=function(M){for(var z=[];M;)z.push(M),M=M.parentElement;return z};
S7u=function(M,z){var J=Array.from(z.children);z=M.indexOf(z);return z>0?J.indexOf(M[z-1]):-1};
mU=function(M,z,J){J=J===void 0?{}:J;return _.e9(M,J,z)};
BQ5=function(M){switch(M){case "MUSIC":return!0;default:return!1}};
OKw=function(M){return M==null?void 0:M.filter(function(z){return z.premiereTrailerBadgeRenderer})};
IRs=function(M){var z,J=M==null?void 0:(z=M.find(function(e){return e.thumbnailOverlayTimeStatusRenderer}))==null?void 0:z.thumbnailOverlayTimeStatusRenderer,R,D;
if((J==null?0:(R=J.icon)==null?0:R.iconType)&&BQ5(J==null?void 0:(D=J.icon)==null?void 0:D.iconType)){var N;return{icon:J==null?void 0:(N=J.icon)==null?void 0:N.iconType}}var Z,B;var O=(M=(Z=M==null?void 0:(O=M.find(function(e){return e.thumbnailBottomOverlayViewModel}))==null?void 0:O.thumbnailBottomOverlayViewModel)==null?void 0:(B=Z.badges)==null?void 0:B.find(function(e){var Q,v;
return((Q=_.G(e,TQw))==null?void 0:(v=Q.inlinePlaybackBadgeData)==null?void 0:v.replicateAsTimestamp)===!0}))?_.G(M,TQw):void 0;
if(O==null?0:O.icon){var X,l;if((O=(X=_.ee3(O==null?void 0:O.icon))==null?void 0:(l=X.clientResource)==null?void 0:l.imageName)&&BQ5(O))return{icon:O}}return{}};
UCw=function(M,z){var J=oNN,R=_.S(_.kE(XJi(new lRv(function(){},J,z)),void 0,"PAnyd")),D=R.next().value,N=R.next().value,Z=new lRv(function(B){N(B)},J,z);
_.jP(function(){Promise.resolve().then(function(){var B,O=(B=M())!=null?B:{};Z.playerControlsData=O;_.U("player_controls_skip_double_signal_old")&&(Z.lastSeenPlayerApi=_.u2(O.playerApi));_.U("player_controls_skip_double_signal_old")||(Z.lastSeenPlayerApi=_.u2(O.playerApi));eVm(Z)});
_.pq(function(){Qb5(Z)})},"HikUP");
_.pq(function(){Qb5(Z)});
return function(){return D()}};
vNw=function(M){return function(z){var J=M(),R={playerState:z};if(z===1){var D;(D=J.playerApi)==null||D.loadModule("captions")}if(z===0){var N;(N=J.playerApi)==null||N.unloadModule("captions")}(z!==-1||_.U("web_imp_controls_set_player_state_killswitch"))&&J.setState(R)}};
Gwm=function(M){return function(z){M().setState({playbackRate:z})}};
wJw=function(M){return function(z){var J=M(),R=J.playerApi,D=R==null?void 0:R.getVideoData(),N=(D==null?void 0:D.isLive)||!1;D=D==null?void 0:D.video_id;N={videoDuration:aZw(R||void 0),isLive:N,videoId:D};N.videoId!==J.videoId&&(N=Object.assign({},_.BYb(R),N));if(z==null?0:z.playertype)N.playerType=z.playertype;if(R){N.captionsAvailable=_.Ja(R);z=N;var Z;D=(Z=R.getStoryboardLevel(R.getNumberOfStoryboardLevels()-1))==null?void 0:Z.intervalMs;z.storyboardInterval=D?D/1E3:void 0;N.captionsAvailable&&
(N.captionsEnabled=_.CmN(R))}N.volumeMuted=!(R==null||!R.isMuted());J.setState(N)}};
xCw=function(M){return function(z){var J=M(),R=J.playerApi;if(R){var D=R.getPresentingPlayerType();z={playedTime:z||0,percentLoaded:R.getVideoLoadedFraction(),playerType:D};J.playerState===0&&(z.playedTime=J.videoDuration);J.isLive&&(D=R.getProgressState(D),z.playedTime-=D.seekableStart,z.videoDuration=aZw(R));if(J.playerType===1)R=!1;else{var N;if((N=J.uxConfig)==null?0:N.showCuedOverlay){var Z;R=!((Z=J.playerApi)==null?0:Z.getPlayerStateObject(J.playerType).isDomPaused)}else R=!0}R&&delete z.playedTime;
J.setState(z)}}};
tzw=function(M){return function(){var z=M(),J,R,D,N={volume:(D=(J=z.playerApi)==null?void 0:J.getVolume())!=null?D:0,volumeMuted:!((R=z.playerApi)==null||!R.isMuted())};z.setState(N)}};
jbG=function(M){return function(){var z=M(),J=z.playerApi;if(J){var R={captionsAvailable:_.Ja(J)};R.captionsAvailable&&(R.captionsEnabled=_.CmN(J));z.setState(R)}}};
pJc=function(M){return function(){var z=M();if(z.playerApi&&!(z.volumeMuted||z.controlsVisible&&z.isProbablyAScreenreaderUser)){z.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var J;(J=document.querySelector(".player-control-play-pause-icon"))==null||J.focus()}}};
Fow=function(M){return{appApi:Object.assign({},_.RRR(),{showCaptionsToggleToast:function(z){var J,R;(R=(J=M()).showCaptionsToggleToast)==null||R.call(J,z)},
openInMiniplayer:function(){var z,J;(J=(z=M()).openInMiniplayer)==null||J.call(z)}})}};
Y7N=function(M,z){var J,R,D;return!!(M==null?0:(J=M.playerResponse)==null?0:(R=J.playerConfig)==null?0:(D=R.inlinePlaybackConfig)==null?0:D.showScrubbingControls)&&!(z==null?0:z.hideScrubbingControls)};
_.mCN=function(M){var z=!M.miniplayerIsActive;return[5,2,0].includes(M.miniplayerPlaybackState)||z};
gNl={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};sbl=function(M,z){var J,R,D,N,Z;_.k(function(B){if(!z.length)return B.return([]);J=[];R=_.S(z);for(D=R.next();!D.done;D=R.next())N=D.value,(Z=M.resolveIcon(N))&&!M.iconCache[Z.url]&&J.push(_.cim(M,Z).then(function(){}).catch(function(){}));
return B.return(Promise.all(J))})};
nNG=function(M,z){var J=[];z=(new Set(z)).values();z=_.S(z);for(var R=z.next();!R.done;R=z.next()){R=R.value;for(var D=_.S(Object.values(gNl)),N=D.next();!N.done;N=D.next())J.push({iconName:R,iconStyle:N.value})}sbl(M.iconManager,J)};
_.hVv=function(M,z,J){var R=J!=null?J:M.iconsToFetch;R!=null&&R.length?z!==void 0&&z>=0?_.x4(_.no,function(){nNG(M,R)},z):nNG(M,R):Promise.resolve()};
lRv=function(M,z,J){var R=this;this.renderFn=M;this.listeners=z;this.context=J;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var D;this.lastSeenPlayerApi=_.u2((D=this.playerControlsData)==null?void 0:D.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.BYb(),void 0);_.U("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){XJi(R).setState({playerState:-1});R.resetRecentlyNavigatedJobId&&_.no.cancelJob(R.resetRecentlyNavigatedJobId);
R.recentlyNavigated=!0;R.resetRecentlyNavigatedJobId=_.no.addJob(function(){R.recentlyNavigated=!1},8,1E4)})};
lRv.prototype.setState=function(M){if(!_.U("mweb_player_skip_no_op_state_changes")||!VPm(M,this.state))if(this.state=Object.assign({},this.state,M),!_.U("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)M=-1,_.U("player_controls_log_creation_killswitch")||EEt()||(M=(0,_.zU)()),_.hd("pcu_s"),_.hd("pcu_se"),_.hd("pcu_rs"),this.renderFn(XJi(this)),_.hd("pcu_re"),fZc(M),_.no.addJob(function(){_.hd("pcu_ap")},8)};
var XJi=function(M){var z;var J=_.u2((z=M.playerControlsData)==null?void 0:z.playerApi);return Object.assign({},M.state,{setState:M.boundSetState,domMeasurements:{progressBarLineRect:M.progressBarLineRect},playerApi:J,appApi:M.context.appApi,playerContainer:M.context.playerContainer,playerControlContainer:M.context.playerControlContainer,uxConfig:M.context.uxConfig})},eVm=function(M){M.listeners.forEach(function(z){M.eventListenerCleanupFunctions.push(z.register(function(){return XJi(M)},function(){return M.getData()}))})},
Qb5=function(M){M.eventListenerCleanupFunctions.forEach(function(z){z()});
M.eventListenerCleanupFunctions.length=0};
lRv.prototype.getData=function(){return this.playerControlsData};var gk=new _.R_("abuseReportFlowState");var yFt=new _.R_("feedbackFormFlowState");var HKi=new _.R_("inputBoxViewModel");var cFt=new _.R_("flowNextStepCommand");var dCv=new _.R_("flowPrevStepCommand");var Kom=new _.R_("updateFlowCommand");_.$Ci=new _.R_("flowStepRenderer");_.yg5=new _.R_("lengthValidationRule");var cgl=new _.R_("regexValidationRule");var KFl=new _.R_("selectedValidationRule");var uhl=new _.R_("talkToRecsViewModel");var q7c=new _.R_("creatorGoalSetUpFlowDropdownItemViewModel");var Wol=new _.R_("creatorGoalSetUpFlowDropdownViewModel");var TQw=new _.R_("thumbnailBadgeViewModel");_.aRd=new _.R_("radioButtonGroupViewModel");var bhs=new _.R_("panelFooterViewModel");var Vzd=new _.R_("ypcCancelRecurrenceCommand");var ENw=new _.R_("cancellationFlowState");var UHw=new _.R_("premiumPurchaseFlowState");var fRG=new _.R_("surveyAnswerCardRenderer");var Lod=new _.R_("showMoreButtonRenderer");var AFt;var iKm,C9w=function(){if(iKm!==void 0)return iKm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;AFt===void 0&&(AFt=document.createElement("template"));var R=AFt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return iKm=M};var sJ=function(){var M=_.g.apply(this,arguments)||this;M.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";M.goalDescription="";M.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";M.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";M.startButtonId="start-button";M.exampleButtonId="example-button";return M};
_.w(sJ,_.g);_.P=sJ.prototype;_.P.getGoalDropdownItems=function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.purchaseTargetDropdown,Wol))==null?void 0:z.dropdownItems};
_.P.getTimerDropdownItems=function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.timerDropdown,Wol))==null?void 0:z.dropdownItems};
_.P.getColorDropdownItems=function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.colorDropdown,Wol))==null?void 0:z.dropdownItems};
_.P.getDropdownItemText=function(M){var z;return(z=_.G(M,q7c))==null?void 0:z.itemLabel};
_.P.getDropdownItemValue=function(M){M=_.G(M,q7c);return(M==null?void 0:M.timeLimit)||(M==null?void 0:M.purchaseTarget)||(M==null?void 0:M.eligiblePurchaseType)};
_.P.updateFlowState=function(M){_.S9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:M}])};
_.P.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.P.updateGoalValue=function(M){this.goal=M.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.P.onTextValueChanged=function(M){this.goalDescription=M.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.P.updateTimerValue=function(M){this.timer=M.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.P.updateTierValue=function(M){this.tier=M.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.P.getButtonViewModel=function(M){M=(M==null?void 0:M.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var z,J=_.G((z=this.data)==null?void 0:z.startGoalButton,_.s3);return Object.assign({},J,{state:M})};
_.rX.Object.defineProperties(sJ,{template:{configurable:!0,enumerable:!0,get:function(){return C9w()}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"goal",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"goalDescription",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"timer",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"tier",void 0);
_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"startButtonId",void 0);_.u([_.Y(),_.W("design:type",Object)],sJ.prototype,"exampleButtonId",void 0);_.u([_.cU({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],sJ);_.d(sJ,"yt-creator-goal-set-up-flow-view-model",function(){return C9w()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var bKt;var rFw;var MW5;var zXl=function(){return _.g.apply(this,arguments)||this};
_.w(zXl,_.g);_.u([_.Y(),_.W("design:type",Object)],zXl.prototype,"data",void 0);_.u([_.cU({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],zXl);
_.d(zXl,"yt-survey-answer-card-renderer",function(){if(MW5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;rFw===void 0&&(rFw=document.createElement("template"));var R=rFw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);MW5=M}M=MW5;return M},{mode:2});var Jos;var RXl;var nJ=function(){return _.g.apply(this,arguments)||this};
_.w(nJ,_.g);_.P=nJ.prototype;_.P.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.P.selectedItemChanged=function(M){_.S9(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[M.feedbackToken||""]}])};
_.P.surveyAnswerCardRendererClicked=function(M){if(M.target&&_.G(M.model.item,fRG)){var z=M.target;M=_.G(M.model.item,fRG);M.onTapCommand?_.Bv(z,[M.onTapCommand],z):this.data.onTapCommand&&_.Bv(z,[this.data.onTapCommand],z);this.selectedItemChanged(M)}};
_.P.checkIsCancellationStyle=function(M){return M==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.P.updateSelectedItemFromBinding=function(M){this.selectedItem=M.detail.value};
nJ.prototype.onSelectedItemChanged=nJ.prototype.onSelectedItemChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nJ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],nJ.prototype,"selectedItem",void 0);_.u([_.Y({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],nJ.prototype,"isCancellationStyle",void 0);
_.u([_.la("selectedItem"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nJ.prototype,"onSelectedItemChanged",null);_.u([_.cU({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],nJ);
_.d(nJ,"yt-survey-flow-step-renderer",function(){if(RXl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Jos===void 0&&(Jos=document.createElement("template"));var R=Jos;J.call(z,R.content.cloneNode(!0),M.content.firstChild);RXl=M}M=RXl;return M},{mode:2});var ha=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return M};
_.w(ha,_.g);ha.prototype.handleSurveyFlowStepOptionChanged=function(M){this.ytdReduxBehavior.dispatch(_.Nv({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:M}));_.S9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ha.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],ha.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ha.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],ha);
_.d(ha,"ytd-survey-flow-step-renderer",function(){if(bKt!==void 0)return bKt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return bKt=M},{mode:1});var Lt5;Lt5=_.gZ({avatarViewModel:_.dj,buttonViewModel:_.lT,subscribeButtonViewModel:_.cH,imageBannerViewModel:_.VI});_.Dcs=_.lP(_.iqw);_.RO(_.iqw);var Ncw;var yN=function(){return _.g.apply(this,arguments)||this};
_.w(yN,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yN.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],yN);
_.d(yN,"ytd-channel-history-renderer",function(){if(Ncw!==void 0)return Ncw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Ncw=M},{mode:1});var PDN;var Syl=function(){return _.g.apply(this,arguments)||this};
_.w(Syl,_.g);_.u([_.Y(),_.W("design:type",Object)],Syl.prototype,"data",void 0);_.u([_.c({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Syl);
_.d(Syl,"ytd-feature-enablement-info-renderer",function(){if(PDN!==void 0)return PDN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return PDN=M},{mode:1});var Zol;var kUi;var HE=function(){var M=_.g.apply(this,arguments)||this;M.textBoxMaxLength=_.U("enable_tvod_campaign_code_integration")?15:12;return M};
_.w(HE,_.g);_.P=HE.prototype;_.P.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.P.onSubmit=function(){var M=this.data.serviceEndpoint,z=_.G(M,_.M9);z&&M&&(z.couponCode=this.userInput,_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}}))};
_.P.validate=function(){var M=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=M&&!this.data.errorMessage;this.showErrorMessage=M&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.U("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.P.computeStyle=function(M){return M};
_.P.computeShowValidationBelowInput=function(M){return M!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.P.updateUserInputFromBinding=function(M){this.userInput=M.currentTarget.value};
_.P.updateShowErrorMessageFromBinding=function(M){this.showErrorMessage=M.detail.value};
_.rX.Object.defineProperties(HE.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
HE.prototype.dataChanged=HE.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],HE.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],HE.prototype,"userInput",void 0);_.u([_.Y(),_.W("design:type",Boolean)],HE.prototype,"disableApplyButton",void 0);_.u([_.Y(),_.W("design:type",Boolean)],HE.prototype,"hideApplyButton",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],HE.prototype,"hideErrorMessage",void 0);_.u([_.Y(),_.W("design:type",Boolean)],HE.prototype,"showTick",void 0);_.u([_.Y(),_.W("design:type",Boolean)],HE.prototype,"showErrorMessage",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],HE.prototype,"couponStyle",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.W("design:type",Boolean)],HE.prototype,"showValidationBelowInput",void 0);_.u([_.Y(),_.W("design:type",Object)],HE.prototype,"textBoxMaxLength",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HE.prototype,"dataChanged",null);
_.u([_.F("showTick","showErrorMessage","userInput"),_.W("design:type",String),_.W("design:paramtypes",[])],HE.prototype,"validationState",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],HE);
_.d(HE,"ytd-ypc-coupon-renderer",function(){if(kUi!==void 0)return kUi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return kUi=M},{mode:1});var cE=function(){return _.g.apply(this,arguments)||this};
_.w(cE,_.g);cE.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"}}}};
cE.prototype.computeStyle=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cE.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],cE.prototype,"buttonStyle",void 0);_.u([_.c({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],cE);
_.d(cE,"ytd-flow-bottom-bar-renderer",function(){if(Zol!==void 0)return Zol;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Zol=M},{mode:1});var Bcs;var Oov;var Tci;var dk=function(){return _.g.apply(this,arguments)||this};
_.w(dk,_.g);dk.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dk.prototype.focus=function(M){this.title&&_.Lo(this.title,M)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dk.prototype,"data",void 0);_.u([_.Qc("#title"),_.W("design:type",HTMLElement)],dk.prototype,"title",void 0);_.u([_.c({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],dk);
_.d(dk,"ytd-flow-top-bar-renderer",function(){if(Tci!==void 0)return Tci;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Tci=M},{mode:1});var IG5;var o_l;var XIt;var KJ=function(){return _.g.apply(this,arguments)||this};
_.w(KJ,_.g);KJ.prototype.freeTextValueChanged=function(){_.S9(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
KJ.prototype.updateFreeTextValueFromBinding=function(M){this.freeTextValue=M.detail.value};
_.rX.Object.defineProperties(KJ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(z=(M=this.data)==null?void 0:M.responseMaxLength)!=null?z:500,R;return((R=this.freeTextValue)!=null?R:"").length>=J?"maxed-out":""}}});
KJ.prototype.freeTextValueChanged=KJ.prototype.freeTextValueChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],KJ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],KJ.prototype,"freeTextValue",void 0);_.u([_.Qc("#user-input"),_.W("design:type",HTMLTextAreaElement)],KJ.prototype,"input",void 0);
_.u([_.F("freeTextValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],KJ.prototype,"characterLimitClass",null);_.u([_.la("freeTextValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KJ.prototype,"freeTextValueChanged",null);_.u([_.cU({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],KJ);
_.d(KJ,"yt-free-text-input-flow-step-renderer",function(){if(XIt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;o_l===void 0&&(o_l=document.createElement("template"));var R=o_l;J.call(z,R.content.cloneNode(!0),M.content.firstChild);XIt=M}M=XIt;return M},{mode:2});var $W=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return M};
_.w($W,_.g);$W.prototype.handleFreeTextFlowStepInputChanged=function(M){_.S9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],$W.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],$W.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$W.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],$W);
_.d($W,"ytd-free-text-input-flow-step-renderer",function(){if(IG5!==void 0)return IG5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return IG5=M},{mode:1});var lG5;var eXt;var QHl=function(){return _.g.apply(this,arguments)||this};
_.w(QHl,_.g);_.u([_.Y(),_.W("design:type",Object)],QHl.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],QHl);
_.d(QHl,"ytd-metadata-line-renderer",function(){if(eXt!==void 0)return eXt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return eXt=M},{mode:1});var uK=function(){return _.g.apply(this,arguments)||this};
_.w(uK,_.g);uK.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uK.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],uK.prototype,"isMasthead",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],uK);
_.d(uK,"ytd-media-product-renderer",function(){if(lG5!==void 0)return lG5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return lG5=M},{mode:1});var Uci;var q2=function(){return _.g.apply(this,arguments)||this};
_.w(q2,_.g);q2.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
q2.prototype.onBillboardImageLoaded=function(){_.Pv(this.hostElement,"yt-refit")};
q2.prototype.onBillboardImageLoaded=q2.prototype.onBillboardImageLoaded;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],q2.prototype,"data",void 0);_.u([_.Qc("#billboardImage"),_.W("design:type",Object)],q2.prototype,"billboardImage",void 0);_.u([_.Xw("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q2.prototype,"onBillboardImageLoaded",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],q2);
_.d(q2,"ytd-billboard-masthead-renderer",function(){if(Uci!==void 0)return Uci;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Uci=M},{mode:1});var v_s;var WE=function(){var M=_.g.apply(this,arguments)||this;M.smallSize=!1;return M};
_.w(WE,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],WE.prototype,"ytComponentBehaviorType",void 0);_.u([_.Y(),_.W("design:type",Object)],WE.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WE.prototype,"smallSize",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],WE);
_.d(WE,"ytd-bullet-formatted-string",function(){if(v_s!==void 0)return v_s;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return v_s=M},{mode:1});var GUs;var ad=function(){return _.g.apply(this,arguments)||this};
_.w(ad,_.g);ad.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ad.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],ad);
_.d(ad,"ytd-offer-detail-renderer",function(){if(GUs!==void 0)return GUs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return GUs=M},{mode:1});var wIs;var VN=function(){return _.g.apply(this,arguments)||this};
_.w(VN,_.g);VN.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],VN.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],VN);
_.d(VN,"ytd-offer-detail-step-renderer",function(){if(wIs!==void 0)return wIs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wIs=M},{mode:1});var xcc;var EJ=function(){var M=_.g.apply(this,arguments)||this;M.isInOfferModule=!1;return M};
_.w(EJ,_.g);_.P=EJ.prototype;_.P.computeHasEndpoint=function(){var M;return!((M=this.data)==null||!M.onClickCommand)};
_.P.dataChanged=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.P.detached=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.P.handleClickEvent=function(){var M;if((M=this.data)==null?0:M.onClickCommand){var z;this.componentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.P.onContentKeyDown=function(M){M.key==="Enter"?this.handleClickEvent(M):M.key===" "&&M.preventDefault()};
_.P.onContentKeyUp=function(M){M.key===" "&&this.handleClickEvent(M)};
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],EJ.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],EJ.prototype,"data",void 0);_.u([_.Y({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],EJ.prototype,"hasEndpoint",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],EJ.prototype,"isInOfferModule",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EJ.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],EJ);
_.d(EJ,"ytd-channel-masthead-renderer",function(){if(xcc!==void 0)return xcc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xcc=M},{mode:1});var tW5;var fJ=function(){var M=_.g.apply(this,arguments)||this;M.thumbnailObjectFit="CONTAIN";M.thumbnailObjectPosition="LEFT";M.isExpanded=!1;return M};
_.w(fJ,_.g);_.P=fJ.prototype;_.P.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.P.dataChanged=function(){this.resetStates()};
_.P.computeisTapOnOfferInfoContainerEnabled=function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.P.onExpandBtnClick=function(){var M,z=_.G((M=this.data)==null?void 0:M.showMoreButtonRenderer,Lod);z&&_.Ub(_.Gm(),z.trackingParams);this.isExpanded=!this.isExpanded};
_.P.onOfferInfoClick=function(M){this.isTapOnOfferInfoContainerEnabled&&(_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.r4(_.CX(M)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.P.onBottomBarClick=function(){this.executeTapCommand()};
_.P.executeTapCommand=function(){var M,z=(M=this.data)==null?void 0:M.tapCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.P.resetStates=function(){this.isExpanded=!1};
_.rX.Object.defineProperties(fJ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var M=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),z,J,R;return((z=this.data)==null?void 0:z.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&M&&!!((J=this.data)==null?0:(R=J.benefits)==null?0:R.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((z=_.G((M=this.data)==null?void 0:M.showMoreButtonRenderer,Lod))==null?void 0:z.showMoreButtonTitle)||((J=this.data)==null?void 0:J.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((z=_.G((M=this.data)==null?void 0:M.showMoreButtonRenderer,Lod))==null?void 0:z.showLessButtonTitle)||((J=this.data)==null?void 0:J.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var M;return(M=this.showLessButtonTitle)!=null?M:""}var z;return(z=this.showMoreButtonTitle)!=null?z:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((z=this.data)==null?0:z.footerTitle)||((J=this.data)==null?0:J.footerSubtitle))}}});
fJ.prototype.dataChanged=fJ.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],fJ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",String)],fJ.prototype,"thumbnailObjectFit",void 0);
_.u([_.Y(),_.W("design:type",String)],fJ.prototype,"thumbnailObjectPosition",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.W("design:type",Boolean)],fJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.u([_.Y(),_.W("design:type",Object)],fJ.prototype,"isExpanded",void 0);_.u([_.Y(),_.W("design:type",Object)],fJ.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.footerIcon)"}),_.W("design:type",String)],fJ.prototype,"icon",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fJ.prototype,"dataChanged",null);_.u([_.F("data.thumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fJ.prototype,"hasThumbnail",null);_.u([_.F("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fJ.prototype,"enableExpandButton",null);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fJ.prototype,"enableOfferContentIcon",null);_.u([_.F("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],fJ.prototype,"showMoreButtonTitle",null);_.u([_.F("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],fJ.prototype,"showLessButtonTitle",null);
_.u([_.F("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],fJ.prototype,"expandedBtnText",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fJ.prototype,"enableBottomBar",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],fJ);
_.d(fJ,"ytd-offer-card-renderer",function(){if(tW5!==void 0)return tW5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return tW5=M},{mode:1});var jHi;var LJ=function(){return _.g.apply(this,arguments)||this};
_.w(LJ,_.g);LJ.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"}}}};
LJ.prototype.onClick=function(M){if(!_.bP(M.composedPath()||[],this.hostElement,["A".toString()])){var z,J;if((M=(J=_.G((z=this.data)==null?void 0:z.actionButton,_.aR))==null?void 0:J.command)&&!this.ytComponentBehavior.resolveCommand(M)){var R;(R=_.Gm())==null||R.clickCommand(M);_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})}}};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],LJ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],LJ.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],LJ);
_.d(LJ,"ytd-offer-content-renderer",function(){if(jHi!==void 0)return jHi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return jHi=M},{mode:1});var pIG;var Aa=function(){return _.g.apply(this,arguments)||this};
_.w(Aa,_.g);Aa.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.rX.Object.defineProperties(Aa.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.title)||!((z=this.data)==null||!z.description)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Aa.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Aa.prototype,"hasHeaderData",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Aa);
_.d(Aa,"ytd-offer-section-renderer",function(){if(pIG!==void 0)return pIG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return pIG=M},{mode:1});var F2t;var iK=function(){return _.g.apply(this,arguments)||this};
_.w(iK,_.g);
iK.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iK.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],iK);
_.d(iK,"ytd-offer-selection-step-renderer",function(){if(F2t!==void 0)return F2t;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return F2t=M},{mode:1});var YyN;var CJ=function(){return _.g.apply(this,arguments)||this};
_.w(CJ,_.g);CJ.prototype.computeStyle=function(M){return M};
CJ.prototype.computeImageWidth=function(M){return M==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.u([_.Y({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],CJ.prototype,"containerStyle",void 0);_.u([_.Y({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.W("design:type",String)],CJ.prototype,"imageWidth",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],CJ.prototype,"data",void 0);
_.u([_.c({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],CJ);
_.d(CJ,"ytd-confirmation-masthead-renderer",function(){if(YyN!==void 0)return YyN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return YyN=M},{mode:1});var mcl;var bK=function(){return _.g.apply(this,arguments)||this};
_.w(bK,_.g);bK.prototype.computeStyle=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bK.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],bK.prototype,"containerStyle",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],bK);
_.d(bK,"ytd-purchase-complete-detail-renderer",function(){if(mcl!==void 0)return mcl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mcl=M},{mode:1});var g_l;var rk=function(){var M=_.g.apply(this,arguments)||this;M.scriptsAppended=!1;return M};
_.w(rk,_.g);rk.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"}}}};
rk.prototype.onDataChanged=function(){var M=this.get("data.gtmId");M&&(_.Ha(M,_.HW("GL","")),this.setupConversionTracking())};
rk.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("noscript");M.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(M);this.scriptsAppended=!0}};
rk.prototype.onDataChanged=rk.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rk.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],rk.prototype,"scriptsAppended",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rk.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],rk);
_.d(rk,"ytd-purchase-complete-step-renderer",function(){if(g_l!==void 0)return g_l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return g_l=M},{mode:1});var sHl;var MZ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(MZ,_.g);MZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],MZ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],MZ.prototype,"darkerDarkTheme",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],MZ);
_.d(MZ,"ytd-ypc-transaction-error-message-renderer",function(){if(sHl!==void 0)return sHl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return sHl=M},{mode:1});var n_u;var hX5;var zD=function(){var M=_.g.apply(this,arguments)||this;M.handlePhoneVerificationSuccess=function(z){if(M.isValidPhoneVerificationCompletionMessageEvent(z)){var J;((J=M.data)==null?0:J.nextStepCommand)&&M.ytComponentBehavior.resolveCommand(M.data.nextStepCommand)}};
return M};
_.w(zD,_.g);zD.prototype.isValidPhoneVerificationCompletionMessageEvent=function(M){if(M.data!=="yt-phone-verification-complete")return!1;M=_.Ch(M.origin);return M!==null&&M.includes("youtube.com")};
zD.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
zD.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],zD.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zD.prototype,"data",void 0);_.u([_.cU({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],zD);
_.d(zD,"yt-feature-enablement-soft-entry-renderer",function(){if(hX5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;n_u===void 0&&(n_u=document.createElement("template"));var R=n_u;J.call(z,R.content.cloneNode(!0),M.content.firstChild);hX5=M}M=hX5;return M},{mode:1});var yow;var Hod;var cot;var dcw;var K2m=function(){return _.g.apply(this,arguments)||this};
_.w(K2m,_.g);_.u([_.Y(),_.W("design:type",Object)],K2m.prototype,"data",void 0);_.u([_.cU({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],K2m);
_.d(K2m,"yt-benefits-item-renderer",function(){if(dcw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;cot===void 0&&(cot=document.createElement("template"));var R=cot;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dcw=M}M=dcw;return M},{mode:2});var $cw;var uJl;var J8=function(){return _.g.apply(this,arguments)||this};
_.w(J8,_.g);J8.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
J8.prototype.computeisWithoutPadding=function(){var M;return((M=this.data)==null?void 0:M.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],J8.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.W("design:type",Boolean)],J8.prototype,"isWithoutPadding",void 0);_.u([_.cU({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],J8);
_.d(J8,"yt-benefits-section-renderer",function(){if(uJl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;$cw===void 0&&($cw=document.createElement("template"));var R=$cw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);uJl=M}M=uJl;return M},{mode:2});var R7=function(){return _.g.apply(this,arguments)||this};
_.w(R7,_.g);R7.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
R7.prototype.computeisUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],R7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.W("design:type",Boolean)],R7.prototype,"isUsingLargeWidth",void 0);_.u([_.cU({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],R7);
_.d(R7,"yt-benefits-flow-step-renderer",function(){if(Hod===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;yow===void 0&&(yow=document.createElement("template"));var R=yow;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Hod=M}M=Hod;return M},{mode:2});var qyu;var W25;var Db=function(){return _.g.apply(this,arguments)||this};
_.w(Db,_.g);Db.prototype.checkIsUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.u([_.Y(),_.W("design:type",Object)],Db.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.W("design:type",Boolean)],Db.prototype,"isUsingLargeWidth",void 0);_.u([_.cU({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Db);
_.d(Db,"yt-confirmation-flow-step-renderer",function(){if(W25===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;qyu===void 0&&(qyu=document.createElement("template"));var R=qyu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);W25=M}M=W25;return M},{mode:2});var aGs;var VWw;var E_m=function(){return _.g.apply(this,arguments)||this};
_.w(E_m,_.g);_.u([_.Y(),_.W("design:type",Object)],E_m.prototype,"data",void 0);_.u([_.cU({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],E_m);
_.d(E_m,"yt-info-flow-step-renderer",function(){if(VWw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;aGs===void 0&&(aGs=document.createElement("template"));var R=aGs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);VWw=M}M=VWw;return M},{mode:2});var fGd;var L2w;var Aow=function(){return _.g.apply(this,arguments)||this};
_.w(Aow,_.g);_.u([_.Y(),_.W("design:type",Object)],Aow.prototype,"data",void 0);_.u([_.cU({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Aow);
_.d(Aow,"yt-info-list-flow-step-renderer",function(){if(L2w===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;fGd===void 0&&(fGd=document.createElement("template"));var R=fGd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);L2w=M}M=L2w;return M},{mode:2});var iow=_.Mf(function(M){var z=M.data;return _.T("styled-text-view-model",{class:_.Qe("ytStyledTextViewModelHost",function(){return k4G(z().fontAttributes)},function(){return Zhw(z().color)})},_.T(_.m3,{text:function(){return z().text},
ariaLabel:function(){var J,R,D;return(D=(J=z().accessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)!=null?D:""}}))},"uf");
iow.idomCompat=!0;var CDl=_.Mf(function(M){var z=function(){var D,N,Z,B;return(B=(Z=(D=M.alt)==null?void 0:D.call(M))!=null?Z:(N=M.data().accessibilityData)==null?void 0:N.label)!=null?B:""},J=function(){return M.data().imageWidth},R=function(){return M.data().imageHeight};
return _.T("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.T(_.I,{cond:function(){var D=M.data();if(D){var N,Z,B;var O=((N=_.JF().resolve(_.zw(_.Ah)))==null?0:N())?(Z=D.imageDark)!=null?Z:D.imageLight:(B=D.imageLight)!=null?B:D.imageDark}else O=void 0;return O},
then:function(D){return _.T(_.rv,Object.assign({},M,{data:D,alt:z,targetWidth:J,targetHeight:R,preserveHeight:!0,preserveWidth:!0}))}}))},"vf");
CDl.idomCompat=!0;var NZ=_.Mf(function(M){var z=M.data;M=_.ba(function(){return z().slots},[]);
var J=_.ba(function(){return z().layoutProperties},{}),R=_.JF().resolve(_.Ce);
return _.T("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:RLw(J,R)},_.T(_.G4,{each:M,keyBy:"INDEX"},function(D){return _.T("div",{class:"ytContainerLayoutViewModelSlot",style:RLw(function(){return D().layoutProperties},R)},_.T(_.t_,{data:function(){return D().contents}},{containerLayoutViewModel:NZ,
badgeViewModel:_.kY,buttonViewModel:_.lT,styledTextViewModel:iow,contentPreviewImageViewModel:function(N){return _.T(_.BC,{data:N.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(N){return _.T(CDl,{data:N.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"wf");
NZ.idomCompat=!0;var bol=_.Mf(function(M){var z=M.data;var J=M.stateFns;var R=function(){var X=z(),l=X.productId;return!(!X.clearGroupId&&!l)},D=function(){var X=z(),l=X.clearGroupId;
return(X=X.productId)?J().isProductSelected(X):l?J().getSelectedProductByGroupId(l)==null:!1},N=function(){var X=z(),l=X.clearGroupId;
if(X=X.productId)J().onProductSelected(X);else if(l)J().onClearGroupSelected(l)},Z=function(){var X=z(),l=X.clearGroupId;
if(X=X.productId){var e;return"group:"+(((e=J().getProductById(X))==null?void 0:e.groupId)||"")}return l?"group:"+l:""},B=_.ba(function(){return z().header},[]),O=_.ba(function(){return z().body},[]);
return _.T("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.T(_.I,{cond:function(){return B().length>0||R()},
then:function(){return _.T("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.T("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.T(_.t_,{data:B},{containerLayoutViewModel:function(X){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(NZ,{data:X.data}))},
styledTextViewModel:function(X){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(iow,{data:X.data}))}})),_.T(_.I,{cond:R,
then:function(){return _.T("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.T(_.$O,{checked:D,name:Z,onChange:N}))}}))}}),_.T(_.I,{cond:function(){return O().length>0},
then:function(){return _.T("div",null,_.T(_.t_,{data:O},{containerLayoutViewModel:function(X){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(NZ,{data:X.data}))}}))}}))},"xf");
bol.idomCompat=!0;var rol=_.Mf(function(M){var z=M.data;var J=M.stateFns;return _.T("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.T(_.I,{cond:function(){return z().banner},
then:function(R){return _.T("div",{class:"ytPdpCardViewModelBanner"},_.T(_.m3,{text:R}))}}),_.T(_.t_,{data:function(){return z().sections}},{pdpCardSectionViewModel:function(R){R=R.data;
var D={};return _.T("div",{class:_.Qe("ytPdpCardViewModelSectionContainer",(D.ytPdpCardViewModelShowDividers=function(){return z().showDividers},D))},_.T(bol,{data:R,
stateFns:J}))}}))},"yf");
rol.idomCompat=!0;var MIw=_.Mf(function(M){var z=M.data;var J=M.isOverlay;M={};return _.T("pdp-masthead-view-model",{class:_.Qe("ytPdpMastheadViewModelHost",(M.ytPdpMastheadViewModelIsOverlay=J,M))},_.T(_.t_,{data:function(){return z().image}},{contentPreviewImageViewModel:_.BC,
themedImageViewModel:function(R){return _.T(CDl,{data:R.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.T(_.I,{cond:function(){return z().title},
then:function(R){return _.T("h1",{class:"ytPdpMastheadViewModelHeading"},_.T(_.m3,{text:R,isOverlay:J}))}}),_.T(_.G4,{each:function(){var R;
return(R=z().finePrint)!=null?R:[]}},function(R){return _.T("div",{class:"ytPdpMastheadViewModelFinePrint"},_.T(_.m3,{text:R,
isOverlay:J}))}))},"zf");
MIw.idomCompat=!0;var zAG=_.Mf(function(M){var z=M.data;var J=M.stateFns;var R=function(){return"pdp-pricing-group-selector-"+z().pricingGroupAttributeIds},D=_.ba(function(){return z().pricingGroupSelectorSectionHeader});
return _.T("pdp-pricing-group-selector-view-model",null,_.T(_.I,{cond:function(){return!!D()},
then:function(){return _.T(_.t_,{data:D},{sectionHeaderViewModel:function(N){N=N.data;var Z={};return _.T("div",{class:_.Qe("ytPdpPricingGroupSelectorViewModelSectionHeader",(Z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Z))},_.T(_.lI,{data:N}))}})}}),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.T(_.G4,{each:function(){var N=J().getSelectedProductByGroupId(z().groupId);
if(!N)return _.hL(Error("Lj`"+z().groupId)),[];var Z,B=(Z=z().pricingGroupAttributeIds)!=null?Z:[],O;if((O=N.pricingGroups)==null||!O.length||!B.length)return[];Z=N.pricingGroups.filter(function(Q){return B.length?Q.pricingGroupAttributes.every(function(v){return B.includes(v)}):!1});
N=[];if(B.length>0){Z=[].concat(_.Yj(Z));O=_.S(B);for(var X=O.next(),l={};!X.done;l={targetAttrId:void 0},X=O.next())l.targetAttrId=X.value,X=Z.findIndex(function(Q){return function(v){return v.pricingGroupAttributes.includes(Q.targetAttrId)}}(l)),X!==-1&&(N.push(Z[X]),Z.splice(X,1))}var e=J().getSelectedPricingGroupAttributesByGroupId(z().groupId);
return N.map(function(Q){var v=!1;e&&Q.pricingGroupAttributes&&(v=F6(Q.pricingGroupAttributes,e));return{pricingGroup:Q,isSelected:v}})},
keyBy:function(N){return N.pricingGroup.pricingGroupId}},function(N){return _.T("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.T(_.t_,{data:function(){return N().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:NZ})),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.T(_.$O,{checked:function(){return N().isSelected},
name:R,onClick:function(){J().onPricingGroupSelected(N().pricingGroup.pricingGroupId)}})))})))},"Af");
zAG.idomCompat=!0;var JL5=_.Mf(function(M){var z=M.data;var J=M.stateFns;var R=function(){var Z=J().getSelectedPricingOptions().map(function(X){return X.pricingOptionId}),B=J().getSelectedProductByGroupId(z().groupId);
if(!B)return _.hL(Error("Mj`"+z().groupId)),[];var O=J().getSelectedPricingGroupAttributesByGroupId(z().groupId);return INd(B.pricingOptions,O,Z)},D=_.ba(function(){return z().pricingOptionSelectorSectionHeader}),N=function(){return R().length>1};
return _.T("pdp-pricing-option-selector-view-model",null,_.T(_.I,{cond:function(){return!!D()&&N()},
then:function(){return _.T(_.t_,{data:D},{sectionHeaderViewModel:function(Z){Z=Z.data;var B={};return _.T("div",{class:_.Qe("ytPdpPricingOptionSelectorViewModelSectionHeader",(B.ytPdpPricingOptionSelectorViewModelFullBleed=!0,B.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,B))},_.T(_.lI,{data:Z}))}})}}),_.T(_.I,{cond:N,
then:function(){return _.T("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.T(_.G4,{each:R,keyBy:"INDEX"},function(Z){return _.T("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.T(_.t_,{data:function(){return Z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:NZ})),_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.T(_.$O,{checked:function(){return Z().isSelected},
onClick:function(){J().onPricingOptionSelected(Z().pricingOption.pricingOptionId);var B=Z().pricingOption.onSelectPricingOption;if(B=_.$S(B)){var O;(O=_.JF().resolve(_.Rb))==null||O.resolveCommand(B)}}})))}))}}))},"Bf");
JL5.idomCompat=!0;var RAd=_.Mf(function(M){var z=M.data;var J=M.stateFns;return _.T("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.T(_.t_,{data:function(){var R,D;return(D=(R=J().getSelectedPricingOptions()[0])==null?void 0:R.primaryButton)!=null?D:z().emptyStateButton}},{buttonViewModel:_.lT}))},"Cf");
RAd.idomCompat=!0;var Dpc=_.Mf(function(M){var z=M.stateFns;return _.T("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.T(_.t_,{data:function(){return z().getSelectedPricingOptions().flatMap(function(J){return J.summaryLines}).filter(function(J){return!!J})}},{containerLayoutViewModel:function(J){return _.T("div",{class:"ytPdpSummaryViewModelLineItem"},_.T(NZ,{data:J.data}))}}))},"Df");
Dpc.idomCompat=!0;var NPG=_.Mf(function(M){function z(y){var H=Z();_.Cd(_.hk("pdpStateEntity",H,{key:H,selectedPricingOptions:y}))}
var J=M.data;var R=M.internalScrolling;var D=M.stateFnsForTesting;var N=_.ba(function(){return J().allProducts},[]),Z=_.ba(function(){return J().pdpStateEntityKey},""),B=_.U3(oyl,Z),O=_.o4(function(){_.YE(!0);
var y;return(y=D==null?void 0:D())!=null?y:lNw(B,N,z)},void 0,"pjJzrd"),X=_.ba(function(){return J().body},[]),l=_.ba(function(){return J().columnBreakHints},[]),e=function(){return J().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Q=function(){return e()||J().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},v=_.o4(function(){var y=_.Lf(J().background),H;
if(y==null?0:(H=y.sources)==null?0:H.length){var q=q===void 0?!0:q;y=_.vH8(void 0,y.sources,void 0,q,q?1E3:void 0,q?void 0:1E3)}else y=null;return y},void 0,"GO4GAe");
M=_.UN({"--pdp-view-model-background":function(){return v()?"url("+v()+")":void 0}});
var x={};R=_.Qe("ytPdpViewModelHost",(x.ytPdpViewModelHasBackground=function(){return Q()||!!v()},x.ytPdpViewModelHasDarkBackground=Q,x.ytPdpViewModelHasScrim=e,x.ytPdpViewModelInternalScrolling=_.ba(R,!1),x));
var m=function(y){var H={};return _.Qe("ytPdpViewModelItem",(H.ytPdpViewModelFullBleed=function(){return _.oJp(y())==="dividerViewModel"||_.oJp(y())==="sectionHeaderViewModel"},H.ytPdpViewModelNoVerticalPadding=function(){return _.oJp(y())==="sectionHeaderViewModel"},H))};
_.mF(function(){var y=J().onStartCommand;if(y&&(y=_.$S(y))){var H;(H=_.JF().resolve(_.Rb))==null||H.resolveCommand(y)}});
return _.T("pdp-view-model",{class:R,style:M},_.T("div",{class:"ytPdpViewModelColumnContainer"},_.T(_.G4,{each:function(){return eLl(X(),l())},
keyBy:"INDEX"},function(y){return _.T("div",{class:"ytPdpViewModelColumn"},_.T(_.t_,{data:y},{containerLayoutViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(NZ,{data:H}))},
dividerViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(_.GXa,{data:H}))},
pdpCardViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(rol,{data:H,
stateFns:O}))},
pdpMastheadViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(MIw,{data:H,
isOverlay:Q}))},
pdpPricingGroupSelectorViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(zAG,{data:H,
stateFns:O}))},
pdpPricingOptionSelectorViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(JL5,{data:H,
stateFns:O}))},
pdpPrimaryButtonViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(RAd,{data:H,
stateFns:O}))},
pdpSummaryViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(Dpc,{data:H,
stateFns:O}))},
sectionHeaderViewModel:function(H,q){H=H.data;return _.T("div",{class:m(function(){return y()[q()]})},_.T(_.lI,{data:H}))}}))})))},"Ef");
NPG.idomCompat=!0;_.N7(NPG,"pdp-view-model",{props:{data:_.zn,stateFnsForTesting:_.Dv,internalScrolling:_.Dv}});var PWs=_.Mf(function(M){var z=M.data;var J=M.className;var R=_.U3(_.rF,function(){return z().flowStateEntityKey});
return _.T("ytm-premium-purchase-button-renderer",{class:_.Qe("yt-premium-purchase-button-renderer",J)},_.T(_.t_,{data:function(){var D;return(D=_.G(R(),UHw))==null?void 0:D.primaryButtonOverride}},{buttonRenderer:function(D){return _.T(_.ML,{data:D.data,
className:J})},
buttonViewModel:function(D){return _.T(_.lT,{data:D.data,className:J})}}))},"Ff");
PWs.idomCompat=!0;var SBG=_.Mf(function(M){var z=M.data;M=M.className;var J=function(){return QXd(z().style)},R=_.Qe("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",J),D=_.Qe("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",J);
return _.T("yt-flow-bottom-bar-renderer",{class:_.Qe("yt-flow-bottom-bar-renderer",M,J)},_.T(_.t_,{data:function(){return z().secondaryButton}},{buttonRenderer:function(N){return _.T(_.ML,{data:N.data,
className:D})},
buttonViewModel:function(N){return _.T(_.lT,{data:N.data,className:D})},
premiumPurchaseButtonRenderer:function(N){return _.T(PWs,{data:N.data,className:D})}}),_.T(_.t_,{data:function(){return z().primaryButton}},{buttonRenderer:function(N){return _.T(_.ML,{data:N.data,
className:R})},
buttonViewModel:function(N){return _.T(_.lT,{data:N.data,className:R})},
premiumPurchaseButtonRenderer:function(N){return _.T(PWs,{data:N.data,className:R})}}))},"Gf");
SBG.idomCompat=!0;_.N7(SBG,"yt-flow-bottom-bar-renderer",{props:{data:_.zn,className:_.zn}});var Zcl=_.Mf(function(M){var z=_.Qe(M.className,"ytOfferSummaryRendererHost");return _.T("yt-offer-summary-renderer",{class:z},_.T("div",{class:"ytOfferSummaryRendererTextContainer"},_.T("div",{class:"ytOfferSummaryRendererEyebrowText"},_.T(_.m3,{text:function(){return M.data().eyebrowText}})),_.T("div",{class:"ytOfferSummaryRendererTitle"},_.T(_.m3,{text:function(){return M.data().title}})),_.T("div",{class:"ytOfferSummaryRendererSubtitle"},_.T(_.m3,{text:function(){return M.data().subtitle}})),
_.T("div",{class:"ytOfferSummaryRendererFeatureListData"},_.T(_.G4,{each:function(){var J;
return(J=M.data().featureListData)!=null?J:[]}},function(J){var R;
return _.T("div",{class:"ytOfferSummaryRendererFeatureList"},_.T(_.vS,{icon:(R=J.icon)==null?void 0:R.iconType,active:function(){return J.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(J.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.T("div",{class:"ytOfferSummaryRendererFeatureListText"},_.T(_.m3,{text:J.text,
className:function(){return J.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.T("div",{class:"ytOfferSummaryRendererDescription"},_.T(_.m3,{text:function(){return M.data().description}}))))},"Hf");_.N7(_.Mf(function(M){var z={};z=_.Qe("ytOfferSummaryFlowStepRendererHost",(z.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=M.shouldDisableHeaderTopMargin,z));return _.T("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:z},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.T(_.m3,{text:function(){return M.data().header}})),_.T("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.T(_.m3,{text:function(){return M.data().subtitle}}))),_.T("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.T(_.t_,{data:function(){return M.data().offerSummary}},{offerSummaryRenderer:function(J){return _.T(Zcl,{data:J.data,
className:M.flowClassName})}})))},"If"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Dv,
flowClassName:_.Dv,flowStateEntityKey:_.Dv,shouldDisableHeaderTopMargin:_.Dv}});var kF5=_.Mf(function(M){var z=M.data;var J=M.className;var R=M.flowStateEntityKey;var D=M.selectionStepStyle;M=_.ol(function(O){var X=z(),l=R==null?void 0:R();O.target&&(O.stopPropagation(),O=l||"",l=_.rF(_.ia().getState(),O),X=Object.assign({},l,{premiumPurchaseFlowState:{selectedOptionId:X.optionId,primaryButtonOverride:X.primaryButtonOverride}}),_.ia().dispatch(_.pf("flowStateEntity",O,X)));return!1});
var N=function(){return(R==null?void 0:R())||""},Z=_.U3(_.rF,N);
_.mF(function(){var O=z(),X=N(),l=Z();O.defaultSelected&&X!==""&&O.primaryButtonOverride&&vyw(O.optionId||"",X,O.primaryButtonOverride,l)});
var B={};return _.T("ytm-option-item-renderer",{"on:click":M,class:_.Qe(J,"ytm-option-item-renderer",(B["ytm-option-item-renderer--lp2-style"]=function(){return(D==null?void 0:D())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},B))},_.T("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.T("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var O=z(),X=N(),l=Z();l=_.G(l,UHw);return(l?(l==null?void 0:l.selectedOptionId)||"":O.defaultSelected&&X!==""?(O==null?void 0:O.optionId)||"":"")===z().optionId},
name:("input"+_.dq(_.HB)).toString()})),_.T("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.T(_.t_,{data:function(){return z().titleBadge}},{badgeViewModel:function(O){return _.T(_.kY,{data:O.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.T(_.I,{cond:function(){return z().eyebrowText},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.T(_.m3,{text:function(){return z().eyebrowText}}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-title"},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.T(_.m3,{text:function(){return z().subtitle}})),_.T(_.I,{cond:function(){return z().featureListData},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__feature-list-data"},_.T(_.G4,{each:function(){return z().featureListData||[]}},function(O){var X,l=(X=O.icon)==null?void 0:X.iconType;
a:switch(O.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 _.T("div",{class:"ytm-option-item-renderer__feature-list"},_.T(_.vS,{icon:l,className:X,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.T("div",{class:"ytm-option-item-renderer__feature-list-text"},_.T(_.m3,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-description"},_.T(_.m3,{text:function(){return z().description}}))))},"Jf");var BPd=_.Mf(function(M){var z=M.data;var J=M.flowClassName;var R=M.flowStateEntityKey;var D=M.selectionStepStyle;return _.T("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.T("div",{class:"yt-option-section-renderer__option-section-header-section"},_.T("div",{class:"yt-option-section-renderer__option-section-header"},_.T(_.m3,{text:function(){return z().title}}),_.T(_.t_,{data:function(){return z().titleBadge}},{badgeViewModel:function(N){return _.T(_.kY,
{data:N.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.T(_.I,{cond:function(){return z().subtitle},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.T(_.m3,{text:function(){return z().subtitle}}))}}),_.T(_.I,{cond:function(){return z().featureListData},
then:function(N){return _.T("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.T(_.G4,{each:N},function(Z){var B;return _.T("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.T(_.vS,{icon:(B=Z.icon)==null?void 0:B.iconType,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.T("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.T(_.m3,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.T(_.I,{cond:function(){return z().secondaryTitle},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.T(_.m3,{text:function(){return z().secondaryTitle}}))}}),_.T(_.G4,{each:function(){return z().sectionDisclaimers||[]}},function(N){return _.T("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.T(_.m3,{text:N}))})),_.T(_.t_,{data:function(){return z().optionItems}},{optionItemRenderer:function(N){return _.T("div",{class:"yt-option-section-renderer__option-item"},_.T(kF5,{data:N.data,
className:J,flowStateEntityKey:R,selectionStepStyle:D}))}}),_.T(_.I,{cond:function(){return z().offerText},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.T(_.m3,{text:function(){return z().offerText}}))}}))},"Kf");
BPd.idomCompat=!0;var Occ=_.Mf(function(M){var z=M.data;var J=M.flowClassName;var R=M.flowStateEntityKey;M=M.isDesktop;var D=function(){var X;return(X=z().flowStateEntityKey)!=null?X:R==null?void 0:R()},N=function(){return(D==null?void 0:D())||""},Z=function(){return z().style},B=_.U3(_.rF,N);
_.mF(function(){var X=z(),l=N(),e=B();!_.G(e,UHw)&&X.noPreselect&&l!==""&&X.defaultButtonOverride&&vyw("default",l,X.defaultButtonOverride,e)});
var O={};return _.T("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Qe("ytm-option-selection-flow-step-renderer",(O["ytm-option-selection-flow-step-renderer--desktop"]=M,O["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return z().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.T(_.m3,{text:function(){return z().header}})),_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.T(_.m3,{text:function(){return z().subtitle}}))),_.T(_.t_,{data:function(){return z().optionItems||[]}},{optionItemRenderer:function(X){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(kF5,{data:X.data,
className:J,flowStateEntityKey:D,selectionStepStyle:Z}))},
optionSectionRenderer:function(X){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(BPd,{data:X.data,flowClassName:J,flowStateEntityKey:D,selectionStepStyle:Z}))}}))},"Lf");
Occ.idomCompat=!0;_.N7(Occ,"yt-option-selection-flow-step-renderer",{props:{data:_.zn,flowClassName:_.zn,flowStateEntityKey:_.zn,isDesktop:_.zn}});var G4d,wWu;_.PD=_.Mf(function(M){var z=_.rH(M,{type:1,disablePadding:!1,disablePrimaryButton:!1}),J=z.data,R=z.type;M=z.disablePadding;var D=z.disablePrimaryButton,N=z.onClickPrimaryButton,Z=function(){return J().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},B=function(){return{disabled:D(),
state:D()?"disabled":"active"}},O=function(){return J().leadingLabel||J().trailingLabel};
z={};return _.T("yt-panel-footer-view-model",{class:_.Qe("yt-panel-footer-view-model-wiz",(z["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return J().shouldHideDivider},z["yt-panel-footer-view-model-wiz--disable-padding"]=M,z))},_.T(_.I,{cond:O,
then:function(){var X={},l={};return _.T("div",{class:_.Qe("yt-panel-footer-view-model-wiz__text-row",(X["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var e=J();return!(!e.leadingLabel&&!e.trailingLabel||!e.primaryButton&&!e.secondaryButton)},X))},_.T(_.m3,{text:function(){return J().leadingLabel},
className:_.Qe((l["yt-panel-footer-view-model-wiz--text-padding"]=O,l))}),_.T(_.m3,{text:function(){return J().trailingLabel}}))}}),_.T(_.I,{cond:Z,
then:function(){var X={};return _.T("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.T("div",{class:_.Qe("yt-panel-footer-view-model-wiz__primary-button",(X["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return J().secondaryButton},X))},_.T(_.t_,{data:function(){return J().primaryButton}},{buttonViewModel:function(l){return _.T(_.lT,{data:l.data,
buttonOverrides:B,onClick:N})}})),_.T(_.t_,{data:function(){return J().secondaryButton}},{buttonViewModel:_.lT}))}}),_.T(_.I,{cond:function(){return!Z()},
then:function(){var X={},l={},e={};return _.T("div",{class:_.Qe("yt-panel-footer-view-model-wiz__button-row",(X["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===R()},X))},_.T("div",{class:_.Qe("yt-panel-footer-view-model-wiz__button-row--left-button",(l["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===R()},l["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!J().secondaryButton||0===R()},l["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===R()},l))},_.T(_.t_,{data:function(){return J().secondaryButton}},{buttonViewModel:_.lT})),_.T("div",{class:_.Qe("yt-panel-footer-view-model-wiz__primary-button",(e["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===R()||1===R()},e["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===R()},e))},_.T(_.t_,{data:function(){return J().primaryButton}},{buttonViewModel:function(Q){return _.T(_.lT,{data:Q.data,
buttonOverrides:B,onClick:N})}})))}}))},"Mf");
_.PD.idomCompat=!0;_.TPm=_.Mf(function(M){M=_.rH(M,{disablePadding:!1});var z=M.data,J=M.disablePadding;M=_.pWw(function(){return z().formId});
var R=M.onSubmit,D=M.isValid,N=M.isSubmitting;return _.T("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.T(_.t_,{data:function(){return z().panelFooter}},{panelFooterViewModel:function(Z){return _.T(_.PD,{data:Z.data,
onClickPrimaryButton:function(){R()},
disablePrimaryButton:function(){return!D()||N()},
disablePadding:J})}}))},"Nf");_.N7(_.TPm,"yt-form-footer-view-model",{props:{data:_.zn,disablePadding:_.zn}});_.N7(_.Mf(function(M){var z=_.U("enable_user_rating_web");return _.T("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.T(_.I,{cond:function(){var J;return(J=M.data())==null?void 0:J.image},
then:function(J){return _.T(_.rv,{data:J,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.T(_.m3,{text:function(){var J;
return(J=M.data())==null?void 0:J.title}})),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.T(_.m3,{text:function(){var J;
return(J=M.data())==null?void 0:J.subtitle}})),_.T(_.I,{cond:function(){return!z},
then:function(){return _.T(_.t_,{data:function(){var J;return(J=M.data())==null?void 0:J.viewTipsButton}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Of"),"yt-contributor-zero-state-view-model",{props:{data:_.zn}});var Ihd=_.Mf(function(M){var z=function(){var J;return(J=M.data())==null?void 0:J.image};
return _.T("yt-featured-content-item-view-model",{class:_.Qe("ytFeaturedContentItemViewModelHost")},_.T("div",{class:_.Qe(function(){return z()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.T("div",{class:function(){return z()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.T(_.I,{cond:z,
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelImage"},_.T(_.t_,{data:function(){return M.data().image}},{themedImageViewModel:function(J){return _.T(CDl,{data:J.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.T(_.I,{cond:function(){var J;
return!z()&&((J=M.data())==null?void 0:J.iconName)},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelIcon"},_.T(_.vS,{icon:function(){return M.data().iconName}}))}}),_.T("div",{class:"ytFeaturedContentItemViewModelContent"},_.T(_.I,{cond:function(){var J;
return(J=M.data())==null?void 0:J.title},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.T(_.m3,{text:function(){return M.data().title}}))}}),_.T(_.I,{cond:function(){var J;
return(J=M.data())==null?void 0:J.body},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.T(_.m3,{text:function(){return M.data().body}}))}})))))},"Pf");var o4d=_.Mf(function(M){var z=function(){var D;return FFN((D=M.data())==null?void 0:D.titleFontSize)},J=function(){var D;
return YR5((D=M.data())==null?void 0:D.descriptionFontSize)},R=function(){var D;
return((D=M.data())==null?void 0:D.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.T("yt-landing-page-view-model",{class:_.Qe("ytLandingPageViewModelHost",M.className)},_.T("div",{class:"ytLandingPageViewModelHeader"},_.T(_.I,{cond:function(){var D;return(D=M.data())==null?void 0:D.bannerImage},
then:function(D){return _.T("div",{class:"ytLandingPageViewModelHeaderImage"},_.T(_.t_,{data:function(){return D()}},{imageBannerViewModel:function(N){return _.T(_.VI,{data:N.data,
isPositionRelative:!0})}}))}}),_.T(_.I,{cond:function(){var D;
return(D=M.data())==null?void 0:D.bannerAnimation},
then:function(D){return _.T(_.xK,{data:function(){var N=D();if(N==null?0:N.url){var Z;N={path:(Z=N==null?void 0:N.url)!=null?Z:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(N==null?0:N.payload){var B;N={animationData:JSON.parse((B=N==null?void 0:N.payload)!=null?B:""),autoplay:!0,loop:!0,renderer:"svg"}}else N=void 0;return{animationConfig:N}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.T("div",{class:"ytLandingPageViewModelHeaderTitle"},_.T(_.I,{cond:function(){var D;
return(D=M.data())==null?void 0:D.title},
then:function(D){return _.T("div",{class:_.Qe("ytLandingPageViewModelHeaderTitleContent",z)},_.T(_.m3,{text:function(){return D()}}))}}),_.T(_.I,{cond:function(){var D;
return(D=M.data())==null?void 0:D.description},
then:function(D){var N={};return _.T(_.m3,{className:_.Qe("ytLandingPageViewModelHeaderTitleDescription",J,(N.ytLandingPageViewModelHeaderTitleDescriptionMargin=R,N)),text:function(){return D()}})}}))),_.T(_.I,{cond:function(){var D,N;
return(D=M.data())==null?void 0:(N=D.featuredContentList)==null?void 0:N.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.T(_.t_,{data:function(){return M.data().featuredContentList}},{featuredContentItemViewModel:function(D){return _.T(Ihd,{data:D.data})}}))}}),_.T(_.I,{cond:function(){var D,N;
return(D=M.data())==null?void 0:(N=D.expandableContentList)==null?void 0:N.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFaqSection"},_.T(_.t_,{data:function(){return M.data().expandableContentList}},{faqEntryViewModel:function(D){return _.T("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.T(_.DWt,{data:D.data}))}}))}}),_.T("div",{class:"ytLandingPageViewModelFooter"},_.T(_.I,{cond:function(){var D;
return(D=M.data())==null?void 0:D.legalCopy},
then:function(D){return _.T("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.T(_.m3,{text:function(){return D()}}))}}),_.T(_.I,{cond:function(){var D;
return(D=M.data())==null?void 0:D.actions},
then:function(D){return _.T("div",null,_.T(_.t_,{data:function(){return D()}},{flexibleActionsViewModel:function(N){return _.T(_.Kx,{data:N.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Qf");_.N7(_.Mf(function(M){return _.T("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.T("div",{class:"ytLpSectionGroupViewModelContainer"},_.T(_.t_,{data:function(){return M.data().sections}},{landingPageViewModel:function(z){return _.T(o4d,{data:z.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Rf"),"yt-lp-section-group-view-model",{props:{data:_.zn}});var Xbl=_.Mf(function(M){var z=_.U3(mHs,_.ba(function(){var B;return(B=M.data())==null?void 0:B.noteFeedEntityKey},"")),J=_.U3(u8c,_.ba(function(){var B;
return(B=M.data())==null?void 0:B.userRatingEntityKey},"")),R=_.U("enable_user_rating_web"),D=function(){var B,O,X;
return((B=z())==null?0:B.contributorNote)?(O=z())==null?void 0:O.contributorNote:(X=M.data())==null?void 0:X.existingNote},N=function(){var B,O;
return!!J()&&!!gys((B=J())==null?void 0:B.helpfulnessValue,(O=M.data())==null?void 0:O.noteData)};
if(R){var Z={};return _.T("yt-note-view-model",{class:_.Qe("ytNoteViewModelHostUserRating",(Z.ytNoteViewModelHostUserRatingPublishedNote=function(){var B,O;return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.isPublished},Z))},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.I,{cond:function(){var B,O;
return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.isPinned},
then:function(){return _.T(_.vS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.T(_.I,{cond:function(){var B,O;return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.isPublished},
then:function(){return _.T(_.vS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.T(_.t_,{data:function(){var B;
return(B=M.data())==null?void 0:B.metadata}},{contentMetadataViewModel:_.Oz}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var B,O;
return(O=_.G((B=M.data())==null?void 0:B.metadata,_.g9S))==null?void 0:O.delimiter}),_.T(_.m3,{text:function(){var B;
return(B=D())==null?void 0:B.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.T(_.t_,{data:function(){var B,O,X,l,e,Q,v,x=!!((B=M.data())==null?0:(O=B.noteData)==null?0:O.isPinned);B=N();O=(X=M.data())==null?void 0:X.noteData;X=(l=z())==null?void 0:(e=l.contributorNote)==null?void 0:e.deleteAction;l=(Q=M.data())==null?void 0:Q.overflowButtonNoteWithRatingOnTapOverride;Q=(v=M.data())==null?void 0:v.overflowButton;return x?sX5(O,X):B?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:l}}:Q}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.m3,{text:function(){var B;
return(B=D())==null?void 0:B.text}})),_.T(_.I,{cond:function(){var B,O;
return!((B=M.data())==null?0:(O=B.noteData)==null?0:O.isPinned)},
then:function(){return _.T(_.I,{cond:N,then:function(){return _.T("div",{class:"ytNoteViewModelUserRatingContainer"},_.T(_.m3,{text:function(){var B,O;return gys((B=J())==null?void 0:B.helpfulnessValue,(O=M.data())==null?void 0:O.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.T(_.t_,{data:function(){var B;return(B=M.data())==null?void 0:B.userRatingButton}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.T(_.I,{cond:function(){var B,O;
return!((B=M.data())==null?0:(O=B.noteData)==null?0:O.ignoreDivider)},
then:function(){return _.T("div",{class:"ytNoteViewModelDivider"},_.T(_.t_,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(B){return _.T(_.GXa,{data:B.data})}}))}}))}return _.T("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.I,{cond:function(){var B,O;return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.isPinned},
then:function(){return _.T(_.vS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.T(_.I,{cond:function(){var B,O;return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.isPublished},
then:function(){return _.T(_.vS,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.T(_.I,{cond:function(){return R},
then:function(){return _.T(_.t_,{data:function(){var B;return(B=M.data())==null?void 0:B.metadata}},{contentMetadataViewModel:function(B){return _.T(_.Oz,{data:B.data})}})}}),_.T(_.m3,{text:function(){var B,O;
return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.headerText}}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.T(_.m3,{text:function(){var B,O;
return(B=M.data())==null?void 0:(O=B.noteData)==null?void 0:O.delimiter}})),_.T(_.m3,{text:function(){var B,O;
return(B=z())==null?void 0:(O=B.contributorNote)==null?void 0:O.publishedTimeText}})),_.T(_.t_,{data:function(){var B,O,X;
return sX5((B=M.data())==null?void 0:B.noteData,(O=z())==null?void 0:(X=O.contributorNote)==null?void 0:X.deleteAction)}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.m3,{text:function(){var B,O;
return(B=z())==null?void 0:(O=B.contributorNote)==null?void 0:O.text}})))},"Sf");
Xbl.idomCompat=!0;_.N7(Xbl,"yt-note-view-model",{props:{data:_.zn}});var Sy=_.Mf(function(M){var z=_.rH(M,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),J=z.label,R=z.text,D=z.placeholder,N=z.hint;M=z.rows;var Z=z.overflowStyle,B=z.outline,O=z.disabled,X=z.disableNewLines,l=z.characterLimit,e=z.validation,Q=z.onInput,v=_.AL("textarea");z=_.S(_.eh(function(){return R()}));
var x=z.next().value,m=z.next().value;z=_.S(_.kE(!1,void 0,"fXvinf"));var y=z.next().value,H=z.next().value,q=function(){H(!0)},b=function(){H(!1)};
_.mF(function(){var qb=v.value,cY=Z(),Pu=x();cY==="expand-vertically"&&Pu&&ny5(qb);v.value.addEventListener("focusin",q);v.value.addEventListener("focusout",b)});
_.pq(function(){v.value.removeEventListener("focusin",q);v.value.removeEventListener("focusout",b)});
var V=function(){var qb;return(qb=e())==null?void 0:qb.validate(x())},E=function(){return l()&&!V()&&x().length>l().maxChars},L=function(){return!!V()||E()};
z=_.ol(function(qb){if(!qb.currentTarget)return!1;qb=qb.currentTarget;m(qb.value);Z()==="expand-vertically"&&ny5(qb);Q==null||Q(qb.value);return!0});
var z8=_.ol(function(qb){X()&&qb.key==="Enter"&&qb.preventDefault();return!1}),O8=_.ol(function(){v.value.focus()}),I3=function(){return D()||J()},vY={},te={},wR={};
return _.T("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.T("div",{class:_.Qe("ytStandardsTextareaShapeTextareaContainer",(vY.ytStandardsTextareaShapeTextareaContainerOutline=B,vY.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=O,vY.ytStandardsTextareaShapeTextareaContainerOutlineError=L,vY)),"on:click":O8},_.T("label",{class:_.Qe("ytStandardsTextareaShapeLabel",(te.ytStandardsTextareaShapeLabelFocused=y,te.ytStandardsTextareaShapeLabelDisabled=O,te.ytStandardsTextareaShapeLabelError=
function(){return L()&&!O()},te.ytStandardsTextareaShapeLabelHidden=function(){return!y()&&!x()&&!!I3()},te))},J),_.T("div",{class:_.Qe("ytStandardsTextareaShapePlaceholder",(wR.ytStandardsTextareaShapePlaceholderVisible=function(){return!y()&&!x()},wR)),
"aria-hidden":"true"},I3),_.T("textarea",{el:v,class:"ytStandardsTextareaShapeTextarea",rows:M,disabled:O,placeholder:I3,"on:input":z,"on:keydown":z8},x)),_.T(_.I,{cond:function(){return N()&&!L()},
then:function(){var qb={};return _.T("div",{class:_.Qe("ytStandardsTextareaShapeHint",(qb.ytStandardsTextareaShapeHintDisabled=O,qb))},_.T("div",{class:"ytStandardsTextareaShapeHintHintMessage"},N))}}),_.T(_.I,{cond:V,
then:function(){return _.T(lhl,{disabled:O},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.T(_.I,{cond:l,
then:function(qb){return _.T(_.I,{cond:E,then:function(){return _.T(lhl,{disabled:O},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return qb().errorMessage}),_.T("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return x().length+"/"+qb().maxChars}))}})}}))},"Tf");
Sy.idomCompat={callbacks:{onInput:!0}};var lhl=_.Mf(function(M){var z={};return _.T("div",{class:_.Qe("ytStandardsTextareaShapeError",(z.ytStandardsTextareaShapeErrorDisabled=M.disabled,z)),role:"alert"},_.T(_.vS,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),M.children)},"Uf");_.eAt=_.Mf(function(M){var z=M.data;return _.T("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.T(Sy,{text:M.text,label:function(){var J;return(J=z().contentProperties)==null?void 0:J.labelText},
placeholder:function(){var J;return(J=z().contentProperties)==null?void 0:J.placeholderText},
hint:function(){var J;return(J=z().contentProperties)==null?void 0:J.hintText},
outline:function(){var J;return!((J=z().displayProperties)==null?0:J.hideBorder)},
overflowStyle:function(){var J;return((J=z().displayProperties)==null?0:J.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:M.disabled,disableNewLines:function(){var J;return(J=z().displayProperties)==null?void 0:J.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var J;return(J=z().displayProperties)==null?void 0:J.rows}}))},"Vf");_.Qfs=_.Mf(function(M){var z=M.data;return _.T("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.T(Sy,{text:M.text,label:function(){var J;return(J=z().contentProperties)==null?void 0:J.labelText},
placeholder:function(){var J;return(J=z().contentProperties)==null?void 0:J.placeholderText},
hint:function(){var J;return(J=z().contentProperties)==null?void 0:J.hintText},
outline:function(){var J;return!((J=z().displayProperties)==null?0:J.hideBorder)},
overflowStyle:function(){var J;return((J=z().displayProperties)==null?0:J.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var J;return(J=z().displayProperties)==null?void 0:J.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var J;return(J=z().displayProperties)==null?void 0:J.rows}}))},"Wf");var Upt=_.Mf(function(M){var z=_.S(_.eh(function(){var I3,vY;return((I3=M.data().structuredContextNoteFormSchema)==null?0:(vY=I3.initialValues)==null?0:vY.noteBody)?M.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),J=z.next().value,R=z.next().value;
z=_.S(_.eh(function(){M.data();return!1}));
var D=z.next().value,N=z.next().value;z=_.S(_.eh(function(){M.data();return!1}));
var Z=z.next().value,B=z.next().value;z=_.S(_.eh(function(){var I3,vY;return((I3=M.data().structuredContextNoteFormSchema)==null?0:(vY=I3.initialValues)==null?0:vY.timestamp)?M.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var O=z.next().value,X=z.next().value;z=_.S(_.eh(function(){M.data();return!1}));
var l=z.next().value,e=z.next().value;z=_.S(_.eh(function(){var I3,vY;return((I3=M.data().structuredContextNoteFormSchema)==null?0:(vY=I3.initialValues)==null?0:vY.sources)?[M.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Q=z.next().value,v=z.next().value;z=_.S(_.eh(function(){M.data();return!1}));
var x=z.next().value,m=z.next().value;z=_.S(_.eh(function(){return!1}));
var y=z.next().value,H=z.next().value;_.mF(function(){var I3;_.jXv((I3=M.data().structuredContextNoteFormSchema)==null?void 0:I3.id,{isSubmitting:y,onSubmit:function(){H(!0);var vY=qRl(J(),O(),Q(),M.data()),te=_.JF().resolve(_.Rb);vY&&te&&te.resolveCommand(vY,{commandController:{onSuccess:function(){H(!1)}}})},
isValid:function(){return D()&&!Z()&&!l()&&!x()}})});
var q=function(I3){if(I3!==void 0&&(R(I3),!D()&&I3.length>0&&N(!0),D())){var vY=Hh5(M.data());if(vY){var te=vY.minLength;vY=vY.maxLength;te&&I3.length<te?B(!0):vY&&I3.length>vY?B(!0):B(!1)}}},b=function(I3){if(I3!==void 0){X(I3);
if(I3.length>0){var vY,te,wR,qb,cY=dHu((vY=M.data())==null?void 0:(te=vY.structuredContextNoteFormSchema)==null?void 0:(wR=te.fieldSchemas)==null?void 0:(qb=wR.timestamp)==null?void 0:qb.validationSchema);if(cY&&(vY=cY.regex)&&!(new RegExp(vY)).test(I3)){e(!0);return}}e(!1)}},V=function(I3){if(I3!==void 0){var vY=I3.split(/[ \n]/).map(function(te){return te.trim()});
v(vY);if(I3.length>0)for(I3=_.S(vY),vY=I3.next();!vY.done;vY=I3.next())if(!uTi(vY.value)){m(!0);return}m(!1)}},E=function(){return{validate:function(I3){if(D()){var vY=Hh5(M.data());
if(vY){var te=vY.minLength;vY=vY.translations;if(te&&I3.length<te)return vY==null?void 0:vY.minLengthErrorMessage}}}}},L=function(){var I3=Hh5(M.data()),vY=I3==null?void 0:I3.maxLength,te;
I3=I3==null?void 0:(te=I3.translations)==null?void 0:te.maxLengthErrorMessage;if(vY&&I3)return{maxChars:vY,errorMessage:I3}},z8=function(){return{validate:function(I3){if(I3){var vY,te,wR,qb,cY=dHu((vY=M.data())==null?void 0:(te=vY.structuredContextNoteFormSchema)==null?void 0:(wR=te.fieldSchemas)==null?void 0:(qb=wR.timestamp)==null?void 0:qb.validationSchema);
if(cY&&(vY=cY.regex,cY=cY.translations,vY&&!(new RegExp(vY)).test(I3)))return cY==null?void 0:cY.regexErrorMessage}}}},O8=function(){return{validate:function(I3){if(I3){var vY,te,wR,qb,cY=$Hw((vY=M.data())==null?void 0:(te=vY.structuredContextNoteFormSchema)==null?void 0:(wR=te.fieldSchemas)==null?void 0:(qb=wR.sources)==null?void 0:qb.validationSchema);
if(cY&&(vY=cY.translations,vY==null?0:vY.selectedErrorMessage))for(I3=I3.split(/[ \n]/).map(function(Pu){return Pu.trim()}),I3=_.S(I3),te=I3.next();!te.done;te=I3.next())if(!uTi(te.value))return I3=void 0,(I3=vY)==null?void 0:I3.selectedErrorMessage}}}};
return _.T("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.t_,{data:function(){var I3;return(I3=M.data())==null?void 0:I3.noteContents}},{textFormFieldViewModel:function(I3){return _.T(_.Qfs,{data:I3.data,
onInput:q,validation:E,characterLimit:L})},
textFieldViewModel:function(I3){return _.T(_.eAt,{data:I3.data,onInput:q,validation:E,characterLimit:L})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.t_,{data:function(){var I3;
return(I3=M.data())==null?void 0:I3.noteTimestamp}},{textFormFieldViewModel:function(I3){return _.T(_.Qfs,{data:I3.data,
onInput:b,validation:z8})},
textFieldViewModel:function(I3){return _.T(_.eAt,{data:I3.data,onInput:b,validation:z8})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.t_,{data:function(){var I3;
return(I3=M.data())==null?void 0:I3.noteSources}},{textFormFieldViewModel:function(I3){return _.T(_.Qfs,{data:I3.data,
onInput:V,validation:O8})},
textFieldViewModel:function(I3){return _.T(_.eAt,{data:I3.data,onInput:V,validation:O8})}})))},"Xf");
Upt.idomCompat=!0;_.N7(Upt,"yt-structured-context-note-view-model",{props:{data:_.zn}});var v4w=_.Mf(function(M){var z=_.S(_.eh(function(){var N;if((N=M.controlled)==null?0:N.call(M))return[];var Z;return(((Z=M.data())==null?void 0:Z.chips)||[]).map(function(B){B=_.G(B,_.LM);if(B==null?0:B.selected)return WFd(B.chipValue)}).filter(function(B){return B!==void 0})})),J=z.next().value,R=z.next().value,D=function(N){var Z=WFd(N.chipValue);
if(Z!==void 0){var B;if((B=M.controlled)==null?0:B.call(M))return void M.controlled().onTap(Z);N=J().includes(Z)?[].concat(_.Yj(J().filter(function(X){return X!==Z}))):[].concat(_.Yj(J()),[Z]);
R(N);var O;if((O=M.uncontrolled)==null?0:O.call(M))M.uncontrolled().onUpdate(N)}};
return _.T("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.T(_.G4,{each:function(){return M.data().chips||[]}},function(N){return _.T("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.T(_.UWQ,{data:function(){return _.G(N,_.LM)},
selected:function(){var Z;if(Z=_.G(N,_.LM)){var B=WFd(Z.chipValue);if(B!==void 0){var O;Z=((O=M.controlled)==null?0:O.call(M))?M.controlled().selectedValues.includes(B):J().includes(B)}else Z=void 0}else Z=!1;return Z},
callback:D}))}))},"Yf");var GFv=_.Mf(function(M){var z=M.data;var J=function(){var B;return((B=z())==null?void 0:B.flowStateKey)||""},R=_.U3(_.rF,J),D=function(){var B;
return(B=_.G(R(),yFt))==null?void 0:B.chips},N=function(B){if(B!==void 0){var O=D()||[];
O=O.find(function(X){return X===B})?O.filter(function(X){return X!==B}):[].concat(_.Yj(O),[B]);
O=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.G(R(),yFt),{chips:O})});_.Cd(_.pf("flowStateEntity",J(),O))}},Z=function(){var B;
return _.G((B=z())==null?void 0:B.inputBox,HKi)};
M=_.j6(function(B){var O=Z();O=!(O==null?0:O.maxChars)||B.length<=O.maxChars;B=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.G(R(),yFt),{detail:B}),abuseReportFlowState:Object.assign({},_.G(R(),gk),{navigationEnabled:O})});_.Cd(_.pf("flowStateEntity",J(),B))},150);
return _.T("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.T("div",{class:"ytFeedbackFormViewModelChips"},_.T(_.t_,{data:function(){var B;return(B=z())==null?void 0:B.chipSelection}},{chipSelectionFormFieldViewModel:function(B){return _.T(v4w,{data:B.data,
controlled:function(){return{selectedValues:D()||[],onTap:N}}})}})),_.T("div",{class:"ytFeedbackFormViewModelInputBox"},_.T(Sy,{text:function(){var B;
return(B=_.G(R(),yFt))==null?void 0:B.detail},
placeholder:function(){var B;return((B=Z())==null?void 0:B.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var B=Z();if(B&&B.maxChars)return{maxChars:B.maxChars,errorMessage:B.maxCharsExceededErrorMessage||""}},
onInput:M})),_.T("div",{class:"ytFeedbackFormViewModelFooterText"},_.T(_.m3,{text:function(){return z().footerText}})))},"Zf");
GFv.idomCompat=!0;_.N7(GFv,"yt-feedback-form-view-model",{props:{data:_.zn}});var wbd=_.Mf(function(M){var z=M.data;var J=function(){return z().flowStateKey||""},R=_.U3($al,J),D=function(){return _.G(R(),gk)},N=function(){if(_.U("enable_gff_accessibility_fix")){var Z=!0,B;
if((B=D())==null?0:B.navigationEnabled){var O;_.aE((O=D())==null?void 0:O.navigationCommand);Z=!1}B=Object.assign({},R(),{abuseReportFlowState:Object.assign({},D(),{isReportFormDirty:Z})});_.Cd(_.pf("flowStateEntity",J(),B))}else _.aE((Z=D())==null?void 0:Z.navigationCommand)};
return _.T("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.T("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.T(_.t_,{data:function(){return z().cancelButton}},{buttonViewModel:function(Z){return _.T(_.lT,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:N})}}),_.T(_.t_,{data:function(){var Z;
if(z().navButton){var B=Object;var O=B.assign,X=_.G(z().navButton,_.s3),l=((Z=D())==null?0:Z.navigationEnabled)||_.U("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",e,Q;Z=_.G((e=D())==null?void 0:e.navigationCommand,_.dv);e=(Q=_.G(Z,_.af))==null?void 0:Q.url;B={buttonViewModel:O.call(B,{},X,{state:l,iconName:e?"OPEN_IN_NEW":""})}}else B=void 0;return B}},{buttonViewModel:function(Z){return _.T(_.lT,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:N})}})))},"$f");
wbd.idomCompat=!0;_.N7(wbd,"yt-report-form-bottom-bar-view-model",{props:{data:_.zn}});var xp5=_.Mf(function(M){var z=M.nextStep;return _.T("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.T("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.T(_.vS,{icon:function(){return z().iconName||""}})),_.T("div",null,_.T(_.m3,{text:function(){return z().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ag"),tIw=_.Mf(function(M){var z=M.data;
var J,R=(J=_.JF().resolve(_.zw(_.Ah)))==null?void 0:J(),D=_.U3(_.rF,function(){return z().flowStateKey||""});
return _.T("yt-report-form-confirmation-page-view-model",{class:function(){var N;return((N=_.G(D(),gk))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.T("div",{class:function(){var N;
return((N=_.G(D(),gk))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.T(_.rv,{data:function(){return R&&z().imageDark?z().imageDark:z().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return z().confirmationHeader}),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.T(_.m3,{text:function(){return z().confirmationText}})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.T(_.m3,{text:function(){return z().lawEnforcementText}})),
_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return z().whatToExpectHeader}),_.T(_.I,{cond:function(){return z().nextSteps},
then:function(N){return _.T("div",null,_.T(_.G4,{each:N},function(Z){return _.T(xp5,{nextStep:Z})}))}}),_.T(_.I,{cond:function(){return z().legalReportText},
then:function(N){return _.T("div",null,_.T(_.m3,{text:N,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"bg");
tIw.idomCompat=!0;_.N7(tIw,"yt-report-form-confirmation-page-view-model",{props:{data:_.zn}});var jf5=_.Mf(function(M){var z=M.data;var J=function(){var N;return((N=_.G(z().inputBox,HKi))==null?void 0:N.maxChars)||500},R=function(){return z().flowStateKey||""},D=_.U3(_.rF,R);
M=_.j6(function(N){N=Object.assign({},D(),{flowFormState:{isValid:N.length<=J()},abuseReportFlowState:{userComments:N,navigationEnabled:!(N.length>J()),isReportFormDirty:!0}});_.ia().dispatch(_.hk("flowStateEntity",R(),N))},150);
_.mF(function(){var N=Object.assign({},D(),{flowFormState:{isValid:!0}});_.ia().dispatch(_.hk("flowStateEntity",R(),N))});
return _.T("yt-report-form-details-page-view-model",{class:function(){var N;return((N=_.G(D(),gk))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.T("h1",{class:function(){var N;
return((N=_.G(D(),gk))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return z().detailsPageHeader}),_.T("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.T(_.m3,{text:function(){return z().bodyText}})),_.T("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.T(Sy,{label:function(){var N;
return((N=_.G(z().inputBox,HKi))==null?void 0:N.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var N;return{errorMessage:((N=_.G(z().inputBox,HKi))==null?void 0:N.maxCharsExceededErrorMessage)||"",maxChars:J()}},
onInput:M})))},"cg");
jf5.idomCompat=!0;_.N7(jf5,"yt-report-form-details-page-view-model",{props:{data:_.zn}});var pbw=_.Mf(function(M){var z=M.data;var J=M.selectedKey;var R=M.onSelected;var D=M.groupName;var N=function(){return z().text},Z=function(){return z().attributedText},B=function(){return z().subtext},O=function(){return z().attributedSubtext},X=_.T("div",{class:"ytRadioButtonItemViewModelLabel"},_.T(_.I,{cond:N,
then:function(){return _.T("div",null,N)}}),_.T(_.I,{cond:Z,
then:function(){return _.T(_.m3,{text:Z})}}),_.T(_.I,{cond:B,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},B)}}),_.T(_.I,{cond:O,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},_.T(_.m3,{text:O}))}})),l=function(){if(Z()){var Q;
return(Q=Z())==null?void 0:Q.content}return N()},e=function(){if(O()){var Q;
return(Q=O())==null?void 0:Q.content}return B()};
M={};return _.T("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.T(_.$O,{name:D,checked:function(){return!(J==null||!J()||z().key!==(J==null?void 0:J()))},
onChange:function(Q){R==null||R(Q.target,z(),D==null?void 0:D())},
labelRenderable:function(){return X},
ariaLabel:function(){return e()?l()+", "+e():l()},
className:_.Qe((M.ytRadioButtonItemViewModelSubTitle=function(){return!!z().subtext},M))}))},"dg");_.FhN=_.Mf(function(M){var z=M.data;var J=M.onSelected;var R=M.selectedKey;var D=M.groupName;var N=function(){return(D==null?void 0:D())||z().key};
return _.T("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.T("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.T(_.t_,{data:function(){return z().radioButtons}},{radioButtonItemViewModel:function(Z){return _.T(pbw,{data:Z.data,
onSelected:J,selectedKey:R,groupName:N})}})))},"eg");var YBN=_.Mf(function(M){var z=M.data;var J=_.iW("div"),R=function(){return z().flowStateKey||""},D=_.U3(_.rF,R),N=function(){return _.G(D(),gk)};
_.jP(function(){var Z,B;if(((Z=N())==null?0:Z.isReportFormDirty)&&((B=N())==null||!B.navigationEnabled)&&_.U("enable_gff_accessibility_fix")){var O;if(((O=N())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var X;(X=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||X.scrollIntoView()}else{var l;(l=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||l.scrollIntoView()}}},"VvP2Ne");
return _.T("yt-report-form-reason-select-page-view-model",{class:function(){var Z;return((Z=N())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.T("h1",{class:function(){var Z;
return((Z=N())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return z().pageHeader}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.T(_.m3,{text:function(){return z().bodyText}})),_.T("div",{class:function(){var Z;
return((Z=N())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.T(_.I,{cond:function(){var Z,B;
return((Z=N())==null?void 0:Z.isReportFormDirty)&&!((B=N())==null?0:B.navigationEnabled)&&_.U("enable_gff_accessibility_fix")},
then:function(){return _.T("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:J},_.T(_.vS,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return z().emptyReasonSelectErrorMessage}))}}),_.T(_.FhN,{data:function(){return _.G(z().radioButtonGroup,_.aRd)},
onSelected:function(Z,B){Z=Object.assign({},D(),{abuseReportFlowState:Object.assign({},N(),{reasonKey:B.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:B.command})});_.Cd(_.pf("flowStateEntity",R(),Z))},
selectedKey:function(){var Z;return(Z=N())==null?void 0:Z.reasonKey},
groupName:"report-form-reason-select-page"})))},"fg");
YBN.idomCompat=!0;_.N7(YBN,"yt-report-form-reason-select-page-view-model",{props:{data:_.zn}});var mpu=_.Mf(function(M){var z=M.data;var J,R=(J=_.JF().resolve(_.zw(_.Ah)))==null?void 0:J();return _.T("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.T("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.T(_.rv,{data:function(){return R&&z().imageDark?z().imageDark:z().image},
alt:""})),_.T("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.T("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return z().header}),_.T(_.m3,{text:function(){return z().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"gg");
mpu.idomCompat=!0;_.N7(mpu,"yt-report-form-sign-in-page-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=function(){return z().titleSuperscript},R=function(){return z().answersShelf},D=function(){return z().videoShelf},N=function(){var V;
return(V=z().textInputPlaceholder)==null?void 0:V.content},Z=function(){return z().showOpenTextInput&&!_.U("web_hide_explore_hub_until_user_navigates_back_to_home")},B=function(){var V;
return(V=z().textInputValue)==null?void 0:V.content},O=!1;
M=_.S(_.kE(!1,void 0,"GB6zuc"));var X=M.next().value,l=M.next().value;M=_.S(_.kE("",void 0,"ns549d"));var e=M.next().value,Q=M.next().value,v=function(){return{state:X()?"active":"disabled"}};
_.FT(function(){Z()&&B()&&Q(B())});
var x=function(V){V=V.target.value.trim();var E=z().onUpdateText;E&&_.aE(E,{form:{userQuery:V}});Q(V)},m=_.j6(function(V){x(V)},150),y=_.ol(function(V){var E;
l(!((E=V.target.value)==null||!E.trim())||O);m(V);return!1}),H=_.ol(function(V){if(V.key==="Enter"&&X()){x(V);
V=void 0;var E=_.G(z().nextButtonViewModel,_.s3),L,z8;if(E==null?0:(L=E.loggingDirectives)==null?0:(z8=L.clientVeSpec)==null?0:z8.uiType){var O8,I3;V=_.O3((O8=E.loggingDirectives)==null?void 0:(I3=O8.clientVeSpec)==null?void 0:I3.uiType)}(L=z().onNextStepCommand)&&_.aE(L,{forceClickLogging:!0,clickedVisualElement:V})}return!1}),q=function(V,E){O=E;
l(E);if(z().isMultiTurnFlow&&E){var L;Q((L=V==null?void 0:V.text)!=null?L:"")}if(_.U("web_hide_explore_hub_until_user_navigates_back_to_home")){var z8,O8,I3;(I3=(O8=(z8=b.value)==null?void 0:z8.closest("ytd-flow-step-renderer"))==null?void 0:O8.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||I3.click()}},b=_.AL("yt-talk-to-recs-view-model");
M={};return _.T("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:b},_.T("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.T(_.t_,{data:function(){return z().topCornerButton}},{buttonViewModel:_.lT})),_.T("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.T("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.T(_.m3,{text:function(){return z().title}}),_.T(_.I,{cond:J,
then:function(){return _.T("sup",{class:"ytwTalkToRecsSuperScript"},_.T(_.m3,{text:J}))}})),_.T("div",{class:"ytwTalkToRecsSubtitle"},_.T(_.m3,{text:function(){return z().subtitle}})),_.T("div",{class:"ytwTalkToRecsResultsShelf"},_.T(_.I,{cond:R,
then:function(){return _.T(_.t_,{data:R},{chipsShelfViewModel:function(V){return _.T("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.T(_.de,{data:V.data,callback:q,enableSingleChipSelection:!0}))}})}}),_.T(_.I,{cond:D,
then:function(){return _.T(_.t_,{data:D},{horizontalShelfViewModel:function(V){return _.T("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.T(_.WB,{data:V.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.T("div",{class:_.Qe("ytwTalkToRecsRefinementContainer",(M.ytwTalkToRecsBottomMargin=function(){return z().isMultiTurnFlow},M))},_.T(_.I,{cond:Z,
then:function(){return _.T("div",{class:"ytwTalkToRecsUserInputBox"},_.T("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:N,value:e,"on:input":y,"on:keyup":H,maxlength:200}))}}),_.T(_.t_,{data:function(){return z().isMultiTurnFlow?z().nextButtonViewModel:void 0}},{buttonViewModel:function(V){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.lT,{data:V.data,
buttonOverrides:v}))}}),_.T(_.t_,{data:function(){return z().isMultiTurnFlow?z().resetButtonViewModel:void 0}},{buttonViewModel:function(V){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.lT,{data:V.data}))}}))))},"hg"),"yt-talk-to-recs-view-model",{props:{data:_.zn}});var aNt={sources:[{clientResource:{imageName:"CHECK"}}]};_.g4u=_.Mf(function(M){var z=_.AL("div");M=_.rH(M,{error:void 0});var J=M.data,R=M.error,D=M.onSelected;M=_.S(_.eh(function(){return fNG(J())}));
var N=M.next().value,Z=M.next().value;Cic(J,function(Q){Z(Q);var v,x,m=EyG((v=J().options)==null?void 0:(x=v[Q])==null?void 0:x.value,J().type);D==null||D(m);z.value.focus()});
M=_.ol(function(){if(!J().disabled){var Q=J(),v=N(),x=z.value;Q.options&&(Q=Vfi(Q.options,v,Q.label),_.JF().resolve(_.hX).openSheet({viewModel:Q},x))}});
var B=_.Vyp(),O=function(){return!!R()},X=function(){return!!J().disabled},l={},e={};
return _.T("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.T("div",{class:_.Qe("ytDropdownViewModelDropdownContainer",(l.ytDropdownViewModelDropdownContainerErrorBorder=O,l.ytDropdownViewModelDropdownContainerDisabled=X,l)),"on:click":M,el:z,role:"combobox",tabindex:0,"on:keydown":B,"aria-invalid":O,"aria-disabled":X,"aria-describedby":function(){return O()?"dropdown-view-model-error":void 0}},_.T("div",{class:"ytDropdownViewModelText"},LFN(J,O,N),Agv(J,N)),_.T("div",{class:_.Qe("ytDropdownViewModelChevronDown",
(e.ytDropdownViewModelChevronDownDisabled=X,e))},_.T(_.vS,{icon:"CHEVRON_DOWN"}))),ihv(J,R))},"ig");_.N7(_.Mf(function(M){var z=M.data;var J=function(D){var N=rgm(z());N.videoMetadata||(N.videoMetadata={});N.videoMetadata.sponsorshipsMetadata||(N.videoMetadata.sponsorshipsMetadata={});N.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(D)},R=function(D){var N=rgm(z());
N.scheduledRedirectMetadata||(N.scheduledRedirectMetadata={});N.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(D)};
return _.T("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.T("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.T("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.T(_.m3,{text:function(){return z().title}}),_.T(_.vS,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.T(_.m3,{text:function(){return z().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.T(_.t_,{data:function(){return z().tierChoices}},{dropdownViewModel:function(D){return _.T("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.T(_.g4u,{data:D.data,
onSelected:J}))}}),_.T(_.t_,{data:function(){return z().startTimeChoices}},{dropdownViewModel:function(D){return _.T("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.T(_.g4u,{data:D.data,
onSelected:R}))}}),_.T(_.m3,{text:function(){return z().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.T("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.T(_.t_,{data:function(){return z().scheduleButton}},{panelFooterViewModel:_.PD})))},"jg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;M=M.className===void 0?"":M.className;var J=_.U3($al,function(){return z().flowStateEntityKey||""}),R={};
R=_.Qe("ytFlowBottomBarViewModelFlowBottomBarButtons",(R.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},R));
var D={},N=_.Qe("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",R,(D.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},D));
D={};var Z=_.Qe("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",R,(D.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},D));
R={};R=_.Qe("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
R));
M=_.Qe("ytFlowBottomBarViewModelHost",M);return _.T("yt-flow-bottom-bar-view-model",{class:M},_.T(_.I,{cond:function(){var B;return(B=z())==null?void 0:B.textSection},
then:function(B){return _.T("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.T(_.m3,{text:B}))}}),_.T("div",{class:R},_.T(_.t_,{data:function(){return z().secondaryButton}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
className:Z})}}),_.T(_.t_,{data:function(){return z().primaryButton}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
className:N,buttonOverrides:function(){var O;return{disabled:!((O=J())==null||!O.primaryButtonDisabled)}}})}})))},"kg"),"yt-flow-bottom-bar-view-model",{props:{data:_.zn,
className:_.Dv}});var sfG="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Zb=function(){var M=_.g.apply(this,arguments)||this;M.enableScrollingFix=!0;M.bottomBar=!1;M.hideBottomBar=!1;M.fitContent=!1;return M};
_.w(Zb,_.g);_.P=Zb.prototype;_.P.ready=function(){_.U("enable_pdp_icon_prefetch")&&_.hVv(_.JF().resolve(_.YM),0,sfG)};
_.P.focus=function(M){this.topBar?_.Lo(this.topBar,M):this.paperDialog.focus(M)};
_.P.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18960_scroller&&(this.JSC$18960_scroller.dialogElement=this.paperDialog,this.JSC$18960_scroller.attached&&typeof this.JSC$18960_scroller.attached==="function"&&this.JSC$18960_scroller.attached())};
_.P.onDataChanged=function(){var M;this.fitContent=!((M=this.data)==null||!M.fitContent);var z;this.bottomBar=!((z=this.data)==null||!z.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.P.onProgressChanged=function(){var M,z,J=((z=(M=this.data)==null?void 0:M.progress)!=null?z:0)*100;this.progressElement.style.width=J+"%"};
_.P.isProgressHidden=function(){var M;return!((M=this.data)==null?0:M.progress)};
_.P.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(M){return _.U("enable_wiz_next_lp2_msof")&&
M&&!M.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.rX.Object.defineProperties(Zb.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var M;return _.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.G((M=this.data)==null?void 0:M.content,uhl)}}});
Zb.prototype.onProgressChanged=Zb.prototype.onProgressChanged;Zb.prototype.onDataChanged=Zb.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Zb.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zb.prototype,"enableScrollingFix",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zb.prototype,"bottomBar",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zb.prototype,"hideBottomBar",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Zb.prototype,"containsExploreHub",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zb.prototype,"fitContent",void 0);_.u([_.Qc("#progress"),_.W("design:type",HTMLElement)],Zb.prototype,"progressElement",void 0);
_.u([_.Qc("#scroller"),_.W("design:type",Object)],Zb.prototype,"JSC$18960_scroller",void 0);_.u([_.Qc("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],Zb.prototype,"topBar",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zb.prototype,"onDataChanged",null);_.u([_.la("data.progress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zb.prototype,"onProgressChanged",null);
_.u([_.c({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Zb);
_.d(Zb,"ytd-flow-step-renderer",function(){if(Oov!==void 0)return Oov;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Oov=M},{mode:1});var n4w=function(M){this.resolveCommand=M;this.steps={}},hAN=function(M,z){z=_.S(z||[]);
for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=Object.values(J)[0],D=void 0;if((D=R)==null?0:D.stepId)M.steps[R.stepId]=J}},cLN=function(M,z){var J,R,D,N,Z;
return _.k(function(B){if((J=M.state)==null||!J.currentStepId)return B.return(void 0);R=yLs(M);if(!R)return B.return(Hcw(M));if(D=_.G(R,_.$Ci)){var O;((O=D.screenLoggingData)==null?0:O.screenVeType)&&_.Xx(_.Gm(),D.screenLoggingData.screenVeType);((N=D)==null?0:N.onStepStartCommand)&&M.resolveCommand((Z=D)==null?void 0:Z.onStepStartCommand,{})}if(D&&z){O=D;var X,l,e,Q;((X=z.flowLoggingData)==null?0:X.eventNamespace)&&((l=O.flowEventData)==null?0:l.eventType)&&((e=O.flowEventData)==null?0:e.eventMetadata)&&
((Q=z.flowLoggingData)==null?0:Q.flowType)&&(X=_.oz(z.flowLoggingData.eventNamespace,O.flowEventData.eventType,O.flowEventData.eventMetadata),_.l7(_.ee(),X,z.flowLoggingData.flowType));z.steps&&!z.steps.includes(R)&&z.steps.push(R)}return B.return(R)})};
n4w.prototype.back=function(){var M;(M=this.state)!=null&&M.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
n4w.prototype.handleUpdateFlowCommand=function(M){M.steps&&hAN(this,M.steps);M.entityUpdateCommand&&this.resolveCommand(M.entityUpdateCommand,{});M.flowContinuationCommand&&(M=M.flowContinuationCommand)&&(this.getFlowContinuationCommand=M);this.awaitFlowContinuation&&(this.awaitFlowContinuation(yLs(this)),this.awaitFlowContinuation=void 0)};
n4w.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Hcw=function(M){return _.k(function(z){return M.getFlowContinuationCommand?z.return(new Promise(function(J){M.awaitFlowContinuation=J;M.getFlowContinuationCommand&&M.resolveCommand(M.getFlowContinuationCommand,{flow_state:M.state})})):z.return(Promise.resolve(void 0))})},yLs=function(M){var z;
if((z=M.state)!=null&&z.currentStepId)return M.steps[M.state.currentStepId]};var kJ=function(){var M=_.g.apply(this,arguments)||this;M.flowState=new n4w(function(z,J){J=J===void 0?{}:J;_.l5.instance.resolveCommand(z,{form:{form:J,element:M.hostElement}})});
M.initialState=!0;M.isLoading=!1;M.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};M.containsTalkToRecs=!1;return M};
_.w(kJ,_.g);_.P=kJ.prototype;_.P.onPopupClosed=function(M){M&&this.hostElement!==M.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.P.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.P.focus=function(M){var z=this;_.au(function(){var J=_.SN(z.hostElement).querySelector("ytd-flow-step-renderer");(J==null?0:J.topBar)?J.focus(M):z.topBar&&_.Lo(z.topBar,M)},1)};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.P.computeTopBarHidden=function(M){var z;return!((z=_.G(M,_.$Ci))==null||!z.topBarOverride)};
_.P.dataChanged=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1){((z=M.data)==null?0:z.steps)&&hAN(M.flowState,M.data.steps);if((J=M.data)==null?0:J.flowContinuationCommand){var D=M.flowState,N=M.data.flowContinuationCommand;N&&(D.getFlowContinuationCommand=N)}return R.yield(cLN(M.flowState,M.data),2)}M.currentFlowStep=R.yieldResult;_.UI(R)})};
_.P.flowChanged=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1){if(!M.flow)return J.return();M.flowState.state=M.flow;M.isLoading=!0;return J.yield(cLN(M.flowState,M.data),2)}z=J.yieldResult;if(!z||M.flow.isLoading)return J.return();M.currentFlowStep=z;M.initialState=!1;M.isLoading=!1;M.autofocusAndRefit();M.updateContainsTalkToRecs();_.UI(J)})};
_.P.updateContainsTalkToRecs=function(){var M,z=(M=_.G(this.currentFlowStep,_.$Ci))==null?void 0:M.content;this.containsTalkToRecs=!!z&&!!_.G(z,uhl)};
_.P.autofocusAndRefit=function(){var M=this,z=_.JF().resolve(_.zw(_.OQ)),J=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),R=document.querySelector("yt-report-form-confirmation-page-view-model"),D=document.querySelector("yt-report-form-details-page-view-model"),N=document.querySelector("yt-report-form-reason-select-page-view-model"),Z=document.querySelector("yt-contributor-zero-state-view-model"),
B=document.querySelector("yt-structured-context-note-view-model"),O=document.querySelector("yt-note-view-model");(!J&&z&&z.isKeyBoardInUse()||R||!J&&D||!J&&N||Z||B||O)&&_.Ao(this.hostElement);_.C4(this,function(){_.Pv(M.hostElement,"yt-refit")})};
_.P.handleUpdateFlowCommand=function(M){this.data&&(M=_.G(M,Kom),M.targetId===this.data.targetId&&(M.flowContinuationCommand&&(this.data.flowContinuationCommand=M.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(M),this.autofocusAndRefit()))};
_.P.handleFlowNextStepCommand=function(M){this.data&&this.flow&&this.flow.key&&(M=_.G(M,cFt),M.targetId===this.data.targetId&&(M=M.stepId||"",this.ytdReduxBehavior.dispatch(_.hk("flowStateEntity",this.flow.key,{currentStepId:M,stepIdStack:(this.flow.stepIdStack||[]).concat(M)}))))};
_.P.handleFlowPrevStepCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.G(M,dCv),M.targetId===this.data.targetId)){var z=[].concat(_.Yj(this.flow.stepIdStack||[]));z.length>1?(z.pop(),this.ytdReduxBehavior.dispatch(_.hk("flowStateEntity",this.flow.key,{currentStepId:z[z.length-1],stepIdStack:z}))):M.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(M.onFirstStepCommand)}};
_.P.handleYpcCancelRecurrenceCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.G(M,Vzd),M.targetId===this.data.targetId&&M.endpointCommand)){var z=_.G(this.flow,ENw);z&&_.G(M.endpointCommand,_.mK2)&&(_.G(M.endpointCommand,_.mK2).feedbackData=z.surveyFeedback);this.ytComponentBehavior.resolveCommand(M.endpointCommand)}};
_.P.handlePartialUpdateFlowStateEntity=function(M){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.hk("flowStateEntity",this.flow.key,M,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
kJ.prototype.flowChanged=kJ.prototype.flowChanged;kJ.prototype.dataChanged=kJ.prototype.dataChanged;kJ.prototype.onPopupClosed=kJ.prototype.onPopupClosed;_.u([_.p(_.Wg),_.W("design:type",Object)],kJ.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],kJ.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],kJ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kJ.prototype,"initialState",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kJ.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Object)],kJ.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],kJ.prototype,"currentFlowStep",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kJ.prototype,"onPopupClosed",null);_.u([_.Y({selectorArgs:["data.flowStateEntityKey"],selector:$al}),_.W("design:type",Object)],kJ.prototype,"flow",void 0);_.u([_.Qc("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],kJ.prototype,"topBar",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],kJ.prototype,"dataChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kJ.prototype,"containsTalkToRecs",void 0);_.u([_.wH("flow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],kJ.prototype,"flowChanged",null);_.u([_.c({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],kJ);
_.dpu=_.kS()(kJ,"ytd-flow-root-renderer",function(){if(Bcs!==void 0)return Bcs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Bcs=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var KhG;var YW=null;_.N7(_.Mf(function(M){return _.T("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.T("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.T(_.m3,{text:function(){return M.data().text}}),_.T("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"lg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.zn}});var $pw=_.Mf(function(M){var z=M.playerControlsProps;var J=M.isShortsPage;return _.T("yt-bigboard",null,_.T(_.I,{cond:function(){return z().isDragging},
then:function(){return _.T("div",{class:"ytBigboardStoryboardHost"},_.T(_.Xjw,{progressBarProps:z,isShortsPage:J}))}}))},"mg");
$pw.idomCompat=!0;_.BD={ACCOUNT_LABEL:mU("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:mU("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:mU("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:mU("AD_BADGE_HINT"),AD_BADGE_TEXT:mU("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:mU("ALL_CHANNELS_LABEL"),AMBIENT_MODE:mU("AMBIENT_MODE"),AMBIENT_MODE_OFF:mU("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:mU("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:mU("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:mU("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:mU("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:mU("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:mU("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:mU("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:mU("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:mU("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:mU("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:mU("AUTO_ZOOM","Auto zoom"),BACK:mU("BACK"),CANCEL:mU("CANCEL"),CHANNEL_SWITCHER_LABEL:mU("CHANNEL_SWITCHER_LABEL"),CLOSE:mU("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:mU("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:mU("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:mU("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:mU("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:mU("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:mU("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:mU("COMMENT_MODAL_CONTENT"),CONFIRM_OK:mU("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:mU("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:mU("COPIED_TO_CLIPBOARD"),COPY:mU("COPY"),COPY_DEBUG_INFO:mU("COPY_DEBUG_INFO"),COPY_EMBED_CODE:mU("COPY_EMBED_CODE"),
COPY_LINK_LABEL:mU("COPY_LINK_LABEL"),COPY_VIDEO_URL:mU("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:mU("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:mU("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:mU("DELETE_FROM_DOWNLOADS"),DIALOG:mU("DIALOG"),DONE:mU("DONE"),DOWNLOAD:mU("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:mU("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:mU("FLAG_CONFIRM"),FLAG_CONTENT:mU("FLAG_CONTENT"),FLAG_LABEL:mU("FLAG_LABEL"),FLAG_TITLE:mU("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:mU("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:mU("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:mU("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:mU("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:mU("HIDE_SEARCH_FILTERS_LABEL"),HOME:mU("HOME","Home"),INVALID_RESPONSE_RECEIVED:mU("INVALID_RESPONSE_RECEIVED"),LIBRARY:mU("LIBRARY","Library"),LISTENING:mU("LISTENING"),LOADING:mU("LOADING"),LONG_PRESS_MIC_TO_SPEAK:mU("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:mU("LOOP"),MENU_DESKTOP:mU("MENU_DESKTOP"),
MENU_EXIT:mU("MENU_EXIT"),MENU_FEEDBACK:mU("MENU_FEEDBACK"),MENU_HELP:mU("MENU_HELP"),MENU_IMPRESSUM:mU("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:mU("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:mU("MENU_SETTINGS"),MENU_SIGN_IN:mU("MENU_SIGN_IN"),MENU_TITLE:mU("MENU_TITLE"),MENU_YOUR_DATA:mU("MENU_YOUR_DATA"),MORE_INFO:mU("MORE_INFO"),MORE_OPTIONS:mU("MORE_OPTIONS"),MUTE_VOLUME:mU("MUTE_VOLUME"),NEW_PLAYLIST:mU("NEW_PLAYLIST"),NEXT_VIDEO:mU("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:mU("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:mU("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:mU("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:mU("NOT_FOUND_TITLE"),NO_DOWNLOADS:mU("NO_DOWNLOADS"),NO_MIC_INPUT:mU("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:mU("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:mU("OOPS_MESSAGE"),OPEN_APP:mU("OPEN_APP"),OPEN_YOUTUBE:mU("OPEN_YOUTUBE"),PAUSE:mU("PAUSE"),PLAY:mU("PLAY"),PLAYER_CAPTION:mU("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:mU("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:mU("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:mU("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:mU("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:mU("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:mU("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:mU("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:mU("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:mU("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:mU("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:mU("PLAYER_MINIMIZE"),PLAYER_NEXT:mU("PLAYER_NEXT"),PLAYER_PAUSE:mU("PLAYER_PAUSE"),PLAYER_PLAY:mU("PLAYER_PLAY"),
PLAYER_PREVIOUS:mU("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:mU("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:mU("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:mU("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:mU("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:mU("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:mU("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:mU("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:mU("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:mU("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:mU("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:mU("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:mU("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:mU("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:mU("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:mU("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:mU("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:mU("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:mU("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:mU("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:mU("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:mU("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:mU("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:mU("PLAY_ALL"),PLEASE_FIX_ERRORS:mU("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:mU("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:mU("PREVIOUS_VIDEO"),PRIVACY_POLICY:mU("PRIVACY_POLICY"),RELOAD:mU("RELOAD"),REQUIRED_LABEL:mU("REQUIRED_LABEL"),SAVE_PLAYLIST:mU("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:mU("SCRUB_SLIDE_USER_EDU"),SEARCH:mU("SEARCH","Search"),
SEARCH_APPEND_LABEL:mU("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:mU("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:mU("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:mU("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:mU("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:mU("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:mU("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:mU("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:mU("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:mU("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:mU("SEEK_SLIDER"),SETTINGS_LABEL:mU("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:mU("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:mU("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:mU("SHOW_LESS"),SHOW_MORE:mU("SHOW_MORE"),SHOW_PLAYER_CONTROLS:mU("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:mU("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:mU("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:mU("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:mU("SIGN_IN_ON_WEB"),STABLE_VOLUME:mU("STABLE_VOLUME"),STABLE_VOLUME_OFF:mU("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:mU("STABLE_VOLUME_ON"),STATS_FOR_NERDS:mU("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:mU("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:mU("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:mU("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:mU("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:mU("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:mU("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:mU("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:mU("TIMESTAMP_SECONDS"),TOGGLE_OFF:mU("TOGGLE_OFF"),TOGGLE_ON:mU("TOGGLE_ON"),TRENDING:mU("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:mU("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:mU("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:mU("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:mU("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:mU("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:mU("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:mU("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:mU("VIDEO_LINK_LABEL")};var uSw=_.Mf(function(M){var z=M.playerApi;M=_.AL("button",function(R){_.Rd(R,36843)});
var J=mU("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.T("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.T("button",{el:M,class:"ytPlayerControlsJumpForwardButtonButton",title:J,"aria-label":J,"on:click":_.ol(function(){_.Dr(36843);z&&z().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.T("span",null,_.T(_.vS,{icon:"FAST_FORWARD"}))))},"ng");var qBi=_.Mf(function(M){var z=M.appApi;M=_.AL("button",function(R){_.Rd(R,62946)});
var J=mU("OPEN_IN_MINIPLAYER");return _.T("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.T("button",{el:M,class:"ytMiniplayerButtonButton",title:J,"aria-label":J,"on:click":_.ol(function(){_.Dr(62946);var R,D;(D=(R=z()).openInMiniplayer)==null||D.call(R);return!1})},_.T(_.vS,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"og");var Wht=_.Mf(function(M){var z=M.playerApi;M=_.AL("button",function(N){_.Rd(N,142812)});
var J=_.S(_.kE(!1,void 0,"I3VCyb")),R=J.next().value,D=J.next().value;J=function(){return mU("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(R()?1:2)})};
return _.T("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.T("button",{el:M,class:"ytPlaybackSpeedButtonButton",title:J,"aria-label":J,"on:click":_.ol(function(){_.Dr(142812);if(z){var N=z(),Z=R();N.setPlaybackRate(Z?1:2);D(!R())}return!1})},_.T("span",null,_.T(_.vS,{icon:function(){return R()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"pg");var ahG=_.Mf(function(M){var z=M.title;var J=M.ariaLabel;var R=M.icon;var D=M.command;var N=M.veType;M=_.AL("button",function(Z){N&&_.Rd(Z,N())});
return _.T("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.T("button",{el:M,class:"ytdThumbnailOverlayButtonButton",title:z,"aria-label":J,"on:click":_.ol(function(){N&&_.Dr(N());D&&_.JF().resolve(_.Rb).resolveCommand(D())})},_.T(_.vS,{icon:R})))},"qg");var vE="";var VIu=_.Mf(function(M){var z=M.playerControlsProps,J=M.onClickFn;M=_.o4(function(){var N=z(),Z=-1;N.captionsAvailable&&(Z=N.captionsEnabled?1:0);return Z},void 0,"WecR8e");
var R=_.o4(function(){var N=z();return N.captionsAvailable?_.e9(N.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.e9("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),D=_.o4(function(){var N=z();
N=N.captionsAvailable?N.captionsEnabled:void 0;return N},void 0,"Q17ly");
return _.T("yt-closed-captions-toggle-button",null,_.T(_.kk5,{captionIconType:M,ariaLabel:R,ariaPressed:D,onClick:function(N){var Z=z();if(Z.captionsAvailable){var B=Z.playerApi;if(B){var O=Z.playerApi;if(O){var X=vE;if(X){O=O.getOption("captions","track");var l;vE=(l=O?O.displayName:null)!=null?l:X}else _.Ja(O)?(X=_.wio(O),vE=X.length?(l=qZw(X))?l.displayName:X[0].displayName:""):vE=""}Wtl(B);_.U("mweb_disable_set_state_captions_killswitch")&&Z.setState({captionsEnabled:!Z.captionsEnabled})}}var e,
Q;(Q=(e=Z.appApi).showCaptionsToggleToast)==null||Q.call(e,Z);J==null||J(N)},
isOverlay:!0}))},"rg");var E4c=_.Mf(function(M){var z=M.data;return _.T("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.T(_.WH,{data:function(){return{type:17,text:_.Vrw(z().label)}}}))},"sg");var fht=_.Mf(function(M){var z=_.Qe("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return M.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return M.size()==="small"?M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.T("animated-seek-arrows",{class:_.Qe("ytPlayerControlsAnimatedSeekArrowsHost")},_.T("span",{class:z}),_.T("span",{class:z}),_.T("span",{class:z}))},"tg");
fht.idomCompat=!0;var Lhw=_.Mf(function(){var M=_.e9("PLAYER_SECONDS",{seconds_placeholder:"30"}),z=_.S(_.kE(!1,void 0,"Yj8msb")),J=z.next().value,R=z.next().value,D=_.S(_.kE(!1,void 0,"r9Z50e"));z=D.next().value;var N=D.next().value;D={};var Z=_.Qe("jumpForwardOverlayOverlay",(D.jumpForwardOverlayOverlayHidden=z,D));_.mF(function(){var B=null,O=null,X=function(){B!==null&&_.sj().cancelJob(B);O!==null&&_.sj().cancelJob(O);N(!0);R(!0);_.BS(_.sj(),function(){N(!1)});
B=_.BS(_.sj(),function(){N(!0);O=_.BS(_.sj(),function(){R(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",X);_.pq(function(){window.removeEventListener("jump-forward-clicked",X)})});
return _.T("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.T(_.I,{cond:J,then:function(){return _.T("div",{class:Z},_.T(fht,{direction:1,size:"large"}),_.T("div",null,M))}}))},"ug");var ALv=_.BD.MUTE_VOLUME,icl=_.BD.UNMUTE_VOLUME,CWi=_.Mf(function(M){var z=M.muteIconType;var J=M.onClick;var R=M.useOutlineIcon;var D=M.useDelhiIcons;M=_.AL("button",function(B){_.Rd(B,28662)});
var N=function(){var B=z(),O=R==null?void 0:R(),X=D==null?void 0:D(),l="",e="";switch(B){case -1:case 0:l=O?"VOLUME_OFF":X?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";e=icl;break;case 1:l=O?"VOLUME_UP_OUTLINE":X?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";e=ALv;break;case 2:l=O?"VOLUME_DOWN_OUTLINE":X?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";e=ALv;break;default:_.uJ(B)}return{iconName:l,ariaLabel:e}},Z=function(){return N().ariaLabel};
return _.T("ytm-mute-button",{class:"ytmMuteButtonHost"},_.T("button",{el:M,class:"ytmMuteButtonButton",title:Z,"aria-label":Z,"on:click":_.ol(function(B){_.Dr(28662);J==null||J(B);return!1})},_.T("span",null,_.T(_.vS,{icon:function(){return N().iconName}}))))},"vg");var bcd=_.Mf(function(M){var z=M.volumeProps;var J=M.onClickFn;var R=M.useOutlineIcon;var D=M.useDelhiIcons;return _.T("yt-mute-toggle-button",null,_.T(CWi,{muteIconType:function(){var N=z();return N.volumeMuted||N.volume===0?0:N.volume>50?1:2},
onClick:function(N){var Z=z().playerApi;Z&&(Z.isMuted()?Z.unMute():Z.mute(!1));J==null||J(N)},
useOutlineIcon:function(){return!(R==null||!R())},
useDelhiIcons:function(){return!(D==null||!D())}}))},"wg");
bcd.idomCompat=!0;var rL5=_.Mf(function(M){var z=M.data;var J=_.AL("ytm-paid-content-overlay-renderer");return _.T("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:J,"on:animationend":_.ol(function(){J.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.T(_.a9,{command:function(){return z().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.T(_.I,{cond:function(){var R;return(R=z().icon)==null?void 0:R.iconType},
then:function(){return _.T("span",null,_.T(_.vS,{icon:function(){var R;return(R=z().icon)==null?void 0:R.iconType}}))}}),_.T("div",{class:"ytmPaidContentOverlayText"},_.T(_.m3,{text:function(){return z().text}})),_.T(_.I,{cond:function(){return z().navigationEndpoint},
then:function(){return _.T(_.vS,{icon:"CHEVRON_RIGHT"})}})))},"xg");
rL5.idomCompat=!0;var oNN=[].concat(_.Yj([{register:function(M){var z=tzw(M),J;(J=M().playerApi)==null||J.addEventListener("onVolumeChange",z);return function(){}}},
{register:function(M){var z=jbG(M);M=M().playerApi;M==null||M.addEventListener("captionschanged",z);M==null||M.addEventListener("captionssettingschanged",z);M==null||M.addEventListener("onCaptionsTrackListChanged",z);return function(){}}},
{register:function(M){if(!_.U("mweb_screenreader_accessible_player"))return function(){};
var z=pJc(M),J=document.querySelector("video");J==null||J.addEventListener("touchend",z);return function(){J==null||J.removeEventListener("touchend",z)}}},
{register:function(M){if(!_.U("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var z=pJc(M),J=document.querySelector("video");J==null||J.addEventListener("focus",z);return function(){J==null||J.removeEventListener("focus",z)}}}]),[{register:function(M){var z=vNw(M),J;
(J=M().playerApi)==null||J.addEventListener("onStateChange",z);return function(){}}},
{register:function(M){var z=Gwm(M),J;(J=M().playerApi)==null||J.addEventListener("onPlaybackRateChange",z);return function(){}}},
{register:function(M){var z=wJw(M),J;(J=M().playerApi)==null||J.addEventListener("onVideoDataChange",z);return function(){}}},
{register:function(M){var z=xCw(M),J,R;(J=M())==null||(R=J.playerApi)==null||R.addEventListener("onVideoProgress",z);return function(){}}}]);var M_5=_.Mf(function(M){var z=M.data;var J=function(){return _.e9("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+z().playbackRate})};
return _.T(_.I,{cond:function(){return z().playbackRate&&z().playbackRate!==1},
then:function(){return _.T("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.T("div",{class:"ytPlaybackRateOverlayOverlay"},_.T(fht,{direction:1,size:"small"}),_.T("div",{class:"ytPlaybackRateOverlayLabel"},J)))}})},"yg");var zJc=_.Mf(function(M){var z=M.data;return _.T("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.T(_.I,{cond:function(){var J,R=(J=z())==null?void 0:J.playerResponse,D;return R==null?void 0:(D=R.paidContentOverlay)==null?void 0:D.paidContentOverlayRenderer},
then:function(J){return _.T(rL5,{data:J})}}))},"Ag"),J1t=_.Mf(function(M){var z=M.props;
var J=M.data;var R=M.options;var D=function(){var X,l,e,Q;return(X=J())==null?void 0:(l=X.playerResponse)==null?void 0:(e=l.playerConfig)==null?void 0:(Q=e.inlinePlaybackConfig)==null?void 0:Q.showAudioControls},N=function(){var X,l;
if(D()&&((X=R())==null?void 0:(l=X.additionalButton)==null?void 0:l.button)!==void 0){var e,Q,v;X=(e=J())==null?void 0:(Q=e.playerApi)==null?void 0:(v=Q.getSize())==null?void 0:v.height;if(!(X===void 0||X<180)){var x,m;return(x=R())==null?void 0:(m=x.additionalButton)==null?void 0:m.button}}},Z=function(){var X,l;
return(X=R())==null?void 0:(l=X.additionalButton)==null?void 0:l.thumbnailOverlayButtonRenderers},B=function(){var X,l;
return(X=R())==null?void 0:(l=X.additionalButton)==null?void 0:l.thumbnailOverlayButtonViewModels},O=function(){var X=[_.T(bcd,{volumeProps:z}),
_.T(VIu,{playerControlsProps:z})];N()===1&&X.push(_.T(uSw,{playerApi:function(){return z().playerApi}}));
N()===2&&X.push(_.T(qBi,{appApi:function(){return z().appApi}}));
N()===3&&X.push(_.T(Wht,{playerApi:function(){return z().playerApi}}));
var l=Z();if(N()===4&&l){l=_.S(l);for(var e=l.next(),Q={};!e.done;Q={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$585:void 0},e=l.next()){e=e.value;Q.tooltip$jscomp$2=e.tooltip;var v=void 0,x=void 0;Q.ariaLabel$jscomp$20=((v=e.accessibility)==null?void 0:(x=v.accessibilityData)==null?void 0:x.label)||Q.tooltip$jscomp$2;v=void 0;Q.icon$jscomp$50=(v=e.icon)==null?void 0:v.iconType;Q.command$jscomp$585=e.command;Q.tooltip$jscomp$2&&Q.ariaLabel$jscomp$20&&Q.icon$jscomp$50&&
X.push(_.T(ahG,{title:function(m){return function(){return m.tooltip$jscomp$2}}(Q),
ariaLabel:function(m){return function(){return m.ariaLabel$jscomp$20}}(Q),
icon:function(m){return function(){return m.icon$jscomp$50}}(Q),
command:function(m){return function(){return m.command$jscomp$585}}(Q)}))}}l=B();
if(N()===4&&l)for(l=_.S(l),e=l.next(),Q={};!e.done;Q={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$586:void 0},e=l.next())e=e.value,Q.tooltip$jscomp$3=e.title,Q.ariaLabel$jscomp$21=e.accessibilityText||Q.tooltip$jscomp$3,Q.icon$jscomp$51=e.iconName,Q.command$jscomp$586=_.$S(e.onTap),Q.tooltip$jscomp$3&&Q.ariaLabel$jscomp$21&&Q.icon$jscomp$51&&X.push(_.T(ahG,{title:function(m){return function(){return m.tooltip$jscomp$3}}(Q),
ariaLabel:function(m){return function(){return m.ariaLabel$jscomp$21}}(Q),
icon:function(m){return function(){return m.icon$jscomp$51}}(Q),
command:function(m){return function(){return m.command$jscomp$586}}(Q)}));
return X};
return _.T(_.I,{cond:D,then:function(){return _.T("div",{class:"ytInlinePlayerControlsTopRightControls"},_.T(_.G4,{each:O},function(X){return _.T("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.T("div",{class:"ytInlinePlayerControlsButtonIcon"},X))}))}})},"Bg"),NXl=_.Mf(function(M){var z=M.props;
var J=M.data;var R=M.options;M={};M=_.Qe("ytInlinePlayerControlsBottomRightControls",(M.ytInlinePlayerControlsBottomRightControlsHidden=function(){var D;return Y7N(J(),R())&&((D=R())==null?void 0:D.insetProgressBar)&&(z().isHovering||z().isDragging)},M));
return _.T("div",{class:M},_.T(RJv,{data:J}),_.T(_.I,{cond:function(){var D;return!((D=R())==null?0:D.hideTimeDisplay)},
then:function(){return _.T(DSN,{props:z,data:J})}}))},"Cg"),RJv=_.Mf(function(M){var z=M.data;
return _.T(_.t_,{data:function(){var J;return OKw((J=z())==null?void 0:J.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:E4c})},"Dg"),DSN=_.Mf(function(M){var z=M.props;
var J=M.data;return _.T(_.I,{cond:function(){return z().isLive},
then:function(){return _.T(P4w,null)},
else:function(){return _.T(SFs,{props:z,data:J})}})},"Eg"),SFs=_.Mf(function(M){var z=M.props;
var J=M.data;var R=_.o4(function(){var D;return IRs((D=J())==null?void 0:D.thumbnailOverlays)},void 0,"kUmuA");
return _.T("div",{class:_.Qe("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.BD.PLAYER_TIME_ELAPSED+" "+_.mep(z().playedTime)}},_.T(_.WH,{data:function(){var D=_.mep(z().videoDuration-z().playedTime);
return Object.assign({},{type:17,text:D},R())}}))},"Fg"),P4w=_.Mf(function(){var M=_.Qe("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.T("div",{class:M},_.T(_.WH,{data:{type:18,text:_.BD.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Gg"),Z4w=_.Mf(function(M){var z=M.props;
var J=M.data;var R=M.options;return _.T(_.G$u,{progressBarProps:z,config:function(){var D,N=_.G((D=J())==null?void 0:D.multiMarkersPlayerBar,_.z1v),Z;D=((Z=R())==null?0:Z.insetProgressBar)?2:1;var B;Z=(B=R())==null?void 0:B.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:D,chapterData:N,isInlinePlayback:!0,doSeekOnClick:Z,playheadDotBehavior:Z?1:0}}})},"Hg");_.N7(_.Mf(function(M){var z=M.data;var J=M.appApi;var R=M.options;var D=UCw(z,Fow(J));M={};J={};return _.T("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.T("div",{class:_.Qe("ytInlinePlayerControlsDarkenedOverlay",(M.ytInlinePlayerControlsDarkenedOverlayShow=function(){return D().isHovering},M))}),_.T(Lhw,null),_.T(M_5,{data:D}),_.T(zJc,{data:z}),_.T($pw,{playerControlsProps:D,
isShortsPage:!1}),_.T("div",{class:_.Qe((J.ytInlinePlayerControlsControlsHidden=function(){return D().isDragging},J))},_.T(J1t,{props:D,
data:z,options:R}),_.T(NXl,{props:D,data:z,options:R})),_.T(_.I,{cond:function(){return Y7N(z(),R())},
then:function(){return _.T(Z4w,{props:D,data:z,options:R})}}))},"zg"),"yt-inline-player-controls",{props:{data:_.zn,
appApi:_.Dv,options:_.zn}});var O0=function(){var M=_.g.apply(this,arguments)||this;M.opts=null;M.playerControlsData=null;M.playerControlsAppApi={openInMiniplayer:function(){M.openInMiniplayer()}};
M.playerControlsOptions={};M.noAnimation=!1;M.playbackIntentTriggered=!1;M.positionData=null;M.hidden=!0;M.active=!1;M.playing=!1;M.videoPreviewDataIndex=0;M.JSC$19016_playerPromise=null;M.player=null;M.enableAudioControls=!1;M.hasBeenUnmuted=!1;M.captionsHaveBeenTurnedOff=!1;M.JSC$19016_playerEvents=new Map;M.videoPreviewFetchRequest=null;M.scheduledPreviewEndJobId=null;M.JSC$19016_preventProgressSaveTimer=null;M.watchEndpointStartTimeUpdaterInterval=null;M.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};M.windowOnBlurFn=function(){M.deactivate()};
return M};
_.w(O0,_.g);_.P=O0.prototype;
_.P.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.U("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.P.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19016_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19016_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19016_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19016_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ou(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ou(this,this.onScroll))};
_.P.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ou(this,this.onScroll))};
_.P.onPageTypeChange=function(){this.deactivate()};
_.P.onWindowResized=function(){this.deactivate()};
_.P.onCaptionsChanged=function(M){M=!!M.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!M);this.setCaptionSize()};
_.P.setCaptionSize=function(){var M;if(this.active&&!this.captionsHaveBeenTurnedOff&&((M=this.player)==null?0:M.getCaptionWindowContainerId())){var z;(z=this.player)==null||z.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.P.currentPageAllowed=function(){return!this.isWatchPage};
_.P.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var M=this.positionData,z=M.initialTopPosition,J=M.initialHorizontalPosition;_.Tp(this.hostElement,{"--ytd-video-preview-translate-left":M.finalHorizontalPosition-J+"px","--ytd-video-preview-translate-top":M.finalTopPosition-z+"px","--ytd-video-preview-original-top-position":z+"px","--ytd-video-preview-original-horizontal-position":J+"px",
"--ytd-video-preview-initial-scale":"scale("+M.initialScale+")","--ytd-video-preview-width":M.videoPreviewWidth+"px","--ytd-video-preview-height":M.videoPreviewHeight+"px"});return!0};
_.P.handleOpenVideoPreviewAction=function(M){var z=this,J;return _.k(function(R){if(!z.currentPageAllowed())return R.return(0);z.opts=M;return(J=z.alignVideoPreviewForAnimation(M.thumbnail))?R.return(z.activate()):R.return(0)})};
_.P.onMouseLeave=function(M){this.shouldDeactivateOnMouseLeave(M)&&this.deactivate()};
_.P.onScroll=function(){var M,z;((M=this.opts)==null?0:M.isAutoplay)&&((z=this.opts)==null?0:z.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.P.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.no.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.P.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.P.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",O0.JSC$19015_DEFAULT_CLICK_LOCATION_BEHAVIOR,O0.JSC$19015_CLICK_LOCATION_ID_MAP)};
_.P.shouldDeactivateOnMouseLeave=function(M){M=M.relatedTarget;if(!M)return!0;var z;return(z=this.opts)!=null&&z.mediaRenderer?!_.ZE(this.opts.mediaRenderer).contains(M):!0};
_.P.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.P.onPlaybackStart=function(){var M=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19016_preventProgressSaveTimer=
_.BS(_.no,function(){M.resetPreventProgressSaveTimer()},1E4);
var z;if((z=this.opts)==null?0:z.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.BS(_.no,function(){M.hasMultipleVideoPreviews()?M.startPlaybackForNextVideo():M.deactivate()},this.opts.videoPreviewDurationMs);
var J;this.player.setGlobalCrop(((J=this.opts)==null?0:J.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.P.getRoundedCornersSize=function(){var M;if((M=this.opts)==null?0:M.roundedCornersSize){var z;return(z=this.opts)==null?void 0:z.roundedCornersSize}var J;if((J=this.opts)==null?0:J.enableRounding){var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="small")return 1;var D;if(((D=this.opts)==null?void 0:D.thumbnailSize)==="medium")return 2;var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="large")return 3}return _.U("web_imp_inset_progress_bar")?3:0};
_.P.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.P.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.P.onMediaContainerClick=function(M){this.isShortcutClick(M)||(this.navigateToWatch(M),M.preventDefault(),M.stopPropagation())};
_.P.activate=function(){var M=this,z,J,R,D,N,Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:if(!M.currentPageAllowed())return l.return(0);J=(z=M.videoPreviewData)==null?void 0:z.inlinePlaybackEndpoint;R=_.Ve.instance;if(!J||!R)return l.return(0);M.playbackIntentTriggered=!0;((D=M.opts)==null?0:D.mediaRenderer)&&((N=M.opts)==null||!N.isAutoplay)&&kw5(M.opts.mediaRenderer,function(){M.deactivate()});
_.C4(M,function(){M.revealPreviewUi()});
Z={};_.U("enable_unknown_lact_fix_on_html5")&&(_.JF().resolve(_.pn),Z.lact=_.Rf());M.videoPreviewFetchRequest=RVd(R,M.getInlinePlaybackRequestData(M.videoPreviewData),Z);_.Io(l,2);return l.yield(M.videoPreviewFetchRequest,4);case 4:B=l.yieldResult;if(((O=B)==null?void 0:(X=O.playabilityStatus)==null?void 0:X.status)==="OK")return l.return(M.handlePlayerResponse(B));throw Error("Oj");case 2:_.Qa(l),M.deactivate();case 3:return l.return(1)}})};
_.P.getInlinePlaybackRequestData=function(M){var z,J=_.U("web_imp_player_mute_params")?((z=this.opts)==null?void 0:z.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:M.inlinePlaybackEndpoint,startPlaybackInMutedState:J}};
_.P.handlePlayerResponse=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e;return _.k(function(Q){if(Q.nextAddress==1){J=z.getInlinePlaybackVideoId();if(!(((R=M)==null?0:(D=R.videoDetails)==null?0:D.videoId)&&z.currentPageAllowed()&&z.playbackIntentTriggered&&z.opts&&J))return z.deactivate(),Q.return(0);if(M.videoDetails.videoId!==J)return Q.return(0);z.enableAudioControls=!!((N=M.playerConfig)==null?0:(Z=N.inlinePlaybackConfig)==null?0:Z.showAudioControls);M.trackingParams=z.getInlinePlaybackTrackingParams();
if(!z.inlinePlayer)return Q.return(0);B={};if(X=_.G((O=z.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.Au))B.watch_endpoint=X;if(z.videoPreviewData){var v,x=(v=_.G(z.videoPreviewData.inlinePlaybackEndpoint,_.Au))==null?void 0:v.startTimeSeconds;x!==void 0&&(M.playerConfig||(M.playerConfig={}),M.playerConfig.playbackStartConfig||(M.playerConfig.playbackStartConfig={}),M.playerConfig.playbackStartConfig.startPosition||(M.playerConfig.playbackStartConfig.startPosition={}),M.playerConfig.playbackStartConfig.startSeconds=
x,M.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(x*1E3))}z.inlinePlayer.loadVideoWithPlayerResponse(M,B);if(z.JSC$19016_playerPromise)return Q.jumpTo(2);z.JSC$19016_playerPromise=z.inlinePlayer.getPlayerPromise();return Q.yield(z.JSC$19016_playerPromise,3)}Q.nextAddress!=2&&(l=Q.yieldResult,l.setInlinePreview(!0),l.setSizeStyle(!1,!0),z.ytPlayerListenerBehavior.listenToPlayerEvents(l,z.JSC$19016_playerEvents),z.player=l,_.Pv(z.hostElement,"player-api-ready"));((e=z.opts)==
null?0:e.showPlayerControls)&&z.videoPreviewData&&z.player&&(z.playerControlsData={playerResponse:M,isInlinePlayback:!0,thumbnailOverlays:z.videoPreviewData.thumbnailOverlays,playerApi:z.player},z.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!z.unroundCornersForPlayback,additionalButton:z.getAdditionalButtonType(z.videoPreviewData.thumbnailOverlays)});return Q.return(2)})};
_.P.revealPreviewUi=function(){var M=this;this.playbackIntentTriggered&&_.gIo(this,function(){M.hasThumbnailPositionChangedSinceTriggered()||(M.updateActiveState(!0),M.noAnimation=!1)})};
_.P.hasThumbnailPositionChangedSinceTriggered=function(){var M=this.positionData,z=this.getThumbnailPositionData();return(M==null?void 0:M.initialTopPosition)!==(z==null?void 0:z.initialTopPosition)||(M==null?void 0:M.initialHorizontalPosition)!==(z==null?void 0:z.initialHorizontalPosition)};
_.P.getThumbnailPositionData=function(){var M,z;if((z=this.opts)==null||!z.thumbnail)return null;z=this.opts.thumbnail;var J=((M=this.opts)==null?0:M.cropPlayerToFillThumbnailHorizontally)?!1:!0;var R=z.getBoundingClientRect();M=R.width;z=R.height;var D=R.top+window.scrollY;R=R.left+window.scrollX;var N=J?Math.ceil(M):M;J=J?Math.ceil(z):z;var Z=M/N;M={initialScale:Z,initialTopPosition:D-12*Z,finalTopPosition:D-12-(J-z)/2,initialHorizontalPosition:R-(12+(N-M)/2),finalHorizontalPosition:R-12-(N-M)/
2,videoPreviewWidth:N,videoPreviewHeight:J};return M};
_.P.updateActiveState=function(M){this.active=M;this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:M}))};
_.P.stopPlayer=function(M){M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(M)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.no.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.P.deactivate=function(M){M=M===void 0?{}:M;M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;YW&&(YW.disconnect(),YW=null);this.stopPlayer({resetWatchEndpointStartTime:M});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.P.isValidThumbnailOverlayButton=function(M,z){M=M.thumbnailOverlayButtonRenderer;var J;return!!M&&!!M.tooltip&&!((J=M.icon)==null||!J.iconType)&&z.includes(M.icon.iconType)};
_.P.isValidThumbnailOverlayButtonViewModel=function(M,z){var J;M=_.G((J=M.thumbnailOverlayButtonViewModel)==null?void 0:J.overlayButton,_.s3);return!!M&&!!M.title&&!!M.iconName&&z.includes(M.iconName)};
_.P.getAdditionalButtonType=function(M){var z=this;if(_.U("web_imp_fastforward_button"))return{button:1};if(_.U("web_imp_miniplayer_button"))return{button:2};if(_.U("web_imp_playback_speed_button"))return{button:3};var J=["BOX_STACK_3"],R=(M||[]).filter(function(N){return z.isValidThumbnailOverlayButton(N,J)}).map(function(N){return N.thumbnailOverlayButtonRenderer});
if(R.length)return{button:4,thumbnailOverlayButtonRenderers:R};var D=["BOX_STACK_3"];M=(M||[]).filter(function(N){return z.isValidThumbnailOverlayButtonViewModel(N,D)}).map(function(N){return _.G(N.thumbnailOverlayButtonViewModel.overlayButton,_.s3)});
if(M.length)return{button:4,thumbnailOverlayButtonViewModels:M}};
_.P.allowCaptions=function(){var M;return!((M=this.opts)==null?0:M.forceCaptionsOff)};
_.P.allowUnmuting=function(){var M;return this.enableAudioControls&&!((M=this.opts)==null?0:M.forceMutedVolume)};
_.P.beginStartTimeUpdater=function(){var M=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.O7(function(){M.updateWatchEndpointStartTime()},1E3)};
_.P.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.P.resetPreventProgressSaveTimer=function(){this.JSC$19016_preventProgressSaveTimer!==null&&(_.no.cancelJob(this.JSC$19016_preventProgressSaveTimer),this.JSC$19016_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.P.updateWatchEndpointStartTime=function(M){var z=this.videoPreviewData;if(this.player&&z!=null&&z.inlinePlaybackEndpoint&&!this.JSC$19016_preventProgressSaveTimer){M=M?0:Math.floor(this.player.getCurrentTime());var J=_.G(z.navigationEndpoint,_.Au);J&&(J.startTimeSeconds=M);if(z=_.G(z.inlinePlaybackEndpoint,_.Au))z.startTimeSeconds=M}};
_.P.isShortcutClick=function(M){return!!M&&(M.ctrlKey||M.shiftKey||M.metaKey)};
_.P.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.P.openInMiniplayer=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1){J=(z=M.videoPreviewData)==null?void 0:z.navigationEndpoint;if(!J)return R.return();_.x9().lockupActivation=!0;return R.yield(_.BUg(_.JF().resolve(_.q5),J),2)}_.x9().userActivation=!0;_.UI(R)})};
_.P.navigateToWatch=function(M){var z,J=(z=this.videoPreviewData)==null?void 0:z.navigationEndpoint;if(J){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(J,M,!0);else{var R;_.U("web_thumbnail_to_watch_transition")&&((R=this.opts)==null?0:R.thumbnail)&&_.STg(_.JF().resolve(_.xm),this.opts.thumbnail);_.Pv(this.hostElement,"yt-navigate",{endpoint:J})}this.deactivate()}};
_.P.getInlinePlaybackVideoId=function(){var M,z;return(z=_.G((M=this.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.Au))==null?void 0:z.videoId};
_.P.getInlinePlaybackTrackingParams=function(){var M,z;return(M=this.videoPreviewData)==null?void 0:(z=M.inlinePlaybackEndpoint)==null?void 0:z.clickTrackingParams};
_.P.hasMultipleVideoPreviews=function(){var M;return!!(((M=this.opts)==null?0:M.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.P.startPlaybackForNextVideo=function(){var M;(M=this.opts)!=null&&M.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.rX.Object.defineProperties(O0.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null?0:M.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null||!M.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var M;if(Array.isArray((M=this.opts)==null?void 0:M.videoPreviewData)){var z;return(z=this.opts)==null?void 0:z.videoPreviewData[this.videoPreviewDataIndex]}var J;return(J=this.opts)==null?void 0:J.videoPreviewData}}});
O0.prototype.onIsAdsVideoChange=O0.prototype.onIsAdsVideoChange;O0.prototype.onInlinePreviewIsEnabledChange=O0.prototype.onInlinePreviewIsEnabledChange;O0.prototype.optsChanged=O0.prototype.optsChanged;O0.prototype.onMouseLeave=O0.prototype.onMouseLeave;O0.JSC$19015_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);O0.JSC$19015_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"}];
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],O0.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],O0.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],O0.prototype,"componentBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],O0.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.kk.YtSparklesClickLocationBehavior),_.W("design:type",Object)],O0.prototype,"ytSparklesClickLocationBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],O0.prototype,"opts",void 0);_.u([_.Y(),_.W("design:type",Object)],O0.prototype,"playerControlsData",void 0);
_.u([_.Y(),_.W("design:type",Object)],O0.prototype,"playerControlsAppApi",void 0);_.u([_.Y(),_.W("design:type",Object)],O0.prototype,"playerControlsOptions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O0.prototype,"noAnimation",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O0.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O0.prototype,"active",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O0.prototype,"playing",void 0);_.u([_.Y({selector:_.fuo}),_.W("design:type",Boolean)],O0.prototype,"inlinePreviewIsEnabled",void 0);_.u([_.Y(),_.W("design:type",String)],O0.prototype,"pagePath",void 0);_.u([_.Y({selector:_.aup}),_.W("design:type",Boolean)],O0.prototype,"isWatchPage",void 0);_.u([_.F("videoPreviewData"),_.W("design:type",Object),_.W("design:paramtypes",[])],O0.prototype,"thumbnailData",null);
_.u([_.F("opts","active"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"hidePlayerControls",null);_.u([_.F("opts"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"isAdsVideo",null);_.u([_.F("opts"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"roundedCornersSmall",null);
_.u([_.F("opts"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"roundedCornersMedium",null);_.u([_.F("opts"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"roundedCornersLarge",null);_.u([_.F("opts"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],O0.prototype,"unroundCornersForPlayback",null);
_.u([_.F("opts","videoPreviewDataIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],O0.prototype,"videoPreviewData",null);_.u([_.Y(),_.W("design:type",Object)],O0.prototype,"videoPreviewDataIndex",void 0);_.u([_.Qc("#inline-player"),_.W("design:type",Object)],O0.prototype,"inlinePlayer",void 0);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],O0.prototype,"onMouseLeave",null);
_.u([_.wH("opts"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O0.prototype,"optsChanged",null);_.u([_.wH("inlinePreviewIsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O0.prototype,"onInlinePreviewIsEnabledChange",null);_.u([_.la("isAdsVideo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O0.prototype,"onIsAdsVideoChange",null);
_.u([_.c({is:"ytd-video-preview",disableElementRegistration:!0})],O0);
_.d(O0,"ytd-video-preview",function(){if(KhG!==void 0)return KhG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return KhG=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var TWG,Iww,ogG;TWG=function(M){return _.U("kevlar_watch_cinematics_invisible")||M.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_fullscreen")||M.theater&&!M.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_theater")};
Iww=function(){var M=document.createElement("canvas"),z=M.getContext("2d");if(!z)throw Error("qo");_.uo(M,{position:"absolute",width:"100%",height:"100%"});return{element:M,context:z}};
ogG=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.U("kevlar_watch_cinematics_css_blur")};
_.XqG=function(M,z,J){return Math.abs(M-z)<=(J||1E-6)};
_.lwt=function(M,z){return M==z?!0:M&&z?M.width==z.width&&M.height==z.height:!1};_.ept=new _.R_("notificationActionRenderer");var QiG=function(M){var z=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Iz;this.element.addEventListener("load",function(){z.loaded=!0;z.resolver.resolve(z.element)});
this.element.addEventListener("error",function(){z.failed=!0});
this.element.src=M};var Ur5=function(M,z){this.image=M;this.frame=z};
Ur5.prototype.drawToCanvas=function(M,z){var J=this.frame.width/this.frame.columns,R=this.frame.height/this.frame.rows,D=z.offsetX,N=z.offsetY;TWG(z)?(M.fillStyle=z.fullscreen?"#000":"#0f0f0f",M.fillRect(D,N,(z==null?void 0:z.width)||J,(z==null?void 0:z.height)||R)):M.drawImage(this.image,this.frame.column*J,this.frame.row*R,J,R,D,N,(z==null?void 0:z.width)||J,(z==null?void 0:z.height)||R)};
var vg5=function(M){this.color=M};
vg5.prototype.drawToCanvas=function(M,z){var J=z.offsetX,R=z.offsetY,D=z.width,N=z.height;M.fillStyle=TWG(z)?z.fullscreen?"#000":"#0f0f0f":this.color;M.fillRect(J,R,D,N)};var Jc=function(M,z){_.lk.call(this);this.playerApi=z;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.eU(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();G6G(this,M);wqw(this);this.update()};
_.w(Jc,_.lk);Jc.prototype.addEventListeners=function(){var M=this,z=function(){M.update()},J=function(D){M.paused||(D.type==="newdata"&&(M.mosaics.clear(),xrw(M),Ra(M)),wqw(M),M.update())},R=function(){M.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",z);this.playerApi.addEventListener("onVideoDataChange",J);this.playerApi.addEventListener("onStateChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoProgress",z);M.playerApi.removeEventListener("onVideoDataChange",J);M.playerApi.removeEventListener("onStateChange",R)})};
var G6G=function(M,z){M.cinematicContainerRenderer!==z&&(M.cinematicContainerRenderer=z,xrw(M),Ra(M),M.colorStoreUpdateJobId=_.no.addLowPriorityJob(function(){var J;if((J=M.cinematicContainerRenderer.colorStore)!=null&&J.sampledColors){J=Infinity;for(var R=_.S(M.cinematicContainerRenderer.colorStore.sampledColors),D=R.next();!D.done;D=R.next()){D=D.value;var N=Number(D.key);N!==0&&N<J&&(J=N);N=_.qG(D.value);M.colorStore.set(D.key,N)}M.colorStoreTimeInterval=J}}))},xrw=function(M){M.colorStoreUpdateJobId&&
(_.no.cancelJob(M.colorStoreUpdateJobId),M.colorStoreUpdateJobId=void 0);
M.colorStore.clear();M.currentStoryboardColor=void 0},tQi=function(M,z){var J;
return(J=M.getStoryboardFrame(z))==null?void 0:J.url};
Jc.prototype.onPlayerStateChange=function(){this.update()};
Jc.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var wqw=function(M){var z=M.getStoryboardFrame(0);z&&(z=new _.eU(z.width/z.columns,z.height/z.rows),_.lwt(M.currentStoryboardSize,z)||(M.currentStoryboardSize=z,M.publish("STORYBOARD_SIZE_CHANGED",M.currentStoryboardSize)))},jim=function(M,z){M.currentStoryboardIndex=z;
M.pendingStoryboardIndex=NaN;z=M.getStoryboardFrame(M.currentStoryboardIndex);M.currentStoryboard=new Ur5(M.mosaics.get(z.url).element,z);M.publish("STORYBOARD_CHANGED",M.currentStoryboard);M.lastUpdateTime=(0,_.zU)()};
Jc.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Ra=function(M){M.currentStoryboardIndex=NaN;M.pendingStoryboardIndex=NaN;M.currentStoryboard&&(M.currentStoryboard=void 0,M.publish("STORYBOARD_CHANGED",void 0));M.lastUpdateTime=NaN};
Jc.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Ra(this);else{var M=this.playerApi.getPlayerState(1);if(M===-1||M===5||M===0)Ra(this);else if(isNaN(this.lastUpdateTime)||!((0,_.zU)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(M=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){M=""+Math.round(M*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var z=this.colorStore.get(M);z?z!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=z,this.currentStoryboard=new vg5(z),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.zU)()):(_.yA(new _.xN("Could not find color for timestamp: "+M,this.cinematicContainerRenderer)),Ra(this))}else Ra(this);else pqw(this,M)}};
var pqw=function(M,z){var J=M.getStoryboardFrameIndex(z);if(J!==M.currentStoryboardIndex&&J!==M.pendingStoryboardIndex){z=tQi(M,J);var R=M.mosaics.get(z);R?R.loaded&&jim(M,J):(M.pendingStoryboardIndex=J,J=new QiG(z),M.mosaics.set(z,J),J.resolver.promise.then(function(){if(!M.isDisposed()&&!M.paused&&!isNaN(M.pendingStoryboardIndex)){var D=tQi(M,M.pendingStoryboardIndex);if(D){var N;(N=M.mosaics.get(D))!=null&&N.loaded&&jim(M,M.pendingStoryboardIndex)}else Ra(M)}}))}};
Jc.prototype.getStoryboardFrameIndex=function(M){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(M,z)};
Jc.prototype.getStoryboardFrame=function(M){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,J,R;return((R=(J=this.playerApi).getStoryboardFrame)==null?void 0:R.call(J,M,z))||null};
Jc.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var NX=function(M,z,J,R){R=R===void 0?!1:R;_.wS.call(this);this.cinematicContainerRenderer=z;this.playerApi=J;this.theater=this.fullscreen=!1;var D;this.ambientLightThemeEnabled=!R&&!!(z==null?0:(D=z.config)==null?0:D.enableInLightTheme);this.ambientFullscreenEnabled=R&&_.U("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=R&&_.U("web_cinematic_theater_mode");this.container=document.createElement("div");M.appendChild(this.container);var N;if(_.U("web_cinematic_theater_mode")||_.U("web_cinematic_fullscreen")||
(z==null?0:(N=z.config)==null?0:N.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);Fuw(this);M=this.ambientV2Container||this.container;this.backCanvas=Iww();this.frontCanvas=Iww();M.appendChild(this.backCanvas.element);M.appendChild(this.frontCanvas.element);this.storyboardManager=new Jc(z,this.playerApi);_.OC(this,this.storyboardManager);this.addEventListeners();Yl5(this)?mru(this,100+Dx(this)*3*2,100+Dx(this)*3*2):ggs(this);
sil(this,this.storyboardManager.currentStoryboard)};
_.w(NX,_.wS);var Fuw=function(M){M.ambientV2Container?ngl(M):(_.uo(M.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+hpd(M)+", "+yZl(M)+")"}),ogG()&&_.uo(M.container,"filter","blur("+_.NC("cinematic_watch_css_filter_blur_strength",40)+"px)"))},ngl=function(M){if(M.ambientV2Container){var z=M.playerApi.getVideoAspectRatio();
_.uo(M.container,{"aspect-ratio":""+z,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.uo(M.ambientV2Container,{"aspect-ratio":""+z,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+hpd(M)+", "+yZl(M)+")"});ogG()&&_.uo(M.ambientV2Container,"filter","blur("+_.NC("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
NX.prototype.setFullscreen=function(M,z){this.fullscreen=M;this.theater=!!z;Fuw(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),M=this.storyboardManager.currentStoryboard,H5w(this),M&&cZd(this,M)};
NX.prototype.addEventListeners=function(){var M=this,z=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(D){sil(M,D)}),J=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){ggs(M)});
this.addOnDisposeCallback(function(){M.storyboardManager.unsubscribeByKey(z);M.storyboardManager.unsubscribeByKey(J)});
if(this.ambientV2Container){var R=function(){ngl(M)};
this.playerApi.addEventListener("onVideoDataChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoDataChange",R)})}};
var ggs=function(M){if(!Yl5(M)){var z=M.storyboardManager.currentStoryboardSize;isNaN(z.width)||isNaN(z.height)||mru(M,Number(z.width)+Dx(M)*3*2,Number(z.height)+Dx(M)*3*2)}},mru=function(M,z,J){M.backCanvas.element.width=z;
M.backCanvas.element.height=J;M.frontCanvas.element.width=z;M.frontCanvas.element.height=J},Yl5=function(M){return M.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},sil=function(M,z,J){J=J===void 0?!1:J;
var R=M.frontCanvas.element.getAnimations()[0];R?(R.pause(),M.backCanvas.context.globalAlpha=Number(getComputedStyle(M.frontCanvas.element).opacity),M.frontCanvas.element.style.opacity="0",R.finish()):M.backCanvas.context.globalAlpha=1;M.backCanvas.context.drawImage(M.frontCanvas.element,0,0,M.backCanvas.element.width,M.backCanvas.element.height);H5w(M);z&&cZd(M,z);z=z?M.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.NC("cinematic_watch_fade_out_duration",500);R=_.NC("cinematic_watch_transition_frame_rate")/
1E3;var D={};R&&(D={easing:"steps("+Math.round(z*R)+")"});(J===void 0?0:J)||M.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:z,iterations:1},D));M.frontCanvas.element.style.opacity="1"},H5w=function(M){var z=M.ambientLightThemeEnabled||M.ambientTheaterModeEnabled,J=M.ambientLightThemeEnabled||M.ambientFullscreenEnabled;
M.frontCanvas.context.fillStyle=M.theater&&z||M.fullscreen&&J?"#000":"#0f0f0f";ogG()||(M.frontCanvas.context.filter="blur(0)");M.frontCanvas.context.fillRect(0,0,M.frontCanvas.element.width,M.frontCanvas.element.height)},cZd=function(M,z){ogG()||(M.frontCanvas.context.filter="blur("+Dx(M)+"px)");
M.frontCanvas.context.globalAlpha=M.fullscreen&&M.ambientFullscreenEnabled||M.theater&&M.ambientTheaterModeEnabled?_.NC("cinematic_watch_effect_letterbox_opacity",.4):_.NC("cinematic_watch_effect_opacity",.4);var J={offsetX:Dx(M)*3,offsetY:Dx(M)*3,theater:M.theater,fullscreen:M.fullscreen};Yl5(M)&&(J.width=100,J.height=100);z.drawToCanvas(M.frontCanvas.context,J);M.frontCanvas.context.globalAlpha=1},Dx=function(M){var z;
return(z=M.cinematicContainerRenderer.config.blurStrength)!=null?z:5},hpd=function(M){var z,J;
if((M.fullscreen||M.theater)&&((z=M.cinematicContainerRenderer.config)==null?0:(J=z.watchFullscreenConfig)==null?0:J.colorSourceWidthMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier},yZl=function(M){var z,J;
if((M.fullscreen||M.theater)&&((z=M.cinematicContainerRenderer.config)==null?0:(J=z.watchFullscreenConfig)==null?0:J.colorSourceHeightMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
NX.prototype.disposeInternal=function(){_.wS.prototype.disposeInternal.call(this);this.container.remove()};
NX.prototype.clear=function(){sil(this,void 0,!0)};
NX.prototype.pause=function(){this.storyboardManager.pause()};var drw;drw=_.tw(function(){var M,z,J=!((z=(M=document.createElement("canvas")).getContext)==null||!z.call(M,"2d")),R;M=!((R=CSS)==null||!R.supports("filter: blur(0)"));R=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var D;return J&&M&&R&&!((D=CSS)==null||!D.supports("aspect-ratio: 1 / 1"))});
_.PF=function(M,z){_.lk.call(this);this.container=M;this.playerApi=z;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Kuu(this);this.update()};
_.w(_.PF,_.lk);_.$rw=function(M){var z=document.documentElement.hasAttribute("dark");M.isDarkModeEnabled=z;M.update()};
_.uVl=function(M,z){M.settingEnabled=z;M.update()};
_.PF.prototype.setFullscreen=function(M,z){this.fullscreen=M;this.theater=!!z;this.update()};
_.qll=function(M,z){M.cinematicContainerRenderer=z;M.cinematicContainerRenderer&&(M.cinematicsVe=_.O3(M.isShorts()?227858:159022),_.ln(_.Gm(),M.cinematicsVe),M.loggingClientData={watchCinematicContainerData:{presentationStyle:M.cinematicContainerRenderer.presentationStyle}});M.update()};
_.PF.prototype.isShorts=function(){var M,z;return((M=this.cinematicContainerRenderer)==null?void 0:(z=M.config)==null?void 0:z.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.PF.prototype.isAllowed=function(){var M;if(M=drw()){var z,J,R;M=((J=this.cinematicContainerRenderer)==null?void 0:J.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((R=this.cinematicContainerRenderer)==null||!R.colorStore)||((z=this.cinematicContainerRenderer)==null?void 0:z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(M)if(_.U("web_cinematics_pausing")){var D,N;M=this.isDarkModeEnabled||!!((D=this.cinematicContainerRenderer)==
null?0:(N=D.config)==null?0:N.enableInLightTheme)}else{var Z,B;D=!!((Z=this.cinematicContainerRenderer)==null?0:(B=Z.config)==null?0:B.enableInLightTheme)&&(_.HW("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);M=this.isDarkModeEnabled||D}if(Z=M){var O,X;Z=!((X=(O=this.prefersReducedMotionQuery)==null?void 0:O.matches)!=null&&X)}return Z};
_.Wut=function(M){(M=M.currentCinematicEffect)!=null&&(M=M.storyboardManager,M.paused=!1,wqw(M),M.update())};
_.PF.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Kuu=function(M){if(!_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var z=window.matchMedia("(prefers-reduced-motion: reduce)"),J=function(){M.update()};
z.addListener(J);M.addOnDisposeCallback(function(){z.removeListener(J)});
return z}};
_.PF.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var M=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new NX(this.container,M,this.playerApi,this.isDarkModeEnabled),_.OC(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var z=this.currentCinematicEffect;z.cinematicContainerRenderer!==
M&&(z.cinematicContainerRenderer=M,G6G(z.storyboardManager,M),Fuw(z));M=_.vv();_.GV(0,194,!0);M.save();M=_.y5();this.cinematicsVe&&M&&_.VC(M,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(M=_.y5(),this.cinematicsVe&&M&&_.Ef(M,[this.cinematicsVe],!1,this.loggingClientData),_.bv(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.rX.Object.defineProperties(_.PF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Kki;var $Ri;_.sV({_template:function(){if($Ri!==void 0)return $Ri;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=
M.content,J=z.insertBefore;Kki===void 0&&(Kki=document.createElement("template"));var R=Kki;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return $Ri=M},
is:"tp-yt-iron-pages",behaviors:[_.Hw,_.fd],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Wjt;_.aiw=function(){if(_.U("kevlar_home_skeleton")&&!Wjt){var M=document.querySelector("#home-page-skeleton");M&&(_.hd("hgcr"),_.eJ(M),Wjt=!0)}};
Wjt=!1;_.gY=new _.R_("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var tLw,pON,FBm,Ynw,mem,gwm,sWc,nwl,yfw,H0i,cfv,$em,qni,WBu,u0w,dew,KBw,Ewc;_.xel=function(M,z,J){z=z===void 0?5:z;if(z!==0){var R=typeof M==="function"?M():document.querySelector(M);R?(J==null?0:J.enableSmartFocus)?_.Low(R):R.focus():setTimeout(function(){_.xel(M,z-1,J)},500)}};
tLw=function(M){return String.raw.apply(String,[{raw:M}].concat(_.Yj(_.H4.apply(1,arguments).map(function(z){return z instanceof Array?z.join(""):z}))))};
pON=function(M){var z=_.H4.apply(1,arguments),J=z.length;if(!Array.isArray(M)||!Array.isArray(M.raw)||M.length!==M.raw.length||!_.k8B&&M===M.raw||!(_.k8B&&!_.BRB||_.tr(M))||J+1!==M.length)throw new TypeError("$");return new jWd(Object.freeze({strings:Object.freeze(M),args:Object.freeze(z)}))};
FBm=function(M){return _.Zmn(_.SLH(M&16777215))<.5};
Ynw=function(M,z,J){var R=J.minimumRowsOfVideosBetweenSections===void 0?1:J.minimumRowsOfVideosBetweenSections;return M<(J.minimumRowsOfVideosAtStart===void 0?2:J.minimumRowsOfVideosAtStart)||z!==null&&M-z<=R?!1:!0};
mem=function(M,z){var J=0,R=0;M=_.S(M);for(var D=M.next();!D.done;D=M.next()){var N=D.value;if(N.richItemRenderer)N.richItemRenderer.rowIndex=R,N.richItemRenderer.colIndex=J++,J===z&&(J=0,R++);else if(N.richGroupRenderer&&N.richGroupRenderer.numColumns!==void 0)N.richGroupRenderer.rowIndex=R,N.richGroupRenderer.colIndex=J,J+=N.richGroupRenderer.numColumns,J===z&&(J=0,R++);else if(N.richSectionRenderer){var Z=D=void 0;if(N=_.G((D=N)==null?void 0:(Z=D.richSectionRenderer)==null?void 0:Z.content,_.lFV))N.rowIndex=
R++}}};
gwm=function(M,z){var J=z.contentElement;z=z.rendererToTagNameMap;if(J&&z&&z.size!==0){for(var R=new Map,D=_.S(J.children),N=D.next();!N.done;N=D.next()){N=N.value;var Z=N.tagName.toLowerCase(),B=R.get(Z);B||(B=[],R.set(Z,B));B.push(N)}if(R.size!==0)for(D=Math.min(M.length,J.children.length),N=new Map,Z=0;Z<D;Z++){B=Object.keys(M[Z])[0];B=z.get(B);if(!B)break;var O=N.get(B);O===void 0&&(O=0,N.set(B,O));var X=R.get(B);if(!X||O>=X.length)break;N.set(B,O+1);B=X[O];O=J.children[Z];O!==B&&(_.MA0=!0,_.zkp.set(B,
!0),J.insertBefore(B,O),_.zkp.delete(B),_.MA0=!1)}}};
sWc=function(M,z,J,R,D,N,Z){R=R===void 0?{}:R;if(!M||!M.length)return{orderedContent:[]};M=M.slice();var B=[],O=[];D=null;for(var X=0,l=function(b){O.sort(function(L,z8){return z8.skippedOnRow-L.skippedOnRow});
for(var V,E=(V=O.shift())==null?void 0:V.content;E;)!E.richSectionRenderer&&b||B.push(E),V=void 0,E=(V=O.shift())==null?void 0:V.content},e=void 0,Q=void 0,v=new Set;M.length>0||O.length>0;){for(var x=[],m=z;m>0;){var y=void 0,H=void 0,q=(H=O[0]&&O[0].skippedOnRow<X?(y=O.shift())==null?void 0:y.content:void 0)!=null?H:M.shift();
if(!q)break;if(q.richItemRenderer)y=q.richItemRenderer.targetId,H=void 0,y&&((H=Z)==null?0:H.has(y))&&(H=Z.get(y),!e||H&&H.timestamp>e.timestamp)&&(e=H,Q&&v.add(Q),Q=y),x.push(q),m--;else if(q.richGroupRenderer&&q.richGroupRenderer.numColumns!==void 0)q.richGroupRenderer.numColumns<=m?(x.push(q),m-=q.richGroupRenderer.numColumns):m===z&&q.richGroupRenderer.numColumns>z?(x.push({richGroupRenderer:Object.assign({},q.richGroupRenderer,{numColumns:z})}),m=0):O.push({content:q,skippedOnRow:X});else if(q.richSectionRenderer)if(Ynw(X,
D,R)&&m===z){B.push(q);D=X;X++;continue}else O.push({content:q,skippedOnRow:X});else if(q.continuationItemRenderer){l(!0);B.push(q);m=0;break}if(m===0)B.push.apply(B,_.Yj(x));else if(!J&&M.length===0){l(!1);B.push.apply(B,_.Yj(x));m=0;break}}X++;e&&(B.push(e.content),X++);Q=e=void 0}mem(B,z);N&&gwm(B,N);return{orderedContent:B,pinnedContentNotShownTargetIds:v}};
nwl=function(){return _.H4.apply(0,arguments).flat().filter(function(M){return M}).join(";")};
yfw=function(){return pON(hRu,nwl.apply(null,_.Yj(_.H4.apply(0,arguments))))};
H0i=function(M){switch(M){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
cfv=function(M){return M.talkToRecs};
$em=function(M,z){if(z){var J=_.rA().getState().entities.flowStateEntity,R=dew(M),D=[z];R&&R!==z&&D.push(R);var N=!0,Z;if(J&&M.flowStateEntityKey&&((Z=J[M.flowStateEntityKey])==null?void 0:Z.primaryButtonDisabled)!==void 0){var B;N=!((B=J[M.flowStateEntityKey])==null||!B.primaryButtonDisabled)}KBw(M,R!=null?R:z,D,N)}};
qni=function(M){return _.jx(_.rA(),function(z){return z.entities.flowStateEntity},function(z,J){if(M.flowStateEntityKey){var R,D=z==null?void 0:(R=z[M.flowStateEntityKey])==null?void 0:R.currentStepId,N;
J=J==null?void 0:(N=J[M.flowStateEntityKey])==null?void 0:N.currentStepId;N=_.rA().getState().talkToRecs;if(D&&D!==J){var Z;z=(z==null?void 0:(Z=z[M.flowStateEntityKey])==null?void 0:Z.stepIdStack)||Object.keys(N.stepStates);Z=!u0w(N==null?void 0:N.stepStates[D]);KBw(M,D,z,Z)}}})};
WBu=function(M){return _.jx(_.rA(),cfv,function(z){var J=dew(M);if(J){var R=Object.keys(z.stepStates);z=!u0w(z==null?void 0:z.stepStates[J]);KBw(M,J,R,z)}})};
u0w=function(M){var z=Object.keys((M==null?void 0:M.selectionStates)||{}).reduce(function(N,Z){return N||(M==null?void 0:M.selectionStates[Z].isSelected)},!1),J,R,D=!!(M==null?0:(J=M.userQuery)==null?0:(R=J.userQuery)==null?0:R.trim());
return z||D};
dew=function(M){if(M.flowStateEntityKey){var z,J,R=(z=_.rA().getState().entities.flowStateEntity)==null?void 0:(J=z[M.flowStateEntityKey])==null?void 0:J.currentStepId;if(R)return R}};
KBw=function(M,z,J,R){_.rA().dispatch(_.pf("flowStateEntity",M.flowStateEntityKey,{currentStepId:z,stepIdStack:J,key:M.flowStateEntityKey,primaryButtonDisabled:R}))};
_.alw=function(M,z){return _.Is(M.entities,"youchatPendingResponseEntity",z)};
_.VLw=function(M){return function(z){_.Cd(_.pf("youchatPendingResponseEntity",M,{entityKey:M,isPendingResponse:z}))}};
Ewc=function(M){M==null||M.addEventListener("DOMLoaded",function(){M.goToAndPlay(M.totalFrames-48,!0)})};
_.Cq=function(M){this.__isSoyCss=!0;this.css=tLw.apply(null,[M.strings].concat(_.Yj(M.args)))};
_.Cq.prototype.toString=function(){return this.css};
var jWd=function(){_.Cq.apply(this,arguments)};
_.w(jWd,_.Cq);var hRu=_.Ca(["",""]);var flu;var LBm;_.sV({_template:function(){if(LBm!==void 0)return LBm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
var z=M.content,J=z.insertBefore;flu===void 0&&(flu=document.createElement("template"));var R=flu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return LBm=M},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Afd=new _.R_("talkToRecsFlowRenderer");var i0c=new _.R_("flowRootRenderer");var Cyt=new _.R_("learningJourneyQuizViewModel");var b0w=new _.R_("chipsShelfViewModel");var rfw=new _.R_("responsiveContainerConfiguration");var MTw=new _.R_("horizontalShelfViewModel");_.zEc=new _.R_("engagementPanelSectionListRenderer");var JHl=new _.R_("conversationResourceViewModel");var REi=function(){this.horizontal=!1},DMl=function(M,z){M.horizontal=z};
REi.prototype.position=function(M,z,J,R){R=R===void 0?1:R;M=this.delta(M)*R+z;R=Math.max(z,J);return M>=Math.min(z,J)&&M<=R?M:J};
REi.prototype.axis=function(M){M=this.direction(M);return M==="up"||M==="down"?"Y":"X"};var BO=function(M,z,J){z=z===void 0?_.nZ():z;this.target=M;this.manager=z;this.touchAction=J;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
BO.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(_.Yj(this.events)));for(var M=_.S(this.events),z=M.next();!z.done;z=M.next())this.listen(z.value)}};
BO.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Yj(this.events)));for(var M=_.S(this.events),z=M.next();!z.done;z=M.next())this.unlisten(z.value)}};
BO.prototype.listen=function(M){this.eventMap[M]&&this.target.addEventListener(M,this.eventMap[M])};
BO.prototype.unlisten=function(M){this.eventMap[M]&&this.target.removeEventListener(M,this.eventMap[M])};var On=function(){REi.apply(this,arguments)};
_.w(On,REi);On.prototype.direction=function(M){var z=M.detail;M=z.deltaY;z=z.deltaX;return M&&!this.horizontal?M>0?"down":"up":z&&this.horizontal?z>0?"right":"left":"none"};
On.prototype.distance=function(M){return Math.abs(this.delta(M))};
On.prototype.delta=function(M){var z=this.direction(M),J=M.detail;M=J.deltaX;J=J.deltaY;return z==="up"||z==="down"?J||0:M||0};
On.prototype.velocity=function(M){var z=this.direction(M),J=M.detail;M=J.velocityX;J=J.velocityY;return Math.abs(z==="up"||z==="down"?J||0:M||0)};_.Tq=function(M,z,J,R,D,N){D=D===void 0?new On:D;N=N===void 0?_.nZ():N;BO.call(this,z,N,R);var Z=this;this.element=M;this.target=z;this.config=J;this.input=D;this.manager=N;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Z.config.draggingClass&&Z.element.classList.add(Z.config.draggingClass);Z.config.startAction&&Z.config.startAction()};
this.onPanMove=function(B){var O=Nac(Z,B);if(O){Z.move(B,O);O.fade&&Z.fade(B,O);var X=Z.input.direction(B);O.moveAction&&O.moveAction(Pcl(Z,B,O),X)}};
this.onPanEnd=function(B){var O,X,l,e,Q,v;return _.k(function(x){if(x.nextAddress==1){Z.animationRequestId&&cancelAnimationFrame(Z.animationRequestId);Z.animationRequestId=void 0;O=Nac(Z,B);if(!O)return x.return();X=O;l=X.triggerAction;e=X.fade;Q=X.disableFinish;v=X.translateBack;var m=Z.input.velocity(B),y=Z.input.distance(B),H=Z.threshold(O);return m>.3&&y>10||y>H?Q?x.jumpTo(6):e?x.yield(SxN(Z,B),6):x.yield(Ziw(Z,B,O),6):v?x.yield(Z.translateBack(B),3):x.jumpTo(3)}x.nextAddress!=3&&l&&l();Z.config.draggingClass&&
Z.element.classList.remove(Z.config.draggingClass);Z.reset();_.UI(x)})};
M=Object.keys(J.triggers);this.directions=new Set(M);DMl(this.input,this.directions.has("right")||this.directions.has("left"))};
_.w(_.Tq,BO);_.Tq.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Nac=function(M,z){z=M.input.direction(z);return M.config.triggers[z]};
_.Tq.prototype.move=function(M,z){var J=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var R=J.input.axis(M),D=J.input.position(M,J.config.startPosition,z.endPosition,z.moveRatio||1);J.element.style.transform="translate"+R+"("+D+"px)";J.animationRequestId=void 0}))};
var Pcl=function(M,z,J){var R=J.moveRatio||1;J=Math.abs(M.config.startPosition-J.endPosition);return Math.min(M.input.distance(z)*R,J)/J};
_.Tq.prototype.fade=function(M,z){var J=z.endOpacity;M=Pcl(this,M,z);M>0&&(this.element.style.opacity=""+(((J||0)-1)*M+1))};
_.Tq.prototype.threshold=function(M){return M.threshold?M.threshold:Math.abs(M.endPosition-this.config.startPosition)/3};
var Ziw=function(M,z,J){var R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1)return R=M.input.delta(z)+M.config.startPosition,D=M.input.axis(z),N=J,Z=N.endPosition,B=N.transitionEndPosition,X=(O=B)!=null?O:Z,l.yield(M.element.animate([{transform:"translate"+D+"("+R+"px)"},{transform:"translate"+D+"("+X+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+D+"("+X+"px)";_.UI(l)})};
_.Tq.prototype.translateBack=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1){if(!z.element.style.transform)return D.return();J=z.input.axis(M);R=z.config.startPosition;return D.yield(z.element.animate([{transform:z.element.style.transform},{transform:"translate"+J+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}z.element.style.transform="translate"+J+"("+R+"px)";_.UI(D)})};
var SxN=function(M,z){var J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return J=M.input.delta(z)+M.config.startPosition,R=M.input.axis(z),D=J+70,N=M.element.style.opacity===""?1:M.element.style.opacity,Z.yield(M.element.animate([{transform:"translate"+R+"("+J+"px)",opacity:N},{transform:"translate"+R+"("+D+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+R+"("+D+"px)";M.element.style.opacity="0";_.UI(Z)})};var IW=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.scrollRate=3;M.autoScrollAnimationStart=0;M.autoScrollPaused=!1;M.autoScrollRafId=0;return M};
_.w(IW,_.vU);_.P=IW.prototype;_.P.created=function(){var M=this;this.boundAutoScrollHandler=function(z){M.autoScroll(z)}};
_.P.detached=function(){this.hostElement.removeEventListener("mouseout",_.ou(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ou(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ou(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.P.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ou(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ou(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ou(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ou(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ou(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ou(this,this.endAutoScroll)),this.endAutoScroll())};
_.P.autoScroll=function(M){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=M);var z;if(z=!this.autoScrollPaused&&this.scrollTarget)z=this.scrollTarget,z=z.scrollHeight-z.scrollTop!==z.clientHeight;z&&(z=1E3/this.scrollRate,M-=this.autoScrollAnimationStart,M>z&&(this.scrollTarget.scrollTop+=Math.ceil(M/z),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.P.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.P.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
IW.prototype.autoScrollEnabledChanged=IW.prototype.autoScrollEnabledChanged;_.u([_.Y(),_.W("design:type",Object)],IW.prototype,"scrollRate",void 0);_.u([_.Y(),_.W("design:type",Object)],IW.prototype,"scrollTarget",void 0);_.u([_.Y(),_.W("design:type",Boolean)],IW.prototype,"autoScrollEnabled",void 0);_.u([_.la("autoScrollEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IW.prototype,"autoScrollEnabledChanged",null);_.u([_.Gp()],IW);_.kHl=[IW.prototype];var BaN;var oW=function(){var M=_.g.apply(this,arguments)||this;M.buttonUpdate=_.U("web_button_rework");M.dismissButtonOverrides=_.U("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;M.forceDarkTheme=!1;M.forceLightTheme=!1;M.dynamicTextHeight=94;M.hasOverflowButton=!1;M.isInfeedModernization=!1;return M};
_.w(oW,_.g);_.P=oW.prototype;_.P.computeUrlImg=function(M){if(M)return _.Sh(M.thumbnails)};
_.P.getLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.P.getLogoClassName=function(M){return this.logoWithPadding(M)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.P.logoWithPadding=function(M){var z,J;return(M=(z=M.thumbnails)==null?void 0:(J=z[0])==null?void 0:J.height)&&M%31===0?!0:!1};
_.P.sendImpressionEndpoints=function(M){M.impressionEndpoints&&_.kQ(this.hostElement,M.impressionEndpoints)};
_.P.observeBasicPalette=function(){var M,z,J=(M=this.data)==null?void 0:(z=M.colorData)==null?void 0:z.basicColorPaletteData;J?_.g4(this.hostElement,J):_.g4(this.hostElement,{})};
_.P.observeDataChanged=function(){var M;this.dynamicTextHeight=((M=this.data)==null?0:M.supplementalText)?74:94;var z;this.hasSupplementalText=!((z=this.data)==null||!z.supplementalText);if(_.U("web_button_rework")){var J,R,D,N;M=(J=this.data)==null?void 0:(R=J.actionButton)==null?void 0:(D=R.buttonRenderer)==null?void 0:(N=D.colorData)==null?void 0:N.basicColorPaletteData;var Z,B,O;if(!((Z=this.data)==null?0:(B=Z.actionButton)==null?0:(O=B.buttonRenderer)==null?0:O.style)&&M){this.computeIsInfeedModernization(this.data)||
(M.borderColor=M.foregroundTitleColor);var X,l;this.set("data.actionButton.buttonRenderer",_.gu.unsafeClone((X=this.data)==null?void 0:(l=X.actionButton)==null?void 0:l.buttonRenderer))}}};
_.P.observeDataForCounterfactual=function(){if(_.U("kevlar_banner_cf_extra_logging")){var M;((M=this.data)==null?0:M.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.P.computeSupplementalStyle=function(){var M;if((M=this.data)!=null&&M.supplementalText){var z,J,R;if((z=this.data)==null?0:(J=z.colorData)==null?0:(R=J.basicColorPaletteData)==null?0:R.foregroundActivatedColor)return M=_.u7(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+M+"; --yt-endpoint-hover-color:"+M+"; --yt-endpoint-visited-color:"+M+"; --yt-formatted-string-bold-font-weight:700;"}};
_.P.computeForcedDarkTheme=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.actionButton)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.style,D,N,Z;M=FBm(((D=this.data)==null?void 0:(N=D.colorData)==null?void 0:(Z=N.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return R&&M};
_.P.computeForcedLightTheme=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.actionButton)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.style,D,N,Z;M=!FBm(((D=this.data)==null?void 0:(N=D.colorData)==null?void 0:(Z=N.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return R&&M};
_.P.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.P.computeHasTitle=function(M){return!!M.title};
_.P.computeTitleMaxFontSize=function(M){return this.computeHasOverflowButton(M)?28:64};
_.P.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.P.computeIsInfeedModernization=function(){var M,z,J,R,D=(M=this.data)==null?void 0:(z=M.actionButton)==null?void 0:(J=z.buttonRenderer)==null?void 0:(R=J.colorData)==null?void 0:R.basicColorPaletteData;return(D==null?void 0:D.backgroundColor)===452984831||(D==null?void 0:D.backgroundColor)===218103808};
oW.prototype.observeDataForCounterfactual=oW.prototype.observeDataForCounterfactual;oW.prototype.observeDataChanged=oW.prototype.observeDataChanged;oW.prototype.observeBasicPalette=oW.prototype.observeBasicPalette;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],oW.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],oW.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oW.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oW.prototype,"buttonUpdate",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oW.prototype,"hasSupplementalText",void 0);_.u([_.Y(),_.W("design:type",Object)],oW.prototype,"dismissButtonOverrides",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Boolean)],oW.prototype,"hasTitle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.W("design:type",Object)],oW.prototype,"forceDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.W("design:type",Object)],oW.prototype,"forceLightTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],oW.prototype,"dynamicTextHeight",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Object)],oW.prototype,"hasOverflowButton",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.W("design:type",Object)],oW.prototype,"isInfeedModernization",void 0);_.u([_.la("data.colorData.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oW.prototype,"observeBasicPalette",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oW.prototype,"observeDataChanged",null);_.u([_.la("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oW.prototype,"observeDataForCounterfactual",null);_.u([_.c({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],oW);
_.d(oW,"ytd-banner-promo-renderer",function(){if(BaN!==void 0)return BaN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BaN=M},{mode:1});var Oiw;var Taw;var Iic;var X0=function(){return _.g.apply(this,arguments)||this};
_.w(X0,_.g);_.u([_.Y(),_.W("design:type",Object)],X0.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.u([_.c({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],X0);
_.d(X0,"ytd-hashtag-grid-tile-renderer",function(){if(Iic!==void 0)return Iic;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Iic=M},{mode:1});var ly=function(){return _.g.apply(this,arguments)||this};
_.w(ly,_.g);ly.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
ly.prototype.updateRichGridTrendingHashtagsVisibility=function(){var M,z;if(((M=this.data)==null||!M.isExpanded)&&(z=this.data)!=null&&z.tiles){M=this.data.tiles.length;z=M>this.richGridItemsPerRow?this.richGridItemsPerRow+1:M;var J=Math.ceil(M/z);this.fullyVisibleRows=M%z===1&&J===2?1:Math.min(J,2);this.isShowMoreVisible=this.fullyVisibleRows<J}};
ly.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ly.prototype.updateRichGridTrendingHashtagsVisibility=ly.prototype.updateRichGridTrendingHashtagsVisibility;_.u([_.Y(),_.W("design:type",Object)],ly.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Number)],ly.prototype,"fullyVisibleRows",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],ly.prototype,"isShowMoreVisible",void 0);_.u([_.Y({selector:_.y$,value:0}),_.W("design:type",Number)],ly.prototype,"richGridItemsPerRow",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],ly.prototype,"ytdReduxBehavior",void 0);_.u([_.la("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ly.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.u([_.c({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],ly);
_.d(ly,"ytd-hashtag-grid-shelf-renderer",function(){if(Taw!==void 0)return Taw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Taw=M},{mode:1});var oPu;var Xxw;var eL=function(){var M=_.g.apply(this,arguments)||this;M.visibleVideos=[];M.hiddenVideos=[];M.modern=_.U("web_modern_buttons");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(eL,_.g);_.P=eL.prototype;_.P.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){var M=this;this.requestElementsPerRow();var z,J;this.currentColorPalette=this.isDarkTheme?(z=this.data)==null?void 0:z.darkColorData:(J=this.data)==null?void 0:J.lightColorData;var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.C4(this,function(){M.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.computeIsFirstFeedItem=function(M){return M};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.P.getCurrentLogo=function(M,z){if(M)return z?M.darkLogoImage:M.lightLogoImage};
_.P.computeTitleStyle=function(M){var z;if((z=this.data)!=null&&z.title&&M&&M.textPrimary!==void 0)return"color:"+_.u7(M.textPrimary)+";"};
_.P.computeSubtitleStyle=function(M){var z;if((z=this.data)!=null&&z.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.u7(M.textSecondary)+";"};
_.P.computeDismissIconStyle=function(M){if(this.data&&this.data.dismissButton&&M&&M.textPrimary!==void 0)return"--yt-button-color:"+_.u7(M.textPrimary)+";"};
_.P.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.u7(M.textPrimary)+";--yt-spec-icon-active-other:"+_.u7(M.textPrimary)+";"};
_.P.computeBackgroundStyle=function(M){if(M&&this.data){var z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var J=_.Sh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);J&&(z+='background-image:url("'+J+'");')}M.backgroundColor!==void 0&&(z+="background-color:"+_.qG(M.backgroundColor)+";");return z}};
_.P.computeButton=function(){var M,z=Object.assign({},_.G((M=this.data)==null?void 0:M.showMoreButton,_.aR));if(this.modern&&z){z.style="STYLE_MONO_OUTLINE";var J;if(M=(J=this.currentColorPalette)==null?void 0:J.textPrimary)z.colorData={basicColorPaletteData:{foregroundTitleColor:M,borderColor:M}}}return z};
_.P.shouldShowBottomButton=function(M,z){return!(M==null?0:M.header)&&!(M==null||!M.primaryButton)&&z<3};
_.P.checkExpanded=function(M){this.isExpanded=M&&M.content?this.hiddenVideos.length===0:!0};
_.P.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.P.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.P.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.P.computeHasSectionHeader=function(M){return!!M.header};
_.P.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var z;((z=this.data.dismissButton)==null?0:z.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var J,R;((J=this.data)==null?0:(R=J.primaryButton)==null?0:R.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.P.setVisibleVideos=function(M){if(this.data&&this.data.content)if(this.data.content.length){var z=this.data.content.length;this.data.header?M?(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.slimItemsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow-1),z))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.P.setHasMovieRenderer=function(){var M;if((M=this.data)!=null&&M.content){var z;this.hasMovieRenderer=!!_.G((z=this.data)==null?void 0:z.content[0],_.CZQ)}else this.hasMovieRenderer=!1};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
_.P.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var M=_.S(this.hiddenMediaRenderers),z=M.next();!z.done;z=M.next())z.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(M=_.SN(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&M.focus()}};
_.P.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.P.logoWithPadding=function(M){var z,J,R;return(M=(z=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(J=z.thumbnails)==null?void 0:(R=J[0])==null?void 0:R.height)&&M%31===0?!0:!1};
_.P.onUpdateElementsPerRowAction=function(M,z,J){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M);J&&this.slimItemsPerRow!==J&&(this.slimItemsPerRow=J)};
eL.prototype.slimItemsPerRowChanged=eL.prototype.slimItemsPerRowChanged;eL.prototype.elementsPerRowChanged=eL.prototype.elementsPerRowChanged;eL.prototype.dataChanged=eL.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],eL.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],eL.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],eL.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],eL.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],eL.prototype,"currentColorPalette",void 0);_.u([_.Y(),_.W("design:type",Array)],eL.prototype,"visibleVideos",void 0);_.u([_.Y(),_.W("design:type",Array)],eL.prototype,"hiddenVideos",void 0);
_.u([_.Y(),_.W("design:type",Object)],eL.prototype,"primaryButton",void 0);_.u([_.Y({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],eL.prototype,"elementsPerRow",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eL.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eL.prototype,"isExpanded",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eL.prototype,"largeTitle",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],eL.prototype,"hasMovieRenderer",void 0);_.u([_.Y(),_.W("design:type",Number)],eL.prototype,"slimItemsPerRow",void 0);_.u([_.Y(),_.W("design:type",Boolean)],eL.prototype,"showLightVideoMetadata",void 0);_.u([_.Y(),_.W("design:type",Boolean)],eL.prototype,"showDarkVideoMetadata",void 0);_.u([_.Y(),_.W("design:type",Number)],eL.prototype,"videoMetadataColor",void 0);
_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],eL.prototype,"miniMode",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],eL.prototype,"isFirstFeedItem",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.W("design:type",Boolean)],eL.prototype,"hasSectionHeader",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],eL.prototype,"roundedContainer",void 0);_.u([_.UV("#visible-video-container ytd-rich-grid-media"),_.W("design:type",Array)],eL.prototype,"visibleMediaRenderers",void 0);_.u([_.UV("#hidden-video-container ytd-rich-grid-media"),_.W("design:type",Array)],eL.prototype,"hiddenMediaRenderers",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],eL.prototype,"modern",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eL.prototype,"dataChanged",null);_.u([_.la("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eL.prototype,"elementsPerRowChanged",null);_.u([_.la("slimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eL.prototype,"slimItemsPerRowChanged",null);
_.u([_.c({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],eL);
_.d(eL,"ytd-brand-video-shelf-renderer",function(){if(Xxw!==void 0)return Xxw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Xxw=M},{mode:1});var lit;var QJ=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(QJ,_.g);_.P=QJ.prototype;_.P.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){this.requestElementsPerRow();var M,z;this.currentColorPalette=this.isDarkTheme?(M=this.data)==null?void 0:M.darkColorData:(z=this.data)==null?void 0:z.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.P.computeIsFirstFeedItem=function(M){return M};
_.P.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(M),this.updateButtonPalette())};
_.P.shouldShowThumbnailInMetadata=function(M){return M<=1};
_.P.computeVideoMetadataColor=function(){if(this.data){var M;if((M=this.currentColorPalette)==null?0:M.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.P.computeTitleStyle=function(M){var z;if((z=this.data)!=null&&z.title&&M&&M.textPrimary!==void 0)return"color:"+_.u7(M.textPrimary)+";"};
_.P.computeSubtitleStyle=function(M){var z;if((z=this.data)!=null&&z.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.u7(M.textSecondary)+";"};
_.P.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.u7(M.textPrimary)+";--yt-spec-icon-active-other:"+_.u7(M.textPrimary)+";"};
_.P.computeBackgroundStyle=function(M){if(M&&this.data){var z="";M.backgroundColor!==void 0&&(z+="background-color:"+_.qG(M.backgroundColor)+";");return z}};
_.P.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.P.updateButtonPalette=function(){if(this.data){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer){var z;if((z=this.currentColorPalette)==null?0:z.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var J;((J=this.currentColorPalette)==null?0:J.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
_.P.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.P.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
QJ.prototype.elementsPerRowChanged=QJ.prototype.elementsPerRowChanged;QJ.prototype.dataChanged=QJ.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],QJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],QJ.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],QJ.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QJ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],QJ.prototype,"currentColorPalette",void 0);_.u([_.Y(),_.W("design:type",Object)],QJ.prototype,"primaryButton",void 0);
_.u([_.Y({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],QJ.prototype,"elementsPerRow",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QJ.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],QJ.prototype,"titleSize",void 0);_.u([_.Y(),_.W("design:type",Number)],QJ.prototype,"videoMetadataColor",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],QJ.prototype,"miniMode",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],QJ.prototype,"isFirstFeedItem",void 0);_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],QJ.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Boolean)],QJ.prototype,"hasOverflowButton",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QJ.prototype,"dataChanged",null);_.u([_.la("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QJ.prototype,"elementsPerRowChanged",null);_.u([_.c({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],QJ);
_.d(QJ,"ytd-brand-video-singleton-renderer",function(){if(lit!==void 0)return lit;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return lit=M},{mode:_.B5("kevlar_poly_si_batch_j070")?1:2});var eEN;var QUt=_.Mf(function(M){var z=M.data;return _.T(_.rv,{data:function(){return z().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(z().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var J=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":J=88;break a;default:J=88}return J},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return z().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"lj"),vPu=_.Mf(function(M){var z=M.metadataRow;
var J=M.delimiter;return _.T(_.G4,{each:function(){return z().textParts||[]},
keyBy:"INDEX"},function(R,D){return _.T(_.MH,null,_.T(_.m3,{text:R,noWrap:!0,userInput:!0}),_.T(UM5,{delimiter:J,max:function(){return z().textParts.length},
index:D}))})},"mj"),UM5=_.Mf(function(M){var z=M.delimiter;
var J=M.max;var R=M.index;return _.T(_.I,{cond:function(){return(z==null?void 0:z())&&J()-1>R()},
then:function(){return _.T("span",null,z)}})},"nj"),GHw=_.Mf(function(M){var z=M.data;
M={};return _.T("yt-profile-page-header-information-view-model",{class:_.Qe("profile-page-header-information-view-model-wiz",(M["profile-page-header-information-view-model-wiz--mobile"]=!1,M))},_.T(_.I,{cond:function(){return z().onTap},
then:function(){return _.T(_.a9,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.$S(z().onTap)}},_.T(_.t_,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:QUt}))},
else:function(){return _.T("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.T(_.t_,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:QUt}))}}),_.T("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.T(_.I,{cond:function(){return z().onTap},
then:function(){return _.T(_.t_,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(J){var R=J.data;
return _.T(_.a9,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.$S(R().onTap)}},_.T(_.m3,{text:function(){return R().title}}))}})},
else:function(){return _.T(_.t_,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(J){var R=J.data;
return _.T(_.m3,{text:function(){return R().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.T(_.t_,{data:function(){return z().metadata}},{profilePageHeaderMetadataViewModel:function(J){var R=J.data;
return _.T(_.I,{cond:function(){return R().metadataRows},
then:function(D){return _.T("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.T(_.G4,{each:D,keyBy:"INDEX"},function(N,Z){return _.T(_.MH,null,_.T(vPu,{metadataRow:N,delimiter:" \u2022 "}),_.T(UM5,{delimiter:" \u2022 ",max:function(){return D().length},
index:Z}))}))}})}})))},"oj");
GHw.idomCompat=!0;_.N7(GHw,"yt-profile-page-header-information-view-model",{props:{data:_.zn}});var Un=function(){return _.g.apply(this,arguments)||this};
_.w(Un,_.g);Un.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Un.prototype,"data",void 0);_.u([_.c({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Un);
_.d(Un,"ytd-effect-pivot-header-view-model",function(){if(eEN!==void 0)return eEN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return eEN=
M},{mode:1});var wxt;var vO=function(){return _.g.apply(this,arguments)||this};
_.w(vO,_.g);vO.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vO.prototype,"data",void 0);_.u([_.c({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],vO);
_.d(vO,"ytd-source-pivot-header-renderer",function(){if(wxt!==void 0)return wxt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return wxt=M},{mode:1});_.xMm=_.Mf(function(M){var z=M.data;var J=function(){var R;return _.$C((R=z())==null?void 0:R.rendererContext)};
M={};return _.T("content-list-item-view-model",{el:_.zL(_.uE(function(){return z().rendererContext})),
class:_.Qe("ytContentListItemViewModelHost",(M.ytContentListItemViewModelTappable=J,M)),role:function(){return J()?"listitem":void 0},
tabindex:function(){return J()?0:void 0}},_.T("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.T("div",{class:"ytContentListItemViewModelImageContainer"},_.T(_.I,{cond:function(){return z().image},
then:function(R){return _.T(_.rv,{data:R,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.T(_.t_,{data:function(){var R;
return(R=z())==null?void 0:R.avatar}},{avatarViewModel:_.dj})),_.T("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.T("div",{class:_.Qe("ytContentListItemViewModelTitle",function(){a:{switch(z().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var R="ytContentListItemViewModelProminentTitle";
break a}R=void 0}return R})},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:"ytContentListItemViewModelMetadata"},_.T(_.t_,{data:function(){return z().metadata}},{contentMetadataViewModel:function(R){return _.T(_.Oz,{data:R.data,
layout:1})}})))),_.T("div",{class:"ytContentListItemViewModelActionButton"},_.T(_.t_,{data:function(){var R;
return(R=z())==null?void 0:R.actionButton}},{buttonViewModel:_.lT,
toggleButtonViewModel:_.cm})))},"pj");_.N7(_.Mf(function(M){var z=function(){return M.data().background},J=function(){return M.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},R=function(){return M.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.T("yt-card-view-model",{class:_.Qe("ytCardViewModelHost",M.className)},_.T(_.TM,{contentId:function(){return M.data().contentId}},function(){return _.T("div",{class:_.Qe("ytCardViewModelCardViewModelInner",function(){return H0i(M.data().cardStyle)})},_.T(_.t_,{data:z},{cinematicContainerViewModel:function(D){return _.T(_.BYB,{data:D.data})}}),_.T("div",{class:"ytCardViewModelContentWrapper"},_.T(_.I,{cond:function(){return!J()},
then:function(){var D={};return _.T("div",{class:"ytCardViewModelTopContent"},_.T(_.t_,{data:function(){return M.data().topContent}},{contentListItemViewModel:function(N){return _.T(_.xMm,{data:N.data})}}),_.T("div",{class:_.Qe("ytCardViewModelInlineTrailingAction",(D.ytCardViewModelInlineCenterTrailingAction=R,D))},_.T(_.t_,{data:function(){return M.data().trailingAction}},{buttonViewModel:function(N){return _.T(_.lT,{data:N.data})}})))}}),_.T("div",{class:"ytCardViewModelBodyContent"},_.T(_.t_,
{data:function(){return M.data().bodyContent}},{contentListItemViewModel:function(D){return _.T(_.xMm,{data:D.data})}}))),_.T(_.I,{cond:function(){return J()},
then:function(){return _.T("div",{class:"ytCardViewModelOverlayTrailingAction"},_.T(_.t_,{data:function(){return M.data().trailingAction}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data})}}))}}))}))},"qj"),"yt-card-view-model",{props:{data:_.zn,
className:_.zn}});_.N7(_.Mf(function(M){var z=function(){return _.G(M.data().flowRoot,i0c)};
_.mF(function(){var J=z(),R=function(){},D=function(){};
if(J){var N,Z,B,O=((B=_.G((N=z())==null?void 0:(Z=N.steps)==null?void 0:Z[0],_.$Ci))==null?void 0:B.stepId)||"";$em(J,O);R=qni(J);D=WBu(J)}_.pq(function(){var X=z();X&&_.rA().dispatch(_.pf("flowStateEntity",X.flowStateEntityKey));R();R=function(){};
D();D=function(){}})});
return _.T("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.T(_.TM,{contentId:function(){return M.data().contentId}},function(){return _.T("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.T(_.I,{cond:z,
then:function(J){return _.T(_.dpu,{data:J})}}))}))},"rj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.zn}});_.N7(_.Mf(function(){return _.T("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.T(_.t_l,null)),_.T(_.vu2,{data:{rows:1},isExploreHub:!0}))},"sj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.N7(_.Mf(function(M){var z=M.data;var J=M.standardUnitMinWidth;M=_.S((0,_.trk)(z));var R=M.next().value,D=M.next().value,N=function(){var B,O=(B=R())==null?void 0:B.contents;return O==null||O.length===0},Z=function(){D(Object.assign({},R(),{contents:[]}))};
return _.T("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.zL(_.J1({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var B=_.G(z().chipsShelf,b0w);if(B!=null&&B!=null&&B.autoselectChipOnVisible){var O,X,l=_.G(B==null?void 0:(O=B.contents)==null?void 0:O[(X=B.autoselectedChipIndex)!=null?X:0],_.LM);l&&l.tapCommand&&_.aE(l.tapCommand)}}}))},_.T(_.TM,{contentId:function(){return z().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.T("div",null,_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.T(_.t_,{data:function(){return z().header}},{sectionHeaderViewModel:function(B){return _.T(_.lI,{data:B.data,
disableHorizontalPadding:!0})}})),_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.T(_.t_,{data:function(){return z().chipsShelf}},{chipsShelfViewModel:function(B){return _.T(_.de,{data:B.data,
callback:Z,enableSingleChipSelection:!0})}})),_.T("div",null,_.T(_.I,{cond:N,
then:function(){return _.T("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.T(_.vu2,{data:{rows:1},isExploreHub:!0}))}}),_.T(_.t_,{data:function(){var B;
return(B=R())==null?void 0:B.contents}},{richShelfRenderer:function(B){return _.T(_.piu,{data:B.data,
isInnerShelf:!0,standardUnitMinWidth:J})}})))}))},"tj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.zn,
standardUnitMinWidth:_.zn}});var Gq=function(){return _.g.apply(this,arguments)||this};
_.w(Gq,_.g);
Gq.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Gq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.u([_.p(_.Wg),_.W("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],Gq.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Gq.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Number)],Gq.prototype,"standardUnitMinWidth",void 0);_.u([_.c({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Gq);
_.d(Gq,"ytd-rich-section-renderer",function(){if(oPu!==void 0)return oPu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oPu=M},{mode:_.B5("kevlar_poly_si_batch_j029")?
1:2});_.N7(_.Dcs,"yt-profile-identity-info-view-model",{props:{data:_.zn,hideDivider:_.zn,isChannelInfoCard:_.zn}});_.N7(_.QW2,"yt-page-header-view-model",{props:{data:_.zn,noPadding:_.zn,enableBanner:_.zn,cinematicContainerTopbarOffset:_.zn,allowCinematicContainerOverflow:_.zn,displayAsSidebar:_.zn,displayAsPanel:_.zn,alwaysUseMediumTextDescription:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=function(){var D;return(D=z().numColumns)!=null?D:2},R=function(){return J()>1?3:2};
M={};return _.T("ytd-rich-grid-group",{class:_.Qe("ytdRichGridGroupHost",(M.ytdRichGridGroupHostFirstColumn=function(){return z().colIndex===0},M)),
style:_.UN({"--ytd-rich-grid-group-num-columns":J,"--ytd-rich-grid-items-per-group":R})},_.T("div",{class:"ytdRichGridGroupContents"},_.T(_.t_,{data:function(){var D;return(D=z().contents)==null?void 0:D.slice(0,R())}},{richItemRenderer:function(D){return _.T(_.tMQ,{data:D.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"uj"),"ytd-rich-grid-group",{props:{data:_.zn}});var wY=function(){var M=_.g.apply(this,arguments)||this;M.resizeOnObserverInit=!1;M.isInlinePreviewDisabled=_.U("web_disable_inline_preview");M.disableStickyFilterBar=!1;M.transparentBackgroundChipsBar=!1;M.hideChipsBar=!1;M.isWatchDefaultLayout=!0;M.continuationShowButton=!1;M.rowReducedHorizontalMargin=!1;M.useCompactList=!1;M.manualDownloadsPresent=!1;M.smartDownloadsPresent=!1;M.isOnline=!1;M.shouldRenderDownloadsBanner=!1;M.shouldRenderDownloadsBannerUpsell=!1;M.hasOptedIntoSmartDownloads=!1;
M.elementsPerRow=4;M.typographyBump=!1;M.showGnomeContents=!1;M.showExploreHubContents=!1;M.slimItemsPerRow=1;M.pageLoadingFromNavigation=!1;M.loggingRefactor=_.U("kevlar_rich_grid_logging_fix");M.resizeObserver=null;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};
M.rendererToTagNameMap=new Map(Object.entries(M.contentMapping()).map(function(z){var J=_.S(z);z=J.next().value;J=J.next().value;return[z,J.component]}));
M.insertedContent=new Map;return M};
_.w(wY,_.g);_.P=wY.prototype;_.P.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var M=_.S(_.SN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=M.next();!z.done;z=M.next())z.value.useCompactList=this.useCompactList};
_.P.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var M=_.S(_.SN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=M.next();!z.done;z=M.next())z=z.value,z.sizing=this.sizing,z.typographyBump=this.typographyBump};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.ou(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21771_throttledOnResize=new _.A_(this.resizeObserved,_.NC("rich_grid_resize_delay_ms",50),this)};
_.P.detached=function(){var M;(M=this.resizeObserver)==null||M.disconnect();document.removeEventListener("yt-page-type-changed",_.ou(this,this.onPageChange))};
_.P.insertRichSection=function(M){var z=M.richItemTargetId;M=M.richSectionRendererToInsert;z&&M&&(this.insertedContent.set(z,{content:M,timestamp:Date.now()}),this.reflowContent())};
_.P.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeIsInlinePreviewEnabled=function(M,z,J){return _.U("web_disable_inline_preview")?!1:!J&&_.mCN({miniplayerIsActive:M,miniplayerPlaybackState:z})};
_.P.computeSizing=function(){var M=_.V8w(this.data);if(M||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return M?this.useCompactList?"COMPACT":M:this.miniMode?"COMPACT":_.U("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.P.updateItemMinAndMaxWidth=function(){var M=_.NC("rich_grid_max_item_width",500);M>0&&_.Tp(this.hostElement,{"--ytd-rich-grid-item-max-width":M+"px"});var z;M=this.getRichItemMinWidth((z=this.hostElement)==null?void 0:z.clientWidth);M>0&&_.Tp(this.hostElement,{"--ytd-rich-grid-item-min-width":M+"px"})};
_.P.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.P.resizeObserved=function(){_.ZL(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.P.navigateBackToHome=function(){_.U("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var M=_.JF().resolve(_.M6).isOnWatch(),z,J=((z=_.UA(location.pathname))==null?void 0:z.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(J)||M)&&this.gnomeContents&&_.U("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);M&&this.exploreHubContents&&_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.rA().dispatch(_.Nv({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.P.onPageChange=function(){var M=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.U("disable_chip_select_on_nav")||_.ZL(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.no.addJob(function(){M.pageLoadingFromNavigation=!1;_.U("disable_chip_select_on_nav")&&_.U("h5_reset_cache_and_filter_before_update_masthead")&&M.resetCacheAndIsFilteredFeed();M.setMasthead();M.maybeSetBigYoodle();M.forceRefreshAndLog();M.terminateVideoPreview();_.U("web_hide_gnome_until_user_navigates_back_to_home")&&
(M.dataChanged(),_.C4(M,function(){if(M.showGnomeContents){var z=Array.from(_.SN(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){R=_.SN(R).querySelector("ytd-rich-shelf-renderer");return!!R&&R.isGnomeShelf()});
if(z){z=z.offsetTop-M.contentsElement.offsetTop;var J=_.JF().resolve(_.M6).getCurrentPage();J&&J.getPageScrollingElement().scrollTo({top:z,behavior:"smooth"})}}}));
_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(M.dataChanged(),_.C4(M,function(){if(M.showExploreHubContents&&!_.U("web_explore_hub_no_scroll")){var z=Array.from(_.SN(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){return!!R.querySelector("ytd-talk-to-recs-flow-renderer")});
if(z){z=z.offsetTop-M.contentsElement.offsetTop;var J=_.JF().resolve(_.M6).getCurrentPage();J&&J.getPageScrollingElement().scrollTo({top:z,behavior:"smooth"})}}}))},8)):((_.U("web_hide_gnome_until_user_navigates_back_to_home")||_.U("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.P.dataChanged=function(){var M=this;_.ZL(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.C4(this,function(){M.updateRichItemGridPositions();M.contentsElement&&_.Tp(M.hostElement,{"--ytd-rich-grid-content-offset-top":M.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.P.initResizeObserver=function(){var M=this;if(window.ResizeObserver){var z;(z=this.resizeObserver)==null||z.disconnect();var J=!1;this.resizeObserver=new ResizeObserver(function(){if(J){var R;(R=M.resizeObserver)==null||R.disconnect();var D;(D=M.JSC$21771_throttledOnResize)==null||D.fire();requestAnimationFrame(function(){var Z;(Z=M.JSC$21771_throttledOnResize)==null||Z.fire();M.initResizeObserver()})}else if(J=!0,M.resizeOnObserverInit){var N;
(N=M.JSC$21771_throttledOnResize)==null||N.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.P.contentLengthChanged=function(){if(_.U("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.ZL(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.updateElementsPerRow=function(){_.ZL(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.P.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.P.onRichShelfRendererCollapse=function(M){if(this.shownItems){var z=M.detail;M=this.shownItems.findIndex(function(R){var D,N;return((N=_.G(R==null?void 0:(D=R.richSectionRenderer)==null?void 0:D.content,_.lFV))==null?void 0:N.trackingParams)===z});
var J=M+1;M<0||J>=this.contentsElement.children.length||!this.shownItems[J].richItemRenderer||this.contentsElement.children[J].scrollIntoView({behavior:"smooth",block:"start"})}};
_.P.onSoftReloadPage=function(){this.scrollUpToTop()};
_.P.handleRerenderDownloadsData=function(){_.U("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.P.handlePlaylistRemoveVideosAction=function(M){var z;if(((z=_.G(M,_.yQV))==null?0:z.setVideoIds)&&this.data&&this.data.contents){M=_.G(M,_.yQV).setVideoIds;for(z=this.data.contents.length-1;z>=0;){var J=_.G(this.data.contents[z],_.yz);(J=J&&_.G(J.content,_.Wc))&&J.setVideoId&&M.includes(J.setVideoId)&&this.splice("data.contents",z,1);z--}this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".richItemRenderer.index",_.id(String(M+1)))};
_.P.hasTopRowInlinePlayableVideoWithEndorsement=function(M){var z;return!((z=M.slice(0,this.getItemsPerRow()))==null||!z.some(function(J){var R;J=_.G(J==null?void 0:(R=J.richItemRenderer)==null?void 0:R.content,_.E4);var D;return(J==null?void 0:J.inlinePlaybackEndpoint)&&(J==null?void 0:(D=J.thumbnailOverlays)==null?void 0:D.some(function(N){return N.thumbnailOverlayEndorsementRenderer}))}))};
_.P.refreshGridLayoutNew=function(M,z,J,R){var D=R.postsPerRow;var N=R.slimItemsPerRow;var Z=R.gameCardsPerRow;R=R.miniGameCardsPerRow;var B;if((B=this.data)==null||!B.contents||!this.containerWidth)return!1;var O;if((O=this.data.responsiveContainerConfiguration)==null?0:O.responsiveSize){var X=_.vUc(this.data.responsiveContainerConfiguration,this.containerWidth),l;B=_.ff(Object.assign({},X,{standardUnitMinWidth:(l=this.data)==null?void 0:l.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&X.isCompactList)}else B=_.ff({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=B.typographyBump;l=!1;if(M||this.elementsPerRow!==B.numItems||this.postsPerRow!==D||this.slimItemsPerRow!==N||this.gameCardsPerRow!==
Z||this.miniGameCardsPerRow!==R||this.gutter!==B.gutter)l=this.elementsPerRow!==B.numItems,this.elementsPerRow=B.numItems,this.postsPerRow=D,this.slimItemsPerRow=N,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=R,this.gutter=B.gutter,this.itemWidth=B.itemWidth,this.reflowContent(z),_.Tp(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":B.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(J);this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:B.maxContainerWidth}));return l};
_.P.refreshGridLayout=function(M,z){var J,R=(J=this.hostElement)==null?void 0:J.clientWidth;this.containerWidth=this.adjustRichGridWidth(R,!0);var D;if((D=this.data)==null||!D.contents||!this.containerWidth)return M&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.U("rg_pending_reflow_ks")&&(M=!0,this.pendingForceReflow=!1);J=this.getRichItemMinWidth(R);var N=this.isShortsPanel?146:194,Z=this.getMiniGameCardMinWidth(),B=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
R=J=this.calcElementsPerRow(J,B);(D=J<=3&&this.miniModeAllowed())&&(J=this.calcElementsPerRow(240,4));var O=this.calcMaxSlimElementsPerRow(J,B,this.isDefaultGrid);B=this.calcElementsPerRow(N,O);var X=this.calcElementsPerRow(this.isCompactGrid?N:154,O);N=this.calcElementsPerRow(this.isCompactGrid?N:Z,O);Z=!1;if(this.sizing)return this.refreshGridLayoutNew(M,z,D,{postsPerRow:R,slimItemsPerRow:B,gameCardsPerRow:X,miniGameCardsPerRow:N});if(M||this.elementsPerRow!==J||this.postsPerRow!==R||this.slimItemsPerRow!==
B||this.gameCardsPerRow!==X||this.miniGameCardsPerRow!==N)Z=this.elementsPerRow!==J,this.elementsPerRow=J,this.postsPerRow=R,this.slimItemsPerRow=B,this.gameCardsPerRow=X,this.miniGameCardsPerRow=N,this.reflowContent(z),this.updateElementsPerRow(),_.Tp(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)&&_.Tp(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(D);_.ZL(this.hostElement,"yt-rich-grid-layout-refreshed");return Z};
_.P.getRichItemMinWidth=function(M){var z=_.NC("rich_grid_min_item_width",310);if(!_.U("kevlar_disable_min_width_override")){var J,R;z=(R=(J=this.data)==null?void 0:J.minItemWidth)!=null?R:z}return z+_.d_0(M)};
_.P.calcMaxSlimElementsPerRow=function(M,z,J){return(J===void 0?0:J)?M===1?2:M%2===0?_.U("web_shorts_2_by_3_reduce_items_per_row")&&M>=4?M/2*3-1:M/2*3:_.U("web_shorts_2_by_3_reduce_items_per_row")&&M>=3?M+1:M+2:z*2};
_.P.adjustRichGridWidth=function(M,z){var J=_.U("disable_rich_grid_guide_compensation");if(!this.isWatch&&!J){J=_.JF().resolve(_.zw(_.Lk));var R=J==null?void 0:J.guideElement;if(!(!J||J.getData()||R!=null&&R.opened||J.getMiniGuideVisible()))if(J.canFitPersistentGuide(M)&&J.getGuideExpandsAutomatically()){var D,N,Z=Number((D=window.getComputedStyle(this.hostElement))==null?void 0:(N=D.getPropertyValue("--app-drawer-width"))==null?void 0:N.replace("px",""));M-=Z||0}else if(J.canFitMiniGuide(M)){var B;
D=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(B=Z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:B.replace("px",""));M-=D||0}}M>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(M-=z?32:48));return M};
_.P.calcElementsPerRow=function(M,z){var J=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),R=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((J+R)/(M+R))||1,z)};
_.P.reflowContent=function(M){var z=this;if(!this.isReflowing){this.isReflowing=!0;var J,R,D=!!((J=this.data)==null?0:(R=J.contents)==null?0:R.some(function(v){return _.G(v,_.z0)}));
J=this.getItemsPerRow();var N;R=(N=this.data)==null?void 0:N.reflowOptions;M&&(_.hd("rgr_s"),_.C4(this,function(){_.hd("rgr_nrf")}));
M={};(N=_.SN(this.hostElement).querySelector("#contents"))&&(M={contentElement:N,rendererToTagNameMap:this.rendererToTagNameMap});N=(N=this.data.contents)?N.slice():[];var Z=(_.U("web_hide_gnome_behind_feed_filter_chip")||_.U("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,B=_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,O=-1,X=-1;if(this.isHomePage&&B){for(B=0;B<N.length;B++){var l=void 0,e=void 0;_.G((l=N[B])==null?void 0:
(e=l.richSectionRenderer)==null?void 0:e.content,Afd)&&(X=B)}X>-1&&(this.exploreHubContents=N.splice(X,1))}if(this.isHomePage&&Z){for(X=0;X<N.length;X++)e=l=void 0,(B=_.G((l=N[X])==null?void 0:(e=l.richSectionRenderer)==null?void 0:e.content,_.lFV))&&Z&&(e=l=void 0,B=_.G((l=B)==null?void 0:(e=l.contents)==null?void 0:e[0],_.yz),l=void 0,_.G((l=B)==null?void 0:l.content,_.lWv)&&(O=X));O>-1&&(this.gnomeContents=N.splice(O,1))}D=sWc(N,J,D,R,this.getRichGridStyle(),M,this.insertedContent);var Q=D.orderedContent;
if(D=D.pinnedContentNotShownTargetIds)for(D=_.S(D),J=D.next();!J.done;J=D.next())this.insertedContent.delete(J.value);D=function(){z.shownItems=Q;z.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Q),_.C4(this,D)):D()}};
_.P.getFirstRowItems=function(M){for(var z=[],J=0;J<M.length;J++){var R=void 0,D=void 0,N=void 0,Z=void 0,B=void 0,O=void 0;if(((R=M[J])==null?void 0:(D=R.richItemRenderer)==null?void 0:D.rowIndex)===0||((N=M[J])==null?void 0:(Z=N.richGroupRenderer)==null?void 0:Z.rowIndex)===0||((B=M[J])==null?void 0:(O=B.richSectionRenderer)==null?void 0:O.rowIndex)===0)z.push(M[J]);else break}return z};
_.P.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.P.resetInsertedContentIfNeeded=function(){(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.P.handleChipCloudChipSelectAction=function(M,z){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.U("web_hide_gnome_behind_feed_filter_chip")&&(z?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.P.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.U("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.P.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.U("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.P.terminateVideoPreview=function(){_.ZL(this.hostElement,"yt-terminate-video-preview-action")};
_.P.updateRichItemGridPositions=function(){var M={gridData:{gridColumnCount:this.elementsPerRow}},z;if((z=this.data)==null?0:z.trackingParams)this.loggingRefactor?_.Gm().stateChanged(this.data.trackingParams,M):(z=_.y5())&&_.Ad(z,_.pe(this.data.trackingParams),M);_.ZL(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.miniModeAllowed=function(){return _.U("disable_channels_mini_mode")?!1:this.isChannelPage};
_.P.getMiniGameCardMinWidth=function(){return 154};
_.P.updateMiniMode=function(M){this.miniMode=this.miniModeAllowed()&&M;this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_RICH_GRID_MINI_MODE",payload:M}))};
_.P.isCurrentPage=function(){return location.pathname===this.pagePath};
_.P.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var M=_.JF().resolve(_.M6).getCurrentPage();M&&M.setScrollTop(0)}};
_.P.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.P.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.P.maybeSetBigYoodle=function(){var M,z=(M=this.data)==null?void 0:M.bigYoodle;this.bigYoodleData!==z&&(this.bigYoodleData=z)};
_.P.setMasthead=function(){var M;((M=this.data)==null?0:M.masthead)?this.mastheadData=this.data.masthead:_.U("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.P.getRichGridStyle=function(){var M,z;return(z=(M=this.data)==null?void 0:M.style)!=null?z:"RICH_GRID_STYLE_UNKNOWN"};
_.P.onIsShortsGridChange=function(){var M=this.ytdReduxBehavior,z=M.dispatch,J=this.getRichGridStyle();z.call(M,_.Nv({type:"SET_RICH_GRID_STYLE",payload:J}))};
_.rX.Object.defineProperties(wY.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var M=_.JF().resolve(_.M6).getCurrentPage(),z,J,R;return(((z=this.data)==null?void 0:z.targetId)==="browse-feedFEsfv_audio_pivot"||_.U("web_enable_channel_pivot_panel")&&((J=this.data)==null?void 0:J.targetId)==="browse-feedFEsfv_channel_pivot"||_.U("web_enable_effect_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_effect_pivot")&&(M==null?void 0:M.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.JF().resolve(_.M6).getCurrentPage())==null?void 0:M.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.JF().resolve(_.M6).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var M;return this.hideChipsBar||(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.U("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"&&!_.U("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?0:M.enableContentSpecificAspectRatio)||((z=this.data)==null?0:(J=z.responsiveContainerConfiguration)==null?0:J.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.NC("web_continuation_handler_margin",0):0}}});
wY.prototype.onIsShortsGridChange=wY.prototype.onIsShortsGridChange;wY.prototype.onReloadContinuationFinish=wY.prototype.onReloadContinuationFinish;wY.prototype.reflowContent=wY.prototype.reflowContent;wY.prototype.handleRerenderDownloadsData=wY.prototype.handleRerenderDownloadsData;wY.prototype.onRichShelfRendererCollapse=wY.prototype.onRichShelfRendererCollapse;wY.prototype.onRequestElementsPerRow=wY.prototype.onRequestElementsPerRow;wY.prototype.contentLengthChanged=wY.prototype.contentLengthChanged;
wY.prototype.dataChanged=wY.prototype.dataChanged;wY.prototype.onSizingChange=wY.prototype.onSizingChange;wY.prototype.onUseCompactListChange=wY.prototype.onUseCompactListChange;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],wY.prototype,"ironResizableBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],wY.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],wY.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wY.prototype,"componentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],wY.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],wY.prototype,"miniMode",void 0);_.u([_.Y({value:[]}),_.W("design:type",Array)],wY.prototype,"shownItems",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],wY.prototype,"isReflowing",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],wY.prototype,"isFilteredFeed",void 0);_.u([_.Y({selector:_.qb3}),_.W("design:type",Boolean)],wY.prototype,"guideIsExpanded",void 0);
_.u([_.Y({selectorArgs:["entitySelectorType"],selector:function(M,z){if(_.U("kevlar_modern_downloads_page")&&z&&z!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":z=M.entities;var J=_.gA(z),R=_.sh(z),D=_.P_e(M),N=_.N_n(M),Z=_.SE8(M),B=_.sVY(z),O=_.tN(J),X=_.nD(z);return _.I9o(J,R,B,_.HNY(z),D,N,O,X,Z,_.kNH(M),_.dA(M));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return M=_.gA(M.entities),_.Xr3(M);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return M=
_.Ybo(M.entities),_.l9b(M);default:_.yA(new _.xN("Error: entitySelectorType defined but not matched in selector.",M,z))}}}),
_.W("design:type",Object)],wY.prototype,"entityDrivenRichGridData",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"resizeOnObserverInit",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"bigYoodleData",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"mastheadData",void 0);_.u([_.Y(),_.W("design:type",Boolean)],wY.prototype,"isInlinePreviewDisabled",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"disableStickyFilterBar",void 0);
_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"transparentBackgroundChipsBar",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wY.prototype,"hideChipsBar",void 0);_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"isWatchDefaultLayout",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wY.prototype,"continuationShowButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wY.prototype,"rowReducedHorizontalMargin",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wY.prototype,"useCompactList",void 0);_.u([_.Y({selector:function(M){return _.sh(M.entities).length>0}}),
_.W("design:type",Object)],wY.prototype,"manualDownloadsPresent",void 0);_.u([_.Y({selector:function(M){return _.gA(M.entities).length>0}}),
_.W("design:type",Object)],wY.prototype,"smartDownloadsPresent",void 0);_.u([_.Y({selector:_.dA}),_.W("design:type",Object)],wY.prototype,"isOnline",void 0);_.u([_.Y({selector:_.N_n}),_.W("design:type",Object)],wY.prototype,"shouldRenderDownloadsBanner",void 0);_.u([_.Y({selector:_.kNH}),_.W("design:type",Object)],wY.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.u([_.Y({selector:_.P_e}),_.W("design:type",Object)],wY.prototype,"hasOptedIntoSmartDownloads",void 0);
_.u([_.la("useCompactList"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"onUseCompactListChange",null);_.u([_.la("sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"onSizingChange",null);_.u([_.Y({selector:_.L9G}),_.W("design:type",Number)],wY.prototype,"miniplayerPlaybackState",void 0);_.u([_.Y({selector:_.HA}),_.W("design:type",Boolean)],wY.prototype,"miniplayerIsActive",void 0);
_.u([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],wY.prototype,"isInlinePreviewEnabled",void 0);_.u([_.Y({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.W("design:type",String)],wY.prototype,"sizing",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wY.prototype,"elementsPerRow",void 0);
_.u([_.Y(),_.W("design:type",Object)],wY.prototype,"typographyBump",void 0);_.u([_.Y(),_.W("design:type",Number)],wY.prototype,"itemWidth",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],wY.prototype,"headerElement",void 0);_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],wY.prototype,"contentsElement",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"dataChanged",null);
_.u([_.wH("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"contentLengthChanged",null);_.u([_.Xw("yt-request-elements-per-row"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"onRequestElementsPerRow",null);
_.u([_.Xw("yt-rich-shelf-renderer-collapse"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wY.prototype,"onRichShelfRendererCollapse",null);_.u([_.wH("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"handleRerenderDownloadsData",null);
_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],wY.prototype,"entitySelectorType",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isSub",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isWatch",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isShortsPanel",null);_.u([_.Y({reflectToAttribute:!0}),_.F("isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"reducedTopMargin",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data","isWatch","isWatchDefaultLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"noTopMargin",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("isInlinePreviewEnabled","shownItems"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"topRowEndorsement",null);_.u([_.F("data.header"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"hideHeader",null);_.u([_.Xw("yt-rich-grid-reflow"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],wY.prototype,"reflowContent",null);
_.u([_.Xw("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"onReloadContinuationFinish",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isSlimGrid",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isShortsGrid",null);
_.u([_.F("data","isSlimGrid","isShortsGrid"),_.Y(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"noRichItemGutterMargins",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isShortsGridSlim",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isCompactGrid",null);
_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"isDefaultGrid",null);_.u([_.F("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"hideChipsBarOnHome",null);_.u([_.F("data.targetId"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"hideChipsBarOnWatch",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wY.prototype,"onIsShortsGridChange",null);_.u([_.F("data.enableContentSpecificAspectRatio"),_.Y(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wY.prototype,"force16By9ThumbnailAspectRatio",null);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],wY.prototype,"continuationTriggerOffset",null);_.u([_.c({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],wY);
_.d(wY,"ytd-rich-grid-renderer",function(){if(Oiw!==void 0)return Oiw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Oiw=M},{mode:2});var tT5=_.Mf(function(M){var z=M.thumbsUp,J=M.thumbsDown,R=M.rightAlignThumbs;M=_.S(_.kE(!1,void 0,"FjNDrf"));var D=M.next().value,N=M.next().value;M=_.S(_.kE(!1,void 0,"Tphjfb"));var Z=M.next().value,B=M.next().value;M={};return _.T("div",{class:_.Qe("ytwThumbsUpDownThumbs",(M.ytwThumbsUpDownRightAlign=function(){return R==null?void 0:R()},M))},_.T(_.cm,{data:z,
onToggle:function(O){N(O);Z()&&B(!1)},
buttonShapeOverrides:function(){return{toggled:D()}}}),_.T(_.cm,{data:J,
onToggle:function(O){B(O);D()&&N(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}))},"vj");
tT5.idomCompat=!0;var pxN=_.Mf(function(M){var z=function(){return M.data().pendingStateEntityKey||""},J=_.U3(_.alw,z),R=function(){var B;
if(!(B=M.disabled())){var O;B=!((O=J())==null||!O.isPendingResponse)}return B},D=_.S(_.kE(yfw(""),void 0,"aC8eBe")),N=D.next().value,Z=D.next().value;
_.FT(function(){requestAnimationFrame(function(){var B=M.data().onShowAnimationMs||0;B=B>0?yfw("--chip-animation-duration: "+B+"ms;"):yfw("");Z(B)})});
return _.T("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:N},_.T(_.G4,{each:function(){return M.data().chipData||[]},
keyBy:"REFERENCE"},function(B){return _.T(jUm,{data:B,disabled:R,pendingStateKey:z,onError:M.onError})}))},"wj"),jUm=_.Mf(function(M){var z=_.iW("button"),J=_.S(_.kE(!0,void 0,"NaMiCd")),R=J.next().value,D=J.next().value,N=function(){return M.data().text.content},Z=_.ol(function(B){var O,X,l,e,Q,v,x,m;
return _.k(function(y){switch(y.nextAddress){case 1:B.stopPropagation();if(M.disabled())return y.return();X=String(Math.floor(((O=_.I9())==null?void 0:O.getCurrentTime())||0)*1E3);l="youchat-"+Date.now();e=function(){_.u5(M.data().onClick||{});var H={continuationCommand:{token:M.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},q={inputComposerFormData:{clientMessageId:l,playerOffsetMs:X}};return new Promise(function(b,V){_.u5(H,{form:{formData:q},commandController:{onSuccess:function(E,
L){b(L)},
onServerError:function(E,L){V(L.error)}}})})};
Q=_.VLw(M.pendingStateKey());Q(!0);_.xel("#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");D(!1);_.Io(y,2);return y.yield(e(),4);case 4:_.ab(y,3);break;case 2:v=_.Qa(y),(m=(x=M).onError)==null||m.call(x,v);case 3:Q(!1),_.UI(y)}})});
return _.T(_.I,{cond:R,then:function(){return _.T("div",{class:"ytwYouChatChipsDataChipWrapper"},_.T("button",{el:z,class:"ytwYouChatChipsDataChip","data-disabled":M.disabled,"on:click":Z,tabindex:0},N))}})},"xj");var Fju=_.Mf(function(M){var z=M.data;var J=M.initiallyExpanded;var R=function(){var X;return(X=z().conversationResourceData)==null?void 0:X.learningGuideData};
M=_.S(_.eh(function(){var X;return(X=J==null?void 0:J())!=null?X:!1}));
var D=M.next().value,N=M.next().value,Z=function(){N(!0)},B=_.o4(function(){var X,l;
return(l=(X=R())==null?void 0:X.sections)!=null?l:[]},void 0,"xl8NRc"),O=_.o4(function(){return B().length>4},void 0,"oAM7of");
M=_.o4(function(){var X;return!D()&&O()&&(X=R())!=null&&X.expandButton?B().slice(0,4):B()},void 0,"uzQ9rc");
return _.T("yt-conversation-resource-view-model",{class:_.Qe("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.T(_.t_,{data:M},{expandableMetadataViewModel:_.Fdt}),_.T(_.I,{cond:function(){return O()&&!D()},
then:function(){return _.T("div",{id:"showMoreButton"},_.T(_.t_,{data:function(){var X;return(X=R())==null?void 0:X.expandButton}},{buttonViewModel:function(X){return _.T(_.lT,{data:X.data,
onClick:Z})}}))}}))},"yj");var Yxl=_.Mf(function(M){var z=function(){var L;return(L=M.data().text)==null?void 0:L.content},J=function(){var L,z8;
return(L=M.data().webData)==null?void 0:(z8=L.textResult)==null?void 0:z8.content},R=_.JF().resolve(_.Ce),D=_.o9(),N=function(){return M.data().chatResponseStyle},Z=function(){return!M.data().transparentBackground},B=function(){return M.data().rightAlignThumbs},O=function(){return M.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||M.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},X=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:O()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:M.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},l=function(){var L;
return M.data().webData||((L=M.data().text)==null?void 0:L.content)||M.data().videoResultsData||M.data().conversationResourceViewModel||M.data().quiz},e=function(){return!!M.data().sectionHeader||l()},Q=function(){var L;
return(L=M.data().videoResultsData)==null?void 0:L.videoShelf},v=function(){var L;
return _.G(((L=M.data().videoResultsData)==null?void 0:L.videoShelf)||{},MTw)},x=function(){var L;
return(L=M.data().webData)==null?void 0:L.sourcesShelf},m=function(){var L;
return _.G(((L=M.data().webData)==null?void 0:L.sourcesShelf)||{},MTw)},y=function(){return _.G(M.data().conversationResourceViewModel||{},JHl)},H=function(){return _.G(M.data().quiz||{},Cyt)},q=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:M.data().thumbsDownViewModel&&M.data().thumbsUpViewModel},b=function(){return _.G(M.data().thumbsUpViewModel,_.nf)},V=function(){return _.G(M.data().thumbsDownViewModel,_.nf)};
_.FT(function(){requestAnimationFrame(function(){var L;(L=M.shouldAnimateIcon)!=null&&L.call(M)&&Ewc(D.lottieEl)})});
var E={};return _.T("you-chat-item-view-model",{class:_.Qe("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelColumnLayout=function(){return O()},E)),
"data-target-id":function(){return M.data().id||""}},_.T(_.I,{cond:function(){return M.data().removeIcon?!1:e()},
then:function(){var L={};return _.T("div",{"aria-hidden":"true"},_.T(_.xK,{className:_.Qe("ytwYouChatItemViewModelIcon",(L.ytwYouChatItemViewModelRtl=R==="rtl",L.ytwYouChatItemViewModelHidden=function(){return!(M.data().hideIcon||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:e())},L)),
animationName:"YOUCHAT_ICON",data:X,animationRef:D}))}}),_.T(_.I,{cond:e,
then:function(){var L={};return _.T("div",{class:_.Qe("ytwYouChatItemViewModelHost",(L.ytwYouChatItemViewModelHostNoPadding=function(){return!!M.data().sectionHeader&&!l()},L.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
L.ytwYouChatItemViewModelGradientBackground=Z,L)),
role:"alert"},_.T(_.I,{cond:z,then:function(z8){return _.T(_.EW,{text:z8,wrapCodeBlocks:!0})}}),_.T(_.t_,{data:function(){return M.data().sectionHeader}},{sectionHeaderViewModel:function(z8){var O8={};
return _.T(_.lI,{data:z8.data,className:_.Qe("ytwYouChatItemViewModelSectionHeader",(O8.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!M.data().sectionHeader&&!l()},O8))})}}),_.T(_.I,{cond:J,
then:function(z8){return _.T(_.EW,{text:z8,wrapCodeBlocks:!0})}}),_.T(_.I,{cond:Q,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.WB,{data:v,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.T(_.I,{cond:x,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.WB,{data:m,hasPeek:!0,disableArrows:!1}))}}),_.T(_.I,{cond:y,
then:function(){return _.T(Fju,{data:y})}}),_.T(_.I,{cond:H,
then:function(){return _.T(_.MLt,{data:H})}}),_.T(_.I,{cond:q,
then:function(){return _.T(tT5,{thumbsUp:b,thumbsDown:V,rightAlignThumbs:B})}}))}}),_.T(_.I,{cond:function(){return M.data().chipsData},
then:function(L){return _.T(pxN,{data:L,disabled:M.pending,onError:M.onError})}}))},"zj");
Yxl.idomCompat={callbacks:{onError:!0,onSend:!0}};var mMi=_.Mf(function(M){var z=function(){return M.data().choiceSelectedText},J=function(){return M.data().hasGradientBackground},R={};
return _.T("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.T(_.I,{cond:z,then:function(){return _.T("div",{class:"ytYouChatUserTurnChoiceSelected"},_.T(_.m3,{text:z}))}}),_.T("div",{class:_.Qe("ytYouChatUserTurnUserMessage",(R.ytYouChatUserTurnGradientContainer=J,R.ytYouChatUserTurnDefaultContainer=function(){return!J()},R))},function(){return M.data().text}))},"Aj");var gPw=_.Mf(function(M){var z=_.S((0,_.FXp)(M.data)).next().value;return _.T("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return M.data().targetId||""}},_.T(_.t_,{data:function(){return M.data().header}},{chipBarViewModel:_.vXV}),_.T(_.t_,{data:function(){return z().contents}},{accordionViewModel:_.Det,
alertBannerViewModel:_.YMJ,chatLoadingViewModel:_.jOi,chatUserTurnViewModel:mMi,learningJourneyLoaderViewModel:_.i_t,lockupViewModel:function(J){return _.T(_.Xc,{data:J.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:M.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(J){return _.T(Yxl,{data:J.data,pending:!1})}}))},"Bj");_.N7(_.Mf(function(M){var z=_.S((0,_.FXp)(M.data)).next().value,J=_.AL("yt-section-list-renderer"),R=_.S(_.kE(void 0,void 0,"rQpPgc")),D=R.next().value,N=R.next().value,Z=function(){var B;return _.G((B=M.data().sectionListLayoutConfiguration)==null?void 0:B.layoutConfiguration,rfw)};
_.mF(function(){var B,O=(B=J.value)==null?void 0:B.clientWidth;if(Z()){B=Z();var X=B.responsiveSize;O=O<528?"CONTAINER_SIZE_NARROW":O<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var l=_.S(B.responsiveMap||[]);for(var e=l.next();!e.done;e=l.next())if(e=e.value,e.containerSize===O){l=e.containerType;break b}l=void 0}if(l&&X){b:{if(l==="CONTAINER_TYPE_VERTICAL_LIST")if(X==="RESPONSIVE_SIZE_STANDARD"){if(O!=="CONTAINER_SIZE_NARROW"){e="50%";break b}}else{e=O==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}e=void 0}B={responsiveSize:X,containerSize:O,containerType:l,force16By9ThumbnailAspectRatio:!B.enableContentSpecificAspectRatio,contentPreviewWidth:e,fullbleed:(l==="CONTAINER_TYPE_VERTICAL_LIST"||l==="CONTAINER_TYPE_GRID")&&O==="CONTAINER_SIZE_NARROW"&&!1}}else B=void 0}else B=void 0;N(B)});
return _.T("yt-section-list-renderer",{class:_.Qe("ytSectionListRendererHost",M.className),el:J,"data-target-id":function(){return M.data().targetId||""}},_.T(_.t_,{data:function(){return z().contents}},{itemSectionRenderer:function(B){return _.T(gPw,{data:B.data,
containerLayoutConfig:D})}}))},"Cj"),"yt-section-list-renderer",{props:{data:_.zn,
className:_.Dv}});var sUd;var nPm;var hEd=function(){return _.g.apply(this,arguments)||this};
_.w(hEd,_.g);_.u([_.Y(),_.W("design:type",Object)],hEd.prototype,"data",void 0);_.u([_.cU({is:"yt-alert-renderer",disableElementRegistration:!0})],hEd);
_.d(hEd,"yt-alert-renderer",function(){if(nPm===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;sUd===void 0&&(sUd=document.createElement("template"));var R=sUd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);nPm=M}M=nPm;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var d$d;d$d=function(M,z,J,R){J||(M?R&&(R.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||R.WINDOW_SIZE_CHANGED&&(z.width!==window.innerWidth||z.height!==window.innerHeight)||R.SAFARI_ABORTED_BY_NEW_TRANSITION&&M instanceof DOMException&&M.name==="AbortError"&&M.message.includes("Old view transition aborted by new view transition"))||_.nc(M):_.nc(Error("kj")))};
_.Kql=function(M,z){z=z===void 0?{}:z;var J,R,D,N,Z,B,O,X,l,e,Q,v,x;return _.k(function(m){switch(m.nextAddress){case 1:J=z;R=J.shouldWrap===void 0?!0:J.shouldWrap;D=J.skipTransitionTimeoutMs===void 0?300:J.skipTransitionTimeoutMs;N=J.beforeTransition;Z=J.afterTransition;if(!R||!document.startViewTransition||document.visibilityState==="hidden")return m.return(M());B={width:window.innerWidth,height:window.innerHeight};O=!1;(X=N)==null||X();_.Io(m,2);l=document.startViewTransition(M);e=setTimeout(function(){l.skipTransition();
O=!0},D);
return m.yield(l.ready,4);case 4:return clearTimeout(e),m.yield(l.finished,5);case 5:clearTimeout(e);(Q=Z)==null||Q();_.ab(m,0);break;case 2:v=_.Qa(m),(x=Z)==null||x(),d$d(v,B,O,z.ignoredErrors),_.UI(m)}})};
_.A7=function(){for(var M=Array(36),z=0,J,R=0;R<36;R++)R==8||R==13||R==18||R==23?M[R]="-":R==14?M[R]="4":(z<=2&&(z=33554432+Math.random()*16777216|0),J=z&15,z>>=4,M[R]=_.wnp[R==19?J&3|8:J]);return M.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var $$G=_.Ca(['<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>']),
u_w=_.ZD2($$G);u_w.setAttribute("style","display: none;");document.head.appendChild(u_w.content);_.ig=_.lG8(function(M){var z=_.lm("DIV");M&&(z.className=M);z.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";M=_.lm("DIV");_.Zwt(M,"200px","200px");z.appendChild(M);document.body.appendChild(z);M=z.offsetWidth-z.clientWidth;_.eJ(z);return M});var qCl;var Wqw;var C8=function(){var M=_.g.apply(this,arguments)||this;M.icon=null;return M};
_.w(C8,_.g);C8.prototype.dismiss=function(){_.Pv(this.hostElement,"yt-live-chat-error-message-dismiss")};
C8.prototype.computeIcon=function(M){return M&&M.iconType?"yt-icons:"+M.iconType.toLowerCase():"yt-icons:close"};
_.u([_.Y(),_.W("design:type",Object)],C8.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon(data.icon)"}),_.W("design:type",Object)],C8.prototype,"icon",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],C8);
_.d(C8,"yt-live-chat-error-message-renderer",function(){if(Wqw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;qCl===void 0&&(qCl=document.createElement("template"));var R=qCl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Wqw=M}M=Wqw;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Vpr,EoE,fc3,Lw4,bpi,z2i,JSi,R2w,Y0,DBE,Ngw,my,PJi,S$q,Zvq,ktq,Bgi,OvZ,Tgr,IVw,opq,XuZ,lVw,e2s,QkA,UBA,vpZ,GtE,wus,xBq,tar,gT,jkq,puZ,F$s,gpw,skw,npq,h2A,ySq,Hvd,Y$r,mBA,dBq,K$Z,$Br,uQq,q$q,cSq,aVi;Vpr=function(M,z){return _.Is(M.entities,"liveReactionsDataEntity",z)};
EoE=function(M,z){M=_.Is(M.entities,"booleanEntity",z);return!(!M||!M.value)};
fc3=function(M,z){var J=_.y5();J&&M&&_.qs(J,_.pe(M),z)};
Lw4=function(M,z){return _.Is(M.entities,"timedMarkersListSyncEntity",z)};
_.Ae3=function(M){return M.watch.isWatchActive};
_.ipi=function(M){return _.ye(M)||_.HS(M)||_.Z1H(M)};
_.CGA=function(M){return!_.ipi(M)};
_.FI=function(M){return M.watch.watchScrollTop};
bpi=function(M){return M.watch.isLiveChatCollapsed};
_.reA=function(){_.U("web_watch_log_theater_mode")&&_.s7R("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Maw=function(M,z,J){if(!M.includes("START_TIME_PLACEHOLDER")||!M.includes("END_TIME_PLACEHOLDER"))return M;var R=new Date(0),D=new Date(0);R.setUTCMilliseconds(z);D.setUTCMilliseconds(J);return M.replace("START_TIME_PLACEHOLDER",_.Eh(R,7)).replace("END_TIME_PLACEHOLDER",_.Eh(D,7))};
z2i=function(M,z){return _.Is(M.entities,"booleanEntity",z)};
JSi=function(){return function(M){_.Cd(_.pf("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:M}))}};
R2w=function(M){switch(M){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
Y0=function(M,z,J){var R=_.$S(J);M&&z&&R&&M.getPlayerPromise().then(function(D){_.stG(R)&&_.sB();(new _.sz(D)).executeCommand(R,z);_.U("continue_playback_on_desktop_companion_click")||D.pauseVideo()})};
DBE=function(M){var z=_.J_(),J;if(J=_.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;J=(R=J())==null?void 0:R.layoutId}else J=null;Y0(z,J,M)};
Ngw=function(M){var z=_.J_(),J;if(J=_.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;J=(R=J())==null?void 0:R.layoutId}else J=null;Y0(z,J,M)};
my=function(M,z){var J=M<0?"-":"";M=Math.abs(M);var R=Math.floor(M/3600),D=Math.floor(M)%3600,N=Math.floor(D/60);D=Math.floor(D)%60;var Z="";(z===void 0?0:z)&&(Z="."+Math.round((M-Math.floor(M))*10));return R>0?J+R+":"+(N<10?"0"+N:""+N)+":"+(D<10?"0"+D:""+D)+Z:J+N+":"+(D<10?"0"+D:""+D)+Z};
PJi=function(M){var z=M.match(/[^0-9:\.]/g);if(z&&z.length>0)return null;M=M.split(":");if(M.length===0||M.length>3)return null;z=1;for(var J=0;M.length>0;){var R=M.pop();if(R===void 0)break;var D=Number(R);if(R===""||isNaN(D))return null;J+=D*z;z*=60}return J};
S$q=function(M,z,J,R){M=Math.max(J,M);z=Math.min(z,R-J);M+z>R?(J=R,M=J-z):J=M+z;return{start:M,end:J}};
Zvq=function(M,z,J,R,D,N){M<J?M=J:M+D>R&&(M=R-D);z>R&&(z=R);z=Math.min(M+N,Math.max(M+D,z));return{start:M,end:z}};
ktq=function(M,z,J,R,D,N){z>R?z=R:z-D<J&&(z=J+D);M<J&&(M=J);M=Math.min(z-D,Math.max(z-N,M));return{start:M,end:z}};
Bgi=function(M){return _.U("web_transcript_cue_id_killswitch")?String(M):"ytd-transcript-renderer_"+M};
OvZ=function(M){return _.U("web_transcript_cue_id_killswitch")?!0:M.startsWith("ytd-transcript-renderer")};
Tgr=function(M){var z=_.J_(),J;if(J=_.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;J=(R=J())==null?void 0:R.layoutId}else J=null;Y0(z,J,M)};
IVw=function(M){M.style.height="auto";M.style.height=Math.min(M.scrollHeight||20,80)+"px"};
opq=function(M,z,J){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:z,hasGradientBackground:J}}],insertByPositionInSection:{sectionTargetId:M,position:"INSERTION_POSITION_LAST"}}}]}}}};
XuZ=function(M){var z=_.J_(),J;J=(J=_.qH("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.layoutId:null;Y0(z,J,M)};
lVw=function(M){var z=_.J_(),J;J=(J=_.qH("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.layoutId:null;Y0(z,J,M)};
e2s=function(M,z){z=z===void 0?!1:z;if(M.simpleText)M=[{text:M.simpleText}];else{var J;M=((J=M.runs)!=null?J:[]).map(function(R){return Object.assign({},R)})}if(z)for(z=_.S(M),J=z.next();!J.done;J=z.next())J.value.bold=!0;
return M};
QkA=function(M){var z=M.startEndTimeTemplate,J=M.startTimeUtcMillis;M=M.endTimeUtcMillis;if(z&&J&&M)return _.id(_.Maw(_.CD(z),Number(J),Number(M)))};
UBA=function(M,z){var J,R,D=M==null?void 0:(J=M.viewCount)==null?void 0:(R=J.videoViewCountRenderer)==null?void 0:R.shortViewCount;if(!z&&D)return D;var N,Z;return M==null?void 0:(N=M.viewCount)==null?void 0:(Z=N.videoViewCountRenderer)==null?void 0:Z.viewCount};
vpZ=function(M,z){var J=M==null?void 0:M.relativeDateText;return!z&&J?[J,!0]:[M==null?void 0:M.dateText,!1]};
GtE=function(M,z,J,R,D){R=R===void 0?!0:R;D=D===void 0?"":D;var N=UBA(M,z),Z=_.S(vpZ(M,z)),B=Z.next().value;Z=Z.next().value;z=z?M==null?void 0:M.sponsorsOnlyFirstTimeLongText:M==null?void 0:M.sponsorsOnlyFirstTimeShortText;var O=[];J&&N&&O.push(N);!J&&Z||!B||O.push(B);M=[].concat(_.Yj(O),[z,M==null?void 0:M.stationName,M==null?void 0:M.rating,M?QkA(M):void 0,M==null?void 0:M.upNextProgramText,M==null?void 0:M.superTitleLink]).filter(function(X){return!!X});
J={runs:[]};for(N=0;N<M.length;N++)J.runs.push.apply(J.runs,_.Yj(e2s(M[N],R))),N<M.length-1&&J.runs.push({text:" "+D+" ",bold:R});return J};
wus=function(M){if(M)return{runs:[{text:M,bold:!0}]}};
xBq=function(M){var z,J,R,D;if(M=M==null?void 0:(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.results)==null?void 0:(D=R.results)==null?void 0:D.contents){var N,Z;return(Z=(N=M.find(function(B){return!!B.videoPrimaryInfoRenderer}))==null?void 0:N.videoPrimaryInfoRenderer)==null?void 0:Z.updatedMetadataEndpoint}};
tar=function(M,z){var J;return(J=M.sourceConfigs)==null?void 0:J.find(function(R){return R.videoId===z})};
gT=function(M){return M==="End of video"||M==="End of playlist"};
jkq=function(M){var z,J,R,D;return(z=M.getWatchNextResponse())==null?void 0:(J=z.contents)==null?void 0:(R=J.twoColumnWatchNextResults)==null?void 0:(D=R.playlist)==null?void 0:D.playlist};
puZ=function(M){var z,J,R,D,N,Z;return(z=jkq(M))==null?void 0:(J=z.playlistButtons)==null?void 0:(R=J.menuRenderer)==null?void 0:(D=R.topLevelButtons)==null?void 0:(N=D[0])==null?void 0:(Z=N.playlistLoopButtonRenderer)==null?void 0:Z.playlistLoopStateEntityKey};
F$s=function(M){var z=_.JF().resolve(_.aV),J;return(z=(J=_.G(z.getAutoplayEndpoint(),_.Au))==null?void 0:J.playlistId)&&z===M};
gpw=function(M,z,J,R,D){function N(){_.no.cancelJob(sg);var Z=Y$r(z,J/M.getPlaybackRate()),B=Z.hours,O=Z.minutes;Z=(Z.seconds*1E3||6E4)/M.getPlaybackRate();M.setVideoTimeLeft(mBA(B,O));R&&M.getPlayerState()!==0&&M.setSleepTimerTimeLeft(mBA(B,O,!0));(B>0||O>0)&&!D&&(sg=_.mn(_.no,N,Z))}
_.no.cancelJob(sg);sg=_.mn(_.no,N)};
skw=function(M,z,J){function R(){_.no.cancelJob(nt);var D=Y$r(z,J),N=D.hours;D=D.minutes;var Z=6E4/M.getPlaybackRate();if(N>0||D>0)M.setSleepTimerTimeLeft(mBA(N,D,!0)),nt=_.mn(_.no,R,Z)}
_.no.cancelJob(nt);nt=_.mn(_.no,R)};
npq=function(M,z){var J=M.getVolume()/(z/500),R=function(D){_.no.cancelJob(hc);var N=Math.floor(D-J);M.setVolume(N,!1);N>0&&(hc=_.mn(_.no,function(){R(N)},500))};
_.no.cancelJob(hc);hc=_.mn(_.no,function(){R(M.getVolume())})};
h2A=function(M,z){_.no.cancelJob(hc);z&&M.syncVolume()};
ySq=function(){var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.e9("SLEEP_TIMER_DISRUPTED")}}}}};_.JF().resolve(_.Rb).resolveCommand(M)};
Hvd=function(M){return(M.getDuration()-M.getProgressState().current)*1E3};
Y$r=function(M,z){M=M+z-(0,_.zU)();if(M<=0)return{hours:0,minutes:0,seconds:0};var J=new cSq(0,0,0,0,0,0,M);M=J.getHours();z=J.getMinutes();J=J.getSeconds();J!==0&&z++;z!==0&&z%60===0&&(M++,z=0);return{hours:M,minutes:z,seconds:J}};
mBA=function(M,z,J){return M>0&&z>0?J?_.e9("TIME_LEFT_HOURS_MINUTES",{hours:M.toString(),minutes:z.toString()}):_.e9("TIME_HOURS_MINUTES",{hours:M.toString(),minutes:z.toString()}):M>0?J?_.QC("TIME_LEFT_HOURS",M):_.QC("TIME_HOURS",M):J?_.e9("TIME_LEFT_MINUTES",{minutes:z.toString()}):_.e9("TIME_MINUTES",{minutes:z.toString()})};
dBq=function(M,z){if(M.timelyActions)return M.timelyActions.find(function(J){var R;return((R=_.G(J,yl))==null?void 0:R.cueRangeId)===z})};
K$Z=function(M){var z=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.II(M);M.keyMap_.forEach(function(J,R){_.Kp(z,R)||this.remove(R)},M)};
$Br=function(M,z){M.reloadContinuationItemsCommandMatcher=z};
_.HF=function(M,z){M.insertBefore(z,M.childNodes[0]||null)};
uQq=function(M){if(M>=48&&M<=57||M>=96&&M<=106||M>=65&&M<=90||_.oJ&&M==0)return!0;switch(M){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.IJ;default:return!1}};
q$q=function(M){if(M.altKey&&!M.ctrlKey||M.metaKey||M.keyCode>=112&&M.keyCode<=123)return!1;if(uQq(M.keyCode))return!0;switch(M.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.IJ;default:return M.keyCode<166||M.keyCode>183}};
cSq=function(M,z,J,R,D,N,Z){this.date=typeof M==="number"?new Date(M,z||0,J||1,R||0,D||0,N||0,Z||0):new Date(M&&M.getTime?M.getTime():_.Ss())};
_.ZP(cSq,_.m7);_.P=cSq.prototype;_.P.getHours=function(){return this.date.getHours()};
_.P.getMinutes=function(){return this.date.getMinutes()};
_.P.getSeconds=function(){return this.date.getSeconds()};
_.P.getMilliseconds=function(){return this.date.getMilliseconds()};
_.P.getUTCDay=function(){return this.date.getUTCDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.P.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.P.setHours=function(M){this.date.setHours(M)};
_.P.setMinutes=function(M){this.date.setMinutes(M)};
_.P.setSeconds=function(M){this.date.setSeconds(M)};
_.P.setMilliseconds=function(M){this.date.setMilliseconds(M)};
_.P.setUTCHours=function(M){this.date.setUTCHours(M)};
_.P.setUTCMinutes=function(M){this.date.setUTCMinutes(M)};
_.P.setUTCSeconds=function(M){this.date.setUTCSeconds(M)};
_.P.setUTCMilliseconds=function(M){this.date.setUTCMilliseconds(M)};
_.P.add=function(M){_.m7.prototype.add.call(this,M);M.hours&&this.setUTCHours(this.date.getUTCHours()+M.hours);M.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+M.minutes);M.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+M.seconds)};
_.P.JSC$11241_toIsoString=function(M){var z=_.m7.prototype.JSC$11241_toIsoString.call(this,M);return M?z+"T"+_.S6(this.getHours(),2)+":"+_.S6(this.getMinutes(),2)+":"+_.S6(this.getSeconds(),2):z+"T"+_.S6(this.getHours(),2)+_.S6(this.getMinutes(),2)+_.S6(this.getSeconds(),2)};
_.P.equals=function(M){return this.getTime()==M.getTime()};
_.P.toString=function(){return this.JSC$11241_toIsoString()};
_.P.clone=function(){var M=new cSq(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.W$Z=function(M){return _.Nv({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:M}})};
aVi=new _.R_("imageTileRenderer");var Vas=new _.R_("adGridCardCollectionViewModel");var Epi=new _.R_("carouselTitleViewModel");var fVi=new _.R_("ctaCarouselItemViewModel");var L$q=new _.R_("textFieldViewModel");_.ASs=new _.R_("engagementPanelHeaderShowNavigationButtonCommand");var ivd=new _.R_("hideEngagementPanelScrimAction");var CJr=new _.R_("setActivePanelItemAction");var bvZ=new _.R_("showEngagementPanelScrimAction");var rSq=new _.R_("updateEngagementPanelAction");var Mmr=new _.R_("updateSearchInVideoResultsAction");var zwi=new _.R_("transcriptCueGroupRenderer");var Ji4=new _.R_("transcriptCueRenderer");var RwE=new _.R_("transcriptFooterRenderer");var DNd=new _.R_("engagementPanelAdSubtitleRenderer");var Nlq=new _.R_("videoDescriptionFantasySectionViewModel");var Pws=new _.R_("deleteClipEngagementPanelCommand");var S5q=new _.R_("loopCommand");var ZwA=new _.R_("changeCreatorEndscreenVisibilityCommand");var kcq=new _.R_("liveChatCallForQuestionsRenderer");var Bld=new _.R_("updateTimedMarkersSyncObserverCommand");var yl=new _.R_("timelyActionViewModel");var Owi=new _.R_("timelyActionsOverlayViewModel");var Tlr=new _.R_("repeatChapterCommand");var Isi=new _.R_("watchPlayerOverflowMenuCommand");var oGw=new _.R_("compositeVideoOverlayRenderer");var Xtq=new _.R_("sortFilterSubMenuRenderer");var ls3=new _.R_("switchListItemViewModel");var ew3=new _.R_("inputComposerViewModel");var Qvr=new _.R_("transcriptEditSegmentCommand");var UNq=new _.R_("transcriptUpdateSegmentTextCommand");var vGq=new _.R_("transcriptSearchBoxRenderer");var Gcr=new _.R_("transcriptSegmentListRenderer");var wtA=new _.R_("transcriptSegmentRenderer");_.xN3=new _.R_("updateDateTextAction");var tmi=new _.R_("updateTitleAction");var jvi=new _.R_("updateViewershipAction");var ptq=new _.R_("carouselLockupRenderer");var cF=new _.R_("expandableVideoDescriptionBodyRenderer");var Fd4=new _.R_("videoDescriptionHeaderRenderer");var Y54=new _.R_("videoDescriptionYouchatSectionViewModel");_.dT=_.NC("kevlar_watch_page_horizontal_margin",24);_.mNi=_.NC("kevlar_watch_page_columns_top_padding",24);_.gGi=426+_.dT*2;_.Kt=_.NC("kevlar_watch_two_column_width_threshold",1E3);_.svq=_.dT*2;_.nGA=_.NC("kevlar_watch_secondary_width",402);_.hww=_.NC("kevlar_watch_max_player_width",1280);_.yi3=_.NC("kevlar_watch_flexy_metadata_height",136);_.HwA=_.svq+310+_.dT;_.ciq=_.svq+360+_.dT;var dNq={PAUSE_CHAT:18};var Kdq;var $NZ;var $0=function(){return _.g.apply(this,arguments)||this};
_.w($0,_.g);$0.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
$0.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var M=_.G(this.data.button,_.s3);M&&(M.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.rX.Object.defineProperties($0,{template:{configurable:!0,enumerable:!0,get:function(){if($NZ===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Kdq===void 0&&(Kdq=document.createElement("template"));var R=Kdq;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$NZ=M}M=$NZ;return M}}});
_.u([_.p(_.EE),_.W("design:type",Object)],$0.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({selectorArgs:["data.enabledEntityKey"],selector:EoE,observer:"onEnabledChange"}),_.W("design:type",Boolean)],$0.prototype,"enabled",void 0);_.u([_.Y(),_.W("design:type",Object)],$0.prototype,"data",void 0);_.u([_.cU({is:"yt-disableable-button-view-model",noInjection:!0})],$0);var ulr;var q5d;var Wdr=["transVert01","transVert02","transVert03"],as4="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),uh=function(){var M=_.g.apply(this,arguments)||this;M.emojiManager=_.As;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};M.reactionBuckets=[];M.noEmojiIdentifier="NO_EMOJI";return M};
_.w(uh,_.g);_.P=uh.prototype;_.P.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.P.desktopFountainEmojiSizePxChanged=function(){_.Tp(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.P.createUserReactionAnimation=function(M){this.createEmojiAnimation(M,!0)};
_.P.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var M;((M=this.data)==null?0:M.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.pf("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Yj(this.emojiContainer.children)).forEach(function(z){z.remove()})};
_.P.detached=function(){this.cleanupFountain()};
_.P.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var M;this.reactionBuckets=_.gu.unsafeClone((M=this.emojiFountainData)==null?void 0:M.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.P.processEmojiBucket=function(M){var z=this;if(this.reactionBuckets&&!(M>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var J=this.reactionBuckets[M];this.generateEmojiAnimations(J);if(M<this.reactionBuckets.length-1){var R;if(J==null?0:(R=J.duration)==null?0:R.seconds)this.emojiBucketTimerId=setTimeout(function(){z.processEmojiBucket(M+1)},Number(J.duration.seconds)*1E3)}}};
_.P.generateEmojiAnimations=function(M){var z=this,J=this.getRandomEmojiIdFromBucketWithOverride(M);if(J&&J!==this.noEmojiIdentifier){var R=0;M.targetEps?(R=this.linearInterpolateBounded(1,20,100,12,M.emojiSizeIndex||0),this.createEmojiAnimation(J,!1,M.emojiAnimationMs,R),R=this.getEmojiDelayMsFromTargetEps(M.targetEps)):(this.createEmojiAnimation(J),R=this.getEmojiDelayMsFromDistribution(M.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){z.generateEmojiAnimations(M)},R)}};
_.P.getRandomEmojiIdFromBucketWithOverride=function(M){if(!(M&&M.reactionsData&&M.reactionsData.length&&M.totalReactions))return this.noEmojiIdentifier;for(var z=M.totalReactions,J=1,R=_.S(M.reactionsData),D=R.next();!D.done;D=R.next())D=D.value,(D.reactionWeightOverride||D.reactionWeightOverride===0)&&D.reactionCount&&(z-=D.reactionCount,J-=D.reactionWeightOverride);R=!0;J<0&&(R=!1,z=M.totalReactions,J=1);if(R&&J>0&&z===0)if(J===1){D=0;for(var N=_.S(M.reactionsData),Z=N.next();!Z.done;Z=N.next())Z=
Z.value,Z.reactionCount&&Z.reactionCount>0&&D++;D=1/D;N=_.S(M.reactionsData);for(Z=N.next();!Z.done;Z=N.next())Z.value.reactionWeightOverride=D}else for(D=1/(1-J),N=_.S(M.reactionsData),Z=N.next();!Z.done;Z=N.next())Z=Z.value,Z.reactionWeightOverride&&(Z.reactionWeightOverride*=D);D=Math.random();N=0;Z=_.S(M.reactionsData);for(var B=Z.next();!B.done;B=Z.next())if(B=B.value,B.reactionCount&&(N=(B.reactionWeightOverride||B.reactionWeightOverride===0)&&R?N+B.reactionWeightOverride:N+J*B.reactionCount/
z,N>D&&(B.reactionCount--,M.totalReactions--,B=this.reactionItemToEmojiString(B),B!==this.noEmojiIdentifier)))return B;return this.noEmojiIdentifier};
_.P.reactionItemToEmojiString=function(M){if(M.unicodeEmojiId)return M.unicodeEmojiId;if(M.emoteId)return M.emoteId;if(M.videoReactionType)switch(M.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.P.createEmojiAnimation=function(M,z,J,R){z=z===void 0?!1:z;this.lastEmojiRequestedForTesting=M;var D=M.startsWith("yt-icons:"),N=_.fE(this.emojiManager,M);if(N||D){var Z=document.createElement("emoji");Z.classList.add("yt-emoji-fountain-view-model");Z.classList.add(Wdr[Math.floor(Math.random()*Wdr.length)]);var B=document.createElement("div");B.classList.add("yt-emoji-fountain-view-model");B.classList.add("horizontal-container");B.classList.add(as4[Math.floor(Math.random()*as4.length)]);z?(J=document.createElement("div"),
J.classList.add("user-reaction-bubble"),J.classList.add("yt-emoji-fountain-view-model"),B.appendChild(J)):(J&&(Z.style.animationDuration=J+"ms",B.style.animationDuration=J+"ms"),R&&(Z.style.width=R+"px",Z.style.height=R+"px"));D?(D=document.createElement("yt-icon"),D.polymerController.icon=M,R&&(D.style.width=R+"px",D.style.height=R+"px"),M=D):M=this.emojiManager.createEmoji(N,!1);M.classList.add("yt-emoji-fountain-view-model");B.appendChild(M);Z.appendChild(B);this.emojiContainer.appendChild(Z);
Z.addEventListener("animationend",function(){Z.remove()});
var O,X;if((O=this.data)==null?0:(X=O.loggingDirectives)==null?0:X.trackingParams)z=z?_.O3(183501):_.O3(183500),fc3(this.data.loggingDirectives.trackingParams,z),_.XZG(z);setTimeout(function(){Z&&Z.remove()},2E3)}};
_.P.getEmojiDelayMsFromDistribution=function(M){return Math.random()*(M||1)*1E3};
_.P.getEmojiDelayMsFromTargetEps=function(M){return Math.random()*2*(1/M)*1E3};
_.P.linearInterpolateBounded=function(M,z,J,R,D){D=Math.min(Math.max(D,M),J);return(z*(J-D)+R*(D-M))/(J-M)};
uh.prototype.onEmojiFountainDataEntityUpdate=uh.prototype.onEmojiFountainDataEntityUpdate;uh.prototype.desktopFountainEmojiSizePxChanged=uh.prototype.desktopFountainEmojiSizePxChanged;uh.prototype.isActiveChanged=uh.prototype.isActiveChanged;_.u([_.Y(),_.W("design:type",_.EQ)],uh.prototype,"emojiManager",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],uh.prototype,"ytLiveChatReduxBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uh.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(M,z){return _.Is(M.entities,"emojiFountainDataEntity",z)}}),
_.W("design:type",Object)],uh.prototype,"emojiFountainData",void 0);_.u([_.Y(),_.W("design:type",Boolean)],uh.prototype,"isActive",void 0);_.u([_.la("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uh.prototype,"isActiveChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uh.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",String)],uh.prototype,"lastEmojiRequestedForTesting",void 0);
_.u([_.Y({value:function(){return _.NC("desktop_fountain_emoji_size_px",20)}}),
_.W("design:type",Number)],uh.prototype,"desktopFountainEmojiSizePx",void 0);_.u([_.la("desktopFountainEmojiSizePx"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uh.prototype,"desktopFountainEmojiSizePxChanged",null);_.u([_.Qc("#emoji-container"),_.W("design:type",HTMLElement)],uh.prototype,"emojiContainer",void 0);
_.u([_.la("emojiFountainData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uh.prototype,"onEmojiFountainDataEntityUpdate",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],uh);
_.d(uh,"yt-emoji-fountain-view-model",function(){if(q5d===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;ulr===void 0&&(ulr=document.createElement("template"));var R=ulr;J.call(z,R.content.cloneNode(!0),M.content.firstChild);q5d=M}M=q5d;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Vm3;var EGr;var qX=function(){return _.g.apply(this,arguments)||this};
_.w(qX,_.g);qX.prototype.onChoiceChanged=function(){this.data&&_.Tp(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
qX.prototype.onChoiceChanged=qX.prototype.onChoiceChanged;_.u([_.Y(),_.W("design:type",Object)],qX.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qX.prototype,"onChoiceChanged",null);_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],qX);
_.d(qX,"yt-live-chat-banner-poll-choice",function(){if(EGr===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Vm3===void 0&&(Vm3=document.createElement("template"));var R=Vm3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);EGr=M}M=EGr;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var fsw;var Lds;var WF=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework_with_live");M.small=!1;return M};
_.w(WF,_.g);WF.prototype.computeIsSmall=function(){var M;return((M=this.buttonOverrides)==null?void 0:M.size)==="S"};
WF.prototype.computeId=function(){return this.data&&this.data.targetId};
_.u([_.p(_.fZ.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],WF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.u([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],WF.prototype,"id",void 0);_.u([_.Y(),_.W("design:type",Object)],WF.prototype,"buttonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],WF.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WF.prototype,"modern",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.W("design:type",Object)],WF.prototype,"small",void 0);_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-button"})],WF);
_.d(WF,"yt-live-chat-button",function(){if(Lds===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;fsw===void 0&&(fsw=document.createElement("template"));var R=fsw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Lds=M}M=Lds;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Aii;var iwA;var aa=function(){var M=_.g.apply(this,arguments)||this;M.inCollapsedBanner=!1;M.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};M.questionButtonOverrides={style:"mono",type:"filled"};return M};
_.w(aa,_.g);_.P=aa.prototype;_.P.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.P.onContextMenuButtonClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
_.P.onYtRendererstamperFinished=function(){this.menuButton=_.SN(this.hostElement).querySelector("#menu-button")};
_.P.dataChanged=function(){var M,z;if((z=_.G((M=this.data)==null?void 0:M.overflowMenuButton,_.aR))==null?0:z.command)this.data.contextMenuEndpoint=_.G(this.data.overflowMenuButton,_.aR).command};
_.P.onButtonClick=function(){var M,z=_.G((M=this.data)==null?void 0:M.askQuestionButton,_.aR);if(z){if(z.trackingParams&&(M=_.pe(z.trackingParams))){var J=_.y5();J&&_.fY(J,M)}_.Pv(this.hostElement,"innertube-command",z.command)}};
aa.prototype.onYtRendererstamperFinished=aa.prototype.onYtRendererstamperFinished;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],aa.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],aa.prototype,"ytLiveChatItemBehavior",void 0);_.u([_.Y({observer:"dataChanged"}),_.W("design:type",Object)],aa.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],aa.prototype,"inCollapsedBanner",void 0);_.u([_.Y(),_.W("design:type",Object)],aa.prototype,"buttonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],aa.prototype,"questionButtonOverrides",void 0);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aa.prototype,"onYtRendererstamperFinished",null);
_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],aa);
_.d(aa,"yt-live-chat-call-for-questions-renderer",function(){if(iwA===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Aii===void 0&&(Aii=document.createElement("template"));var R=Aii;J.call(z,R.content.cloneNode(!0),M.content.firstChild);iwA=M}M=iwA;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Cwq={};Cwq.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var M=this;window.requestAnimationFrame(function(){M.restoreFocusNode_||(M.restoreFocusNode_=document.activeElement);var z=_.hYu(M.hostElement);z.length&&z[z.length-1].focus()})},
isAttachedChanged_:function(M,z){M?this.focusChild_():z&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(M){this.hidden||_.CX(M).indexOf(this.hostElement)!==-1||(M.stopPropagation(),this.focusChild_())}};var bwr;var riA;var Vl=function(){return _.g.apply(this,arguments)||this};
_.w(Vl,_.g);Vl.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Vl.prototype.onClick=function(M){M.target!==this.confirmButton&&M.target!==this.cancelButton&&(this.hidden=!0)};
_.u([_.Qc("#confirm_button"),_.W("design:type",Object)],Vl.prototype,"confirmButton",void 0);_.u([_.Qc("#cancel_button"),_.W("design:type",Object)],Vl.prototype,"cancelButton",void 0);_.u([_.Y(),_.W("design:type",Mqi)],Vl.prototype,"data",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],Vl.prototype,"hidden",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(Cwq.YtLiveChatDialogBehavior),_.W("design:type",Object)],Vl.prototype,"ytLiveChatDialogBehavior",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Vl);
var Mqi=_.d(Vl,"yt-live-chat-dialog-renderer",function(){if(riA===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;bwr===void 0&&(bwr=document.createElement("template"));var R=bwr;J.call(z,R.content.cloneNode(!0),M.content.firstChild);riA=M}M=riA;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var zir;var Jrw,Riq=function(){if(Jrw!==void 0)return Jrw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;zir===void 0&&(zir=document.createElement("template"));var R=zir;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Jrw=M};var DEs;var NiA;var Eg=function(){var M=_.g.apply(this,arguments)||this;M.tooltip=null;M.data=null;M.id="";M.active=!1;M.icon="";M.disabled=!1;M.showTooltip=!1;M.useToggledActiveState=!0;M.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return M};
_.w(Eg,_.g);_.P=Eg.prototype;
_.P.dataChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.OV)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var z;if((z=this.data)==null?0:z.disabled)this.disabled=!0};
_.P.computeId=function(M){return M};
_.P.computeIcon=function(M,z){if(!M)return"";if(this.useToggledActiveState)return"yt-icons:"+M.toLowerCase();var J,R;return z&&((J=this.data)==null?0:(R=J.toggledIcon)==null?0:R.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+M.toLowerCase()};
_.P.logPDGEntryPoint=function(){_.PA0(_.oz("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.P.immediatelyShowTooltip=function(){var M=_.SN(this.hostElement).querySelector("#tooltip");M.animationDelay=0;M.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};M.show()};
_.P.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.P.onClick=function(M){var z;((z=this.data)==null?0:z.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),M.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Pv(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.P.computeShowTooltip=function(M,z){return!!(M&&M.tooltip&&z)};
_.P.maybeUpdateTooltipText=function(){var M=this,z;if((z=this.data)==null?0:z.tooltip){var J=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.OV)(M.tooltip).textContent=J},250)}};
_.P.handleLiveChatActions=function(M){var z=this;M.length&&(this.id!=="creator"&&this.id!=="product-picker"||M.forEach(function(J){(J=z.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",J))&&J.durationSec===J.fullDurationSec&&z.startBubble(z.colorFromDecimal(J.startBackgroundColor))}))};
_.P.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.P.startBubble=function(M){_.Tp(this.hostElement,{"--yt-live-chat-monetization-button-glow":M});this.hostElement.setAttribute("bubble","")};
_.P.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.P.colorFromDecimal=function(M){typeof M==="string"&&(M=Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
Eg.prototype.onAnimationEnd=Eg.prototype.onAnimationEnd;Eg.prototype.disabledChanged=Eg.prototype.disabledChanged;Eg.prototype.dataChanged=Eg.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Eg.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.fZ.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],Eg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Eg.prototype,"data",void 0);_.u([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],Eg.prototype,"id",void 0);_.u([_.Y({notify:!0,reflectToAttribute:!0}),_.W("design:type",Object)],Eg.prototype,"active",void 0);
_.u([_.Y({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.W("design:type",Object)],Eg.prototype,"icon",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Eg.prototype,"disabled",void 0);_.u([_.Y({computed:"computeShowTooltip(data, disabled)"}),_.W("design:type",Object)],Eg.prototype,"showTooltip",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Eg.prototype,"useToggledActiveState",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Eg.prototype,"dataChanged",null);_.u([_.la("disabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Eg.prototype,"disabledChanged",null);_.u([_.Xw("animationend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Eg.prototype,"onAnimationEnd",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Eg);
_.d(Eg,"yt-live-chat-icon-toggle-button-renderer",function(){if(NiA===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;DEs===void 0&&(DEs=document.createElement("template"));var R=DEs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);NiA=M}M=NiA;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Psi;var Swq;var ft=function(){return _.g.apply(this,arguments)||this};
_.w(ft,_.g);ft.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u([_.Y(),_.W("design:type",Object)],ft.prototype,"data",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ft);
_.d(ft,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Swq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Psi===void 0&&(Psi=document.createElement("template"));var R=Psi;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Swq=M}M=Swq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Z3r;var kAi;var Bii;var O3i;var Tiq;var Idq;var oqd=function(){return _.g.apply(this,arguments)||this};
_.w(oqd,_.g);_.u([_.Y(),_.W("design:type",Object)],oqd.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],oqd);
_.d(oqd,"yt-live-chat-message-subtext-renderer",function(){if(Idq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Tiq===void 0&&(Tiq=document.createElement("template"));var R=Tiq;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Idq=M}M=Idq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Lt=function(){var M=_.g.apply(this,arguments)||this;M.subtextOnBottom=!1;M.buttonOverrides={style:"mono",type:"tonal"};return M};
_.w(Lt,_.g);Lt.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Lt.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Lt.prototype,"subtextOnBottom",void 0);_.u([_.Y(),_.W("design:type",Object)],Lt.prototype,"buttonOverrides",void 0);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Lt);
_.d(Lt,"yt-live-chat-message-renderer",function(){if(O3i===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Bii===void 0&&(Bii=document.createElement("template"));var R=Bii;J.call(z,R.content.cloneNode(!0),M.content.firstChild);O3i=M}M=O3i;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var X44;var ldA;var Ac=function(){var M=_.g.apply(this,arguments)||this;M.isRemovable=!1;M.hasPrefilledText=!1;M.isInputDirty=!1;M.overCharacterLimit=!1;M.underCharacterLimit=!1;M.showErrorMessage=!1;return M};
_.w(Ac,_.g);_.P=Ac.prototype;_.P.computeId=function(){return this.data.id};
_.P.computeInputData=function(){return this.data.inputData};
_.P.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.P.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.P.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.P.getLiveChatRichMessageInput=function(){return _.SN(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.P.clearInput=function(){_.SN(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.P.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.P.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.P.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.P.handleTextInputCharCountChanged=function(M){M=M.detail&&M.detail.characterCount;M!==void 0&&(this.characterCount=M,M!==0&&(this.isInputDirty=!0))};
_.P.onInputFocusOut=function(){this.isInputDirty=!0};
_.P.onClickCloseButton=function(){_.Pv(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ac.prototype.handleTextInputCharCountChanged=Ac.prototype.handleTextInputCharCountChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ac.prototype,"data",void 0);_.u([_.Y({computed:"computeId(data.id)"}),_.W("design:type",String)],Ac.prototype,"id",void 0);_.u([_.Y({computed:"computeInputData(data.inputData)"}),_.W("design:type",Object)],Ac.prototype,"inputData",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.W("design:type",Object)],Ac.prototype,"isRemovable",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.W("design:type",Object)],Ac.prototype,"hasPrefilledText",void 0);_.u([_.Y({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.W("design:type",Number)],Ac.prototype,"charactersRemaining",void 0);
_.u([_.Y(),_.W("design:type",Number)],Ac.prototype,"characterCount",void 0);_.u([_.Y(),_.W("design:type",Object)],Ac.prototype,"isInputDirty",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.W("design:type",Object)],Ac.prototype,"overCharacterLimit",void 0);_.u([_.Y({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.W("design:type",Object)],Ac.prototype,"underCharacterLimit",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.W("design:type",Object)],Ac.prototype,"showErrorMessage",void 0);_.u([_.Xw("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ac.prototype,"handleTextInputCharCountChanged",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ac);
_.d(Ac,"yt-live-chat-poll-editor-input",function(){if(ldA===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;X44===void 0&&(X44=document.createElement("template"));var R=X44;J.call(z,R.content.cloneNode(!0),M.content.firstChild);ldA=M}M=ldA;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ei3;var Qrq;var UEw={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},ih=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_button_rework_with_live");M.closeButtonOverrides={iconPosition:"icon-only"};M.startButtonOverrides={style:"mono",type:"filled"};M.addOptionButtonOverrides={style:"mono",type:"text"};return M};
_.w(ih,_.g);_.P=ih.prototype;
_.P.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.P.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var M;_.G((M=this.data)==null?void 0:M.startButton,_.aR)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.computeId=function(){return this.data&&this.data.id||""};
_.P.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.P.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.P.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.P.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.P.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var M=0;M<this.pollEditorInfoWithDefaults.minPollOptions;M++)this.addPollOptionData()};
_.P.getIsValidPoll=function(){var M=this;if(!this.pollEditorInfoWithDefaults)return!1;var z=this.pollEditorInfoWithDefaults,J=z.minPollOptionChars,R=z.maxPollOptionChars,D=z.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>z.maxPollQuestionChars)return!1;z=_.SN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(z).every(function(N,Z){N=N.characterCount;!N&&D[Z]&&(N=M.ytRendererBehavior.getSimpleString(D[Z]).length);return N!==void 0&&N>=J&&N<=R})};
_.P.isValidPollChanged=function(){var M;_.G((M=this.data)==null?void 0:M.startButton,_.aR)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.addPollOptionData=function(){var M=this.pollEditorInfoWithDefaults,z=M.maxPollOptionChars,J=M.optionPlaceholderText,R=M.customOptionPlaceholderText,D=M.pollOptionData;this.currentNumPollOptions>=M.maxPollOptions||(M={liveChatPollOptionInput:{inputData:{placeholder:R[this.currentNumPollOptions]||J,maxCharacterLimit:z},maxCharacterLimit:z,minCharacterLimit:M.minPollOptionChars,hasPrefilledText:!!R[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=M.minPollOptions}},D.charCountErrorText&&
(M.liveChatPollOptionInput.charCountErrorText=D.charCountErrorText),D.charsRemainingAltLabel&&(M.liveChatPollOptionInput.charsRemainingAltLabel=D.charsRemainingAltLabel),D.removeOptionAltText&&(M.liveChatPollOptionInput.removeOptionAltText=D.removeOptionAltText),this.push("pollOptionsData",M),D=Array.from(_.SN(_.SN(this.hostElement).querySelector("#poll-options")).children),D.forEach(function(N,Z){N.polymerController.set("data.id",Z)}),_.SN(D[D.length-1]).querySelector("#input").focus())};
_.P.getPollOptionInputValues=function(){var M=this,z=[],J=_.SN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),R=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(J).forEach(function(D,N){var Z=null;D=D.getLiveChatRichMessageInput();var B;(D==null?0:(B=D.textSegments)==null?0:B.length)?Z=_.q7(D):R[N]&&(Z=M.formattedStringToLiveChatRichMessageInput(R[N]));z.push(Z)});
return z};
_.P.requestCreateAndStartPoll=function(M){var z=this.getPollOptionInputValues();if(!z.some(function(R){return!R})){z={optionText:z};
var J=_.SN(_.SN(this.hostElement).querySelector("#poll-question")).firstChild;J&&J.liveChatRichMessageInput&&(z.questionText=_.q7(J.liveChatRichMessageInput));_.kQ(this.hostElement,[M,z])}};
_.P.selectedChanged=function(){if(this.selected){var M=_.SN(_.SN(this.hostElement).querySelector("#start-button")).firstElementChild;if(M){var z;(z=_.SN(M).querySelector("#button")||_.ZE(M).querySelector("button"))==null||z.focus()}}};
_.P.handleTextInputChanged=function(M){var z;((z=M.target)==null?void 0:z.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=M.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.P.handleStartButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),(M=M.detail.args[1])&&this.requestCreateAndStartPoll(M))};
_.P.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(M){this.createPollRequestInFlight=!1;(M=M.detail&&M.detail.data)&&M.success&&(_.Pv(this.hostElement,"picker-cancelled"),_.S9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.P.onCloseClick=function(){_.Pv(this.hostElement,"picker-cancelled");_.S9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.P.handlePollEditorInputClosed=function(M){var z=this.pollOptionsData.findIndex(function(J){return J.liveChatPollOptionInput.id===M.detail.id});
this.splice("pollOptionsData",z,1);this.isValidPoll=this.getIsValidPoll()};
_.P.onPickerCancelled=function(){this.reset()};
_.P.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var M=_.SN(_.SN(this.hostElement).querySelector("#poll-question")).firstChild;M&&M.setLiveChatRichMessageInput(null);if(M=_.SN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){M=_.S(Array.from(M));for(var z=M.next();!z.done;z=M.next())z.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.P.formattedStringToLiveChatRichMessageInput=function(M){return M.simpleText?{text_segments:[M.simpleText]}:{text_segments:M.runs}};
_.rX.Object.defineProperties(ih.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(UEw,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
ih.prototype.onPickerCancelled=ih.prototype.onPickerCancelled;ih.prototype.handlePollEditorInputClosed=ih.prototype.handlePollEditorInputClosed;ih.prototype.handleServiceRequestCompleted=ih.prototype.handleServiceRequestCompleted;ih.prototype.handleServiceRequestSent=ih.prototype.handleServiceRequestSent;ih.prototype.handleTextInputChanged=ih.prototype.handleTextInputChanged;ih.prototype.selectedChanged=ih.prototype.selectedChanged;ih.prototype.isValidPollChanged=ih.prototype.isValidPollChanged;
ih.prototype.shouldInitializePollChanged=ih.prototype.shouldInitializePollChanged;ih.prototype.dataChanged=ih.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ih.prototype,"modern",void 0);
_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"closeButtonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"startButtonOverrides",void 0);_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"addOptionButtonOverrides",void 0);_.u([_.Y({computed:"computeId(data.id)",reflectToAttribute:!0}),_.W("design:type",String)],ih.prototype,"id",void 0);_.u([_.Y({value:function(){return[]}}),
_.W("design:type",Array)],ih.prototype,"pollOptionsData",void 0);_.u([_.F("pollEditorInfoWithDefaults"),_.W("design:type",Object),_.W("design:paramtypes",[])],ih.prototype,"pollQuestionData",null);_.u([_.Y({value:0}),_.W("design:type",Number)],ih.prototype,"pollQuestionCharacterCount",void 0);_.u([_.F("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],ih.prototype,"pollQuestionCharactersRemaining",null);
_.u([_.Y({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.W("design:type",Boolean)],ih.prototype,"overQuestionCharacterLimit",void 0);_.u([_.F("data.pollEditorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],ih.prototype,"pollEditorInfoWithDefaults",null);_.u([_.Y({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.W("design:type",Number)],ih.prototype,"currentNumPollOptions",void 0);
_.u([_.Y({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.W("design:type",Boolean)],ih.prototype,"hasMaxNumPollOptions",void 0);_.u([_.F("pollEditorInfoWithDefaults","pollOptionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ih.prototype,"shouldInitializePoll",null);_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"isValidPoll",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],ih.prototype,"createPollRequestInFlight",void 0);_.u([_.Y(),_.W("design:type",Object)],ih.prototype,"selected",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.W("design:type",Boolean)],ih.prototype,"showQuestionErrorMessage",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"dataChanged",null);_.u([_.la("shouldInitializePoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"shouldInitializePollChanged",null);_.u([_.la("isValidPoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"isValidPollChanged",null);
_.u([_.la("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"selectedChanged",null);_.u([_.Xw("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ih.prototype,"handleTextInputChanged",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"handleServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ih.prototype,"handleServiceRequestCompleted",null);
_.u([_.Xw("yt-live-chat-poll-editor-input-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ih.prototype,"handlePollEditorInputClosed",null);_.u([_.Xw("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ih.prototype,"onPickerCancelled",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],ih);
_.d(ih,"yt-live-chat-poll-editor-panel-renderer",function(){if(Qrq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;ei3===void 0&&(ei3=document.createElement("template"));var R=ei3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Qrq=M}M=Qrq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var vq3;var GAA;var Ct=function(){return _.g.apply(this,arguments)||this};
_.w(Ct,_.g);Ct.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ct.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.rX.Object.defineProperties(Ct.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var M,z;return(M=this.data)==null?void 0:(z=M.title)==null?void 0:z.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.$S((M=this.data)==null?void 0:M.onTapCommand)}}});
_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],Ct.prototype,"ytEndpointBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ct.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ct.prototype,"itemId",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ct.prototype,"hasPromotion",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ct.prototype,"innertubeCommand",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ct);
_.d(Ct,"yt-live-chat-product-picker-panel-item-view-model",function(){if(GAA===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;vq3===void 0&&(vq3=document.createElement("template"));var R=vq3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);GAA=M}M=GAA;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var w4i;var xEw;var bh=function(){var M=_.g.apply(this,arguments)||this;M.id="product-picker";M.selected=!1;M.closeButtonId="close-button";M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.w(bh,_.g);_.P=bh.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var M=_.SN(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");M.length&&M[0].focus()};
_.P.onCloseBuyFlow=function(){_.Pv(this.hostElement,"picker-cancelled")};
_.P.onCloseClick=function(){_.Pv(this.hostElement,"picker-cancelled");var M;((M=this.data)==null?0:M.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.G(this.data.closeButton,_.s3))};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.Pv(this.hostElement,"picker-cancelled")};
bh.prototype.observeSelected=bh.prototype.observeSelected;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],bh.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bh.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bh.prototype,"id",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bh.prototype,"selected",void 0);_.u([_.Y(),_.W("design:type",Object)],bh.prototype,"closeButtonId",void 0);_.u([_.la("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bh.prototype,"observeSelected",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],bh);
_.d(bh,"yt-live-chat-product-picker-panel-view-model",function(){if(xEw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;w4i===void 0&&(w4i=document.createElement("template"));var R=w4i;J.call(z,R.content.cloneNode(!0),M.content.firstChild);xEw=M}M=xEw;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var tq3;var jrq;var rT=function(){var M=_.g.apply(this,arguments)||this;M.iconId="";M.icon="";M.disabled=!1;M.systemIcons=_.U("kevlar_system_icons");return M};
_.w(rT,_.g);_.P=rT.prototype;_.P.computeIconId=function(M){return M&&M.icon&&M.icon.iconType?M.icon.iconType.toLowerCase():""};
_.P.computeIcon=function(M){return M&&M.icon&&M.icon.iconType?(M=M.icon.iconType.toLowerCase(),(M.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+M):""};
_.P.computeDisabled=function(M){return!!M};
_.P.computeCommand=function(M,z){return z?void 0:M};
_.P.computeTooltip=function(M,z){return z&&M?M:""};
_.P.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.rX.Object.defineProperties(rT.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M="",z,J,R;if((z=this.data)==null?0:(J=z.text)==null?0:(R=J.runs)==null?0:R.length)M=this.data.text.runs[0].text||"";else{var D,N;if((D=this.data)==null?0:(N=D.text)==null?0:N.simpleText)M=this.data.text.simpleText}var Z,B,O;if((Z=this.data)==null?0:(B=Z.subtext)==null?0:(O=B.runs)==null?0:O.length)M&&(M+=". "),M+=this.data.subtext.runs[0].text||"";else{var X,l;if((X=this.data)==null?0:(l=X.subtext)==
null?0:l.simpleText)M&&(M+=". "),M+=this.data.subtext.simpleText}return M}}});
_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],rT.prototype,"ytEndpointBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rT.prototype,"data",void 0);_.u([_.Y({computed:"computeIconId(data)",reflectToAttribute:!0}),_.W("design:type",Object)],rT.prototype,"iconId",void 0);
_.u([_.Y({computed:"computeIcon(data)",reflectToAttribute:!0}),_.W("design:type",Object)],rT.prototype,"icon",void 0);_.u([_.Y({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.W("design:type",Object)],rT.prototype,"disabled",void 0);_.u([_.Y({computed:"computeCommand(data.command, disabled)"}),_.W("design:type",Object)],rT.prototype,"command",void 0);_.u([_.Y({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.W("design:type",String)],rT.prototype,"tooltip",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rT.prototype,"systemIcons",void 0);_.u([_.F("data.text","data.subtext"),_.Y(),_.W("design:type",String),_.W("design:paramtypes",[])],rT.prototype,"ariaLabel",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],rT);
_.d(rT,"yt-live-chat-product-button-renderer",function(){if(jrq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;tq3===void 0&&(tq3=document.createElement("template"));var R=tq3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);jrq=M}M=jrq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var p4r;var FAw;var MR=function(){var M=_.g.apply(this,arguments)||this;M.selected=!1;M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return M};
_.w(MR,_.g);_.P=MR.prototype;_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.computeId=function(M){return M.id||""};
_.P.onCloseClick=function(){_.Pv(this.hostElement,"picker-cancelled")};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var M=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");M.length&&M[0].focus()};
_.P.onCloseBuyFlow=function(){_.Pv(this.hostElement,"picker-cancelled")};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.Pv(this.hostElement,"picker-cancelled")};
MR.prototype.observeSelected=MR.prototype.observeSelected;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],MR.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],MR.prototype,"data",void 0);
_.u([_.Y({computed:"computeId(data)",reflectToAttribute:!0}),_.W("design:type",String)],MR.prototype,"id",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],MR.prototype,"selected",void 0);_.u([_.la("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MR.prototype,"observeSelected",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],MR);
_.d(MR,"yt-live-chat-product-picker-renderer",function(){if(FAw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;p4r===void 0&&(p4r=document.createElement("template"));var R=p4r;J.call(z,R.content.cloneNode(!0),M.content.firstChild);FAw=M}M=FAw;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var YwE;var mEw;var gq4;var srq;var zB=function(){return _.g.apply(this,arguments)||this};
_.w(zB,_.g);zB.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()};
zB.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
zB.prototype.created=function(){this.ids={background:_.A7(),maskOne:_.A7(),maskTwo:_.A7(),gradient:_.A7(),largeBackground:_.A7(),largeGradientOne:_.A7(),largeGradientTwo:_.A7(),largeGradientPath:_.A7()}};
zB.prototype.maybeLoadAnimationBackground=zB.prototype.maybeLoadAnimationBackground;_.u([_.Y({value:!1}),_.W("design:type",Boolean)],zB.prototype,"useLargeBackground",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],zB.prototype,"useAnimationBackground",void 0);_.u([_.Y({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.W("design:type",Boolean)],zB.prototype,"useRegularBackground",void 0);
_.u([_.Y(),_.W("design:type",Object)],zB.prototype,"ids",void 0);_.u([_.Y(),_.W("design:type",Object)],zB.prototype,"lottieAnimation",void 0);_.u([_.Qc("#animation-background"),_.W("design:type",HTMLDivElement)],zB.prototype,"animationBackground",void 0);_.u([_.la("useAnimationBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zB.prototype,"maybeLoadAnimationBackground",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],zB);
_.d(zB,"yt-live-interactivity-component-background",function(){if(srq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;gq4===void 0&&(gq4=document.createElement("template"));var R=gq4;J.call(z,R.content.cloneNode(!0),M.content.firstChild);srq=M}M=srq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var JW=function(){var M=_.g.apply(this,arguments)||this;M.characterCount=0;M.showInputErrorMessage=!1;M.startQnaRequestInFlight=!1;M.modern=_.U("web_button_rework_with_live");M.buttonOverrides={style:"mono",type:"filled"};M.closeButtonOverrides={iconPosition:"icon-only"};M.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return M};
_.w(JW,_.g);_.P=JW.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.onCharacterCountChanged=function(M){var z,J,R,D,N=(J=_.G(this==null?void 0:(z=this.data)==null?void 0:z.creatorCallForQuestions,kcq))==null?void 0:(R=J.inputField)==null?void 0:(D=R.liveChatTextInputFieldRenderer)==null?void 0:D.maxCharacterLimit,Z,B;N!=null&&(M==null?void 0:(Z=M.detail)==null?void 0:Z.characterCount)!=null&&_.G(this==null?void 0:(B=this.data)==null?void 0:B.startButton,_.aR)&&(z=M.detail.characterCount>N,this.set("data.startButton.buttonRenderer.isDisabled",M.detail.characterCount===
0||z),this.showInputErrorMessage=z)};
_.P.onCloseClick=function(){_.Pv(this.hostElement,"picker-cancelled");_.S9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onPickerCancelled=function(){var M=_.SN(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.setLiveChatRichMessageInput(null)};
_.P.handleOpenQnaStartPanel=function(){var M=_.SN(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.focus()};
_.P.handleStartButtonAction=function(M){var z=this;if(M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),M=M.detail.args[1])){var J=_.SN(this.hostElement).querySelector("#qna-creator-text-input-field"),R;(J==null?0:(R=J.liveChatRichMessageInput)==null?0:R.textSegments)&&J.liveChatRichMessageInput.textSegments.length!==0&&(R={rich_message:_.q7(J.liveChatRichMessageInput)},_.kQ(this.hostElement,[M,R]).then(function(){_.Pv(z.hostElement,"picker-cancelled")}))}};
_.P.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(M){var z;M=M==null?void 0:(z=M.detail)==null?void 0:z.data;(M==null?0:M.actions)&&M.actions.length>0?this.startQnaRequestInFlight=!1:_.S9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
JW.prototype.handleServiceRequestError=JW.prototype.handleServiceRequestError;JW.prototype.handleServiceRequestCompleted=JW.prototype.handleServiceRequestCompleted;JW.prototype.handleServiceRequestSent=JW.prototype.handleServiceRequestSent;JW.prototype.onPickerCancelled=JW.prototype.onPickerCancelled;JW.prototype.onCharacterCountChanged=JW.prototype.onCharacterCountChanged;_.u([_.Y(),_.W("design:type",Object)],JW.prototype,"characterCount",void 0);
_.u([_.Y(),_.W("design:type",Object)],JW.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],JW.prototype,"showInputErrorMessage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],JW.prototype,"startQnaRequestInFlight",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],JW.prototype,"modern",void 0);_.u([_.Y(),_.W("design:type",Object)],JW.prototype,"buttonOverrides",void 0);
_.u([_.Y(),_.W("design:type",Object)],JW.prototype,"closeButtonOverrides",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],JW.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.p(_.iT.YtLiveChatItemBehavior),_.W("design:type",_.CE)],JW.prototype,"ytLiveChatItemBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],JW.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Xw("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],JW.prototype,"onCharacterCountChanged",null);_.u([_.Xw("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JW.prototype,"onPickerCancelled",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JW.prototype,"handleServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],JW.prototype,"handleServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],JW.prototype,"handleServiceRequestError",null);_.u([_.c({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],JW);
_.d(JW,"yt-live-chat-qna-start-panel-renderer",function(){if(mEw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;YwE===void 0&&(YwE=document.createElement("template"));var R=YwE;J.call(z,R.content.cloneNode(!0),M.content.firstChild);mEw=M}M=mEw;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var nqi;var hii;var RA=function(){return _.g.apply(this,arguments)||this};
_.w(RA,_.g);RA.prototype.dismiss=function(){_.Pv(this.hostElement,"yt-live-chat-error-message-dismiss")};
RA.prototype.edit=function(){_.Pv(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.u([_.Y(),_.W("design:type",Object)],RA.prototype,"data",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],RA);
_.d(RA,"yt-live-chat-text-actions-error-message-renderer",function(){if(hii===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;nqi===void 0&&(nqi=document.createElement("template"));var R=nqi;J.call(z,R.content.cloneNode(!0),M.content.firstChild);hii=M}M=hii;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var yrq;var H3r;var crq;var dEq;var DH=function(){var M=_.g.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.w(DH,_.g);DH.prototype.sendReaction=function(){var M,z,J=((M=this.data)==null?void 0:M.emojiId)||((z=this.data)==null?void 0:z.emoteId),R;J&&((R=this.data)==null?0:R.shouldTriggerAnimation)&&_.S9(this.hostElement,"yt-create-user-reaction-animation",[J]);var D;(M=_.$S((D=this.data)==null?void 0:D.onTap))&&_.e5(M,this.hostElement);this.showNewnessDot&&_.S9(this.hostElement,"yt-hide-newness-dot")};
DH.prototype.onClick=function(M){(!M||M.clientX||M.clientY)&&this.sendReaction()};
DH.prototype.onKeyDown=function(M){M.key!=="Enter"&&M.key!==" "||M.repeat||this.sendReaction()};
_.rX.Object.defineProperties(DH.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!(((M=this.data)==null?0:M.emojiId)||((z=this.data)==null?0:z.emoteId))}}});
_.u([_.Y(),_.W("design:type",Object)],DH.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],DH.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],DH.prototype,"newnessDotEligible",void 0);_.u([_.F("data.maybeShowNewnessDot"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DH.prototype,"showNewnessDot",null);_.u([_.F("data.emojiId","data.emoteId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DH.prototype,"useYtImage",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],DH);
_.d(DH,"yt-reaction-control-panel-button-view-model",function(){if(dEq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;crq===void 0&&(crq=document.createElement("template"));var R=crq;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dEq=M}M=dEq;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var KAE;var $E3;var NR=function(){var M=_.g.apply(this,arguments)||this;M.reactionControlPanelExpanded=!1;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.w(NR,_.g);_.P=NR.prototype;_.P.expandedButtonsChanged=function(){var M,z;_.Tp(this.hostElement,{"--expanded-buttons-height":((z=(M=this.expandedButtonsData)==null?void 0:M.length)!=null?z:0)*36+"px"})};
_.P.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.P.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.P.onMouseLeave=function(){var M=this;this.collapseTimer=setTimeout(function(){M.reactionControlPanelExpanded=!1},500)};
_.P.onFocusIn=function(){this.onMouseEnter()};
_.P.onFocusOut=function(){this.onMouseLeave()};
_.P.onCollapsedButtonFocusIn=function(){var M=this;setTimeout(function(){var z;(z=M.expandedButtons.querySelector("button"))==null||z.focus()},100)};
_.P.onCollapsedButtonFocusOut=function(M){M.stopPropagation()};
_.rX.Object.defineProperties(NR.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var M,z;return _.gu.unsafeClone((M=this.liveReactionsData)==null?void 0:M.emojiButtonData)||((z=this.data)==null?void 0:z.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((M=this.data)==null||!M.maybeShowNewnessDot)}}});
NR.prototype.expandedButtonsChanged=NR.prototype.expandedButtonsChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],NR.prototype,"ytLiveChatReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NR.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"reactionControlPanelExpanded",void 0);_.u([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Vpr}),_.W("design:type",Object)],NR.prototype,"liveReactionsData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],NR.prototype,"newnessDotEligible",void 0);
_.u([_.F("liveReactionsData","data.expandedButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],NR.prototype,"expandedButtonsData",null);_.u([_.F("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Y({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],NR.prototype,"showNewnessDot",null);_.u([_.Qc("#expanded-buttons"),_.W("design:type",HTMLElement)],NR.prototype,"expandedButtons",void 0);
_.u([_.la("expandedButtonsData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NR.prototype,"expandedButtonsChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],NR);
_.d(NR,"yt-reaction-control-panel-view-model",function(){if($E3===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;KAE===void 0&&(KAE=document.createElement("template"));var R=KAE;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$E3=M}M=$E3;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var P7=new _.dc("yt-live-chat"),uq3=Date.parse("2024-7-24"),Sj=function(){var M=_.g.apply(this,arguments)||this;M.emojiManager=_.As;M.newnessDotEligible=!1;M.newnessDotImpressionCounted=!1;M.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return M};
_.w(Sj,_.g);_.P=Sj.prototype;_.P.emojiCustomizationEnabledChanged=function(){var M;((M=this.data)==null?0:M.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((M=P7.getCreationTime("emoji-customization-count"))&&M<uq3&&P7.set("emoji-customization-count","0"),M=Number(P7.get("emoji-customization-count"))||0,M<3&&(this.newnessDotEligible=!0,P7.set("emoji-customization-count",(M+1).toString())),this.newnessDotImpressionCounted=!0)};
_.P.hideNewnessDot=function(){this.newnessDotEligible=!1;P7.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.P.handleReactionsMute=function(M){var z=_.y5(),J=_.O3(206221),R={checkboxData:{state:M?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};z&&_.fY(z,J,R);this.reactionsMuted=M};
_.P.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.P.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.rX.Object.defineProperties(Sj.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return(!((M=this.liveReactionsData)==null||!M.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Sj.prototype.liveReactionsSettingChanged=Sj.prototype.liveReactionsSettingChanged;Sj.prototype.emojiCustomizationEnabledChanged=Sj.prototype.emojiCustomizationEnabledChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.EE),_.W("design:type",Object)],Sj.prototype,"ytLiveChatReduxBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Sj.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Sj.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",_.EQ)],Sj.prototype,"emojiManager",void 0);_.u([_.Y(),_.W("design:type",Object)],Sj.prototype,"newnessDotEligible",void 0);_.u([_.Y(),_.W("design:type",Object)],Sj.prototype,"newnessDotImpressionCounted",void 0);
_.u([_.Y({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:EoE}),_.W("design:type",Boolean)],Sj.prototype,"liveReactionsSetting",void 0);_.u([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Vpr}),_.W("design:type",Object)],Sj.prototype,"liveReactionsData",void 0);_.u([_.Y({value:function(){var M=_.U("enable_lwe_web_mute"),z=P7.get("allow-reactions");return z===void 0?!1:!z&&M}}),
_.W("design:type",Boolean)],Sj.prototype,"reactionsMuted",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Sj.prototype,"liveReactionsEnabled",null);_.u([_.la("data.emojiCustomizationEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sj.prototype,"emojiCustomizationEnabledChanged",null);
_.u([_.la("liveReactionsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Sj.prototype,"liveReactionsSettingChanged",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Sj);
_.d(Sj,"yt-reaction-control-panel-overlay-view-model",function(){if(H3r===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;yrq===void 0&&(yrq=document.createElement("template"));var R=yrq;J.call(z,R.content.cloneNode(!0),M.content.firstChild);H3r=M}M=H3r;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var qw3={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(M){var z=this.$.pickers.selected;if(z){_.SN(this.hostElement).removeAttribute(z+"-open");var J="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(J="#picker-buttons",z==="emoji"&&_.SN(this.hostElement).querySelector("#emoji-picker-button")&&(J="#emoji-picker-button"));if(J=_.SN(this.hostElement).querySelector(J).querySelector("#"+z))J.active=!1}J=M;z==M&&(J=null);z!=
M&&_.SN(this.hostElement).setAttribute(M+"-open","");this.$.pickers.selected=J;_.S9(this.hostElement,"yt-live-chat-picker-changed",[J])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ZH=function(){var M=_.g.apply(this,arguments)||this;M.numSentMessages=0;M.timeoutDurationMs=0;M.timeoutMs=0;M.lastTimeoutTimeMs=0;M.pendingMessageId="";M.hasFiredInitialFocusActions=!1;M.isBeforeFocusEnabled=!0;M.id="";M.characterCount=0;M.maxCharacterLimit=0;M.remainingCharacterCount=0;M.inputExpanded=!1;M.buttonOverrides={iconPosition:"icon-only"};M.inReplyPanel=!1;M.countdownRatio=0;M.isTooltipVisible=!1;M.tooltipTimeout=1E4;M.systemIcons=_.U("kevlar_system_icons");M.tallerEmojiPicker=_.U("live_chat_taller_emoji_picker");
M.sendReplyMessageInFlight=!1;M.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};M.onResize=function(){M.maybeToggleCharacterCount()};
return M};
_.w(ZH,_.g);_.P=ZH.prototype;
_.P.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.P.attached=function(){window.addEventListener("resize",this.onResize)};
_.P.detached=function(){window.removeEventListener("resize",this.onResize)};
_.P.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.P.sendMessage=function(){var M=this,z,J,R,D;return _.k(function(N){if(M.sendDisabled)return N.return();M.isTooltipVisible&&_.S9(M.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(M.data.sendButton&&M.data.sendButton.buttonRenderer){M.input.completeEmojis();z=M.data.sendButton.buttonRenderer.serviceEndpoint;if(!z)return N.return();R=((J=_.G(z,_.$hQ))==null?void 0:J.clientIdPrefix)||"";D={client_message_id:R+String(M.numSentMessages++),rich_message:_.q7(M.input.liveChatRichMessageInput)};
M.pendingMessageId=D.client_message_id;M.inReplyPanel&&(M.sendReplyMessageInFlight=!0);_.kQ(M.hostElement,[z,D]);M.input.setLiveChatRichMessageInput(null)}_.UI(N)})};
_.P.handleSendButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),this.sendMessage())};
_.P.onSendCompleted=function(M,z){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(M=this.get("timeoutDurationUsec",z.data))&&this.handleTimeout(Number(M)/1E3);this.errorMessage=this.get("errorMessage",z.data);this.pendingMessageId=""};
_.P.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.S9(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.P.handlePickerButtonToggle=function(M){M=M.detail.targetId;this.ytPickerBehavior.togglePicker_(M);if(M==="emoji")this.input.focus();else if(M==="qna-start-panel"){var z,J;(z=_.SN(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(J=z.querySelector("#qna-creator-text-input-field"))==null||J.focus()}};
_.P.onComponentReplaced=function(M){var z,J;M.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((z=M.replacement.liveChatMessageInputRenderer)==null?0:(J=z.headerRenderer)==null?0:J.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.P.onEmojiSelect=function(M){this.input.focus();this.input.insertEmoji(M.detail)};
_.P.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.P.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.S9(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.S9(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.P.onOpenPopupAction=function(M,z){var J=this;z===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.S9(J.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.P.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.P.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.P.focusChanged=function(){this.maybeToggleCharacterCount()};
_.P.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var M=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",M>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.P.computeId=function(){return this.data&&this.data.targetId||""};
_.P.computeSendDisabled=function(M,z,J,R){M=!!(!M||z&&M>z||R);(z=_.SN(this.hostElement).querySelector("#send-button"))&&z.children.length&&(z.children[0].disabled=M);return M};
_.P.handleTimeout=function(M){this.timeoutDurationMs=this.timeoutMs=M;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.P.updateTimeout=function(M){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(M-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=M,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.P.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.P.onErrorMessageEdit=function(M){this.input.setLiveChatRichMessageInput(M.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.P.errorMessageChanged=function(){var M=this;_.au(function(){_.S9(M.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.P.computeAuthorNameColor=function(M){var z;if(_.U("live_chat_author_name_color_usernames")&&(M==null?0:(z=M.authorName)==null?0:z.simpleText))return _.pBG(_.FJ8(M.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.pBG(_.Tm(M.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var J;return _.U("live_chat_simple_color_usernames")&&(M==null?0:(J=M.authorName)==null?0:J.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Tm(M.authorUsernameColorDark):_.Tm(M.authorUsernameColorLight):""};
_.P.onIsTooltipVisibleChanged=function(){var M=_.SN(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){M.hidden=!1;M.setAttribute("role","alert")},0):(M.hidden=!0,M.removeAttribute("role"))};
_.P.onFocusedChanged=function(M){this.inputFocused=M.detail.value};
_.rX.Object.defineProperties(ZH.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.pickers)==null?void 0:z.find(function(J){return J.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return M?this.ytRendererBehavior.getSimpleString(M):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ZH.prototype.onIsTooltipVisibleChanged=ZH.prototype.onIsTooltipVisibleChanged;ZH.prototype.errorMessageChanged=ZH.prototype.errorMessageChanged;ZH.prototype.onErrorMessageEdit=ZH.prototype.onErrorMessageEdit;ZH.prototype.onErrorMessageDismiss=ZH.prototype.onErrorMessageDismiss;ZH.prototype.focusChanged=ZH.prototype.focusChanged;ZH.prototype.characterCountChanged=ZH.prototype.characterCountChanged;ZH.prototype.onEmojiSelect=ZH.prototype.onEmojiSelect;ZH.prototype.handlePickerButtonToggle=ZH.prototype.handlePickerButtonToggle;
ZH.prototype.onSendError=ZH.prototype.onSendError;ZH.prototype.onSendCompleted=ZH.prototype.onSendCompleted;ZH.prototype.sendMessage=ZH.prototype.sendMessage;ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(qw3.YtPickerBehavior),_.W("design:type",Object)],ZH.prototype,"ytPickerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.fZ.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],ZH.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"hasFiredInitialFocusActions",void 0);
_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"isBeforeFocusEnabled",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"data",void 0);_.u([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"id",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"characterCount",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"maxCharacterLimit",void 0);
_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"remainingCharacterCount",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"inputExpanded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ZH.prototype,"inputFocused",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ZH.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.u([_.Y(),_.W("design:type",_.M4)],ZH.prototype,"participantsManager",void 0);
_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"buttonOverrides",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"inReplyPanel",void 0);_.u([_.F("characterCount, maxCharacterLimit, countdownActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"sendDisabled",null);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"countdownRatio",void 0);
_.u([_.F("countdownRatio"),_.W("design:type",Number),_.W("design:paramtypes",[])],ZH.prototype,"countdownStrokeDashOffset",null);_.u([_.F("countdownRatio"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"countdownActive",null);_.u([_.F("data.interactionMessage"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"hasInteractionMessage",null);
_.u([_.F("data.emojiPickerButton"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"hasEmojiPickerButton",null);_.u([_.F("data, characterCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"showAvatar",null);_.u([_.F("data.pickers"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"hasProductPickerPanelViewModel",null);
_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"errorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"genericErrorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"isTooltipVisible",void 0);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"tooltipTimeout",void 0);_.u([_.F("data.onInitialFocusCommand"),_.W("design:type",String),_.W("design:paramtypes",[])],ZH.prototype,"tooltipMessage",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"tallerEmojiPicker",void 0);_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],ZH.prototype,"authorNameColor",null);_.u([_.Y(),_.W("design:type",Object)],ZH.prototype,"sendReplyMessageInFlight",void 0);_.u([_.Qc("#input"),_.W("design:type",_.Yok)],ZH.prototype,"input",void 0);
_.u([_.Qc("#count"),_.W("design:type",HTMLElement)],ZH.prototype,"count",void 0);_.u([_.Qc("#input-container"),_.W("design:type",HTMLElement)],ZH.prototype,"inputContainer",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"dataChanged",null);_.u([_.Xw("yt-live-chat-send-message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ZH.prototype,"sendMessage",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Cn]),_.W("design:returntype")],ZH.prototype,"onSendCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"onSendError",null);
_.u([_.Xw("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZH.prototype,"handlePickerButtonToggle",null);_.u([_.Xw("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZH.prototype,"onEmojiSelect",null);
_.u([_.la("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"characterCountChanged",null);_.u([_.la("inputFocused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"focusChanged",null);_.u([_.Xw("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"onErrorMessageDismiss",null);
_.u([_.Xw("yt-live-chat-error-message-edit"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZH.prototype,"onErrorMessageEdit",null);_.u([_.la("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"errorMessageChanged",null);_.u([_.la("isTooltipVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"onIsTooltipVisibleChanged",null);
_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ZH);
_.d(ZH,"yt-live-chat-message-input-renderer",function(){if(kAi===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Z3r===void 0&&(Z3r=document.createElement("template"));var R=Z3r;J.call(z,R.content.cloneNode(!0),M.content.firstChild);kAi=M}M=kAi;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var WAA;var add;var kA=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.firedOnClickCommand=!1;M.inReplyPanel=!1;return M};
_.w(kA,_.g);
kA.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"}}}};
kA.prototype.onButtonToggle=function(M){M.target.disabled||this.ytPickerBehavior.togglePicker_(M.detail.targetId)};
kA.prototype.onClick=function(){var M=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.S9(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return M.firedOnClickCommand=!1},5E3))};
_.rX.Object.defineProperties(kA.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.panels)==null?void 0:z.find(function(J){return J.liveChatProductPickerPanelViewModel}))!==void 0}}});
kA.prototype.onButtonToggle=kA.prototype.onButtonToggle;_.u([_.p(qw3.YtPickerBehavior),_.W("design:type",Object)],kA.prototype,"ytPickerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kA.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kA.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Object)],kA.prototype,"firedOnClickCommand",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kA.prototype,"inReplyPanel",void 0);_.u([_.F("data.pickers"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kA.prototype,"hasProductPickerPanelViewModel",null);
_.u([_.Xw("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kA.prototype,"onButtonToggle",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],kA);
_.d(kA,"yt-live-chat-restricted-participation-renderer",function(){if(add===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;WAA===void 0&&(WAA=document.createElement("template"));var R=WAA;J.call(z,R.content.cloneNode(!0),M.content.firstChild);add=M}M=add;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var B7=function(){var M=_.g.apply(this,arguments)||this;M.genericErrorMessage=_.id("Error, try again.");M.inReplyPanel=!1;M.hideBorder=!1;return M};
_.w(B7,_.g);B7.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}}}}}};
_.rX.Object.defineProperties(B7,{template:{configurable:!0,enumerable:!0,get:function(){return Riq()}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],B7.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],B7.prototype,"genericErrorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],B7.prototype,"inReplyPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],B7.prototype,"hideBorder",void 0);
_.u([_.cU({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],B7);_.d(B7,"yt-live-chat-engagement-panel-input-renderer",function(){return Riq()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Vqi,Eqq;Vqi=_.O3(115994);Eqq=_.O3(115993);_.OY=function(M,z,J){var R=this;var D=J.dragDownAction;this.layer=0;this.JSC$22420_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$22420_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var N=_.Gm();_.ex(N,Vqi,this.layer);_.ex(N,Eqq,this.layer);this.dragDownAction=function(){D();_.al(N,{visualElement:R.fullscreen?Vqi:Eqq})};
this.gesture=new _.Tq(M,z,this.JSC$22420_watchConfig,"pandown");this.attach()};
_.OY.prototype.attach=function(){this.gesture.attach()};
_.OY.prototype.detach=function(){this.gesture.detach()};
_.OY.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$22420_watchFullScreenConfig:this.JSC$22420_watchConfig};var fdA={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(M){if(M&&M.length==1&&Array.isArray(M[0].loggingUrls)){M=_.gu.unsafeClone(M[0]);var z=this.macros||{},J=this.getAdModuleClient_();if(!J)return _.Of();M.loggingUrls.forEach(function(R){if(R.baseUrl){var D=R.baseUrl;var N=z;N=N===void 0?{}:N;D=J.getOptions().includes("replaceUrlMacros")?_.ER$(J,"replaceUrlMacros",{url:D,additionalMapping:N}):D;R.baseUrl=D}},this);
M=[M]}return _.kQ(this.hostElement,M)},
getAdModuleClient_:function(){var M=_.J_(this);return M?(M=M.getPlayer())?new _.sz(M):null:null}}]};var LA4;var TB=function(){var M=_.g.apply(this,arguments)||this;M.isCollapsed=!1;M.modernPanels=_.U("kevlar_watch_modern_panels");M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return M};
_.w(TB,_.g);_.P=TB.prototype;_.P.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.onDonateTap=function(){var M=this.get("data.donateButton.buttonRenderer.command");if(M){var z=_.y5(),J=this.get("data.donateButton.buttonRenderer.trackingParams");z&&J&&_.fY(z,_.pe(J));this.ytOpenPopupBehavior.openPopup(M)}};
_.P.onShowMore=function(){this.isCollapsed=!1;var M=_.y5(),z=this.get("data.expandButton.buttonRenderer.trackingParams");M&&z&&_.fY(M,_.pe(z))};
_.P.onShowLess=function(){this.isCollapsed=!0};
_.P.dataChanged=function(){_.Tp(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.handleUpdate=function(M){if(M=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",M))this.set("data.startLabel",M.startLabel),this.set("data.endLabel",M.endLabel),this.set("data.progress",M.progress),this.set("data.amountRaisedLabel",M.amountRaisedLabel),this.dataChanged()};
_.P.handleOpenPopupAction=function(M){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",M)&&_.S9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.P.computeHeaderBackgroundUrl=function(M,z){if(M)return z?M.headerBackgroundDarkUrl:M.headerBackgroundUrl};
_.P.isProgressBarVisible=function(M){return!(!M||M.progress===void 0)};
_.P.headerBackgroundClass=function(){return _.HW("HTML_DIR")==="rtl"?"flip":""};
TB.prototype.dataChanged=TB.prototype.dataChanged;_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],TB.prototype,"ytOpenPopupBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],TB.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],TB.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],TB.prototype,"isCollapsed",void 0);_.u([_.Y({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.W("design:type",String)],TB.prototype,"headerBackgroundUrl",void 0);_.u([_.Y(),_.W("design:type",Boolean)],TB.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],TB.prototype,"modernPanels",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TB.prototype,"dataChanged",null);_.u([_.c({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],TB);
_.d(TB,"ytd-donation-shelf-renderer",function(){if(LA4!==void 0)return LA4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return LA4=M},{mode:1});var ArA;var i34=function(){return _.g.apply(this,arguments)||this};
_.w(i34,_.g);_.u([_.Y(),_.W("design:type",Object)],i34.prototype,"data",void 0);_.u([_.c({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],i34);
_.d(i34,"ytd-donation-unavailable-renderer",function(){if(ArA!==void 0)return ArA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ArA=M},{mode:1});var Csr;var IA=function(){return _.g.apply(this,arguments)||this};
_.w(IA,_.g);IA.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],IA.prototype,"data",void 0);_.u([_.c({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],IA);
_.d(IA,"ytd-limited-state-message-renderer",function(){if(Csr!==void 0)return Csr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Csr=M},{mode:1});var b3i;var oA=function(){return _.g.apply(this,arguments)||this};
_.w(oA,_.g);oA.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
oA.prototype.onTap=function(M){var z=this.data&&this.data.endpoint;z&&!_.bP(_.CX(M),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:z})};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oA.prototype,"data",void 0);_.u([_.c({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],oA);
_.d(oA,"ytd-autotagging-metadata-renderer",function(){if(b3i!==void 0)return b3i;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return b3i=M},{mode:1});var rr4;var Xr=function(){return _.g.apply(this,arguments)||this};
_.w(Xr,_.g);Xr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Xr.prototype,"data",void 0);_.u([_.c({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Xr);
_.d(Xr,"ytd-autotagging-metadata-row-renderer",function(){if(rr4!==void 0)return rr4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rr4=M},{mode:1});var MXA;var zn3;var lq=function(){var M=_.g.apply(this,arguments)||this;M.engagementPanelContent=!1;return M};
_.w(lq,_.g);lq.prototype.computeHasDividerLine=function(M,z){return M&&!z};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lq.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.W("design:type",Boolean)],lq.prototype,"hasDividerLine",void 0);_.u([_.Y(),_.W("design:type",Object)],lq.prototype,"engagementPanelContent",void 0);
_.u([_.c({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],lq);
_.d(lq,"ytd-metadata-row-header-renderer",function(){if(zn3!==void 0)return zn3;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return zn3=M},{mode:1});var JGs;var ej=function(){return _.g.apply(this,arguments)||this};
_.w(ej,_.g);ej.prototype.computeHasDividerLine=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ej.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],ej.prototype,"hasDividerLine",void 0);_.u([_.c({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],ej);
_.d(ej,"ytd-metadata-row-renderer",function(){if(JGs!==void 0)return JGs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return JGs=M},{mode:1});var Rnr;var QT=function(){return _.g.apply(this,arguments)||this};
_.w(QT,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QT.prototype,"data",void 0);_.u([_.c({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],QT);
_.d(QT,"ytd-metadata-with-image-row-renderer",function(){if(Rnr!==void 0)return Rnr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Rnr=M},{mode:1});var Dyr;var UY=function(){var M=_.g.apply(this,arguments)||this;M.rounded=!0;M.fixie=!1;M.fullWidth=!1;return M};
_.w(UY,_.g);_.P=UY.prototype;_.P.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onDataChanged=function(){var M=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(z){M.onEndpointLinkKeyPress(z)}))};
_.P.onEndpointLinkKeyPress=function(M){M.target===this.endpointLink&&M.keyCode===13&&_.Pv(this.hostElement,"click")};
_.P.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var M;if((M=this.data)==null?0:M.endpoint)_.Bv(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.P.onYtNavigate=function(M){this.endpointHref||(M.stopPropagation(),M.preventDefault())};
_.P.onInformationButtonContainerClick=function(M){M.target.id!=="information-button-container"&&(M.stopPropagation(),M.preventDefault())};
_.P.computeStyle=function(M){return M};
_.P.computeIsThumbnailStyle=function(M){return M==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.P.computeThumbnailWidth=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.P.computeThumbnailObjectFit=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.rX.Object.defineProperties(UY.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
UY.prototype.onYtNavigate=UY.prototype.onYtNavigate;UY.prototype.onClick=UY.prototype.onClick;UY.prototype.onDataChanged=UY.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],UY.prototype,"componentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],UY.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],UY.prototype,"componentStyle",void 0);_.u([_.Y({computed:"computeIsThumbnailStyle(data.style)"}),_.W("design:type",Boolean)],UY.prototype,"isThumbnailStyle",void 0);_.u([_.Y({computed:"computeThumbnailObjectFit(data.style)"}),_.W("design:type",String)],UY.prototype,"thumbnailObjectFit",void 0);
_.u([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],UY.prototype,"thumbnailWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],UY.prototype,"rounded",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],UY.prototype,"fixie",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],UY.prototype,"fullWidth",void 0);_.u([_.Qc("#endpoint-link"),_.W("design:type",HTMLAnchorElement)],UY.prototype,"endpointLink",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UY.prototype,"onDataChanged",null);_.u([_.F("data.endpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],UY.prototype,"endpointHref",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],UY.prototype,"onClick",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UY.prototype,"onYtNavigate",null);_.u([_.c({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],UY);
_.d(UY,"ytd-rich-metadata-renderer",function(){if(Dyr!==void 0)return Dyr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Dyr=M},{mode:_.B5("kevlar_poly_si_batch_j075")?1:2});var NVd;var v7=function(){var M=_.g.apply(this,arguments)||this;M.fixie=!1;M.fullWidth=!1;return M};
_.w(v7,_.g);v7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
v7.prototype.computeHasDividerLine=function(M){return M};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],v7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],v7.prototype,"hasDividerLine",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],v7.prototype,"fixie",void 0);_.u([_.Y(),_.W("design:type",Object)],v7.prototype,"fullWidth",void 0);
_.u([_.c({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],v7);
_.d(v7,"ytd-rich-metadata-row-renderer",function(){if(NVd!==void 0)return NVd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return NVd=M},{mode:1});var GB=function(){var M=_.g.apply(this,arguments)||this;M.engagementPanelContent=!1;M.fixie=!1;M.fullWidth=!1;return M};
_.w(GB,_.g);
GB.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"}}}};
GB.prototype.computeCollapsibleItems=function(M,z,J){return M===void 0||z===void 0||J===void 0||J?[]:M.slice(z)};
GB.prototype.computeAlwaysShownItems=function(M,z){return M&&M.length?M.slice(0,z):[]};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GB.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],GB.prototype,"collapsed",void 0);
_.u([_.Y({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.W("design:type",Array)],GB.prototype,"alwaysShownItems",void 0);_.u([_.Y({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.W("design:type",Array)],GB.prototype,"collapsibleItems",void 0);_.u([_.Y(),_.W("design:type",Object)],GB.prototype,"engagementPanelContent",void 0);_.u([_.Y(),_.W("design:type",Object)],GB.prototype,"fixie",void 0);
_.u([_.Y(),_.W("design:type",Object)],GB.prototype,"fullWidth",void 0);_.u([_.c({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],GB);
_.d(GB,"ytd-metadata-row-container-renderer",function(){if(MXA!==void 0)return MXA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return MXA=M},{mode:1});var PYq;var wn=function(){var M=_.g.apply(this,arguments)||this;M.currentPageUrl="";M.baseUrl="";M.isHiddenByUser=null;M.hidden=!1;M.showAboveScrim=!1;M.watchNextGrid=_.U("kevlar_watch_grid");M.modernButtons=_.U("web_modern_buttons");M.roundedContainer=!0;M.noBorder=!1;M.roundBackground=!_.U("live_chat_round_background_killswitch");M.overflowHideChat=_.U("live_chat_overflow_hide_chat");M.forceDarkTheme=!1;M.theaterWatchWhile=!1;M.isListeningForPlayerProgress=!1;M.JSC$22456_playerEvents=new Map;M.isFrameReady=
!1;M.player=null;M.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return M};
_.w(wn,_.g);_.P=wn.prototype;_.P.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.ZL(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.P.created=function(){var M=this;this.handleIframeEventListener=function(z){M.handleIframeEvent(z)};
this.handleKeyboardEventListener=function(z){M.handleKeyboardEvent(z)};
this.JSC$22456_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22456_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22456_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22456_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22456_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.P.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.P.computeBaseUrl=function(M){var z="/live_chat";this.isChatReplay()&&(z="/live_chat_replay");return _.ZF(_.SH(_.P3(_.um(M),z),null),"").toString()};
_.P.dataChanged=function(){_.U("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.P.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var M=this.url;if(this.isChatReplay()&&this.player){var z=Math.floor(this.player.getProgressState().current*1E3);M=_.W6(_.um(M),"playerOffsetMs",z.toString()).toString()}z=this.chatframe;try{var J=M==="about:blank"?_.OpB:_.hr(M),R=z.contentDocument.location,D=_.c4(J);D!==void 0&&R.replace(D)}catch(N){z.src=M}}};
_.P.collapsedChanged=function(){_.Pv(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.P.handleIframeEvent=function(M){if(M&&this.baseUrl.startsWith(M.origin)&&M.source===this.chatframe.contentWindow&&_.E8(M.data))if(M.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(M);else if(M.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(M.data["yt-show-feedback-dialog"]){var z=_.JF().resolve(_.zw(_.bVB));if(z){var J=M.ports,R;J&&J.length&&(R=function(){J[0].postMessage({})});
M=M.data["yt-show-feedback-dialog"];z.showFeedbackDialog(M.customProductData,M.feedbackContent,R,M.bucket)}}else if(M.data["yt-show-survey"])_.Pv(this.hostElement,"yt-show-survey",M.data["yt-show-survey"]);else if(M.data["yt-purchase-membership"])_.JF().resolve(_.Rb).resolveCommand(M.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(M.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(M.data["yt-tunnel-out-live-service-request"]);else if(M.data["yt-user-activity"])_.JL();
else if(M.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(M.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(M.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(M.data["yt-open-popup"]);else if(M.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(M.data["yt-log-flow-logging-event-command"]);else if(M.data["yt-hide-live-chat"])this.onShowHideChat();else M.data["yt-report-moderation-state-log"]&&
this.player&&(z={cpn:this.player.getVideoData().cpn},_.gP("liveChatBeingModerated",z))};
_.P.attachLiveChatResponseVeTrackingParams=function(M){M=_.pe(M);var z=_.y5(),J=_.qH("liveChatRenderer.trackingParams",this.data);z&&J&&_.qs(z,_.pe(J),M)};
_.P.handleBuyflowMessages=function(M){var z=M.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,J=M.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,R=M.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.cO8(_.Jx(_.i7),z.replace(/-/g,"+").replace(/_/g,"/"),function(D){M.ports[0].postMessage({success:!0,buyFlowResponse:D})},void 0,function(D){M.ports[0].postMessage({success:!1,
error:D&&D.message||"Buyflow rejected without error."})},_.vv().get("hl"),void 0,function(){M.ports[0].postMessage({closed:!0})},J,R)};
_.P.setupPlayerProgressRelay=function(){var M=this;if(!this.isListeningForPlayerProgress){var z=_.R9();z!=null&&z.getPlayerPromise&&(z.getPlayerPromise().then(function(J){M.playerApiReady(J)}),this.isListeningForPlayerProgress=!0)}};
_.P.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.P.playerApiReady=function(M){this.setPlayer(M)};
_.P.playerProgressHandler=function(){if(this.player){var M=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":M.current})}};
_.P.playerAdStartHandler=function(M){this.postToContentWindow({"yt-player-ad-start":M})};
_.P.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.P.playerStateChangeHandler=function(M){this.postToContentWindow({"yt-player-state-change":M})};
_.P.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22456_playerEvents);M&&(this.player=M,this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22456_playerEvents),_.Pv(this.hostElement,"player-api-ready"))};
_.P.liveChatPageUrl=function(M,z,J,R){return!J||z?"about:blank":J.liveChatRenderer?(z=_.um(this.currentPageUrl).JSC$9998_queryData_,K$Z(z),M=_.um(M),z.add("continuation",J.liveChatRenderer.continuations[0].reloadContinuationData.continuation),J=_.gB()==="USER_INTERFACE_THEME_DARK",(R||J)&&z.add("dark_theme","true"),_.SH(M,z),R=_.um(M.toString()),J=R.JSC$9998_queryData_,"SESSION_INDEX"in _.hg&&(J.add("authuser",_.HW("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.hg&&J.add("pageId",_.HW("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.hg&&J.add("sdc",_.HW("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),R.toString()):""};
_.P.isCollapsed=function(M,z){return z!==null?z:this.isChatReplay()||M&&M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!0:M?M.liveChatRenderer?M.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.U("live_chat_hide_premiere_replay_message")||M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.P.isHidden=function(M,z,J){var R=z&&z.conversationBarRenderer&&z.conversationBarRenderer.availabilityMessage,D=z&&z.liveChatRenderer&&z.liveChatRenderer.showHideButton,N=z&&z.liveChatRenderer&&z.liveChatRenderer.showButton;return J&&M&&!R&&!N||!J&&M&&!R&&!D?!0:z&&z.liveChatRenderer&&z.liveChatRenderer.initialDisplayState?z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.P.computeButtonOverride=function(M,z){if(M&&z)return{type:"outline"}};
_.P.setCollapsedState=function(M){_.G(M,_.j_a)&&(this.isHiddenByUser=!!_.G(M,_.j_a).collapsed,!this.isHiddenByUser&&_.U("enable_teaser_framework_web_client")&&_.S9(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.P.forwardReduxActionToIframe=function(M){this.postToContentWindow({"yt-live-chat-forward-redux-action":M})};
_.P.onLoopRangeChange=function(M){this.showAboveScrim=!(M==null||!M.postId)};
_.P.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.P.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.P.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.P.sendDarkThemePostMessage=function(M){this.postToContentWindow({"yt-live-chat-set-dark-theme":M})};
_.P.onLiveChatBuyFlowCallback=function(M){this.postToContentWindow({"yt-live-chat-buy-flow-callback":M})};
_.P.handleKeyboardEvent=function(M){(0,_.gu.containsValue)(dNq,M.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:M.type,keyCode:M.keyCode}})};
_.P.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.P.postToContentWindow=function(M){if(this.isFrameReady)try{var z=window.location.protocol+"//"+window.location.host,J;(J=this.chatframe)!=null&&J.contentWindow?this.chatframe.contentWindow.postMessage(M,z):_.yA(new _.xN("Tried posting a message to an iframe with no content window",M))}catch(R){_.nc(R)}};
_.P.shouldHideChatFrame=function(M){return M&&_.U("hide_live_chat_button_when_collapsed")};
_.rX.Object.defineProperties(wn.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.U("live_chat_overflow_hide_chat")||_.U("web_watch_chat_hide_button_killswitch"))return _.U("live_chat_overflow_hide_chat");var M,z,J,R;return!!((M=this.data)==null?0:(z=M.liveChatRenderer)==null?0:(J=z.header)==null?0:(R=J.liveChatHeaderRenderer)==null?0:R.collapseButton)}}});
wn.prototype.collapsedChanged=wn.prototype.collapsedChanged;wn.prototype.urlChanged=wn.prototype.urlChanged;wn.prototype.dataChanged=wn.prototype.dataChanged;wn.prototype.onShowHideChat=wn.prototype.onShowHideChat;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],wn.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wn.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],wn.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],wn.prototype,"ytOpenPopupBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wn.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],wn.prototype,"currentPageUrl",void 0);
_.u([_.Y({computed:"computeBaseUrl(currentPageUrl,data)"}),_.W("design:type",Object)],wn.prototype,"baseUrl",void 0);_.u([_.Y({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.W("design:type",String)],wn.prototype,"url",void 0);_.u([_.Y(),_.W("design:type",Object)],wn.prototype,"isHiddenByUser",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.W("design:type",Object)],wn.prototype,"hidden",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.W("design:type",Boolean)],wn.prototype,"collapsed",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.W("design:type",Boolean)],wn.prototype,"hideChatFrame",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"showAboveScrim",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"watchNextGrid",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],wn.prototype,"modernButtons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"noBorder",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],wn.prototype,"roundBackground",void 0);
_.u([_.Y({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.W("design:type",Object)],wn.prototype,"toggleButtonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],wn.prototype,"overflowHideChat",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"forceDarkTheme",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wn.prototype,"enableShowWithoutHideChatButton",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],wn.prototype,"theaterWatchWhile",void 0);_.u([_.Qc("#chatframe"),_.W("design:type",HTMLIFrameElement)],wn.prototype,"chatframe",void 0);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wn.prototype,"onShowHideChat",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wn.prototype,"dataChanged",null);
_.u([_.la("url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wn.prototype,"urlChanged",null);_.u([_.la("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wn.prototype,"collapsedChanged",null);_.u([_.c({is:"ytd-live-chat-frame",disableElementRegistration:!0})],wn);
_.d(wn,"ytd-live-chat-frame",function(){if(PYq!==void 0)return PYq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return PYq=M},{mode:1});var SI4;var xA=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};return M};
_.w(xA,_.g);xA.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=_.u7(this.data.backgroundColor)))};
xA.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var M=this.getFormattedStringLoggingDirectives(this.data.headline);M&&this.rendererBehavior.logExplicitClick(M)}};
xA.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var M=this.getFormattedStringLoggingDirectives(this.data.description);M&&this.rendererBehavior.logExplicitClick(M)}};
xA.prototype.getFormattedStringLoggingDirectives=function(M){return M&&M.runs&&M.runs.length>0&&M.runs[0]&&M.runs[0].loggingDirectives?M.runs[0].loggingDirectives:null};
xA.prototype.dataChanged=xA.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xA.prototype,"rendererBehavior",void 0);_.u([_.p(fdA.YtMacroReplacementBehavior),_.W("design:type",Object)],xA.prototype,"macroReplacementBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xA.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],xA.prototype,"navigationEndpoint",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],xA.prototype,"enableColors",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],xA.prototype,"modern",void 0);_.u([_.Y(),_.W("design:type",Object)],xA.prototype,"buttonOverrides",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xA.prototype,"dataChanged",null);_.u([_.c({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],xA);
_.d(xA,"ytd-action-basic-immersive-content-renderer",function(){if(SI4!==void 0)return SI4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return SI4=M},{mode:1});var ZSA;var kTA;var tW=function(){return _.g.apply(this,arguments)||this};
_.w(tW,_.g);tW.prototype.dataChanged=function(){var M;((M=this.data)==null?void 0:M.backgroundColor)!==void 0&&_.Tp(this.hostElement,{"--bgu-color":_.u7(this.data.backgroundColor)})};
tW.prototype.onImageTileClick=function(){var M;((M=this.data)==null?0:M.navigationEndpoint)&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var z;((z=this.data)==null?0:z.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.rX.Object.defineProperties(tW.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?void 0:M.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var M,z,J;if(((M=this.data)==null?void 0:(z=M.detailsLine)==null?void 0:z.texts)!=null&&((J=this.data)==null?void 0:J.detailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.detailsLine.texts.map(function(D){return D.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var M,z,J;if(((M=this.data)==null?void 0:(z=M.optionalDetailsLine)==null?void 0:z.texts)!=null&&((J=this.data)==null?void 0:J.optionalDetailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.optionalDetailsLine.texts.map(function(D){return D.text}).join("")}return null}}});
tW.prototype.dataChanged=tW.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tW.prototype,"rendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],tW.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tW.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.backgroundColor"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tW.prototype,"hasBackgroundColor",null);
_.u([_.F("data.objectFit"),_.W("design:type",Object),_.W("design:paramtypes",[])],tW.prototype,"getObjectFit",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.tileRenderingStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tW.prototype,"hasTileMetadata",null);_.u([_.F("data.detailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],tW.prototype,"getSecondaryDetails",null);
_.u([_.F("data.optionalDetailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],tW.prototype,"getOptionalDetails",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tW.prototype,"dataChanged",null);_.u([_.c({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],tW);
_.d(tW,"ytd-image-tile-renderer",function(){if(kTA!==void 0)return kTA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return kTA=M},{mode:1});var BVq;var jj=function(){return _.g.apply(this,arguments)||this};
_.w(jj,_.g);jj.prototype.getOpenLinkIcon=function(){return _.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
jj.prototype.onSitelinkTap=function(){_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.U("kevlar_command_handler_migration_killswitch"))_.Bv(this.hostElement,this.data.clickCommands,this.hostElement);else for(var M=_.S(this.data.clickCommands),z=M.next();!z.done;z=M.next())this.ytComponentBehavior.resolveCommand(z.value)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jj.prototype,"rendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jj.prototype,"data",void 0);_.u([_.c({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],jj);
_.d(jj,"ytd-sitelink-renderer",function(){if(BVq!==void 0)return BVq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BVq=M},{mode:1});var pV=function(){var M=_.g.apply(this,arguments)||this;M.paddingFix=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.w(pV,_.g);pV.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"}}}};
pV.prototype.dataChanged=function(){var M=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;M.ytMacroReplacementBehavior.sendServiceRequestAction([z])})};
pV.prototype.shouldHideFooter=function(M){return!(M&&_.U("use_ads_engagement_panel_desktop_footer_cta"))};
_.rX.Object.defineProperties(pV.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(J){var R;return(R=_.G(J,aVi))==null?void 0:R.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(J){var R;return((R=_.G(J,aVi))==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
pV.prototype.dataChanged=pV.prototype.dataChanged;_.u([_.p(fdA.YtMacroReplacementBehavior),_.W("design:type",Object)],pV.prototype,"ytMacroReplacementBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pV.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pV.prototype,"paddingFix",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pV.prototype,"removeBorderFromImageTiles",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pV.prototype,"useFooteredMetadataRenderingStyle",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pV.prototype,"dataChanged",null);_.u([_.c({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],pV);
_.d(pV,"ytd-action-engagement-panel-content-renderer",function(){if(ZSA!==void 0)return ZSA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ZSA=M},{mode:1});var OSw;var TVq=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;return _.T("ad-grid-card-image-full-metadata-view-model",{class:function(){var R;return((R=z().interaction)==null?0:R.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC}),_.E3(function(){return z().interaction},J)),
"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(R){return _.T(_.vo,{data:R.data,
customCommandResolver:J})}})),_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.T(_.I,{cond:function(){return z().headline},
then:function(R){return _.T(_.m3,{text:R,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.T(_.I,{cond:function(){return z().detailsLine},
then:function(R){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.T(_.t_,{data:R},{adDetailsLineViewModel:function(D){return _.T(_.o5,{data:D.data,customCommandResolver:J,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.T(_.I,{cond:function(){return z().secondaryDetailsLine},
then:function(R){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.T(_.t_,{data:R},{adDetailsLineViewModel:function(D){return _.T(_.o5,{data:D.data,customCommandResolver:J,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Mj");var IDq=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;return _.T("ad-grid-card-image-view-model",{class:function(){var R;return((R=z().interaction)==null?0:R.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC}),_.E3(function(){return z().interaction},J)),
"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(R){return _.T(_.vo,{data:R.data,
customCommandResolver:J})}}),_.T("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.T(_.t_,{data:function(){return z().adCardBadge}},{adCardBadgeViewModel:_.Xrk})))},"Nj");var ojw=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;return _.T("ad-grid-card-text-view-model",{class:function(){var R;return((R=z().interaction)==null?0:R.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC}),_.E3(function(){return z().interaction},J)),
"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.T(_.I,{cond:function(){return z().title},
then:function(R){return _.T(_.m3,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.T("div",{class:function(){return _.U("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.T(_.G4,{each:function(){var R;
return((R=z())==null?void 0:R.descriptions)||[]},
keyBy:"INDEX"},function(R){return _.T(_.m3,{text:R,className:function(){return _.U("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.T("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.T(_.t_,{data:function(){return z().moreInfoButton}},{adButtonViewModel:function(R){return _.T(_.Z7,{data:R.data,
customCommandResolver:J})}})))},"Oj");var Xyq=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;var R=M.adGridCardCollectionStyle;return _.T("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(D){var N,Z=(N=z().interaction)==null?void 0:N.onFirstVisible;D&&Z&&_.aE(Z)},
showOption:_.PC})),style:function(){return"grid-template-columns: repeat("+R2w(R?R():z().style)+", minmax(0, 1fr));"}},_.T(_.t_,{data:function(){var D;
return(D=z())==null?void 0:D.gridCards}},{adGridCardImageViewModel:function(D){return _.T(IDq,{data:D.data,
customCommandResolver:J})},
adGridCardImageFullMetadataViewModel:function(D){return _.T(TVq,{data:D.data,customCommandResolver:J})},
adGridCardTextViewModel:function(D){return _.T(ojw,{data:D.data,customCommandResolver:J})}}))},"Pj");_.N7(_.Mf(function(M){var z=M.data;return _.T("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.zL(_.J1({visibilityCallback:function(J){var R,D=(R=z().interaction)==null?void 0:R.onFirstVisible;J&&D&&_.aE(D)},
showOption:_.PC}),_.E3(function(){return z().interaction},DBE))},_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.T(_.I,{cond:_.IYe("(min-width: "+((0,_.ig)()+_.Kt)+"px)"),
then:function(){return _.T(_.t_,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(J){return _.T(Xyq,{data:J.data,
customCommandResolver:DBE})}})},
else:function(){return _.T(_.t_,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(J){return _.T(Xyq,{data:J.data,
customCommandResolver:DBE,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.T(_.t_,{data:function(){return z().adButton}},{adButtonViewModel:function(J){return _.T(_.Z7,{data:J.data,
customCommandResolver:DBE})}})))},"Qj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;return _.T("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.zL(_.J1({visibilityCallback:function(J){var R,D=(R=z().interaction)==null?void 0:R.onFirstVisible;J&&D&&_.aE(D)},
showOption:_.PC}),_.E3(function(){return z().interaction},Ngw))},_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.T(_.t_,{data:function(){if(_.IYe("(min-width: "+((0,_.ig)()+_.Kt)+"px)")())var J=z().adGridCardCollection;
else{J=Object.assign({},_.G(z().adGridCardCollection,Vas));var R;J.gridCards!==void 0&&((R=J.gridCards)==null?void 0:R.length)>1?J.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":J.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";J={adGridCardCollectionViewModel:J}}return J}},{adGridCardCollectionViewModel:function(J){return _.T(Xyq,{data:J.data,
customCommandResolver:Ngw})}})),_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.T(_.t_,{data:function(){return z().adButton}},{adButtonViewModel:function(J){return _.T(_.Z7,{data:J.data,
customCommandResolver:Ngw})}})))},"Rj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.zn}});var Fr=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return M};
_.w(Fr,_.g);_.P=Fr.prototype;_.P.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.P.attached=function(){this.getDataFromPlayerAndRender()};
_.P.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.P.getDataFromPlayerAndRender=function(){var M=this,z=_.J_(this.hostElement);z&&z.getPlayerPromise().then(function(J){M.getCachedDataAndListen(J)})};
_.P.getCachedDataAndListen=function(M){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=M)};
_.P.resolveCachedActions=function(){var M=_.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(M=M&&M())&&!_.gu.isEmpty(M)&&this.sendUpdateEngagementPanelAction(M);(M=(M=_.qH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&M())&&!_.gu.isEmpty(M)&&this.sendChangeEngagementPanelVisibilityAction(M);(M=(M=_.qH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&M())&&!_.gu.isEmpty(M)&&this.sendScrollToEngagementPanelCommand(M)};
_.P.sendUpdateEngagementPanelAction=function(M){var z;_.S9(this.hostElement,"yt-update-engagement-panel-action",[(z=_.gu.get(M,"action"))!=null?z:M])};
_.P.sendChangeEngagementPanelVisibilityAction=function(M){_.S9(this.hostElement,"yt-change-engagement-panel-visibility-action",[M])};
_.P.sendScrollToEngagementPanelCommand=function(M){_.S9(this.hostElement,"yt-scroll-to-engagement-panel-command",[M])};
_.P.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.U("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.yA(Error("Ao"))};
Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Fr.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Fr.prototype,"componentBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],Fr.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fr.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Fr.prototype,"player",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Fr.prototype,"dataChanged",null);_.u([_.c({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Fr);
_.d(Fr,"ytd-ads-engagement-panel-content-renderer",function(){if(OSw!==void 0)return OSw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return OSw=M},{mode:1});var lDs;var YA=function(){var M=_.g.apply(this,arguments)||this;M.player=null;M.JSC$22493_playerEvents=new Map;M.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return M};
_.w(YA,_.g);_.P=YA.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.P.created=function(){this.player=null;this.JSC$22493_playerEvents=new Map;this.JSC$22493_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22493_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22493_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22493_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.attached=function(){var M=this,z=_.J_();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));z&&z.getPlayerPromise().then(function(J){M.setPlayer(J);M.set("isPageLoad",!1)})};
_.P.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22493_playerEvents);this.set("player",M);M&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22493_playerEvents),M.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.P.onLoopRangeChange=function(M){var z=_.JF().resolve(_.zw(_.M6));if((!z||z.isOnWatch())&&this.hostElement.clientHeight){var J;!M&&((J=this.data)==null?0:J.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.P.onVideoProgress=function(M){var z,J,R=((z=this.player)==null?void 0:(J=z.getPresentingPlayerType)==null?void 0:J.call(z))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R);var D;if(!R&&(D=this.player)!=null&&D.getLoopRange()){J=this.player.getLoopRange();z=J.startTimeMs;J=J.endTimeMs;R=this.player.getProgressState(1).seekableStart;var N;z<R*1E3&&((N=this.data)==null?0:N.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
M=J<M*1E3;var Z;((Z=this.player)==null?0:Z.getLoopRange())&&M&&this.player.seekTo(z/1E3)}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onYtDeleteClipEngagementPanelCommand=function(M){_.G(M,Pws).command&&this.ytComponentBehavior.resolveCommand(_.G(M,Pws).command)};
_.rX.Object.defineProperties(YA.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.id("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],YA.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],YA.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YA.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],YA.prototype,"isAdPlaying",void 0);_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],YA.prototype,"isPageLoad",void 0);_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],YA.prototype,"isDarkTheme",void 0);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],YA.prototype,"voteCount",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],YA.prototype,"channelEndpoint",null);_.u([_.F("channelEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],YA.prototype,"channelHref",null);_.u([_.c({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],YA);
_.d(YA,"ytd-clip-attribution-renderer",function(){if(lDs!==void 0)return lDs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return lDs=M},{mode:1});var enr;var mk=function(){var M=_.g.apply(this,arguments)||this;M.player=null;M.JSC$22498_playerEvents=new Map;return M};
_.w(mk,_.g);_.P=mk.prototype;_.P.created=function(){this.player=null;this.JSC$22498_playerEvents=new Map;this.JSC$22498_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22498_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22498_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.attached=function(){var M=this,z=_.J_();z&&z.getPlayerPromise().then(function(J){M.setPlayer(J);M.set("isPageLoad",!1)})};
_.P.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22498_playerEvents);this.set("player",M);if(M){this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22498_playerEvents);var z;(M==null?void 0:(z=M.getPresentingPlayerType)==null?void 0:z.call(M))===2&&this.playerAdStartHandler()}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onVideoProgress=function(){var M,z,J=((M=this.player)==null?void 0:(z=M.getPresentingPlayerType)==null?void 0:z.call(M))===2;this.isAdPlaying!==J&&this.set("isAdPlaying",J)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],mk.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mk.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],mk.prototype,"isAdPlaying",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],mk.prototype,"isPageLoad",void 0);_.u([_.c({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],mk);
_.d(mk,"ytd-clip-section-footer-renderer",function(){if(enr!==void 0)return enr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return enr=M},{mode:1});var Qoi;var UyA;var gn=function(){return _.g.apply(this,arguments)||this};
_.w(gn,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gn.prototype,"data",void 0);_.u([_.c({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],gn);
_.d(gn,"ytd-clip-ad-state-renderer",function(){if(UyA!==void 0)return UyA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return UyA=M},{mode:1});var vjw;var sY=function(){var M=_.g.apply(this,arguments)||this;M.value="";M.valid=!1;M.userChangedValue=!1;M.disabled=!1;M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return M};
_.w(sY,_.g);_.P=sY.prototype;_.P.detached=function(){this.userChangedValue=!1};
_.P.handleKeyDown=function(M){if(_.IJ)var z=13;else _.e78&&_.oJ?z=13:z=13;M.keyCode===z&&M.preventDefault()};
_.P.handleInput=function(){var M=_.SN(this.hostElement).querySelector("#title");if(M){var z=(M.value||"").replace(/\r|\n/g," ");this.set("value",z);M.value=z;this.valid=M.validate();this.userChangedValue=!0}};
_.P.handleBlur=function(){this.valid=_.SN(this.hostElement).querySelector("#title").validate()};
_.P.onValueChanged=function(){_.Pv(this.hostElement,"title-changed",{title:this.value})};
_.P.onValidChanged=function(){_.Pv(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.P.setInput=function(M,z){var J=_.SN(this.hostElement).querySelector("#title");J&&(J.value=M,this.handleInput(),z&&(J.invalid=!1,this.valid=!0))};
_.P.onClipCreationDisable=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable=function(){this.set("disabled",!1)};
_.P.onClipCreationVisibilityChange=function(M){var z=this;M.visible?requestAnimationFrame(function(){var J;((J=_.SN(z.hostElement).querySelector("#title"))==null?void 0:J.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
sY.prototype.onValidChanged=sY.prototype.onValidChanged;sY.prototype.onValueChanged=sY.prototype.onValueChanged;sY.prototype.handleBlur=sY.prototype.handleBlur;sY.prototype.handleInput=sY.prototype.handleInput;sY.prototype.handleKeyDown=sY.prototype.handleKeyDown;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],sY.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],sY.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],sY.prototype,"value",void 0);_.u([_.Y(),_.W("design:type",Object)],sY.prototype,"valid",void 0);_.u([_.Y(),_.W("design:type",Object)],sY.prototype,"userChangedValue",void 0);_.u([_.Y(),_.W("design:type",Object)],sY.prototype,"disabled",void 0);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],sY.prototype,"handleKeyDown",null);
_.u([_.Xw("input"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sY.prototype,"handleInput",null);_.u([_.Xw("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sY.prototype,"handleBlur",null);_.u([_.la("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sY.prototype,"onValueChanged",null);
_.u([_.la("valid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sY.prototype,"onValidChanged",null);_.u([_.c({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],sY);
_.d(sY,"ytd-clip-creation-text-input-renderer",function(){if(vjw!==void 0)return vjw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vjw=M},{mode:1});var GTA;var wyq;var xyr;var tXq;var jor;var nV=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};M.pendingStoryboardImages_={};M.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];M.tickLabelInterval=30;M.mediumTickInterval=5;M.largeTickInterval=15;M.aboveRulerHeight=32;M.rulerHeight=50;M.smallTickHeight=4;M.mediumTickHeight=8;M.largeTickHeight=16;M.mediaListeners_=
{};return M};
_.w(nV,_.g);_.P=nV.prototype;_.P.attached=function(){var M=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(z){z=_.S(["screen and (min-resolution: "+z+")","screen and (max-resolution: "+z+")"]);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=window.matchMedia(J);R&&(M.mediaListeners_[J]=M.updatePixelRatio_.bind(M),R.addEventListener?R.addEventListener("change",M.mediaListeners_[J]):R.addListener?R.addListener(M.mediaListeners_[J]):delete M.mediaListeners_[J])}})};
_.P.detached=function(){this.setPlayer(null);for(var M=_.S(Object.keys(this.mediaListeners_)),z=M.next();!z.done;z=M.next()){var J=z.value;z=this.mediaListeners_[J];(J=window.matchMedia(J))&&(J.removeEventListener?J.removeEventListener("change",z):J.removeListener&&J.removeListener(z))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.P.onVisibilityChangedAction_=function(M){var z=this;M.visible&&!this.player_&&(M=_.J_())&&M.getPlayerPromise().then(function(J){z.setPlayer(J)})};
_.P.setPlayer=function(M){M&&this.set("player_",M)};
_.P.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.P.setUpCanvas_=function(){var M=this.rulerWidth,z=this.devicePixelRatio_,J=this.visible;this.set("canvasReady_",!1);if(J&&z!==0){J=this.aboveRulerHeight+this.rulerHeight;var R=_.SN(this.hostElement).querySelector("#ticks");R.width=M*z;R.height=J*z;R.style.width=M+"px";R.style.height=J+"px";R.getContext("2d").scale(z,z);this.set("canvasReady_",!0)}};
_.P.drawRuler_=function(M,z,J,R,D,N,Z,B,O,X,l,e){M&&J&&z&&(M=_.SN(this.hostElement).querySelector("#ticks"),z=M.getContext("2d"),z.clearRect(0,0,M.width,M.height),z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),z.lineWidth=2,z.beginPath(),z.moveTo(0,this.aboveRulerHeight),z.lineTo(M.width,this.aboveRulerHeight),z.moveTo(0,M.height),z.lineTo(M.width,M.height),z.stroke(),this.drawRulerTicks_(M,N,D,R),this.drawStoryboardImages_(M,J,N,D,R),z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
z.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Z-N,R,!1),this.rulerHeight),J=this.timeToPixels_(B-N,R,!1),z.fillRect(J,this.aboveRulerHeight,M.width-J,this.rulerHeight),this.drawSpeedLines_(M,N,e))};
_.P.drawRulerTicks_=function(M,z,J,R){var D=M.getContext("2d");D.save();D.lineWidth=1;for(var N=Math.floor(Math.max(0,z-this.tickLabelInterval));N<z+J;N++){D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Z=(N-z)*R;D.beginPath();D.moveTo(Z,M.height);var B=this.smallTickHeight;N%this.largeTickInterval===0?B=this.largeTickHeight:N%this.mediumTickInterval===0&&(B=this.mediumTickHeight);D.lineTo(Z,M.height-B);D.stroke();N%this.tickLabelInterval===0&&(D.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),D.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),D.fillText(my(N),Z+4,12),D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),D.moveTo(Z,0),D.lineTo(Z,this.aboveRulerHeight),D.stroke())}D.restore()};
_.P.percentToHex_=function(M){M=Math.round(M*255).toString(16);M.length<2&&(M="0"+M);return M};
_.P.drawSpeedLines_=function(M,z,J){var R=M.getContext("2d");R.save();var D=Math.min(25,Math.abs(J)-15)/25,N=M.width*.3*D,Z=M.width*-.3,B=M.width*1.3,O=this.aboveRulerHeight;M=M.height;var X=Math.round(4*D),l=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");l.length<7&&(l="#"+l.substring(1,4).repeat(2));var e=this.percentToHex_(.5+D/2);e=l+e;l+="00";if(D>0)for(D=0;D<X;D++){var Q=Z+Math.random()*(B-Z),v=O+Math.random()*(M-O),x=N+z%N,m=R.createLinearGradient(Q,v,Q+x,v);
J<0?(m.addColorStop(0,e),m.addColorStop(.4,e),m.addColorStop(.9,l)):(m.addColorStop(.1,l),m.addColorStop(.6,e),m.addColorStop(1,e));R.strokeStyle=m;R.lineWidth=1;R.beginPath();R.moveTo(Q,v);R.lineTo(Q+x,v);R.stroke()}R.restore()};
_.P.getStoryboardForTime_=function(M,z,J){J===void 0&&(J=z.getNumberOfStoryboardLevels()-1);M=z.getStoryboardFrameIndex(M,J);return z.getStoryboardFrame(M,J)};
_.P.drawStoryboardImages_=function(M,z,J,R,D){if(!this.disabled){M=M.getContext("2d");var N=this.getStoryboardForTime_(0,z);if(N){var Z=N.width/N.columns;N=N.height/N.rows;var B=Z/N,O=this.rulerHeight*B;O=this.tickLabelInterval*(B<this.tickLabelInterval*D/this.rulerHeight?1/Math.floor(this.tickLabelInterval*D/O):Math.round(O/(this.tickLabelInterval*D)));var X=O*D,l=this.rulerHeight,e=X/this.rulerHeight,Q=Math.floor(Math.max(0,J-O));for(Q-=Q%O;Q<J+R;Q+=O){var v=this.getStoryboardForTime_(Q,z),x=this.getPreloadedStoryboard_(v.url);
if(x){var m=(Q-J)*D,y=this.aboveRulerHeight,H=v.column*Z,q=v.row*N;if(B<e){var b=l/(X/B);v=Z;b*=N;q+=(N-b)/2}else v=X/(l*B)*Z,b=N,H+=(Z-v)/2;M.drawImage(x,H,q,v,b,m,y,X,l)}else this.fetchStoryboardImage_(v)}}}};
_.P.getPreloadedStoryboard_=function(M){return this.storyboardImages_.find(function(z){if(z.src==M)return!0;var J=z.src.indexOf(M);return J!=-1&&J==z.src.length-M.length})};
_.P.fetchStoryboardImage_=function(M){var z=this,J=this.getPreloadedStoryboard_(M.url),R=this.pendingStoryboardImages_[M.url];J||R!==void 0||(J=new Promise(function(D){var N=new Image(M.width,M.height);N.src=M.url;N.onload=function(){D(N)};
N.onerror=function(){D(null)}}),this.pendingStoryboardImages_[M.url]=J,J.then(function(D){D&&z.push("storyboardImages_",D);
return D}).finally(function(){delete z.pendingStoryboardImages_[M.url]}))};
_.P.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.P.timeToPixels_=function(M,z,J){M*=z;return J===void 0||J?M+"px":M};
_.P.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
nV.prototype.drawRuler_=nV.prototype.drawRuler_;nV.prototype.setUpCanvas_=nV.prototype.setUpCanvas_;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],nV.prototype,"start",void 0);_.u([_.Y({value:30}),_.W("design:type",Number)],nV.prototype,"end",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],nV.prototype,"visible",void 0);_.u([_.Y(),_.W("design:type",Object)],nV.prototype,"player_",void 0);_.u([_.Y(),_.W("design:type",Number)],nV.prototype,"tickSpacing",void 0);_.u([_.Y(),_.W("design:type",Number)],nV.prototype,"windowSizeSec",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],nV.prototype,"rulerWidth",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],nV.prototype,"rulerShift",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],nV.prototype,"canvasReady_",void 0);_.u([_.Y({value:function(){return[]}}),
_.W("design:type",Array)],nV.prototype,"storyboardImages_",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],nV.prototype,"disabled",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],nV.prototype,"forceRender_",void 0);_.u([_.Y({value:1}),_.W("design:type",Number)],nV.prototype,"devicePixelRatio_",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],nV.prototype,"windowSpeed",void 0);
_.u([_.la("visible","devicePixelRatio_","rulerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nV.prototype,"setUpCanvas_",null);
_.u([_.la("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.W("design:returntype")],nV.prototype,"drawRuler_",null);_.u([_.cU({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],nV);
_.d(nV,"yt-clip-creation-scrubber-canvas",function(){if(jor===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);jor=M}M=jor;return M},
{mode:2});var py3;var FW4;var hW=function(){var M=_.g.apply(this,arguments)||this;M.start=0;M.end=30;M.visible=!1;M.draggingLeft_=!1;M.draggingRight_=!1;M.draggingRuler_=!1;M.draggingWindow_=!1;M.seekableStart=0;M.seekableEnd=0;M.rulerWidth_=0;M.rulerShift_=0;M.windowSlideSpeed=0;M.disabled=!1;M.initialized=!1;M.durationAccessibilityLabel="";M.activeLoopRange_=!1;M.rulerDragMouseStart_=0;M.rulerDragRulerStart_=0;M.rulerDragStartTime_=0;M.rulerDragEndTime_=0;M.dragMouseLastX_=0;M.scrollInterval_=null;M.scrubberVe_=null;M.boundHandlers_=
{};M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.w(hW,_.g);_.P=hW.prototype;
_.P.created=function(){var M=this;this.JSC$22511_playerEvents=new Map;this.JSC$22511_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22511_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22511_playerEvents.set("onStateChange",this.onStateChange_);var z={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(z).forEach(function(J){M.boundHandlers_[J]=z[J].bind(M)})};
_.P.attached=function(){this.activeLoopRange_=!1;_.SN(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.SN(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.O3(156731)};
_.P.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.SN(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.SN(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.P.onVisibilityChangedAction_=function(M){var z=this;M.visible&&!this.player_&&(M=_.J_())&&M.getPlayerPromise().then(function(J){z.setPlayer(J)})};
_.P.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22511_playerEvents);M&&(this.set("player_",M),this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22511_playerEvents))};
_.P.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.beginHandleDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=M.clientX,M.target===_.SN(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():M.target===_.SN(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.P.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.P.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.P.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.P.beginRulerDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=M.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.P.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.P.beginWindowScroll_=function(){var M=this;this.scrollInterval_=setInterval(function(){var z=M.windowSlideSpeed;if(z=_.XqG(M.start,M.boundedRulerStartLimit_())?z-.1:_.XqG(M.end,M.boundedRulerEndLimit_())?z+.1:0){var J=M.capRulerOffset_(M.rulerShift_+z);J==M.rulerShift_?z=0:(M.set("rulerShift_",J),_.Pv(M.hostElement,"set-fixed-length-range",{start:M.start+z,duration:M.end-M.start}))}M.set("windowSlideSpeed",z)},33)};
_.P.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.P.endDrag_=function(){this.logClick();var M=void 0;this.draggingRight_?M=this.end-1:this.draggingLeft_&&(M=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,M);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.P.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.P.updateRulerSize_=function(){this.set("rulerWidth_",_.SN(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.P.handleMouseDrag_=function(M){M.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(M):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(M):this.draggingWindow_&&this.handleWindowDrag_(M))};
_.P.handleRulerDrag_=function(M){M=this.pixelsToTime_(M.clientX-this.rulerDragMouseStart_);M=this.capRulerOffset_(this.rulerDragRulerStart_-M);this.set("rulerShift_",M);var z=this.rulerDragStartTime_-(this.rulerDragRulerStart_-M);_.Pv(this.hostElement,"set-fixed-length-range",{start:z,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-M)-z})};
_.P.handleWindowDrag_=function(M){var z=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(z);_.Pv(this.hostElement,"set-fixed-length-range",{start:this.start+M,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.capRulerOffset_=function(M){var z=this.seekableStart-this.pixelsToTime_(16),J=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(z,M),J)};
_.P.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.P.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.P.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.P.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.P.handleWindowHandleDrag_=function(M){var z=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(z);if(this.draggingLeft_){var J=this.start+M;var R=this.end}else this.draggingRight_&&(J=this.start,R=this.end+M);_.Pv(this.hostElement,"set-range",{start:J,end:R,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.onVideoProgress_=function(M){this.disabled||(M=this.timeToPixels_(M-this.rulerShift_,this.tickSpacing_),_.SN(this.hostElement).querySelector("#playhead").style.transform="translateX("+M+")")};
_.P.onClipCreationDisable_=function(){this.endDrag_()};
_.P.timeToPixels_=function(M,z,J){M*=z;return J===void 0||J?M+"px":M};
_.P.pixelsToTime_=function(M){return M/this.tickSpacing_};
_.P.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.centerRuler_=function(M,z,J){this.set("rulerShift_",this.capRulerOffset_(M+(z-M)/2-J/2))};
_.P.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.P.updateLoopRange_=function(M,z,J,R,D,N,Z){M&&(z&&R&&!J?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(M.pauseVideo(),M.seekTo(D,!1,void 0,void 0,50)):this.draggingRight_?(M.pauseVideo(),M.seekTo(N-.1,!1,void 0,void 0,50)):(Z!==void 0?M.seekTo(Z,!0,void 0,void 0,50):(z=M.getCurrentTime(),z<D||z>N?M.seekTo(D,!0,void 0,void 0,50):M.seekTo(z,!0,void 0,void 0,50)),M.playVideo()),M.setLoopRange({startTimeMs:D*1E3,endTimeMs:N*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(M.getCurrentTime())):
this.activeLoopRange_&&(M.setLoopRange(null),this.activeLoopRange_=!1))};
_.P.updateHandles_=function(){_.SN(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.SN(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.P.updateRuler_=function(){var M=this.end,z=this.start,J=this.draggableStartLimit_(),R=this.draggableEndLimit_();(z<J-.001||M>R+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.computeDurationLabel_=function(M,z){return M?M.replace("$clip_length",parseFloat(z).toFixed(1)):""};
_.P.computeDuration_=function(M,z){return this.isValidTime_(M)&&this.isValidTime_(z)&&M<z?z-M:0};
_.P.isValidTime_=function(M){return isNaN(parseFloat(M))||M<0?!1:this.player_?M>=this.seekableStart&&M<=this.seekableEnd:!0};
_.P.computeWindowSizeSec_=function(M,z,J){return Math.min((M||12E4)/1E3,J-z)};
_.P.computeTickSpacing_=function(M,z){return z?z/M:1};
_.P.onDragStateChanged_=function(){_.Pv(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.P.centerRangeOnTime_=function(M){var z=this.duration;M=S$q(M-z/2,z,this.seekableStart,this.seekableEnd);_.Pv(this.hostElement,"set-fixed-length-range",{start:M.start,duration:M.end-M.start})};
_.P.nearlyLessThan_=function(M,z,J){return M+(J===void 0?1E-6:J)<z};
_.P.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var M=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(M,this.start)||this.nearlyLessThan_(this.end,M))&&this.centerRangeOnTime_(M)}};
_.P.onStateChange_=function(M){this.visible&&!this.disabled&&M==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.P.computeDragState_=function(M,z,J,R){return M?"left":z?"right":J?"ruler":R?"window":"none"};
_.P.logClick=function(){var M=_.y5(),z=_.hu();M&&z&&this.scrubberVe_&&(_.U("combine_ve_grafts")?_.ln(_.Gm(),this.scrubberVe_,z):_.qs(M,z,this.scrubberVe_),_.fY(M,this.scrubberVe_))};
hW.prototype.onDragStateChanged_=hW.prototype.onDragStateChanged_;hW.prototype.updateRuler_=hW.prototype.updateRuler_;hW.prototype.updateHandles_=hW.prototype.updateHandles_;hW.prototype.onUpdateLoopRange=hW.prototype.onUpdateLoopRange;hW.prototype.onInitializedChanged_=hW.prototype.onInitializedChanged_;hW.prototype.onVisibleChanged_=hW.prototype.onVisibleChanged_;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],hW.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",Object)],hW.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"start",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"end",void 0);_.u([_.Y({computed:"computeDuration_(start, end)"}),_.W("design:type",Number)],hW.prototype,"duration",void 0);
_.u([_.Y(),_.W("design:type",String)],hW.prototype,"lengthTemplate",void 0);_.u([_.Y({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.W("design:type",String)],hW.prototype,"durationLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"visible",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"player_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"draggingLeft_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"draggingRight_",void 0);
_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"draggingRuler_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Object)],hW.prototype,"draggingWindow_",void 0);_.u([_.Y({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.W("design:type",Number)],hW.prototype,"tickSpacing_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"seekableStart",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"seekableEnd",void 0);
_.u([_.Y(),_.W("design:type",Number)],hW.prototype,"windowSizeMs",void 0);_.u([_.Y({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.W("design:type",Number)],hW.prototype,"windowSizeSec_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"rulerWidth_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"rulerShift_",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"windowSlideSpeed",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hW.prototype,"disabled",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"initialized",void 0);_.u([_.Y(),_.W("design:type",Object)],hW.prototype,"durationAccessibilityLabel",void 0);_.u([_.Y({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.W("design:type",String)],hW.prototype,"dragState",void 0);
_.u([_.la("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"onVisibleChanged_",null);_.u([_.la("initialized"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"onInitializedChanged_",null);_.u([_.la("player_","visible","disabled","initialized","start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"onUpdateLoopRange",null);
_.u([_.la("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"updateHandles_",null);_.u([_.la("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"updateRuler_",null);
_.u([_.la("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hW.prototype,"onDragStateChanged_",null);_.u([_.cU({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],hW);
_.d(hW,"yt-clip-creation-scrubber-view",function(){if(FW4===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;py3===void 0&&(py3=document.createElement("template"));var R=py3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);FW4=M}M=FW4;return M},{mode:2});var yT=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};M.startHighlightTimeout=0;M.endHighlightTimeout=0;return M};
_.w(yT,_.g);_.P=yT.prototype;_.P.attached=function(){var M=this;this.startInput.addEventListener("input",function(z){return M.handleStartInput_(z)});
this.endInput.addEventListener("input",function(z){return M.handleEndInput_(z)});
this.startInput.addEventListener("focusout",function(z){return M.handleStartBlur_(z)});
this.endInput.addEventListener("focusout",function(z){return M.handleEndBlur_(z)})};
_.P.setPlayer=function(M){this.set("player_",M)};
_.P.onSetFixedLengthRange_=function(M){var z=M.detail;M=z.start;var J=z.duration,R=z.startLimit;z=z.endLimit;R||(R=this.seekableStart_);z||(z=this.seekableEnd_);M=S$q(M,J,R,z);this.start=M.start;this.end=M.end};
_.P.onSetRange_=function(M){var z=M.detail;M=z.start;var J=z.end,R=z.startLimit;z=z.endLimit;R||(R=this.seekableStart_);z||(z=this.seekableEnd_);if(M=Zvq(M,J,R,z,this.minLengthSec,this.maxLengthSec))this.start=M.start,this.end=M.end};
_.P.updateInputs_=function(){var M=this.end,z=this.start;this.startInput.focused||(this.startInput.value=my(z,!0));this.endInput.focused||(this.endInput.value=my(M,!0))};
_.P.handleStartInput_=function(M){M=PJi(M.target.value);if(M===null)this.set("startValid",!1);else{var z=this.end,J=Zvq(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);J?(this.set("endWillUpdate",J.end!==z),this.set("startValid",J.start===M)):this.set("startValid",!1)}};
_.P.handleEndInput_=function(M){M=PJi(M.target.value);if(M===null)this.set("endValid",!1);else{var z=this.start,J=ktq(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);J?(this.set("startWillUpdate",J.start!==z),this.set("endValid",J.end===M)):this.set("endValid",!1)}};
_.P.handleStartBlur_=function(M){M=PJi(M.target.value);M===null?this.startInput.value=my(this.start,!0):this.forceUpdateInputs_(Zvq(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.handleEndBlur_=function(M){M=PJi(M.target.value);M===null?this.endInput.value=my(this.end,!0):this.forceUpdateInputs_(ktq(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.forceUpdateInputs_=function(M){M&&(this.start=M.start,this.end=M.end);this.startInput.value=my(this.start,!0);this.endInput.value=my(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.P.initializeClipRange_=function(){var M=this.seekableEnd_,z=this.seekableStart_,J=this.visible_,R=this.player_;if(!R||!J||z===null||!M)this.set("initialized",!1);else if(!this.initialized){var D=R.getCurrentTime(),N=this.getDefaultLengthSec_();J=R.getVideoData();var Z=R.getPlayerState()==1,B=J.isLive;N=Math.min(N,M-z);D=Math.max(0,D);M=B?ktq(D-N,D,z,M,this.minLengthSec,this.maxLengthSec):Z?S$q(D-N/2,N,z,M):S$q(D,N,z,M);this.start=M.start;this.end=M.end;this.set("initialized",!0);J.isLive&&R.seekTo(M.start);
this.startInput.value=my(this.start,!0);this.endInput.value=my(this.end,!0)}};
_.P.onStartChanged_=function(){var M=this;_.Pv(this.hostElement,"start-changed",{start:this.start});var z;isNaN((z=this.oldStart)!=null?z:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){M.set("highlightStart",!1);M.startHighlightTimeout=0;M.oldStart=M.start},3E3))};
_.P.onEndChanged_=function(){var M=this;_.Pv(this.hostElement,"end-changed",{end:this.end});var z;isNaN((z=this.oldEnd)!=null?z:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){M.set("highlightEnd",!1);M.endHighlightTimeout=0;M.oldEnd=M.end},3E3))};
_.P.onVisibilityChangedAction_=function(M){var z=this;this.set("visible_",M.visible);this.visible_&&!this.player_&&(M=_.J_())&&M.getPlayerPromise().then(function(J){z.setPlayer(J)})};
_.P.computeMinLengthSec_=function(M){return M/1E3||5};
_.P.computeMaxLengthSec_=function(M){return M/1E3||60};
_.P.computeDefaultLengthSec_=function(M){return M/1E3};
_.P.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.P.computeSeekableStart_=function(M,z){return M&&z?M.getProgressState(1).seekableStart:0};
_.P.computeSeekableEnd_=function(M,z){return M&&z?M.getProgressState(1).seekableEnd:0};
_.P.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.P.onDragState_=function(M){this.set("highlightStart",M.detail.startChanging);this.set("highlightEnd",M.detail.endChanging)};
yT.prototype.onDragState_=yT.prototype.onDragState_;yT.prototype.onEndChanged_=yT.prototype.onEndChanged_;yT.prototype.onStartChanged_=yT.prototype.onStartChanged_;yT.prototype.initializeClipRange_=yT.prototype.initializeClipRange_;yT.prototype.updateInputs_=yT.prototype.updateInputs_;yT.prototype.onSetRange_=yT.prototype.onSetRange_;yT.prototype.onSetFixedLengthRange_=yT.prototype.onSetFixedLengthRange_;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],yT.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yT.prototype,"data",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],yT.prototype,"start",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],yT.prototype,"startValid",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],yT.prototype,"startWillUpdate",void 0);_.u([_.Y({value:30}),_.W("design:type",Number)],yT.prototype,"end",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],yT.prototype,"endValid",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],yT.prototype,"endWillUpdate",void 0);_.u([_.Y({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.W("design:type",Number)],yT.prototype,"minLengthSec",void 0);
_.u([_.Y({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.W("design:type",Number)],yT.prototype,"maxLengthSec",void 0);_.u([_.Y({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.W("design:type",Number)],yT.prototype,"defaultLengthSec",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],yT.prototype,"visible_",void 0);_.u([_.Y(),_.W("design:type",Object)],yT.prototype,"player_",void 0);
_.u([_.Y({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.W("design:type",Number)],yT.prototype,"seekableStart_",void 0);_.u([_.Y({computed:"computeSeekableEnd_(player_, visible_)"}),_.W("design:type",Number)],yT.prototype,"seekableEnd_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],yT.prototype,"initialized",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],yT.prototype,"disabled",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],yT.prototype,"highlightStart",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],yT.prototype,"highlightEnd",void 0);_.u([_.Qc("#start"),_.W("design:type",HTMLInputElement)],yT.prototype,"startInput",void 0);_.u([_.Qc("#end"),_.W("design:type",HTMLInputElement)],yT.prototype,"endInput",void 0);
_.u([_.Xw("set-fixed-length-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yT.prototype,"onSetFixedLengthRange_",null);_.u([_.Xw("set-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yT.prototype,"onSetRange_",null);_.u([_.la("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yT.prototype,"updateInputs_",null);
_.u([_.la("player_","visible_","seekableStart_","seekableEnd_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yT.prototype,"initializeClipRange_",null);_.u([_.la("start"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yT.prototype,"onStartChanged_",null);_.u([_.la("end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yT.prototype,"onEndChanged_",null);
_.u([_.Xw("clips-drag-state"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yT.prototype,"onDragState_",null);_.u([_.cU({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],yT);
_.d(yT,"yt-clip-creation-scrubber-renderer",function(){if(tXq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;xyr===void 0&&(xyr=document.createElement("template"));var R=xyr;J.call(z,R.content.cloneNode(!0),M.content.firstChild);tXq=M}M=tXq;return M},{mode:2});var H7=function(){var M=_.g.apply(this,arguments)||this;M.player_=null;M.JSC$22525_playerEvents=new Map;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.w(H7,_.g);_.P=H7.prototype;_.P.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.P.created=function(){this.JSC$22525_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22525_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22525_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22525_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.P.detached=function(){this.setPlayer(null)};
_.P.onVisibilityChangedAction_=function(M){var z=this,J;if((J=this.data)==null?0:J.externalVideoId){var R;this.videoId=(R=this.data)==null?void 0:R.externalVideoId}this.getPlayer().then(function(D){if(M.visible)z.returnTime=D.getCurrentTime(),z.isAtLiveHead=D.getProgressState().isAtLiveHead;else{var N=z.returnTime;z.isAtLiveHead&&(N=Number.POSITIVE_INFINITY);D.seekTo(N,void 0,void 0,void 0,51)}})};
_.P.getPlayer=function(){var M=this;if(!this.player_){var z=_.J_();if(z)return z.getPlayerPromise().then(function(J){M.setPlayer(J);return J})}return Promise.resolve(this.player_)};
_.P.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22525_playerEvents);if(M){this.player_=M;var z;((z=this.data)==null?0:z.externalVideoId)||this.set("videoId",M.getVideoData().video_id||"");var J;(M==null?void 0:(J=M.getPresentingPlayerType)==null?void 0:J.call(M))===2&&(this.set("isAdPlaying",!0),_.S9(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22525_playerEvents)}};
_.P.ready=function(){_.SN(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.P.onTitleChanged_=function(M){this.set("titleValue",M.detail.title)};
_.P.onStartChanged_=function(M){this.set("start",M.detail.start)};
_.P.onEndChanged_=function(M){this.set("end",M.detail.end)};
_.P.onTitleValidChanged_=function(M){this.set("titleValid",M.detail.valid)};
_.P.onStartValidChanged_=function(M){this.set("startValid",M.detail.valid)};
_.P.onEndValidChanged_=function(M){this.set("endValid",M.detail.valid)};
_.P.onVideoDataChange_=function(){var M;if((M=this.data)==null||!M.externalVideoId){var z;this.set("videoId",((z=this.player_)==null?void 0:z.getVideoData().video_id)||"")}};
_.P.computeFormValid_=function(M,z,J,R){return!!(M&&z&&J&&R)};
_.P.computeCancelButton_=function(M,z,J){return M&&_.G(M,_.aR)?{buttonRenderer:Object.assign({},_.G(M,_.aR),{isDisabled:z||J})}:null};
_.P.computeSubmitButton_=function(M,z,J){return M&&_.G(M,_.aR)?{buttonRenderer:Object.assign({},_.G(M,_.aR),{command:void 0,isDisabled:!this.formValid||z||J})}:null};
_.P.computeSubmitCommand_=function(M){return M||null};
_.P.onSubmit_=function(M){var z=this;M.stopPropagation();M.preventDefault();this.submitCommand_&&(M={},M.comment_text=this.titleValue,M.clip_external_video_id=this.videoId,M.clip_offset_ms=parseInt(this.start*1E3,10),M.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.kQ(this.hostElement,[this.submitCommand_,M]).then(function(){z.set("isLoading_",!1)},function(){z.set("isLoading_",!1)}))};
_.P.playerAdStartHandler_=function(){_.S9(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler_=function(){_.S9(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.P.onVideoProgress_=function(){var M=this;this.getPlayer().then(function(z){var J,R=(z==null?void 0:(J=z.getPresentingPlayerType)==null?void 0:J.call(z))===2;M.isAdPlaying!==R&&(R?M.playerAdStartHandler_():M.playerAdEndHandler_())})};
H7.prototype.onEndValidChanged_=H7.prototype.onEndValidChanged_;H7.prototype.onStartValidChanged_=H7.prototype.onStartValidChanged_;H7.prototype.onTitleValidChanged_=H7.prototype.onTitleValidChanged_;H7.prototype.onEndChanged_=H7.prototype.onEndChanged_;H7.prototype.onStartChanged_=H7.prototype.onStartChanged_;H7.prototype.onTitleChanged_=H7.prototype.onTitleChanged_;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],H7.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",Object)],H7.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],H7.prototype,"data",void 0);_.u([_.Y({value:""}),_.W("design:type",String)],H7.prototype,"titleValue",void 0);
_.u([_.Y({value:!1}),_.W("design:type",Boolean)],H7.prototype,"titleValid",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],H7.prototype,"start",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],H7.prototype,"startValid",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],H7.prototype,"end",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],H7.prototype,"endValid",void 0);_.u([_.Y({value:""}),_.W("design:type",String)],H7.prototype,"videoId",void 0);
_.u([_.Y({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.W("design:type",Boolean)],H7.prototype,"formValid",void 0);_.u([_.Y({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.W("design:type",Object)],H7.prototype,"submitButton_",void 0);_.u([_.Y({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.W("design:type",Object)],H7.prototype,"submitCommand_",void 0);
_.u([_.Y({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.W("design:type",Object)],H7.prototype,"cancelButton_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],H7.prototype,"isLoading_",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],H7.prototype,"isAdPlaying",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],H7.prototype,"returnTime",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],H7.prototype,"isAtLiveHead",void 0);
_.u([_.Xw("title-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onTitleChanged_",null);_.u([_.Xw("start-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onStartChanged_",null);_.u([_.Xw("end-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onEndChanged_",null);
_.u([_.Xw("title-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onTitleValidChanged_",null);_.u([_.Xw("start-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onStartValidChanged_",null);_.u([_.Xw("end-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H7.prototype,"onEndValidChanged_",null);
_.u([_.cU({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],H7);
_.d(H7,"yt-clip-creation-renderer",function(){if(wyq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;GTA===void 0&&(GTA=document.createElement("template"));var R=GTA;J.call(z,R.content.cloneNode(!0),M.content.firstChild);wyq=M}M=wyq;return M},{mode:2});var c7=function(){return _.g.apply(this,arguments)||this};
_.w(c7,_.g);c7.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"}}}};
c7.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(M){return M.hasOwnProperty("clipCreationRenderer")})&&_.S9(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
c7.prototype.onPanelContentVisibleChanged=c7.prototype.onPanelContentVisibleChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],c7.prototype,"ytVisibilityBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],c7.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],c7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],c7.prototype,"panelContentVisible",void 0);_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c7.prototype,"onPanelContentVisibleChanged",null);_.u([_.c({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],c7);
_.d(c7,"ytd-clip-section-renderer",function(){if(Qoi!==void 0)return Qoi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Qoi=M},{mode:1});var YId;var dn=function(){return _.g.apply(this,arguments)||this};
_.w(dn,_.g);_.P=dn.prototype;
_.P.onKeyDown=function(M){if(this.snippetElements.length!==0&&(M=M.keyCode,M===38||M===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);M===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.dy(this.highlightedIndex,-1,this.snippetElements.length);M=this.snippetElements.length;var z=this.highlightedIndex%M;this.highlightedIndex=z*M<0?z+M:z;M=this.snippetElements[this.highlightedIndex];this.highlightSnippet(M);this.ensureVisible(M)}};
_.P.onKeyUp=function(M){var z=this;q$q(M)&&(M.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.no.cancelJob(this.inputTimerId),this.inputTimerId=_.no.addLowPriorityJob(function(){z.typedValue&&(z.fetchSnippets(z.typedValue),z.logInputGesture(z.data))},1E3))};
_.P.onClick=function(M){(M=_.DNV(M.target,null,"snippet-item"))&&this.selectSnippet(M)};
_.P.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.P.ready=function(){var M=this;this.inputElement.addEventListener("focus",function(){M.snippetsWrapper.style.removeProperty("display")})};
_.P.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.P.getSourceTimelines=function(){if(!this.data)return[];var M=[];if(this.data.searchInVideoSources)for(var z=_.S(this.data.searchInVideoSources),J=z.next();!J.done;J=z.next())J=J.value,J==="SEARCH_IN_VIDEO_SOURCE_ASR"?M.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):J==="SEARCH_IN_VIDEO_SOURCE_OCR"&&M.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return M};
_.P.fetchSnippets=function(M){var z=_.S9(this.hostElement,"yt-get-current-video-id-action")[0],J=this.getSourceTimelines();M={getSearchInVideoCommand:{externalVideoId:z,query:M!=null?M:"",sourceTimelines:J},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})};
_.P.filterSnippets=function(M,z){var J=this;if(z){this.filteredSnippets=(0,_.gu.unsafeClone)(M);var R=RegExp(_.KiH(z),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Z){return R.test(J.ytRendererBehavior.getSimpleString(Z.snippet))});
M=_.S(this.filteredSnippets);for(var D=M.next();!D.done;D=M.next()){D=D.value;var N=this.ytRendererBehavior.getSimpleString(D.snippet);D.snippet={runs:[{text:N.substring(0,N.toLowerCase().indexOf(z))},{text:N.substring(N.toLowerCase().indexOf(z),N.toLowerCase().indexOf(z)+z.length),bold:!0},{text:N.substring(N.toLowerCase().indexOf(z)+z.length,N.length)}]}}}else this.filteredSnippets=M};
_.P.onUpdateSearchInVideoResults=function(M){if(!(this.snippets.length>0)){var z,J,R;if((R=(z=_.G(M,Mmr))==null?void 0:(J=z.results)==null?void 0:J.length)!=null&&R){var D;this.filteredSnippets=this.snippets=((D=_.G(M,Mmr))==null?void 0:D.results).map(function(N){var Z,B,O;return{startMs:N==null?void 0:(Z=N.searchInVideoResultRenderer)==null?void 0:Z.startMs,startTimeText:N==null?void 0:(B=N.searchInVideoResultRenderer)==null?void 0:B.startTimeText,snippet:N==null?void 0:(O=N.searchInVideoResultRenderer)==
null?void 0:O.snippet}})}}};
_.P.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.P.highlightSnippet=function(M){M.classList.add("highlighted")};
_.P.removeSnippetHighlight=function(M){M.classList.remove("highlighted")};
_.P.selectSnippet=function(M){this.typedValue=String(M.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(M);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.P.ensureVisible=function(M){var z=this.snippetsWrapper.scrollTop,J=z+this.snippetsWrapper.clientHeight,R=M.offsetTop-this.snippetsWrapper.offsetTop;M=R+M.clientHeight;R<z?this.snippetsWrapper.scrollTop-=z-R:M>J&&(this.snippetsWrapper.scrollTop+=M-J)};
_.P.seekPlayer=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1){if(!M)return R.jumpTo(0);z=Number(M.dataset.startOffset);return R.yield(_.R9().getPlayerPromise(),3)}J=R.yieldResult;J.seekTo(z/1E3,!0);J.wakeUpControls();_.UI(R)})};
_.P.logInputGesture=function(M){var z=_.y5();z&&(M==null?0:M.trackingParams)&&_.LY(z,_.pe(M.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.P.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("typed-value-changed",this.typedValue))};
_.P.updateTypedValueFromBinding=function(M){this.typedValue=M.currentTarget.value};
dn.prototype.typedValueChangedForBinding=dn.prototype.typedValueChangedForBinding;dn.prototype.dataChanged=dn.prototype.dataChanged;dn.prototype.panelContentVisibleChanged=dn.prototype.panelContentVisibleChanged;dn.prototype.onClick=dn.prototype.onClick;dn.prototype.onKeyUp=dn.prototype.onKeyUp;dn.prototype.onKeyDown=dn.prototype.onKeyDown;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dn.prototype,"data",void 0);_.u([_.Y({value:[]}),_.W("design:type",Array)],dn.prototype,"snippets",void 0);_.u([_.Y({value:[]}),_.W("design:type",Array)],dn.prototype,"filteredSnippets",void 0);_.u([_.Y({value:[]}),_.W("design:type",Array)],dn.prototype,"snippetElements",void 0);
_.u([_.Qc("#siv-input"),_.W("design:type",HTMLElement)],dn.prototype,"inputElement",void 0);_.u([_.Qc("#siv-snippets-wrapper"),_.W("design:type",HTMLElement)],dn.prototype,"snippetsWrapper",void 0);_.u([_.Y(),_.W("design:type",String)],dn.prototype,"typedValue",void 0);_.u([_.Y({value:-1}),_.W("design:type",Number)],dn.prototype,"highlightedIndex",void 0);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[_.GQ]),_.W("design:returntype")],dn.prototype,"onKeyDown",null);
_.u([_.Xw("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[_.GQ]),_.W("design:returntype")],dn.prototype,"onKeyUp",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],dn.prototype,"onClick",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],dn.prototype,"panelContentVisible",void 0);
_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dn.prototype,"panelContentVisibleChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dn.prototype,"dataChanged",null);_.u([_.la("typedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dn.prototype,"typedValueChangedForBinding",null);
_.u([_.c({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],dn);
_.d(dn,"ytd-search-in-video-renderer",function(){if(YId!==void 0)return YId;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return YId=M},{mode:1});var myi;var KV=function(){return _.g.apply(this,arguments)||this};
_.w(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 M,z,J,R,D=(z=_.G((M=this.data)==null?void 0:M.onClickCommand,_.F7))==null?void 0:(J=z.item)==null?void 0:(R=J.notificationTextRenderer)==null?void 0:R.successResponseText;D&&_.xFG(this.hostElement,D)}};
_.rX.Object.defineProperties(KV.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return this.isProductPlaceholder&&((M=this.data)==null?void 0:(z=M.hiddenProductOptions)==null?void 0:z.showDropCountdown)&&!!((J=this.data)==null?0:(R=J.hiddenProductOptions)==null?0:R.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isProductPlaceholder&&!((M=this.data)==null?0:M.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null?0:M.priceReplacementText)&&!((z=this.data)==null||!z.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],KV.prototype,"componentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],KV.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"useCenterLayoutContainer",null);_.u([_.Y({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],KV.prototype,"buttonOverride",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"isProductPlaceholder",null);
_.u([_.F("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"showDropCountdown",null);_.u([_.F("isProductPlaceholder","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"showBrandName",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"showPriceReplacementText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"showPrice",null);
_.u([_.F("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],KV.prototype,"showMetadata",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],KV);
_.d(KV,"ytd-product-list-item-renderer",function(){if(myi!==void 0)return myi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return myi=M},{mode:1});var gjd;var $A=function(){return _.g.apply(this,arguments)||this};
_.w($A,_.g);$A.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
$A.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
$A.prototype.panelContentVisibleChanged=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return M.playerApi?J.jumpTo(2):J.yield(_.R9().getPlayerPromise(),3);J.nextAddress!=2&&(M.playerApi=J.yieldResult);(z=M.playerApi)==null||z.productsInVideoVisibilityUpdated(!!M.panelContentVisible);_.UI(J)})};
$A.prototype.panelContentVisibleChanged=$A.prototype.panelContentVisibleChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],$A.prototype,"panelContentVisible",void 0);_.u([_.Y(),_.W("design:type",Object)],$A.prototype,"data",void 0);
_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],$A.prototype,"panelContentVisibleChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],$A);
_.d($A,"ytd-product-list-renderer",function(){if(gjd!==void 0)return gjd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return gjd=M},{mode:1});var soA;var uq=function(){var M=_.g.apply(this,arguments)||this;M.hideTimestamps=!!_.UE("hide-transcript-timestamps");M.currentCueIndex=-1;M.flatCues=[];M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};M.TEST_ONLY={getFlatCues:function(){return M.flatCues}};
return M};
_.w(uq,_.g);_.P=uq.prototype;_.P.hideTimestampsChanged=function(){_.Qo("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.dataChanged=function(){var M;if((M=this.data)!=null&&M.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;M=_.S(this.data.cueGroups);for(var z=M.next();!z.done;z=M.next()){z=_.S(_.G(z.value,zwi).cues);for(var J=z.next();!J.done;J=z.next())this.flatCues.push(Number(_.G(J.value,Ji4).startOffsetMs))}}};
_.P.onYtPlayerTimeChanged=function(M){if(!(M<0)){for(var z=this.currentCueIndex,J=z;;){var R=J>=0?this.flatCues[J]/1E3:-1;if(M+.5<R)--J;else if(R=J+1<this.flatCues.length?this.flatCues[J+1]/1E3:Infinity,M+.5>R)J+=1;else break}J!==z&&(z>=0&&((M=this.getCueElement(z))&&M.classList.remove("active"),(z=this.getCueGroupElement(z))&&z.classList.remove("active")),(z=this.getCueElement(J))&&z.classList.add("active"),(z=this.getCueGroupElement(J))&&z.classList.add("active"),this.currentCueIndex=J,this.isHovered||
this.scrollElementToTop(J))}};
_.P.scrollElementToTop=function(M){M=this.getCueElement(M>=3?M-3:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.getCueElement=function(M){return _.SN(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[M]+'"]')};
_.P.getCueGroupElement=function(M){return(M=this.getCueElement(M))&&M.parentElement?M.parentElement.parentElement:null};
_.P.onTap=function(M){var z=_.b7(M);M.target.classList.contains("cue")&&this.seekCueElement(z)};
_.P.onKeyPress=function(M){M.keyCode==13&&(M=_.DNV(M.target,null,"cue"))&&this.seekCueElement(M)};
_.P.seekCueElement=function(M){M=Number(M.getAttribute("start-offset"));_.S9(this.hostElement,"yt-transcript-player-seek",[M/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
uq.prototype.onMouseLeave=uq.prototype.onMouseLeave;uq.prototype.onMouseEnter=uq.prototype.onMouseEnter;uq.prototype.onKeyPress=uq.prototype.onKeyPress;uq.prototype.onTap=uq.prototype.onTap;uq.prototype.dataChanged=uq.prototype.dataChanged;uq.prototype.hideTimestampsChanged=uq.prototype.hideTimestampsChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],uq.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uq.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uq.prototype,"hideTimestamps",void 0);_.u([_.Y(),_.W("design:type",Boolean)],uq.prototype,"isHovered",void 0);_.u([_.la("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uq.prototype,"hideTimestampsChanged",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uq.prototype,"dataChanged",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],uq.prototype,"onTap",null);_.u([_.Xw("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],uq.prototype,"onKeyPress",null);
_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uq.prototype,"onMouseEnter",null);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uq.prototype,"onMouseLeave",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],uq);
_.d(uq,"ytd-transcript-body-renderer",function(){if(soA!==void 0)return soA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return soA=M},{mode:1});var njd;var qR=function(){var M=_.g.apply(this,arguments)||this;M.darkerPanels=_.U("web_watch_darker_panels");return M};
_.w(qR,_.g);qR.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qR.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qR.prototype,"darkerPanels",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],qR);
_.d(qR,"ytd-transcript-footer-renderer",function(){if(njd!==void 0)return njd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return njd=M},{mode:1});var hnq;var yGr;var W7=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.showClearButton=!1;return M};
_.w(W7,_.g);_.P=W7.prototype;_.P.handleInput=function(M){var z=this;M.target.value.length?_.Vc(this,"ytdTranscriptSearchBoxSearch",function(){z.emitSearchEvent(M)},500):(_.s8R(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=M.target.value.length>0};
_.P.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.P.handleClick=function(){var M,z=(M=this.data)==null?void 0:M.trackingParams;z&&_.Ub(_.Gm(),z)};
_.P.handleClear=function(){_.s8R(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var M,z,J=(z=_.G((M=this.data)==null?void 0:M.clearButton,_.aR))==null?void 0:z.trackingParams;J&&_.Ub(_.Gm(),J);this.clear()};
_.P.emitSearchEvent=function(M){_.Pv(this.hostElement,"yt-transcript-search-box-search",{query:M.target.value});var z,J;(M=(J=_.G((z=this.data)==null?void 0:z.searchButton,_.aR))==null?void 0:J.trackingParams)&&_.Ub(_.Gm(),M)};
_.P.emitClearEvent=function(){_.Pv(this.hostElement,"yt-transcript-search-box-clear")};
_.rX.Object.defineProperties(W7.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.SN(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],W7.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],W7.prototype,"systemIcons",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],W7);
_.d(W7,"ytd-transcript-search-box-renderer",function(){if(yGr!==void 0)return yGr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yGr=M},{mode:1});var HSr;var cGi;var aA=function(){return _.g.apply(this,arguments)||this};
_.w(aA,_.g);aA.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var M,z;this.sectionHeaderAriaLabel=(M=this.data)==null?void 0:(z=M.accessibility)==null?void 0:z.accessibilityData.label}};
aA.prototype.fireSelectedEvent=function(M){_.Pv(this.hostElement,"ytd-transcript-section-header",{startMs:M})};
aA.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
aA.prototype.handleKeyPress=function(M){this.data&&M.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.rX.Object.defineProperties(aA.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.data)==null?void 0:M.enableTappableTranscriptHeader)!=null?z:!1}}});
aA.prototype.dataChanged=aA.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],aA.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],aA.prototype,"sectionHeaderAriaLabel",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],aA.prototype,"enableTappableTranscriptHeader",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aA.prototype,"dataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],aA);
_.d(aA,"ytd-transcript-section-header-renderer",function(){if(cGi!==void 0)return cGi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cGi=M},{mode:1});var dyE;var KWq;var VT=function(){var M=_.g.apply(this,arguments)||this;M.isEditMode=!1;M.touchCaptionsEnabled=!1;M.deleteCaptionCorrectionPopupCommand=null;M.voteCaptionCorrectionPopupCommand=null;M.roundedContainer=!0;M.mouseOver=!1;M.textChanged=!1;M.messages={suggest_correction:_.e9("suggest_correction",void 0,"Edit caption"),suggested_caption:_.e9("suggested_caption",void 0,"Suggested caption"),submit_correction:_.e9("submit_correction",void 0,"Submit for review"),cancel_correction:_.e9("cancel_correction",
void 0,"Cancel"),replay_segment:_.e9("replay_segment",void 0,"Re-play segment"),delete_correction:_.e9("delete_correction",void 0,"Delete correction")};M.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return M};
_.w(VT,_.g);_.P=VT.prototype;_.P.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.P.handleDelete=function(M){if(this.deleteCaptionCorrectionPopupCommand){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);z&&this.ytdOpenPopupBehavior.openPopup(z);M.stopPropagation()}};
_.P.handleSubmit=function(M){if(this.data&&this.data.submitCaptionCorrectionCommand&&(M.stopPropagation(),this.textChanged)){var z;M=(z=_.G(this.data.submitCaptionCorrectionCommand,_.f1$))==null?void 0:z.params;z=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:M,correctionText:String(this.ironTextAreaElement.value),originalText:_.CD(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(z);this.isEditMode=!1}};
_.P.handleUpdateSegmentText=function(M){(M=_.G(M,UNq))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&(M.userCorrection&&(this.editedText=M.userCorrection),M.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.CD(this.data.snippet)),M.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=M.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=M.voteCaptionCorrectionPopupCommand?
M.voteCaptionCorrectionPopupCommand:null,M.accessibility&&(this.segmentAriaLabel=M.accessibility.accessibilityData.label))};
_.P.handleCancel=function(M){this.isEditMode=!1;M.stopPropagation();this.logClientVe(159409)};
_.P.handleEditSegmentCommand=function(M){(M=_.G(M,Qvr))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&this.handleEdit()};
_.P.handleEditButtonClick=function(M){this.data&&(this.handleEdit(),M.stopPropagation())};
_.P.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var M;(M=this.ironTextAreaElement.textarea)==null||M.focus();this.logClientVe(159407)}};
_.P.handleMouseEnter=function(){this.mouseOver=!0};
_.P.handleMouseLeave=function(){this.mouseOver=!1};
_.P.handleReplay=function(M){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),M.stopPropagation(),this.logClientVe(159408))};
_.P.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.P.handleKeypress=function(M){this.data&&(this.isEditMode?M.stopPropagation():this.isEnterPress(M)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(M)&&this.logClientVe(138758))};
_.P.handleTextboxClick=function(M){M.stopPropagation()};
_.P.handleTextboxKeydown=function(M){this.isControlEnterPress(M)?this.handleSubmit(M):M.key==="Escape"&&this.handleCancel(M)};
_.P.handleTextboxKeyup=function(){this.textChanged=_.CD(this.latestText)!==String(this.ironTextAreaElement.value)};
_.P.fireSelectedEvent=function(M){_.Pv(this.hostElement,"yt-transcript-segment-selected",{startMs:M})};
_.P.fireReplayEvent=function(M,z){_.Pv(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(M-100,0),endMs:z})};
_.P.fireEditEvent=function(M,z){_.Pv(this.hostElement,"yt-transcript-segment-edit",{startMs:M,endMs:z})};
_.P.isEnterPress=function(M){return M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13?!0:!1};
_.P.isControlEnterPress=function(M){var z=M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13;return(M.ctrlKey||M.metaKey)&&z};
_.P.isCopyPress=function(M){var z=M.ctrlKey;return M.key==="c"&&z};
_.P.logClick=function(){var M,z=(M=this.data)==null?void 0:M.trackingParams;z&&_.Ub(_.Gm(),z)};
_.P.logClientVe=function(M){_.Q6(_.Gm(),_.O3(M))};
_.rX.Object.defineProperties(VT.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}}});
VT.prototype.handleMouseLeave=VT.prototype.handleMouseLeave;VT.prototype.handleMouseEnter=VT.prototype.handleMouseEnter;VT.prototype.dataChanged=VT.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],VT.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VT.prototype,"isEditMode",void 0);_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"touchCaptionsEnabled",void 0);_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"editedText",void 0);_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.u([_.Y(),_.W("design:type",String)],VT.prototype,"segmentAriaLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VT.prototype,"roundedContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VT.prototype,"mouseOver",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VT.prototype,"textChanged",void 0);_.u([_.Y(),_.W("design:type",Object)],VT.prototype,"messages",void 0);
_.u([_.Qc("#suggestion"),_.W("design:type",Object)],VT.prototype,"ironTextAreaElement",void 0);_.u([_.F("data","editedText"),_.W("design:type",Object),_.W("design:paramtypes",[])],VT.prototype,"latestText",null);_.u([_.F("touchCaptionsEnabled","isEditMode"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VT.prototype,"enableEditButton",null);
_.u([_.F("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VT.prototype,"enableUndoButton",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VT.prototype,"dataChanged",null);_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VT.prototype,"handleMouseEnter",null);
_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VT.prototype,"handleMouseLeave",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],VT);
_.d(VT,"ytd-transcript-segment-renderer",function(){if(KWq!==void 0)return KWq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return KWq=M},{mode:1});var EY=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};M.isError=!1;M.darkerPanels=_.U("web_watch_darker_panels");M.useParentMaxHeight=_.U("web_watch_transscript_use_parent_max_height");M.segmentOffsets=[];M.segmentIndex=-1;return M};
_.w(EY,_.g);_.P=EY.prototype;_.P.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.P.segmentsChanged=function(){this.updateOffsets()};
_.P.onYtPlayerTimeChanged=function(M){for(var z=this.segmentIndex,J=z;;){if(J>=0){var R=this.segmentOffsets[J].start;var D=this.segmentOffsets[J].isAutoScrollable}else R=-1,D=!0;var N=M+.5;if(!D){R=J+1<this.segmentOffsets.length?this.segmentOffsets[J+1].start:Infinity;if(N>=R){J+=1;continue}J=-1;break}if(N<R)R=J-1>=0&&this.segmentOffsets[J-1].isAutoScrollable,D=J===0||R?1:2,J-=D;else if(D=J+1<this.segmentOffsets.length&&this.segmentOffsets[J+1].isAutoScrollable?1:2,R=J+D<this.segmentOffsets.length?
this.segmentOffsets[J+D].start:Infinity,N>R)J+=D;else{if(J<0)break;J<this.segmentOffsets.length&&N>this.segmentOffsets[J].end&&(J=-1);break}}if(z!==J){if(z>=0){var Z;(Z=this.getSegmentElement(z))==null||Z.classList.remove("active")}this.segmentIndex=J;if(!(J<0)){var B;(B=this.getSegmentElement(J))==null||B.classList.add("active");this.isHovered||this.scrollElementToTop(J)}}};
_.P.handleSegmentEdit=function(M){M.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=M.target,_.S9(this.hostElement,"yt-transcript-player-edit",[M.detail.startMs/1E3,M.detail.endMs/1E3]))};
_.P.handleSegmentSelected=function(M){_.S9(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.P.handleSegmentReplay=function(M){_.S9(this.hostElement,"yt-transcript-player-replay",[M.detail.startMs/1E3,M.detail.endMs/1E3])};
_.P.handleSectionHeaderSelected=function(M){_.S9(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.onRetryButtonClick=function(){_.Pv(this.hostElement,"transcript-retry-button-click")};
_.P.getSegmentElement=function(M){return _.SN(this.hostElement).querySelector(":nth-child("+(M+1)+")")};
_.P.scrollElementToTop=function(M){M=this.getSegmentElement(M>=2?M-2:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(M){var z,J=(z=M.transcriptSegmentRenderer)!=null?z:M.transcriptSectionHeaderRenderer;return{start:Number(J.startMs)/1E3,end:Number(J.endMs)/1E3,isAutoScrollable:M.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.P.clearHighlightedSegments=function(){var M=_.SN(this.hostElement);M=_.S(M.querySelectorAll("ytd-transcript-segment-renderer"));for(var z=M.next();!z.done;z=M.next())z.value.classList.remove("active")};
_.rX.Object.defineProperties(EY.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.searchResultSegments)||((z=this.data)==null?void 0:z.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
EY.prototype.onMouseLeave=EY.prototype.onMouseLeave;EY.prototype.onMouseEnter=EY.prototype.onMouseEnter;EY.prototype.handleSectionHeaderSelected=EY.prototype.handleSectionHeaderSelected;EY.prototype.handleSegmentReplay=EY.prototype.handleSegmentReplay;EY.prototype.handleSegmentSelected=EY.prototype.handleSegmentSelected;EY.prototype.handleSegmentEdit=EY.prototype.handleSegmentEdit;EY.prototype.segmentsChanged=EY.prototype.segmentsChanged;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],EY.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],EY.prototype,"isError",void 0);
_.u([_.Y(),_.W("design:type",Object)],EY.prototype,"noResultLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],EY.prototype,"darkerPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],EY.prototype,"useParentMaxHeight",void 0);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],EY.prototype,"segments",null);
_.u([_.F("segments","noResultLabel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EY.prototype,"displayNoResults",null);_.u([_.la("segments"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"segmentsChanged",null);_.u([_.Xw("yt-transcript-segment-edit"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],EY.prototype,"handleSegmentEdit",null);
_.u([_.Xw("yt-transcript-segment-selected"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],EY.prototype,"handleSegmentSelected",null);_.u([_.Xw("yt-transcript-segment-replay"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],EY.prototype,"handleSegmentReplay",null);
_.u([_.Xw("ytd-transcript-section-header"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],EY.prototype,"handleSectionHeaderSelected",null);_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"onMouseEnter",null);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EY.prototype,"onMouseLeave",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],EY);
_.d(EY,"ytd-transcript-segment-list-renderer",function(){if(dyE!==void 0)return dyE;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dyE=M},{mode:1});var fV=function(){var M=_.g.apply(this,arguments)||this;M.hideTimestamps=!!_.UE("hide-transcript-timestamps");M.isLoadingTranscripts=!1;M.darkerPanels=_.U("web_watch_darker_panels");M.isError=!1;M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return M};
_.w(fV,_.g);_.P=fV.prototype;_.P.headerChanged=function(){var M,z;this.baseGetTranscriptsCommand=(z=_.G((M=this.data)==null?void 0:M.header,vGq))==null?void 0:z.onTextChangeCommand};
_.P.bodyChanged=function(){var M=this.getBodyRenderer();M&&(M.initialSegments&&(this.initialTranscriptsRenderer=M),M.noResultLabel&&(this.noResultLabel=M.noResultLabel),M.retryLabel&&(this.retryLabel=M.retryLabel))};
_.P.detached=function(){this.clearSearchBoxText()};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.P.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.P.fireSearch=function(M){var z=this;if(M){var J=M.detail.query;if(this.baseGetTranscriptsCommand){var R;M=(R=_.G(this.baseGetTranscriptsCommand,_.xDu))==null?void 0:R.params;var D;R=_.G((D=this.data)==null?void 0:D.footer,RwE);var N;if((D=(N=_.G(R==null?void 0:R.languageMenu,Xtq))==null?void 0:N.subMenuItems)&&D.length>0&&(N=D.find(function(O){return O.selected}))){var Z,B;
M=(Z=N.continuation)==null?void 0:(B=Z.reloadContinuationData)==null?void 0:B.continuation}Z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:M,searchQuery:J}});this.ytComponentBehavior.resolveCommand(Z,{commandController:{onServerError:function(){z.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});$Br(this.ytContinuationHandlerBehavior,function(){return J===z.getCurrentSearchBoxText()})}}};
_.P.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.P.onRetryButtonClick=function(){this.isError=!1;var M={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:M}))};
_.P.hideTimestampsChanged=function(){_.Qo("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.handleSignalActionCopyTranscript=function(){var M=this,z=this.getBodyRenderer();z&&(z=((z==null?void 0:z.searchResultSegments)||(z==null?void 0:z.initialSegments)||[]).map(function(J){return _.G(J,wtA)}).filter(function(J){return!!J}).map(function(J){return{snippet:J.snippet||{runs:[{text:""}]},
startTimeText:J.startTimeText||{simpleText:""}}}).map(function(J){var R=(J.snippet.runs||[]).reduce(function(D,N){return D+N.text},"");
return M.hideTimestamps?R:J.startTimeText.simpleText+" "+R}).join("\n"),this.copyToClipboard(z))};
_.P.copyToClipboard=function(M){navigator.clipboard&&navigator.clipboard.writeText(M)};
_.P.getCurrentSearchBoxText=function(){var M;return(M=this.searchBox)==null?void 0:M.value};
_.P.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.P.getBodyRenderer=function(){var M;return _.G((M=this.data)==null?void 0:M.body,Gcr)};
_.P.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.rX.Object.defineProperties(fV.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.SN(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
fV.prototype.hideTimestampsChanged=fV.prototype.hideTimestampsChanged;fV.prototype.searchCleared=fV.prototype.searchCleared;fV.prototype.fireSearch=fV.prototype.fireSearch;fV.prototype.onReloadContinuationFinish=fV.prototype.onReloadContinuationFinish;fV.prototype.bodyChanged=fV.prototype.bodyChanged;fV.prototype.headerChanged=fV.prototype.headerChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],fV.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fV.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],fV.prototype,"hideTimestamps",void 0);
_.u([_.Y(),_.W("design:type",Object)],fV.prototype,"isLoadingTranscripts",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],fV.prototype,"darkerPanels",void 0);_.u([_.Y(),_.W("design:type",Object)],fV.prototype,"isError",void 0);_.u([_.la("data.header"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fV.prototype,"headerChanged",null);
_.u([_.wH("data.body"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fV.prototype,"bodyChanged",null);_.u([_.Xw("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fV.prototype,"onReloadContinuationFinish",null);_.u([_.Xw("yt-transcript-search-box-search"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],fV.prototype,"fireSearch",null);
_.u([_.Xw("yt-transcript-search-box-clear"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fV.prototype,"searchCleared",null);_.u([_.la("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fV.prototype,"hideTimestampsChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],fV);
_.d(fV,"ytd-transcript-search-panel-renderer",function(){if(HSr!==void 0)return HSr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return HSr=M},{mode:1});var LV=function(){var M=_.g.apply(this,arguments)||this;M.player=null;M.playerPollJobId=0;return M};
_.w(LV,_.g);_.P=LV.prototype;_.P.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.P.onLoadReloadContinuation=function(M){_.U("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:M.target.data.continuation}}):(M={clickTrackingParams:M.target.data.clickTrackingParams,getTranscriptEndpoint:{params:M.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}}))};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.P.attached=function(){this.updatePlayerListening()};
_.P.detached=function(){this.updatePlayerListening()};
_.P.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.P.startPlayerListening=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return(z=_.J_())?J.yield(z.getPlayerPromise(),2):J.return();M.player=J.yieldResult;M.playerPollJobId=_.no.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3);
M.player.addEventListener("onCueRangeEnter",function(R){M.onCueRangeEnter(R)});
M.player.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
M.player.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
M.player.addEventListener("SEEK_TO",function(R){M.onPlayerSeek(R)});
_.UI(J)})};
_.P.getPlayerVideoProgress=function(){var M=this;_.no.cancelJob(this.playerPollJobId);if(this.player){var z=this.player.getCurrentTime();_.S9(this.hostElement,"yt-player-time-changed",[z])}this.playerPollJobId=_.no.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3)};
_.P.stopPlayerListening=function(){this.player=null;_.no.cancelJob(this.playerPollJobId)};
_.P.onPlayerStateChange=function(M){M===2&&this.removePendingCue()};
_.P.onPlayerSeek=function(M){var z;if(z=this.pendingReplayCueId)z=this.pendingReplayCueId,z=M===(_.U("web_transcript_cue_id_killswitch")?Number(z):Number(z.split("_")[1]));z||this.removePendingCue()};
_.P.onCueRangeEnter=function(M){OvZ(M)&&(this.pendingReplayCueId=M)};
_.P.onCueRangeExit=function(M){OvZ(M)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.P.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.P.onYtTranscriptPlayerSeek=function(M){this.player&&this.player.seekTo(M,!0)};
_.P.onYtTranscriptPlayerReplay=function(M,z){this.player&&(this.player.addCueRange(Bgi(M),M,z),this.player.seekTo(M,!0),this.player.playVideo())};
_.P.onYtTranscriptPlayerEdit=function(M,z){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Bgi(M),M,z),this.player.seekTo(M,!0))};
LV.prototype.onLoadReloadContinuation=LV.prototype.onLoadReloadContinuation;LV.prototype.panelContentVisibleChanged=LV.prototype.panelContentVisibleChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],LV.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],LV.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],LV.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],LV.prototype,"panelContentVisible",void 0);_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LV.prototype,"panelContentVisibleChanged",null);
_.u([_.Xw("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],LV.prototype,"onLoadReloadContinuation",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],LV);
_.d(LV,"ytd-transcript-renderer",function(){if(hnq!==void 0)return hnq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hnq=M},{mode:1});var $yA;var u4A;var AW=function(){return _.g.apply(this,arguments)||this};
_.w(AW,_.g);AW.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Bv(this.hostElement,[this.data.clickCommand],this.hostElement))};
AW.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.ig)()+_.Kt)+"px)"};
AW.prototype.updateShouldHideFromBinding=function(M){this.shouldHide=M.detail.value};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AW.prototype,"rendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AW.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],AW.prototype,"shouldHide",void 0);_.u([_.c({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],AW);
_.d(AW,"ytd-ad-engagement-panel-banner-renderer",function(){if(u4A!==void 0)return u4A;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return u4A=M},{mode:_.B5("kevlar_poly_si_batch_j070")?1:2});var qIw;var iq=function(){var M=_.g.apply(this,arguments)||this;M.modernPanels=_.U("kevlar_watch_modern_panels");M.buttonUpdate=_.U("web_modern_buttons");M.adsSemanticText=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.w(iq,_.g);iq.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.u([_.Y(),_.W("design:type",Object)],iq.prototype,"data",void 0);_.u([_.Y({computed:"computeHideDefaultAdBadge(data)"}),_.W("design:type",Boolean)],iq.prototype,"hideDefaultAdBadge",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iq.prototype,"modernPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iq.prototype,"buttonUpdate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iq.prototype,"adsSemanticText",void 0);
_.u([_.c({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],iq);
_.d(iq,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(qIw!==void 0)return qIw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qIw=M},{mode:1});var WWi;var CV=function(){var M=_.g.apply(this,arguments)||this;M.darkerPanels=_.U("web_watch_darker_panels");M.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");M.modernPanels=_.U("kevlar_watch_modern_panels");M.headerClickListener=function(z){M.onHeaderClick(z)};
M.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return M};
_.w(CV,_.g);_.P=CV.prototype;_.P.computeAdsInfoButton=function(){if(_.U("web_modern_buttons")){var M,z;return(z=_.G((M=this.data)==null?void 0:M.subtitleComplex,DNd))==null?void 0:z.adInfoRenderer}};
_.P.updateHeaderClickListener=function(){var M,z,J;((M=this.data)==null?0:M.navigationEndpoint)||((z=this.data)==null?0:z.onClickCommand)||_.G((J=this.data)==null?void 0:J.visibilityButton,_.Vz)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.P.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.P.collapsedChanged=function(){var M;(M=this.data)!=null&&M.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.U("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.P.focus=function(M){var z=this;this.titleElement&&_.no.addJob(function(){_.Lo(z.titleElement,M)},0,500)};
_.P.computeTitleAriaLabel=function(M){var z=[];if(M.title){var J,R;z.push(this.ytRendererBehavior.getSimpleString(M.title)||((J=M.title.accessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label))}M.contextualInfo&&z.push(this.ytRendererBehavior.getSimpleString(M.contextualInfo));return z.join(" ")};
_.P.onHeaderClick=function(M){this.shouldTriggerHeaderClick(M)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Bv(this.hostElement,[this.data.onClickCommand],this.hostElement)):(M=this.getVisibilityToggleButton())&&M.click())};
_.P.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var M=_.G(this.data.visibilityButton,_.aR)||_.G(this.data.visibilityButton,_.Vz);M&&this.ytRendererBehavior.logExplicitClick(M)}};
_.P.getVisibilityToggleButton=function(){var M=_.SN(this.hostElement).querySelector("#visibility-button").firstElementChild;return(M==null?void 0:M.is)==="ytd-toggle-button-renderer"?M:null};
_.P.shouldTriggerHeaderClick=function(M){return!_.bP(_.CX(M),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.P.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(M){M=_.G(M,_.ASs);this.targetId&&(M==null?void 0:M.targetId)===this.targetId&&(M=M.navigationButton)&&this.set("data.navigationButton",M)};
_.rX.Object.defineProperties(CV.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!!(((M=this.entity)==null?0:M.isActionButtonHidden)||this.hideActionButton)}}});
CV.prototype.collapsedChanged=CV.prototype.collapsedChanged;CV.prototype.updateHeaderClickListener=CV.prototype.updateHeaderClickListener;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],CV.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],CV.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],CV.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],CV.prototype,"targetId",void 0);_.u([_.Y(),_.W("design:type",Boolean)],CV.prototype,"collapsed",void 0);_.u([_.Y(),_.W("design:type",Boolean)],CV.prototype,"hideActionButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],CV.prototype,"shortsPanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],CV.prototype,"liveChatEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],CV.prototype,"learningChatEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],CV.prototype,"darkerPanels",void 0);_.u([_.Qc("#title"),_.W("design:type",HTMLElement)],CV.prototype,"titleElement",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],CV.prototype,"headerElement",void 0);
_.u([_.Y({computed:"computeAdsInfoButton(data)"}),_.W("design:type",Object)],CV.prototype,"adsInfoButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],CV.prototype,"enableSqueezebackPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],CV.prototype,"enableAnchoredPanel",void 0);_.u([_.Y({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(M,z){return _.Is(M.entities,"engagementPanelTitleHeaderEntity",z)}}),
_.W("design:type",Object)],CV.prototype,"entity",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],CV.prototype,"modernPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],CV.prototype,"adsSemanticText",null);_.u([_.la("data","data.navigationEndpoint","data.onClickCommand"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CV.prototype,"updateHeaderClickListener",null);
_.u([_.wH("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CV.prototype,"collapsedChanged",null);_.u([_.F("entity","hideActionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],CV.prototype,"isActionButtonHidden",null);_.u([_.c({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],CV);
_.d(CV,"ytd-engagement-panel-title-header-renderer",function(){if(WWi!==void 0)return WWi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return WWi=M},{mode:1});var aDq;var bq=function(){return _.g.apply(this,arguments)||this};
_.w(bq,_.g);bq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bq.prototype,"data",void 0);_.u([_.c({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],bq);
_.d(bq,"ytd-macro-markers-info-item-renderer",function(){if(aDq!==void 0)return aDq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return aDq=M},{mode:1});var VXq;var LWq=function(M,z,J,R,D,N){_.wS.call(this);var Z=this;this.JSC$22627_containerElement=M;this.hostElement=z;this.supportedSyncItems=J;this.syncEntityKey=R;this.options=D;this.renderLazyListItems=N;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Ej4(this);fDw(this);this.JSC$22627_scrollAnimation=new _.L6(function(B){M.scrollTop=B});
_.OC(this,this.JSC$22627_scrollAnimation);this.addOnDisposeCallback(function(){Z.exitBrowsingMode(!1);Z.activeItem&&Z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.w(LWq,_.wS);var Ej4=function(M){var z=_.jx(_.JF().resolve(_.Vo),function(J){return J.entities.markersEngagementPanelSyncEntity||{}},function(J,R){var D;
J[M.syncEntityKey]!==R[M.syncEntityKey]&&((D=J[M.syncEntityKey])==null?void 0:D.activeItemIndex)!==void 0&&M.updatePanelActiveItem(J[M.syncEntityKey].activeItemIndex)});
M.unsubscribeFromTimedMarkersListSyncEntity=z;M.addOnDisposeCallback(z);AGq(M)},AGq=function(M){var z=_.JF().resolve(_.Vo);
z=_.gao(z.getState(),M.syncEntityKey);(z==null?void 0:z.activeItemIndex)!==void 0&&(z=M.getItemByIndex(z.activeItemIndex))&&M.setActiveItem(z)},fDw=function(M){var z=new _.A_(M.onScroll,50,M);
_.OC(M,z);var J=function(){z.fire()};
M.JSC$22627_containerElement.addEventListener("scroll",J);M.addOnDisposeCallback(function(){M.JSC$22627_containerElement.removeEventListener("scroll",J)})};
_.P=LWq.prototype;
_.P.updatePanelActiveItem=function(M){var z=this.getItemByIndex(M);if(z){if(this.setActiveItem(z),this.contentVisible)if(this.browsingMode){var J;((J=this.options)==null?void 0:J.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=iSr(this),z.offsetTop<this.JSC$22627_containerElement.clientHeight+this.JSC$22627_containerElement.scrollTop&&M&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));CYr(this)}else this.scrollToItem(z)}else _.yA(new _.xN("Could not find "+this.supportedSyncItems+
" sync child to set active.",M,this.JSC$22627_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.P.getItemByIndex=function(M){var z;(z=this.renderLazyListItems)==null||z.call(this,M);z=this.JSC$22627_containerElement.querySelectorAll(this.supportedSyncItems);if(z.length>M)return z[M]};
_.P.setActiveItem=function(M){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));M.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=M};
_.P.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.JSC$22627_containerElement.scrollTop!==M&&this.JSC$22627_scrollAnimation.start(this.JSC$22627_containerElement.scrollTop,M,300)};
_.P.getScrollPositionForItem=function(M){if(this.JSC$22627_containerElement.querySelectorAll(this.supportedSyncItems)[0]===M)return 0;var z,J=((z=this.options)==null?0:z.percentOffset)?this.JSC$22627_containerElement.clientHeight*this.options.percentOffset:0;M=_.Hj(M).y+this.JSC$22627_containerElement.scrollTop-(_.Hj(this.JSC$22627_containerElement).y+J);return Math.max(0,Math.min(M,this.JSC$22627_containerElement.scrollHeight-this.JSC$22627_containerElement.offsetHeight))};
_.P.onScroll=function(){this.activeItemBelowSyncPosition=iSr(this);if(this.activeItem&&!this.JSC$22627_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22627_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var M;switch((M=this.options)==null?void 0:M.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!bSA(this));CYr(this);break;default:this.enterBrowsingMode(!0)}}};
_.P.enterBrowsingMode=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1){if(z.browsingMode)return D.return();z.browsingMode=!0;M&&z.hostElement.classList.add("browsing-mode");z.playerExitBrowsingModeListener=function(){z.exitBrowsingMode(!1)};
return D.yield(_.T_(),2)}J=D.yieldResult;(R=J)==null||R.addEventListener("SEEK_TO",z.playerExitBrowsingModeListener);_.UI(D)})};
_.P.exitBrowsingMode=function(M){M=M===void 0?!0:M;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),M&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return M.playerExitBrowsingModeListener?R.yield(_.T_(),3):R.jumpTo(0);z=R.yieldResult;(J=z)==null||J.removeEventListener("SEEK_TO",M.playerExitBrowsingModeListener);M.playerExitBrowsingModeListener=void 0;_.UI(R)})};
var CYr=function(M){var z;((z=M.options)==null?void 0:z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(bSA(M)?M.hostElement.classList.remove("browsing-mode"):M.activeItem&&M.hostElement.classList.add("browsing-mode"))},iSr=function(M){if(!M.activeItem)return!1;
var z,J=((z=M.options)==null?0:z.percentOffset)?M.JSC$22627_containerElement.clientHeight*M.options.percentOffset:0;return M.activeItem.offsetTop>=M.JSC$22627_containerElement.scrollTop+J},bSA=function(M){if(!M.activeItem)return!1;
var z=M.activeItem.offsetTop+14<=M.JSC$22627_containerElement.scrollTop+M.JSC$22627_containerElement.clientHeight;return M.activeItem.offsetTop+M.activeItem.clientHeight-14>=M.JSC$22627_containerElement.scrollTop&&z};
LWq.prototype.panelContentVisibleChanged=function(M){(this.contentVisible=M)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var rGq=function(M,z){M.syncEntityKey=z;var J;(J=M.unsubscribeFromTimedMarkersListSyncEntity)==null||J.call(M);Ej4(M)},MUE=function(M,z){M.options=z};var rn=function(){var M=_.g.apply(this,arguments)||this;M.browsingMode=!1;M.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return M};
_.w(rn,_.g);_.P=rn.prototype;_.P.activeItemChanged=function(){if(!_.U("synced_panel_scrolling_controller")){var M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.P.created=function(){var M=this;_.U("synced_panel_scrolling_controller")||(this.JSC$22631_scrollAnimation=new _.L6(function(z){M.contents.scrollTop=z}),this.boundExitBrowsingMode=function(){M.exitBrowsingMode(!1)})};
_.P.detached=function(){if(_.U("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.P.dataChanged=function(){var M=this;_.U("synced_panel_scrolling_controller")?_.C4(this,function(){if(M.scrollController){var z;(z=M.scrollController)==null||z.exitBrowsingMode(!1);var J,R,D;(R=M.scrollController)==null||rGq(R,(D=(J=M.data)==null?void 0:J.syncModelEntityKey)!=null?D:"default-macro-markers-list-renderer-entity-key");var N,Z,B;(B=M.scrollController)==null||MUE(B,{percentOffset:(N=M.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(Z=M.data)==null?void 0:Z.floatingPillType})}else{var O,
X,l,e;M.scrollController=new LWq(M.contents,M.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(O=M.data)==null?void 0:O.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(X=M.data)==null?void 0:X.selectedItemAlignmentPercentOffset,floatingPillType:(l=M.data)==null?void 0:l.floatingPillType},function(Q){M.renderLazyListItems(Q)})}M.scrollController.panelContentVisibleChanged(!!M.panelContentVisible)}):this.exitBrowsingMode()};
_.P.computeButtonShape=function(){var M=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){M.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.P.computeSyncEnabled=function(M){return!(M==null||!M.syncButtonLabel)};
_.P.renderLazyListItems=function(M){for(var z=this.contents.children,J=0,R=0;R<z.length;R++){var D=void 0;(D=z[R].ytLazyListBehavior)==null||D.fillRemainingListItems();var N=void 0,Z=void 0;D=_.G((N=this.data)==null?void 0:(Z=N.contents)==null?void 0:Z[R],_.gBg);Z=N=void 0;if((N=D)==null?0:(Z=N.contents)==null?0:Z.length)J+=D.contents.length;if(J>=M)break}};
_.P.getItemByIndex=function(M){this.renderLazyListItems(M);var z=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(z.length>M)return z[M]};
_.P.setActiveItem=function(M){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);M.active!==void 0&&(M.active=!0);this.currentActiveItem=M};
_.P.handleSetActivePanelItemAction=function(M){if((M=_.G(M,CJr))&&this.panelTargetId===M.panelTargetId){M=M.itemIndex;if(_.U("synced_panel_scrolling_controller")){var z,J;var R=(J=(z=this.data)==null?void 0:z.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key"}else{var D;R=(D=this.data)==null?void 0:D.syncModelEntityKey}if(R){var N;((N=this.syncEntity)==null?void 0:N.activeItemIndex)!==M&&this.ytdReduxBehavior.dispatch(_.pf("markersEngagementPanelSyncEntity",R,{key:R,activeItemIndex:M}))}else this.updatePanelActiveItem(M)}};
_.P.updatePanelActiveItem=function(M){var z=this.getItemByIndex(M);z?(this.setActiveItem(z),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(z)):_.yA(new _.xN("Could not find ytd-macro-markers-list-renderer sync child to set active.",M,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.P.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.contents.scrollTop!==M&&this.JSC$22631_scrollAnimation.start(this.contents.scrollTop,M,300)};
_.P.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===M)return 0;M=_.Hj(M).y+this.contents.scrollTop-_.Hj(this.contents).y-this.getStickyHeaderHeight(M);return Math.min(M,this.contents.scrollHeight-this.contents.offsetHeight)};
_.P.getStickyHeaderHeight=function(M){if(M.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var z,J,R;return(R=(z=M.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(J=z.header)==null?void 0:J.offsetHeight)!=null?R:0}return 0};
_.P.onScroll=function(){_.U("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22631_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.P.enterBrowsingMode=function(){var M=this;return _.k(function(z){if(z.nextAddress==1){if(M.browsingMode)return z.return();M.browsingMode=!0;return z.yield(_.R9().getPlayerPromise(),2)}M.player=z.yieldResult;M.player.addEventListener("SEEK_TO",M.boundExitBrowsingMode);_.UI(z)})};
_.P.exitBrowsingMode=function(M){this.browsingMode&&(this.browsingMode=!1,(M===void 0||M)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.P.onSyncClick=function(){if(_.U("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.exitBrowsingMode()}else this.exitBrowsingMode()};
_.P.panelContentVisibleChanged=function(){if(_.U("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
rn.prototype.panelContentVisibleChanged=rn.prototype.panelContentVisibleChanged;rn.prototype.dataChanged=rn.prototype.dataChanged;rn.prototype.activeItemChanged=rn.prototype.activeItemChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],rn.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],rn.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rn.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],rn.prototype,"useCustomColors",void 0);_.u([_.Y({computed:"computeSyncEnabled(data)"}),_.W("design:type",Boolean)],rn.prototype,"syncEnabled",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],rn.prototype,"panelTargetId",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],rn.prototype,"panelContentVisible",void 0);_.u([_.Qc("#contents"),_.W("design:type",HTMLElement)],rn.prototype,"contents",void 0);_.u([_.Qc("#sync-container"),_.W("design:type",HTMLElement)],rn.prototype,"syncContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rn.prototype,"browsingMode",void 0);
_.u([_.Y({selectorArgs:["data.syncModelEntityKey"],selector:_.gao}),_.W("design:type",Object)],rn.prototype,"syncEntity",void 0);_.u([_.la("syncEntity.activeItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rn.prototype,"activeItemChanged",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rn.prototype,"dataChanged",null);
_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rn.prototype,"panelContentVisibleChanged",null);_.u([_.c({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],rn);
_.d(rn,"ytd-macro-markers-list-renderer",function(){if(VXq!==void 0)return VXq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return VXq=M},{mode:1});var zD4;var Mr=function(){return _.g.apply(this,arguments)||this};
_.w(Mr,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Mr.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Mr.prototype,"data",void 0);_.u([_.c({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Mr);
_.d(Mr,"ytd-error-corrections-section-item-renderer",function(){if(zD4!==void 0)return zD4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return zD4=M},{mode:1});var JAw;var z6=function(){return _.g.apply(this,arguments)||this};
_.w(z6,_.g);z6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],z6.prototype,"data",void 0);_.u([_.c({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],z6);
_.d(z6,"ytd-error-corrections-section-renderer",function(){if(JAw!==void 0)return JAw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return JAw=M},{mode:1});var RDZ;var JZ=function(){return _.g.apply(this,arguments)||this};
_.w(JZ,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],JZ.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JZ.prototype,"data",void 0);_.u([_.c({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],JZ);
_.d(JZ,"ytd-topic-link-renderer",function(){if(RDZ!==void 0)return RDZ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return RDZ=M},{mode:1});var DxA;var Ri=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("kevlar_modern_sd_v2");M.modernLockupV2=_.U("modernize_structured_description_playlist_lockups_v2");M.modernTypography=_.U("web_modern_typography");return M};
_.w(Ri,_.g);Ri.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ri.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ri.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ri.prototype,"modernLockupV2",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ri.prototype,"modernTypography",void 0);_.u([_.c({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Ri);
_.d(Ri,"ytd-video-description-course-section-renderer",function(){if(DxA!==void 0)return DxA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return DxA=M},{mode:1});var Nur;var Dw=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("kevlar_modern_sd_v2");M.modernTypography=_.U("web_modern_typography");return M};
_.w(Dw,_.g);Dw.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Dw.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Dw.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Dw.prototype,"modernTypography",void 0);
_.u([_.c({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Dw);
_.d(Dw,"ytd-video-description-files-section-renderer",function(){if(Nur!==void 0)return Nur;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Nur=M},{mode:1});var Pvi;var Nr=function(){return _.g.apply(this,arguments)||this};
_.w(Nr,_.g);Nr.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Nr.prototype,"data",void 0);_.u([_.c({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Nr);
_.d(Nr,"ytd-video-description-gaming-section-renderer",function(){if(Pvi!==void 0)return Pvi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Pvi=M},{mode:1});var Sai;var Pq=function(){var M=_.g.apply(this,arguments)||this;M.isExpanded=!1;return M};
_.w(Pq,_.g);Pq.prototype.computeHasDefaultMetadataEndpoint=function(M){var z;M=M==null?void 0:(z=M.defaultMetadata)==null?void 0:z.runs;return!(!M||M.length!==1||!M[0].navigationEndpoint)};
Pq.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.rX.Object.defineProperties(Pq.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Pq.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Pq.prototype,"isExpanded",void 0);_.u([_.Y({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Pq.prototype,"hasDefaultMetadataEndpoint",void 0);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Pq.prototype,"isExpandable",null);_.u([_.F("data","isExpandable","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Pq.prototype,"showExpandedMetadata",null);_.u([_.c({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Pq);
_.d(Pq,"ytd-info-row-renderer",function(){if(Sai!==void 0)return Sai;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Sai=M},{mode:1});var ZOd;var SQ=function(){var M=_.g.apply(this,arguments)||this;M.currentIndex=0;M.supportComponentResize=!0;M.modern=_.U("kevlar_modern_sd_v2");M.JSC$22657_lastScrollContainerWidth=NaN;return M};
_.w(SQ,_.g);_.P=SQ.prototype;
_.P.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.P.getItemsPath=function(){return"videoLockups"};
_.P.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.P.onIronResize=function(){this.updateVideoLockupStyles()};
_.P.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.P.updateVideoLockupStyles=function(){var M;this.JSC$22657_scrollContainer!==void 0&&(M=this.videoLockups)!=null&&M.length&&(M=this.JSC$22657_scrollContainer.clientWidth,M!==this.JSC$22657_lastScrollContainerWidth&&(this.JSC$22657_lastScrollContainerWidth=M,_.Tp(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(M*.8,415)+"px"}),_.Pv(this.hostElement,"iron-resize")))};
_.rX.Object.defineProperties(SQ.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var M=[],z;if((z=this.data)==null||!z.carouselLockups)return M;z=_.S(this.data.carouselLockups);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;((R=_.G(J,ptq))==null?0:R.videoLockup)&&M.push(_.G(J,ptq).videoLockup)}return M}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoLockups)==null||!M.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var M=[],z;if((z=this.data)==null||!z.carouselLockups)return M;var J;return(J=_.G(this.data.carouselLockups[this.scrollCount],ptq))==null?void 0:J.infoRows}}});
SQ.prototype.dataChanged=SQ.prototype.dataChanged;SQ.prototype.onIronResize=SQ.prototype.onIronResize;SQ.prototype.hiddenChanged=SQ.prototype.hiddenChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],SQ.prototype,"componentBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],SQ.prototype,"ytdHorizontalListBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],SQ.prototype,"inlineStructuredDescription",void 0);_.u([_.Y({value:2}),_.W("design:type",Number)],SQ.prototype,"initialCount",void 0);_.u([_.Y(),_.W("design:type",Object)],SQ.prototype,"currentIndex",void 0);
_.u([_.Y(),_.W("design:type",Number)],SQ.prototype,"scrollCount",void 0);_.u([_.Y(),_.W("design:type",Object)],SQ.prototype,"supportComponentResize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],SQ.prototype,"contentHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],SQ.prototype,"modern",void 0);_.u([_.Qc("#scroll-container"),_.W("design:type",HTMLDivElement)],SQ.prototype,"JSC$22657_scrollContainer",void 0);
_.u([_.la("contentHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SQ.prototype,"hiddenChanged",null);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],SQ.prototype,"videoLockups",null);_.u([_.F("videoLockups"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SQ.prototype,"hasVideoLockups",null);
_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SQ.prototype,"onIronResize",null);_.u([_.F("data","scrollCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],SQ.prototype,"infoRows",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SQ.prototype,"dataChanged",null);_.u([_.c({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],SQ);
_.d(SQ,"ytd-video-description-music-section-renderer",function(){if(ZOd!==void 0)return ZOd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return ZOd=M},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var k$A;var Zw=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("kevlar_modern_sd_v2");M.modernTypography=_.U("web_modern_typography");return M};
_.w(Zw,_.g);Zw.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.u([_.Y({}),_.W("design:type",Object)],Zw.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zw.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zw.prototype,"modernTypography",void 0);
_.u([_.c({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Zw);
_.d(Zw,"ytd-video-description-transcript-section-renderer",function(){if(k$A!==void 0)return k$A;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return k$A=M},{mode:1});var BuZ;_.N7(_.Mf(function(M){var z=_.U3(_.xZH,function(){return M.data().firstProviderLinkStatusEntityKey}),J=_.U3(_.xZH,function(){return M.data().secondProviderLinkStatusEntityKey}),R=function(){var D,N;
return((D=z())==null?void 0:D.linked)||((N=J())==null?void 0:N.linked)};
return _.T("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.T(_.m3,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return M.data().sectionTitle}}),_.T(_.m3,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return R()?M.data().connectedMessage:M.data().notConnectedMessage}}),_.T(_.I,{cond:R,
then:function(){return _.T(_.t_,{data:function(){return M.data().connectedButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.T(_.I,{cond:function(){return!R()},
then:function(){return _.T(_.t_,{data:function(){return M.data().notConnectedButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Sj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;return _.T("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.T("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.T(_.m3,{text:function(){return z().sectionTitle}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.T(_.m3,{text:function(){return z().bodyHeader}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.T(_.m3,{text:function(){return z().bodyText}})),_.T(_.I,
{cond:function(){return z().attributionText},
then:function(){return _.T("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.T(_.m3,{text:function(){return z().attributionText}}))}}))},"Tj"),"how-this-was-made-section-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){return _.T("yt-video-description-youchat-section-view-model",{class:_.Qe("ytVideoDescriptionYouchatSectionViewModelHost")},_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.T(_.m3,{text:function(){return M.data().sectionTitle}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.T(_.m3,{text:function(){return M.data().subHeaderText}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.T(_.lT,{data:function(){return _.G(M.data().primaryButton,
_.s3)}})))},"Uj"),"yt-video-description-youchat-section-view-model",{props:{data:_.zn}});var kg=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return M};
_.w(kg,_.g);_.P=kg.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.P.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.P.dataChanged=function(){var M,z;this.hasDescriptionOnly=!(((M=this.data)==null?void 0:(z=M.items)==null?void 0:z.length)!==1||!_.G(this.data.items[0],cF))};
_.P.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.P.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.P.autoFocusDescription=function(){var M;((M=_.JF().resolve(_.zw(_.OQ)))==null?0:M.isKeyBoardInUse())&&this.description&&_.Ao(this.description)};
_.P.resize=function(){if(_.U("kevlar_disable_sd_resize"))this.JSC$22665_cardList&&_.Pv(this.JSC$22665_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Pv(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Pv(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.P.scrollToSection=function(M){if(M=this.getSectionElement(M))_.S9(this.hostElement,"yt-scroll-to-watch-element",[M]),M.focus()};
_.P.getSectionElement=function(M){switch(M){case "infocards-item-section":var z;return(z=this.infocardsSection)!=null?z:null;case "transcript-item-section":var J;return(J=this.transcriptSection)!=null?J:null;case "how-this-was-made-section-item-section":var R;return(R=this.howThisWasMadeSection)!=null?R:null;case "files-item-section":var D;return(D=this.filesSection)!=null?D:null;default:return null}};
_.P.handleSetActiveItemAction=function(M){var z=_.G(M,CJr),J=z&&(z==null?void 0:z.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22665_cardList;if(z&&J){M=this.currentActiveChapter;var R=this.currentActiveProblem;z=J==null?void 0:J.getItemByIndex(z.itemIndex);var D=J=!0;z&&(z.active=!0,z.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(J=M!==z,D=!1,this.currentActiveChapter=z):(z==null?void 0:z.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(J=!1,D=R!==z,this.currentActiveProblem=z));M&&J&&(M.active=!1);R&&D&&(R.active=!1)}};
_.rX.Object.defineProperties(kg.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
kg.prototype.onYtExpanderMoreTapped=kg.prototype.onYtExpanderMoreTapped;kg.prototype.onHiddenChanged=kg.prototype.onHiddenChanged;kg.prototype.dataChanged=kg.prototype.dataChanged;kg.prototype.panelContentVisibleChanged=kg.prototype.panelContentVisibleChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],kg.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],kg.prototype,"ironResizableBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kg.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],kg.prototype,"panelContentVisible",void 0);_.u([_.Y(),_.W("design:type",Boolean)],kg.prototype,"hasDescriptionOnly",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kg.prototype,"inlineStructuredDescription",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kg.prototype,"hidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kg.prototype,"shortsPanel",void 0);_.u([_.Y(),_.W("design:type",Object)],kg.prototype,"videoSummary",void 0);_.u([_.Y(),_.W("design:type",Object)],kg.prototype,"merchShelf",void 0);
_.u([_.F("videoSummary"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kg.prototype,"showVideoSummary",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kg.prototype,"engagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kg.prototype,"watchWhileSdp",void 0);_.u([_.Qc("ytd-expandable-video-description-body-renderer"),_.W("design:type",Object)],kg.prototype,"description",void 0);
_.u([_.Qc("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],kg.prototype,"JSC$22665_cardList",void 0);_.u([_.Qc("ytd-horizontal-card-list-renderer[center-items]"),_.W("design:type",Object)],kg.prototype,"problemWalkthroughCardList",void 0);_.u([_.Qc("ytd-shelf-renderer"),_.W("design:type",Object)],kg.prototype,"shelfSection",void 0);_.u([_.Qc("ytd-video-description-music-section-renderer"),_.W("design:type",Object)],kg.prototype,"musicMetadataSection",void 0);
_.u([_.Qc("ytd-video-description-infocards-section-renderer"),_.W("design:type",Object)],kg.prototype,"infocardsSection",void 0);_.u([_.Qc("ytd-video-description-transcript-section-renderer"),_.W("design:type",Object)],kg.prototype,"transcriptSection",void 0);_.u([_.Qc("how-this-was-made-section-view-model"),_.W("design:type",Object)],kg.prototype,"howThisWasMadeSection",void 0);_.u([_.Qc("ytd-video-description-files-section-renderer"),_.W("design:type",Object)],kg.prototype,"filesSection",void 0);
_.u([_.la("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kg.prototype,"panelContentVisibleChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kg.prototype,"dataChanged",null);_.u([_.la("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kg.prototype,"onHiddenChanged",null);
_.u([_.Xw("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kg.prototype,"onYtExpanderMoreTapped",null);_.u([_.c({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],kg);
_.d(kg,"ytd-structured-description-content-renderer",function(){if(BuZ!==void 0)return BuZ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BuZ=M},{mode:2});var OO3;var Tud;var Bq=function(){return _.g.apply(this,arguments)||this};
_.w(Bq,_.g);Bq.prototype.computeAriaLabel=function(M){var z,J;return(M==null?void 0:(z=M.accessibility)==null?void 0:(J=z.accessibilityData)==null?void 0:J.label)||_.e9("LOADING",void 0,"Loading")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Bq.prototype,"data",void 0);_.u([_.Y({computed:"computeAriaLabel(data)"}),_.W("design:type",String)],Bq.prototype,"ariaLabel",void 0);_.u([_.cU({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Bq);
_.d(Bq,"yt-content-loading-renderer",function(){if(Tud===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;OO3===void 0&&(OO3=document.createElement("template"));var R=OO3;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Tud=M}M=Tud;return M},{mode:_.B5("kevlar_poly_si_batch_j043")?1:2});_.N7(_.Mf(function(M){var z=_.S(_.kE(!1,void 0,"QkPiwb")),J=z.next().value,R=z.next().value;z=_.S(_.kE(!1,void 0,"AFECB"));var D=z.next().value,N=z.next().value;_.mF(function(){var O=_.G(M.data().collaboratePlaylistCollaborationSetting,ls3);O&&R(O.switchedOnByDefault);var X=_.G(M.data().allowNewCollaboratorsPlaylistCollaborationSetting,ls3);X&&N(X.switchedOnByDefault);if(!O&&!X||!O&&M.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")R(!0),N(!0)});
var Z=function(O){R(O);N(O);var X=M.data().playlistCollaborationEntityKey||"";var l=_.ia().getState();(l=_.Is(l.entities,"playlistCollaborationEntity",X))&&(l==null?void 0:l.isCollaborative)===O||_.ia().dispatch(_.pf("playlistCollaborationEntity",X,Object.assign({},l,{isCollaborative:O})))},B=function(O){N(O)};
return _.T("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.t_,{data:function(){return M.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.T(_.cIV,{data:O.data,
onSwitch:Z})}})),_.T(_.I,{cond:J,
then:function(){return _.T(_.MH,null,_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.t_,{data:function(){return M.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.T(_.cIV,{data:O.data,
onSwitch:B,overrideDisabled:!1})}})),_.T(_.I,{cond:D,
then:function(){return _.T("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.T(_.t_,{data:function(){return M.data().copyLinkButton}},{buttonViewModel:_.lT}))}}),_.T("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.T(_.t_,{data:function(){return M.data().playlistCollaborators}},{contentListItemViewModel:_.xMm})))}}))},"Vj"),"playlist-collaboration-view-model",{props:{data:_.zn}});var IoA=_.Mf(function(M){var z=M.data;var J=M.customCommandResolver;return _.T(_.MH,null,_.T("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.T(_.t_,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(R){return _.T(_.QKJ,{data:R.data,
customCommandResolver:J})}})),_.T("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.T(_.I,{cond:function(){return z().headline},
then:function(R){return _.T(_.m3,{text:R,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.T("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.T(_.t_,{data:function(){return z().adBadge}},{adBadgeViewModel:function(R){return _.T(_.I5,{data:R.data,
hasDot:function(){return z().primaryDetailsLine!==void 0},
customCommandResolver:J,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.T(_.t_,{data:function(){return z().primaryDetailsLine}},{adDetailsLineViewModel:function(R){return _.T(_.o5,{data:R.data,
customCommandResolver:J,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Wj"),ori=_.Mf(function(M){var z=M.data;
var J=M.customCommandResolver;return _.T("ad-avatar-lockup-view-model",{class:function(){var R;return((R=z().interaction)==null?0:R.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.zL(_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC}),_.E3(function(){return z().interaction},J)),
"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T(_.tg,null,_.T(_.w3,{when:function(){return z().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.T(IoA,{data:z,
customCommandResolver:J})}),_.T(_.xy,null,function(){return null})))},"Xj");_.N7(_.Mf(function(M){var z=M.data;var J=M.panelContentVisibility;M=_.J1({visibilityCallback:function(N){var Z,B=(Z=z().interaction)==null?void 0:Z.onFirstVisible;N&&B&&_.aE(B)},
showOption:_.PC});var R=_.E3(function(){return z().interaction},Tgr);
_.mt(function(){var N,Z;if(Z=_.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;Z=(B=Z())==null?void 0:B.onLayoutVisibleCallback}else Z=null;(N=Z)==null||N()});
var D=function(){return J()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.T("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.zL(M,R)},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.T(_.I,{cond:_.IYe("(min-width: "+((0,_.ig)()+_.Kt)+"px) or (max-width: 600px)"),then:function(){return _.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(N){return _.T(_.vo,{data:N.data,
targetHeight:80,customCommandResolver:Tgr})}})}})),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.T(_.t_,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.T(ori,{data:N.data,
customCommandResolver:Tgr})}})),_.T(_.I,{cond:D,
then:function(){return _.T(_.t_,{data:function(){return z().adButton}},{adButtonViewModel:function(N){return _.T(_.Z7,{data:N.data,
customCommandResolver:Tgr})}})},
else:function(){return _.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:_.lT})}}),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.T(_.t_,{data:function(){var N=_.G(z().toggleButton,_.nf);
return{toggleButtonViewModel:Object.assign({},N,{isTogglingDisabled:!0,isToggled:D()})}}},{toggleButtonViewModel:_.cm})))))},"Yj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.zn,
panelContentVisibility:_.zn}});_.N7(_.Mf(function(M){var z=function(){return _.G(M.data().inputComposerViewModel,ew3)},J=function(){var x;
return((x=z())==null?void 0:x.youchatPendingResponseEntityKey)||""},R=_.U3(_.alw,J),D=function(){var x;
return!((x=R())==null||!x.isPendingResponse)},N=_.S(_.kE(!0,void 0,"DR0q1d")),Z=N.next().value,B=N.next().value,O=function(){return z().sectionTargetId||"youchat_messages_section"};
N=_.iW("yt-chat-input-view-model");var X=_.AL("textarea"),l=_.U3(z2i,"chat_input_view_model_state"),e=JSi(),Q=function(){var x;return!((x=l())==null||!x.value)};
_.mF(function(){var x;if(!Q()&&((x=z())==null?0:x.welcomeFeatureContinuation)){var m;((m=z())==null?0:m.setPendingResponseOnWelcome)&&_.VLw(J())(!0);x={continuationCommand:{token:z().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var y;m=String(Math.floor(((y=_.I9())==null?void 0:y.getCurrentTime())||0)*1E3);y={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:m}};_.u5(x,{form:{formData:y}});e(!0)}var H=O(),q;(q=_.JF().resolve(_.zw(_.g_)))==null||
q.addEventListener("yt-navigate-start",function(){_.G_.remove(H);e(!1)},{once:!0})});
var v=function(){var x=X.value.value;X.value.value="";IVw(X.value);var m,y=((m=z())==null?void 0:m.enableGradientColorBg)||!1;m=opq(O(),x,y);_.u5(m);var H=_.VLw(J()),q;_.aE(((q=z())==null?void 0:q.onSubmitCommand)||{});H(!0);var b;q=String(Math.floor(((b=_.I9())==null?void 0:b.getCurrentTime())||0)*1E3);var V;b={continuationCommand:{token:(V=z())==null?void 0:V.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};x={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:x,
playerOffsetMs:q}};_.u5(b,{form:{formData:x},commandController:{onSuccess:function(){H(!1)},
onServerError:function(){var E=O();_.u5({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:E}}]}}});H(!1)}}})};
return _.T("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:N},_.T("div",{class:"chatInputViewModelChatInputWrapper"},_.T("form",{class:"chatInputViewModelChatInputForm"},_.T("textarea",{class:"chatInputViewModelChatInput",el:X,"on:keydown":_.ol(function(x){var m=D()||!1;IVw(X.value);m||x.key!=="Enter"||x.shiftKey||(x.preventDefault(),v());return!1}),
"on:keyup":_.ol(function(){B(X.value.value.length===0);return!1}),
placeholder:function(){var x,m;var y=_.G((m=z())==null?void 0:m.inputFormField,L$q);return y==null?void 0:(x=y.contentProperties)==null?void 0:x.placeholderText},
rows:1}),_.T(_.lT,{data:function(){return _.G(M.data().sendButton,_.s3)},
onClick:function(x){x.preventDefault();v();B(X.value.value.length===0)},
buttonOverrides:function(){return{disabled:Z()||D()}}})),_.T(_.m3,{className:"chatInputViewModelChatDisclaimer",
text:function(){var x;return(x=_.G(M.data().disclaimer,_.sRa))==null?void 0:x.text}})))},"Zj"),"yt-chat-input-view-model",{props:{data:_.zn}});var Xjs=["engagement-panel-clip-create","engagement-panel-clip-view"],loZ=0,Ol=function(){var M=_.g.apply(this,arguments)||this;var z;M.headerData=(z=M.data)==null?void 0:z.header;M.darkerPanels=_.U("web_watch_darker_panels");M.matchContentTheme=_.U("web_watch_panel_content_match_theme");M.disableAutoFill=!1;M.isFullscreen=!1;M.isTheaterMode=!1;M.modernPanels=_.U("kevlar_watch_modern_panels");M.liveChatReplyPanel=!1;M.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");M.disableBackdropFilter=
_.U("web_disable_backdrop_filter");M.trackEngagementPanelVisibility=_.U("web_watch_track_engagement_panel_visibility");M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return M};
_.w(Ol,_.g);_.P=Ol.prototype;
_.P.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(M){var z;return(M==null?void 0:(z=M.webComponentHint)==null?void 0:z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.P.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var M;if((M=this.hostElement.parentElement)==null?0:M.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.P.detached=function(){this.updateTheaterDisablement()};
_.P.showPanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.no.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.P.maybeScrollToItemSection=function(M){var z=this,J,R=M==null?void 0:(J=M.sectionListEngagementPanelExtras)==null?void 0:J.scrollToItemSectionIdentifier;R&&_.no.addJob(function(){var D;(D=z.sectionListRendererElement)==null||D.scrollToItemSection(R)},8)};
_.P.hidePanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.no.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.P.updatePanel=function(M,z,J,R){var D=this;if((M=M==null?void 0:M.engagementPanelSectionListRenderer)||R){if(M){R=M.header;var N=M.content,Z=M.footer;(M=M.targetId)&&this.set("data.targetId",M);R&&this.set("data.header",R);N&&this.set("data.content",N);Z&&this.set("data.footer",Z)}else R&&(M=R.content,N=R.secondaryHeaderContent,(R=R.targetId)&&this.set("data.targetId",R),M&&this.set("data.content",M),N&&(this.secondaryHeaderData=N));this.updateChildVisibilityProperties();if(z){var B;_.U("kevlar_update_panel_focus_scroll_killswitch")||
(B={preventScroll:!0});this.focus(B)}_.C4(this,function(){_.Pv(D.hostElement,"yt-refit");D.maybeScrollToItemSection(J)})}};
_.P.computeHeaderData=function(){var M,z=(0,_.gu.unsafeClone)((M=this.data)==null?void 0:M.header);if(z){M=new _.R_(Object.keys(z)[0]);var J=_.G(z,M),R=_.G(this.secondaryHeaderData,M);R&&_.hh(z,M,Object.assign({},R,J))}return z};
_.P.getReloadContinuation=function(){var M,z,J,R=_.S(((M=this.data)==null?void 0:(z=M.content)==null?void 0:(J=z.sectionListRenderer)==null?void 0:J.continuations)||[]);for(M=R.next();!M.done;M=R.next())if(M=M.value,M.reloadContinuationData)return M.reloadContinuationData.continuation};
_.P.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var M;((M=this.data)==null?0:M.targetId)&&(M=this.contentElement.firstElementChild)&&M.setAttribute("panel-target-id",this.data.targetId)};
_.P.forwardPopupClosedToFlowRootRenderer=function(){var M=_.SN(this.hostElement).querySelector("ytd-flow-root-renderer");if(M)M.onPopupClosed()};
_.P.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var M;if(!Xjs.includes((M=this.theaterDisablementPanelIdentifier)!=null?M:""))if(M=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode,M=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||M,_.U("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||M){var z;this.visibility=(z=this.data)==null?void 0:z.visibility;var J;this.trackEngagementPanelVisibility&&((J=this.data)==null?void 0:J.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var R,D,N,Z;this.contentEmpty=!!(((R=this.data)==null?0:(D=R.content)==null?0:D.structuredDescriptionContentRenderer)&&Object.keys((N=this.data)==null?void 0:(Z=N.content)==null?void 0:
Z.structuredDescriptionContentRenderer).length===0);(z=_.JF().resolve(_.nx))&&z.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.P.isTheaterModeChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.isFullscreenChanged=function(){_.U("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.focus=function(M){if(this.header)this.header.focus(M);else{var z;(z=_.SN(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||z.focus(M)}};
_.P.visibilityChanged=function(){if(!_.U("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var M=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=R||!this.lastVisibility,N,Z,B,O=((N=this.data)==null?void 0:(Z=N.identifier)==null?void 0:
Z.tag)||((B=this.data)==null?void 0:B.panelIdentifier);if(M&&D){var X;((X=this.data)==null?0:X.onShowCommands)&&_.Bv(this.hostElement,this.data.onShowCommands,this.hostElement);O&&_.rA().dispatch(_.Nv({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:O}}))}else if(z&&J){var l;((l=this.data)==null?0:l.onHideCommands)&&_.Bv(this.hostElement,this.data.onHideCommands,this.hostElement);O&&_.rA().dispatch(_.Nv({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:O}}))}M&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*loZ++));_.U("kevlar_watch_focus_on_engagement_panels")&&M&&R&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.P.notifyVisibilityChanged=function(M){var z;_.ZL(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,M,(z=this.data)==null?void 0:z.targetId])};
_.P.updateTheaterDisablement=function(){if(!_.U("kevlar_watch_theater_disablement_killswitch")){var M=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Xjs.includes(M)&&!_.U("watch_next_grid_ignore_disallowed_panels")){var z=_.ye(_.rA().getState()),J=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";M!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():J?(this.originalTheaterState===void 0&&(this.originalTheaterState=z,this.theaterDisablementPanelIdentifier=
M),z&&_.S9(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.P.clearTheaterDisablement=function(){_.S9(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.P.updateChildVisibilityProperties=function(){this.hostElement||_.U("kevlar_panel_property_init_killswitch")||this._enableProperties();var M=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=M);var z,J=(z=this.headerElement)==null?void 0:z.firstElementChild;if(J&&!this.adHeaderImageLockupViewModel){z=M==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";J.collapsed=z;J=_.SN(J).querySelector("#visibility-button");if(!J)return;(J=J.firstElementChild)&&
J.polymerController.is==="ytd-toggle-button-renderer"&&J.polymerController.data.isToggled!==z&&J.polymerController.set("data.isToggled",z)}var R;if(z=(R=this.contentElement)==null?void 0:R.firstElementChild)if(M&&M!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")z.removeAttribute("panel-content-visible");else{z.setAttribute("panel-content-visible","");var D;(D=z.markDirty)==null||D.call(z)}};
_.P.onYtChangeEngagementPanelVisibilityAction=function(M){var z=this,J,R=(J=this.data)==null?void 0:J.targetId,D,N,Z;J=((D=this.data)==null?void 0:(N=D.identifier)==null?void 0:N.tag)||((Z=this.data)==null?void 0:Z.panelIdentifier);var B=_.G(M,_.gs$),O;M=R&&(B==null?void 0:B.targetId)===R||J&&(B==null?void 0:(O=B.panelIdentifier)==null?void 0:O.tag)===J;this.dialog&&M&&(B==null?void 0:B.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R==="engagement-panel-comments-section"?_.S9(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.S9(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",J]));!_.U("kevlar_use_engagement_panel_management_component")&&M&&(R=B.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!R?_.no.addJob(function(){z.visibility=B.visibility},2,this.hideDelayMs):this.visibility=B.visibility,B.visibility&&this.notifyVisibilityChanged(B.visibility))};
_.P.onYtScrollToEngagementPanelCommand=function(M){var z,J=(z=this.data)==null?void 0:z.targetId,R,D,N;z=((R=this.data)==null?void 0:(D=R.identifier)==null?void 0:D.tag)||((N=this.data)==null?void 0:N.panelIdentifier);M=_.G(M,_.Wiu);var Z;(J&&(M==null?void 0:M.targetId)===J||z&&(M==null?void 0:(Z=M.panelIdentifier)==null?void 0:Z.tag)===z)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.S9(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.P.attachVEs=function(M){var z,J;(M==null?0:(z=M.content)==null?0:(J=z.productListRenderer)==null?0:J.trackingParams)&&_.Gm().graftServerVe(M.content.productListRenderer.trackingParams);var R,D;(M==null?0:(R=M.content)==null?0:(D=R.transcriptRenderer)==null?0:D.trackingParams)&&_.Gm().graftServerVe(M.content.transcriptRenderer.trackingParams)};
_.P.onYtUpdateEngagementPanelAction=function(M){var z,J=(z=this.data)==null?void 0:z.targetId;M=_.G(M,rSq);J&&(M==null?void 0:M.targetId)===J&&(this.updatePanel({engagementPanelSectionListRenderer:{header:M==null?void 0:M.header,content:M==null?void 0:M.content}},!1),this.attachVEs(M))};
_.P.onYtShowEngagementPanelScrimAction=function(M){var z,J=(z=this.data)==null?void 0:z.targetId;M=_.G(M,bvZ);J&&(M==null?void 0:M.engagementPanelTargetId)===J&&(this.scrimmed=!0)};
_.P.onYtHideEngagementPanelScrimAction=function(M){var z,J=(z=this.data)==null?void 0:z.targetId;M=_.G(M,ivd);J&&(M==null?void 0:M.engagementPanelTargetId)===J&&(this.scrimmed=!1)};
_.P.getIdentifier=function(){var M,z,J;return((M=this.data)==null?void 0:M.panelIdentifier)||((z=this.data)==null?void 0:(J=z.identifier)==null?void 0:J.tag)};
_.P.getSurface=function(){var M,z;return(M=this.data)==null?void 0:(z=M.identifier)==null?void 0:z.surface};
_.rX.Object.defineProperties(Ol.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var M=this.getIdentifier();return M==="engagement-panel-youchat"||M==="PAyouchat"}}});
Ol.prototype.visibilityChanged=Ol.prototype.visibilityChanged;Ol.prototype.isFullscreenChanged=Ol.prototype.isFullscreenChanged;Ol.prototype.isTheaterModeChanged=Ol.prototype.isTheaterModeChanged;Ol.prototype.dataChanged=Ol.prototype.dataChanged;Ol.prototype.forwardPopupClosedToFlowRootRenderer=Ol.prototype.forwardPopupClosedToFlowRootRenderer;Ol.prototype.onYtRendererstamperFinished=Ol.prototype.onYtRendererstamperFinished;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Ol.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Ol.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Ol.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"data",void 0);
_.u([_.Y({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.W("design:type",Object)],Ol.prototype,"headerData",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"secondaryHeaderData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"visibility",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"contentEmpty",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"scrimmed",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"dialog",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"dropdown",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"darkerPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"matchContentTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"disableAutoFill",void 0);
_.u([_.Y({reflectToAttribute:!0,value:_.U("optimal_reading_width_comments_ep")}),_.W("design:type",Boolean)],Ol.prototype,"optimalReadingWidthComments",void 0);_.u([_.Y(),_.W("design:type",Number)],Ol.prototype,"hideDelayMs",void 0);_.u([_.Y({selector:_.HS,reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"isFullscreen",void 0);_.u([_.Y({selector:_.ye,reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"isTheaterMode",void 0);
_.u([_.Y(),_.W("design:type",Number)],Ol.prototype,"showDelayMs",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.targetId"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ol.prototype,"targetId",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ol.prototype,"webSize",null);_.u([_.Y(),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ol.prototype,"hideFooterBorder",null);
_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"isWatch",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"originalTheaterState",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"theaterDisablementPanelIdentifier",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"modernPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"isWatchWhilePanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"shortsPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"liveChatEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ol.prototype,"learningChatEngagementPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"liveChatReplyPanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"enableAnchoredPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ol.prototype,"disableBackdropFilter",void 0);_.u([_.Y(),_.W("design:type",Object)],Ol.prototype,"trackEngagementPanelVisibility",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],Ol.prototype,"headerElement",void 0);_.u([_.Qc("#header > *"),_.W("design:type",HTMLElement)],Ol.prototype,"header",void 0);
_.u([_.Qc("ytd-section-list-renderer"),_.W("design:type",Object)],Ol.prototype,"sectionListRendererElement",void 0);_.u([_.Qc("panel-ad-header-image-lockup-view-model"),_.W("design:type",HTMLElement)],Ol.prototype,"adHeaderImageLockupViewModel",void 0);_.u([_.Qc("#content"),_.W("design:type",HTMLElement)],Ol.prototype,"contentElement",void 0);
_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"onYtRendererstamperFinished",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.u([_.wH("data","isFullscreen","isTheaterMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"dataChanged",null);
_.u([_.la("isTheaterMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"isTheaterModeChanged",null);_.u([_.la("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"isFullscreenChanged",null);_.u([_.la("visibility"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ol.prototype,"visibilityChanged",null);
_.u([_.c({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Ol);
_.d(Ol,"ytd-engagement-panel-section-list-renderer",function(){if($yA!==void 0)return $yA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $yA=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var eDA;var T6=function(){var M=_.g.apply(this,arguments)||this;M.lastRenderedPanelIds=new Set;M.visiblePanels=[];M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.w(T6,_.g);_.P=T6.prototype;_.P.dataChanged=function(){if(this.data){for(var M=[],z=_.S(this.data),J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0,D=void 0,N=(R=J)==null?void 0:(D=R.engagementPanelSectionListRenderer)==null?void 0:D.visibility;D=R=void 0;((R=J)==null?0:(D=R.engagementPanelSectionListRenderer)==null?0:D.targetId)&&N!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.push(J)}this.visiblePanels=M}else this.visiblePanels=[]};
_.P.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.P.withoutVisiblePanelById=function(M){return this.visiblePanels.filter(function(z){var J;return((J=z.engagementPanelSectionListRenderer)==null?void 0:J.targetId)!==M})};
_.P.onYtChangeEngagementPanelVisibilityAction=function(M){var z=this,J=_.G(M,_.gs$);if(this.data&&(J==null?0:J.targetId)&&(J==null?0:J.visibility)){var R,D=(R=this.data.find(function(Z){var B;return((B=Z.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===J.targetId}))==null?void 0:R.engagementPanelSectionListRenderer;
if(D){var N=this.withoutVisiblePanelById(J.targetId);J.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(M=this.data.find(function(Z){var B;return((B=Z.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===J.targetId}))&&(N=[M].concat(_.Yj(N)));
this.hideDelayMs&&J.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&N.length===0?_.no.addJob(function(){D.visibility=J.visibility;z.visiblePanels=N},10,this.hideDelayMs):(D.visibility=J.visibility,this.visiblePanels=N);
_.ZL(this.hostElement,"yt-engagement-panels-visible-changed",[N])}}};
_.P.onRendererstamperFinished=function(){var M=new Set(this.visiblePanels.map(function(z){var J;return(J=z.engagementPanelSectionListRenderer)==null?void 0:J.targetId}));
this.handlePanelVisibilityChange(M,this.lastRenderedPanelIds);this.lastRenderedPanelIds=M};
_.P.handlePanelVisibilityChange=function(M,z){M=M===void 0?new Set:M;z=z===void 0?new Set:z;if(this.data)for(var J=_.S(this.data),R=J.next();!R.done;R=J.next()){R=R.value;var D=void 0,N=void 0,Z=(D=R)==null?void 0:(N=D.engagementPanelSectionListRenderer)==null?void 0:N.targetId;if(Z&&(D=z.has(Z),N=M.has(Z),Z=void 0,!D&&N?(N=D=void 0,Z=(D=R)==null?void 0:(N=D.engagementPanelSectionListRenderer)==null?void 0:N.onShowCommands):D&&!N&&(N=D=void 0,Z=(D=R)==null?void 0:(N=D.engagementPanelSectionListRenderer)==
null?void 0:N.onHideCommands),Z))for(R=_.S(Z),Z=R.next();!Z.done;Z=R.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
T6.prototype.onRendererstamperFinished=T6.prototype.onRendererstamperFinished;T6.prototype.dataChanged=T6.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],T6.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],T6.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],T6.prototype,"lastRenderedPanelIds",void 0);_.u([_.Y(),_.W("design:type",Number)],T6.prototype,"hideDelayMs",void 0);_.u([_.Y(),_.W("design:type",Array)],T6.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],T6.prototype,"visiblePanels",void 0);_.u([_.Y(),_.W("design:type",Boolean)],T6.prototype,"isWatchWhilePanel",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T6.prototype,"dataChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T6.prototype,"onRendererstamperFinished",null);_.u([_.c({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],T6);
_.d(T6,"ytd-watch-engagement-panels",function(){if(eDA!==void 0)return eDA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return eDA=M},{mode:1});var Q$q;var Ii=function(){return _.g.apply(this,arguments)||this};
_.w(Ii,_.g);Ii.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.C3(_.SN(this.hostElement).querySelector("#text"),_.Qkt(_.GtB,this.data.companionLegalText))};
Ii.prototype.computeAutoScrollEnabled=function(M,z){return M&&!z};
Ii.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Ii.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Ii.prototype.expandedChanged=Ii.prototype.expandedChanged;Ii.prototype.dataChanged=Ii.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.kHl),_.W("design:type",Object)],Ii.prototype,"ytdAutoScrollBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ii.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Ii.prototype,"expanded",void 0);
_.u([_.Y({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.W("design:type",Boolean)],Ii.prototype,"autoScrollEnabled",void 0);_.u([_.Y(),_.W("design:type",String)],Ii.prototype,"expanderIcon",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ii.prototype,"dataChanged",null);
_.u([_.la("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ii.prototype,"expandedChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Ii);
_.d(Ii,"ytd-companion-legal-text-renderer",function(){if(Q$q!==void 0)return Q$q;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Q$q=M},{mode:1});var UxZ;var oi=function(){var M=_.g.apply(this,arguments)||this;M.buttonUpdate=_.U("web_modern_buttons");M.kevlarWatchGrid=_.U("kevlar_watch_grid");M.centerAlignDescription=_.U("action_companion_center_align_description");M.truncateDomain=_.U("action_companion_truncate_domain");return M};
_.w(oi,_.g);_.P=oi.prototype;_.P.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.P.getOnLayoutVisibleCallback=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.P.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",oi.JSC$22711_DEFAULT_AD_BADGE_RENDERER);var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.P.getButtonRenderer=function(M){return M.actionButton&&_.G(M.actionButton,_.aR)?(delete _.G(M.actionButton,_.aR).navigationEndpoint,_.G(M.actionButton,_.aR)):{}};
_.P.onClick=function(M){var z=this;if((!_.U("web_modern_buttons")||!_.bP(_.CX(M),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){M=_.J_();var J=this.getLayoutId();M&&J&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.sz(R)).executeCommand(z.data.navigationEndpoint,J)}):_.U("kevlar_companion_resolve_command_killswitch")?_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.S9(this.hostElement,"yt-companion-ad-clicked",["action-companion",J])}};
_.rX.Object.defineProperties(oi.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?0:(z=M.detailsLine)==null?0:(J=z.adRating)==null?0:J.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return((M=this.data)==null?0:(z=M.detailsLine)==null?0:(J=z.adRating)==null?0:(R=J.ratingIcon)==null?0:R.iconType)?_.oE(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return((M=this.data)==null?0:(z=M.detailsLine)==null?0:(J=z.texts)==null?0:(R=J[0])==null?0:R.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?0:(z=M.description)==null?0:z.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var M=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return M?M.indexOf("/default_banner")!==-1:!0}}});
oi.prototype.onClick=oi.prototype.onClick;oi.prototype.dataChanged=oi.prototype.dataChanged;oi.JSC$22711_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e9("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oi.prototype,"rendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oi.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oi.prototype,"buttonUpdate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oi.prototype,"kevlarWatchGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oi.prototype,"centerAlignDescription",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oi.prototype,"truncateDomain",void 0);
_.u([_.Y({computed:"computeButtonOverride(buttonUpdate)"}),_.W("design:type",Object)],oi.prototype,"buttonOverride",void 0);_.u([_.F("data.detailsLine.adRating.ratingText"),_.W("design:type",Object),_.W("design:paramtypes",[])],oi.prototype,"getRating",null);_.u([_.F("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oi.prototype,"computeRatingHidden",null);
_.u([_.F("data.detailsLine.adRating.ratingIcon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oi.prototype,"iconType",null);_.u([_.F("data.detailsLine.texts.0.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],oi.prototype,"getDetailsLine",null);_.u([_.F("getDetailsLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oi.prototype,"computeDetailsLineHidden",null);
_.u([_.F("data.description.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],oi.prototype,"getDescriptionText",null);_.u([_.F("getDescriptionText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oi.prototype,"computeDescriptionTextHidden",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oi.prototype,"interactionLoggingClientData",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oi.prototype,"hideBanner",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oi.prototype,"dataChanged",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],oi.prototype,"onClick",null);_.u([_.c({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],oi);
_.d(oi,"ytd-action-companion-ad-renderer",function(){if(UxZ!==void 0)return UxZ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return UxZ=M},{mode:_.B5("kevlar_poly_si_batch_j067")?1:2});var vrA;var G$Z;var XV=function(){var M=_.g.apply(this,arguments)||this;M.buttonUpdate=_.U("web_modern_buttons");M.hideLegacyBanner=_.U("enable_dsa_one_click_ata_translators_infeed_elements");M.adInfoButtonStyle="mono";M.adInfoButtonType="text";M.noDotAdBadge=!0;return M};
_.w(XV,_.g);_.P=XV.prototype;_.P.getOnLayoutVisibleCallback=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.P.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var M=this.data.image.thumbnail.thumbnails[0];this.imageSrc=M.url?_.hr(M.url):void 0;this.imageWidth=M.width||0;this.imageHeight=M.height||0}this.data.clickthroughEndpoint&&_.G(this.data.clickthroughEndpoint,_.af)&&(M=_.G(this.data.clickthroughEndpoint,_.af).url,_.U("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
M||"":M?(M=_.hr(M),this.clickThroughUrl=_.Yq(M)):this.clickThroughUrl=void 0);(M=this.getOnLayoutVisibleCallback())&&M()}};
_.P.onClick=function(M){_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(M)};
_.P.handleClick=function(){var M=this;this.data&&this.data.clickthroughEndpoint&&(_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(z){M.macroReplacementBehavior.sendServiceRequestAction([z])}),_.S9(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.P.onLoad=function(){_.ZL(this.hostElement,"yt-refit-popups-action")};
_.rX.Object.defineProperties(XV.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
XV.prototype.onLoad=XV.prototype.onLoad;XV.prototype.onClick=XV.prototype.onClick;XV.prototype.dataChanged=XV.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],XV.prototype,"rendererBehavior",void 0);_.u([_.p(fdA.YtMacroReplacementBehavior),_.W("design:type",Object)],XV.prototype,"macroReplacementBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XV.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XV.prototype,"buttonUpdate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XV.prototype,"hideLegacyBanner",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XV.prototype,"adInfoButtonStyle",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XV.prototype,"adInfoButtonType",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],XV.prototype,"macros",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],XV.prototype,"interactionLoggingClientData",null);_.u([_.Y(),_.W("design:type",String)],XV.prototype,"clickThroughUrl",void 0);_.u([_.Y(),_.W("design:type",_.jq)],XV.prototype,"imageSrc",void 0);_.u([_.Y(),_.W("design:type",Number)],XV.prototype,"imageWidth",void 0);_.u([_.Y(),_.W("design:type",Number)],XV.prototype,"imageHeight",void 0);_.u([_.Y(),_.W("design:type",Object)],XV.prototype,"noDotAdBadge",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XV.prototype,"dataChanged",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],XV.prototype,"onClick",null);_.u([_.Xw("load"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XV.prototype,"onLoad",null);_.u([_.c({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],XV);
_.d(XV,"ytd-image-companion-renderer",function(){if(G$Z!==void 0)return G$Z;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return G$Z=M},{mode:_.B5("kevlar_poly_si_batch_j067")?1:2});var wji;var lt=function(){return _.g.apply(this,arguments)||this};
_.w(lt,_.g);_.P=lt.prototype;_.P.dataChanged=function(){this.set("data.adBadge",lt.JSC$22720_DEFAULT_AD_BADGE_RENDERER);if(this.data){var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.P.getOnLayoutVisibleCallback=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.P.onCompanionClicked=function(M){this.data&&(M.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.S9(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.P.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var M=_.J_(),z=this.getLayoutId(),J=this.data.clickToAdvSiteEndpoint;M&&z&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.sz(R)).executeCommand(J,z)}):_.Pv(this.hostElement,"yt-navigate",{endpoint:J})}};
_.P.sendTrackingPings=function(M){if(M&&M.length!==0&&M[0].loggingUrls&&(M=M[0].loggingUrls.map(this.getBaseUrl)))for(var z=0;z<M.length;z++)_.WI(M[z])};
_.P.getBaseUrl=function(M){return M.baseUrl||""};
_.rX.Object.defineProperties(lt.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.qH("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
lt.prototype.onCompanionClicked=lt.prototype.onCompanionClicked;lt.prototype.dataChanged=lt.prototype.dataChanged;lt.JSC$22720_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e9("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lt.prototype,"data",void 0);_.u([_.Qc("#title"),_.W("design:type",HTMLElement)],lt.prototype,"shopTitle",void 0);
_.u([_.wH("data.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lt.prototype,"dataChanged",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lt.prototype,"interactionLoggingClientData",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],lt.prototype,"onCompanionClicked",null);
_.u([_.c({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],lt);
_.d(lt,"ytd-shopping-companion-renderer",function(){if(wji!==void 0)return wji;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wji=M},{mode:1});_.N7(_.Mf(function(M){var z=M.data;M=_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC});var J=_.E3(function(){return z().interaction},XuZ);
_.mt(function(){var R,D;D=(D=_.qH("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.onLayoutVisibleCallback:null;(R=D)==null||R()});
return _.T("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.ol(function(R){_.ZL(R.currentTarget,"yt-refit-popups-action")}),
el:_.zL(M,J),"aria-label":function(){var R,D;return(R=z().interaction)==null?void 0:(D=R.accessibility)==null?void 0:D.label}},_.T("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(R){return _.T(_.vo,{data:R.data,
targetHeight:80,customCommandResolver:XuZ})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.T(_.t_,{data:function(){return z().adBadge}},{adBadgeViewModel:function(R){return _.T(_.I5,{data:R.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:_.lT}))))},"$j"),"banner-image-layout-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;M=_.J1({visibilityCallback:function(R){var D,N=(D=z().interaction)==null?void 0:D.onFirstVisible;R&&N&&_.aE(N)},
showOption:_.PC});var J=_.E3(function(){return z().interaction},lVw);
_.mt(function(){var R,D;D=(D=_.qH("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.onLayoutVisibleCallback:null;(R=D)==null||R()});
return _.T("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.zL(M,J)},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.T(_.t_,{data:function(){return z().adImage}},{adImageViewModel:function(R){return _.T(_.vo,{data:R.data,
targetHeight:80,customCommandResolver:lVw})}})),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.T(_.t_,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(R){return _.T(ori,{data:R.data,
customCommandResolver:lVw})}})),_.T(_.t_,{data:function(){return z().adButton}},{adButtonViewModel:function(R){return _.T(_.Z7,{data:R.data,
customCommandResolver:lVw})}}),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.T(_.t_,{data:function(){return z().menu}},{buttonViewModel:_.lT}))))},"ak"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.zn}});var xxZ={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"},eQ=function(){var M=_.g.apply(this,arguments)||this;M.updateCompanionDataJobId=0;M.contentVideoId=null;M.player=null;M.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return M};
_.w(eQ,_.g);_.P=eQ.prototype;_.P.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:xxZ}}};
_.P.attached=function(){var M=this,z=_.J_();z&&z.getPlayerPromise().then(function(J){M.getCachedDataAndListen(J)})};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.P.updateRendererStamper=function(){var M={};if(this.data)for(var z in xxZ)if(this.data[z]){M[z]=this.data[z];break}if(this.oneofRenderer!=void 0||Object.keys(M).length)this.oneofRenderer=M};
_.P.getCachedDataAndListen=function(M){var z=this.retrieveCachedCompanionData();z&&Object.keys(z).length&&this.receiveCompanionData(z);this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=M};
_.P.retrieveCachedCompanionData=function(){return _.R3.yt&&_.R3.yt.www&&_.R3.yt.www.ads&&_.R3.yt.www.ads.eventcache&&_.R3.yt.www.ads.eventcache.getLastCompanionData?_.R3.yt.www.ads.eventcache.getLastCompanionData():null};
_.P.receiveCompanionData=function(M){M&&Object.keys(M).length?(this.contentVideoId=M.contentVideoId,this.setCompanionData(M)):this.setCompanionData(M)};
_.P.setCompanionData=function(M){this.cancelPendingCompanionAdJobs();if(M){this.updateCompanionDataJobId=0;for(var z in xxZ)xxZ.hasOwnProperty(z)&&(this.data[z]=void 0);M.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",M.shoppingCompanionCarouselRenderer):M.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",M.imageCompanionAdRenderer):M.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",M.actionCompanionAdRenderer),_.ZL(this.hostElement,
"yt-hide-unlimited-offer-module"),_.ZL(this.hostElement,"yt-hide-tvfilm-offer-module")):M.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",M.bannerImageLayoutViewModel):M.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",M.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.P.dataChanged=function(){var M=this,z=_.J_();z?z.getPlayerPromise().then(function(J){M.contentVideoId&&J.getVideoUrl().includes("v="+M.contentVideoId)||(M.cancelPendingCompanionAdJobs(),M.updateRendererStamper())}):_.WW(Error("Bo"))};
_.P.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.no.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.P.handleCompanionAdClicked=function(M,z){this.player.onAdUxClicked(M,z);this.player.pauseVideo()};
eQ.prototype.dataChanged=eQ.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],eQ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],eQ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],eQ.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],eQ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],eQ.prototype,"oneofRenderer",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eQ.prototype,"dataChanged",null);_.u([_.c({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],eQ);
_.d(eQ,"ytd-companion-slot-renderer",function(){if(vrA!==void 0)return vrA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return vrA=M},{mode:_.B5("kevlar_poly_si_batch_j067")?
1:2});var tUq;var Q_=function(){return _.g.apply(this,arguments)||this};
_.w(Q_,_.g);Q_.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Q_.prototype.dataChanged=Q_.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Q_.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Q_.prototype,"companionSlotData",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q_.prototype,"dataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Q_);
_.d(Q_,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(tUq!==void 0)return tUq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return tUq=M},{mode:1});var j$s;var Ul=function(){var M=_.g.apply(this,arguments)||this;M.skinnyMode=!1;M.COMPACT_EVENT_COUNT=4;M.onShelfToggleButtonTap=function(){M.logTap(M.data);M.showingMore=!M.showingMore};
M.onShelfToggleButtonFocus=function(){M.showingMore||(M.logTap(M.data),M.showingMore=!0,_.C4(M,function(){var z=M.COMPACT_EVENT_COUNT-1,J;(J=_.SN(M.hostElement).querySelector("#event-"+z))==null||J.focus()}))};
return M};
_.w(Ul,_.g);_.P=Ul.prototype;_.P.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.P.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.P.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ou(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ou(this.infoTooltip,this.infoTooltip.hide))};
_.P.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ou(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ou(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ou(this.infoTooltip,this.infoTooltip.hide))};
_.P.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.P.onShowingMoreChanged=function(){var M;this.showingMoreChanged((M=this.showingMore)!=null?M:!1)};
_.P.showingMoreChanged=function(M){var z=this.get("data.events")||[];this.set("restEvents",z.slice(1,M?z.length:this.COMPACT_EVENT_COUNT).map(function(J){return J.ticketEventRenderer}));
z.slice(0,M?z.length:this.COMPACT_EVENT_COUNT).forEach(function(J){var R=_.y5();J=J.ticketEventRenderer.trackingParams;_.hu()&&R&&J&&(J=_.pe(J),R&&_.an(R,J))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.P.computeAriaLabel=function(M){return M.subtitle1+", "+M.subtitle2};
_.P.logTap=function(M){_.hu()&&this.ytRendererBehavior.logExplicitClick(M)};
_.P.isKeyboardAction=function(M){return this.get("detail.x",M)===0&&this.get("detail.y",M)===0};
_.P.onFirstEventTap=function(M){M.target&&this.handleTap(M.target,this.firstEvent,this.isKeyboardAction(M))};
_.P.onTicketLinkTap=function(M){M.target&&this.handleTap(M.target,M.model.item,this.isKeyboardAction(M))};
_.P.handleTap=function(M,z,J){if(z.buttonCommand)if(z.hasMultipleOffers)Object.assign(_.G(z.buttonCommand,_.nM),{properties:{source:J?"keyboard":"tap"}}),this.logTap(z),this.popupPositionTarget=M,_.Bv(this.hostElement,[z.buttonCommand],this.hostElement);else{var R;if((R=_.G(z.buttonCommand,_.af))==null?0:R.url)this.logTap(z),_.VZ(window,_.G(z.buttonCommand,_.af).url)}};
Ul.prototype.onShowingMoreChanged=Ul.prototype.onShowingMoreChanged;Ul.prototype.dataChanged=Ul.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ul.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Ul.prototype,"firstEvent",void 0);_.u([_.Y(),_.W("design:type",Object)],Ul.prototype,"restEvents",void 0);_.u([_.Y(),_.W("design:type",String)],Ul.prototype,"imageUrl",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ul.prototype,"showingMore",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Ul.prototype,"canShowMore",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ul.prototype,"skinnyMode",void 0);_.u([_.Y(),_.W("design:type",HTMLElement)],Ul.prototype,"popupPositionTarget",void 0);_.u([_.Qc("#banner-info-tooltip"),_.W("design:type",Object)],Ul.prototype,"infoTooltip",void 0);
_.u([_.Qc("#info-container"),_.W("design:type",HTMLElement)],Ul.prototype,"infoContainer",void 0);_.u([_.Qc("#shelf-toggler"),_.W("design:type",HTMLElement)],Ul.prototype,"shelfToggleButton",void 0);_.u([_.Qc("#separator"),_.W("design:type",HTMLDivElement)],Ul.prototype,"separator",void 0);_.u([_.Y(),_.W("design:type",String)],Ul.prototype,"shelfTogglerLabelText",void 0);_.u([_.Y(),_.W("design:type",String)],Ul.prototype,"shelfTogglerIcon",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ul.prototype,"dataChanged",null);_.u([_.wH("showingMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ul.prototype,"onShowingMoreChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Ul);
_.d(Ul,"ytd-ticket-shelf-renderer",function(){if(j$s!==void 0)return j$s;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return j$s=M},{mode:1});var pj4;var Fai;var vq=function(){return _.g.apply(this,arguments)||this};
_.w(vq,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vq.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],vq);
_.d(vq,"ytd-comments-entry-point-message-renderer",function(){if(Fai!==void 0)return Fai;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Fai=M},{mode:1});var Yaq;var G6=function(){return _.g.apply(this,arguments)||this};
_.w(G6,_.g);_.rX.Object.defineProperties(G6.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.teaserAvatar)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],G6.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],G6.prototype,"hasAvatar",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],G6);
_.d(G6,"ytd-comments-entry-point-teaser-renderer",function(){if(Yaq!==void 0)return Yaq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Yaq=M},{mode:1});var mxZ;var wW=function(){return _.g.apply(this,arguments)||this};
_.w(wW,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wW.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],wW);
_.d(wW,"ytd-comments-simplebox-renderer",function(){if(mxZ!==void 0)return mxZ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return mxZ=M},{mode:1});var xg=function(){var M=_.g.apply(this,arguments)||this;M.fullHeight=!_.U("comment_teaser_full_height_kill_switch")&&_.U("kevlar_watch_grid");return M};
_.w(xg,_.g);xg.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"}}}};
xg.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
xg.prototype.onTap=function(){var M=this.tapCommand;M&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(M))};
xg.prototype.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.rX.Object.defineProperties(xg.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.onTap)return this.data.onTap;var z,J;if(((z=this.data)==null?0:z.teaserContent)||((J=this.data)==null?0:J.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
xg.prototype.onKeyUp=xg.prototype.onKeyUp;xg.prototype.onTap=xg.prototype.onTap;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xg.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],xg.prototype,"fullHeight",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"tapCommand",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"simpleboxPlaceholder",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"hasSimpleboxPlaceholder",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"simpleboxAvatar",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"teaserContent",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"hasTeaserContent",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"teaserAvatar",null);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"hasTeaserAvatar",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"messageText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xg.prototype,"contentRenderer",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"hasContents",null);
_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xg.prototype,"hasContentRenderer",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xg.prototype,"onTap",null);_.u([_.Xw("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[_.GQ]),_.W("design:returntype")],xg.prototype,"onKeyUp",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],xg);
_.d(xg,"ytd-comments-entry-point-header-renderer",function(){if(pj4!==void 0)return pj4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return pj4=M},{mode:1});var grr;_.U("web_enable_sink_animated_rolling_character_and_number")?_.N7(_.vc$,"yt-animated-rolling-number",{props:{numberText:_.zn,numberValue:_.zn,heightPx:_.zn,fontSizeMultiplier:_.zn,shouldAnimate:_.zn,forceRollUp:_.zn}}):_.Il(_.Ut2,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var s$q=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),nrr={numberText:"",heightPx:2*s$q,shouldAnimate:!1},tZ=function(){var M=_.g.apply(this,arguments)||this;M.usingAnimatedComponents=!0;M.wasDetailed=!1;M.JSC$22757_browserSupportsAnimation=_.U("web_supports_animations_api");M.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};M.detailed=!1;M.shouldAnimate=!1;M.viewCountProps=nrr;M.dateTextProps=
nrr;M.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");return M};
_.w(tZ,_.g);_.P=tZ.prototype;_.P.resetAnimationState=function(){this.shouldAnimate=!1};
_.P.updateDynamicMetadata=function(){if(this.JSC$22757_browserSupportsAnimation){if(!this.detailed){var M,z,J,R;var D=(M=this.videoPrimaryInfoRenderer)==null?void 0:(z=M.viewCount)==null?void 0:(J=z.videoViewCountRenderer)==null?void 0:(R=J.extraShortViewCount)==null?void 0:R.simpleText;var N,Z,B,O;var X=(N=this.videoPrimaryInfoRenderer)==null?void 0:(Z=N.viewCount)==null?void 0:(B=Z.videoViewCountRenderer)==null?void 0:(O=B.shortViewCount)==null?void 0:O.simpleText}if(!X){var l,e,Q,v;D=(l=this.videoPrimaryInfoRenderer)==
null?void 0:(e=l.viewCount)==null?void 0:(Q=e.videoViewCountRenderer)==null?void 0:(v=Q.unlabeledViewCountValue)==null?void 0:v.simpleText;var x,m,y,H;X=(x=this.videoPrimaryInfoRenderer)==null?void 0:(m=x.viewCount)==null?void 0:(y=m.videoViewCountRenderer)==null?void 0:(H=y.viewCount)==null?void 0:H.simpleText}var q,b,V;M=Number((q=this.videoPrimaryInfoRenderer)==null?void 0:(b=q.viewCount)==null?void 0:(V=b.videoViewCountRenderer)==null?void 0:V.originalViewCount);var E,L;q=(E=this.videoPrimaryInfoRenderer)==
null?void 0:(L=E.relativeDateText)==null?void 0:L.simpleText;var z8;E=!((z8=this.videoPrimaryInfoRenderer)==null||!z8.relativeDateText);if(D&&X&&M&&(q||!E)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;z8=X.split(new RegExp("("+D+")"));D=wus(z8[0]);var O8;X={numberText:(O8=z8[1])!=null?O8:"",numberValue:M,heightPx:2*s$q,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var I3;O8=((I3=z8[2])!=null?I3:"")+"  ";this.setViewCount(X,D,wus(O8));
if(!this.detailed&&E){D=q.split(/(\d+)/);I3=wus(D[0]);var vY;O8={numberText:(vY=D[1])!=null?vY:"",heightPx:2*s$q,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var te;vY=((te=D[2])!=null?te:"")+"  ";this.setDateText(O8,I3,wus(vY))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.P.setViewCount=function(M,z,J){_.CD(z)!==_.CD(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=z);this.viewCountProps.numberText!==(M==null?void 0:M.numberText)&&(this.viewCountProps=M||nrr);_.CD(J)!==_.CD(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=J)};
_.P.setDateText=function(M,z,J){_.CD(z)!==_.CD(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=z);this.dateTextProps.numberText!==(M==null?void 0:M.numberText)&&(this.dateTextProps=M||nrr);_.CD(J)!==_.CD(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=J)};
_.P.onYtUpdateViewershipAction=function(M){this.videoPrimaryInfoRenderer&&(_.G(M,jvi).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.G(M,jvi).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.G(M,jvi).viewCount)))};
_.P.onYtUpdateDateTextAction=function(M){if(this.videoPrimaryInfoRenderer){M=_.G(M,_.xN3).dateText;this.shouldAnimate=!0;var z;((z=this.videoPrimaryInfoRenderer)==null?0:z.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",M):this.set("videoPrimaryInfoRenderer.dateText",M)}};
_.rX.Object.defineProperties(tZ.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return GtE(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.CD(GtE(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.CD(this.viewCountPreNumberText),this.viewCountProps.numberText,_.CD(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.CD(this.dateTextPreNumberText),this.dateTextProps.numberText,_.CD(this.dateTextPostNumberText)].join("")}}});
tZ.prototype.updateDynamicMetadata=tZ.prototype.updateDynamicMetadata;tZ.prototype.resetAnimationState=tZ.prototype.resetAnimationState;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],tZ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],tZ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tZ.prototype,"videoPrimaryInfoRenderer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"detailed",void 0);_.u([_.Y(),_.W("design:type",Object)],tZ.prototype,"shouldAnimate",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"viewCountPreNumberText",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"viewCountProps",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"viewCountPostNumberText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"dateTextPreNumberText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"dateTextProps",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"dateTextPostNumberText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tZ.prototype,"metadataBadgesInDescription",void 0);_.u([_.F("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.W("design:type",Object),_.W("design:paramtypes",[])],tZ.prototype,"infoText",null);
_.u([_.F("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.W("design:type",String),_.W("design:paramtypes",[])],tZ.prototype,"descriptionInfoTooltipText",null);_.u([_.F("detailed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tZ.prototype,"showDescriptionInfoTooltip",null);
_.u([_.F("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],tZ.prototype,"animatedViewCountAccessibilityLabel",null);_.u([_.F("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],tZ.prototype,"animatedDateTextAccessibilityLabel",null);
_.u([_.la("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tZ.prototype,"resetAnimationState",null);_.u([_.la("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tZ.prototype,"updateDynamicMetadata",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-watch-info-text"})],tZ);
_.d(tZ,"ytd-watch-info-text",function(){if(grr!==void 0)return grr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return grr=M},{mode:1});var hDd;var yAd="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var HOi=_.Mf(function(M){var z=M.data;var J=M.setTapCommand;_.jP(function(){var R=_.$S(z().onTap);J(R)},"X4onJd");
return _.T("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj}),_.T("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.T("span",null,function(){return z().simpleboxText})))},"bk");var cAq=_.Mf(function(M){return _.T("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.T(_.I,{cond:function(){return _.G(M.data().avatar,_.q6)},
then:function(z){return _.T(_.dj,{data:z,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.T("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.T(_.m3,{text:function(){return M.data().teaserText}})))},"ck");var dxE=_.Mf(function(M){var z=M.data;var J=M.setTapCommand;_.jP(function(){var R=_.$S(z().onTap);J(R)},"PmAol");
return _.T("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.T(_.t_,{data:function(){return z().teasers}},{commentsEntryPointTeaserViewModel:cAq}))},"dk");var Kaq=_.Mf(function(M){var z=M.data;var J=M.setTapCommand;_.jP(function(){var R=_.$S(z().onTap);J(R)},"Nh3Hjd");
return _.T("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.T(_.m3,{text:function(){return z().messageText}}))},"ek");var $xq=_.Mf(function(M){var z=M.data;var J=M.setTapCommand;var R=M.isDisabled;_.jP(function(){var D=(R==null?0:R())?void 0:_.$S(z().onTap);J(D)},"omeiWe");
return _.T("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.T(_.vS,{icon:function(){return z().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.T(_.I,{cond:function(){return z().image},
then:function(D){return _.T(_.rv,{data:D,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.T(_.m3,{text:function(){return z().text},
className:function(){return z().image||z().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.T(_.t_,{data:function(){return z().button}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:R==null?void 0:R()}}})}}))},"fk");var u3s=_.Mf(function(M){var z=M.data;var J=M.itemIndex;var R=M.selectedIndex;var D=M.indexUpdatedCallback;var N=M.observer;M=M.title;var Z=_.AL("yt-carousel-item-view-model",function(e){N&&N().observe(e)}),B=function(e){J()===R()&&D(e)},O=_.d4(bpi),X=_.d4(_.kIp),l=function(){var e,Q,v;
return((e=z())==null?void 0:e.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!O()||((Q=z())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&X().includes("PAposts_by_host")||((v=z())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&X().includes("PAyouchat")};
return _.T("yt-carousel-item-view-model",{el:Z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":M},_.T(_.t_,{data:function(){var e,Q;return(Q=(e=_.G(z().carouselItem,fVi))==null?void 0:e.textCarousel)!=null?Q:z().carouselItem}},{textCarouselItemViewModel:function(e){return _.T($xq,{data:e.data,
setTapCommand:B,isDisabled:l})},
commentTeaserCarouselItemViewModel:function(e){return _.T(dxE,{data:e.data,setTapCommand:B})},
commentInputBoxCarouselItemViewModel:function(e){return _.T(HOi,{data:e.data,setTapCommand:B})},
commentsEntryPointMessageViewModel:function(e){return _.T(Kaq,{data:e.data,setTapCommand:B})}}))},"gk");var qaq=_.Mf(function(M){var z=M.numDots;var J=M.activeIndex;return _.T("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.T(_.G4,{each:function(){return Array.from({length:z()})},
keyBy:"INDEX"},function(R,D){return _.T("div",{class:function(){var N={};return _.jF("ytCarouselDotsShapeDot",(N.ytCarouselDotsShapeDotActive=D===J(),N))}})}))},"hk");var Waw=_.Mf(function(M){var z=M.data;var J=M.handleCarouselNavigation;var R=M.numItems;var D=M.selectedIndex;var N=function(){return{disabled:D()===0}},Z=function(){return{disabled:D()===R()-1}};
return _.T("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.T("div",null,_.T("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return z().title}),_.T(_.I,{cond:function(){return z().subtitle},
then:function(B){return _.T("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return z().subtitleAccessibilityText}},B)}})),_.T(_.I,{cond:function(){return R()>1},
then:function(){return _.T("div",{class:"ytCarouselTitleViewModelNavigation"},_.T(qaq,{numDots:R,activeIndex:D}),_.T(_.I,{cond:function(){return z().previousButton},
then:function(B){return _.T(_.t_,{data:B},{buttonViewModel:function(O){return _.T(_.lT,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return J(-1)},
buttonOverrides:N})}})}}),_.T(_.I,{cond:function(){return z().nextButton},
then:function(B){return _.T(_.t_,{data:B},{buttonViewModel:function(O){return _.T(_.lT,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return J(1)},
buttonOverrides:Z})}})}}))}}))},"ik");_.N7(_.Mf(function(M){var z=M.data;var J,R=_.AL("yt-video-metadata-carousel-view-model"),D=_.AL("div",function(E){var L=function(){var z8=E.offsetWidth*m(),O8=24*(m()-1);Q(z8+O8)};
L();window.ResizeObserver&&(J=new ResizeObserver(L),J.observe(E))}),N=_.HW("HTML_DIR")==="rtl",Z=!1,B=0,O=0;
M=_.S(_.kE(0,void 0,"fCZdg"));var X=M.next().value,l=M.next().value;M=_.S(_.kE(0,void 0,"FQiAle"));var e=M.next().value,Q=M.next().value;M=_.S(_.kE(!1,void 0,"O4owzd"));var v=M.next().value,x=M.next().value,m=function(){var E,L,z8;return(z8=(E=z())==null?void 0:(L=E.carouselTitles)==null?void 0:L.length)!=null?z8:0},y=function(){D.value&&D.value.scrollLeft!==B&&l((N?D.value.scrollLeft<B:D.value.scrollLeft>B)?Math.min(X()+1,m()-1):Math.max(X()-1,0))},H;
window.IntersectionObserver&&(H=new IntersectionObserver(function(E){E=_.S(E);for(var L=E.next();!L.done;L=E.next())if(L.value.isIntersecting){if(Z){Z=!1;break}y()}else l(O)},{threshold:.2}));
_.jP(function(){if(D.value){var E=(N?-1:1)*(e()/m()+12)*(v()&&H?O:X());typeof D.value.scrollTo==="function"?D.value.scrollTo({left:E,behavior:"smooth"}):D.value.scrollLeft=E;B=E;O=v()&&H?O:X()}},"oi9Jzd");
var q,b=function(E){q=E};
_.pq(function(){var E;(E=J)==null||E.disconnect();var L;(L=H)==null||L.disconnect()});
var V=function(E){E=X()+E;E>=0&&E<m()&&(Z=!0,l(E))};
return _.T("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:R,"on:click":_.ol(function(E){if(_.cn(_.Hn(E),R.value,["BUTTON".toString()])||!q)return!1;_.JF().resolve(_.Rb).resolveCommand(q,{forceClickLogging:!0});return!1}),
"on:touchstart":_.ol(function(){x(!0);return!1}),
"on:touchend":_.ol(function(){H||y();x(!1);return!1}),
hidden:function(){var E,L;return!((E=z())==null?0:(L=E.carouselItems)==null?0:L.length)}},_.T("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.T(_.I,{cond:function(){return z().carouselTitles},
then:function(E){return _.T(_.t_,{data:function(){return E()[v()&&H?O:X()]}},{carouselTitleViewModel:function(L){return _.T(Waw,{data:L.data,
handleCarouselNavigation:V,numItems:m,selectedIndex:X})}})}})),_.T("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:D},_.T("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+e()+"px;"}},_.T(_.I,{cond:function(){return z().carouselItems},
then:function(E){return _.T(_.G4,{each:E},function(L,z8){return _.T(_.t_,{data:function(){return L}},{carouselItemViewModel:function(O8){return _.T(u3s,{data:O8.data,
itemIndex:z8,selectedIndex:X,indexUpdatedCallback:b,observer:H,title:function(){a:{var I3=z8();var vY,te=(vY=z())==null?void 0:vY.carouselTitles;if(te&&(I3=te[I3])){var wR;I3=(wR=_.G(I3,Epi))==null?void 0:wR.title;break a}I3=void 0}return I3}})}})})}}))))},"jk"),"yt-video-metadata-carousel-view-model",{props:{data:_.zn}});var aoq=_.U("web_action_buttons_update_owner_width")?32:12,jQ=function(){var M=_.g.apply(this,arguments)||this;M.isHovering=!1;M.enableColorSampling=_.U("web_delhi_colorful_sd");M.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");M.descriptionCollapsed=!0;M.useFadedScrimDescription=_.U("kevlar_enable_faded_scrim_on_description");M.skinnyMode=!1;M.playlist=!1;M.isDark=document.documentElement.hasAttribute("dark");M.disableVideoOwnerOnTap=_.U("swatchie_video_owner_on_tap_ks");M.swatcherooDelayLoad=
_.U("swatcheroo_enable_ghost_cards");M.primaryMenuWidth=0;M.videoId="";M.titleHeadlineXs=_.U("web_watch_typography_title_headline_xs");M.titleHeadlineS=_.U("web_watch_typography_title_headline_s");M.titleHeadlineM=_.U("web_watch_typography_title_headline_m");M.titleHashtagBlackLinkified=_.U("web_title_hashtag_black_linkified");M.titleHashtagGreyLinkified=_.U("web_title_hashtag_grey_linkified");M.actionButtonsUpdateOwnerWidth=_.U("web_action_buttons_update_owner_width");M.shouldForceIconOnly=!1;M.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};M.isFullscreen=!1;M.isTheaterMode=!1;return M};
_.w(jQ,_.g);_.P=jQ.prototype;_.P.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.P.updateOwnerAndDescriptionPosition=function(){_.U("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.HF(this.bottomRowElement,this.ownerElement)):(_.HF(this.bottomRowElement,this.descriptionElement),_.HF(this.topRowElement,this.ownerElement)))};
_.P.titleOnTap=function(M){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||this.handleExpandDescriptionCommands()}};
_.P.videoOwnerOnTap=function(M){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.P.detached=function(){var M=this,z;return _.k(function(J){(z=M.resizeObserver)==null||z.disconnect();_.UI(J)})};
_.P.maybeAttachResizeObserver=function(){var M=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.A_(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.P.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var M=this.hostElement.clientWidth,z=Math.max(this.largerItemWrap?400:350,M/2-aoq);if(_.U("web_action_buttons_update_owner_width")){var J;z=(((J=document.getElementById("owner"))==null?void 0:J.clientWidth)||0)+aoq}this.actionsOnSeparateLine=this.primaryMenuWidth>M-z?!0:!1}};
_.P.stripAttributedDescription=function(M){return{content:M.content.replace(/[\r\n]{2,}/g,"\n")}};
_.P.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("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:_.U("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.P.videoPrimaryInfoRendererChanged=function(){var M;if((M=this.videoPrimaryInfoRenderer)==null?0:M.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.P.videoSecondaryInfoRendererChanged=function(){var M,z;(z=(M=this.descriptionInlineExpander).collapse)==null||z.call(M);this.descriptionExpandClientVe=_.O3(110509);this.descriptionCollapseClientVe=_.O3(110510);M=_.y5();z=_.hu();M&&z&&(_.U("combine_ve_grafts")?(_.ln(_.Gm(),this.descriptionExpandClientVe,z),_.ln(_.Gm(),this.descriptionCollapseClientVe,z)):_.Wv(M,z,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.P.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.P.updateTopLevelIconsOnly=function(){var M=this;_.U("top_level_update_killswitch")||this.menu&&_.no.addLowPriorityJob(function(){M.menu.topLevelIconsOnly=M.skinnyMode},_.NC("swathceroo_delay_flexible_menu_update",100))};
_.P.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.U("web_action_buttons_minimize_subscribe")};
_.P.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.P.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.P.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.P.onYtTextInlineExpanderExpandedChanged=function(){if(!_.U("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var M,z;(z=(M=this.structuredDescriptionContentRendererElement).resize)==null||z.call(M)}};
_.P.onRenderStamperFinished=function(M){(M==null?void 0:M.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.P.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.P.onYtExpanderLessTapped=function(){var M,z=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showLessCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.P.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.P.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.P.onDescriptionClick=function(M){if(!_.bP(_.CX(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.U("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.P.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.P.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.P.logCollapseClick=function(){var M=_.y5();M&&this.descriptionCollapseClientVe&&_.fY(M,this.descriptionCollapseClientVe)};
_.P.logExpandClick=function(){var M=_.y5();M&&this.descriptionExpandClientVe&&_.fY(M,this.descriptionExpandClientVe)};
_.P.collapseDescription=function(){this.descriptionCollapsed=!0};
_.P.scrollToTopOfContainer=function(){_.S9(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.P.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.P.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.P.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.P.resize=function(){if(this.descriptionInlineExpander){var M,z;(z=(M=this.descriptionInlineExpander).resize)==null||z.call(M)}else _.yA(new _.xN("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var J;(J=this.menu)==null||J.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.U("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.P.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var M,z,J,R,D=_.U("web_action_buttons_update_owner_width")?(J=(M=_.SN(this.menu).querySelector("#button-shape"))==null?void 0:M.clientWidth)!=null?J:0:(R=(z=_.SN(this.menu).querySelector("#button"))==null?void 0:z.clientWidth)!=null?R:0,N,Z;M=((Z=(N=_.SN(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:N.clientWidth)!=null?Z:0)+8+D;var B,O;D=(O=(B=_.SN(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:B.children.length)!=null?O:2;M<=8*D||(this.primaryMenuWidth=M)}};
_.P.onYtUpdateTitleAction=function(M){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.G(M,tmi).title)};
_.P.onYtUpdateDescriptionAction=function(M){if(M=_.G(M,_.bZ$)){var z,J=!((z=this.videoSecondaryInfoRenderer)==null||!z.attributedDescription);M.isEmpty||!M.description&&!M.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):M.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",M.attributedDescription):M.description&&(J?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.y1(M.description)):this.set("videoSecondaryInfoRenderer.description",M.description))}};
_.P.onYtDarkModeToggledAction=function(M){this.isDark=M};
_.P.registerPanel=function(){if(!_.U("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var M=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode;M=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||M;var z=_.JF().resolve(_.nx);z&&!M&&z.registerPanel("engagement-panel-structured-description",this)}};
_.P.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.P.parseColorSamplingData=function(){var M;if(_.U("web_delhi_colorful_sd")&&((M=this.structuredDescriptionContentRenderer)==null?0:M.items)&&(M=this.structuredDescriptionContentRenderer.items.find(function(D){return!!_.G(D,cF)}))){var z,J;
this.hoverColor={lightTheme:(z=_.G(M,cF))==null?void 0:z.lightThemeColorPalette,darkTheme:(J=_.G(M,cF))==null?void 0:J.darkThemeColorPalette};var R;this.hoverText=(R=_.G(M,cF))==null?void 0:R.colorSampledDescriptionBodyText}};
_.P.updateHoverColor=function(){if(_.U("web_delhi_colorful_sd")){var M=this.hoverColor,z={},J;M=(J=this.isDark?M==null?void 0:M.darkTheme:M==null?void 0:M.lightTheme)!=null?J:{};J=_.S(yAd);for(var R=J.next();!R.done;R=J.next()){R=R.value;var D=M[R];z["--yt-saturated-"+_.Q5(R)]=D?_.qG(D):"initial"}_.Tp(this.hostElement,z)}};
_.P.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.P.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.P.showPanel=function(M){this.expandDescription();var z=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;z.resize();var J,R=M==null?void 0:(J=M.sectionListEngagementPanelExtras)==null?void 0:J.scrollToItemSectionIdentifier;R?_.no.addJob(function(){z==null||z.scrollToSection(R)},8):this.scrollToTopOfContainer()};
_.P.isVisible=function(){return!this.descriptionCollapsed};
_.P.getReloadContinuation=function(){};
_.P.hidePanel=function(){};
_.P.updatePanel=function(){};
_.rX.Object.defineProperties(jQ.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var M;return _.U("web_delhi_colorful_sd")&&(M=this.structuredDescriptionContentRenderer)!=null&&M.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(z){return!_.G(z,cF)&&!_.G(z,Fd4)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.structuredDescriptionContentRendererComputed)!=null&&M.items){var z;M=_.S((z=this.structuredDescriptionContentRendererComputed)==null?void 0:z.items);for(z=M.next();!z.done;z=M.next())if(z=_.G(z.value,_.AnV))return z}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoPrimaryInfoRenderer)==null?0:M.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!!((M=this.videoSecondaryInfoRenderer)==null?0:(z=M.owner)==null?0:(J=z.videoOwnerRenderer)==null?0:J.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var M,z;if((M=this.videoSecondaryInfoRenderer)==null?0:(z=M.attributedDescription)==null?0:z.content){var J,R;return(R=this.stripAttributedDescription((J=this.videoSecondaryInfoRenderer)==null?void 0:J.attributedDescription))!=null?R:{runs:[]}}}if(_.U("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var D,N,Z,B;return(B=(Z=(D=this.videoSecondaryInfoRenderer)==
null?void 0:D.description)!=null?Z:(N=this.videoSecondaryInfoRenderer)==null?void 0:N.attributedDescription)!=null?B:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.headerRuns)!=null?z:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentsEntryPointHeaderRenderer)==null||!M.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoMetadataCarousel)==null||!M.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.NC("swatchie_desc_lines",3):this.hasTeaserCarousel?_.NC("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var M,z,J=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(z=M.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(J&&J.rows&&J.collapsedItemCount!==void 0&&!(J.rows.length<=J.collapsedItemCount))return J.rows=J.rows.slice(J.collapsedItemCount),J.collapsedItemCount=0,J}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var M,z,J=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(z=M.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(J&&J.rows&&J.collapsedItemCount!==void 0)return J.rows=J.rows.slice(0,J.collapsedItemCount),J.collapsedItemCount=J.rows.length,J}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!((M=this.structuredDescriptionContentRendererComputed)==null?0:(z=M.items)==null?0:z.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var M;return(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.videoSecondaryInfoRenderer)==null?0:(z=M.owner)==null?0:(J=z.videoOwnerRenderer)==null?0:J.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return!!((M=this.videoPrimaryInfoRenderer)==null?0:(z=M.videoActions)==null?0:(J=z.menuRenderer)==null?0:(R=J.flexibleItems)==null?0:R.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.i5(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.i5(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var M=this;if(_.U("web_title_hashtag_grey_delinkified")){var z,J=_.gu.unsafeClone((z=this.videoPrimaryInfoRenderer)==null?void 0:z.title);(z=J==null?void 0:J.runs)&&z.forEach(function(R){if(R==null?0:R.navigationEndpoint)R.textColor=4284506208,M.isDark&&(R.textColor=4289374890)});
return J}return(J=this.videoPrimaryInfoRenderer)==null?void 0:J.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.U("web_title_hashtag_black_delinkified")||_.U("web_title_hashtag_grey_delinkified")}}});
jQ.prototype.updateHoverColor=jQ.prototype.updateHoverColor;jQ.prototype.parseColorSamplingData=jQ.prototype.parseColorSamplingData;jQ.prototype.resetDescriptionState=jQ.prototype.resetDescriptionState;jQ.prototype.registerPanel=jQ.prototype.registerPanel;jQ.prototype.onYtExpanderLessTapped=jQ.prototype.onYtExpanderLessTapped;jQ.prototype.onYtExpanderMoreTapped=jQ.prototype.onYtExpanderMoreTapped;jQ.prototype.onRenderStamperFinished=jQ.prototype.onRenderStamperFinished;
jQ.prototype.onYtTextInlineExpanderExpandedChanged=jQ.prototype.onYtTextInlineExpanderExpandedChanged;jQ.prototype.onYtTextInlineExpanderCollapseClicked=jQ.prototype.onYtTextInlineExpanderCollapseClicked;jQ.prototype.onYtTextInlineExpanderExpandClicked=jQ.prototype.onYtTextInlineExpanderExpandClicked;jQ.prototype.moveActionsElement=jQ.prototype.moveActionsElement;jQ.prototype.updateShouldForceIconOnly=jQ.prototype.updateShouldForceIconOnly;jQ.prototype.updateTopLevelIconsOnly=jQ.prototype.updateTopLevelIconsOnly;
jQ.prototype.structuredDescriptionContentRendererChanged=jQ.prototype.structuredDescriptionContentRendererChanged;jQ.prototype.videoSecondaryInfoRendererChanged=jQ.prototype.videoSecondaryInfoRendererChanged;jQ.prototype.videoPrimaryInfoRendererChanged=jQ.prototype.videoPrimaryInfoRendererChanged;jQ.prototype.maybeUpdateActionsOnSeparateLine=jQ.prototype.maybeUpdateActionsOnSeparateLine;jQ.prototype.updateOwnerAndDescriptionPosition=jQ.prototype.updateOwnerAndDescriptionPosition;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],jQ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],jQ.prototype,"ytdReduxBehavior",void 0);_.u([_.Qc("#above-the-fold"),_.W("design:type",HTMLElement)],jQ.prototype,"aboveTheFoldContainer",void 0);_.u([_.Qc("#menu ytd-menu-renderer"),_.W("design:type",Object)],jQ.prototype,"menu",void 0);_.u([_.Qc("#description-inline-expander"),_.W("design:type",Object)],jQ.prototype,"descriptionInlineExpander",void 0);
_.u([_.Qc("#faded-structured-description"),_.W("design:type",Object)],jQ.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.u([_.Qc("#structured-description"),_.W("design:type",Object)],jQ.prototype,"structuredDescriptionContentRendererElement",void 0);_.u([_.Qc("#title"),_.W("design:type",HTMLElement)],jQ.prototype,"titleElement",void 0);_.u([_.Qc("#description"),_.W("design:type",HTMLElement)],jQ.prototype,"descriptionElement",void 0);
_.u([_.Qc("#description-interaction"),_.W("design:type",Object)],jQ.prototype,"descriptionInteraction",void 0);_.u([_.Qc("#owner"),_.W("design:type",HTMLElement)],jQ.prototype,"ownerElement",void 0);_.u([_.Qc("#top-row"),_.W("design:type",HTMLElement)],jQ.prototype,"topRowElement",void 0);_.u([_.Qc("#bottom-row"),_.W("design:type",HTMLElement)],jQ.prototype,"bottomRowElement",void 0);_.u([_.Qc("#actions"),_.W("design:type",HTMLElement)],jQ.prototype,"actionsElement",void 0);
_.u([_.Qc("#bottom-actions"),_.W("design:type",HTMLElement)],jQ.prototype,"bottomActionsElement",void 0);_.u([_.Qc("#ytd-watch-info-text"),_.W("design:type",Object)],jQ.prototype,"watchInfoTextElement",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"videoPrimaryInfoRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"videoSecondaryInfoRenderer",void 0);
_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"videoMetadataCarousel",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"structuredDescriptionContentRenderer",void 0);_.u([_.F("structuredDescriptionContentRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"structuredDescriptionContentRendererComputed",null);
_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"videoSummary",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"merchShelf",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"infoPanelBelowMetadata",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"hoverColor",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"hoverText",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"isHovering",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"enableColorSampling",void 0);_.u([_.F("structuredDescriptionContentRendererComputed"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"productShelf",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"metadataBadgesInDescription",void 0);_.u([_.F("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"shouldHideBadges",null);
_.u([_.F("productShelf","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"shouldShowProductShelf",null);_.u([_.Y(),_.W("design:type",Boolean)],jQ.prototype,"isWatchFlexy",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"descriptionCollapsed",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],jQ.prototype,"useFadedScrimDescription",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"skinnyMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"largerItemWrap",null);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"playlist",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"clarifyBox",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"playerAds",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],jQ.prototype,"isDark",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],jQ.prototype,"actionsOnSeparateLine",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"disableVideoOwnerOnTap",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"swatcherooDelayLoad",void 0);_.u([_.Y(),_.W("design:type",Boolean)],jQ.prototype,"suppressTopLevelMetadataRows",void 0);
_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"primaryMenuWidth",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"videoId",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"titleHeadlineXs",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"titleHeadlineS",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"titleHeadlineM",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"titleHashtagBlackLinkified",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"titleHashtagGreyLinkified",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.u([_.Y(),_.W("design:type",Object)],jQ.prototype,"shouldForceIconOnly",void 0);
_.u([_.wH("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"updateOwnerAndDescriptionPosition",null);_.u([_.wH("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.u([_.F("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"descriptionText",null);_.u([_.F("videoSecondaryInfoRenderer.headerRuns"),_.W("design:type",Array),_.W("design:paramtypes",[])],jQ.prototype,"headerRuns",null);
_.u([_.Y({value:!1}),_.F("commentsEntryPointHeaderRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"hasTeaser",null);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.F("videoMetadataCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"hasTeaserCarousel",null);_.u([_.Y({value:3}),_.F("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"descriptionMaxLines",null);
_.u([_.F("videoSecondaryInfoRenderer.metadataRowContainer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"collapsibleMetadataRows",null);_.u([_.F("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"alwaysVisibleMetadataRows",null);
_.u([_.F("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"hasInlineStructuredDescription",null);_.u([_.F("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"showInlineStructuredDescription",null);
_.u([_.F("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"descriptionExpandCommand",null);_.u([_.F("videoSecondaryInfoRenderer.owner"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"videoOwnerCommand",null);_.u([_.Y({reflectToAttribute:!0}),_.F("videoPrimaryInfoRenderer.videoActions"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"flexMenuEnabled",null);
_.u([_.Y({selector:_.HS,reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"isFullscreen",void 0);_.u([_.Y({selector:_.ye,reflectToAttribute:!0}),_.W("design:type",Object)],jQ.prototype,"isTheaterMode",void 0);_.u([_.F("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"showAttributedStringDescription",null);
_.u([_.F("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"showFormattedStringDescription",null);_.u([_.F("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"showFadedStructuredDescription",null);
_.u([_.wH("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"videoPrimaryInfoRendererChanged",null);_.u([_.F("videoPrimaryInfoRenderer.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"videoTitle",null);_.u([_.F("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],jQ.prototype,"noEndpoints",null);
_.u([_.wH("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"videoSecondaryInfoRendererChanged",null);_.u([_.la("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"structuredDescriptionContentRendererChanged",null);
_.u([_.la("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"updateTopLevelIconsOnly",null);_.u([_.la("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"updateShouldForceIconOnly",null);_.u([_.la("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"moveActionsElement",null);
_.u([_.Xw("yt-text-inline-expander-expand-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"onYtTextInlineExpanderExpandClicked",null);_.u([_.Xw("yt-text-inline-expander-collapse-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.u([_.Xw("yt-text-inline-expander-expanded-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jQ.prototype,"onRenderStamperFinished",null);
_.u([_.Xw("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"onYtExpanderMoreTapped",null);_.u([_.Xw("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"onYtExpanderLessTapped",null);
_.u([_.la("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"registerPanel",null);_.u([_.la("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"resetDescriptionState",null);
_.u([_.la("structuredDescriptionContentRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"parseColorSamplingData",null);_.u([_.la("hoverColor","isDark"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"updateHoverColor",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-watch-metadata"})],jQ);
_.d(jQ,"ytd-watch-metadata",function(){if(hDd!==void 0)return hDd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return hDd=M},{mode:2});_.rAA=function(M){_.wS.call(this);this.JSC$22782_watchApi=M;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;VUA(this);Err(this);Las(this);AAA(this);iOd(this);Cvs(this);bOr(this)};
_.w(_.rAA,_.wS);var Las=function(M){var z=function(){_.U("kevlar_is_pupi_enabled")||p5(M)};
M.JSC$22782_watchApi.getRoot().addEventListener("yt-player-updated",z);M.addOnDisposeCallback(function(){M.JSC$22782_watchApi.getRoot().removeEventListener("yt-player-updated",z)})},iOd=function(M){if(_.U("kevlar_endscreen_auto_theater_mode")){var z=M.JSC$22782_watchApi.subscribeToActiveChanged(function(){MJE(M)},!1);
M.addOnDisposeCallback(z)}},VUA=function(M){var z,J,R,D,N;
_.k(function(Z){if(Z.nextAddress==1)return Z.yield(M.JSC$22782_watchApi.playerApi,2);z=Z.yieldResult;J=function(B){B=!!B;FV(M)&&(B=B?2:1,_.NJ.getInstance().setState(B,!0,!1))};
R=function(B){B&&_.CGA(_.rA().getState())&&(_.S9(M.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),M.temporaryTheaterMode=!0)};
D=function(B){_.U("kevlar_player_update_autonav_on_new_data")&&B.type==="newdata"&&(_.U("kevlar_is_pupi_enabled")||p5(M))};
N=function(B){M.onPlayerStateChange(B)};
_.U("kevlar_endscreen_auto_theater_mode")&&z.addEventListener("onAutonavCancelled",R);z.addEventListener("onAutonavChangeRequest",J);z.addEventListener("onVideoDataChange",D);z.addEventListener("onStateChange",N);M.addOnDisposeCallback(function(){z.removeEventListener("onAutonavChangeRequest",J);z.removeEventListener("onVideoDataChange",D);z.removeEventListener("onStateChange",N);_.U("kevlar_endscreen_auto_theater_mode")&&z.removeEventListener("onAutonavCancelled",R)});
_.UI(Z)})},Err=function(M){M.JSC$22782_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){M.autonavCancelledBySignal=!0;
_.U("kevlar_is_pupi_enabled")||p5(M)});
M.JSC$22782_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(z,J,R){J&&p5(M,R)});
M.JSC$22782_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){FV(M)&&_.NJ.getInstance().setState(2,!0,!0)});
M.JSC$22782_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){FV(M)&&_.NJ.getInstance().setState(1,!0,!0)});
M.addOnDisposeCallback(function(){M.JSC$22782_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");M.JSC$22782_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");M.JSC$22782_watchApi.unregisterActionHandler("yt-enable-autoplay-command");M.JSC$22782_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},AAA=function(M){var z=M.JSC$22782_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bOr(M)}),J=M.JSC$22782_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Cvs(M)});
M.addOnDisposeCallback(function(){M.JSC$22782_watchApi.unsubscribeByKey(z);M.JSC$22782_watchApi.unsubscribeByKey(J)})},bOr=function(M){M.autonavCancelledBySignal=!1;
_.U("kevlar_is_pupi_enabled")||p5(M)},Cvs=function(M){var z=M.JSC$22782_watchApi.getWatchNextResponse(),J,R;
var D=(z=(R=_.G(z==null?void 0:(D=z.playerOverlays)==null?void 0:(J=D.playerOverlayRenderer)==null?void 0:J.autonavToggle,_.Muk))==null?void 0:R.enabled)?2:1;_.U("kevlar_is_pupi_enabled")?_.NJ.getInstance().setState(D,!1,!1):p5(M);_.U("web_persist_server_autonav_state_on_client")&&typeof z==="boolean"&&_.w08(D===2)},FV=function(M){if(M.autonavCancelledBySignal)return!1;
var z,J,R,D;return!!((z=M.JSC$22782_watchApi.getWatchNextResponse())==null?0:(J=z.contents)==null?0:(R=J.twoColumnWatchNextResults)==null?0:(D=R.autoplay)==null?0:D.autoplay)};
_.rAA.prototype.onPlayerStateChange=function(M){if(M===0){M=!_.NJ.getInstance().isAutoplaySetExplicitly();var z=this.JSC$22782_watchApi.getWatchNextResponse(),J,R,D,N;z=_.G(z==null?void 0:(J=z.contents)==null?void 0:(R=J.twoColumnWatchNextResults)==null?void 0:(D=R.autoplay)==null?void 0:(N=D.autoplay)==null?void 0:N.autoplayExplicitChoiceDialogRenderer,_.GOt);FV(this)&&M&&z&&_.l5.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:z},popupType:"DIALOG"}})}else MJE(this)};
var MJE=function(M){M.temporaryTheaterMode&&(M.temporaryTheaterMode=!1,_.S9(M.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},p5=function(M,z){z=z===void 0?!1:z;
var J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22782_watchApi.playerApi,2);J=R.yieldResult;FV(M)?J.setAutonavState(_.NJ.getInstance().getState(),z):J.setAutonavState(1,z);_.UI(R)})};var zB3={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"};_.RBA=function(M){_.wS.call(this);var z=this;this.JSC$22787_watchApi=M;var J=this.JSC$22787_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JKZ(z)});
this.addOnDisposeCallback(function(){z.JSC$22787_watchApi.unsubscribeByKey(J)});
JKZ(this)};
_.w(_.RBA,_.wS);var JKZ=function(M){var z=M.JSC$22787_watchApi.getPlayerResponse(),J=M.JSC$22787_watchApi.getWatchNextResponse();if(!_.hCG(z==null?void 0:z.playabilityStatus,J==null?void 0:J.playerOverlays)){var R;var D=z==null?void 0:(R=z.playabilityStatus)==null?void 0:R.errorScreen}M.JSC$22787_watchApi.provideRenderingData("ERROR_SCREEN",D)};var D$i=_.Mf(function(M){var z=M.data;M=_.U("web_watch_video_details_hide_subtitle");var J=_.U("web_watch_video_details_single_line_title"),R=_.ol(function(){var B=z().onTap;B&&_.JF().resolve(_.Rb).resolveCommand(B)}),D={},N={},Z={};
return _.T("yt-player-overlay-video-details-renderer",{class:_.Qe("ytPlayerOverlayVideoDetailsRendererHost",(D.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.U("web_watch_video_details_transparent_background"),D)),"on:click":R,role:"button"},_.T("h2",{class:_.Qe("ytPlayerOverlayVideoDetailsRendererTitle",(N.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return J},N))},_.T(_.m3,{text:function(){return z().title}})),_.T("div",{class:_.Qe("ytPlayerOverlayVideoDetailsRendererSubtitle",
(Z.ytPlayerOverlayVideoDetailsRendererHideSubtitle=M,Z))},_.T(_.m3,{text:function(){return z().subtitle}})))},"kk");var Yg={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},NSi=_.Mf(function(M){var z=M.data;var J=_.d4(_.HS),R=_.U("web_watch_action_bar_resize_buttons"),D=_.U("delhi_modern_web_player_icons")&&!_.U("enable_web_delhi_icons"),N=function(){return R&&!J()?{size:"M"}:void 0};
M={};return _.T("yt-player-quick-action-buttons",{class:_.Qe("ytPlayerQuickActionButtonsHost",(M.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!J()},M))},_.T(_.G4,{each:function(){if(D){var Z=z();
Z=JSON.parse(JSON.stringify(Z));for(var B=_.S(Z),O=B.next();!O.done;O=B.next()){var X=O.value,l=void 0;O=_.G((l=_.G(X,_.KM))==null?void 0:l.toggleButtonViewModel,_.nf);var e=void 0;l=_.G((e=_.G(X,_.d$))==null?void 0:e.toggleButtonViewModel,_.nf);e=_.G(X,_.s3);X=_.G(X,_.nf);if(O)l=_.G(O.defaultButtonViewModel,_.s3),O=_.G(O.toggledButtonViewModel,_.s3),l&&l.iconName&&(l.iconName=Yg[l.iconName]),O&&O.iconName&&(O.iconName=Yg[O.iconName]);else if(l)O=_.G(l.defaultButtonViewModel,_.s3),l=_.G(l.toggledButtonViewModel,
_.s3),O&&O.iconName&&(O.iconName=Yg[O.iconName]),l&&l.iconName&&(l.iconName=Yg[l.iconName]);else if(e)e.iconName&&(e.iconName=Yg[e.iconName]);else if(X){O=_.G(X.defaultButtonViewModel,_.s3);l=_.G(X.toggledButtonViewModel,_.s3);X=void 0;if((X=O)==null?0:X.iconName)O.iconName=Yg[O.iconName];O=void 0;if((O=l)==null?0:O.iconName)l.iconName=Yg[l.iconName]}}}else Z=z();return Z}},function(Z){return _.T(_.t_,{data:function(){return Z}},{buttonViewModel:function(B){return _.T(_.lT,{data:B.data,
buttonOverrides:N})},
likeButtonViewModel:function(B){return _.T(_.uA,{data:B.data,buttonShapeOverrideables:N})},
dislikeButtonViewModel:function(B){return _.T(_.$k,{data:B.data,buttonShapeOverrideables:N})},
toggleButtonViewModel:function(B){return _.T(_.cm,{data:B.data,buttonShapeOverrides:N})}})}))},"lk");_.SCq=function(M){_.wS.call(this);var z=this;this.JSC$22791_watchApi=M;M=_.S(_.kE({},void 0,"n9wCVe"));this.quickActionsViewModel=M.next().value;this.setQuickActionsViewModel=M.next().value;M=_.S(_.kE({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=M.next().value;this.setPlayerOverlayVideoDetailsRenderer=M.next().value;var J=this.JSC$22791_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Pmq(z)});
this.addOnDisposeCallback(function(){z.JSC$22791_watchApi.unsubscribeByKey(J)});
Pmq(this)};
_.w(_.SCq,_.wS);
var Pmq=function(M){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x;_.k(function(m){if(m.nextAddress==1)return m.yield(M.JSC$22791_watchApi.playerApi,2);z=m.yieldResult;J=M.JSC$22791_watchApi.getWatchNextResponse();N=(R=J)==null?void 0:(D=R.playerOverlays)==null?void 0:D.playerOverlayRenderer;B=_.G((Z=N)==null?void 0:Z.fullscreenQuickActionsBar,_.JV$);(X=(O=M).setQuickActionsViewModel)==null||X.call(O,B||{});B&&ZWA(M,z);Q=(l=N)==null?void 0:(e=l.videoDetails)==null?void 0:e.playerOverlayVideoDetailsRenderer;(x=(v=
M).setPlayerOverlayVideoDetailsRenderer)==null||x.call(v,Q||{});Q&&kzr(M,z);_.UI(m)})},ZWA=function(M,z){if(!M.quickActionButtonsContainer)if(z.setFullscreenQuickActions){M.quickActionButtonsContainer=document.createElement("div");
z.setFullscreenQuickActions(M.quickActionButtonsContainer);var J=function(){return M.quickActionsViewModel().quickActionButtons||[]},R=_.ph(M.quickActionButtonsContainer,function(){return _.T(NSi,{data:J})});
M.addOnDisposeCallback(function(){z.setFullscreenQuickActions(void 0);R()})}else _.yA(new _.xN("setFullscreenQuickActions not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))},kzr=function(M,z){if(!M.playerOverlayVideoDetailsRendererContainer)if(z.setPlayerOverlayVideoDetailsRenderer){M.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
z.setPlayerOverlayVideoDetailsRenderer(M.playerOverlayVideoDetailsRendererContainer);var J=_.ph(M.playerOverlayVideoDetailsRendererContainer,function(){return _.T(D$i,{data:M.playerOverlayVideoDetailsRenderer})});
M.addOnDisposeCallback(function(){z.setPlayerOverlayVideoDetailsRenderer(void 0);J()})}else _.yA(new _.xN("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))};_.mu=function(M){_.wS.call(this);var z=this;this.JSC$22797_watchApi=M;this.JSC$22797_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;M=_.jx(_.rA(),_.HS,function(J){z.onFullscreenChanged(J)});
this.addOnDisposeCallback(M);M=_.jx(_.rA(),_.FI,function(J){z.onWatchScroll(J)});
this.addOnDisposeCallback(M);_.U("kevlar_watch_while_v2")&&(M=_.jx(_.rA(),_.HA,function(J){BSd(z,J)}),this.addOnDisposeCallback(M));
OW3(this);TSw(this);I0q();this.onWatchScroll(_.FI(_.rA().getState()));_.cW("START_IN_FULL_WINDOW_MODE")&&this.JSC$22797_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.w(_.mu,_.wS);var OW3=function(M){M.JSC$22797_watchApi.registerActionHandler("yt-fullscreen-change-action",function(z){var J=M.JSC$22797_watchApi.isActive();z&&!J||_.rA().dispatch(_.Nv({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!z}}))});
M.addOnDisposeCallback(function(){M.JSC$22797_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},TSw=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22797_watchApi.playerApi,2);z=R.yieldResult;J=function(){M.onFullerscreenEduClicked()};
z.addEventListener("onFullerscreenEduClicked",J);M.addOnDisposeCallback(function(){z.removeEventListener("onFullerscreenEduClicked",J)});
_.UI(R)})};
_.mu.prototype.onFullscreenChanged=function(M){var z=this,J;return _.k(function(R){if(R.nextAddress==1)return z.isFullscreen=!!_.zV(),R.yield(z.JSC$22797_watchApi.playerApi,2);J=R.yieldResult;z.JSC$22797_miniplayerActive||J.setFauxFullscreen(z.isFullscreen);if(M&&(z.JSC$22797_watchApi.focusOnPlayer(),!z.fullerscreenEduButtonShownThisPlayback)){z.fullerscreenEduButtonShownThisPlayback=!0;var D=_.UE("yt-fullerscreen-edu-button-shown-count")||0;_.Qo("yt-fullerscreen-edu-button-shown-count",D+1,31536E3);
z.updateFullerscreenEduButtonSubtleModeState()}_.UI(R)})};
var BSd=function(M,z){var J;_.k(function(R){if(R.nextAddress==1)return M.JSC$22797_miniplayerActive=z,R.yield(M.JSC$22797_watchApi.playerApi,2);J=R.yieldResult;J.setFauxFullscreen(!M.JSC$22797_miniplayerActive&&M.isFullscreen);_.UI(R)})};
_.mu.prototype.onWatchScroll=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return _.U("external_fullscreen_with_edu")?D.yield(z.JSC$22797_watchApi.playerApi,2):D.return();J=D.yieldResult;R=M<=0;z.shouldShowFullerscreenEdu!==R&&(z.shouldShowFullerscreenEdu=R,J.updateFullerscreenEduButtonVisibility(!z.shouldShowFullerscreenEdu));_.UI(D)})};
_.mu.prototype.onFullerscreenEduClicked=function(){this.JSC$22797_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var M=_.UE("yt-fullerscreen-edu-button-click-count")||0;_.Qo("yt-fullerscreen-edu-button-click-count",M+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.mu.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var M=this,z,J,R,D,N,Z;return _.k(function(B){if(B.nextAddress==1)return z=_.UE("yt-fullerscreen-edu-button-click-count")||0,J=_.UE("yt-fullerscreen-edu-button-shown-count")||0,R=_.NC("external_fullscreen_button_click_threshold"),D=_.NC("external_fullscreen_button_shown_threshold"),N=z>=R||J>=D,B.yield(M.JSC$22797_watchApi.playerApi,2);Z=B.yieldResult;Z.updateFullerscreenEduButtonSubtleModeState(N);_.UI(B)})};
_.mu.prototype.disposeInternal=function(){_.wS.prototype.disposeInternal.call(this);var M=_.zV();_.U("kevlar_exit_fullscreen_leaving_watch")&&M&&_.Jd(M)};
var I0q=function(){if(_.U("web_watch_add_viewport_meta_tag")){var M=document.querySelector("meta[name=viewport]"),z=document.head;z&&!M&&(M=document.createElement("meta"),M.name="viewport",M.content="width=device-width, initial-scale=1.0, viewport-fit=cover",z.appendChild(M))}};_.gW=function(M){_.wS.call(this);var z=this;this.JSC$22801_watchApi=M;this.jobId=0;this.pendingRequestId=void 0;var J=this.JSC$22801_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oF4(z)});
this.addOnDisposeCallback(function(){z.JSC$22801_watchApi.unsubscribeByKey(J)});
oF4(this)};
_.w(_.gW,_.wS);var X6i=function(M){_.no.cancelJob(M.jobId);M.pendingRequestId=void 0},oF4=function(M){X6i(M);
var z=xBq(M.JSC$22801_watchApi.getWatchNextResponse());if(z){var J=250,R,D=(R=_.G(z,_.Mx$))==null?void 0:R.initialDelayMs;_.U("web_watch_updated_metadata_server_initial_delay")&&D&&(J=D);M.jobId=_.no.addLowPriorityJob(function(){return M.fetchUpdatedMetadata(z)},J)}};
_.gW.prototype.fetchUpdatedMetadata=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H;return _.k(function(q){switch(q.nextAddress){case 1:z&&(R={continuation:z});if(!_.U("web_get_updated_metadata_fantasy_panel_continuation_params")){q.jumpTo(2);break}D=_.JF().resolve(_.nx);N="PAsports_fantasy";return q.yield(D.isVisible(N,!0),3);case 3:q.yieldResult&&(X=(B=(Z=D).getUpdatePanelContinuationData)==null?void 0:(O=B.call(Z,N))==null?void 0:O.updatePanelContinuationRequest)&&(R||(R={}),R.clientParams=
{panelContinuationParams:{panelContinuation:X}});case 2:l=_.JF().resolve(_.cP);if(!l)return _.nc(Error("Co")),q.return();e={};J.pendingRequestId=e;return q.yield(_.fn(l,M,R),4);case 4:Q=q.yieldResult;if(e!==J.pendingRequestId)return q.return();m=(v=Q)==null?void 0:(x=v.continuation)==null?void 0:x.timedContinuationData;((y=m)==null?0:y.continuation)&&((H=m)==null?0:H.timeoutMs)&&(J.jobId=_.no.addLowPriorityJob(function(){return J.fetchUpdatedMetadata(M,m.continuation)},m.timeoutMs));
_.UI(q)}})};
_.gW.prototype.disposeInternal=function(){_.wS.prototype.disposeInternal.call(this);X6i(this)};var l0q=_.Mf(function(M){var z=_.ol(function(){var R=M.data().videoId;if(M.active())R=_.zr(R),_.JF().resolve(_.Rb).resolveCommand(R);else{var D=M.playerApi(),N=D.getAvailableAudioTracks(),Z,B,O=(Z=M.sourceVideoConfig().audioTracks)==null?void 0:(B=Z.find(function(X){return X.isDefaultForSource}))==null?void 0:B.id;
if(N=N.find(function(X){return X.getLanguageInfo().getId()===O}))D.setAudioTrack(N,!0),D.setCompositeParam({activeVideoId:R}),M.setActiveSourceId(R)}}),J={};
return _.T("ytw-composite-source-video-overlay",{class:_.Qe("ytwCompositeSourceVideoOverlayHost",(J.ytwCompositeSourceVideoOverlayActive=M.active,J.ytwCompositeSourceVideoOverlayInteracting=M.interacting,J)),style:_.UN({left:function(){var R;return((R=M.data().topLeftCornerX)!=null?R:0)*100+"%"},
top:function(){var R;return((R=M.data().topLeftCornerY)!=null?R:0)*100+"%"},
width:function(){var R;return((R=M.data().width)!=null?R:0)*100+"%"},
height:function(){var R;return((R=M.data().height)!=null?R:0)*100+"%"}}),
"on:click":z},_.T("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"mk");var eB3=_.Mf(function(M){var z=_.S(_.eh(function(){var Z,B=(Z=M.data().sources)==null?void 0:Z.find(function(O){return O.isActive});
if(B)return B.videoId})),J=z.next().value,R=z.next().value;
z=_.S(_.kE(!1,void 0,"WI4BUb"));var D=z.next().value,N=z.next().value;return _.T("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.ol(function(){N(!0)}),
"on:mouseout":_.ol(function(){N(!1)})},_.T(_.I,{cond:function(){return M.data().sources},
then:function(Z){return _.T(_.G4,{each:Z},function(B){return _.T(l0q,{data:B,active:function(){return B.videoId===J()},
setActiveSourceId:R,interacting:D,playerApi:M.playerApi,sourceVideoConfig:function(){return tar(M.compositeVideoConfig(),B.videoId)}})})}}))},"nk");_.vFi=function(M){_.wS.call(this);this.JSC$22817_watchApi=M;M=_.S(_.kE({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=M.next().value;this.setCompositeVideoOverlayRenderer=M.next().value;M=_.S(_.kE({},void 0,"OlaJpc"));this.compositeVideoConfig=M.next().value;this.setCompositeVideoConfig=M.next().value;Q2r(this);U$q(this)};
_.w(_.vFi,_.wS);var Q2r=function(M){var z=M.JSC$22817_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){U$q(M)});
M.addOnDisposeCallback(function(){M.JSC$22817_watchApi.unsubscribeByKey(z)})},Gzq=function(M){var z;
return _.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22817_watchApi.playerApi,2);z=J.yieldResult;z.setCompositeVideoOverlayRendererComponent(M.container);_.UI(J)})},w63=function(M){var z;
return _.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22817_watchApi.playerApi,2);z=J.yieldResult;z.setCompositeVideoOverlayRendererComponent(void 0);_.UI(J)})},x$4=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22817_watchApi.playerApi,2);z=R.yieldResult;M.container=document.createElement("div");J=_.ph(M.container,function(){return _.T(eB3,{data:M.compositeVideoOverlayRenderer,compositeVideoConfig:M.compositeVideoConfig,playerApi:z})});
M.addOnDisposeCallback(J);_.UI(R)})},U$q=function(M){var z,J,R,D,N,Z,B,O;
_.k(function(X){return X.nextAddress==1?(z=M.JSC$22817_watchApi.getPlayerResponse(),N=_.G((J=z)==null?void 0:(R=J.overlay)==null?void 0:(D=R.playerControlsOverlayRenderer)==null?void 0:D.compositeVideoOverlay,oGw),O=(Z=z)==null?void 0:(B=Z.playerConfig)==null?void 0:B.compositeVideoConfig,N&&M.setCompositeVideoOverlayRenderer(N),O&&M.setCompositeVideoConfig(O),N&&O?M.container?X.jumpTo(6):X.yield(x$4(M),6):tJA(M)?X.yield(w63(M),0):X.jumpTo(0)):tJA(M)?X.jumpTo(0):X.yield(Gzq(M),0)})},tJA=function(M){var z;
return!((z=M.container)==null||!z.parentElement)};
_.vFi.prototype.disposeInternal=function(){tJA(this)&&w63(this);_.wS.prototype.disposeInternal.call(this)};_.m$A=function(M){_.wS.call(this);var z=this;this.JSC$22823_watchApi=M;var J=this.JSC$22823_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var R=z.JSC$22823_watchApi.getPlayerResponse();if(R){var D,N;if(R=_.G((D=R.endscreen)==null?void 0:(N=D.endscreenRenderer)==null?void 0:N.hideButton,_.nf)){var Z;(Z=z.setEndscreenHideButton)==null||Z.call(z,R);j24(z)}}});
this.addOnDisposeCallback(function(){z.JSC$22823_watchApi.unsubscribeByKey(J)});
M=_.S(_.kE({},void 0,"ER3tqb"));this.endscreenHideButton=M.next().value;this.setEndscreenHideButton=M.next().value;p6i(this);Fqi(this);YCw(this)};
_.w(_.m$A,_.wS);var j24=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return M.creatorEndscreenHideButtonContainer?R.return():R.yield(M.JSC$22823_watchApi.playerApi,2);z=R.yieldResult;M.creatorEndscreenHideButtonContainer=document.createElement("div");_.a2(M.creatorEndscreenHideButtonContainer,!1);z.setCreatorEndscreenHideButton(M.creatorEndscreenHideButtonContainer);J=_.ph(M.creatorEndscreenHideButtonContainer,function(){return _.T(_.cm,{data:M.endscreenHideButton,useOutlinedIcon:!0})});
M.addOnDisposeCallback(function(){J();var D;(D=z)==null||D.setCreatorEndscreenHideButton(void 0)});
_.UI(R)})},p6i=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22823_watchApi.playerApi,2);z=R.yieldResult;J=function(){M.creatorEndscreenHideButtonContainer&&_.a2(M.creatorEndscreenHideButtonContainer,!0)};
z.addEventListener("endscreenelementshown",J);M.addOnDisposeCallback(function(){var D;(D=z)==null||D.removeEventListener("endscreenelementshown",J)});
_.UI(R)})},Fqi=function(M){var z=function(){M.creatorEndscreenHideButtonContainer&&_.a2(M.creatorEndscreenHideButtonContainer,!1)},J=M.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",z),R=M.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",z);
M.addOnDisposeCallback(function(){M.JSC$22823_watchApi.unsubscribeByKey(J);M.JSC$22823_watchApi.unsubscribeByKey(R)})},YCw=function(M){M.JSC$22823_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(z){var J=_.G(z,ZwA);
M.JSC$22823_watchApi.playerApi.then(function(R){R==null||R.setCreatorEndscreenVisibility(!!J.hide)})});
M.addOnDisposeCallback(function(){M.JSC$22823_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.s2w=function(M){_.wS.call(this);this.JSC$22829_watchApi=M;gFd(this)};
_.w(_.s2w,_.wS);var gFd=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22829_watchApi.playerApi,2);z=R.yieldResult;J=function(D){_.rA().dispatch(_.Nv({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:D}}))};
z.addEventListener("onRetroModeChanged",J);M.addOnDisposeCallback(function(){z.removeEventListener("onRetroModeChanged",J)});
_.UI(R)})};var nt=0,sg=0,hc=0;var nFA;nFA=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.sl=function(M){_.wS.call(this);this.JSC$22842_watchApi=M;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;hBA(this)};
_.w(_.sl,_.wS);
var hBA=function(M){var z,J,R;_.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$22842_watchApi.playerApi,2);z=D.yieldResult;if(M.isDisposed())return D.return();M.sessionStorage=_.srG("yt-sleep-timer");M.sessionStorage||_.yA(new _.xN("SessionStorage for Sleep Timer is undefined."));((J=M.sessionStorage)==null?void 0:J.get("yt-sleep-timer"))==="true"&&(ySq(),(R=M.sessionStorage)==null||R.remove("yt-sleep-timer"),z.syncVolume());yKr(M,z);HW3(M,z);cKi(M,z);_.UI(D)})},yKr=function(M,z){var J=function(X){M.onSleepTimerSettingsChanged(X,
z)},R=function(X){M.onPlayerStateChange(X,z)},D=function(){M.onLoopChange(z)},N=function(){M.onCloseMiniplayer(z)},Z=function(){gpw(z,(0,_.zU)(),Hvd(z),M.selectedOption==="End of video",z.getPlayerState()!==1)},B=function(){M.onSeekComplete(z)},O=function(){_.no.cancelJob(sg);
var X=z.getCurrentTime()>=z.getDuration(),l=M.selectedOption==="End of video"||M.selectedOption==="End of playlist"&&!F$s(M.playlistId);X&&l&&d$A(M,z)};
z.addEventListener("onSleepTimerSettingsChanged",J);z.addEventListener("onLoopChange",D);z.addEventListener("onLoopRangeChange",D);z.addEventListener("onStateChange",R);z.addEventListener("onCloseMiniplayer",N);z.addEventListener("onSleepTimerFeatureAvailable",Z);z.addEventListener("SEEK_COMPLETE",B);z.addEventListener("onAdStart",O);M.addOnDisposeCallback(function(){z.removeEventListener("onSleepTimerSettingsChanged",J);z.removeEventListener("onLoopChange",D);z.removeEventListener("onLoopRangeChange",
D);z.removeEventListener("onStateChange",R);z.removeEventListener("onCloseMiniplayer",N);z.removeEventListener("onSleepTimerFeatureAvailable",Z);z.removeEventListener("SEEK_COMPLETE",B);z.removeEventListener("onAdStart",O)})},HW3=function(M,z){var J=M.JSC$22842_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var R=z.getVideoData().video_id,D,N=(D=jkq(M.JSC$22842_watchApi))==null?void 0:D.playlistId;
M.pauseAutonavPlayback&&(z.pauseVideo(),z.syncVolume(),M.pauseAutonavPlayback=!1);if(M.selectedOption==="End of video"&&R!==M.videoId)n5(M,z);else{if(M.selectedOption==="End of playlist"){D=F$s(M.playlistId);if(N!==M.playlistId){n5(M,z);break a}D?D&&Kqi(M,z):$$q(M,z)}M.videoId=R;M.playlistId=N}}});
M.addOnDisposeCallback(function(){M.JSC$22842_watchApi.unsubscribeByKey(J)})},cKi=function(M,z){var J=_.JF().resolve(_.Vo),R=_.jx(J,_.Vx8,function(N){N&&M.selectedOption!=="Off"&&n5(M,z)}),D=M.JSC$22842_watchApi.subscribeToActiveChanged(function(N){var Z,B;
return _.k(function(O){if(O.nextAddress==1)return O.yield(_.x9().navigationFinishPromise,2);Z=!_.X8p();B=_.JF().resolve(_.q5).isMiniplayerActive();N||!gT(M.selectedOption)||B||Z||n5(M,z);_.UI(O)})},!1);
J=_.jx(J,function(N){return N.entities.playlistLoopStateEntity||{}},function(N){N=N===void 0?{}:N;
var Z=puZ(M.JSC$22842_watchApi);if(Z){var B;((B=N[Z])==null?void 0:B.state)==="PLAYLIST_LOOP_STATE_ALL"&&gT(M.selectedOption)&&n5(M,z)}});
M.addOnDisposeCallback(R);M.addOnDisposeCallback(J);M.addOnDisposeCallback(D)};
_.sl.prototype.onSleepTimerSettingsChanged=function(M,z){switch(M){case "Off":this.selectedOption!=="Off"&&n5(this,z);break;case "End of video":case "End of playlist":u_3(this,M,z);break;default:u_3(this,M,z,nFA.get(M))}};
_.sl.prototype.onLoopChange=function(M){(M.getLoopVideo()||M.getLoopRange())&&gT(this.selectedOption)&&n5(this,M)};
_.sl.prototype.onCloseMiniplayer=function(M){gT(this.selectedOption)&&n5(this,M)};
var u_3=function(M,z,J,R){qCi(M,J);M.selectedOption=z;M.videoId=J.getVideoData().video_id;M.playlistId="";var D;(D=M.sessionStorage)==null||D.set("yt-sleep-timer","true");M.adjustmentsCount++;gpw(J,(0,_.zU)(),Hvd(J),M.selectedOption==="End of video");if(M.selectedOption==="End of video")$$q(M,J),Wqs(M,J);else if(M.selectedOption==="End of playlist"){Wqs(M,J);var N,Z;M.playlistId=(Z=(N=jkq(M.JSC$22842_watchApi))==null?void 0:N.playlistId)!=null?Z:"";F$s(M.playlistId)||$$q(M,J)}else R&&(M.presetFadeSchedulerId=
_.mn(_.no,function(){npq(J,15E3)},R-15E3),M.presetPauseSchedulerId=_.mn(_.no,function(){d$A(M,J)},R),skw(J,(0,_.zU)(),R))},d$A=function(M,z){if(M.JSC$22842_watchApi.isActive()){var J={dismissDialogEndpoint:{}};
var R={commandExecutorCommand:{commands:[J,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};J={buttonViewModel:{title:_.e9("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:J}}};R={buttonViewModel:{title:_.e9("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:R}}};var D={dialogHeaderViewModel:{headline:{content:_.e9("SLEEP_TIMER_ENDED_TITLE")}}},
N={basicContentViewModel:{paragraphs:[{text:{content:_.e9("SLEEP_TIMER_ENDED_TEXT")}}]}};J={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:D,content:N,footer:{panelFooterViewModel:{primaryButton:J,secondaryButton:R,shouldHideDivider:!0}}}}}}};_.JF().resolve(_.Rb).resolveCommand(J,{form:{element:M}})}else ySq();a0w(M,!1);VJE(M,z);z.pauseVideo();_.NJ.getInstance().getState()===2&&z.getPlayerState()===5&&(M.pauseAutonavPlayback=!0)},n5=function(M,z){a0w(M,!0);
VJE(M,z);ySq()},VJE=function(M,z){qCi(M,z);
M.selectedOption="Off";M.videoId="";M.playlistId="";M.adjustmentsCount=0;var J;(J=M.sessionStorage)==null||J.remove("yt-sleep-timer");_.no.cancelJob(nt);z.resetSleepTimerMenuSettings()},a0w=function(M,z){z={timer_length_adjustment_times_during_session:M.adjustmentsCount-1,
is_session_cancelled:z};switch(M.selectedOption){case "Off":z.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:z.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",z.option_duration_in_minutes=nFA.get(M.selectedOption)/6E4}_.gP("sleepTimerSessionFinishEvent",z)};
_.sl.prototype.onPlayerStateChange=function(M,z){M===1?gpw(z,(0,_.zU)(),Hvd(z),this.selectedOption==="End of video"):M===0?(_.no.cancelJob(sg),z.setVideoTimeLeft(mBA(0,0))):M===2&&_.no.cancelJob(sg);this.selectedOption==="End of video"?M===0?d$A(this,z):M===2&&h2A(z):this.selectedOption!=="End of playlist"||F$s(this.playlistId)||(M===0?d$A(this,z):M===2&&h2A(z))};
_.sl.prototype.onSeekComplete=function(M){M.getPlayerState()===2&&gpw(M,(0,_.zU)(),Hvd(M),this.selectedOption==="End of video",!0)};
_.sl.prototype.onCueRangeEnter=function(M,z){M==="sleep-timer-fade-audio"&&npq(z,(z.getDuration()-z.getProgressState().current)*1E3)};
_.sl.prototype.onCueRangeExit=function(M,z){M==="sleep-timer-fade-audio"&&z.getPlayerState()!==0&&h2A(z,!0)};
var $$q=function(M,z){z.addCueRange("sleep-timer-fade-audio",z.getDuration()-15,z.getDuration());z.addEventListener("onCueRangeEnter",function(J){M.onCueRangeEnter(J,z)});
z.addEventListener("onCueRangeExit",function(J){M.onCueRangeExit(J,z)})},Kqi=function(M,z){z.removeCueRange("sleep-timer-fade-audio");
z.removeEventListener("onCueRangeEnter",function(J){M.onCueRangeEnter(J,z)});
z.removeEventListener("onCueRangeExit",function(J){M.onCueRangeExit(J,z)})},qCi=function(M,z){gT(M.selectedOption)?Kqi(M,z):(_.no.cancelJob(M.presetPauseSchedulerId),_.no.cancelJob(M.presetFadeSchedulerId),M.presetPauseSchedulerId=0,M.presetFadeSchedulerId=0);
h2A(z,!0)},Wqs=function(M,z){z.setLoop(!1);
z.setLoopVideo(!1);z.setLoopRange(null);(M=puZ(M.JSC$22842_watchApi))&&_.JF().resolve(_.Vo).dispatch(_.pf("playlistLoopStateEntity",M,{key:M,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.AKi=function(M){_.wS.call(this);this.JSC$22845_watchApi=M;EFA(this);f0i(this);Lqr(this);M=M.getRoot();if(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-grid")M.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.reA();_.U("web_watch_log_theater_mode_cookie_state")&&_.Qy.get("wide","0")==="1"&&_.s7R("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.w(_.AKi,_.wS);var EFA=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22845_watchApi.playerApi,2);z=R.yieldResult;J=function(D){iWA(M,!!D)};
z.addEventListener("SIZE_CLICKED",J);M.addOnDisposeCallback(function(){z.removeEventListener("SIZE_CLICKED",J)});
_.UI(R)})},f0i=function(M){M.JSC$22845_watchApi.registerActionHandler("yt-toggle-theater-mode",function(z,J){iWA(M,z,J===void 0?!0:J)});
M.addOnDisposeCallback(function(){M.JSC$22845_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.AKi.prototype.getState=function(){return _.ye(_.rA().getState())};
var iWA=function(M,z,J){J=J===void 0?!0:J;var R,D,N,Z=_.U("enable_player_resize_transition")&&!!M.JSC$22845_watchApi.getWatchNextResponse()&&!((R=M.JSC$22845_watchApi.getWatchNextResponse())==null?0:(D=R.contents)==null?0:(N=D.twoColumnWatchNextResults)==null?0:N.conversationBar);_.Kql(function(){_.rA().dispatch(_.Nv({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:z}}));_.U("theater_mode_scroll_to_top_killswitch")||M.JSC$22845_watchApi.scrollWatchTo(0,!1);_.zV()&&_.U("external_fullscreen")&&_.Jd(document.documentElement);
Lqr(M);J&&_.U7("wide",z?"1":"0",-1);_.S9(M.JSC$22845_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);M.JSC$22845_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:z});z&&_.reA()},{shouldWrap:Z})},Lqr=function(M){var z;
_.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22845_watchApi.playerApi,2);z=J.yieldResult;z.setSizeStyle(!0,M.getState());_.UI(J)})};var rKi=function(M){_.wS.call(this);var z=this;this.playerApi=M;this.timeToPanelSyncKeyMap={};var J;if(M==null?0:(J=M.isReady)==null?0:J.call(M)){J=_.jx(_.JF().resolve(_.Vo),function(D){return D.entities.timedMarkersListSyncEntity||{}},function(D,N){D=D===void 0?{}:D;
N=N===void 0?{}:N;for(var Z=_.S(Object.keys(N)),B=Z.next();!B.done;B=Z.next())B=B.value,D[B]!==N[B]&&CmE(z,N[B]);N=_.S(Object.keys(D));for(Z=N.next();!Z.done;Z=N.next())Z=Z.value,B=D[Z],z.timeToPanelSyncKeyMap[Z]&&bW4(z,B)});
this.addOnDisposeCallback(J);var R=function(D){z.onCueRangeEnter(D)};
M.addEventListener("onCueRangeEnter",R);this.addOnDisposeCallback(function(){var D;(D=M.removeEventListener)==null||D.call(M,"onCueRangeEnter",R)})}};
_.w(rKi,_.wS);
var bW4=function(M,z){var J,R;if((J=M.playerApi)==null?0:(R=J.isReady)==null?0:R.call(J)){var D;if((J=z==null?void 0:(D=z.timedListData)==null?void 0:D.sections)&&z!=null&&z.key)for(D=_.S(J),J=D.next();!J.done;J=D.next())if(J=J.value,J.timedSyncDataList&&J.sectionId)for(R=0;R<J.timedSyncDataList.length;R++){var N=J.timedSyncDataList[R];N.syncItemId&&M.playerApi.addCueRange(J.sectionId+"_"+z.key+"_"+N.syncItemId,Number(N.videoTimeMs)/1E3,R===J.timedSyncDataList.length-1?0x8000000000000:Number(J.timedSyncDataList[R+
1].videoTimeMs)/1E3)}}},CmE=function(M,z){var J,R;
if((J=M.playerApi)==null?0:(R=J.isReady)==null?0:R.call(J)){var D;if((J=z==null?void 0:(D=z.timedListData)==null?void 0:D.sections)&&z!=null&&z.key)for(D=_.S(J),J=D.next();!J.done;J=D.next())if(J=J.value,J.timedSyncDataList&&J.sectionId){R=_.S(J.timedSyncDataList);for(var N=R.next();!N.done;N=R.next())N=N.value,N.syncItemId&&M.playerApi.removeCueRange(J.sectionId+"_"+z.key+"_"+N.syncItemId)}}};
rKi.prototype.onCueRangeEnter=function(M){for(var z=_.S(Object.keys(this.timeToPanelSyncKeyMap)),J=z.next();!J.done;J=z.next()){J=J.value;var R=_.S(M.split("_"+J+"_")),D=R.next().value;R=R.next().value;if(D&&R){M=_.JF().resolve(_.Vo);z=this.timeToPanelSyncKeyMap[J];var N=_.gao(M.getState(),z);J=MPw(J,D,R);if(J===-1)break;J={activeSyncId:R,activeItemIndex:J,activeSectionInfo:{sectionIdentifier:D}};N?M.dispatch(_.hk("markersEngagementPanelSyncEntity",z,J)):M.dispatch(_.pf("markersEngagementPanelSyncEntity",
z,Object.assign({},{key:z},J)));break}}};
var MPw=function(M,z,J){var R=_.JF().resolve(_.Vo),D,N;M=(D=Lw4(R.getState(),M))==null?void 0:(N=D.timedListData)==null?void 0:N.sections;if(!M)return-1;D=0;N=_.S(M);for(M=N.next();!M.done;M=N.next()){M=M.value;R=M.timedSyncDataList||[];if(M.sectionId===z)return z=R.findIndex(function(Z){return Z.syncItemId===J}),z===-1?z:D+z;
D+=R.length}return-1};_.RSr=function(M){_.wS.call(this);var z=this;this.JSC$22858_watchApi=M;this.unresolvedCommands=[];this.JSC$22858_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(J){zSq(z,J)});
this.addOnDisposeCallback(function(){z.JSC$22858_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
JPi(this)};
_.w(_.RSr,_.wS);var JPi=function(M){var z;_.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22858_watchApi.playerApi,2);z=J.yieldResult;if(M.isDisposed())return J.return();M.timedSyncObserver=new rKi(z);M.unresolvedCommands.length&&(M.unresolvedCommands.forEach(function(R){return zSq(M,R)}),M.unresolvedCommands=[]);
_.OC(M,M.timedSyncObserver);_.UI(J)})},zSq=function(M,z){if(M.timedSyncObserver){var J=_.G(z,Bld);
if(J&&J.timedSyncEntityKey&&J.panelSyncEntityKey){M=M.timedSyncObserver;z=J.timedSyncEntityKey;var R=J.panelSyncEntityKey;J=!!J.isEnabled;J=J===void 0?!0:J;var D=_.JF().resolve(_.Vo);D=Lw4(D.getState(),z);J?M.timeToPanelSyncKeyMap[z]||(M.timeToPanelSyncKeyMap[z]=R,bW4(M,D)):(delete M.timeToPanelSyncKeyMap[z],CmE(M,D))}}else M.unresolvedCommands.push(z)};var Dai=_.Mf(function(M){var z=M.data,J=M.maybeLogSmartSkipClientData,R=null,D=null,N=_.U("web_enable_auto_focus_for_timely_action_button"),Z=function(){R=document.activeElement},B=function(){z().smartSkipMetadata&&(R=document.activeElement,_.xel(function(){return D}))},O=function(l){if(z().smartSkipMetadata&&(!l||l.key!=="Enter")){R&&R.isConnected&&(_.xel(function(){return R}),R=null);
var e;(e=D)==null||e.blur()}};
M=_.ol(function(){J==null||J(!0,z());return!1});
var X=_.zL(_.uE(function(){return z().rendererContext},{onTap:function(l,e){e({disableClickTracking:!0})}}),_.J1({visibilityCallback:function(l){if(N)l?D&&z().smartSkipMetadata&&(B(),document.addEventListener("focusin",Z)):(document.removeEventListener("focusin",Z),O());
else if(l){l=_.dZ(z().rendererContext);var e=Number(z().maxVisibleDurationMilliseconds),Q,v=(Q=_.G(z().rendererContext,_.pM))==null?void 0:Q.label;l&&e&&v&&(Q={label:v,command:l,durationMs:e},_.JF().resolve(_.g1).enqueue(Q))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.FT(function(){if(N){var l;if((D=(l=X.value)==null?void 0:l.querySelector("button"))&&z().smartSkipMetadata){var e;(e=X.value)==null||e.addEventListener("keydown",O)}}});
_.pq(function(){N&&(D&&z().smartSkipMetadata&&D.removeEventListener("keydown",O),document.removeEventListener("focusin",Z),O())});
return _.T("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:X,"on:click":M},_.T(_.t_,{data:function(){return z().content}},{buttonViewModel:_.lT}))},"ok");var Nfr=_.Mf(function(M){var z=M.data,J=M.playerApi,R=_.JF().resolve(_.Y8G);M=_.S(_.eh(function(){z()}));
var D=M.next().value,N=M.next().value,Z=function(){return dBq(z(),D())},B=function(X,l){var e,Q,v=(e=_.G(l==null?void 0:l.rendererContext,_.wv))==null?void 0:(Q=e.loggingDirectives)==null?void 0:Q.trackingParams;
if((l=l==null?void 0:l.smartSkipMetadata)&&l.loggingData&&(Q=l.loggingData,l=Q.algorithmId,e=Q.startMilliseconds,Q=Q.endMilliseconds,l&&e!==void 0&&Q!==void 0)){var x,m;X={smartSkipData:Object.assign({},{versionName:l,startMediaTimeMs:e,endMediaTimeMs:Q},X&&{userInteractionMediaTimeMs:(Math.floor(((x=_.J_())==null?void 0:(m=x.getPlayer())==null?void 0:m.getCurrentTime())||0)*1E3).toString()})};x=_.y5();var y;v&&(y=_.pe(v));x&&y&&_.Ad(x,y,X)}},O=function(X,l){var e=dBq(z(),X);
if(e){var Q=_.G(e,yl),v;if(v=l)v=J(),e=_.G(e,yl),v=e!=null&&e.smartSkipMetadata?!(v==null?0:v.isSameMarkerTypeVisible((e==null?void 0:e.smartSkipMetadata.markerKey)||"")):!0;if(v){var x,m;(Q==null?0:(x=Q.smartSkipMetadata)==null?0:(m=x.loggingData)==null?0:m.isCounterfactual)||(B(!1,Q),N(X))}else l||D()!==X||N(void 0)}};
_.jP(function(){var X=z().timelyActions;if(X){X=_.S(X);for(var l=X.next();!l.done;l=X.next()){l=_.G(l.value,yl);var e=void 0;(e=l)!=null&&e.cueRangeId&&R.timelyActionsMap.set(l.cueRangeId,O)}_.pq(function(){R.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.T("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.T(_.t_,{data:Z},{timelyActionViewModel:function(X){return _.T(Dai,{data:X.data,maybeLogSmartSkipClientData:function(){B(!0,_.G(Z(),yl))}})}}))},"pk");_.SZw=function(M){_.wS.call(this);this.JSC$22870_watchApi=M;M=_.S(_.kE({},void 0,"UN7k5e"));this.timelyActionsOverlay=M.next().value;this.setTimelyActionsOverlay=M.next().value;P03(this)};
_.w(_.SZw,_.wS);var P03=function(M){var z,J,R,D;_.k(function(N){if(N.nextAddress==1)return ZqA(M),kkw(M),M.timelyActionsContainer=document.createElement("div"),N.yield(M.JSC$22870_watchApi.playerApi,2);z=N.yieldResult;(R=(J=z).insertTimelyActionUi)==null||R.call(J,M.timelyActionsContainer);D=_.ph(M.timelyActionsContainer,function(){return _.T(Nfr,{data:M.timelyActionsOverlay,playerApi:z})});
M.addOnDisposeCallback(D);_.UI(N)})},kkw=function(M){var z=M.JSC$22870_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZqA(M)});
M.addOnDisposeCallback(function(){M.JSC$22870_watchApi.unsubscribeByKey(z)})},ZqA=function(M){var z=M.JSC$22870_watchApi.getWatchNextResponse();
if(z){var J,R;if(z=_.G((J=z.playerOverlays)==null?void 0:(R=J.playerOverlayRenderer)==null?void 0:R.timelyActionsOverlayViewModel,Owi)){var D;(D=M.setTimelyActionsOverlay)==null||D.call(M,z)}}};_.Oqs=function(M){_.wS.call(this);this.JSC$22874_watchApi=M;Bfq(this)};
_.w(_.Oqs,_.wS);var Bfq=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22874_watchApi.playerApi,2);z=R.yieldResult;J=function(D){_.l5.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.G(D,_.ept)},popupType:"TOAST"}})};
z.addEventListener("onYtShowToast",J);M.addOnDisposeCallback(function(){z.removeEventListener("onYtShowToast",J)});
_.UI(R)})};var Tfr,Xlw,vEq,IZA,oEr,Uaq,eSZ,Q4i,GkE,wli;Tfr=!1;_.lZr=function(M){_.wS.call(this);this.JSC$22877_watchApi=M;this.fullscreen=this.theater=!1;IZA(this);oEr(this);Xlw(this)};
_.w(_.lZr,_.wS);Xlw=function(M){var z,J,R;_.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$22877_watchApi.playerApi,2);z=D.yieldResult;if(M.isDisposed())return D.return();J=M.JSC$22877_watchApi.getElement("CINEMATICS");if(!J)return D.return();M.JSC$22877_cinematicController=new _.PF(J,z);_.OC(M,M.JSC$22877_cinematicController);_.$rw(M.JSC$22877_cinematicController);eSZ(M,_.UmG());R=M.JSC$22877_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(N){Q4i(M,N)});
M.addOnDisposeCallback(function(){M.JSC$22877_watchApi.unsubscribeByKey(R)});
Uaq(M);Q4i(M,M.JSC$22877_cinematicController.isAllowed());_.U("web_cinematic_manager_redux_killswitch")?_.hZ(M,M.fullscreen,M.theater):vEq(M);GkE(M);_.UI(D)})};
vEq=function(M){M.fullscreen=_.HS(_.rA().getState());M.theater=_.ye(_.rA().getState());_.hZ(M,M.fullscreen,M.theater);var z=_.jx(_.rA(),_.HS,function(R){M.fullscreen=R;_.hZ(M,M.fullscreen,M.theater)}),J=_.jx(_.rA(),_.ye,function(R){M.theater=R;
_.hZ(M,M.fullscreen,M.theater)});
M.addOnDisposeCallback(z);M.addOnDisposeCallback(J)};
IZA=function(M){var z=M.JSC$22877_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Uaq(M)});
M.addOnDisposeCallback(function(){M.JSC$22877_watchApi.unsubscribeByKey(z)})};
oEr=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22877_watchApi.playerApi,2);z=R.yieldResult;J=function(D){eSZ(M,D)};
z.addEventListener("cinematicSettingsToggleChange",J);M.addOnDisposeCallback(function(){z.removeEventListener("cinematicSettingsToggleChange",J)});
_.UI(R)})};
Uaq=function(M){var z=M.JSC$22877_watchApi.getWatchNextResponse(),J;z=_.G(z==null?void 0:(J=z.pageVisualEffects)==null?void 0:J[0],_.gY);var R;(R=M.JSC$22877_cinematicController)==null||_.qll(R,z)};
eSZ=function(M,z){var J;(J=M.JSC$22877_cinematicController)==null||_.uVl(J,z);wli(M)};
Q4i=function(M,z){var J;_.k(function(R){if(R.nextAddress==1)return _.U("kevlar_watch_cinematics_invisible")&&(z=!1),R.yield(M.JSC$22877_watchApi.playerApi,2);J=R.yieldResult;J.updateCinematicSettings(z);wli(M);_.UI(R)})};
GkE=function(M){var z=_.vv();if(_.U("kevlar_measure_ambient_mode_idle")&&!z.getFlag(192)&&!Tfr){Tfr=!0;var J=_.x4(_.no,function(){_.JF().resolve(_.mE5).start(1E4)},5E3);
M.addOnDisposeCallback(function(){_.no.cancelJob(J);_.JF().resolve(_.mE5).stop()})}};
_.hZ=function(M,z,J){M.fullscreen=z;M.theater=J;var R;(R=M.JSC$22877_cinematicController)==null||R.setFullscreen(M.fullscreen,M.theater);if(_.U("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(M.theater||M.fullscreen){var D;(D=M.JSC$22877_cinematicController)==null||_.Wut(D)}else if((M=M.JSC$22877_cinematicController)!=null){var N;(N=M.currentCinematicEffect)==null||N.pause()}};
wli=function(M){if(_.U("web_cinematic_theater_mode")||_.U("web_cinematic_fullscreen")){var z;M.JSC$22877_watchApi.getRoot().toggleCinematicsActive(!((z=M.JSC$22877_cinematicController)==null||!z.isEnabled()))}};_.plE=function(M){_.wS.call(this);var z=this;this.JSC$22880_watchApi=M;this.commentsReady=!1;this.setCommentsJobId=0;M=_.jx(_.rA(),_.FI,function(){xar(z)});
this.addOnDisposeCallback(M);var J=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){tPq(z)}),R=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){tPq(z)});
this.addOnDisposeCallback(function(){z.JSC$22880_watchApi.unsubscribeByKey(J);z.JSC$22880_watchApi.unsubscribeByKey(R)});
var D=function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&j44(z,"false")};
this.JSC$22880_watchApi.getRoot().addEventListener("yt-page-data-will-update",D);this.addOnDisposeCallback(function(){z.JSC$22880_watchApi.getRoot().removeEventListener("yt-page-data-will-update",D)});
tPq(this)};
_.w(_.plE,_.wS);var tPq=function(M){M.commentsReady=!1;_.no.cancelJob(M.setCommentsJobId);M.setCommentsJobId=_.x4(_.no,function(){xar(M)},1E3)},xar=function(M){if(!M.commentsReady){_.hd("cmi");
_.no.cancelJob(M.setCommentsJobId);var z,J,R,D,N=(z=M.JSC$22880_watchApi.getWatchNextResponse())==null?void 0:(J=z.contents)==null?void 0:(R=J.twoColumnWatchNextResults)==null?void 0:(D=R.results)==null?void 0:D.results.contents;z=void 0;if(N&&N.length)for(N=_.S(N),J=N.next();!J.done;J=N.next())if(J=J.value,D=R=void 0,((R=J)==null?void 0:(D=R.itemSectionRenderer)==null?void 0:D.sectionIdentifier)==="comment-item-section"){_.U("web_watch_provide_undefined_comments")?z=J.itemSectionRenderer:M.JSC$22880_watchApi.provideRenderingData("COMMENTS",
J.itemSectionRenderer);j44(M,"true");break}_.U("web_watch_provide_undefined_comments")&&M.JSC$22880_watchApi.provideRenderingData("COMMENTS",z);M.commentsReady=!0;M.JSC$22880_watchApi.dispatchEvent("yt-watch-comments-ready")}},j44=function(M,z){var J;
(J=M.JSC$22880_watchApi.getElement("COMMENTS"))==null||J.setAttribute("canScheduleJobs",z)};_.gEw=function(M){_.wS.call(this);var z=this;this.JSC$22883_watchApi=M;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.U("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.U("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.U("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.NC("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Ftq(this);
else{var J=this.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y_(z);Hq(z)}),R=this.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cq(z);
Hq(z)});
this.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&_.U("swatcheroo_pbs_load_grid")&&(YZd(this),maq(this));this.addOnDisposeCallback(function(){z.JSC$22883_watchApi.unsubscribeByKey(J);z.JSC$22883_watchApi.unsubscribeByKey(R);_.no.cancelJob(z.provideRichGridJobId)});
y_(this);cq(this)}};
_.w(_.gEw,_.wS);var Ftq=function(M){var z=M.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){M.providePlayerJobId=_.xC(_.no,function(){y_(M);Hq(M)},M.provideAllDataDelayMs)}),J=M.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M.provideWatchNextJobId=_.xC(_.no,function(){cq(M);
Hq(M)},M.provideAllDataDelayMs)}),R=M.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){M.provideWatchNextJobId=_.xC(_.no,function(){cq(M);
Hq(M)},M.provideAllDataDelayMs)});
M.JSC$22883_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.x4(_.no,function(){y_(M);cq(M);Hq(M)},100)});
M.JSC$22883_watchApi.addPageDisposeJob(function(){_.no.cancelJob(M.provideWatchNextJobId);_.no.cancelJob(M.providePlayerJobId)});
M.addOnDisposeCallback(function(){M.JSC$22883_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");M.JSC$22883_watchApi.unsubscribeByKey(z);M.JSC$22883_watchApi.unsubscribeByKey(J);M.JSC$22883_watchApi.unsubscribeByKey(R);_.no.cancelJob(M.providePlayerJobId);_.no.cancelJob(M.provideWatchNextJobId)});
y_(M);cq(M)},y_=function(M){var z=M.JSC$22883_watchApi.getPlayerResponse(),J,R,D=(R=z==null?void 0:(J=z.playabilityStatus)==null?void 0:J.messageRenderers)!=null?R:[],N,Z;
z=(Z=z==null?void 0:(N=z.playabilityStatus)==null?void 0:N.messages)!=null?Z:[];N=_.S(z);for(Z=N.next();!Z.done;Z=N.next())D.push({alertRenderer:{text:_.id(Z.value),type:"WARNING"}});M.JSC$22883_watchApi.provideRenderingData("ALERTS",D)},cq=function(M){var z=[],J,R,D,N=M.JSC$22883_watchApi.getWatchNextResponse(),Z,B,O,X,l=N==null?void 0:(Z=N.contents)==null?void 0:(B=Z.twoColumnWatchNextResults)==null?void 0:(O=B.results)==null?void 0:(X=O.results)==null?void 0:X.contents;
if(l)for(Z=_.S(l),B=Z.next();!B.done;B=Z.next())if(B=B.value,B.videoPrimaryInfoRenderer)var e=B;else if(B.videoSecondaryInfoRenderer){var Q=B;X=O=void 0;B=Object.assign({},(O=B.videoSecondaryInfoRenderer)==null?void 0:(X=O.metadataRowContainer)==null?void 0:X.metadataRowContainerRenderer);if(B.rows&&B.collapsedItemCount!==void 0){B.rows=B.rows.slice(0,B.collapsedItemCount).filter(function(zc){return!!zc.richMetadataRowRenderer});
B.collapsedItemCount=B.rows.length;var v={metadataRowContainerRenderer:B}}}else if(B.merchandiseShelfRenderer)var x=B;else if(B.ticketShelfRenderer)var m=B;else if(B.expandableMetadataRenderer)var y=B;else if(B.itemSectionRenderer)if(O=B.itemSectionRenderer.contents,X=void 0,M.directlyProvideComments&&((X=B.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section")_.hd("cmi"),M.JSC$22883_watchApi.provideRenderingData("COMMENTS",B.itemSectionRenderer);else if(O)for(B=_.S(O),O=
B.next();!O.done;O=B.next())if(O=O.value,O.commentsEntryPointHeaderRenderer)var H=O;else if(O.clarificationRenderer||O.infoPanelContainerRenderer||O.infoPanelContentRenderer||O.emergencyOneboxRenderer){z.push(O);var q=q||!!Q}else O.limitedStateMessageRenderer?R=O:O.videoMetadataCarouselViewModel&&(D=O);if(_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&x&&m){var b=x;x=void 0}if(M.provideWatchNextSecondaryResults){var V,E,L;M.JSC$22883_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
N==null?void 0:(V=N.contents)==null?void 0:(E=V.twoColumnWatchNextResults)==null?void 0:(L=E.secondaryResults)==null?void 0:L.secondaryResults)}if(M.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"){var z8,O8;M.JSC$22883_watchApi.provideRenderingData("LIVE_CHAT",N==null?void 0:(z8=N.contents)==null?void 0:(O8=z8.twoColumnWatchNextResults)==null?void 0:O8.conversationBar)}var I3,vY,te,wR;(V=N==null?void 0:(I3=N.contents)==null?void 0:(vY=I3.twoColumnWatchNextResults)==null?void 0:(te=vY.secondaryResults)==
null?void 0:(wR=te.secondaryResults)==null?void 0:wR.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&M.JSC$22883_watchApi.getRoot().is!=="ytd-watch-grid"&&(J=V);I3=M.JSC$22883_watchApi.getPlayerResponse();if(!I3||!_.hCG(I3.playabilityStatus,N==null?void 0:N.playerOverlays)){var qb;if(N==null?0:(qb=N.contents)==null?0:qb.singleColumnWatchNextResults){var cY,Pu;var yV=N==null?void 0:(cY=N.contents.singleColumnWatchNextResults.results)==null?void 0:(Pu=cY.results)==null?void 0:
Pu.contents}else{var Ik,rR,ea,ok;qb=!!(l==null?0:(Ik=l[0])==null?0:(rR=Ik.itemSectionRenderer)==null?0:(ea=rR.contents)==null?0:(ok=ea[0])==null?0:ok.backgroundPromoRenderer);var s$,pw;Ik=!!(N==null?0:(s$=N.contents)==null?0:(pw=s$.twoColumnWatchNextResults)==null?0:pw.secondaryResults);qb&&!Ik&&(yV=l)}}l=z[0];s$=z[1];q&&z.length===1&&(s$=l,l=void 0);M.JSC$22883_watchApi.provideRenderingData("PRIMARY_INFO",e);M.JSC$22883_watchApi.provideRenderingData("SECONDARY_INFO",Q);M.JSC$22883_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
H);M.JSC$22883_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",D);M.JSC$22883_watchApi.provideRenderingData("CLARIFICATION",l);M.JSC$22883_watchApi.provideRenderingData("RICH_METADATA",v);M.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF",x);_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&M.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",b);M.JSC$22883_watchApi.provideRenderingData("TICKET_SHELF",m);M.JSC$22883_watchApi.provideRenderingData("LIMITED_STATE",R);M.JSC$22883_watchApi.getRoot().is!==
"ytd-watch-grid"&&M.JSC$22883_watchApi.provideRenderingData("DONATION_SHELF",J);M.JSC$22883_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",yV);M.JSC$22883_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",s$);M.JSC$22883_watchApi.provideRenderingData("EXPANDABLE_METADATA",y);if(M.swatcherooProvideAllDataOnScheduledJob){var iJ,Nb,MB,vu,Tc,Gt;e=N==null?void 0:(iJ=N.contents)==null?void 0:(Nb=iJ.twoColumnWatchNextResults)==null?void 0:(MB=Nb.secondaryResults)==null?void 0:(vu=MB.secondaryResults)==
null?void 0:(Tc=vu.results)==null?void 0:(Gt=Tc[0])==null?void 0:Gt.richGridRenderer;M.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",e)}};
_.gEw.prototype.hasCompanionAds=function(M){var z,J;return(J=M==null?void 0:(z=M.adPlacements)==null?void 0:z.some(function(R){var D,N,Z,B;return(R==null?void 0:(D=R.adPlacementRenderer)==null?void 0:(N=D.renderer)==null?void 0:N.actionCompanionAdRenderer)||(R==null?void 0:(Z=R.adPlacementRenderer)==null?void 0:(B=Z.renderer)==null?void 0:B.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?J:!1};
var Hq=function(M){if(!_.U("swaterdoo_ps_wn_handle_ks")){M.swatcherooProvideAllDataOnScheduledJob||maq(M,3E3);var z=M.JSC$22883_watchApi.getPlayerResponse(),J,R,D,N,Z,B=(J=M.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(R=J.contents)==null?void 0:(D=R.twoColumnWatchNextResults)==null?void 0:(N=D.secondaryResults)==null?void 0:(Z=N.secondaryResults)==null?void 0:Z.offerModule;z=M.hasCompanionAds(z);var O,X;J=(B==null?void 0:(O=B.tvfilmOfferModuleRenderer)==null?void 0:O.clientShouldSuppressIfCompanionAdDisplayed)||
(B==null?void 0:(X=B.unlimitedOfferModuleRenderer)==null?void 0:X.suppressIfCompanionAds);O=z&&J;M.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&M.JSC$22883_watchApi.provideRenderingData("OFFER_MODULE",O?void 0:B)}},maq=function(M,z){_.U("swatcheroo_pbs_load_grid")&&(M.provideRichGridJobId&&_.no.cancelJob(M.provideRichGridJobId),M.provideRichGridJobId=_.xC(_.no,function(){M.provideRichGridJobId=0;
var J,R,D,N,Z,B,O,X=(J=M.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(R=J.contents)==null?void 0:(D=R.twoColumnWatchNextResults)==null?void 0:(N=D.secondaryResults)==null?void 0:(Z=N.secondaryResults)==null?void 0:(B=Z.results)==null?void 0:(O=B[0])==null?void 0:O.richGridRenderer;X&&M.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",X)},z))},YZd=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22883_watchApi.playerApi,2);z=R.yieldResult;J=function(){M.onPlaybackStart()};
z.addEventListener("onPlaybackStartExternal",J);M.addOnDisposeCallback(function(){z.removeEventListener("onPlaybackStartExternal",J)});
_.UI(R)})};
_.gEw.prototype.onPlaybackStart=function(){maq(this)};_.nEw=function(M){_.wS.call(this);var z=this;this.JSC$22893_watchApi=M;M.playerApi.then(function(J){z.player=J});
this.gestures=new _.OY(this.JSC$22893_watchApi.getRoot(),M.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Ae3(_.rA().getState())&&_.FI(_.rA().getState())<=0)if(_.HS(_.rA().getState())){var J;(J=z.player)==null||J.toggleFullscreen()}else _.S9(z.JSC$22893_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
s43(this)};
_.w(_.nEw,_.wS);var s43=function(M){var z=_.jx(_.rA(),_.HS,function(J){M.onFullscreenChanged(J)});
M.addOnDisposeCallback(z);z=_.jx(_.rA(),_.FI,function(J){M.gestures&&(J>0?M.gestures.detach():M.gestures.attach())});
M.addOnDisposeCallback(z)};
_.nEw.prototype.onFullscreenChanged=function(M){this.gestures&&this.gestures.update(M)};_.yPZ=function(M){_.wS.call(this);var z=this;this.JSC$22896_watchApi=M;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(M.subscribeToActiveChanged(function(J){z.onActiveChanged(J)}));
hSd(this)};
_.w(_.yPZ,_.wS);var Hqq=function(M){if(_.U("swatcheroo_page_dispose_all_watch_data"))M.pageDisposalDataTypes=Object.values(zB3).filter(function(J){return J!=="PLAYLIST"});
else if(_.U("swatcheroo_page_dispose_rich_grid")){var z;(z=M.pageDisposalDataTypes)==null||z.push("RICH_GRID_RENDERER")}},hSd=function(M){_.U("swatcheroo_enable_ghost_cards")&&(Hqq(M),M.JSC$22896_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.no.cancelJob(M.clearDataJobId);
M.clearDataJobId=0}),M.runPageDisposeJob=function(){var z=_.JF().resolve(_.M6).getDestinationPageType()==="watch";
M.clearDataJobId=_.xC(_.no,M.runClearDataJob,z?0:_.NC("web_watch_delay_page_dispose_ms",1E4))},M.runClearDataJob=function(){cPA(M)},M.runOnYtNavigateAwayFinish=function(){M.clearDataJobId&&(_.no.cancelJob(M.clearDataJobId),M.clearDataJobId=0,cPA(M))},document.addEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish),M.JSC$22896_watchApi.addPageDisposeJob(M.runPageDisposeJob),M.addOnDisposeCallback(function(){M.JSC$22896_watchApi.removePageDisposeJob(M.runPageDisposeJob);
M.JSC$22896_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish)}))},cPA=function(M){M.pageDisposalDataTypes.forEach(function(z){M.JSC$22896_watchApi.provideRenderingData(z,void 0)});
M.clearDataJobId=0};
_.yPZ.prototype.onActiveChanged=function(M){M&&((M=document.querySelector("#watch-page-skeleton"))&&_.eJ(M),da3(this),document.body.removeAttribute("no-y-overflow"),_.cW("IS_SHELL_LOAD")&&_.aiw())};
var da3=function(M){_.k(function(z){if(z.nextAddress==1)return z.yield(M.JSC$22896_watchApi.playerApi,2);_.VL();_.UI(z)})};var Kts;Kts=_.U("kevlar_watch_while_counterfactual")?0:.25;_.Wti=function(M){_.wS.call(this);this.JSC$22899_watchApi=M;this.JSC$22899_watchWhileEnabled=_.U("kevlar_watch_while_v2");this.pipEnabled=_.U("web_enable_pip_on_miniplayer");$ai(this);u8A(this);qZ3(this)};
_.w(_.Wti,_.wS);var $ai=function(M){M.JSC$22899_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){aZs(M)});
M.addOnDisposeCallback(function(){M.JSC$22899_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},u8A=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22899_watchApi.playerApi,2);z=R.yieldResult;J=function(){aZs(M)};
z.addEventListener("onCollapseMiniplayer",J);M.addOnDisposeCallback(function(){z.removeEventListener("onCollapseMiniplayer",J)});
_.UI(R)})},qZ3=function(M){var z=M.JSC$22899_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&z&&M.JSC$22899_watchWhileEnabled&&(M.playerIntersectionObserver=new IntersectionObserver(function(J){M.handleIntersect(J)},{threshold:[Kts]}),M.playerIntersectionObserver.observe(z),M.addOnDisposeCallback(function(){var J;
(J=M.playerIntersectionObserver)==null||J.disconnect()}))},aZs=function(M){var z,J,R;
_.k(function(D){if(D.nextAddress==1){z=_.JF().resolve(_.M6);J=z.data;R=_.cf(J.response,!1,J.playerResponse);_.x9().miniplayerButtonActivation=!0;if(M.pipEnabled)return _.x9().watchPipActivation=!0,D.jumpTo(2);_.JF().resolve(_.q5).collapse();return D.yield(_.x9().navigationFinishPromise,2)}if(D.nextAddress!=4)return _.x9().currentEndpoint=R.watchEndpoint||null,D.yield(_.JF().resolve(_.q5).activate(M.JSC$22899_watchApi.getElement("PLAYER"),R,J),4);_.x9().userActivation=!0;_.UI(D)})};
_.Wti.prototype.handleIntersect=function(M){VPq(this,M[M.length-1])};
var VPq=function(M,z){M.watchWhileJobId&&_.no.cancelJob(M.watchWhileJobId);M.watchWhileJobId=_.no.addLowPriorityJob(function(){var J,R;return _.k(function(D){if(D.nextAddress==1)return M.watchWhileJobId=void 0,J=_.JF().resolve(_.q5),z.intersectionRatio>Kts?J.isMiniplayerActive()?D.yield(J.deactivate(),0):D.jumpTo(0):(R=!J.isMiniplayerActive())?D.yield(EE4(M),5):D.jumpTo(4);D.nextAddress!=4&&(R=D.yieldResult);if(!R)return D.jumpTo(0);_.x9().watchWhileActivation=!0;return D.yield(fZA(M),0)})},100)},
EE4=function(M){return _.k(function(z){return z.nextAddress==1?_.U("kevlar_watch_while_paused")?z.return(!0):z.yield(M.isPlayerPlaying(),2):z.return(z.yieldResult)})};
_.Wti.prototype.isPlayerPlaying=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22899_watchApi.playerApi,2);z=J.yieldResult;return J.return(z.getPlayerStateObject().isPlaying)})};
var fZA=function(M){var z,J;return _.k(function(R){z=_.JF().resolve(_.M6).data;J=_.cf(z.response,!1,z.playerResponse);_.x9().currentEndpoint=J.watchEndpoint||null;return R.yield(_.JF().resolve(_.q5).activate(M.JSC$22899_watchApi.getElement("PLAYER"),J,z),0)})};_.iq3=function(M){_.wS.call(this);this.JSC$22903_watchApi=M;Ltw(this);APq(this)};
_.w(_.iq3,_.wS);var APq=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22903_watchApi.playerApi,2);z=R.yieldResult;J=function(D){var N;D.sessionData&&D.sessionData.itct&&(N=D.sessionData.itct);var Z=D.watchEndpoint;if(Z&&D.sessionData&&D.sessionData.autonav)Z=_.fTp(Z,N);else{var B;Z=_.zr(D.videoId,(B=D.listId)!=null?B:void 0,N)}N={endpoint:Z};D.sessionData&&(N.tempData=D.sessionData);M.JSC$22903_watchApi.dispatchEvent("yt-navigate",N)};
z.addEventListener("onPlayVideo",J);M.addOnDisposeCallback(function(){z.removeEventListener("onPlayVideo",J)});
_.UI(R)})},Ltw=function(M){var z=function(J){M.onYtNavigate(J)};
M.JSC$22903_watchApi.getRoot().addEventListener("yt-navigate",z);M.addOnDisposeCallback(function(){M.JSC$22903_watchApi.getRoot().removeEventListener("yt-navigate",z)})};
_.iq3.prototype.onYtNavigate=function(M){var z=this,J,R,D,N,Z,B,O,X,l;return _.k(function(e){if(e.nextAddress==1){if(!((J=M.detail)==null?0:(R=J.endpoint)==null?0:R.watchEndpoint))return e.return();D=M.detail.endpoint.watchEndpoint;N=z.JSC$22903_watchApi.getWatchNextResponse();B=_.G((Z=N)==null?void 0:Z.currentVideoEndpoint,_.Au);if(!B)return e.return();if(D.videoId!==B.videoId||D.playlistId&&D.playlistId!==B.playlistId||typeof D.startTimeSeconds!=="number")return e.jumpTo(0);M.stopPropagation();
(O=_.U("kevlar_watch_while_v2")&&!_.U("kevlar_watch_while_counterfactual"))&&_.JF().resolve(_.q5).isMiniplayerActive()||z.JSC$22903_watchApi.scrollWatchTo(0,!0);return e.yield(z.JSC$22903_watchApi.playerApi,3)}X=e.yieldResult;l=D.startTimeSeconds;X.seekTo(l,void 0,void 0,void 0,84);X.wakeUpControls();l<X.getDuration()&&X.playVideo();_.UI(e)})};_.bqq=function(M){_.wS.call(this);var z=this;this.JSC$22906_watchApi=M;var J=this.JSC$22906_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C0s(z)});
this.addOnDisposeCallback(function(){z.JSC$22906_watchApi.unsubscribeByKey(J)});
C0s(this)};
_.w(_.bqq,_.wS);var C0s=function(M){var z=M.JSC$22906_watchApi.getWatchNextResponse();if(z){var J,R=[].concat(_.Yj((J=z==null?void 0:z.engagementPanels)!=null?J:[]));R.unshift.apply(R,_.Yj(rPq(z)));M.JSC$22906_watchApi.provideRenderingData("ENGAGEMENT_PANELS",R)}},MfE=function(M){var z,J,R,D=(z=M.engagementPanels)==null?void 0:(J=z.find(function(v){var x;
return((x=v.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=J.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,N;
if(_.G(D==null?void 0:(N=D.items)==null?void 0:N.find(function(v){return!!_.G(v,Y54)}),Y54))return!0;
var Z,B,O,X;if(M=(((Z=M.contents)==null?void 0:(B=Z.twoColumnWatchNextResults)==null?void 0:(O=B.results)==null?void 0:(X=O.results)==null?void 0:X.contents)||[]).find(function(v){return v.videoPrimaryInfoRenderer})){var l,e,Q;
return(((l=M.videoPrimaryInfoRenderer)==null?void 0:(e=l.videoActions)==null?void 0:(Q=e.menuRenderer)==null?void 0:Q.flexibleItems)||[]).some(function(v){v=_.G(v,_.xjV);if(!v)return!1;var x,m;v=(x=v.topLevelButton)==null?void 0:(m=x.buttonViewModel)==null?void 0:m.onTap;if(!v)return!1;x=_.$S(v);if(!x)return!1;var y;return((y=_.G(x,_.yq))==null?void 0:y.panelIdentifier)==="PAyouchat"})}return!1},rPq=function(M){var z=[];
if(!_.U("web_watch_inject_placeholder_fantasy_panel_killswitch")){var J,R,D,N=(J=M.engagementPanels)==null?void 0:(R=J.find(function(B){var O;return((O=B.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(D=R.engagementPanelSectionListRenderer.content)==null?void 0:D.structuredDescriptionContentRenderer,Z;
_.G(N==null?void 0:(Z=N.items)==null?void 0:Z.find(function(B){return!!_.G(B,Nlq)}),Nlq)&&(J=_.Uqe("PAsports_fantasy"),J.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(J))}MfE(M)&&(M=_.Uqe("PAyouchat"),M.engagementPanelSectionListRenderer.targetId="PAyouchat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(M));
return z};_.Jgw=function(M){_.wS.call(this);this.JSC$22909_watchApi=M;zL4(this)};
_.w(_.Jgw,_.wS);var zL4=function(M){M.JSC$22909_watchApi.registerActionHandler("yt-loop-command",function(z){RL3(M,z)});
M.JSC$22909_watchApi.registerActionHandler("yt-repeat-chapter-command",function(z){DH3(M,z)});
M.addOnDisposeCallback(function(){M.JSC$22909_watchApi.unregisterActionHandler("yt-loop-command");M.JSC$22909_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},RL3=function(M,z){var J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22909_watchApi.playerApi,2);J=R.yieldResult;_.G(z,S5q).loop?(J.setLoopRange({startTimeMs:Number(_.G(z,S5q).startTimeMs),endTimeMs:Number(_.G(z,S5q).endTimeMs),postId:_.G(z,S5q).postId,type:"clips"}),J.playVideo()):J.setLoopRange(null);_.UI(R)})},DH3=function(M,z){var J,R;
_.k(function(D){if(D.nextAddress==1)return D.yield(M.JSC$22909_watchApi.playerApi,2);J=D.yieldResult;R=_.G(z,Tlr).repeat;R==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(J.setLoopRange({startTimeMs:Number(_.G(z,Tlr).startTimeMs),endTimeMs:Number(_.G(z,Tlr).endTimeMs),type:"repeatChapter"}),J.playVideo()):R==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&J.setLoopRange(null);_.UI(D)})};_.Pid=function(M){_.wS.call(this);this.JSC$22914_watchApi=M;N3r(this)};
_.w(_.Pid,_.wS);var N3r=function(M){M.JSC$22914_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(z){SR3(M,z)});
M.addOnDisposeCallback(function(){M.JSC$22914_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},SR3=function(M,z){var J,R,D,N,Z,B,O,X,l,e,Q;
_.k(function(v){if(v.nextAddress==1)return v.yield(M.JSC$22914_watchApi.playerApi,2);J=v.yieldResult;if(N=(D=(R=_.G(z,Isi))==null?void 0:R.highlightedMenuItemKey)!=null?D:"")(B=(Z=J).highlightSettingsMenuItem)==null||B.call(Z,N);if(l=(X=(O=_.G(z,Isi))==null?void 0:O.openMenuItemKey)!=null?X:"")(Q=(e=J).openSettingsMenuItem)==null||Q.call(e,l);_.UI(v)})};var Zh3=_.Tr("/youtube/app/watch/player_state","playerStateEntity");_.B3s=function(M){_.wS.call(this);this.JSC$22917_watchApi=M;k4q(this)};
_.w(_.B3s,_.wS);var Ohi=function(M){switch(M){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},k4q=function(M){var z,J;
_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22917_watchApi.playerApi,2);z=R.yieldResult;J=function(D){M.onPlayerStateChange(D)};
z.addEventListener("onStateChange",J);M.addOnDisposeCallback(function(){z.removeEventListener("onStateChange",J)});
_.UI(R)})};
_.B3s.prototype.onPlayerStateChange=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(z.JSC$22917_watchApi.playerApi,2);J=D.yieldResult;R=J.getVideoData().video_id;_.ia().dispatch(_.pf("playerStateEntity",Zh3,{key:Zh3,playerState:Ohi(M),videoId:R}));_.UI(D)})};_.INA=function(M){_.wS.call(this);var z=this;this.JSC$22921_watchApi=M;this.enableExternalPlaylistPanelInPlayer=_.U("delhi_web_player_use_external_playlist_panel");_.JF().resolve(_.aV).setPlayer(this.JSC$22921_watchApi.getElement("PLAYER"));M=this.JSC$22921_watchApi.subscribeToActiveChanged(function(J){z.onActiveChanged(J)});
this.addOnDisposeCallback(M);T3q(this)};
_.w(_.INA,_.wS);var T3q=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return M.enableExternalPlaylistPanelInPlayer?R.yield(M.JSC$22921_watchApi.playerApi,2):R.return();z=R.yieldResult;J=function(){if(M.playlistPanelElement)M.playlistPanelElement.onToggleExpanded()};
z.addEventListener("onToggleExternalPlaylistPanel",J);M.addOnDisposeCallback(function(){z.removeEventListener("onToggleExternalPlaylistPanel",J)});
_.UI(R)})};
_.INA.prototype.onActiveChanged=function(M){var z=this,J=_.JF().resolve(_.aV),R=function(){oyq(z)};
M?(this.playlistPanelElement=this.JSC$22921_watchApi.getElement("PLAYLIST_PANEL"))?(J.setPlaylistComponent(this.playlistPanelElement),J.addEventListener("yt-playlist-data-updated",R),this.addOnDisposeCallback(function(){J.removeEventListener("yt-playlist-data-updated",R)}),oyq(this)):_.WW(Error("Do")):(J.removeEventListener("yt-playlist-data-updated",R),J.cancelVideoSkip())};
var oyq=function(M){var z=_.JF().resolve(_.aV);M.JSC$22921_watchApi.provideRenderingData("PLAYLIST",z.getPlaylistData())};_.dW=function(M){_.wS.call(this);var z=this;this.JSC$22924_watchApi=M;this.onPageScroll=function(){z.scrollThrottle.fire();z.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.A_(this.onThrottledScroll,200,this);_.OC(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.A_(this.onMastheadThrottledScroll,50,this);_.OC(this,this.mastheadScrollThrottle);this.animation=new _.L6(function(J){z.JSC$22924_watchApi.getRoot().setScrollTop(J)});
M=_.jx(_.rA(),_.HS,function(){z.onFullscreenChanged()});
this.addOnDisposeCallback(M);XWZ(this);lNs(this);this.onThrottledScroll()};
_.w(_.dW,_.wS);
_.dW.prototype.onFullscreenChanged=function(){var M=this,z=this.JSC$22924_watchApi.getRoot();!this.pageScrollElement&&z.pageScrollElement?(this.pageScrollElement=z.pageScrollElement,z.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){M.pageScrollElement&&M.pageScrollElement.removeEventListener("scroll",M.onPageScroll)})):this.pageScrollElement&&!z.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var XWZ=function(M){window.addEventListener("scroll",M.onPageScroll);M.addOnDisposeCallback(function(){window.removeEventListener("scroll",M.onPageScroll)})},lNs=function(M){M.JSC$22924_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(z){a:{var J;
if(J=M.JSC$22924_watchApi.getRoot().contains(z)&&!M.animation.isAnimating()){J=z.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var R,D,N=(z==null?void 0:(R=z.parentElement)==null?void 0:(D=R.parentElement)==null?void 0:D.id)==="fixed-secondary";J=!(J&&N)}if(J){if(_.U("kevlar_watch_scroll_manager_absolute_offset_killswitch"))R=z.offsetTop;else for(R=0,D=z;D!==null;)R+=D.offsetTop,R-=D.scrollTop,D=D.offsetParent;D=R;R=D-24;z=D+z.offsetHeight+24;D=M.JSC$22924_watchApi.getRoot().getPageScrollingElement();
J=M.JSC$22924_watchApi.getRoot().getScrollTop();N=J+D.clientHeight-56;if(R<J+56)z=R-56;else if(z>N)z-=D.clientHeight;else break a;M.scrollWatchTo(Math.max(0,z),!0)}}});
M.addOnDisposeCallback(function(){M.JSC$22924_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.dW.prototype.onThrottledScroll=function(){var M=_.rA(),z=M.dispatch,J=this.JSC$22924_watchApi.getRoot().getScrollTop();z.call(M,_.Nv({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:J}}))};
_.dW.prototype.onMastheadThrottledScroll=function(){this.JSC$22924_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22924_watchApi.getRoot().getScrollTop())};
_.dW.prototype.scrollWatchTo=function(M,z){(z===void 0?0:z)?this.animation.start(this.JSC$22924_watchApi.getRoot().getScrollTop(),Math.max(0,M),500):this.JSC$22924_watchApi.getRoot().setScrollTop(M)};_.UHi=function(M){_.wS.call(this);var z=this;this.JSC$22927_watchApi=M;var J=this.JSC$22927_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){eLq(z)}),R=this.JSC$22927_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QXA(z)});
this.addOnDisposeCallback(function(){z.JSC$22927_watchApi.unsubscribeByKey(J);z.JSC$22927_watchApi.unsubscribeByKey(R)});
eLq(this);QXA(this)};
_.w(_.UHi,_.wS);
var eLq=function(M){var z,J,R,D=(R=(z=M.JSC$22927_watchApi.getPlayerResponse())==null?void 0:(J=z.videoDetails)==null?void 0:J.title)!=null?R:"";M.JSC$22927_watchApi.dispatchEvent("yt-update-title",D)},QXA=function(M){var z,J,R,D,N,Z,B,O=(B=((Z=(z=M.JSC$22927_watchApi.getWatchNextResponse())==null?void 0:(J=z.contents)==null?void 0:(R=J.twoColumnWatchNextResults)==null?void 0:(D=R.results)==null?void 0:(N=D.results)==null?void 0:N.contents)!=null?Z:[]).find(function(X){return!!X.videoPrimaryInfoRenderer}))==null?
void 0:B.videoPrimaryInfoRenderer;
(z=_.CD(O==null?void 0:O.title))&&M.JSC$22927_watchApi.dispatchEvent("yt-update-title",z)};_.G4A=function(M){_.wS.call(this);this.JSC$22930_watchApi=M;vyi(this)};
_.w(_.G4A,_.wS);var vyi=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$22930_watchApi.playerApi,2);z=R.yieldResult;J=function(){M.onYpcContentRequest()};
z.addEventListener("onYpcContentRequest",J);M.addOnDisposeCallback(function(){z.removeEventListener("onYpcContentRequest",J)});
_.UI(R)})};
_.G4A.prototype.onYpcContentRequest=function(){var M,z,J,R,D,N=(M=this.JSC$22930_watchApi.getWatchNextResponse())==null?void 0:(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.secondaryResults)==null?void 0:(D=R.secondaryResults)==null?void 0:D.offerModule,Z,B,O,X;M=(X=(O=(B=(Z=N==null?void 0:N.episodeOfferModuleRenderer)!=null?Z:N==null?void 0:N.movieOfferModuleRenderer)!=null?B:N==null?void 0:N.unlimitedOfferModuleRenderer)!=null?O:N==null?void 0:N.liveOfferModuleRenderer)!=
null?X:N==null?void 0:N.tvfilmOfferModuleRenderer;var l,e,Q;N=(Q=N==null?void 0:(l=N.tvfilmOfferModuleRenderer)==null?void 0:(e=l.actionButtons)==null?void 0:e.length)!=null?Q:0;e=Math.max(N-1,0);var v,x,m;l=(m=M==null?void 0:(v=M.offerButton)==null?void 0:v.buttonRenderer)!=null?m:M==null?void 0:(x=M.actionButtons)==null?void 0:x[e].buttonRenderer;var y,H;(v=(H=(y=l==null?void 0:l.navigationEndpoint)!=null?y:l==null?void 0:l.serviceEndpoint)!=null?H:l==null?void 0:l.command)&&_.l5.instance.resolveCommand(v)};
}catch(e){_._DumpException(e)}
try{
var l3G,I3l,O4v;_.TXw=function(){var M=_.gu.clone(BXw),z;return(new _.If(function(J,R){M.onSuccess=function(D){_.yd8(D)?J(new O4v(D)):R(new _.TD("Request failed, status="+_.kN(D),"net.badstatus",D))};
M.onError=function(D){R(new _.TD("Unknown request error","net.unknown",D))};
M.onTimeout=function(D){R(new _.TD("Request timed out","net.timeout",D))};
z=_.ob("//googleads.g.doubleclick.net/pagead/id",M)})).thenCatch(function(J){if(J instanceof _.q9){var R;
(R=z)==null||R.abort()}return _.gv(J)})};
_.o2u=function(M){a:{var z="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var J=M.raw_embedded_player_response;if(!J&&(M=M.embedded_player_response))try{J=JSON.parse(M)}catch(D){break a}if(J)b:for(var R in I3l)if(I3l[R]==J.embeddedPlayerMode){z=I3l[R];break b}}return z==="EMBEDDED_PLAYER_MODE_PFL"};
_.XNi=function(){if(_.U("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.RTn())return Error("nf");var M=_.HW("PLAYER_VARS",{});if(_.gu.get(M,"privembed",!1)=="1")return Error("of");if(_.o2u(M))return Error("pf")};
l3G=function(M){switch(M){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.uJ(M,"unknown result type")}};
_.eJl=function(M,z,J){z=_.Dm3[z];J={detected:M===0,source:z.zpQ,detectionResult:l3G(M),contentCpn:J};_.gP("biscottiBasedDetection",J);_.N2$.increment(z.zpQ,M);z.avm!==void 0&&_.yU("CATSTAT",_.JXw(M,z))};
_.I7=function(M,z){var J={};J.key=M;J.value=z;return _.dmn().then(function(R){return new Promise(function(D,N){try{var Z=R.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(J);Z.onsuccess=function(){D()};
Z.onerror=function(){N()}}catch(B){N(B)}})})};
_.USl=function(){var M=_.NC("user_engagement_experiments_rate_limit_ms"),z=QOw.get("last-user-engagement-exp-trigger-timestamp");return!z||(0,_.zU)()>=z+M?(QOw.set("last-user-engagement-exp-trigger-timestamp",(0,_.zU)()),!0):!1};
_.o7=function(M,z,J,R,D){z=z===void 0?null:z;J=J===void 0?null:J;R=R===void 0?null:R;D=D===void 0?null:D;M={youThereEventType:M};J&&(M.lactThresholdMs=J.lactThresholdMs,M.mediaPosSec=J.promptDelaySec,M.lactServerRequestMs=J.lactServerRequestMs,M.triggerReason=J.triggerReason);D!=null&&(M.renderingMediaPosSec=Math.round(D));z||(z=_.y5());z&&(M.clientScreenNonce=z);R&&(M.clientPlaybackNonce=R);_.gP("youThere",M)};
I3l={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"};O4v=function(M){this.xhr=M};
_.TD=function(M,z,J){_.Mb.call(this,M+", errorCode="+z);this.errorCode=z;this.xhr=J;this.name="PromiseAjaxError"};
_.w(_.TD,_.Mb);var BXw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var QOw=new _.dc("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.kSu=function(M){return _.Nv({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:M})};
}catch(e){_._DumpException(e)}
try{
var qr,aN4,Eyq,fNq,LFE,Agr,CiA,P9q,S7Z,ZK4,ihr,Vfr,zVE,Mzr,OK3;_.WFA=function(){var M=window.location.hash;M.charAt(0)==="#"&&(M=M.charAt(1)==="!"?M.substring(2):M.substring(1));return _.ER(M)};
qr=function(M,z,J){var R;return _.k(function(D){if(D.nextAddress==1)return D.yield(z(),2);R=D.yieldResult;J(R,M);_.UI(D)})};
aN4=function(){return _.k(function(M){return M.nextAddress==1?M.yield((_.XNi()!==void 0?_.gv(Error("qf")):_.TXw()).then(function(){return 1},function(z){if(z.message==="Biscotti id is disabled")return 3;
_.yA("Failed fetching bid");return 0}),2):M.return(M.yieldResult)})};
Eyq=function(){var M=_.Rz("ZHl0LWhhdmVuLWVtYmVkLXBsYXllciNwemhjN2M5ajRvcg=="),z=_.Rz("dXMzemwweHozZWwwaWZyYW1lIw==");return document.querySelector(z+Vfr+M)?0:1};
fNq=function(){return _.WGe(_.rN)};
LFE=function(){return _.a2o()===0?0:_.VCo()};
Agr=function(){return _.ikY(_.Okp([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
CiA=function(){return _.yp8(ihr)};
_.bhd=function(M){_.k(function(z){switch(z.nextAddress){case 1:return z.yield(qr("b.f_",aN4,M),2);case 2:return z.yield(qr("j.s_",_.n1Y,M),3);case 3:return z.yield(qr("r.s_",_.m4Y,M),4);case 4:return z.yield(qr("e.h_",CiA,M),5);case 5:if(!_.U("ab_det_sc_inj")){z.jumpTo(6);break}return z.yield(qr("s.i_",_.ump,M),6);case 6:if(_.U("ab_deg_unex_thr")){z.jumpTo(8);break}return z.yield(qr("a.o_",_.KGp,M),8);case 8:if(_.U("ks_get_o_pp")){z.jumpTo(10);break}return z.yield(qr("g.o_",_.d4n,M),10);case 10:if(_.U("ks_det_gpbl")){z.jumpTo(12);
break}return z.yield(qr("p.i_",_.cpp,M),12);case 12:return z.yield(qr("f.i_",_.QLe,M),14);case 14:return z.yield(qr("a.b_",_.FGG,M),15);case 15:return z.yield(qr("p.m_",_.Gsp,M),16);case 16:if(!_.U("ab_det_el_h_v2")){z.jumpTo(17);break}return z.yield(qr("n.h_",Agr,M),17);case 17:return z.yield(qr("o.p_",fNq,M),19);case 19:return z.yield(qr("e.i_",Eyq,M),20);case 20:if(_.U("ab_det_apm"))return z.yield(qr("o.a_",LFE,M),0);z.jumpTo(0)}})};
_.rgq=function(M,z){M={videoId:M};z&&(M.playlistId=z);return M};
_.JF4=function(){if(_.RTn()){var M=_.HW("PLAYER_VARS",{});if(_.gu.get(M,"privembed",!1)!="1"&&!_.o2u(M)){var z=function(){Mzr=!0;"google_ad_status"in window?_.yU("DCLKSTAT",1):_.yU("DCLKSTAT",2)};
try{_.qI(_.O5v,z)}catch(J){}zVE.push(_.no.addLowPriorityJob(function(){if(!(Mzr||"google_ad_status"in window)){try{_.A$b(_.O5v.toString(),z)}catch(J){}Mzr=!0;_.yU("DCLKSTAT",3)}},5E3))}}};
_.RVA=function(M,z,J){J=J===void 0?!1:J;var R=Math.max(M.width,_.gGi);if(_.U("kevlar_watch_feed_big_thumbs")&&M.width>=1550-_.ig()&&M.height>=800)R-=_.ciq;else if(M.width>=_.Kt){var D=_.svq+_.nGA+_.dT;_.U("kevlar_watch_feed_big_thumbs")&&(D=_.HwA);R-=D}else R-=_.svq;R=Math.min(R,_.hww);D=240;J&&(D=380);z<.5624||(!_.U("kevlar_watch_flexy_disable_small_window_sizing")&&(M.height<630&&M.width>=657||M.height>=630&&M.width>=_.Kt&&M.width<1327)?D=360:!_.U("kevlar_watch_flexy_disable_large_window_sizing")&&
M.height>=630&&M.width>=1327&&(D=480));var N=Math.min(R*z,M.height-(56+_.mNi+_.yi3));N=Math.max(N,D);z<1?R=N/z:M.width>=_.Kt&&(R=_.RVA(M,.5625,J).width);return new _.eU(Math.round(R),Math.round(N))};
_.DCq=function(M){var z=0;M.indexOf("h")!=-1&&(M=M.split("h"),z=M[0]*60*60,M=M[1]);M.indexOf("m")!=-1&&(M=M.split("m"),z=M[0]*60+z,M=M[1]);M.indexOf("s")!=-1?(M=M.split("s"),z=M[0]*1+z):z=M*1+z;return z};
_.NQr=function(){_.NC("service_worker_push_logged_out_prompt_watches")!=-1&&_.UJ("WatchCount").then(function(M){M>=100||_.I7("WatchCount",M+1)})};
P9q=function(M){var z=M.externalVideoId||"";return z?M.isShortsEligible?"https://www.youtube.com/shorts/"+z:"https://www.youtube.com/watch?v="+z:""};
S7Z=function(M){var z=[];M.viewCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:M.viewCount});M.likeCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:M.likeCount});return z};
ZK4=function(M){var z,J,R={"@context":"https://schema.org","@type":"VideoObject",description:_.CD(M.description),duration:"PT"+(M.lengthSeconds||"0")+"S",embedUrl:M.embed?M.embed.iframeUrl:"",name:_.CD(M.title),thumbnailUrl:((z=M.thumbnail)==null?void 0:(J=z.thumbnails)==null?void 0:J.map(function(l){return l&&l.url||""}))||[],
uploadDate:M.publishDate};_.U("mweb_video_schema_id_killswitch")||(R["@id"]=P9q(M));z=S7Z(M);z.length&&(R.interactionStatistic=z);M.category&&(R.genre=M.category);M.ownerChannelName&&(R.author=M.ownerChannelName);M.liveBroadcastDetails&&(R.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:M.liveBroadcastDetails.startTimestamp,endDate:M.liveBroadcastDetails.endTimestamp}]);if(M.learningResource){M=M.learningResource;R["@type"]=["VideoObject","LearningResource"];var D;if((D=M.learningResourceType)==
null?0:D.length)R.learningResourceType=M.learningResourceType[0];var N;if((N=M.educationalAlignment)==null?0:N.length)R.educationalAlignment={"@type":"AlignmentObject",targetName:M.educationalAlignment[0]};var Z;if((Z=M.educationalLevel)==null?0:Z.length){D=M.educationalLevel[0];var B;if((B=M.educationalLevelCountry)==null?0:B.length)D+=" ("+M.educationalLevelCountry+")";R.educationalLevel=D}var O,X;if(((O=M.learningResourceType)==null?0:O.length)&&M.learningResourceType[0]==="Problem walkthrough"&&
((X=M.problemDescriptions)==null?0:X.length))for(R.hasPart=[],B=_.S(M.problemDescriptions),O=B.next();!O.done;O=B.next())D=O.value,O=D.problemDescriptionText,X=D.startOffset,D=D.url,O&&X!==void 0&&D&&R.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:O,text:O,startOffset:X,url:D})}return R};
_.kww=function(M){return _.Nv({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:M}})};
ihr=[[["Znppajd5cGt0cHJpbWFyeSNzM2E=",null,null],[null,["ZGVyZXIjanh6Y3A1aG1seWo4eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","bGUtc2NvcGUjaHY1bWV1NWIwaHd4c3R5"],null],["bWFzdGhlYWQtYWQjc2x0YnhxYjA5bDA=",["dGQtcmljaC1ncmlkLXJlbmRlcmVyI2h2bGRobWJrODl0bHk="],null],[null,["dGQtcmljaC1ncmlkLXJlbmRlcmVyI3dibDJpbGZpM3ZscXk=","bGUtc2NvcGUjazlnc2x2dnBtdWx0c3R5"],null],[null,["bmVyLXByb21vLXJlbmRlcmVyI25ocmttMXZkMWVwenl0ZC1iYW4=","bGUtc2NvcGUjZzE3ejBlNGNrOGEwc3R5"],null],[null,["cXV1eXRkLWFkLXNsb3QtcmVuZGVyZXIjdGVkcGJ0Mjgz"],
null]],[["cGxheWVyLWFkcyN5anhoeDhuZ3hvMnk=",null,null]],[["amg5NXl2c2VtZGVzY3JpcHRpb24taW5uZXIjeGh3",null,null],[null,null,"ZXJjaC1zaGVsZi1yZW5kZXJlciN2ZWZiaTY4bHFscjN5dGQtbQ=="],["Ym1haW4ja2ZwbXJ0Z2V1OHE=",["ZXJjaC1zaGVsZi1yZW5kZXJlciN5cjJ3OWw2bHY0cXp5dGQtbQ=="],null]]];Vfr="#";zVE=[];Mzr=!1;_.BQw=["engagement-panel-ads"];OK3=new _.R_("updateSentimentBarStateCommand");_.TQi=new _.R_("showSurveyCommand");_.Wq=new _.R_("changeMarkersVisibilityCommand");var oNE,XJr,UC3,Qbw,eVq,ai;_.IRd=function(M,z){this.playerProvider_=M;this.actionSenderElement_=z;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.IRd.prototype.reset=function(){oNE(this);this.isUserPredictedAbsent_=!1};
oNE=function(M,z){!M.youThereData_||M.showWarningJob_||z!==void 0&&z||(_.o7("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.y5(),M.youThereData_,M.clientPlaybackNonce_),_.sB());_.no.cancelJob(M.showWarningJob_);M.showWarningJob_=0;_.no.cancelJob(M.showBlockingWarningJob_);M.showBlockingWarningJob_=0;_.no.cancelJob(M.pausePlaybackJob_);M.pausePlaybackJob_=0;M.youThereData_=null;M.clientPlaybackNonce_=void 0;M.inYouThereFlow_=!1};
_.lRr=function(M,z){var J,R,D;_.k(function(N){if(N.nextAddress==1)return M.reset(),N.yield(M.playerProvider_().getPlayerPromise(),2);J=N.yieldResult;M.clientPlaybackNonce_=J.getVideoData().cpn;M.youThereData_=z.configData.youThereData;if(!M.youThereData_)return N.return();if(M.youThereData_.triggerReason&&M.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.USl())return _.o7("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.y5(),M.youThereData_,M.clientPlaybackNonce_),N.return();R=M.youThereData_.promptDelaySec;
D=J.getCurrentTime();M.showWarningJob_=_.no.addLowPriorityJob(function(){return _.k(function(Z){M.showWarningJob_=0;return Z.yield(XJr(M),0)})},Math.max(R-D,0)*1E3);
_.UI(N)})};
XJr=function(M){var z,J,R,D,N,Z;return _.k(function(B){if(B.nextAddress==1)return B.yield(M.playerProvider_().getPlayerPromise(),2);if(B.nextAddress!=3)return z=B.yieldResult,J=z.getCurrentTime(),B.yield(eVq(M),3);R=B.yieldResult;if(!R||!M.youThereData_)return B.return();if(_.U("check_user_lact_at_prompt_shown_time_on_web")&&(D=parseInt(M.youThereData_.lactThresholdMs,10),_.Rf()<D))return _.o7("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.y5(),M.youThereData_,M.clientPlaybackNonce_),B.return();if(M.youThereData_.playbackPauseDelayMs<=
0)return Qbw(M),B.return();!_.U("external_fullscreen")&&(N=_.zV())&&(M.ignoreFullscreenExitUserActivity_=!0,_.no.addLowPriorityJob(function(){M.ignoreFullscreenExitUserActivity_=!1},2E3),_.Jd(N));
M.youThereData_.showToastWarningPrompt&&(ai(M,M.youThereData_.showWarningActions),M.inYouThereFlow_=!0,_.o7("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.y5(),M.youThereData_,M.clientPlaybackNonce_,J),_.o7("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.y5(),M.youThereData_,M.clientPlaybackNonce_,J));Z=0;M.youThereData_.blockingPromptDelayMs&&(Z=M.youThereData_.blockingPromptDelayMs);M.showBlockingWarningJob_=_.no.addLowPriorityJob(function(){return _.k(function(O){M.showBlockingWarningJob_=0;return O.yield(UC3(M),
0)})},Z);
_.UI(B)})};
UC3=function(M){var z,J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield(eVq(M),2);z=D.yieldResult;if(!M.youThereData_)return D.return();z&&(M.youThereData_.showBlockingWarningAction&&(_.o7("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.y5(),M.youThereData_,M.clientPlaybackNonce_),(J=_.G(M.youThereData_.showBlockingWarningAction,_.TV))?ai(M,J.commands):ai(M,[M.youThereData_.showBlockingWarningAction]),M.inYouThereFlow_=!0),R=M.youThereData_.playbackPauseDelayMs,M.pausePlaybackJob_=
_.no.addLowPriorityJob(function(){return _.k(function(N){M.pausePlaybackJob_=0;return N.yield(Qbw(M),0)})},R));
_.UI(D)})};
Qbw=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(eVq(M),2);z=J.yieldResult;if(!M.youThereData_)return J.return();z&&(_.o7("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.y5(),M.youThereData_,M.clientPlaybackNonce_),ai(M,M.youThereData_.showPausedActions),M.inYouThereFlow_=!0);_.UI(J)})};
_.IRd.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var M=_.G(this.youThereData_.userActiveDuringFlowAction,_.TV);M?ai(this,M.commands):ai(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.o7("YOU_THERE_EVENT_TYPE_LACT_RESET",_.y5(),this.youThereData_,this.clientPlaybackNonce_),_.sB());oNE(this,!0)}_.vN3(this,!1)};
_.Gwq=function(M){_.o7("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.y5(),M.youThereData_,M.clientPlaybackNonce_)};
eVq=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(M.playerProvider_().getPlayerPromise(),2);z=R.yieldResult;J=z.getPlayerState();return R.return(J==-1||J==1||J==3)})};
_.vN3=function(M,z){var J;_.k(function(R){if(R.nextAddress==1){if(M.isUserPredictedAbsent_==z)return R.jumpTo(0);M.isUserPredictedAbsent_=z;return R.yield(M.playerProvider_().getPlayerPromise(),3)}J=R.yieldResult;J.setUserEngagement(z);z&&_.o7("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.y5(),M.youThereData_,M.clientPlaybackNonce_);_.UI(R)})};
ai=function(M,z){if(_.U("handle_service_request_actions")||_.U("kevlar_youthere_service_endpoint_actions_killswitch"))_.Bv(M.actionSenderElement_,z,M.actionSenderElement_);else{z=_.S(z);for(var J=z.next();!J.done;J=z.next())J=J.value,J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.sendPost?_.kQ(M.actionSenderElement_,[J]):_.Bv(M.actionSenderElement_,[J],M.actionSenderElement_)}};var wJs;var xCs;var V_=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return M};
_.w(V_,_.g);V_.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var M=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(M=this.data.percentIfLiked||0,this.activated=!0):(M=this.data.percentIfIndifferent||0,this.activated=!1);_.SN(this.hostElement).querySelector("#like-bar").style.width=M+"%"}};
V_.prototype.handleUpdateSentimentBarStateCommand=function(M){this.data&&this.set("data.likeStatus",_.G(M,OK3).likeStatus)};
V_.prototype.observeLikeStatus=V_.prototype.observeLikeStatus;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],V_.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],V_.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],V_.prototype,"activated",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],V_.prototype,"systemIcons",void 0);_.u([_.la("data.likeStatus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V_.prototype,"observeLikeStatus",null);_.u([_.c({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],V_);
_.d(V_,"ytd-sentiment-bar-renderer",function(){if(xCs!==void 0)return xCs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xCs=M},{mode:1});var tz3;var El=function(){var M=_.g.apply(this,arguments)||this;M.small=!0;return M};
_.w(El,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],El.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],El.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],El.prototype,"small",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],El);
_.d(El,"ytd-video-view-count-renderer",function(){if(tz3!==void 0)return tz3;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return tz3=M},{mode:_.B5("kevlar_poly_si_batch_j080")?1:2});var f5=function(){var M=_.g.apply(this,arguments)||this;M.infoFormattedStrings=[];M.wrapVideoActions=_.U("kevar_watch_wrap_video_actions");M.hideSentimentBar=_.U("kevlar_watch_hide_sentiment_bar");M.actionMap={};return M};
_.w(f5,_.g);_.P=f5.prototype;_.P.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.P.dataChanged=function(){_.U("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.P.computeInfoFormattedStrings=function(M){if(!M)return[];var z=[];M.dateText&&z.push(M.dateText);M.stationName&&z.push(M.stationName);M.rating&&z.push(M.rating);M.startEndTimeTemplate&&M.startTimeUtcMillis&&M.endTimeUtcMillis&&z.push(_.id(_.Maw(_.CD(M.startEndTimeTemplate),Number(M.startTimeUtcMillis),Number(M.endTimeUtcMillis))));M.upNextProgramText&&z.push(M.upNextProgramText);return z};
_.P.scheduleInitialUpdatedMetadataRequest=function(){var M,z=(M=this.data)==null?void 0:M.updatedMetadataEndpoint;if(z){var J;M=Number((J=_.G(z,_.Mx$))==null?void 0:J.initialDelayMs);J=isNaN(M)?250:M;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),J)}};
_.P.setSentimentBarWidth=function(){var M=this;_.C4(this,function(){var z=_.SN(M.hostElement).querySelector("ytd-menu-renderer");if(z){z=z.topLevelButtons;for(var J=0,R=0;R<z.length;R++){var D=z[R],N=M.get("toggleButtonSupportedData.toggleButtonIdData.id",D.data);if(N==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||N==="TOGGLE_BUTTON_ID_TYPE_LIKE")J+=D.clientWidth+8;else break}J&&(M.sentiment.style.width=J-8+" px")}})};
_.P.fetchUpdatedMetadata=function(M){var z;M&&(z={continuation:M});var J;(M=(J=this.data)==null?void 0:J.updatedMetadataEndpoint)&&_.JF().resolve(_.Rb).resolveCommand(M,{form:Object.assign({},z,{element:this.hostElement})})};
_.P.onYtServiceRequestSent=function(M,z){z.endpoint&&_.G(z.endpoint,_.uf)&&(this.hasUpdateSentimentBarStateCommands()&&!_.U("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.G(z.endpoint,_.uf).status),this.setSentimentBarWidth())};
_.P.hasUpdateSentimentBarStateCommands=function(){var M,z,J,R,D=(R=(M=this.data)==null?void 0:(z=M.videoActions)==null?void 0:(J=z.menuRenderer)==null?void 0:J.topLevelButtons)!=null?R:[];M=_.S(D);for(z=M.next();!z.done;z=M.next()){z=z.value;D=R=J=void 0;var N=(J=z.toggleButtonRenderer)==null?void 0:(R=J.toggleButtonSupportedData)==null?void 0:(D=R.toggleButtonIdData)==null?void 0:D.id;if(N==="TOGGLE_BUTTON_ID_TYPE_LIKE"||N==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){R=J=void 0;z=(R=_.G((J=z.toggleButtonRenderer)==
null?void 0:J.defaultServiceEndpoint,_.TV))==null?void 0:R.commands;if(!z)break;z=_.S(z);for(J=z.next();!J.done;J=z.next())if(_.G(J.value,OK3))return!0}}return!1};
_.P.onYtServiceRequestCompleted=function(M,z){var J;(M=(J=z.data)==null?void 0:J.loggingDirectives)&&_.pMG(_.Gm(),M);this.get("continuation.timedContinuationData",z.data)&&this.data&&this.data.updatedMetadataEndpoint&&(z=z.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,z.continuation),z.timeoutMs))};
_.P.computeHasDateText=function(M){return!!M&&!!M.dateText};
_.rX.Object.defineProperties(f5.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return!((R=(M=this.data)==null?void 0:(z=M.videoActions)==null?void 0:(J=z.menuRenderer)==null?void 0:J.flexibleItems)==null||!R.length)}}});
f5.prototype.onYtServiceRequestCompleted=f5.prototype.onYtServiceRequestCompleted;f5.prototype.onYtServiceRequestSent=f5.prototype.onYtServiceRequestSent;f5.prototype.dataChanged=f5.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Pm.YtTaskEmitterBehavior),_.W("design:type",Object)],f5.prototype,"ytTaskEmitterBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],f5.prototype,"data",void 0);_.u([_.Y({computed:"computeInfoFormattedStrings(data)"}),_.W("design:type",Array)],f5.prototype,"infoFormattedStrings",void 0);
_.u([_.Y({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],f5.prototype,"hasDateText",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],f5.prototype,"wrapVideoActions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],f5.prototype,"hideSentimentBar",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f5.prototype,"flexMenuEnabled",null);
_.u([_.Qc("#sentiment"),_.W("design:type",Object)],f5.prototype,"sentiment",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f5.prototype,"dataChanged",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],f5.prototype,"onYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],f5.prototype,"onYtServiceRequestCompleted",null);
_.d(f5,"ytd-video-primary-info-renderer",function(){if(wJs===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);wJs=M}M=wJs;return M},{mode:1});var jbq;var L5=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.w(L5,_.g);_.P=L5.prototype;_.P.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.dataChanged=function(){var M;this.descriptionToggled=!((M=this.data)==null||!M.defaultExpanded);var z;this.collapsed=this.descriptionAlwaysCollapsed||!((z=this.data)==null?0:z.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.O3(110509);this.showLessClientVe=_.O3(110510);M=_.y5();z=_.hu();M&&z&&_.Wv(M,z,[this.showMoreClientVe,this.showLessClientVe])};
_.P.onYtExpanderMoreTapped=function(){var M,z=(M=this.data)==null?void 0:M.showMoreCommand;z&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(z);(M=_.y5())&&this.showMoreClientVe&&_.fY(M,this.showMoreClientVe)};
_.P.onYtExpanderLessTapped=function(){var M=_.y5();M&&this.showLessClientVe&&_.fY(M,this.showLessClientVe);var z;(M=(z=this.data)==null?void 0:z.showLessCommand)&&this.componentBehavior.resolveCommand(M)};
_.P.handleUpdateDateTextAction=function(M){this.data&&this.data.dateText&&this.set("data.dateText",_.G(M,_.xN3).dateText)};
_.P.handleUpdateDescriptionAction=function(M){if(M=_.G(M,_.bZ$))M.isEmpty||!M.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.y1(M.description)):this.set("data.description",M.description)};
_.P.onYtChangeEngagementPanelVisibilityAction=function(M){if(_.U("web_structured_description_show_more")||_.U("web_engagement_panel_open_description")){var z,J=(z=_.G(M,_.gs$))==null?void 0:z.targetId,R;M=((R=_.G(M,_.gs$))==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";J==="engagement-panel-structured-description"&&M&&(this.descriptionToggled=!0)}};
_.P.updateCollapsedFromBinding=function(M){this.collapsed=M.detail.value};
_.P.updateDescriptionToggledFromBinding=function(M){this.descriptionToggled=M.detail.value};
_.P.updateCanCollapseFromBinding=function(M){this.canCollapse=M.detail.value};
_.rX.Object.defineProperties(L5.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer;return!!J&&!!J.rows&&J.rows.length>J.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
L5.prototype.onYtExpanderLessTapped=L5.prototype.onYtExpanderLessTapped;L5.prototype.onYtExpanderMoreTapped=L5.prototype.onYtExpanderMoreTapped;L5.prototype.dataChanged=L5.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],L5.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],L5.prototype,"collapsed",void 0);_.u([_.Y(),_.W("design:type",Boolean)],L5.prototype,"descriptionToggled",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],L5.prototype,"canCollapse",void 0);_.u([_.Y(),_.W("design:type",Object)],L5.prototype,"subscribeButtonData",void 0);_.u([_.Y(),_.W("design:type",Number)],L5.prototype,"descriptionCollapsedHeight",void 0);_.u([_.Y(),_.W("design:type",Object)],L5.prototype,"structuredDescriptionContentRenderer",void 0);_.u([_.Y({value:function(){return _.U("web_watch_description_always_collapsed")}}),
_.W("design:type",Boolean)],L5.prototype,"descriptionAlwaysCollapsed",void 0);_.u([_.Qc("#description"),_.W("design:type",HTMLDivElement)],L5.prototype,"description",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L5.prototype,"dataChanged",null);_.u([_.Xw("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L5.prototype,"onYtExpanderMoreTapped",null);
_.u([_.Xw("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L5.prototype,"onYtExpanderLessTapped",null);_.u([_.F("data.metadataRowContainer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"metadataCollapsible",null);_.u([_.F("data","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"hasInlineStructuredDescription",null);
_.u([_.F("data.attributedDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"hasAttributedDescription",null);_.u([_.F("hasInlineStructuredDescription","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"loadStructuredDescription",null);_.u([_.F("data","structuredDescriptionContentRenderer","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"showInlineStructuredDescription",null);
_.u([_.F("data","hasInlineStructuredDescription","metadataCollapsible"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],L5.prototype,"descriptionAlwaysCollapsible",null);
_.d(L5,"ytd-video-secondary-info-renderer",function(){if(jbq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);jbq=M}M=jbq;return M},{mode:2});var pJA;var AZ=function(){return _.g.apply(this,arguments)||this};
_.w(AZ,_.g);AZ.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:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
AZ.prototype.activate=function(M){M.appendTo(this.player);M.getPlayerPromise().then(function(z){z.setMinimized(!0)});
this.active=!0};
AZ.prototype.deactivate=function(){var M=this.player.firstElementChild;M.getPlayerPromise().then(function(z){z.setMinimized(!1)});
this.active=!1;return M};
AZ.prototype.onScrollUpTap=function(){var M=_.JF().resolve(_.M6).getCurrentPage();M&&M.setScrollTop(0)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],AZ.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AZ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],AZ.prototype,"active",void 0);
_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.W("design:type",Boolean)],AZ.prototype,"darkLaunch",void 0);_.u([_.Qc("#player"),_.W("design:type",HTMLDivElement)],AZ.prototype,"player",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],AZ);
_.d(AZ,"ytd-miniplayer-bar-renderer",function(){if(pJA!==void 0)return pJA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return pJA=M},{mode:1});_.N7(_.Mf(function(M){var z=_.AL("script");_.jP(function(){var J;if(J=JSON)J=ZK4(M.data()),J=_.L3(JSON.stringify(J).replace(/</g,"\\u003C"));var R=M.data(),D=_.CD(R.title).trim().length===0,N=!R.publishDate||R.publishDate.trim().length===0,Z,B,O,X,l=!((Z=R.thumbnail)==null?0:(B=Z.thumbnails)==null?0:B.length)||!((O=R.thumbnail)==null?0:O.thumbnails[0].url)||((X=R.thumbnail)==null?void 0:X.thumbnails[0].url.trim().length)===0;z.value&&J&&!(D||N||l)&&_.Ar(z.value,J)},"I9AhLd");
return _.T("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.T("script",{el:z,type:"application/ld+json"}))},"qk"),"player-microformat-renderer",{props:{data:_.Dv}});
}catch(e){_._DumpException(e)}
try{
var xHi;_.wWZ=function(M){return M.watch.watchWindowSize};
xHi=function(M,z,J,R){if(M.isLockupToWatchTransitionEnabled){if(z){var D={};M.viewTransitionCoordinator.registerElement(z,(D["lockup-to-watch"]="player-lockup-to-watch",D["watch-next-appears"]="player-watch-next-loaded",D))}J&&(z={},M.viewTransitionCoordinator.registerElement(J,(z["lockup-to-watch"]="below-lockup-to-watch",z["watch-next-appears"]="below-watch-next-loaded",z)));R&&(J={},M.viewTransitionCoordinator.registerElement(R,(J["watch-next-appears"]="secondary-watch-next-loaded",J)))}};
_.tfE=function(M){return _.Nv({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:M}})};var pWi=function(M){_.wS.call(this);this.JSC$22934_watchApi=M;jXr(this)};
_.w(pWi,_.wS);var jXr=function(M){_.k(function(z){if(z.nextAddress==1)return z.yield(FFE(M),2);YRw(M);_.UI(z)})},FFE=function(M){var z,J,R,D;
return _.k(function(N){if(N.nextAddress==1)return N.yield(M.JSC$22934_watchApi.playerApi,2);z=N.yieldResult;M.JSC$22934_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){mHd(M)});
J=M.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YRw(M)});
R=function(Z){M.onCueRangeEnter(Z)};
z.addEventListener("onCueRangeEnter",R);D=function(Z){M.onCueRangeExit(Z)};
z.addEventListener("onCueRangeExit",D);M.addOnDisposeCallback(function(){M.JSC$22934_watchApi.unsubscribeByKey(J);z.removeEventListener("onCueRangeEnter",R);z.removeEventListener("onCueRangeExit",D)});
_.UI(N)})},gyd=function(M){var z,J,R,D,N,Z,B,O,X;
return(N=(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.results)==null?void 0:(D=R.results)==null?void 0:D.contents)==null?void 0:(Z=N.find(function(l){var e,Q,v;return(e=l.itemSectionRenderer)==null?void 0:(Q=e.contents)==null?void 0:(v=Q[0])==null?void 0:v.shoppingTimelyShelfViewModel}))==null?void 0:(B=Z.itemSectionRenderer)==null?void 0:(O=B.contents)==null?void 0:(X=O[0])==null?void 0:X.shoppingTimelyShelfViewModel},YRw=function(M){var z;
_.k(function(J){if(J.nextAddress==1)return(z=M.JSC$22934_watchApi.getWatchNextResponse())?J.yield(mHd(M),2):J.return();M.shoppingTimelyShelfViewModel=gyd(z);sXw(M);nyw(M);_.UI(J)})},sXw=function(M){var z,J=(z=M.shoppingTimelyShelfViewModel)==null?void 0:z.offerIdToVariants;
J&&(z=J.filter(function(R){return R.key&&R.value}).map(function(R){return[R.key,
R.value]}),M.variantsMap=new Map(z))},nyw=function(M){var z,J,R,D,N,Z;
_.k(function(B){if(B.nextAddress==1)return(J=(z=M.shoppingTimelyShelfViewModel)==null?void 0:z.cueRanges)?B.yield(M.JSC$22934_watchApi.playerApi,2):B.return();R=B.yieldResult;M.cueRanges=J;D=_.S(J);for(N=D.next();!N.done;N=D.next())Z=N.value,Z.startTime!==void 0&&Z.endTime!==void 0&&Z.id!==void 0&&R.addCueRange("shopping_timely_shelf"+Z.id,hL4(Z.startTime),hL4(Z.endTime));_.UI(B)})},hL4=function(M){return Number(M.seconds||0)+(M.nanos||0)/1E9};
pWi.prototype.onCueRangeEnter=function(M){if(M.startsWith("shopping_timely_shelf")){var z=M.substring(21),J,R;M=(J=this.variantsMap)==null?void 0:(R=J.get(z))==null?void 0:R.shelf;if(_.U("web_enable_shopping_timely_shelf_client_overwrite")){var D,N,Z,B,O;J=M==null?void 0:(D=M.shoppingTimelyShelfContentViewModel)==null?void 0:(N=D.button)==null?void 0:(Z=N[1])==null?void 0:(B=Z.buttonViewModel)==null?void 0:(O=B.onTap)==null?void 0:O.innertubeCommand;var X,l;if(J==null?0:(X=J.menuEndpoint)==null?0:
(l=X.menu)==null?0:l.menuRenderer)J.openPopupAction=J.menuEndpoint,J.openPopupAction.popup=J.openPopupAction.menu,J.openPopupAction.popup.menuPopupRenderer=J.openPopupAction.popup.menuRenderer,J.openPopupAction.popupType="DROPDOWN",delete J.menuEndpoint,delete J.openPopupAction.menu,delete J.openPopupAction.popup.menuRenderer}M&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",M)}};
pWi.prototype.onCueRangeExit=function(M){M.startsWith("shopping_timely_shelf")&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var mHd=function(M){var z,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(M.JSC$22934_watchApi.playerApi,2);z=Z.yieldResult;if(M.cueRanges)for(J=_.S(M.cueRanges),R=J.next();!R.done;R=J.next())D=R.value,D.id&&(N="shopping_timely_shelf"+D.id,z.removeCueRange(N));M.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});M.shoppingTimelyShelfViewModel=void 0;M.cueRanges=void 0;M.variantsMap=void 0;_.UI(Z)})};var KFi=function(M){_.wS.call(this);var z=this;this.JSC$22941_watchApi=M;M=_.jx(_.rA(),_.Z1H,function(){ygw(z)});
this.addOnDisposeCallback(M);M=_.jx(_.rA(),_.wWZ,function(){ygw(z)});
this.addOnDisposeCallback(M);Hhw(this);cgq(this);dHZ()};
_.w(KFi,_.wS);var Hhw=function(M){var z=function(R){_.rA().dispatch(_.W$Z(R.matches))},J=window.matchMedia("(max-width: "+(999+_.ig())+"px)");
J.addListener(z);M.addOnDisposeCallback(function(){J.removeListener(z)});
z(J)},cgq=function(M){M.JSC$22941_watchApi.registerActionHandler("yt-window-resized",function(){dHZ()});
M.addOnDisposeCallback(function(){M.JSC$22941_watchApi.unregisterActionHandler("yt-window-resized")})},dHZ=function(){var M=_.t9();
_.rA().dispatch(_.Nv({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:M.width,height:M.height}}}))},ygw=function(M){var z;
_.k(function(J){if(J.nextAddress==1)return J.yield(M.JSC$22941_watchApi.playerApi,2);z=J.yieldResult;z.setSize(NaN,NaN);_.UI(J)})};var $H3=function(M){_.wS.call(this);var z=_.JF().resolve(_.xm);xHi(z,M.getElement("PLAYER_CONTAINER"),M.getElement("BELOW_THE_PLAYER"),M.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var J=M.getElement("PLAYER_CONTAINER"),R=M.getElement("BELOW_THE_PLAYER"),D=M.getElement("SECONDARY");z.isLockupToWatchTransitionEnabled&&(J&&_.V9(z.viewTransitionCoordinator,J),R&&_.V9(z.viewTransitionCoordinator,R),D&&_.V9(z.viewTransitionCoordinator,D))})};
_.w($H3,_.wS);_.K5=function(M){_.lk.call(this);var z=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(J){z.initOrDisposeActiveModules(J)}));
this.onAttached()};
_.w(_.K5,_.lk);_.P=_.K5.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(M){return this.rootElement.getElement(M)};
_.P.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(M,z){var J=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.EB(_.VA.getInstance(),(R[M]=z,R),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),R={},_.EB(_.VA.getInstance(),(R[M]=function(){var D=_.H4.apply(0,arguments);return(J.actionHandlers.get(M)||[]).map(function(N){return N.apply(null,_.Yj(D))})},R),this.getRoot())),this.actionHandlers.get(M).push(z)};
_.P.unregisterActionHandler=function(M){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.fc(_.VA.getInstance(),(z[M]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(M))?(z.pop(),z.length===0&&(z={},_.fc(_.VA.getInstance(),(z[M]=!0,z),this.getRoot()),this.actionHandlers.delete(M))):_.yA(new _.xN("Attempted to unregister an action handler which is not registered.",M))};
_.P.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.wYY(this.rootElement.pageDisposeJobs,M)};
_.P.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.$o(this.rootElement.pageDisposeJobs,M)};
_.P.dispatchEvent=function(M,z){_.Pv(this.rootElement,M,z)};
_.P.provideRenderingData=function(M,z){this.rootElement.provideRenderingData(M,z)};
_.P.scrollWatchTo=function(M,z){var J;(J=this.watchScrollManager)==null||J.scrollWatchTo(M,z)};
_.P.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.C4(M,function(){if(M&&M.firstElementChild){var z=M.querySelector(".html5-video-player");z&&(_.S0(_.JF().resolve(_.pn)),z.focus())}else _.yA(Error("Eo"))})};
_.P.updateCinematicFullscreenConfig=function(){if(_.U("web_cinematic_manager_redux_killswitch")){var M=!!this.rootElement.theater,z=!!this.rootElement.fullscreen,J;(J=this.watchCinematicManager)==null||_.hZ(J,z,M)}};
_.P.subscribeToActiveChanged=function(M,z){z=z===void 0?!0:z;var J=_.jx(_.rA(),_.Ae3,function(R){M(R)});
z&&M(_.Ae3(_.rA().getState()));return J};
_.P.isActive=function(){return _.Ae3(_.rA().getState())};
_.P.onAttached=function(){var M=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(M=_.JF().resolve(_.Z3i).retriever.getFlag(_.AKg));(M||_.cW("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var uTr=function(M){return M.getRoot().is==="ytd-watch-flexy"||M.getRoot().is==="ytd-watch-grid"},$g=function(M){return M.getRoot().is==="ytd-watch-fixie"};
_.K5.prototype.initPersistentModules=function(){if($g(this)||uTr(this)&&_.U("kevlar_watch_flexy_theater_manager")){var M=new _.AKi(this);_.OC(this,M)}M=new _.yPZ(this);_.OC(this,M);M=new _.mu(this);_.OC(this,M);M=new _.gEw(this);_.OC(this,M);M=new _.B3s(this);_.OC(this,M);M=new _.sl(this);_.OC(this,M);if($g(this)||uTr(this)&&_.U("kevlar_watch_flexy_playlist_manager"))M=new _.INA(this),_.OC(this,M);_.U("web_thumbnail_to_watch_transition")&&(M=new $H3(this),_.OC(this,M))};
_.K5.prototype.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.dW(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.iq3(this)),_.U("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new pWi(this)),this.activeModules.push(new _.rAA(this)),$g(this)&&this.activeModules.push(new KFi(this)),this.activeModules.push(new _.UHi(this)),this.activeModules.push(new _.Wti(this)),($g(this)||_.U("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.RBA(this)),this.activeModules.push(new _.Jgw(this)),($g(this)||_.U("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.G4A(this)),($g(this)||_.U("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Oqs(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.lZr(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Pid(this)),
_.U("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.nEw(this)),M=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new _.plE(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gW(this)),this.activeModules.push(new _.RSr(this)),this.activeModules.push(new _.bqq(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.SZw(this)),
_.U("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.m$A(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.vFi(this)),_.U("web_fullscreen_components")&&this.activeModules.push(new _.SCq(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.s2w(this))):(_.ru(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.K5.prototype.disposeInternal=function(){_.lk.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.rX.Object.defineProperties(_.K5.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var EPv,n0,fiw,Ljm,iiw,Ccl,AHd,bim;EPv=function(){var M=_.wE();M.info||(M.info={});return M.info};
n0=function(M){return Math.round(_.pY()+M)};
fiw=function(){var M;if(_.U("csi_use_performance_navigation_timing")){var z,J,R,D=_.j9==null?void 0:(M=_.j9.getEntriesByType)==null?void 0:(z=M.call(_.j9,"navigation"))==null?void 0:(J=z[0])==null?void 0:(R=J.toJSON)==null?void 0:R.call(J);D?(D.requestStart=n0(D.requestStart),D.responseEnd=n0(D.responseEnd),D.redirectStart=n0(D.redirectStart),D.redirectEnd=n0(D.redirectEnd),D.domainLookupEnd=n0(D.domainLookupEnd),D.connectStart=n0(D.connectStart),D.connectEnd=n0(D.connectEnd),D.responseStart=n0(D.responseStart),
D.secureConnectionStart=n0(D.secureConnectionStart),D.domainLookupStart=n0(D.domainLookupStart),D.isPerformanceNavigationTiming=!0,M=D):M=_.j9.timing}else M=_.U("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.j9.timing)):_.j9.timing;return M};
Ljm=function(){if(_.j9.getEntriesByType){var M=_.j9.getEntriesByType("paint");if(M=_.he(M,function(J){return J.name==="first-paint"}))return n0(M.startTime)}var z;
_.U("csi_use_performance_navigation_timing")?z=_.j9.getEntriesByType("first-paint")[0].startTime:z=_.j9.timing.msFirstPaint;return z?Math.max(0,z):0};
iiw=function(){var M=window.location.protocol,z=_.j9.getEntriesByType("resource");z=_.B9(z,function(J){return J.name.indexOf(M+"//fonts.gstatic.com/s/")===0});
(z=AHd(z,function(J,R){return R.duration>J.duration?R:J}))&&z.startTime>0&&z.responseEnd>0&&(_.F9("wffs",n0(z.startTime)),_.F9("wffe",n0(z.responseEnd)))};
Ccl=function(M,z){M=document.querySelector(M);if(!M)return!1;var J="",R=M.nodeName;R==="SCRIPT"?(J=M.src,J||(J=M.getAttribute("data-timing-href"))&&(J=window.location.protocol+J)):R==="LINK"&&(J=M.href);_.Ew(document)&&M.setAttribute("nonce",_.Ew(document));return J?(M=_.j9.getEntriesByName(J))&&M[0]&&(M=M[0],J=_.pY(),_.F9("rsf_"+z,J+Math.round(M.fetchStart)),_.F9("rse_"+z,J+Math.round(M.responseEnd)),M.transferSize!==void 0&&M.transferSize===0)?!0:!1:!1};
_.hf=function(M,z){_.ui(function(){_.td("").info.actionType=M;z&&_.yU("TIMING_AFT_KEYS",z);_.yU("TIMING_ACTION",M);var J=_.L7e(_.HW("TIMING_INFO",{}));Object.keys(J).length>0&&_.YQ(J);J={isNavigation:!0,actionType:_.ynR(_.HW("TIMING_ACTION"))};var R=_.HW("PREVIOUS_ACTION");R&&(J.previousAction=_.ynR(R));if(R=_.HW("CLIENT_PROTOCOL"))J.httpProtocol=R;if(R=_.HW("CLIENT_TRANSPORT"))J.transportProtocol=R;(R=_.y5())&&R!=="UNDEFINED_CSN"&&(J.clientScreenNonce=R);R=_.fyp();if(R===1||R===-1)J.isVisible=!0;
R=_.p08().loadType==="cold";var D=EPv();R||(R=D.yt_lt==="cold");if(R){J.loadType="cold";R=EPv();D=fiw();var N=_.pY(),Z=_.HW("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!_.U("embeds_web_enable_csi_start_override_killswitch")&&(N=Z);N&&(_.F9("srt",D.responseStart),R.prerender!==1&&_.$PR(N));R=Ljm();R>0&&_.F9("fpt",R);R=fiw();R.isPerformanceNavigationTiming&&_.YQ({performanceNavigationTiming:!0},void 0);_.F9("nreqs",R.requestStart,void 0);_.F9("nress",R.responseStart,void 0);_.F9("nrese",R.responseEnd,void 0);
R.redirectEnd-R.redirectStart>0&&(_.F9("nrs",R.redirectStart,void 0),_.F9("nre",R.redirectEnd,void 0));R.domainLookupEnd-R.domainLookupStart>0&&(_.F9("ndnss",R.domainLookupStart,void 0),_.F9("ndnse",R.domainLookupEnd,void 0));R.connectEnd-R.connectStart>0&&(_.F9("ntcps",R.connectStart,void 0),_.F9("ntcpe",R.connectEnd,void 0));R.secureConnectionStart>=_.pY()&&R.connectEnd-R.secureConnectionStart>0&&(_.F9("nstcps",R.secureConnectionStart,void 0),_.F9("ntcpe",R.connectEnd,void 0));_.j9&&"getEntriesByType"in
_.j9&&iiw();R=[];if(document.querySelector&&_.j9&&_.j9.getEntriesByName)for(var B in bim)bim.hasOwnProperty(B)&&(D=bim[B],Ccl(B,D)&&R.push(D));if(R.length>0)for(J.resourceInfo=[],B=_.S(R),R=B.next();!R.done;R=B.next())J.resourceInfo.push({resourceCache:R.value})}_.YQ(J);J=_.xQ();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);B=J.preLoggedGelInfos;J=_.Y_R();R=void 0;for(D=0;D<B.length;D++)if(N=B[D],N.loadType){R=N.loadType;break}if(_.p08().loadType==="cold"&&(J.loadType==="cold"||R==="cold")){R=_.F7b();
D=_.xQ();D=D.gelTicks?D.gelTicks:D.gelTicks={};for(var O in R)if(!(O in D))if(typeof R[O]==="number")_.F9(O,_.mV(O));else if(_.U("log_repeated_ytcsi_ticks"))for(N=_.S(R[O]),Z=N.next();!Z.done;Z=N.next())Z=Z.value,_.F9(O.slice(1),Z);O={};R=!1;B=_.S(B);for(D=B.next();!D.done;D=B.next())R=D.value,_.Ku(J,R),_.Ku(O,R),R=!0;R&&_.YQ(O)}_.bR8(!0);O=_.HW("TIMING_ACTION");_.qH("ytglobal.timingready_")&&O&&_.ZH8()&&_.CZn()&&_.VRH()})()};
AHd=function(M,z){return Array.prototype.reduce.call(M,z,{duration:0})};
bim={'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 rHi={};rHi.YtVisibilityRootBehavior=[_.r5J.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.bv(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.HW("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var M=_.HW("INNERTUBE_CLIENT_NAME")!=="WEB";_.U("kevlar_use_vimio_behavior")&&M&&_.ixg()}}];_.yJ={};_.yJ.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(M){M.detail.contextProvider=this;M.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
rHi.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Ln();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(M){var z=this;this.pageCount+=1;_.U("kevlar_use_vimio_behavior")&&(_.HW("INNERTUBE_CLIENT_NAME")==="WEB"?_.no.addJob(function(){z.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(M)},
loadPage_:function(M){this.data=M},
ytPageBehaviorActiveObserver_:function(M){var z=this;_.U("kevlar_use_vimio_behavior")&&(M?_.HW("INNERTUBE_CLIENT_NAME")==="WEB"?_.no.addJob(function(){z.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(M){if(!this.setScrollTopJobId_){var z=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){z.setScrollTopJobId_=0;var J=_.JF().resolve(_.zw(_.pn));J&&_.S0(J);this.getPageScrollingElement().scrollTop=M}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.gp(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var VTv;var sn=function(){var M=_.g.apply(this,arguments)||this;M.playerListenerConfig=null;M.actionMap={"yt-show-watch-page-survey":"openSurvey"};return M};
_.w(sn,_.g);_.P=sn.prototype;_.P.dataChanged=function(){var M=this,z=_.J_();z&&z.getPlayerPromise().then(function(R){M.maybeRemovePlayerListeners(R)});
var J=this.data&&this.data.survey;J&&((J=(J=J.singleOptionSurveyRenderer||J.checkboxSurveyRenderer||J.multiStageSurveyRenderer)&&J.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(z,J):this.openSurvey())};
_.P.triggerWatchPageSurvey=function(M,z){var J=this,R,D,N,Z,B,O,X,l,e;return _.k(function(Q){if(Q.nextAddress==1)return M?Q.yield(M.getPlayerPromise(),2):Q.return();J.player=Q.yieldResult;if(!J.player)return Q.return();R={};D=_.S(z);for(N=D.next();!N.done;N=D.next())Z=N.value,B=_.S(J.createEventListenerPair(Z)),O=B.next().value,X=B.next().value,l=O,e=X,l&&e&&(R[l]=e,J.ytPlayerListenerBehavior.listenToPlayerEvent(J.player,l,e));J.playerListenerConfig=R;_.UI(Q)})};
_.P.createEventListenerPair=function(M){var z=M.playbackEventTrigger;return z?this.handlePlaybackTrigger(z):(M=M.watchTimeTrigger)?this.handleWatchTimeTrigger(M):[void 0,void 0]};
_.P.handleWatchTimeTrigger=function(M){var z=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var J=M.videoWatchFraction,R=M.watchTimeSec;return R&&J?["onVideoProgress",function(){z.player&&z.isWatchTimeConditionMet(z.player,J,R)&&z.showSurvey()}]:[void 0,
void 0]};
_.P.isWatchTimeConditionMet=function(M,z,J){var R=M.getProgressState(),D=R.current-this.lastKnownPlaybackPosition;D<5&&(this.accumulatedMediaTime+=D);this.lastKnownPlaybackPosition=R.current;R=Math.round(this.accumulatedMediaTime/R.duration*1E3)/1E3;return M.getPresentingPlayerType&&M.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>J||R>z)};
_.P.handlePlaybackTrigger=function(M){var z=this;M=M.playbackEvent;if(M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var J="onStateChange";var R=function(D){D===0&&z.showSurvey()}}else M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(J="onVideoProgress",R=function(D){z.player&&z.player.getPresentingPlayerType&&z.player.getPresentingPlayerType()===1&&D&&z.showSurvey()}):M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(J="onAdEnd",R=this.showSurvey);
return[J,R]};
_.P.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.P.openSurvey=function(){var M=this,z=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.kSu(!!z));_.no.addJob(function(){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:z}})},0,0)};
_.P.maybeRemovePlayerListeners=function(M){if(this.playerListenerConfig){for(var z=_.S(Object.keys(this.playerListenerConfig)),J=z.next();!J.done;J=z.next())J=J.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(M,J,this.playerListenerConfig[J]);this.playerListenerConfig=null}};
sn.prototype.dataChanged=sn.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],sn.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],sn.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],sn.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sn.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],sn.prototype,"playerListenerConfig",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],sn.prototype,"lastKnownPlaybackPosition",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],sn.prototype,"accumulatedMediaTime",void 0);_.u([_.Y(),_.W("design:type",Object)],sn.prototype,"player",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sn.prototype,"dataChanged",null);_.u([_.c({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],sn);
_.d(sn,"ytd-survey-trigger-renderer",function(){if(VTv!==void 0)return VTv;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return VTv=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var noi=new _.R_("promotedSparklesWebRenderer");var h04=new _.R_("relatedChipCommand");var yer;var Hpr;var Ql=function(){return _.g.apply(this,arguments)||this};
_.w(Ql,_.g);Ql.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ql.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Ql);
_.d(Ql,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Hpr!==void 0)return Hpr;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Hpr=M},{mode:1});var ceA;var dbA;var Kww;var Ug=function(){return _.g.apply(this,arguments)||this};
_.w(Ug,_.g);Ug.prototype.ready=function(){this.initializeDefs()};
Ug.prototype.initializeDefs=function(){var M=this.meta.byKey("yt-icons"),z=_.SN(M).querySelector("#star"),J=_.SN(M).querySelector("#star_half");M=_.SN(M).querySelector("#star_border");z&&this.defs.appendChild(z.cloneNode(!0));J&&this.defs.appendChild(J.cloneNode(!0));M&&this.defs.appendChild(M.cloneNode(!0))};
Ug.prototype.percentChanged=function(){for(var M=this.rating;M.firstChild;)M.removeChild(M.firstChild);var z=Math.round(this.percent/10);M=Math.floor(z/2);z%=2;var J=5-M-z;this.appendStars("star",M,0);this.appendStars("star_half",z,M);this.appendStars("star_border",J,M+z)};
Ug.prototype.appendStars=function(M,z,J){for(var R=0;R<z;R++){var D=(18+this.spacing)*(R+J),N=document.createElementNS("http://www.w3.org/2000/svg","use");_.Ktw(N,"#"+M);N.setAttribute("x",""+D);N.setAttribute("y","0");this.rating.appendChild(N)}};
Ug.prototype.percentChanged=Ug.prototype.percentChanged;_.u([_.Qc("#defs"),_.W("design:type",HTMLElement)],Ug.prototype,"defs",void 0);_.u([_.Qc("#rating"),_.W("design:type",HTMLElement)],Ug.prototype,"rating",void 0);_.u([_.Y(),_.W("design:type",Number)],Ug.prototype,"percent",void 0);_.u([_.Y({value:6}),_.W("design:type",Number)],Ug.prototype,"spacing",void 0);_.u([_.Y({value:_.Yt.create("iron-meta",{type:"iconset"})}),_.W("design:type",_.sv)],Ug.prototype,"meta",void 0);
_.u([_.la("percent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ug.prototype,"percentChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-ratings"})],Ug);
_.d(Ug,"ytd-ratings",function(){if(Kww!==void 0)return Kww;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Kww=M},{mode:1});var vF=function(){return _.g.apply(this,arguments)||this};
_.w(vF,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vF.prototype,"data",void 0);_.u([_.c({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],vF);
_.d(vF,"ytd-offer-review-renderer",function(){if(dbA!==void 0)return dbA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dbA=M},{mode:1});var G2=function(){var M=_.g.apply(this,arguments)||this;M.badges=[{textBadge:{label:_.id("CC")}}];return M};
_.w(G2,_.g);_.P=G2.prototype;_.P.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.P.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(M&&M.commandMetadata&&_.G(M.commandMetadata,_.hV)&&_.G(M.commandMetadata,_.hV).fireAutomatically)_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}});else{var z;M&&((z=_.G(M,_.hV))==null?0:z.fireAutomatically)&&_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})}};
_.P.isEmptyContent=function(M){return this.isStorefrontEntryPointEmpty(M)&&this.shouldHideOfferModule(M)};
_.P.isStorefrontEntryPointEmpty=function(M){return!M||!M.storefrontEntryPoint};
_.P.shouldHideOfferModule=function(M){return!!M.hideVideoDetails};
_.P.isOfferModuleNavigationInactive=function(M){return!M.navigationEndpoint&&!M.serviceEndpoint};
_.P.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
G2.prototype.dataChanged=G2.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],G2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.W("design:type",Boolean)],G2.prototype,"hidden",void 0);
_.u([_.Y(),_.W("design:type",Object)],G2.prototype,"badges",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G2.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],G2);
_.d(G2,"ytd-movie-offer-module-renderer",function(){if(ceA!==void 0)return ceA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ceA=M},{mode:1});var $b4;var wT=function(){return _.g.apply(this,arguments)||this};
_.w(wT,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wT.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wT.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],wT);
_.d(wT,"ytd-media-masthead-renderer",function(){if($b4!==void 0)return $b4;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $b4=M},{mode:1});var unq;_.N7(_.owV,"course-metadata-view-model",{props:{data:_.Dv,isOverlay:_.Dv}});var x0=function(){var M=_.g.apply(this,arguments)||this;M.isMetadataVisible=!1;M.modernPanels=_.U("kevlar_watch_modern_panels");M.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return M};
_.w(x0,_.g);_.P=x0.prototype;
_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.P.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.P.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.P.expanderChanged=function(){var M;if((M=this.data)==null?0:M.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.P.isExpandButtonToggled=function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.expandMetadataButton,_.nf))==null?void 0:z.isToggled};
_.P.onVisibilityButtonClick=function(){var M;if((M=this.data)==null?0:M.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.P.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
x0.prototype.expanderChanged=x0.prototype.expanderChanged;x0.prototype.dataChanged=x0.prototype.dataChanged;x0.prototype.descriptionChanged=x0.prototype.descriptionChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],x0.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],x0.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],x0.prototype,"isMetadataVisible",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],x0.prototype,"modernPanels",void 0);_.u([_.Qc("#expander"),_.W("design:type",Object)],x0.prototype,"expander",void 0);_.u([_.la("data.description"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x0.prototype,"descriptionChanged",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x0.prototype,"dataChanged",null);_.u([_.la("isMetadataVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x0.prototype,"expanderChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],x0);
_.d(x0,"ytd-tvfilm-offer-module-renderer",function(){if(unq!==void 0)return unq;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return unq=M},{mode:2});var q8r;var tc=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return M};
_.w(tc,_.g);tc.prototype.dataChanged=function(){this.hostElement.hidden=!1};
tc.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
tc.prototype.onThumbnailTap=function(M){this.data&&this.data.serviceEndpoint&&(_.JF().resolve(_.Rb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),M.stopPropagation())};
tc.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
tc.prototype.dataChanged=tc.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tc.prototype,"rendererBehaviors",void 0);_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],tc.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tc.prototype,"data",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tc.prototype,"dataChanged",null);_.u([_.c({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],tc);
_.d(tc,"ytd-unlimited-offer-module-renderer",function(){if(q8r!==void 0)return q8r;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return q8r=M},{mode:1});var Wwd;var acr;var ji=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return M};
_.w(ji,_.g);ji.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
ji.prototype.handleRelatedChipCommand=function(M){M=_.G(M,h04);var z=M.contents;z?_.ZL(this.hostElement,"yt-item-section-replace-action",[z,M.targetSectionIdentifier]):_.ZL(this.hostElement,"yt-item-section-continuation-action",[M.continuationData,M.targetSectionIdentifier])};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ji.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ji.prototype,"data",void 0);_.u([_.cU({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],ji);
_.d(ji,"yt-related-chip-cloud-renderer",function(){if(acr===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Wwd===void 0&&(Wwd=document.createElement("template"));var R=Wwd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);acr=M}M=acr;return M},{mode:2});var pt=function(){var M=_.g.apply(this,arguments)||this;M.isTwoColumns=!0;M.hideOfferModules=!1;M.watchFeedBigThumbs=_.U("kevlar_watch_feed_big_thumbs");M.watchFeedBigThumbsOnLockup=_.U("web_watch_next_big_thumbs");M.watchNextGridHideChips=_.U("kevlar_watch_grid_hide_chips");M.eligibleToSwitchToGrid=_.U("web_watch_eligible_to_switch_to_grid");M.disableShortsShelfHeightOverride=_.U("web_shorts_wn_shelf_ratio_tuning");M.isWatchNextGrid=!1;M.reuseComponents=!_.U("kevlar_watch_grid");M.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return M};
_.w(pt,_.g);_.P=pt.prototype;
_.P.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.U("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.P.getItemsPath=function(){return"data.results"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.P.created=function(){this.ytLazyListBehavior.initialCount=1};
_.P.ready=function(){_.Tp(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.P.resultsChanged=function(){if(this.data&&this.data.results){for(var M=this.data.results,z=null,J=null,R=0;R<M.length;R++)M[R].relatedChipCloudRenderer?z=M[R].relatedChipCloudRenderer:M[R].itemSectionRenderer&&(J=M[R].itemSectionRenderer);if(z&&J)for(this.set("data.continuations",[]),M=_.G(z.content,_.pcg).chips,z=0;z<M.length;z++)if(R=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",M[z]),R.loadCached||!R.contents){R.contents=J.contents;break}}};
_.P.dataChanged=function(){var M=this,z;if((z=this.data)!=null&&z.results&&this.hasAllowedInstreamAd(this.playerData)){if(z=this.data.results.filter(function(B){return!!B.promotedSparklesWebRenderer})){for(var J=0;J<z.length;J++){var R=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",z[J]);
if(R)for(var D=0;D<R.length;D++)R[D]&&R[D].baseUrl&&_.WI(R[D].baseUrl)}this.set("data.results",this.data.results.filter(function(B){return!B.promotedSparklesWebRenderer}))}if(z=this.data.results.filter(function(B){return!!M.getSparklesAd(B)})){z=_.S(z);
for(D=z.next();!D.done;D=z.next())if(R=J=void 0,D=(J=this.getSparklesAd(D.value))==null?void 0:(R=J.errorCommand)==null?void 0:R.loggingUrls)for(J=_.S(D),R=J.next();!R.done;R=J.next())(R=R.value)&&R.baseUrl&&_.WI(R.baseUrl);var N,Z;this.set("data.results",(N=this.data)==null?void 0:(Z=N.results)==null?void 0:Z.filter(function(B){return!B.adSlotRenderer}))}}};
_.P.getSparklesAd=function(M){var z,J;M=_.G((z=M.adSlotRenderer)==null?void 0:(J=z.fulfillmentContent)==null?void 0:J.fulfilledLayout,_.mok);return _.G(M==null?void 0:M.renderingContent,noi)};
_.P.hasAllowedInstreamAd=function(M){M=this.get("adPlacements",M)||[];for(var z=0;z<M.length;z++){var J=this.get("adPlacementRenderer.config.adPlacementConfig",M[z]);if(J&&J.suppressDisplayAd)return!0}return!1};
_.P.computeHideUnlimitedOfferModule=function(M,z){return M&&M.offerModule&&z&&M.offerModule.unlimitedOfferModuleRenderer&&M.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(z)?!0:!1};
_.P.hideUnlimitedOfferModuleChanged=function(){var M=_.SN(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");M&&(M.hidden=this.hideUnlimitedOfferModule)};
_.P.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||z.forEach(function(J){J.containerType=M})}};
_.P.computeHideTvfilmOfferModule=function(M,z){var J,R;return!!((M==null?0:(J=M.offerModule)==null?0:(R=J.tvfilmOfferModuleRenderer)==null?0:R.clientShouldSuppressIfCompanionAdDisplayed)&&z&&this.hasCompanionAds(z))};
_.P.hideTvfilmOfferModuleChanged=function(){var M=_.SN(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");M&&(M.hidden=this.hideTvfilmOfferModule)};
_.P.hasCompanionAds=function(M){M=this.get("adPlacements",M)||[];for(var z=0;z<M.length;z++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",M[z]))return!0;var J=void 0,R=void 0,D=void 0;if(!_.U("web_watch_top_banner_companion_check_killswitch")&&((J=M[z])==null?0:(R=J.adPlacementRenderer)==null?0:(D=R.renderer)==null?0:D.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.P.hasSuppressedResults=function(M){return M==null?!0:M.filter(function(z){return!z.continuationItemRenderer&&!z.compactPromotedVideoRenderer&&!z.promotedSparklesWebRenderer}).length===0};
_.P.computeShowButton=function(M,z){return this.isWatchNextGrid?M:M||this.hasSuppressedResults(z)};
_.P.showButtonChanged=function(){if(this.isWatchNextGrid){var M=_.SN(this.hostElement).querySelector("ytd-rich-grid-renderer");M&&this.showButton!==null&&(M.continuationShowButton=this.showButton)}else{M=_.SN(this.hostElement).querySelector("yt-next-continuation");var z=_.SN(this.hostElement).querySelector("ytd-continuation-item-renderer"),J=_.SN(this.hostElement).querySelector("ytd-item-section-renderer");M&&(M.showButton=this.showButton);z&&(z.showButton=this.showButton);J&&(J.continuationShowButton=
this.showButton)}};
_.P.continuationTap=function(M){var z;if(((z=this.data)==null?void 0:z.continuations)!=null&&M.target.tagName==="TP-YT-PAPER-BUTTON")for(M=this.data.continuations,z=0;z<M.length;z++)M[z].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(M[z].nextContinuationData||{})};
_.P.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("shown-items-changed",this.shownItems))};
_.rX.Object.defineProperties(pt.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.shownItems)==null||!M.some(function(z){return!!z.lockupViewModel||z.compactVideoRenderer}))}}});
pt.prototype.shownItemsChangedForBinding=pt.prototype.shownItemsChangedForBinding;pt.prototype.showButtonChanged=pt.prototype.showButtonChanged;pt.prototype.hideTvfilmOfferModuleChanged=pt.prototype.hideTvfilmOfferModuleChanged;pt.prototype.updateLockupContainerTypes=pt.prototype.updateLockupContainerTypes;pt.prototype.hideUnlimitedOfferModuleChanged=pt.prototype.hideUnlimitedOfferModuleChanged;pt.prototype.dataChanged=pt.prototype.dataChanged;pt.prototype.resultsChanged=pt.prototype.resultsChanged;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],pt.prototype,"ytLazyListBehavior",void 0);_.u([_.p(_.ij.YtNextContinuationBehavior),_.W("design:type",Object)],pt.prototype,"ytNextContinuationBehavior",void 0);
_.u([_.p(_.AU),_.W("design:type",Object)],pt.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],pt.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"playerData",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],pt.prototype,"autoFill",void 0);_.u([_.Y({value:60}),_.W("design:type",Number)],pt.prototype,"targetFramerate",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"isTwoColumns",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"hideOfferModules",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"shownItems",void 0);_.u([_.Y({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.W("design:type",Boolean)],pt.prototype,"hideUnlimitedOfferModule",void 0);
_.u([_.Y({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.W("design:type",Boolean)],pt.prototype,"hideTvfilmOfferModule",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"watchFeedBigThumbs",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"watchFeedBigThumbsOnLockup",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"watchNextGridHideChips",void 0);_.u([_.Y(),_.W("design:type",Object)],pt.prototype,"eligibleToSwitchToGrid",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"disableShortsShelfHeightOverride",void 0);_.u([_.Y({selector:_.cS,reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"isGridViewEnabled",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],pt.prototype,"showMoreButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pt.prototype,"isWatchNextGrid",void 0);
_.u([_.Y({computed:"computeShowButton(showMoreButton, data.results)"}),_.W("design:type",Boolean)],pt.prototype,"showButton",void 0);_.u([_.wH("data.results.*"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"resultsChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"dataChanged",null);
_.u([_.la("hideUnlimitedOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"hideUnlimitedOfferModuleChanged",null);_.u([_.F("isGridViewEnabled","containsLockups","data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],pt.prototype,"lockupContainerType",null);
_.u([_.la("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],pt.prototype,"updateLockupContainerTypes",null);_.u([_.la("hideTvfilmOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"hideTvfilmOfferModuleChanged",null);_.u([_.la("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"showButtonChanged",null);
_.u([_.la("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pt.prototype,"shownItemsChangedForBinding",null);_.u([_.F("shownItems"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pt.prototype,"containsLockups",null);
_.d(pt,"ytd-watch-next-secondary-results-renderer",function(){if(yer===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);yer=M}M=yer;return M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var yHl=new _.R_("replaceFeedContentAction");var Hi5;var cHu;var xw=function(){return _.g.apply(this,arguments)||this};
_.w(xw,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xw.prototype,"data",void 0);_.u([_.c({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],xw);
_.d(xw,"ytd-sub-feed-option-renderer",function(){if(cHu!==void 0)return cHu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cHu=M},{mode:1});var dMw;var tf=function(){return _.g.apply(this,arguments)||this};
_.w(tf,_.g);tf.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tf.prototype,"ytRendererStamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tf.prototype,"data",void 0);_.u([_.c({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],tf);
_.d(tf,"ytd-sub-feed-selector-renderer",function(){if(dMw!==void 0)return dMw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dMw=M},{mode:1});var jL=function(){return _.g.apply(this,arguments)||this};
_.w(jL,_.g);
jL.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}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jL.prototype,"data",void 0);_.u([_.c({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],jL);
_.d(jL,"ytd-browse-feed-actions-renderer",function(){if(Hi5!==void 0)return Hi5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Hi5=M},{mode:1});var KjN;var $Mc;var p0=function(){return _.g.apply(this,arguments)||this};
_.w(p0,_.g);p0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p0.prototype,"data",void 0);_.u([_.c({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],p0);
_.d(p0,"ytd-mini-channel-renderer",function(){if($Mc!==void 0)return $Mc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $Mc=M},{mode:1});var u1l;var F0=function(){return _.g.apply(this,arguments)||this};
_.w(F0,_.g);F0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],F0.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],F0);
_.d(F0,"ytd-vertical-channel-section-renderer",function(){if(u1l!==void 0)return u1l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return u1l=M},{mode:1});var Yw=function(){return _.g.apply(this,arguments)||this};
_.w(Yw,_.g);Yw.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Yw.prototype,"data",void 0);_.u([_.c({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Yw);
_.d(Yw,"ytd-browse-secondary-contents-renderer",function(){if(KjN!==void 0)return KjN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return KjN=M},{mode:1});var qxl;var mB=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};M.notActive=!1;M.isConstrainedList=!1;return M};
_.w(mB,_.g);_.P=mB.prototype;
_.P.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(M){var z;return(M==null?void 0:(z=M.webComponentHint)==null?void 0:z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.P.getPath=function(M,z){var J="data.tabs.#"+z+".";M.tabs[z].tabRenderer?J+="tabRenderer.":M.tabs[z].expandableTabRenderer&&(J+="expandableTabRenderer.");return J+"content.sectionListRenderer"};
_.P.computeDisplayedContent=function(M){this.unlinkPaths("content");if(M&&M.tabs)for(var z=M.tabs.length,J=0;J<z;J++){var R=M.tabs[J].tabRenderer||M.tabs[J].expandableTabRenderer;if(R.selected&&R.content)return this.linkPaths("content",this.getPath(M,J)),R.content}return null};
_.P.computeHasSecondaryColumnData=function(M){return!!M&&!!M.secondaryContents};
_.P.onRetrieveLocation=function(M,z){z.locationRetrieved(z.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);M.stopPropagation()};
_.P.onYtServiceRequestSent=function(M,z){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.P.onYtServiceRequestCompleted=function(M,z){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.P.onReplaceFeedContentAction=function(M){if(!_.U("replace_feed_content_action_killswitch")&&!this.notActive){var z;(M=(z=_.G(M,yHl))==null?void 0:z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(M)}};
_.P.handleServiceRequestActions=function(M){if(M=M.actions){M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=void 0;((J=_.G(z,yHl))==null?0:J.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.G(z,yHl).items)}}};
mB.prototype.onYtServiceRequestCompleted=mB.prototype.onYtServiceRequestCompleted;mB.prototype.onYtServiceRequestSent=mB.prototype.onYtServiceRequestSent;mB.prototype.onRetrieveLocation=mB.prototype.onRetrieveLocation;_.u([_.p(_.fk),_.W("design:type",Object)],mB.prototype,"ytdGridStateAwareBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],mB.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mB.prototype,"data",void 0);_.u([_.Y({computed:"computeDisplayedContent(data)"}),_.W("design:type",Object)],mB.prototype,"content",void 0);
_.u([_.Y({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],mB.prototype,"hasSecondaryColumnData",void 0);_.u([_.Y({value:function(){return window.outerHeight>1024?3:2}}),
_.W("design:type",Number)],mB.prototype,"initialCount",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],mB.prototype,"pageSubtype",void 0);_.u([_.Qc("ytd-section-list-renderer"),_.W("design:type",Object)],mB.prototype,"listRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],mB.prototype,"notActive",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],mB.prototype,"isConstrainedList",void 0);
_.u([_.Y(),_.W("design:type",String)],mB.prototype,"responsiveSizing",void 0);_.u([_.Xw("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],mB.prototype,"onRetrieveLocation",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],mB.prototype,"onYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],mB.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],mB);
_.d(mB,"ytd-two-column-browse-results-renderer",function(){if(qxl!==void 0)return qxl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qxl=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Fos=function(M){if((M==null?void 0:M.value)===void 0||M==null||!M.unit)return"initial";a:{switch(M.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var z="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":z="%";break a}z=void 0}return z?""+M.value+z:"initial"},Y7E=new _.R_("shoppingContentLineItemViewModel");var mCE=_.Mf(function(M){var z=_.rH(M,{}).data;return _.T("yt-shopping-content-line-item-view-model",{class:_.Qe("ytShoppingContentLineItemViewModelHost")},_.T(_.m3,{text:function(){var J;return(J=z().text)==null?void 0:J.attributedString}}))},"rk");var gNi=_.Mf(function(M){M=_.rH(M,{});var z=M.data;return _.T("yt-shopping-content-line-view-model",{class:_.Qe("ytShoppingContentLineViewModelHost",M.className),style:_.UN({"--shopping-content-line-gap":function(){return z().itemGap?z().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return z().lineHeight?z().lineHeight+"px":void 0}})},_.T(_.G4,{each:function(){return(z().items||[]).map(function(J){return _.G(J,Y7E)}).filter(function(J){return!!J})}},function(J){return _.T(mCE,{data:J})}))},"sk");_.N7(_.Mf(function(M){var z=_.rH(M,{}).data,J=function(){var D;return((D=z().image)==null?void 0:D.width)||40},R=function(){var D;
return((D=z().image)==null?void 0:D.height)||40};
return _.T("yt-shopping-timely-shelf-content-view-model",{el:_.zL(_.uE(function(){var D;return(D=z())==null?void 0:D.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.Qe("ytShoppingTimelyShelfContentViewModelHost"),style:_.UN({"--shopping-timely-shelf-content-padding-top":function(){var D;return Fos((D=z().padding)==null?void 0:D.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var D;return Fos((D=z().padding)==null?void 0:D.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var D;return Fos((D=z().padding)==null?void 0:D.start)},
"--shopping-timely-shelf-content-padding-end":function(){var D;return Fos((D=z().padding)==null?void 0:D.end)}})},_.T(_.I,{cond:function(){var D;
return(D=z().image)==null?void 0:D.image},
then:function(D){return _.T(_.rv,{preserveHeight:!0,preserveWidth:!0,width:J,height:R,data:D,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj}),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.T(_.t_,{data:function(){return z().line1}},{shoppingContentLineViewModel:function(D){return _.T(gNi,{data:D.data})}}),_.T(_.t_,{data:function(){return z().line2}},{shoppingContentLineViewModel:function(D){return _.T(gNi,
{data:D.data})}})),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.T(_.G4,{each:function(){var D;
return(D=z().button)!=null?D:[]}},function(D){return _.T(_.t_,{data:function(){return D}},{buttonViewModel:_.lT})})))},"tk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.zn}});_.sbi={};
_.sbi.YtdWatchBehavior=[_.f.YtRendererBehavior,_.Mm.YtPlayerListenerBehavior,_.Bm.YtRendererstamperBehavior,_.wx.YtActionHandlerBehavior,_.yJ.YtPageBehavior,_.Gn.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 _.cW("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("full_bleed_single_column_default_player")}},
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 _.cW("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_error_screen_fix")}},
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,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 _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.NC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.NC("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.U("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var M={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.r1(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.r1(["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"||_.U("swa_prov_panels_ks")?M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return M},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.U("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.IRd(function(){return _.z_(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.ow;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;_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ou(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.Pv(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var z=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var J;(J=this.watchController)==null||J.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.sf({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hd("nw");this.loading=!1;_.x4(_.no,function(){z.initDclkstatus_();var R,D=((R=z.player)==null?void 0:R.getVideoData().cpn)||"";_.bhd(function(N,Z){_.eJl(N,Z,D)})})},
onPageLoadWithSameData_:function(){_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.U("kevlar_watch_frame0_loading_state")){var z,J,R;M=(z=this.loadingData)==null?void 0:(J=z.endpoint)==null?void 0:(R=J.watchEndpoint)==null?void 0:R.videoId;var D;M&&(D="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.SN(this.hostElement).querySelector("#player").style.backgroundImage=D?"url("+D+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.SN(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,J;(J=(z=this.watchMetadata).updateSentimentBarWidth)==
null||J.call(z);var R,D;(D=(R=this.watchMetadata).resize)==null||D.call(R)}_.U("kevlar_watch_frame0_loading_state")&&(_.SN(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var z=_.SN(this.hostElement).querySelector(M);z?_.DL(z,!1):_.yA(new _.xN("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var z=_.SN(this.hostElement).querySelector(M);z?_.Ns(z):_.yA(new _.xN("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.U("web_thumbnail_to_watch_transition")&&!_.myw||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.U("web_thumbnail_to_watch_transition")&&!_.myw||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(M){var z=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.no.addLowPriorityJob(function(){z.onWindowResized_(_.t9(!0))})},
updateTheaterModeState_:function(M){if(!_.U("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.reA()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.U("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var M=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.U("external_fullscreen")&&this.fullscreen&&(M=!0);_.U("web_watch_error_screen_fix")&&(M=this.fullBleedPlayer);M=M?_.SN(this.hostElement).querySelector("#player-full-bleed-container"):_.SN(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),J=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");z.parentElement!==M&&(J&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.z_(this).appendTo(M,z),_.U("web_watch_error_screen_fix")||M.appendChild(_.SN(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var M=_.SN(this.hostElement).querySelector("#error-screen"),z=this.fullBleedPlayer?_.SN(this.hostElement).querySelector("#player-full-bleed-container"):_.SN(this.hostElement).querySelector("#player");M.parentElement!==z&&z.appendChild(M)},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.JF().resolve(_.q5).deactivate(),2);M.updatePlayerLocation();_.UI(z)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var z=this.getCinematicsLocationContainer();M.parentElement!==z&&z.appendChild(M);var J;(J=this.watchController)==null||J.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.SN(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.SN(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(M,z,J){var R=document.documentElement.hasAttribute("dark"),D=R&&_.U("web_cinematic_theater_mode"),N=R&&_.U("web_cinematic_fullscreen");R=!R&&this.cinematicLightTheme;return J||M&&D||z&&N||(z||M)&&R},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,z;(z=this.watchController)==null||z.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.JF().resolve(_.aV).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.U("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.no.addLowPriorityJob(function(){_.ZL(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var J,R,D;if((J=this.data)==null?0:(R=J.contents)==null?0:(D=R.twoColumnWatchNextResults)==null?0:D.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var N,Z;((N=this.data)==null?0:(Z=N.contents)==null?0:Z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(z=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),z&&!M||_.C4(this,function(){_.hd("pbu")}));
this.setPlayerAds_();_.ZL(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(M,z){if((_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"))&&this.playerData&&z)return this.playerData.videoDetails},
watchPageActiveChanged_:function(M){_.rA().dispatch(_.tfE(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new _.K5(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);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.z_(this);_.U("kevlar_disable_prepare_player")||
z.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.JF().resolve(_.aV).setPlayer(z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.ig()+"px"};this.is==="ytd-watch-grid"&&(z["--ytd-watch-flexy-sidebar-width"]=_.nGA+"px",z["--ytd-watch-grid-horizontal-page-margins"]=_.dT+"px",z["--ytd-watch-grid-columns-top-margins"]=_.mNi+"px",z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.NC("kv_pl_mx_sz_ks")&&
_.NC("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.hww+"px");_.NC("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.yi3+"px");this.safeUpdateStyles(z);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.OY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.SN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var M=_.ig(),z=_.Kt+M,J=z;this.fixedPanels&&(z+=_.nGA);var R=657+M;M=1327+M;_.SN(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.SN(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(M+"px)");_.SN(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");
_.SN(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+J+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var M=_.SN(this.hostElement).querySelector("#miniplayer-bar").firstChild,z=this.squeezeback&&!_.U("web_watch_squeezeback_player_size_killswitch");return M&&M.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||z||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.eU(NaN,NaN):_.RVA(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.RVA(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.bv(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.t9());_.U("browse_skeleton_removal_on_watch_killswitch")||_.cW("IS_SHELL_LOAD")&&_.aiw();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.z_(this);z.addEventListener("yt-player-updated",_.ou(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(J){M.playerApiReady_(J)});
_.U("kevlar_watch_flexy_playlist_manager")||(z=_.JF().resolve(_.aV),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.ou(this,this.onYtNavigate_)),z.setPlaylistComponent(_.SN(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.ou(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.no.addLowPriorityJob(function(){_.Pv(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.z_(this).removeEventListener("yt-player-updated",_.ou(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.U("kevlar_watch_flexy_playlist_manager")){var M=_.JF().resolve(_.aV);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.ou(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.ou(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Pv(this.hostElement,"yt-autonav-pause-player",!1);M=_.zV();_.U("kevlar_exit_fullscreen_leaving_watch")&&M&&_.Jd(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hf("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.SN(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.SN(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.VL()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,z){z=z===void 0?!0:z;_.zV()&&_.U("external_fullscreen")&&_.Jd(document.documentElement);this.theaterRequested_=M;z&&_.U7("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.S9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Pv(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(M){_.Hb(M,typeof this.player),this.player&&_.Hb(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.S9(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,z){return this.loading?z:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next())z=z.value,z.youThereRenderer&&_.lRr(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.Rf()<M.lowEngagementThresholdMs||_.vN3(z,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.S9(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,z,J){return!!M&&!this.isVideoPlayable_(M,J)&&!z},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,z){if(!M)return!1;var J=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var D;z=z==null?void 0:(D=z.playerOverlayRenderer)==null?void 0:D.gatedActionsOverlayRenderer;return!!J||!!R||!!M||!!z},
hasWatchNextResponseErrorRenderer:function(M){var z=this.getPageContents(M),J,R,D,N,Z;return!(M==null?0:(J=M.contents)==null?0:(R=J.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((D=z[0])==null?0:(N=D.itemSectionRenderer)==null?0:(Z=N.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,z,J){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),D=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];D=_.U("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&D.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var N=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);N==void 0&&(N=!0);!J||this.isVideoPlayable_(M,this.getPlayerOverlays_(z))||
R||D||!N||_.JF().resolve(_.aV).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.NQr()},
onPlayerFeedbackStartRequest_:function(M){_.S9(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.S9(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,z,J,R,D,N,Z,B,O=((M=this.data)==null?NaN:(z=M.contents)==null?NaN:(J=z.twoColumnWatchNextResults)==null?NaN:(R=J.secondaryResults)==null?NaN:(D=R.secondaryResults)==null?NaN:(N=D.offerModule)==null?NaN:(Z=N.tvfilmOfferModuleRenderer)==null?NaN:(B=Z.actionButtons)==null?NaN:B.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];z=_.S(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(J=z.next();!J.done;J=z.next())for(J=J.value,R=_.S(M),D=R.next();!D.done;D=R.next())if(D="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+J+D.value,D=this.get(D+"navigationEndpoint",this.data)||this.get(D+"serviceEndpoint",this.data)||this.get(D+"command",this.data)){_.e5(D,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.Pv(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Pv(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.rA().dispatch(_.O9V(M))},
onPlayerSubscribe_:function(M){_.S9(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.S9(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.S9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(M){return!_.U("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.U("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.U("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var M,z,J,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.U("swatcheroo_pbs_load_grid")&&!_.U("swatcheroo_provide_all_data_on_scheduled_job")){_.no.cancelJob(this.setRichGridJobId_);var M,z,J,R,D,N,Z;this.setRichGridRendererData((M=this.data)==null?void 0:(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.secondaryResults)==null?void 0:(D=R.secondaryResults)==null?void 0:(N=D.results)==null?void 0:(Z=N[0])==null?
void 0:Z.richGridRenderer)}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,z=(M=this.data)==null?void 0:M.engagementPanels;if(z==null?0:z.length){M=null;z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;if(((R=J.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=J;break}}var D,N,Z;M=(D=M)==null?void 0:(N=D.engagementPanelSectionListRenderer)==null?void 0:(Z=N.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(M==null?0:M.items){D=
[];N=_.S(M.items);for(Z=N.next();!Z.done;Z=N.next()){Z=Z.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var B=R=J=z=M=void 0,O=void 0,X=(M=Z.horizontalCardListRenderer)==null?void 0:(z=M.header)==null?void 0:(J=z.richListHeaderRenderer)==null?void 0:(R=J.navigationButton)==null?void 0:(B=R.buttonRenderer)==null?void 0:(O=B.command)==null?void 0:O.commandExecutorCommand;X&&X.commands&&(X.commands=X.commands.filter(function(l){return!_.G(l,_.ASs)}))}(!Z.expandableVideoDescriptionBodyRenderer&&
!Z.videoDescriptionHeaderRenderer||_.U("web_delhi_colorful_sd"))&&D.push(Z)}return{items:D}}}},
constructWarning_:function(M){return{text:_.id(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.Pv(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.z_(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Pv(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.no.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.x4(_.no,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hd("cmi");_.no.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.S(M);for(var z=M.next();!z.done;z=M.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Pv(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hd("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.no.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.no.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,z){var J=_.G(z.endpoint,_.Au);J&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||J.videoId!==z.videoId||J.playlistId&&J.playlistId!==z.playlistId||J.index!==void 0&&J.index!==z.index||typeof J.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.z_(this).getPlayerPromise().then(function(R){var D=J.startTimeSeconds;R.seekTo(D);R.wakeUpControls();D<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.WFA();"t"in M&&(M=_.DCq(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var z,J;(M=_.CD(M==null?void 0:(z=M[0])==null?void 0:(J=z.videoPrimaryInfoRenderer)==null?void 0:J.title))&&_.Pv(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.Pv(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,z,J){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===J&&(J=R.list,_.U("polymer_enable_mdx_queue")&&J&&J.startsWith("RQ")&&(J=void 0),R.video_id!==M||J!=z)){var D;_.U("kevlar_player_watch_endpoint_navigation")?D=_.fTp(_.rgq(M,z)):D=this.buildWatchEndpoint_(M,z);_.Pv(this.hostElement,"yt-navigate",{endpoint:D,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,z,J){return _.zr(M,z,J)},
initDclkstatus_:function(){_.JF4()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var z=M.querySelector("#primary-info"),J=M.querySelector("#secondary-info"),R=M.querySelector("#related");z&&_.SN(this.hostElement).querySelector("#info-skeleton").appendChild(z);J&&_.SN(this.hostElement).querySelector("#meta-skeleton").appendChild(J);R&&(_.SN(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.eJ(M)}},
handlePlayerUpdated_:function(){_.z_(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof z!=="undefined"){var J=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,J.length);z||(R=0,M=J.length);for(z=R;z<M;z++)J[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.U("external_fullscreen")||_.S9(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.z_(this);z.getPlayerPromise().then(function(J){J.setFauxFullscreen(!!_.zV())});
this.updateFullBleedElementLocations();M&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,z){return z&&!!M},
computeResponseHasComments:function(M){var z,J,R,D,N;return!!(M==null?0:(z=M.contents)==null?0:(J=z.twoColumnWatchNextResults)==null?0:(R=J.results)==null?0:(D=R.results)==null?0:(N=D.contents)==null?0:N.some(function(Z){var B;return(Z==null?void 0:(B=Z.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,z,J,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!M&&!!Object.keys(M).length&&!z},
identity:_.yH,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var z=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.z_(this).getPlayerPromise().then(function(J){var R=J.getPlayerState();R!==5&&R!==0&&(J=1/J.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==J&&(z.videoHeightToWidthRatio_=J))})},
schedulePlayerSizeUpdate_:function(M){var z=this,J=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),R=function(){if(z.watchMetadata){var D,N;(N=(D=z.watchMetadata).resize)==null||N.call(D)}_.z_(z).getPlayerPromise().then(function(Z){if(_.U("kevlar_set_internal_player_size")){if(!J||!z.isMiniplayerActive()){var B=z.calculateCurrentPlayerSize_();Z.setInternalSize(B.width,B.height)}}else Z.setSize(NaN,NaN);_.U("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
M?R():_.xC(_.no,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.G(M,_.TQi).survey)},
onDownloadedVideoDeleted:function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1){if(!z.active||(J=z.playerData)==null||!J.offlineState||z.videoId!==M)return D.return();(R=z.player)==null||R.stopVideo();_.x9().navigatingAwayFromWatchDeletedVideo=!0;_.e5(_.bG3,z.hostElement);return D.yield(_.x9().navigationFinishPromise,2)}_.x9().navigatingAwayFromWatchDeletedVideo=!1;_.UI(D)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.dy(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.SN(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var z=this.windowSize_.height>=624,J=this.active?this.getScrollTop():0;!M.active&&z&&J>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!z||J<this.watchWhileScrollThreshold_&&!_.zV())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.SN(this.hostElement).querySelector("#secondary-inner");if(M){var z=_.SN(this.hostElement).querySelector("#below"),J=_.SN(this.hostElement).querySelector("#secondary"),R=_.SN(this.hostElement).querySelector("#comments");R&&J&&z&&(this.defaultTwoColumnLayout?(M.appendChild(R),J.appendChild(M)):(z.appendChild(R),_.HF(z,M)))}}},
isTwoColumnsChanged_:function(M,z){if(M!==!0||z!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.SN(this.hostElement).querySelector("#secondary-inner"))){z=_.SN(this.hostElement).querySelector("#below");var J=_.SN(this.hostElement).querySelector("#secondary"),R=_.SN(this.hostElement).querySelector("#comments");R&&J&&z&&(this.isTwoColumns_?(M.appendChild(R),J.appendChild(M)):(z.appendChild(R),
_.HF(z,M)))}}else{M=!_.U("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);z=_.SN(this.hostElement).querySelector("#panels");var D=_.SN(this.hostElement).querySelector("#alerts");J=_.SN(this.hostElement).querySelector("#playlist");R=_.SN(this.hostElement).querySelector("#related");var N=_.SN(this.hostElement).querySelector("#donation-shelf"),Z=_.SN(this.hostElement).querySelector("#comments");this.isTwoColumns_?(D=_.SN(this.hostElement).querySelector("#secondary-inner"),
M&&(D.appendChild(z),D.appendChild(J)),D.appendChild(N),D.appendChild(R)):(M&&(_.HK(z,D),_.HK(J,D)),_.HK(N,D),Z&&_.HK(R,Z));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.U("web_watch_enable_fs_squeezeback_panels")&&_.U("web_watch_theater_chat")){var M=_.SN(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?(z=_.SN(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==z&&z.append(M),this.fixedPanels=!0):(this.fixedPanels=
!1,z=_.SN(this.hostElement).querySelector("#playlist"),M&&z?_.cK(M,z):_.yA(new _.xN("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,z){return _.U("sw_metadata_vis_toggle_ks")?!0:!!M||!!z},
computeForceDarkPanelTheme:function(M){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.Tp(this.hostElement,M)}catch(z){_.yA(z)}},
videoHeightToWidthRatioChanged_:function(M,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.z_(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.z_(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Gwq(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var z=_.UE(M)||0;_.Qo(M,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.UE("yt-fullerscreen-edu-button-click-count")||0,z=_.UE("yt-fullerscreen-edu-button-shown-count")||0,J=_.NC("external_fullscreen_button_shown_threshold"),R=M>=_.NC("external_fullscreen_button_click_threshold")||z>=J;_.z_(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.JF().resolve(_.aV).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.no.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.no.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var z=_.SN(M.hostElement).querySelector("#secondary"),J=_.SN(M.hostElement).querySelector("#fixed-secondary");z=z.getBoundingClientRect();var R=z.width;M.swatcherooSqueezeback&&
(R+=_.dT);if(M.swatcherooSqueezeback){var D=_.SN(M.hostElement).querySelector("#squeezeback-constraining-container");D.style.width=R+"px";D.style.flex="0 0 "+R+"px"}J.style.width=R+"px";J.style.left=z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.no.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.no.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var z;!M.isTwoColumns_||M.theater||M.fullscreen?z=460:z=M.calculateNormalPlayerSize_().height;var J=z+"px";_.U("live_chat_taller_height")&&!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.U("live_chat_medium_height")&&!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":J,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Bv(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var z=_.SN(this.hostElement).querySelector("#engagement-panel-scrim");M?z.addEventListener("tap",_.ou(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.ou(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var z=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var J=this.getPageScrollingElement(),R=this.getScrollTop(),D=R+J.clientHeight-56;if(z<R+56)z-=56;else if(M>D)z=M-J.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.QW().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,z,J){if(this.active&&this.trackEngagementPanelVisibility&&!_.BQw.includes(J)){if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.ZL(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var R=_.JF().resolve(_.nx);this.visiblePanelIdentifiers_.forEach(function(D){D!==J&&R.hidePanel(D)})}this.visiblePanelIdentifiers_.add(J)}z!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(J);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeIsSingleColumn:function(M,z){return z&&!M},
computeFullBleedPlayer:function(M,z,J){return _.U("web_watch_error_screen_fix")?_.U("external_fullscreen")&&M||z||this.enableFullBleedSingleColumnDefaultPlayer&&J:M||z||this.enableFullBleedSingleColumnDefaultPlayer&&J},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,z){return!M&&z},
updatePanelsLocation:function(){if(_.U("web_watch_enable_fs_squeezeback_panels")){var M=_.SN(this.hostElement).querySelector("#below"),z=_.SN(this.hostElement).querySelector("#panels"),J=_.SN(this.hostElement).querySelector("#playlist"),R=_.SN(this.hostElement).querySelector("#chat-container"),D=_.SN(this.hostElement).querySelector("#panels-full-bleed-container"),N=_.SN(this.hostElement).querySelector("#secondary-inner");if(M&&z&&J&&R&&D&&N){var Z=this.fullscreen||this.theater&&this.iMaxTheaterMode,
B=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Z?(D.appendChild(z),D.appendChild(R),D.appendChild(J)):this.isTwoColumns_?(B?(M=_.SN(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==M&&M.append(R),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.HF(N,R),_.HF(N,z),_.HF(N,J)):(M.appendChild(z),M.appendChild(R),M.appendChild(J))}}},
swatcherooUpdatePanelsLocation:function(M,z,J,R,D,N){if(this.is==="ytd-watch-grid"){z=M&&!z;this.swatcherooSplitScroll&&(z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));J=_.SN(this.hostElement).querySelector("#panels");var Z=_.SN(this.hostElement).querySelector("#playlist"),B=_.SN(this.hostElement).querySelector("#fixed-secondary"),O=_.SN(this.hostElement).querySelector("#fixed-below"),
X=_.SN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),l=_.SN(this.hostElement).querySelector("#chat-container");N&&(M?B.appendChild(J):O.appendChild(J));D?M?B.appendChild(l):O.appendChild(l):_.cK(l,X);R?M?B.appendChild(Z):O.appendChild(Z):_.cK(Z,X);this.swatcherooSplitScroll&&(M=_.SN(this.hostElement).querySelector("#secondary"),R=_.SN(this.hostElement).querySelector("#columns"),D=_.SN(this.hostElement).querySelector("#fixed-columns-secondary"),z?
D.appendChild(M):R.appendChild(M))}},
computeMetadataSkinnyMode:function(M,z,J){return this.is!=="ytd-watch-grid"?!1:M?J:z},
computeWatchWhilePanelsActive:function(M,z){return M||z},
computeNoBorderOnChat:function(M){return _.U("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,z){return M&&!z},
computePanelExpanded:function(M,z,J){return M||z||J},
computeSqueezeback:function(M,z,J,R){if(_.U("web_watch_enable_fs_squeezeback_panels")){var D=this.iMaxTheaterMode&&this.theater;return(M||z||J)&&(R||D)}},
computeSwatcherooSqueezeback:function(M,z,J){return this.is!=="ytd-watch-grid"||_.U("ww_squeezeback_killswitch")?!1:M&&z&&J},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.z_(this).getPlayerPromise().then(function(z){var J;(J=z.changeMarkerVisibility)==null||J.call(z,_.G(M,_.Wq).isVisible||!1,_.G(M,_.Wq).entityKeys||[],_.G(M,_.Wq).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.rA().dispatch(_.kww(M.detail));if(!this.liveChatCollapsed&&this.squeezeback){var z=_.JF().resolve(_.nx);this.visiblePanelIdentifiers_.forEach(function(J){z.hidePanel(J)})}},
onSetPlaylistCollapsed:function(M){_.U("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,z){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=z;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=
z;break;case "DONATION_SHELF":this.donation=z;break;case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
z;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=z}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.JF().resolve(_.q5).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var GS5;_.v2v=function(M){if(!(0,_.Vi8)(M))throw Error("K``"+String(M));};
_.wNG=function(M){return M.findIndex(function(z){return GS5.indexOf(z.tagName)>-1})>-1};
_.xSm=function(){var M=_.JF().resolve(_.pZ);_.che(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(M.isFullscreenEnabled()?_.Jd(document.documentElement):_.BJp(document.documentElement))};
GS5=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.ey=new Map;_.ey.set(32,59972);_.ey.set(27,50765);_.ey.set(70,60102);_.ey.set(76,60221);_.ey.set(77,60222);_.ey.set(74,60223);_.ey.set(84,60224);_.ey.set(38,61941);_.ey.set(40,61942);_.ey.set(73,62521);_.ey.set(67,62522);_.ey.set(80,63390);_.ey.set(78,63397);_.ey.set(75,59972);_.ey.set(188,63385);_.ey.set(190,63384);_.ey.set(36,63387);
_.ey.set(35,63386);_.ey.set(37,63388);_.ey.set(39,63389);_.ey.set(79,63423);_.ey.set(87,63424);_.ey.set(107,63426);_.ey.set(109,63425);_.ey.set(65,63428);_.ey.set(83,63430);_.ey.set(68,63429);_.ey.set(221,63431);_.ey.set(219,63432);_.ey.set(97,63439);_.ey.set(98,63440);_.ey.set(99,63441);_.ey.set(100,63442);_.ey.set(101,63443);_.ey.set(102,63444);_.ey.set(103,63445);_.ey.set(104,63446);_.ey.set(105,63447);_.Q2=new Map;_.Q2.set(80,63390);_.Q2.set(78,63397);_.Q2.set(188,63400);_.Q2.set(190,63401);
_.Q2.set(191,60765);_.Q2.set(13,247917);_.U0=new Map;_.vD=new Map;
}catch(e){_._DumpException(e)}
try{
var oEi,eSu,Q4l,Ual;_.BfG=function(M){return M.ui.guideIsVisibleButNotPersistent};
_.Oqw=function(M){return M.ui.tabGesturesIsActive};
_.Tfv=function(){var M=_.Sz("service_worker_scope");try{return navigator.serviceWorker.getRegistration(M)}catch(z){return Promise.reject(z)}};
_.IZc=function(M){return!(!M||!M.pushManager)};
oEi=function(){return _.Tfv().then(_.IZc).catch(function(){return!1})};
_.Xl5=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?oEi():Promise.resolve(!1)};
_.lZi=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
eSu=function(){var M,z,J;return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(_.nN.getInstance(),2);case 2:M=R.yieldResult;if(!M){z=void 0;R.jumpTo(3);break}return R.yield(M.get("lmqf"),4);case 4:z=R.yieldResult;case 3:switch((J=z)||(J="SD"),J){case "HD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Q4l=function(M){var z,J,R;return _.k(function(D){if(D.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.U("disable_av1_setting")){var N=window.localStorage["yt-player-av1-pref"];N=N==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":N==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else N="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(z=M===N)return D.jumpTo(2);R=J=M;return D.yield(eSu(),3)}D.nextAddress!=2&&(z=R===D.yieldResult);return D.return(z)})};var vEl;var GkN=_.mT.IronButtonState,wlw=(0,_.Fe)(HTMLElement);
_.sV({_template:function(){if(vEl!==void 0)return vEl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Ual===void 0&&(Ual=document.createElement("template"));var R=Ual;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return vEl=M},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[GkN,_.FG,_.gL,_.hT],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(M){var z=(0,_.Q3)(this);z.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:M});z.shadowRoot.appendChild(M);return wlw.prototype._attachDom.call(this,M)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.pu(this.$.content).getDistributedNodes(),z=0,J=M.length;z<J;z++)if(M[z].nodeType===Node.ELEMENT_NODE)return M[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var z="";M?z=M.label||M.getAttribute("label")||M.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(M,z){return z?z:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",M)}});_.kW=new _.R_("navigateAction");var xai=new _.R_("formRenderer");var BE=function(){var M=_.vU.apply(this,arguments)||this;M.showInput=!1;return M};
_.w(BE,_.vU);_.P=BE.prototype;_.P.detached=function(){this.showInput&&window.removeEventListener("click",_.ou(this,this.closeOnOutsideClick_))};
_.P.stopPropagation_=function(M){this.showInput&&M.stopPropagation()};
_.P.closeOnOutsideClick_=function(M){this.closeOnOutsideClickCondition(M)&&(this.showInput=!1,window.removeEventListener("click",_.ou(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.P.closeOnOutsideClickCondition=function(){return!0};
_.P.closeOnOutsideClickHandler=function(){};
_.P.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ou(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.P.openOnClickHandler=function(){};
_.P.showInputChanged=function(){};
_.P.setShowInput=function(M){this.showInput=M};
BE.prototype.setShowInput=BE.prototype.setShowInput;BE.prototype.showInputChanged=BE.prototype.showInputChanged;BE.prototype.openOnClickHandler=BE.prototype.openOnClickHandler;BE.prototype.openOnClick_=BE.prototype.openOnClick_;BE.prototype.closeOnOutsideClickHandler=BE.prototype.closeOnOutsideClickHandler;BE.prototype.closeOnOutsideClickCondition=BE.prototype.closeOnOutsideClickCondition;BE.prototype.closeOnOutsideClick_=BE.prototype.closeOnOutsideClick_;BE.prototype.stopPropagation_=BE.prototype.stopPropagation_;
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],BE.prototype,"showInput",void 0);_.u([_.Xw("click"),_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],BE.prototype,"stopPropagation_",null);_.u([_.la("showInput"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],BE.prototype,"showInputChanged",null);_.u([_.Gp()],BE);_.tPm=[BE.prototype];var j4t;var plN;var OJ=function(){return _.g.apply(this,arguments)||this};
_.w(OJ,_.g);_.P=OJ.prototype;_.P.computePreselectedOption=function(M,z){return z===this.itemSelected_?M:void 0};
_.P.dataChanged_=function(){var M=this;this.preselectedSubreason=this.itemSelected_=-1;var z;(z=this.data)!=null&&z.key&&_.C4(this,function(){var J,R=Number((J=M.data)==null?void 0:J.key);!Number.isNaN(R)&&(M.itemSelected_=R,J=(J=(M.data.items||[])[R])&&J.optionSelectableItemRenderer&&J.optionSelectableItemRenderer.preselectedIndex)&&(M.preselectedSubreason=J)})};
_.P.isSubReasonHidden_=function(M,z){return M!=z};
_.P.onTopItemSelected_=function(M,z){for(var J=_.SN(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),R=0,D=J.length;R<D;R++)J[R].select(0);_.S9(this.hostElement,"yt-report-form-update",[z.item.value]);M.stopPropagation()};
_.P.onItemSelected_=function(M,z){_.S9(this.hostElement,"yt-report-form-update",[z.item.value]);M.stopPropagation()};
_.P.getItem_=function(M){return M.serviceItem?M.serviceItem:M.navigationItem?M.navigationItem:M.optionSelectableItemRenderer?M.optionSelectableItemRenderer:null};
_.P.computeText_=function(M){return(M=this.getItem_(M))?this.ytRendererBehavior.getSimpleString(M.text):null};
_.P.validate=function(){return this.itemSelected_!==-1};
_.P.computeAriaLabel_=function(M){var z=_.CD(M.text);(M=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label)&&(z+=". "+M);return z};
_.P.computeItemSelected_=function(M){return M};
_.P.preventSelection_=function(M){M.stopPropagation();this.tooltipTapped=!0};
_.P.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.P.updateItemSelectedFromBinding=function(M){this.itemSelected_=M.detail.value};
_.P.save=function(){var M;this.validate()&&(M=this.data)!=null&&M.items&&(M=this.data.items[this.itemSelected_],M!=null&&M.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(M.optionSelectableItemRenderer.submitEndpoint)||_.kQ(this.hostElement,[M.optionSelectableItemRenderer.submitEndpoint])))};
OJ.prototype.onPaperRippleTransitionEnd_=OJ.prototype.onPaperRippleTransitionEnd_;OJ.prototype.dataChanged_=OJ.prototype.dataChanged_;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],OJ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],OJ.prototype,"data",void 0);_.u([_.Y({value:-1}),_.W("design:type",Number)],OJ.prototype,"itemSelected_",void 0);
_.u([_.Y({computed:"computeItemSelected_(itemSelected_)"}),_.W("design:type",Number)],OJ.prototype,"value",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],OJ.prototype,"restoreFocusOnClose",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],OJ.prototype,"tooltipTapped",void 0);_.u([_.Y({value:-1}),_.W("design:type",Number)],OJ.prototype,"preselectedSubreason",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"dataChanged_",null);_.u([_.Xw("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"onPaperRippleTransitionEnd_",null);_.u([_.cU({is:"yt-options-renderer",disableElementRegistration:!0})],OJ);
_.d(OJ,"yt-options-renderer",function(){if(plN===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;j4t===void 0&&(j4t=document.createElement("template"));var R=j4t;J.call(z,R.content.cloneNode(!0),M.content.firstChild);plN=M}M=plN;return M},{mode:2});var Ftl;var YZs;var mam;var gE5;var s4w;var nE5;var Tb=function(){return _.g.apply(this,arguments)||this};
_.w(Tb,_.g);Tb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Tb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Tb.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.S9(this.hostElement,"yt-share-panel-can-select-contact-action")[0])M&&M.detail&&(M.detail.x||M.detail.y)&&_.SN(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:M?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.S9(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.u([_.Y({observer:"onDataChanged"}),_.W("design:type",Object)],Tb.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],Tb.prototype,"componentTitle",void 0);_.u([_.Qc("#thumbnail"),_.W("design:type",Object)],Tb.prototype,"thumbnail",void 0);_.u([_.cU({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Tb);
_.d(Tb,"yt-enrolled-contact-renderer",function(){if(nE5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;s4w===void 0&&(s4w=document.createElement("template"));var R=s4w;J.call(z,R.content.cloneNode(!0),M.content.firstChild);nE5=M}M=nE5;return M},{mode:2});var hSs;var yPu;var Id=function(){return _.g.apply(this,arguments)||this};
_.w(Id,_.g);Id.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Id.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Id.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.S9(this.hostElement,"yt-share-panel-can-select-contact-action")[0])M&&M.detail&&(M.detail.x||M.detail.y)&&_.SN(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:M?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.S9(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.u([_.Y({observer:"onDataChanged"}),_.W("design:type",Object)],Id.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],Id.prototype,"componentTitle",void 0);_.u([_.Qc("#thumbnail"),_.W("design:type",Object)],Id.prototype,"thumbnail",void 0);_.u([_.cU({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Id);
_.d(Id,"yt-suggested-contact-renderer",function(){if(yPu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;hSs===void 0&&(hSs=document.createElement("template"));var R=hSs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);yPu=M}M=yPu;return M},{mode:2});var od=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-share-panel-reset-action":"onReset"};return M};
_.w(od,_.g);od.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"}}}}}};
od.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.S9(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
od.prototype.onReset=function(){for(var M=_.SN(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),z=M.length-1;z>=0;z--)M[z].classList.toggle("selected")};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],od.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({observer:"onDataChanged"}),_.W("design:type",Object)],od.prototype,"data",void 0);
_.u([_.cU({is:"yt-contact-section-renderer",disableElementRegistration:!0})],od);
_.d(od,"yt-contact-section-renderer",function(){if(gE5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;mam===void 0&&(mam=document.createElement("template"));var R=mam;J.call(z,R.content.cloneNode(!0),M.content.firstChild);gE5=M}M=gE5;return M},{mode:2});var X6=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return M};
_.w(X6,_.g);_.P=X6.prototype;_.P.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.P.onYtRefreshFormCommand=function(M){var z;(M=_.G((z=_.G(M,_.upp))==null?void 0:z.formRenderer,xai))&&this.set("data",M)};
_.P.reset=function(){var M=_.SN(this.hostElement).querySelector("#fields").children;M=_.S(M);for(var z=M.next();!z.done;z=M.next())z=z.value,z.reset&&z.reset()};
_.P.getForm=function(){var M={},z=_.SN(this.hostElement).querySelector("#fields").children;z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;if(!J.validate())return null;M[J.data.key]=J.value}return M};
_.P.submitFormFields=function(){if(this.fields)for(var M=_.S(this.fields),z=M.next();!z.done;z=M.next())z=z.value,z.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?z.save():z.nodeName==="YT-OPTIONS-RENDERER"&&z.save()};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],X6.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],X6.prototype,"data",void 0);_.u([_.UV("#fields > *"),_.W("design:type",Array)],X6.prototype,"fields",void 0);
_.u([_.cU({is:"yt-form-renderer",disableElementRegistration:!0})],X6);
_.d(X6,"yt-form-renderer",function(){if(YZs===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Ftl===void 0&&(Ftl=document.createElement("template"));var R=Ftl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);YZs=M}M=YZs;return M},{mode:2});var Hql;var lK=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return M};
_.w(lK,_.g);lK.prototype.onCheckboxChange=function(M){this.data&&(M=(this.checked=_.b7(M).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})};
lK.prototype.handleUpdateCheckboxCommand=function(M){(M=_.G(M,_.DDu))&&this.data&&this.data.id===M.id&&(this.set("data.disabled",M.disabled),this.set("data.title",M.title))};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],lK.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lK.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],lK.prototype,"checked",void 0);_.u([_.c({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],lK);
_.d(lK,"ytd-settings-checkbox-renderer",function(){if(Hql!==void 0)return Hql;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Hql=M},{mode:1});var cPc;var ed=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return M};
_.w(ed,_.g);ed.prototype.dataChanged=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return M.radio.removeAttribute("checked"),!M.data||!M.data.id||M.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.lZi()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(z=M.data&&M.data.id)?J.yield(Q4l(M.data.id),4):J.jumpTo(3):(M.set("data.hidden",!0),J.jumpTo(0));J.nextAddress!=3&&(z=J.yieldResult);z&&_.S9(M.hostElement,"yt-select-settings-radio-option",[M.data.id]);_.UI(J)})};
ed.prototype.onButtonChanged=function(M){_.b7(M).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.S9(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ed.prototype.onSelectOption=function(M){this.data&&this.data.id&&(this.data.id===M?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ed.prototype.dataChanged=ed.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ed.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Qc("#radio"),_.W("design:type",Object)],ed.prototype,"radio",void 0);_.u([_.Y(),_.W("design:type",Object)],ed.prototype,"data",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ed.prototype,"dataChanged",null);_.u([_.c({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ed);
_.d(ed,"ytd-settings-radio-option-renderer",function(){if(cPc!==void 0)return cPc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cPc=M},{mode:1});var daw;var QN=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return M};
_.w(QN,_.g);
QN.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"}}}};
QN.prototype.handleUpdateTextCommand=function(M){(M=_.G(M,_.Nqk))&&this.data&&this.data.id===M.id&&this.set("data",M)};
QN.prototype.handleUpdateConnectedAppRendererCommand=function(M){if(_.G(M,_.ZFv)&&this.data){var z,J;if(M=(z=_.G(M,_.ZFv))==null?void 0:(J=z.newConnectedAppRenderer)==null?void 0:J.connectedAppRenderer)this.data=M}};
QN.prototype.computeConnectedAppStyle=function(M){return M.style?M.style.toLowerCase().replace(/_/g,"-"):""};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QN.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.W("design:type",String)],QN.prototype,"connectedAppStyle",void 0);_.u([_.c({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],QN);
_.d(QN,"ytd-connected-app-renderer",function(){if(daw!==void 0)return daw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return daw=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.mq("iuT5Oc");

_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("L3n37");
var Koq=function(M){return M.watch.isLearningJourneyActive},$Cr=_.O3(115994),uhq=_.O3(115993),q7A=function(M,z,J){var R=this;
var D=J.dragDownAction;this.layer=0;this.JSC$23010_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$23010_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var N=_.Gm();_.ex(N,$Cr,this.layer);_.ex(N,uhq,this.layer);this.dragDownAction=function(){D();_.al(N,{visualElement:R.fullscreen?$Cr:uhq})};
this.gesture=new _.Tq(M,z,this.JSC$23010_watchConfig,"pandown");this.attach()};
q7A.prototype.attach=function(){this.gesture.attach()};
q7A.prototype.detach=function(){this.gesture.detach()};
q7A.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$23010_watchFullScreenConfig:this.JSC$23010_watchConfig};var Woq=function(M){_.lk.call(this);var z=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(J){z.initOrDisposeActiveModules(J)}));
this.onAttached()};
_.w(Woq,_.lk);_.P=Woq.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(M){return this.rootElement.getElement(M)};
_.P.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(M,z){var J=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.EB(_.VA.getInstance(),(R[M]=z,R),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),R={},_.EB(_.VA.getInstance(),(R[M]=function(){var D=_.H4.apply(0,arguments);return(J.actionHandlers.get(M)||[]).map(function(N){return N.apply(null,_.Yj(D))})},R),this.getRoot())),this.actionHandlers.get(M).push(z)};
_.P.unregisterActionHandler=function(M){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.fc(_.VA.getInstance(),(z[M]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(M))?(z.pop(),z.length===0&&(z={},_.fc(_.VA.getInstance(),(z[M]=!0,z),this.getRoot()),this.actionHandlers.delete(M))):_.yA(new _.xN("Attempted to unregister an action handler which is not registered.",M))};
_.P.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.wYY(this.rootElement.pageDisposeJobs,M)};
_.P.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.$o(this.rootElement.pageDisposeJobs,M)};
_.P.dispatchEvent=function(M,z){_.Pv(this.rootElement,M,z)};
_.P.provideRenderingData=function(M,z){this.rootElement.provideRenderingData(M,z)};
_.P.scrollWatchTo=function(M,z){var J;(J=this.watchScrollManager)==null||J.scrollWatchTo(M,z)};
_.P.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.C4(M,function(){if(M&&M.firstElementChild){var z=M.querySelector(".html5-video-player");z&&(_.S0(_.JF().resolve(_.pn)),z.focus())}else _.yA(Error("Eo"))})};
_.P.updateCinematicFullscreenConfig=function(){var M=!!this.rootElement.theater,z=!!this.rootElement.fullscreen,J;(J=this.watchCinematicManager)==null||_.hZ(J,z,M)};
_.P.subscribeToActiveChanged=function(M,z){z=z===void 0?!0:z;var J=_.jx(_.rA(),Koq,function(R){M(R)});
z&&M(Koq(_.rA().getState()));return J};
_.P.isActive=function(){return Koq(_.rA().getState())};
_.P.onAttached=function(){var M=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(M=_.JF().resolve(_.Z3i).retriever.getFlag(_.AKg));(M||_.cW("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.P.initPersistentModules=function(){if(_.U("kevlar_watch_flexy_theater_manager")){var M=new _.AKi(this);_.OC(this,M)}M=new _.yPZ(this);_.OC(this,M);M=new _.mu(this);_.OC(this,M);M=new _.gEw(this);_.OC(this,M);M=new _.B3s(this);_.OC(this,M);M=new _.sl(this);_.OC(this,M);_.U("kevlar_watch_flexy_playlist_manager")&&(M=new _.INA(this),_.OC(this,M))};
_.P.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.dW(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.iq3(this)),this.activeModules.push(new _.rAA(this)),this.activeModules.push(new _.UHi(this)),this.activeModules.push(new _.Wti(this)),_.U("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.RBA(this)),this.activeModules.push(new _.Jgw(this)),_.U("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.G4A(this)),
_.U("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Oqs(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.lZr(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Pid(this)),_.U("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.nEw(this)),M=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new _.plE(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gW(this)),this.activeModules.push(new _.RSr(this)),this.activeModules.push(new _.bqq(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.SZw(this)),_.U("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.m$A(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.vFi(this)),
_.U("web_fullscreen_components")&&this.activeModules.push(new _.SCq(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.s2w(this))):(_.ru(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P.disposeInternal=function(){_.lk.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.rX.Object.defineProperties(Woq.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var aRA={},VzA=["learning-journey-engagement-panel","PAlearning_chat"];
aRA.YtdLearningJourneyWatchBehavior=[_.f.YtRendererBehavior,_.Mm.YtPlayerListenerBehavior,_.Bm.YtRendererstamperBehavior,_.wx.YtActionHandlerBehavior,_.yJ.YtPageBehavior,_.Gn.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 _.cW("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("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 _.cW("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 _.U("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.NC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.NC("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_rounded_player_large")||_.U("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 _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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:_.r1(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.r1(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.U("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.IRd(function(){return _.z_(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
_.U("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.ow;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;_.U("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ou(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.U("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.Pv(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var z=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var J;(J=this.watchController)==null||J.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.sf({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hd("nw");this.loading=!1;_.x4(_.no,function(){z.initDclkstatus_();var R,D=((R=z.player)==null?void 0:R.getVideoData().cpn)||"";_.bhd(function(N,Z){_.eJl(N,Z,D)})})},
onPageLoadWithSameData_:function(){_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;var z,J,R;M=(z=this.loadingData)==null?void 0:(J=z.endpoint)==null?void 0:(R=J.watchEndpoint)==null?void 0:R.videoId;var D;M&&(D="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.SN(this.hostElement).querySelector("#player").style.backgroundImage=D?"url("+D+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.SN(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,J;(J=(z=this.watchMetadata).updateSentimentBarWidth)==
null||J.call(z);var R,D;(D=(R=this.watchMetadata).resize)==null||D.call(R)}_.SN(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(M){var z=_.SN(this.hostElement).querySelector(M);z?_.DL(z,!1):_.yA(new _.xN("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var z=_.SN(this.hostElement).querySelector(M);z?_.Ns(z):_.yA(new _.xN("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(M){var z=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.no.addLowPriorityJob(function(){z.onWindowResized_(_.t9(!0))})},
updateTheaterModeState_:function(M){if(!_.U("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.reA()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.U("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.SN(this.hostElement).querySelector("#player-full-bleed-container"):_.SN(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),J=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");z.parentElement!==M&&(J&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.z_(this).appendTo(M,z),M.appendChild(_.SN(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.JF().resolve(_.q5).deactivate(),2);M.updatePlayerLocation();_.UI(z)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var z=this.getCinematicsLocationContainer();M.parentElement!==z&&z.appendChild(M);var J;(J=this.watchController)==null||J.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.SN(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.SN(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,z){var J=document.documentElement.hasAttribute("dark"),R=J&&_.U("web_cinematic_theater_mode"),D=J&&_.U("web_cinematic_fullscreen");J=!J&&this.cinematicLightTheme;return M&&R||z&&D||(z||M)&&J},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M;(M=this.watchController)==null||M.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.JF().resolve(_.aV).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var z,
J,R;if((z=this.data)==null?0:(J=z.contents)==null?0:(R=J.twoColumnWatchNextResults)==null?0:R.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var D,N;((D=this.data)==null?0:(N=D.contents)==null?0:N.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(M){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(z=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),z&&!M||_.C4(this,function(){_.hd("pbu")}));
this.setPlayerAds_();_.ZL(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(M){_.rA().dispatch(_.Nv({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new Woq(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.z_(this);_.U("kevlar_disable_prepare_player")||z.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.JF().resolve(_.aV).setPlayer(z);this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.ig()+
"px"};!_.NC("kv_pl_mx_sz_ks")&&_.NC("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.hww+"px");_.NC("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.yi3+"px");this.safeUpdateStyles(z);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new q7A(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.U("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.SN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.ig(),z=_.Kt+M,J=z;this.fixedPanels&&(z+=_.nGA);var R=657+M;M=1327+M;_.SN(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.SN(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(M+"px)");_.SN(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");
_.SN(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+J+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.SN(this.hostElement).querySelector("#miniplayer-bar").firstChild;return M&&M.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.eU(NaN,NaN):_.RVA(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.RVA(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.bv(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.t9());_.U("browse_skeleton_removal_on_watch_killswitch")||_.cW("IS_SHELL_LOAD")&&_.aiw();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.z_(this);z.addEventListener("yt-player-updated",_.ou(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(J){M.playerApiReady_(J)});
_.U("kevlar_watch_flexy_playlist_manager")||(z=_.JF().resolve(_.aV),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.ou(this,this.onYtNavigate_)),z.setPlaylistComponent(_.SN(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.ou(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.no.addLowPriorityJob(function(){_.Pv(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.z_(this).removeEventListener("yt-player-updated",_.ou(this,this.onPlayerUpdated_));if(!_.U("kevlar_watch_flexy_playlist_manager")){var M=_.JF().resolve(_.aV);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.ou(this,this.onYtNavigate_));M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.ou(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Pv(this.hostElement,"yt-autonav-pause-player",!1);M=_.zV();_.U("kevlar_exit_fullscreen_leaving_watch")&&M&&_.Jd(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hf("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.SN(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.SN(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.VL()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,z){z=z===void 0?!0:z;_.zV()&&_.U("external_fullscreen")&&_.Jd(document.documentElement);this.theaterRequested_=M;z&&_.U7("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.S9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Pv(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(M){_.Hb(M,typeof this.player),this.player&&_.Hb(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.S9(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,z){return this.loading?z:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.S(M);for(var z=M.next();!z.done;z=M.next())z=z.value,z.youThereRenderer&&_.lRr(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.Rf()<M.lowEngagementThresholdMs||_.vN3(z,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.S9(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,z,J){return!!M&&!this.isVideoPlayable_(M,J)&&!z},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,z){if(!M)return!1;var J=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var D;z=z==null?void 0:(D=z.playerOverlayRenderer)==null?void 0:D.gatedActionsOverlayRenderer;return!!J||!!R||!!M||!!z},
hasWatchNextResponseErrorRenderer:function(M){var z=this.getPageContents(M),J,R,D,N,Z;return!(M==null?0:(J=M.contents)==null?0:(R=J.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((D=z[0])==null?0:(N=D.itemSectionRenderer)==null?0:(Z=N.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,z,J){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),D=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];D=_.U("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&D.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var N=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);N==void 0&&(N=!0);!J||this.isVideoPlayable_(M,this.getPlayerOverlays_(z))||
R||D||!N||_.JF().resolve(_.aV).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.NQr()},
onPlayerFeedbackStartRequest_:function(M){_.S9(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.S9(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,z,J,R,D,N,Z,B,O=((M=this.data)==null?NaN:(z=M.contents)==null?NaN:(J=z.twoColumnWatchNextResults)==null?NaN:(R=J.secondaryResults)==null?NaN:(D=R.secondaryResults)==null?NaN:(N=D.offerModule)==null?NaN:(Z=N.tvfilmOfferModuleRenderer)==null?NaN:(B=Z.actionButtons)==null?NaN:B.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];z=_.S(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(J=z.next();!J.done;J=z.next())for(J=J.value,R=_.S(M),D=R.next();!D.done;D=R.next())if(D="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+J+D.value,D=this.get(D+"navigationEndpoint",this.data)||this.get(D+"serviceEndpoint",this.data)||this.get(D+"command",this.data)){_.e5(D,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.Pv(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Pv(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.rA().dispatch(_.O9V(M))},
onPlayerSubscribe_:function(M){_.S9(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.S9(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.S9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(M){return!_.U("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.U("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var M,z,J,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(z=M.contents)==null?void 0:(J=z.twoColumnWatchNextResults)==null?void 0:(R=J.secondaryResults)==null?void 0:R.secondaryResults}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,z=(M=this.data)==null?void 0:M.engagementPanels;if(z==null?0:z.length){M=null;z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;if(((R=J.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=J;break}}var D,N,Z;M=(D=M)==null?void 0:(N=D.engagementPanelSectionListRenderer)==null?void 0:(Z=N.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(M==null?0:M.items){D=
[];N=_.S(M.items);for(Z=N.next();!Z.done;Z=N.next()){Z=Z.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var B=R=J=z=M=void 0,O=void 0,X=(M=Z.horizontalCardListRenderer)==null?void 0:(z=M.header)==null?void 0:(J=z.richListHeaderRenderer)==null?void 0:(R=J.navigationButton)==null?void 0:(B=R.buttonRenderer)==null?void 0:(O=B.command)==null?void 0:O.commandExecutorCommand;X&&X.commands&&(X.commands=X.commands.filter(function(l){return!_.G(l,_.ASs)}))}Z.expandableVideoDescriptionBodyRenderer||
Z.videoDescriptionHeaderRenderer||D.push(Z)}return{items:D}}}},
constructWarning_:function(M){return{text:_.id(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.Pv(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.z_(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Pv(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.no.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.x4(_.no,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hd("cmi");_.no.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.S(M);for(var z=M.next();!z.done;z=M.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Pv(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hd("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.no.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.no.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,z){var J=_.G(z.endpoint,_.Au);J&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||J.videoId!==z.videoId||J.playlistId&&J.playlistId!==z.playlistId||J.index!==void 0&&J.index!==z.index||typeof J.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.z_(this).getPlayerPromise().then(function(R){var D=J.startTimeSeconds;R.seekTo(D);R.wakeUpControls();D<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.WFA();"t"in M&&(M=_.DCq(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var z,J;(M=_.CD(M==null?void 0:(z=M[0])==null?void 0:(J=z.videoPrimaryInfoRenderer)==null?void 0:J.title))&&_.Pv(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.Pv(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,z,J){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===J&&(J=R.list,_.U("polymer_enable_mdx_queue")&&J&&J.startsWith("RQ")&&(J=void 0),R.video_id!==M||J!=z)){var D;_.U("kevlar_player_watch_endpoint_navigation")?D=_.fTp(_.rgq(M,z)):D=this.buildWatchEndpoint_(M,z);_.Pv(this.hostElement,"yt-navigate",{endpoint:D,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,z,J){return _.zr(M,z,J)},
initDclkstatus_:function(){_.JF4()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var z=M.querySelector("#primary-info"),J=M.querySelector("#secondary-info"),R=M.querySelector("#related");z&&_.SN(this.hostElement).querySelector("#info-skeleton").appendChild(z);J&&_.SN(this.hostElement).querySelector("#meta-skeleton").appendChild(J);R&&(_.SN(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.eJ(M)}},
handlePlayerUpdated_:function(){_.z_(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,z){if(this.watchNextSkeletonEl_&&typeof z!=="undefined"){var J=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,J.length);z||(R=0,M=J.length);for(z=R;z<M;z++)J[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.U("external_fullscreen")||_.S9(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.z_(this);z.getPlayerPromise().then(function(J){J.setFauxFullscreen(!!_.zV())});
this.updateFullBleedElementLocations();M&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,z){return z&&!!M},
computeResponseHasComments:function(M){var z,J,R,D,N;return!!(M==null?0:(z=M.contents)==null?0:(J=z.twoColumnWatchNextResults)==null?0:(R=J.results)==null?0:(D=R.results)==null?0:(N=D.contents)==null?0:N.some(function(Z){var B;return(Z==null?void 0:(B=Z.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,z){this.responseHasComments=this.computeResponseHasComments(this.data);return!!M&&!!Object.keys(M).length&&!z},
identity:_.yH,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var z=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.z_(this).getPlayerPromise().then(function(J){var R=J.getPlayerState();R!==5&&R!==0&&(J=1/J.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==J&&(z.videoHeightToWidthRatio_=J))})},
schedulePlayerSizeUpdate_:function(M){var z=this,J=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),R=function(){if(z.watchMetadata){var D,N;(N=(D=z.watchMetadata).resize)==null||N.call(D)}_.z_(z).getPlayerPromise().then(function(Z){if(_.U("kevlar_set_internal_player_size")){if(!J||!z.isMiniplayerActive()){var B=z.calculateCurrentPlayerSize_();Z.setInternalSize(B.width,B.height)}}else Z.setSize(NaN,NaN);_.U("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
M?R():_.xC(_.no,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.G(M,_.TQi).survey)},
onDownloadedVideoDeleted:function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1){if(!z.active||(J=z.playerData)==null||!J.offlineState||z.videoId!==M)return D.return();(R=z.player)==null||R.stopVideo();_.x9().navigatingAwayFromWatchDeletedVideo=!0;_.e5(_.bG3,z.hostElement);return D.yield(_.x9().navigationFinishPromise,2)}_.x9().navigatingAwayFromWatchDeletedVideo=!1;_.UI(D)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.dy(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.SN(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var z=this.windowSize_.height>=624,J=this.active?this.getScrollTop():0;!M.active&&z&&J>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!z||J<this.watchWhileScrollThreshold_&&!_.zV())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(M,z){if(M!==!0||z!==void 0){M=!_.U("live_chat_over_engagement_panels");z=_.SN(this.hostElement).querySelector("#chat-container");var J=_.SN(this.hostElement).querySelector("#plj-sidebar"),R=_.SN(this.hostElement).querySelector("#panels"),D=_.SN(this.hostElement).querySelector("#plj-panels"),N=_.SN(this.hostElement).querySelector("#plj-playlist"),Z=_.SN(this.hostElement).querySelector("#alerts"),B=_.SN(this.hostElement).querySelector("#playlist"),O=_.SN(this.hostElement).querySelector("#related"),
X=_.SN(this.hostElement).querySelector("#donation-shelf"),l=_.SN(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Z=_.SN(this.hostElement).querySelector("#secondary-inner"),Z.appendChild(J),J.appendChild(N),N.appendChild(B),J.appendChild(D),M&&Z.appendChild(R),_.U("web_watch_theater_chat")||Z.appendChild(z),M||Z.appendChild(R),Z.appendChild(X),Z.appendChild(O)):(M&&_.HK(R,Z),_.HK(B,Z),_.U("web_watch_theater_chat")||_.HK(z,Z),M||_.HK(R,Z),_.HK(X,Z),l&&(D&&_.HK(D,l),_.HK(O,l)));_.U("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.U("web_watch_theater_chat")){var M=_.SN(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?_.U("web_watch_theater_chat_beside_player")?(z=_.SN(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==z&&z.append(M),this.panelsBesidePlayer=!0):_.U("web_watch_theater_fixed_chat")&&
(z=_.SN(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==z&&z.append(M),this.fixedPanels=!0):(_.U("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.U("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),z=_.SN(this.hostElement).querySelector("#playlist"),M&&z?_.cK(M,z):_.yA(new _.xN("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,z){return _.U("sw_metadata_vis_toggle_ks")?!0:!!M||!!z},
computeForceDarkPanelTheme:function(M){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.Tp(this.hostElement,M)}catch(z){_.yA(z)}},
videoHeightToWidthRatioChanged_:function(M,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.z_(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.z_(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Gwq(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var z=_.UE(M)||0;_.Qo(M,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.UE("yt-fullerscreen-edu-button-click-count")||0,z=_.UE("yt-fullerscreen-edu-button-shown-count")||0,J=_.NC("external_fullscreen_button_shown_threshold"),R=M>=_.NC("external_fullscreen_button_click_threshold")||z>=J;_.z_(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.JF().resolve(_.aV).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.panelMaxHeightUpdateJob_&&_.no.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.no.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var z;!M.isTwoColumns_||M.theater||M.fullscreen?z=460:z=M.calculateNormalPlayerSize_().height;var J=z+"px";_.U("live_chat_taller_height")&&!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.U("live_chat_medium_height")&&
!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!M.theater&&(J="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":J,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})})},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Bv(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var z=_.SN(this.hostElement).querySelector("#engagement-panel-scrim");M?z.addEventListener("tap",_.ou(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.ou(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var z=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var J=this.getPageScrollingElement(),R=this.getScrollTop(),D=R+J.clientHeight-56;if(z<R+56)z-=56;else if(M>D)z=M-J.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.QW().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,z,J){this.active&&this.trackEngagementPanelVisibility&&!_.BQw.includes(J)&&(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(J),z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(J),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,z){return M||z},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,z){return!M&&z},
computeWatchWhilePanelsActive:function(M,z){return M||z},
computeNoBorderOnChat:function(M){return _.U("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,z){return M&&!z},
computePanelExpanded:function(M,z,J){return M||z||J},
onChangeMarkersVisibility:function(M){_.z_(this).getPlayerPromise().then(function(z){var J;(J=z.changeMarkerVisibility)==null||J.call(z,_.G(M,_.Wq).isVisible||!1,_.G(M,_.Wq).entityKeys||[],_.G(M,_.Wq).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.rA().dispatch(_.kww(M.detail))},
provideRenderingData:function(M,z){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=z;break;case "DONATION_SHELF":this.donation=z;break;
case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=z}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.JF().resolve(_.q5).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(M){return VzA.map(function(z){return M.find(function(J){var R;return(J==null?void 0:(R=J.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===z})}).filter(function(z){return z!==void 0})},
getNonLearningJourneyEngagementPanels:function(M){return M.filter(function(z){var J;return!VzA.includes((z==null?void 0:(J=z.engagementPanelSectionListRenderer)==null?void 0:J.targetId)||"")})}}];var ENs;var rW=function(){var M=_.g.apply(this,arguments)||this;M.flexy=!0;M.learningJourney=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.U("enable_player_resize_transition");M.smallerChatMinHeight=_.U("live_chat_smaller_min_height");M.cinematicTheaterMode=_.U("web_cinematic_theater_mode");M.transparentTheaterMode=_.U("web_transparent_theater_mode");M.cinematicFullscreen=_.U("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.U("kevlar_flexy_use_larger_player_value");M.cinematicFullscreenV2=_.U("web_cinematic_fullscreen_v2");
M.isDarkTheme=document.documentElement.hasAttribute("dark");M.theaterLargerPlayer=_.U("web_watch_theater_larger_player");M.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");M.enableCanvasLayout=_.U("web_enable_canvas_on_learning_journey");return M};
_.w(rW,_.g);_.P=rW.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var M=this,z=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(M){_.U("web_watch_update_narrow_width_killswitch")||_.rA().dispatch(_.W$Z(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.P.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.P.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23019_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23019_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.rX.Object.defineProperties(rW.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(M=_.G(this.data.pageVisualEffects[z],_.gY))return z=void 0,(z=M.config)==null?void 0:z.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.learningJourneyEngagementPanels)==null?void 0:M.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.learningJourneyEngagementPanels)==null?void 0:M.find(function(Q){var v;return(Q==null?void 0:(v=Q.engagementPanelSectionListRenderer)==null?void 0:v.panelIdentifier)==="learning-journey-engagement-panel"});
if(z){var J,R,D,N,Z,B,O,X,l;if(M=(X=((O=(Z=((N=z==null?void 0:(J=z.engagementPanelSectionListRenderer)==null?void 0:(R=J.content)==null?void 0:(D=R.sectionListRenderer)==null?void 0:D.contents)!=null?N:[])[0])==null?void 0:(B=Z.itemSectionRenderer)==null?void 0:B.contents)!=null?O:[])[0])==null?void 0:(l=X.accordionViewModel)==null?void 0:l.onTitleTap){var e=_.$S(M);if(e)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.l5.instance.resolveCommand(e)}}}}}}});
_.rX.Object.defineProperties(rW,{template:{configurable:!0,enumerable:!0,get:function(){if(ENs===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);ENs=M}M=ENs;return M}}});
rW.prototype.updateMiniplayerIsActiveValue=rW.prototype.updateMiniplayerIsActiveValue;rW.prototype.updateScrollTopValue=rW.prototype.updateScrollTopValue;rW.prototype.updateFullscreenValue=rW.prototype.updateFullscreenValue;rW.prototype.updateTheaterValue=rW.prototype.updateTheaterValue;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],rW.prototype,"ytComponentBehavior",void 0);
_.u([_.p(aRA.YtdLearningJourneyWatchBehavior),_.W("design:type",Object)],rW.prototype,"ytdWatchBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],rW.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rW.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],rW.prototype,"playerData",void 0);_.u([_.Y(),_.W("design:type",Object)],rW.prototype,"browseData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"flexy",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"learningJourney",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"roundedInfoPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"viewTransitionEnabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"smallerChatMinHeight",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"cinematicTheaterMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"transparentTheaterMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"cinematicFullscreen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"useLargerMaxPlayerValue",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"cinematicFullscreenV2",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"isDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rW.prototype,"theaterLargerPlayer",void 0);_.u([_.Y(),_.W("design:type",Object)],rW.prototype,"defaultCollapsePlaylist",void 0);_.u([_.Y(),_.W("design:type",Object)],rW.prototype,"enableCanvasLayout",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("playerData","browseData","enableCanvasLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rW.prototype,"showBrowseResponse",null);_.u([_.Y({reflectToAttribute:!0}),_.F("playerData","enableCanvasLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rW.prototype,"showWatchResponse",null);_.u([_.Y({selector:_.ye}),_.W("design:type",Object)],rW.prototype,"theaterValue",void 0);
_.u([_.Y({selector:_.HS}),_.W("design:type",Object)],rW.prototype,"fullscreenValue",void 0);_.u([_.Y({selector:_.FI}),_.W("design:type",Object)],rW.prototype,"scrollTopValue",void 0);_.u([_.Y({selector:_.HA}),_.W("design:type",Object)],rW.prototype,"miniplayerIsActiveValue",void 0);_.u([_.Qc("#ytd-plj-player"),_.W("design:type",HTMLElement)],rW.prototype,"ytdPlayer",void 0);_.u([_.Qc("#playlist"),_.W("design:type",HTMLElement)],rW.prototype,"JSC$23019_ytdPlaylistPanelRenderer",void 0);
_.u([_.XD("ytd-comments"),_.W("design:type",HTMLElement)],rW.prototype,"ytdComments",void 0);_.u([_.Qc("#primary"),_.W("design:type",HTMLElement)],rW.prototype,"primary",void 0);_.u([_.Qc("#secondary"),_.W("design:type",HTMLElement)],rW.prototype,"secondary",void 0);_.u([_.Qc("#player-container"),_.W("design:type",HTMLElement)],rW.prototype,"playerContainer",void 0);_.u([_.Qc("#cinematics"),_.W("design:type",HTMLElement)],rW.prototype,"JSC$23019_cinematics",void 0);
_.u([_.la("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rW.prototype,"updateTheaterValue",null);_.u([_.la("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rW.prototype,"updateFullscreenValue",null);_.u([_.la("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rW.prototype,"updateScrollTopValue",null);
_.u([_.la("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rW.prototype,"updateMiniplayerIsActiveValue",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rW.prototype,"cinematicLightTheme",null);_.u([_.Y({reflectToAttribute:!0}),_.F("learningJourneyEngagementPanels"),_.W("design:type",Object),_.W("design:paramtypes",[])],rW.prototype,"hasLearningJourneyPanels",null);
_.u([_.F("learningJourneyEngagementPanels"),_.W("design:type",Object),_.W("design:paramtypes",[])],rW.prototype,"backButtonData",null);_.u([_.c({is:"ytd-watch-learning-journey"})],rW);_.oQ.registerService(_.Afw,rW);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("Tm0L3c");
var hVr;var yF4;var HKr=function(){return _.g.apply(this,arguments)||this};
_.w(HKr,_.g);_.u([_.c({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],HKr);
_.d(HKr,"ytd-ghost-comments-renderer",function(){if(yF4===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);yF4=M}M=yF4;return M},{mode:1});var cF4;var dCr=function(){return _.g.apply(this,arguments)||this};
_.w(dCr,_.g);_.u([_.c({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],dCr);
_.d(dCr,"ytd-ghost-watch-metadata-renderer",function(){if(cF4===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);cF4=M}M=cF4;return M},{mode:1});var bt=function(){var M=_.g.apply(this,arguments)||this;M.ghostGridRenderer={rows:6};M.roundedInfoPanel=!0;M.hideOfferModules=!0;M.smallerChatMinHeight=_.U("live_chat_smaller_min_height");M.cinematicTheaterMode=_.U("web_cinematic_theater_mode");M.transparentTheaterMode=_.U("web_transparent_theater_mode");M.darkerPanels=_.U("web_watch_darker_panels");M.cinematicFullscreen=_.U("web_cinematic_fullscreen");M.cinematicFullscreenV2=_.U("web_cinematic_fullscreen_v2");M.isDarkTheme=document.documentElement.hasAttribute("dark");
return M};
_.w(bt,_.g);_.P=bt.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var M=this,z=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(M){this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.P.updateShownItemsFromBinding=function(M){_.U("swatcheroo_direct_use_rich_grid")||(M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value)};
_.P.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23007_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23007_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.rX.Object.defineProperties(bt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(M=_.G(this.data.pageVisualEffects[z],_.gY))return z=void 0,(z=M.config)==null?void 0:z.enableInLightTheme;return!1}}});
bt.prototype.updateMiniplayerIsActiveValue=bt.prototype.updateMiniplayerIsActiveValue;bt.prototype.updateScrollTopValue=bt.prototype.updateScrollTopValue;bt.prototype.updateFullscreenValue=bt.prototype.updateFullscreenValue;bt.prototype.updateTheaterValue=bt.prototype.updateTheaterValue;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.sbi.YtdWatchBehavior),_.W("design:type",Object)],bt.prototype,"ytdWatchBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],bt.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bt.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],bt.prototype,"ghostGridRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],bt.prototype,"playerData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"roundedInfoPanel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"hideOfferModules",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"smallerChatMinHeight",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"cinematicTheaterMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"transparentTheaterMode",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"darkerPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"cinematicFullscreen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"cinematicFullscreenV2",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],bt.prototype,"isDarkTheme",void 0);_.u([_.Y({selector:_.ye}),_.W("design:type",Object)],bt.prototype,"theaterValue",void 0);
_.u([_.Y({selector:_.HS}),_.W("design:type",Object)],bt.prototype,"fullscreenValue",void 0);_.u([_.Y({selector:_.FI}),_.W("design:type",Object)],bt.prototype,"scrollTopValue",void 0);_.u([_.Y({selector:_.HA}),_.W("design:type",Object)],bt.prototype,"miniplayerIsActiveValue",void 0);_.u([_.Qc("#ytd-player"),_.W("design:type",HTMLElement)],bt.prototype,"ytdPlayer",void 0);_.u([_.Qc("#playlist"),_.W("design:type",HTMLElement)],bt.prototype,"JSC$23007_ytdPlaylistPanelRenderer",void 0);
_.u([_.Qc("#ytd-comments"),_.W("design:type",HTMLElement)],bt.prototype,"ytdComments",void 0);_.u([_.Qc("#primary"),_.W("design:type",HTMLElement)],bt.prototype,"primary",void 0);_.u([_.Qc("#secondary"),_.W("design:type",HTMLElement)],bt.prototype,"secondary",void 0);_.u([_.Qc("#player-container"),_.W("design:type",HTMLElement)],bt.prototype,"playerContainer",void 0);_.u([_.Qc("#cinematics"),_.W("design:type",HTMLElement)],bt.prototype,"JSC$23007_cinematics",void 0);
_.u([_.la("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bt.prototype,"updateTheaterValue",null);_.u([_.la("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bt.prototype,"updateFullscreenValue",null);_.u([_.la("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bt.prototype,"updateScrollTopValue",null);
_.u([_.la("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bt.prototype,"updateMiniplayerIsActiveValue",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bt.prototype,"cinematicLightTheme",null);
_.d(bt,"ytd-watch-grid",function(){if(hVr===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);hVr=M}M=hVr;return M},{mode:2});_.oQ.registerService(_.LBp,bt);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("CF909");
var nNq;var C5=function(){var M=_.g.apply(this,arguments)||this;M.flexy=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.U("enable_player_resize_transition");M.smallerChatMinHeight=_.U("live_chat_smaller_min_height");M.cinematicTheaterMode=_.U("web_cinematic_theater_mode");M.transparentTheaterMode=_.U("web_transparent_theater_mode");M.cinematicFullscreen=_.U("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.U("kevlar_flexy_use_larger_player_value");M.isDarkTheme=document.documentElement.hasAttribute("dark");
M.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");M.retroModeReduxValue=!1;return M};
_.w(C5,_.g);_.P=C5.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateRetroModeReduxValue=function(){_.U("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.P.ready=function(){var M=this,z=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(M){_.U("web_watch_update_narrow_width_killswitch")||_.rA().dispatch(_.W$Z(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.P.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.P.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23002_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23002_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.rX.Object.defineProperties(C5.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(M=_.G(this.data.pageVisualEffects[z],_.gY))return z=void 0,(z=M.config)==null?void 0:z.enableInLightTheme;return!1}}});
_.rX.Object.defineProperties(C5,{template:{configurable:!0,enumerable:!0,get:function(){if(nNq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);nNq=M}M=nNq;return M}}});
C5.prototype.updateRetroModeReduxValue=C5.prototype.updateRetroModeReduxValue;C5.prototype.updateScrollTopValue=C5.prototype.updateScrollTopValue;C5.prototype.updateFullscreenValue=C5.prototype.updateFullscreenValue;C5.prototype.updateTheaterValue=C5.prototype.updateTheaterValue;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.sbi.YtdWatchBehavior),_.W("design:type",Object)],C5.prototype,"ytdWatchBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],C5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],C5.prototype,"playerData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"flexy",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"roundedInfoPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"viewTransitionEnabled",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"smallerChatMinHeight",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"cinematicTheaterMode",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"transparentTheaterMode",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"cinematicFullscreen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"useLargerMaxPlayerValue",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C5.prototype,"isDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],C5.prototype,"defaultCollapsePlaylist",void 0);
_.u([_.Y({selector:_.ye}),_.W("design:type",Object)],C5.prototype,"theaterValue",void 0);_.u([_.Y({selector:_.HS}),_.W("design:type",Object)],C5.prototype,"fullscreenValue",void 0);_.u([_.Y({selector:_.FI}),_.W("design:type",Object)],C5.prototype,"scrollTopValue",void 0);_.u([_.Y({selector:_.HA}),_.W("design:type",Object)],C5.prototype,"miniplayerIsActive",void 0);_.u([_.Y({selector:function(M){return M.watch.isWatchRetroMode}}),
_.W("design:type",Object)],C5.prototype,"retroModeReduxValue",void 0);_.u([_.XD("ytd-player"),_.W("design:type",HTMLElement)],C5.prototype,"ytdPlayer",void 0);_.u([_.Qc("#playlist"),_.W("design:type",HTMLElement)],C5.prototype,"JSC$23002_ytdPlaylistPanelRenderer",void 0);_.u([_.XD("ytd-comments"),_.W("design:type",HTMLElement)],C5.prototype,"ytdComments",void 0);_.u([_.Qc("#primary"),_.W("design:type",HTMLElement)],C5.prototype,"primary",void 0);
_.u([_.Qc("#secondary"),_.W("design:type",HTMLElement)],C5.prototype,"secondary",void 0);_.u([_.Qc("#player-container"),_.W("design:type",HTMLElement)],C5.prototype,"playerContainer",void 0);_.u([_.Qc("#below"),_.W("design:type",HTMLElement)],C5.prototype,"below",void 0);_.u([_.Qc("#cinematics"),_.W("design:type",HTMLElement)],C5.prototype,"JSC$23002_cinematics",void 0);
_.u([_.la("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C5.prototype,"updateTheaterValue",null);_.u([_.la("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C5.prototype,"updateFullscreenValue",null);_.u([_.la("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C5.prototype,"updateScrollTopValue",null);
_.u([_.la("retroModeReduxValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C5.prototype,"updateRetroModeReduxValue",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],C5.prototype,"cinematicLightTheme",null);_.u([_.c({is:"ytd-watch-flexy"})],C5);_.oQ.registerService(_.flH,C5);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("nmfa2d");
var qRi;var ut=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;M.errorScreen=null;M.playlistData={};return M};
_.w(ut,_.g);_.P=ut.prototype;_.P.getPlayer=function(){return this.ytdPlayer};
_.P.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.r1(["aa","eocs"])}}};
_.P.onActiveChanged=function(){_.rA().dispatch(_.tfE(this.ytPageBehavior.active))};
_.P.playerDataChanged=function(){var M;(M=this.watchController)==null||M.setPlayerResponse(this.playerData)};
_.P.dataChanged=function(){var M;(M=this.watchController)==null||M.setWatchNextResponse(this.data)};
_.P.sizeChanged=function(){var M,z;(z=(M=this.metadata).resize)==null||z.call(M)};
_.P.attached=function(){this.watchController=new _.K5(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.P.detached=function(){_.bv(this.watchController);this.watchController=void 0};
_.P.getPlayerContainer=function(){return this.playerContainer};
_.P.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.P.provideRenderingData=function(M,z){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=z;break;case "ERROR_SCREEN":this.errorScreen=z!=null?z:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=z;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=z;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=z;break;case "RICH_METADATA":this.richMetadataRowContainer=z;break;case "CLARIFICATION":this.clarificationData=z;break;case "PLAYLIST":this.playlistData=
z!=null?z:{};break;case "MERCH_SHELF":this.merchShelf=z;break;case "TICKET_SHELF":this.ticketShelf=z;break;case "LIMITED_STATE":this.limitedState=z;break;case "DONATION_SHELF":this.donationShelf=z;break;case "ALERTS":this.alerts=z}};
_.rX.Object.defineProperties(ut.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return!this.hidden&&!!((M=this.data)==null?0:(z=M.contents)==null?0:(J=z.twoColumnWatchNextResults)==null?0:J.conversationBar)}}});
ut.prototype.sizeChanged=ut.prototype.sizeChanged;ut.prototype.dataChanged=ut.prototype.dataChanged;ut.prototype.playerDataChanged=ut.prototype.playerDataChanged;ut.prototype.onActiveChanged=ut.prototype.onActiveChanged;_.u([_.p(_.yJ.YtPageBehavior),_.W("design:type",Object)],ut.prototype,"ytPageBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"playerData",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ut.prototype,"hidden",void 0);_.u([_.Qc("#ytd-player"),_.W("design:type",HTMLElement)],ut.prototype,"ytdPlayer",void 0);_.u([_.Qc("#player-container"),_.W("design:type",HTMLElement)],ut.prototype,"playerContainer",void 0);_.u([_.Qc("#metadata"),_.W("design:type",Object)],ut.prototype,"metadata",void 0);_.u([_.Qc("#playlist"),_.W("design:type",HTMLElement)],ut.prototype,"playlistPanel",void 0);
_.u([_.Y({selector:_.CGA,reflectToAttribute:!0}),_.W("design:type",Object)],ut.prototype,"fixie",void 0);_.u([_.Y({selector:_.ipi,reflectToAttribute:!0}),_.W("design:type",Object)],ut.prototype,"singleColumn",void 0);_.u([_.Y({selector:function(M){return _.ye(M)&&!_.HS(M)},
reflectToAttribute:!0}),_.W("design:type",Object)],ut.prototype,"theater",void 0);_.u([_.Y({selector:_.HS,reflectToAttribute:!0}),_.W("design:type",Object)],ut.prototype,"fullscreen",void 0);_.u([_.Y({selector:_.wWZ}),_.W("design:type",Object)],ut.prototype,"windowSize",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"singleColumnContents",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"errorScreen",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"playlistData",void 0);
_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"videoPrimaryInfoRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"videoSecondaryInfoRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"richMetadataRowContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"clarificationData",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"commentsEntryPointHeaderRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"ticketShelf",void 0);
_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"merchShelf",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"donationShelf",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"limitedState",void 0);_.u([_.Y(),_.W("design:type",Object)],ut.prototype,"alerts",void 0);_.u([_.F("playlistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],ut.prototype,"hasPlaylistData",null);
_.u([_.F("data","hidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ut.prototype,"hasChat",null);_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ut.prototype,"onActiveChanged",null);_.u([_.la("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ut.prototype,"playerDataChanged",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ut.prototype,"dataChanged",null);_.u([_.la("windowSize","singleColumn"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ut.prototype,"sizeChanged",null);
_.d(ut,"ytd-watch-fixie",function(){if(qRi===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);qRi=M}M=qRi;return M},{mode:1});_.oQ.registerService(_.Ew8,ut);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("xwEKAe");
var awd=function(M){return _.iD(M)?M.getAttribute("jsname")==="coFSxe":!1},VQt=function(M,z){z.id||(z.id="ow"+_.fp(z));
M.setAttribute("jsowner",z.id);M.__owner=z;var J=_.cj(z,awd);J&&(_.kF$.has(J)||_.kF$.set(J,[]),_.kF$.get(J).push(M));(J=_.Zcg.get(z))||_.Zcg.set(z,J=[]);J.includes(M)||J.push(M);z.setAttribute("__IS_OWNER",!0)},Egc=function(){var M=_.wIc(1);
M=_.im(M,_.Yyb);if(!(_.GUc(M)||M[_.L4Y]&&!M.__hasBeenSet))return M.value},fwu=function(M){var z=_.vv();
if(z.getFlag(202))z=z.getFlag(201);else{var J;z=(M==null?void 0:(J=M.config)==null?void 0:J.settingOnByDefault)!==void 0?M.config.settingOnByDefault:!_.U("web_shorts_cinematics_disabled_by_default")}return z},Lus=function(M){var z=_.vv();
_.GV(0,201,M);_.GV(0,202,!0);z.save()},AZt=function(M){return(M=_.oHY(M))?_.l_Y(M):0},i5l=function(M){return M.shorts.isSmallScreenSqueezeback},Ctu=function(M){return M.shorts.isPlaybackStarted},Mpr=function(M){var z=_.wIc(2),J=new Set;
_.pq(function(){return void J.forEach(function(R){return void R()})});
return function(R){var D=_.AK(z);try{var N=b5w(rZl(M),R);J.add(N);return function(){N();J.delete(N)}}finally{_.AK(D)}}},z0E=function(M){var z=M.children;
var J=M.root;_.FT(function(){var R=Mpr(J)(z);_.pq(R)});
return document.createTextNode("")},b5w=function(M,z){var J=Jed(M);
(M=Egc())&&VQt(J,M);z=_.S(_.lKR(z,!0));M=z.next().value;var R=z.next().value;J.append.apply(J,_.Yj(M));return function(){R();J.remove()}},rZl=function(M){if(typeof M==="string")return M=document.querySelector(M),_.v2v(M),M;
if(_.Jg(M)&&M.nodeType===Node.ELEMENT_NODE)return M;if(!M.__value&&!M.__optional){var z=_.iu8.USE_ELEMENT_NOT_ASSIGNED(M.__expectedTagName);M.__hasErrored=!0;throw z;}return M.value},Jed=function(M){var z=document.createElementNS(M.namespaceURI,M.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return M.appendChild(z)},R0E=function(M,z,J,R){M=z-M;
J=R-J;return Math.sqrt(M*M+J*J)},DbZ=function(M,z){M&&_.JF().resolve(_.Rb).resolveCommand(M,{forceClickLogging:!0,
form:{element:z}})},NRd=function(M,z,J,R){M=z-M;
J=R-J;return Math.sqrt(M*M+J*J)},PGs=function(M,z){M&&_.JF().resolve(_.Rb).resolveCommand(M,{forceClickLogging:!0,
form:{element:z}})},S8E=function(){return _.JF().resolve(_.pZ).dismissedIndices},Zp3=function(M){return _.Nv({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:M}})},k8E=function(M){return _.Nv({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:M}})},Si=function(M){return _.Nv({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:M}})};var Zx=function(M,z){if(M instanceof Zx)this.array_=M.array_;else{var J;if(J=_.WY(M))a:{for(var R=J=0;R<M.length;R++){if(!_.WY(M[R])||J>0&&M[R].length!=J){J=!1;break a}for(var D=0;D<M[R].length;D++)if(typeof M[R][D]!=="number"){J=!1;break a}J==0&&(J=M[R].length)}J=J!=0}if(J)this.array_=_.uG(M);else if(M instanceof _.eU)this.array_=BRE(M.height,M.width);else if(typeof M==="number"&&typeof z==="number"&&M>0&&z>0)this.array_=BRE(M,z);else throw Error("ro");}this.size_=new _.eU(this.array_[0].length,
this.array_.length)},OpE=function(M,z,J){for(var R=0;R<M.getSize().height;R++)for(var D=0;D<M.getSize().width;D++)z.call(J,M.array_[R][D],R,D,M)},TR3=function(M,z){var J=new Zx(M.getSize());
OpE(M,function(R,D,N){J.array_[D][N]=z.call(void 0,R,D,N,M)});
return J},BRE=function(M,z){for(var J=[],R=0;R<M;R++){J[R]=[];
for(var D=0;D<z;D++)J[R][D]=0}return J};
Zx.prototype.add=function(M){if(!_.lwt(this.size_,M.getSize()))throw Error("so");return TR3(this,function(z,J,R){return z+M.array_[J][R]})};
Zx.prototype.equals=function(M,z){if(this.size_.width!=M.size_.width||this.size_.height!=M.size_.height)return!1;z=z||0;for(var J=0;J<this.size_.height;J++)for(var R=0;R<this.size_.width;R++)if(!_.XqG(this.array_[J][R],M.array_[J][R],z))return!1;return!0};
Zx.prototype.getSize=function(){return this.size_};
var k0=function(M,z,J){return z>=0&&z<M.size_.height&&J>=0&&J<M.size_.width?M.array_[z][J]:null};
Zx.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var BF=function(M,z,J,R){if(!(z>=0&&z<M.size_.height&&J>=0&&J<M.size_.width))throw Error("to`"+z+"`"+J+"`"+M.size_.height+"`"+M.size_.width);M.array_[z][J]=R};
Zx.prototype.multiply=function(M){if(M instanceof Zx){if(this.size_.width!=M.getSize().height)throw Error("uo");return Icr(this,M)}if(typeof M==="number")return oos(this,M);throw Error("vo");};
var Icr=function(M,z){var J=new Zx(M.size_.height,z.getSize().width);OpE(J,function(R,D,N){for(var Z=R=0;Z<this.size_.width;Z++)R+=k0(this,D,Z)*k0(z,Z,N);BF(J,D,N,R)},M);
return J},oos=function(M,z){return TR3(M,function(J){return J*z})};var XYq=new _.R_("inlineSurveyRenderer");var lci=new _.R_("interstitialViewModel");var e0r=new _.R_("reelNavigateCommand");var Q3d=new _.R_("reelNonVideoContentDismissalCommand");var UbA=new _.R_("showReelsCommentsOverlayCommand");var voZ=new _.R_("shortsSuggestedActionViewModel");var G8q=new _.R_("videoInteractionPopUpRenderer");var wY4;var xbZ;var tpA;var Og=function(){var M=_.g.apply(this,arguments)||this;M.ctaVisualElement=null;M.currentCsn=null;return M};
_.w(Og,_.g);_.P=Og.prototype;_.P.onDataChanged=function(){this.maybeLogShows()};
_.P.computeButtonShape=function(){var M=this;if(this.data)return{buttonText:_.CD(this.data.text),state:"active",onTap:function(){M.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.P.maybeCreateCtaVe=function(){var M;if((M=this.data)!=null&&M.badgeInteractionLogging){var z;if(M=(z=this.data.badgeInteractionLogging)==null?void 0:z.trackingParams)this.ctaVisualElement=_.pe(M)}};
_.P.maybeLogClicks=function(){this.currentCsn=_.y5(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.fY(this.currentCsn,this.ctaVisualElement)};
_.P.maybeLogShows=function(){this.currentCsn=_.y5(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.VC(this.currentCsn,[this.ctaVisualElement])};
_.P.onTap=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand);this.maybeLogClicks()}};
Og.prototype.onDataChanged=Og.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Og.prototype,"ytComponentBehavior",void 0);_.u([_.Y({}),_.W("design:type",Object)],Og.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Og.prototype,"onDataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Og);
_.d(Og,"ytd-shopping-overlay-badge-renderer",function(){if(tpA!==void 0)return tpA;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return tpA=M},{mode:1});_.N7(_.mNl,"reel-sound-metadata-view-model",{props:{data:_.Dv,overlayDensity:_.Dv}});_.N7(_.j$w,"player-disclosure-view-model",{props:{data:_.zn}});_.N7(_.vUV,"pivot-button-view-model",{props:{data:_.Dv,className:_.Dv}});_.N7(_.Go2,"reel-action-bar-view-model",{props:{data:_.zn,buttonShapeOverrideables:_.zn}});_.N7(_.Mf(function(M){function z(){var O8,I3,vY,te,wR=(I3=_.G((O8=b())==null?void 0:O8.command,_.F7))==null?void 0:(vY=I3.item)==null?void 0:(te=vY.notificationTextRenderer)==null?void 0:te.successResponseText;if(wR)_.S9(R.value,"yt-open-popup-action",[_.zh(wR),R.value]);else if(V())DbZ(V(),x.value);else{var qb;DbZ((qb=b())==null?void 0:qb.command,x.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var J=M.data;var R=_.AL("yt-player-overlay-video-interactions");M=_.S(_.kE("0px",void 0,"O1N7Ce"));var D=M.next().value,N=M.next().value;M=_.S(_.kE("0px",void 0,"tTDBdb"));var Z=M.next().value,B=M.next().value;M=_.S(_.kE(0,void 0,"fh8Zkc"));var O=M.next().value,X=M.next().value;M=_.S(_.kE(0,void 0,"CUjqGd"));var l=M.next().value,e=M.next().value,Q=function(){var O8;if(((O8=_.I9())==null?void 0:O8.getPlayerState())!==-1){R.value.style.display="inherit";var I3;(I3=_.I9())==null||I3.removeEventListener("onStateChange",
Q)}v()},v=function(){var O8=document.querySelector("video");
if(O8){X(O8.getBoundingClientRect().width);e(O8.getBoundingClientRect().height);var I3;N((O8==null?void 0:(I3=O8.style)==null?void 0:I3.left)||"0px");var vY;B((O8==null?void 0:(vY=O8.style)==null?void 0:vY.top)||"0px")}};
_.jP(function(){var O8,I3,vY;if(((O8=_.I9())==null?void 0:O8.getPlayerState())===-1&&Math.round(((vY=(I3=_.I9())==null?void 0:I3.getVideoAspectRatio())!=null?vY:0)*100)!==Math.round(O()/l()*100)){R.value.style.display="none";var te,wR;e(O()/((wR=(te=_.I9())==null?void 0:te.getVideoAspectRatio())!=null?wR:1))}},"VB5m5");
_.FT(function(){var O8;(O8=_.I9())==null||O8.addEventListener("onStateChange",Q);window.addEventListener("resize",v);v();var I3,vY,te;if((te=(I3=J())==null?void 0:(vY=I3.regions)==null?void 0:vY[0])==null||!te.transformationMatrix)throw Error("zo");var wR;if((wR=J())==null?0:wR.trackingParams){var qb;_.Gm().graftServerVe((qb=J().trackingParams)!=null?qb:"")}_.pq(function(){var cY;(cY=_.I9())==null||cY.removeEventListener("onStateChange",Q);window.removeEventListener("resize",v)})});
var x=_.AL("svg"),m=_.S(_.kE(!1,void 0,"TPsTce"));M=m.next().value;var y=m.next().value,H=_.S(_.kE(!1,void 0,"Uz6CHf"));m=H.next().value;var q=H.next().value,b=function(){var O8;return _.G((O8=J())==null?void 0:O8.popUp,G8q)},V=function(){var O8;
return(O8=J())==null?void 0:O8.command},E=function(){return _.G(V(),_.Fa)!==void 0};
H=_.ol(function(){z();return!1});
var L={},z8={};return _.T("yt-player-overlay-video-interactions",{el:R},_.T("svg",{"on:mouseover":_.ol(function(){E()&&y(!0);q(!0);return!1}),
"on:mouseout":_.ol(function(){y(!1);q(!1);return!1}),
"on:keydown":_.ol(function(O8){O8.key==="Enter"&&z();return!1}),
"on:focus":_.ol(function(){E()&&y(!0);return!1}),
"on:blur":_.ol(function(){E()&&y(!1);return!1}),
el:x,tabindex:0,"aria-label":function(){var O8;return(O8=J())==null?void 0:O8.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Qe("yt-player-overlay-video-interactions__interactions-svg",(L["yt-player-overlay-video-interactions__interactions-svg-hover"]=M,L),(z8["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=m,z8)),role:"button",style:function(){var O8,I3,vY,te=(vY=(O8=J())==null?void 0:(I3=O8.regions)==null?void 0:I3[0].transformationMatrix)!=null?vY:[];O8=O();I3=l();vY=[];for(var wR=0,qb=-1;wR<te.length;wR++)wR%3===0&&(qb++,vY[qb]=[]),vY[qb].push(te[wR]);
te=new Zx(vY);vY=new Zx([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);vY=te.multiply(vY);te=new Zx([[0,0],[0,0],[0,0],[0,0]]);for(wR=0;wR<vY.getSize().width;wR++){qb=k0(vY,0,wR);var cY=k0(vY,1,wR);if(qb===null||cY===null)throw Error("yo`"+(wR+1).toString());BF(te,wR,0,qb*O8);BF(te,wR,1,cY*I3)}O8=k0(te,0,0);wR=k0(te,1,0);I3=k0(te,0,1);qb=k0(te,1,1);if(O8===null||wR===null||I3===null||qb===null)throw Error("wo");vY=R0E(O8,wR,I3,qb);cY=k0(te,3,0);te=k0(te,3,1);if(cY===null||te===null)throw Error("xo");te=R0E(O8,
cY,I3,te);qb=(Number((qb*-1).toFixed(2))-Number((I3*-1).toFixed(2)))/(Number(wR.toFixed(2))-Number(O8.toFixed(2)));cY=Math.atan(qb)*180/Math.PI;wR=qb===Number.POSITIVE_INFINITY?-90:qb===Number.NEGATIVE_INFINITY?90:Object.is(qb,-0)?180:qb===0?0:qb>0?cY*-1:O8<wR?cY*-1:Math.abs(cY)+180;return"left:calc("+O8+"px + "+D()+"); top:calc("+(I3+"px + "+Z()+"); width:")+(vY+"px; height:")+(te+"px; transform:rotate(")+(wR+"deg);")},
"on:click":H}))},"Hj"),"yt-player-overlay-video-interactions",{props:{data:_.zn}});_.N7(_.grv,"yt-reel-metapanel-view-model",{props:{data:_.zn,overlayDensity:_.zn}});var j3i=_.Mf(function(M){var z=M.children;var J=M.region;M=_.S(_.kE(void 0,void 0,"rwJZyc"));var R=M.next().value,D=M.next().value;M=_.S(_.kE("0px",void 0,"H14H5c"));var N=M.next().value,Z=M.next().value;M=_.S(_.kE("0px",void 0,"Mn8Uvf"));var B=M.next().value,O=M.next().value;M=_.S(_.kE(0,void 0,"QQCIqc"));var X=M.next().value,l=M.next().value;M=_.S(_.kE(0,void 0,"HyEvh"));var e=M.next().value,Q=M.next().value,v=function(){var b=R();if(b){var V;if(((V=_.I9())==null?void 0:V.getPlayerState())!==-1){b.style.display=
"inherit";var E;(E=_.I9())==null||E.removeEventListener("onStateChange",v)}m()}},x=function(){var b=document.querySelectorAll("video");
return Array.from(b).find(function(V){var E;return V==null?void 0:(E=V.style)==null?void 0:E.width})},m=function(){var b=x();
if(b){l(b.getBoundingClientRect().width);Q(b.getBoundingClientRect().height);var V;Z((b==null?void 0:(V=b.style)==null?void 0:V.left)||"0px");var E;O((b==null?void 0:(E=b.style)==null?void 0:E.top)||"0px")}};
_.jP(function(){var b=R();if(b){var V,E,L;if(((V=_.I9())==null?void 0:V.getPlayerState())===-1&&Math.round(((L=(E=_.I9())==null?void 0:E.getVideoAspectRatio())!=null?L:0)*100)!==Math.round(X()/e()*100)){b.style.display="none";var z8,O8;Q(X()/((O8=(z8=_.I9())==null?void 0:z8.getVideoAspectRatio())!=null?O8:1))}}},"RdGxIf");
var y=function(){m()},H;
_.FT(function(){m();var b;if(!(J==null?0:(b=J())==null?0:b.transformationMatrix))throw Error("zo");var V;(V=_.I9())==null||V.addEventListener("onStateChange",v);if(window.ResizeObserver){if(b=x())H=new ResizeObserver(y),H.observe(b)}else window.addEventListener("resize",m);_.pq(function(){var E;(E=_.I9())==null||E.removeEventListener("onStateChange",v);H?H.disconnect():window.removeEventListener("resize",m)})});
var q=function(){var b,V,E=(V=J==null?void 0:(b=J())==null?void 0:b.transformationMatrix)!=null?V:[];b=X();V=e();for(var L=[],z8=0,O8=-1;z8<E.length;z8++)z8%3===0&&(O8++,L[O8]=[]),L[O8].push(E[z8]);E=new Zx(L);L=new Zx([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);L=E.multiply(L);E=new Zx([[0,0],[0,0],[0,0],[0,0]]);for(z8=0;z8<L.getSize().width;z8++){O8=k0(L,0,z8);var I3=k0(L,1,z8);if(O8===null||I3===null)throw Error("yo`"+(z8+1).toString());BF(E,z8,0,O8*b);BF(E,z8,1,I3*V)}b=k0(E,0,0);z8=k0(E,1,0);V=k0(E,0,1);
O8=k0(E,1,1);if(b===null||z8===null||V===null||O8===null)throw Error("wo");L=NRd(b,z8,V,O8);I3=k0(E,3,0);E=k0(E,3,1);if(I3===null||E===null)throw Error("xo");E=NRd(b,I3,V,E);O8=(Number((O8*-1).toFixed(2))-Number((V*-1).toFixed(2)))/(Number(z8.toFixed(2))-Number(b.toFixed(2)));I3=Math.atan(O8)*180/Math.PI;z8=O8===Number.POSITIVE_INFINITY?-90:O8===Number.NEGATIVE_INFINITY?90:Object.is(O8,-0)?180:O8===0?0:O8>0?I3*-1:b<z8?I3*-1:Math.abs(I3)+180;return"left:calc("+b+"px + "+N()+"); top:calc("+(V+"px + "+
B()+"); width:")+(L+"px; height:")+(E+"px; transform:rotate(")+(z8+"deg);")};
return _.T(z0E,{root:"#sticker-layer"},function(){return _.T("yt-overlay-sticker",{el:_.zL(D),style:q,class:"ytOverlayStickerHost"},z)})},"Ij");var pY4=_.Mf(function(M){function z(){var v,x,m,y,H=(x=_.G((v=O())==null?void 0:v.command,_.F7))==null?void 0:(m=x.item)==null?void 0:(y=m.notificationTextRenderer)==null?void 0:y.successResponseText;if(H)_.S9(R.value,"yt-open-popup-action",[_.zh(H),R.value]);else if(X())PGs(X(),R.value);else{var q;PGs((q=O())==null?void 0:q.command,R.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var J=M.data;var R=_.AL("svg"),D=_.S(_.kE(!1,void 0,"T9Bq7b"));M=D.next().value;var N=D.next().value,Z=_.S(_.kE(!1,void 0,"iMHq9c"));D=Z.next().value;var B=Z.next().value,O=function(){var v;return _.G((v=J())==null?void 0:v.popUp,G8q)},X=function(){var v;
return(v=J())==null?void 0:v.command},l=function(){return _.G(X(),_.Fa)!==void 0};
Z=_.ol(function(){z();return!1});
var e={},Q={};return _.T("svg",{"on:mouseover":_.ol(function(){l()&&N(!0);B(!0);return!1}),
"on:mouseout":_.ol(function(){N(!1);B(!1);return!1}),
"on:keydown":_.ol(function(v){v.key==="Enter"&&z();return!1}),
"on:focus":_.ol(function(){l()&&N(!0);return!1}),
"on:blur":_.ol(function(){l()&&N(!1);return!1}),
el:R,tabindex:0,"aria-label":function(){var v;return(v=J())==null?void 0:v.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Qe("ytPlayerOverlayInteractionInteractionsSvg",(e.ytPlayerOverlayInteractionInteractionsSvgHover=M,e),(Q.ytPlayerOverlayInteractionInteractionsSvgHideOutline=D,Q)),role:"button","on:click":Z})},"Kj");_.N7(_.Mf(function(M){var z=M.data;_.FT(function(){var J;if((J=z())==null?0:J.trackingParams){var R;_.Gm().graftServerVe((R=z().trackingParams)!=null?R:"")}});
return _.T("yt-player-overlay-interaction",null,_.T(j3i,{region:function(){var J,R;return(J=z())==null?void 0:(R=J.regions)==null?void 0:R[0]}},_.T(pY4,Object.assign({},M))))},"Jj"),"yt-player-overlay-interaction",{props:{data:_.zn}});var T2=function(){var M=_.g.apply(this,arguments)||this;M.showScrubber=!1;M.isWatchWhileMode=!1;M.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");M.enableNewStickers=_.U("use_shorts_sticker_overlay_web");M.anchoredPanelActive=!1;M.enableLivingroomLayout=_.U("reels_enable_livingroom_layout");M.enablePlayerMetadataContainer=_.U("reels_web_enable_metadata_container");M.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");M.useAspectRatio=_.U("web_use_aspect_ratio");M.isSqueezebackActive=
!1;M.smallScreenSqueezeback=!1;M.isPlayerStarted=!1;M.overlayDensity=0;M.isOverlay=!1;M.isImmersive=!1;M.isImmersiveHorizontal=!1;M.isFullscreen=!1;M.onWindowResized=function(){var z;M.set("isImmersive",((z=window.getComputedStyle(M.hostElement))==null?void 0:z.getPropertyValue("--immersive-mode-on"))==="1");M.set("isImmersiveHorizontal",M.isImmersive&&M.enableLivingroomLayout&&!M.isWatchWhileMode)};
return M};
_.w(T2,_.g);_.P=T2.prototype;_.P.updateIsOverlay=function(M){this.isOverlay=M.detail.value};
_.P.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.U("web_enable_flexible_overlay")||_.U("web_enable_format_first")||_.U("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.P.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.P.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.P.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.P.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.P.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.P.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.P.ready=function(){(_.U("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"))&&(!_.U("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Sz("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Sz("reels_action_justified_content")||"flex-start")};
_.P.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.P.setFakeLoadingButtons=function(){_.U("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.e9("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.e9("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.e9("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.e9("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.e9("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.P.setEmptyOverlayMetadata=function(){_.U("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}))};
_.rX.Object.defineProperties(T2.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoPanel)}}});
T2.prototype.onIsActiveChanged=T2.prototype.onIsActiveChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],T2.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],T2.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],T2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],T2.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],T2.prototype,"isActive",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],T2.prototype,"hidden",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],T2.prototype,"useShortsIcon",void 0);_.u([_.Y({value:"left"}),_.W("design:type",String)],T2.prototype,"buttonTooltipPosition",void 0);
_.u([_.Y({value:_.U("reels_enable_livingroom_layout")?"top":"left"}),_.W("design:type",String)],T2.prototype,"likeButtonTooltipPosition",void 0);_.u([_.Y({value:"none"}),_.W("design:type",String)],T2.prototype,"textTransform",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"showScrubber",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"isWatchWhileMode",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.infoPanel"),_.W("design:type",Object),_.W("design:paramtypes",[])],T2.prototype,"hasInfoPanel",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"enableAnchoredPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"enableNewStickers",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"anchoredPanelActive",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"enableLivingroomLayout",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],T2.prototype,"enablePlayerMetadataContainer",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"enableSqueezebackPanels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"useAspectRatio",void 0);
_.u([_.Y({selector:_.zxw,reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"isSqueezebackActive",void 0);_.u([_.Y({selector:i5l,reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"smallScreenSqueezeback",void 0);_.u([_.Y({selector:Ctu}),_.W("design:type",Object)],T2.prototype,"isPlayerStarted",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"overlayDensity",void 0);_.u([_.Y(),_.W("design:type",Object)],T2.prototype,"isOverlay",void 0);
_.u([_.Y({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.W("design:type",Boolean)],T2.prototype,"isShortsOverlay",void 0);_.u([_.Y(),_.W("design:type",Object)],T2.prototype,"isImmersive",void 0);_.u([_.Y(),_.W("design:type",Object)],T2.prototype,"isImmersiveHorizontal",void 0);_.u([_.Y({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.W("design:type",Boolean)],T2.prototype,"isShortsImmersive",void 0);
_.u([_.Y({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],T2.prototype,"buttonOverride",void 0);_.u([_.Y({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],T2.prototype,"actionBarButtonOverride",void 0);_.u([_.Y({selector:_.k8,reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"isFullscreen",void 0);
_.u([_.la("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T2.prototype,"onIsActiveChanged",null);_.u([_.c({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],T2);
_.d(T2,"ytd-reel-player-overlay-renderer",function(){if(xbZ!==void 0)return xbZ;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xbZ=M},{mode:1});var Fwq;var Ia=function(){var M=_.g.apply(this,arguments)||this;M.videoDuration=0;M.playedTime=0;M.isActive=!1;M.JSC$22199_playerEvents=new Map;return M};
_.w(Ia,_.g);_.P=Ia.prototype;_.P.created=function(){this.JSC$22199_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22199_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.P.attached=function(){this.getPlayerAndInitializeListeners()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22199_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ou(this,this.onPageChanged))};
_.P.getPlayerAndInitializeListeners=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return z=_.J_(),z?J.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ou(M,M.onPageChanged)),J.jumpTo(0));M.player=J.yieldResult;M.initializePlayerListeners();_.UI(J)})};
_.P.onPageChanged=function(M){var z=this;return _.k(function(J){if(J.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?J.return():J.yield(_.R9().getPlayerPromise(),2);z.player=J.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ou(z,z.onPageChanged));_.UI(J)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22199_playerEvents)};
_.P.onVideoDataChange=function(M){var z=this;return _.k(function(J){if(!z.player||M.type!=="newdata")return J.return();z.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(M.playertype).seekableEnd:z.player.getDuration(M.playertype);z.playedTime=0;_.UI(J)})};
_.P.onVideoProgress=function(M){var z=this,J,R;return _.k(function(D){if(!z.player)return D.return();J=z.player.getPresentingPlayerType();R=z.player.getPlayerState();z.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(J).seekableEnd:z.player.getDuration(J);z.playedTime=R===0?z.videoDuration:M;_.UI(D)})};
_.P.getPercentPlayed=function(M,z){return M?_.dy(z/M,0,1):0};
_.rX.Object.defineProperties(Ia.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var M="";return M=this.videoDuration&&this.playedTime?M+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):M+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Ia.prototype,"componentBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],Ia.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ia.prototype,"player",void 0);_.u([_.Y(),_.W("design:type",Object)],Ia.prototype,"videoDuration",void 0);_.u([_.Y(),_.W("design:type",Object)],Ia.prototype,"playedTime",void 0);_.u([_.Y(),_.W("design:type",Object)],Ia.prototype,"isActive",void 0);
_.u([_.F("videoDuration","playedTime"),_.W("design:type",Number),_.W("design:paramtypes",[])],Ia.prototype,"percentPlayed",null);_.u([_.F("videoDuration","playedTime"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ia.prototype,"percentPlayedStyle",null);_.u([_.F("videoDuration","isActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Ia.prototype,"hideProgressBar",null);
_.d(Ia,"ytd-progress-bar-line",function(){if(Fwq===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);Fwq=M}M=Fwq;return M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var Y8q;_.N7(_.kk5,"ytm-closed-captioning-button",{props:{captionIconType:_.zn,onClick:_.Dv,ariaLabel:_.zn,ariaPressed:_.zn,isOverlay:_.Dv,isModern:_.Dv}});_.N7(_.tUl,"desktop-shorts-volume-controls",{props:{orientation:_.zn}});var oa=function(){var M=_.g.apply(this,arguments)||this;M.playerState=null;M.isMuted=!1;M.shortsModernControlsEnabled=_.U("web_shorts_modern_controls");M.volumeControlsOrientationState=_.U("web_shorts_modern_controls")?"vertical_down":"horizontal_right";M.isOverlay=!0;M.captionIconType=-1;M.ariaLabel="";M.overlayDensity=0;M.JSC$22202_playerEvents=new Map;M.onClosedCaptionsButtonClick=function(){M.player&&_.Ja(M.player)&&(M.player.toggleSubtitles(),M.updateCaptionIconType())};
return M};
_.w(oa,_.g);_.P=oa.prototype;_.P.created=function(){this.JSC$22202_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22202_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22202_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.P.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.O3(28662);this.playPauseButtonClientVE=_.O3(36842);this.fullscreenButtonToggleOffClientVE=_.O3(222256);this.fullscreenButtonToggleOnClientVE=_.O3(222257);var M=_.y5(),z=_.hu();M&&z&&(_.U("combine_ve_grafts")?(_.ln(_.Gm(),this.muteButtonClientVE,z),_.ln(_.Gm(),this.playPauseButtonClientVE,z)):_.Wv(M,z,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22202_playerEvents),this.player=null)};
_.P.updateCaptionIconType=function(){var M=-1,z=void 0,J=_.e9("CLOSED_CAPTIONS_DISABLED");this.player&&_.Ja(this.player)&&(_.CmN(this.player)?(z=!0,J=_.e9("CLOSED_CAPTIONS_ON"),M=1):(z=!1,J=_.e9("CLOSED_CAPTIONS_OFF"),M=0));this.captionIconType=M;this.ariaPressedState=z;this.ariaLabel=J};
_.P.getPlayerAndInitializeListeners=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return z=_.J_(),z?J.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ou(M,M.onPageChanged)),J.jumpTo(0));M.player=J.yieldResult;M.initializePlayerListeners();_.UI(J)})};
_.P.onPageChanged=function(M){var z=this;return _.k(function(J){if(J.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?J.return():J.yield(_.R9().getPlayerPromise(),2);z.player=J.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ou(z,z.onPageChanged));_.UI(J)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22202_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.P.onPlayerStateChange=function(M){this.playerState=M};
_.P.onPlayerVolumeChange=function(M){this.isMuted=M.muted};
_.P.onPlayPauseButtonClick=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.R9().getPlayerPromise(),2);z=R.yieldResult;(J=_.y5())&&M.playPauseButtonClientVE&&_.fY(J,M.playPauseButtonClientVE);z.getPlayerState()!==1?z.playVideo():z.pauseVideo();_.UI(R)})};
_.P.computePlayPauseIcon=function(M){return M===2||M===-1||M===5?_.U("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.U("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.U("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.P.computeFullscreenLabel=function(M){return M?_.e9("FULLSCREEN_EXIT_LABEL"):_.e9("FULLSCREEN_ENTER_LABEL")};
_.P.computePlayPauseLabel=function(M){return M===1||M===3?_.e9("PLAYER_LABEL_PAUSE"):_.e9("PLAYER_LABEL_PLAY")};
_.P.onMuteButtonClick=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.R9().getPlayerPromise(),2);z=R.yieldResult;(J=_.y5())&&M.muteButtonClientVE&&_.fY(J,M.muteButtonClientVE);z.isMuted()?z.unMute(!0):z.mute(!0);_.UI(R)})};
_.P.computeMuteIcon=function(M){return M?"miniplayer:volume-off":"miniplayer:volume-up"};
_.P.computeMuteLabel=function(M){return M?_.e9("PLAYER_LABEL_UNMUTE"):_.e9("PLAYER_LABEL_MUTE")};
_.P.onFullscreenButtonClick=function(){var M=_.y5();M&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.fY(M,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.fY(M,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.xSm()};
_.rX.Object.defineProperties(oa.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var M=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){M.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.U("web_shorts_modern_controls")?"player_full_exit_alt":_.U("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.U("web_shorts_modern_controls")?"player_full_enter_alt":_.U("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],oa.prototype,"componentBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],oa.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],oa.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"player",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"playerState",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"isMuted",void 0);
_.u([_.Y({computed:"computePlayPauseIcon(playerState)"}),_.W("design:type",String)],oa.prototype,"playPauseIcon",void 0);_.u([_.Y({computed:"computeMuteIcon(isMuted)"}),_.W("design:type",String)],oa.prototype,"muteIcon",void 0);_.u([_.Y({selector:_.k8}),_.W("design:type",Boolean)],oa.prototype,"isFullscreen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oa.prototype,"shortsModernControlsEnabled",void 0);
_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"volumeControlsOrientationState",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"isOverlay",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"captionIconType",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"ariaLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"ariaPressedState",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oa.prototype,"overlayDensity",void 0);
_.u([_.F("playerState"),_.W("design:type",Object),_.W("design:paramtypes",[])],oa.prototype,"playPauseButtonData",null);_.u([_.F("isFullscreen"),_.W("design:type",Object),_.W("design:paramtypes",[])],oa.prototype,"fullscreenButtonData",null);_.u([_.Y(),_.W("design:type",Object)],oa.prototype,"onClosedCaptionsButtonClick",void 0);_.u([_.F("isFullscreen"),_.W("design:type",String),_.W("design:paramtypes",[])],oa.prototype,"fullscreenIcon",null);
_.d(oa,"ytd-shorts-player-controls",function(){if(Y8q===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);Y8q=M}M=Y8q;return M},{mode:1});var mbi;_.N7(_.NWQ,"yt-interstitial-view-model",{props:{data:_.zn}});var goq=_.Mf(function(M){var z=M.data;return _.T("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.T("h1",{class:"reelWatchBreakViewModelHostTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T("h2",{class:"reelWatchBreakViewModelHostBody"},_.T(_.m3,{text:function(){return z().body},
isOverlay:!0})),_.T(_.t_,{data:function(){return z().buttons}},{buttonViewModel:function(J,R){return _.T("div",{class:function(){return R()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.T(_.lT,{data:J.data}))}}))},"Lj");
goq.idomCompat=!0;_.N7(goq,"reel-watch-break-view-model",{props:{data:_.zn}});var XI=function(){return _.g.apply(this,arguments)||this};
_.w(XI,_.g);XI.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}}};
_.rX.Object.defineProperties(XI.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.G((M=this.data)==null?void 0:M.renderer,XYq)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.G((M=this.data)==null?void 0:M.renderer,lci)}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],XI.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],XI.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XI.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],XI.prototype,"isSurvey",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],XI.prototype,"isInterstitialViewModel",null);_.u([_.c({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],XI);
_.d(XI,"ytd-reel-non-video-content-renderer",function(){if(mbi!==void 0)return mbi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return mbi=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var s33;_.N7(_.xxu,"desktop-shorts-player-controls",{});var lh=function(){var M=_.g.apply(this,arguments)||this;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.showPlayerControls=!1;M.showScrubber=!1;M.autoHideJobId=0;M.modern=_.U("web_button_rework");M.overlayType=_.Sz("web_shorts_expanded_overlay_type");M.panelData=void 0;M.isWatchWhileMode=!1;M.hasError=!1;M.panelShowDelayMs=1;M.scrubberComponent={};M.isFullscreen=!1;M.shouldHideOverlay=!1;M.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");M.enablePersistentAnchoredPanel=_.U("desktop_shorts_v2_persistent_anchored_panel");
M.hideWatchWhilePanel=_.U("web_shorts_hide_watch_while_panel");M.useAspectRatio=_.U("web_use_aspect_ratio");M.isPersistentPanelActive=!1;M.anchoredPanelActive=!1;M.isShortsPipActive=!1;M.smallScreenSqueezeback=!1;M.enableFlexibleOverlay=_.U("web_enable_flexible_overlay");M.overlayDensity=0;M.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};M.onWindowResized=function(){_.Vc(M,
"calculateOverlayDensity",function(){M.calculateOverlayDensity()},100)};
return M};
_.w(lh,_.g);_.P=lh.prototype;_.P.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.P.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.P.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var M=_.JF().resolve(_.nx);this.isWatchWhileMode&&(_.U("web_enable_shorts_new_carousel")?_.no.addJob(function(){M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.P.handleShowReelsCommentsOverlayCommand=function(M){M=_.G(M,UbA);this.isActive&&(M==null?0:M.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.P.updateEngagementPanelVisibility=function(M,z){M&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:z?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:M}})};
_.P.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.P.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.JF().resolve(_.pZ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.P.handleWatchWhilePanelScrimClick=function(){var M=_.JF().resolve(_.nx);this.activeWatchWhilePanel&&(M.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.P.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.P.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.U("web_enable_shorts_new_carousel")?0:void 0}}};
_.P.handlePlayerClick=function(M){var z=this,J,R;if((R=(J=window).matchMedia)!=null&&R.call(J,"(any-pointer: coarse)").matches||!M)this.showPlayerControls=!0,_.no.cancelJob(this.autoHideJobId),this.autoHideJobId=_.x4(_.no,function(){z.showPlayerControls=!1},4E3)};
_.P.isFirstReel=function(){return this.index===0};
_.P.handleMouseenter=function(){_.no.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.P.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.P.handleScrubberEnter=function(){this.showScrubber=!0};
_.P.handleScrubberLeave=function(){this.showScrubber=!1};
_.P.maybeLogNonDefaultAspectRatio=function(){var M;(M=this.data)!=null&&M.thumbnail&&this.isActive&&.5625!==AZt(this.data.thumbnail)&&_.s7R("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.P.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var M=document.querySelector("#shorts-container");if(M){M=M.offsetWidth/2-this.playerContainer.offsetWidth/2;M=M>=368?1:M>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&M===1&&(M=0);this.isPersistentPanelActive&&(M=0);window.innerWidth<=599&&(M=2);this.overlayDensity=M;var z;(z=this.onOverlayDensityChanged)==null||z.call(this,this.index,this.overlayDensity)}}};
_.P.onOverlayDensityChange=function(){var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity);(M=_.SN(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&M.set("overlayDensity",this.overlayDensity);if(M=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))M.overlayDensity=this.overlayDensity};
_.P.isVideoContent=function(M){_.JF().resolve(_.pZ);return!!_.G(M,_.je)};
_.P.isNonVideoContent=function(M){_.JF().resolve(_.pZ);return!!_.G(M,_.qj)};
_.P.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.rX.Object.defineProperties(lh.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var M,z;return _.U("web_enable_format_first")||((M=this.data)==null?void 0:M.adsOverlay)&&_.U("web_enable_format_first_ads_only")||((z=this.data)==null?void 0:z.reelPlayerOverlayRenderer)&&_.U("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.U("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isActive||!this.isPlayerStarted||(M=this.data)!=null&&M.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.command)&&this.isVideoContent(this.data.command)){var z,J;if(((z=this.data)==null?0:z.adsOverlay)&&Object.keys((J=this.data)==null?void 0:J.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var R,D;if(((R=this.data)==null?0:R.reelPlayerOverlayRenderer)&&Object.keys((D=this.data)==null?void 0:D.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
lh.prototype.onOverlayDensityChange=lh.prototype.onOverlayDensityChange;lh.prototype.calculateOverlayDensity=lh.prototype.calculateOverlayDensity;lh.prototype.maybeLogNonDefaultAspectRatio=lh.prototype.maybeLogNonDefaultAspectRatio;lh.prototype.onEngagementPanelsChanged=lh.prototype.onEngagementPanelsChanged;lh.prototype.onScrubberDataChange=lh.prototype.onScrubberDataChange;lh.prototype.updateShouldHideOverlay=lh.prototype.updateShouldHideOverlay;
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],lh.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],lh.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],lh.prototype,"index",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],lh.prototype,"isActive",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],lh.prototype,"isHiddenInDom",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"isPlayerPaused",void 0);_.u([_.Y({selector:Ctu}),_.W("design:type",Object)],lh.prototype,"isPlayerStarted",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"showPlayerControls",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"showScrubber",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"autoHideJobId",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"overlayType",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],lh.prototype,"ytdReduxBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],lh.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"watchWhileEngagementPanels",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"panelData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"isWatchWhileMode",void 0);_.u([_.Y(),_.W("design:type",String)],lh.prototype,"activeWatchWhilePanel",void 0);
_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"hasError",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"panelShowDelayMs",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"scrubberComponent",void 0);_.u([_.Y({selector:_.k8,reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"isFullscreen",void 0);_.u([_.Y(),_.W("design:type",Object)],lh.prototype,"shouldHideOverlay",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"enableAnchoredPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"enablePersistentAnchoredPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"hideWatchWhilePanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"useAspectRatio",void 0);
_.u([_.Y({selector:_.zxw,reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"isPersistentPanelActive",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"anchoredPanelActive",void 0);_.u([_.Y({selector:_.BX,reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"isShortsPipActive",void 0);_.u([_.Y({selector:i5l,reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"smallScreenSqueezeback",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],lh.prototype,"enableFormatFirst",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"enableFlexibleOverlay",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lh.prototype,"overlayDensity",void 0);_.u([_.Y(),_.W("design:type",Function)],lh.prototype,"onOverlayDensityChanged",void 0);
_.u([_.Y(),_.F("isActive","hasError","isPlayerStarted"),_.W("design:type",Object),_.W("design:paramtypes",[])],lh.prototype,"shouldRenderPlayerElements",null);_.u([_.Y(),_.F("isActive","isWatchWhileMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],lh.prototype,"watchWhileOrPersistentActive",null);_.u([_.la("isActive","hasError","showingExpandedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"updateShouldHideOverlay",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("isActive","isPlayerStarted","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lh.prototype,"shouldRenderScrubber",null);_.u([_.la("shouldRenderScrubber"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"onScrubberDataChange",null);_.u([_.F("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],lh.prototype,"overlayComponent",null);
_.u([_.la("watchWhileEngagementPanels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"onEngagementPanelsChanged",null);_.u([_.Qc("#player-container"),_.W("design:type",HTMLElement)],lh.prototype,"playerContainer",void 0);_.u([_.Qc("#cinematic-container"),_.W("design:type",HTMLElement)],lh.prototype,"cinematicContainer",void 0);
_.u([_.la("isPersistentPanelActive","data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"maybeLogNonDefaultAspectRatio",null);_.u([_.la("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"calculateOverlayDensity",null);_.u([_.la("overlayDensity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lh.prototype,"onOverlayDensityChange",null);
_.u([_.c({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],lh);
_.d(lh,"ytd-reel-video-renderer",function(){if(s33!==void 0)return s33;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return s33=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var ei=function(){var M=_.g.apply(this,arguments)||this;M.isPreviousPageShorts=!1;M.index=0;M.delayedActiveIndex=0;M.playablePreviousIndex=null;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.intersectionObserverThreshold=.6;M.fitToVisibleBounds=!1;M.pageSubtype="shorts";M.enablePreviousContinuation=_.U("shorts_in_playlists_web");M.shortsPipEnabled=_.U("web_shorts_pip");M.isDark=document.documentElement.hasAttribute("dark");M.shortsViewTransitions=_.U("web_shorts_view_transitions");M.isFullscreen=!1;M.isShortsPipActive=
!1;M.buttonOverride={iconPosition:"icon-only",size:"XL"};M.anchoredPanelActive=!1;M.isActive=!1;M.smallScreenPersistentPanel=!1;M.isPersistentPanelActive=!1;M.smallScreenSqueezeBack=!1;M.enableScrollIntoViewCenter=_.U("web_scroll_into_view_center");M.formatFirst=_.U("web_enable_format_first")||_.U("web_enable_format_first_ads_only")||_.U("web_enable_format_first_organic_only");M.enableFlexibleOverlay=_.U("web_enable_flexible_overlay");M.useAspectRatio=_.U("web_use_aspect_ratio");M.isShortsInitialized=
!1;M.hidePreviousButtonImmediately=!1;M.showPreviousButtonImmediately=!1;M.endOfNextContinuation=!1;M.currentPlayerIndex=0;M.nextReelVe=_.O3(56921);M.prevReelVe=_.O3(56922);M.loopToggleOffVe=_.O3(198013);M.loopToggleOnVe=_.O3(198014);M.ambientModeToggleVe=_.O3(227860);M.reelPlayerPausedStateRendererVe=_.O3(141313);M.storedPlaybackSpeed=null;M.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};M.onOverlayDensityChanged=function(z,J){var R;(R=M.getActiveReelVideo(z))==null||R.setAttribute("overlay-density",String(J))};
return M};
_.w(ei,_.g);_.P=ei.prototype;
_.P.deflateInactivePreviousSlides=function(){var M=_.NC("web_shorts_deflate_inactive_slides_aggressive_distance");if(M>0&&this.shortsProcessedSequence&&this.activeIndex){M=this.activeIndex-M;for(var z=0;z<=M;z++){var J=void 0;((J=this.shortsProcessedSequence[z].reelPlayerOverlayRenderer)==null?0:J.metapanel)&&this.set("shortsProcessedSequence."+z+".reelPlayerOverlayRenderer",{});J=void 0;((J=this.shortsProcessedSequence[z].adsOverlay)==null?0:J.adSlotMetadata)&&this.set("shortsProcessedSequence."+z+
".adsOverlay",{})}}};
_.P.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.P.onResize=function(){var M=_.rA(),z=M.dispatch,J=this.calculateIsSmallWidth();z.call(M,_.Nv({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:J}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.P.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.U("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.P.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var M=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,z=M,J=0;M<250&&(z=M+this.shortsInnerContainer.clientWidth,J=24);_.Tp(this.hostElement,{"--ytd-shorts-header-width":z+"px","--ytd-shorts-top-spacing":J+"px"})}};
_.P.isFirstShorts=function(M){return M?this.index===-M.length:this.index===0};
_.P.isActiveReel=function(M,z,J){J&&(z=this.calculatePrevIndex(z,J));return M===z};
_.P.onFullscreenChange=function(){if(_.U("web_fullscreen_shorts")){var M;(M=this.getActiveReelVideo(this.activeIndex))==null||M.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.JF().resolve(_.q5).close(!0)}};
_.P.engagementPanelsChanged=function(){var M;this.watchWhileEngagementPanels=(M=this.data)==null?void 0:M.engagementPanels};
_.P.unregisterPanels=function(){var M=_.JF().resolve(_.nx);if(this.watchWhileEngagementPanels)for(var z=_.S(this.watchWhileEngagementPanels),J=z.next();!J.done;J=z.next()){var R=J.value,D=void 0,N=void 0;J=(D=R.engagementPanelSectionListRenderer)==null?void 0:(N=D.identifier)==null?void 0:N.tag;R=this.getPanelContentIdentifier(R.engagementPanelSectionListRenderer);M&&(J&&M.panelMap.delete(J),R&&_.U("web_shorts_panel_caching_bugfix")&&(D=J=void 0,(D=(J=M).unregisterPanelContent)==null||D.call(J,R)))}};
_.P.isVideoContent=function(M){return this.isVideoContentCommand(M==null?void 0:M.command)};
_.P.getActiveReelVideo=function(M){return _.SN(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+M+'"]')};
_.P.calculatePrevIndex=function(M,z){return z?M-((z==null?void 0:z.length)||0):-1};
_.P.onKeydown=function(M){var z=_.CX(M)||[];if(!_.wNG(z))if(M.code==="ArrowUp")M.preventDefault(),this.handlePrevButtonClick();else if(M.code==="ArrowDown")M.preventDefault(),this.handleNextButtonClick();else if(M.code==="KeyM")this.toggleMuteUnmuteVideo();else if(M.code==="KeyK"||M.code==="Space")this.togglePlayPauseVideo();else if((M.code==="KeyA"||M.code==="ArrowLeft")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")){var J;(J=this.player)==null||J.seekBy(-5)}else if((M.code==="KeyD"||M.code===
"ArrowRight")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var R;(R=this.player)==null||R.seekBy(5)}};
_.P.onServiceRequestCompleted=function(M,z){M=z.data;M.continuationEndpoint&&M.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:M.entries,continuationEndpoint:M.continuationEndpoint}}):M.prevContinuationEndpoint&&M.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:M.prevEntries,prevContinuationEndpoint:M.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.P.handleEngagementPanelVisibilityChanged=function(M,z){var J=_.JF().resolve(_.nx);if(M&&J){var R=this.getPanelIdentifier(M);if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==R){J.hidePanel(this.activePanel);var D;this.activePanel=((D=M.identifier)==null?void 0:D.tag)||M.panelIdentifier}else this.isPersistentPanelActive=!0,_.rA().dispatch(Zp3(!0)),this.anchoredPanelActive=!0,this.activePanel=R;else z==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
R&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.rA().dispatch(Zp3(!1)))}};
_.P.handlePanelScrimClick=function(){var M=_.JF().resolve(_.nx);this.activePanel&&(M.hidePanel(this.activePanel),_.rA().dispatch(Zp3(!1)))};
_.P.getShortsLoopSetting=function(){var M,z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return _.U("kevlar_shorts_auto_advance")?N.yield(_.nN.getInstance(),2):N.return(!0);case 2:return(M=N.yieldResult)?N.yield(M.get("sfvles"),3):N.return(!0);case 3:return J=(z=N.yieldResult)!=null?z:!1,N.yield(M.get("sfvle"),4);case 4:return D=(R=N.yieldResult)!=null?R:!0,J?N.return(D):N.return(!0)}})};
_.P.handleSignalActionToggleLoopShortsOff=function(){var M=this,z,J,R;return _.k(function(D){switch(D.nextAddress){case 1:if(!M.player)return D.return();M.player.setLoopVideo(!1);z=_.Gm();_.Q6(z,M.loopToggleOffVe);return D.yield(_.nN.getInstance(),2);case 2:return(J=D.yieldResult)?D.yield(J.set("sfvle",!1),3):D.return();case 3:return D.yield(J.set("sfvles",!0),4);case 4:R=_.vv(),_.GV(0,203,!1),_.GV(0,204,!0),R.save(),_.UI(D)}})};
_.P.handleSignalActionToggleLoopShortsOn=function(){var M=this,z,J,R;return _.k(function(D){switch(D.nextAddress){case 1:if(!M.player)return D.return();M.player.setLoopVideo(!0);z=_.Gm();_.Q6(z,M.loopToggleOnVe);return D.yield(_.nN.getInstance(),2);case 2:return(J=D.yieldResult)?D.yield(J.set("sfvle",!0),3):D.return();case 3:return D.yield(J.set("sfvles",!0),4);case 4:R=_.vv(),_.GV(0,203,!0),_.GV(0,204,!0),R.save(),_.UI(D)}})};
_.P.handleSignalActionToggleCinematicShortsOn=function(){Lus(!0);var M;(M=this.JSC$22226_cinematicController)==null||_.uVl(M,!0);_.Q6(_.Gm(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.P.handleSignalActionToggleCinematicShortsOff=function(){Lus(!1);var M;(M=this.JSC$22226_cinematicController)==null||_.uVl(M,!1);_.Q6(_.Gm(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.P.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.P.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.P.unhideCurrentOverlay=function(){if(this.overlayContainer){var M=this.overlayContainer.querySelector("#experiment-overlay");M&&_.no.addLowPriorityJob(function(){M.style.display="unset"},100)}};
_.P.getCurrentShort=function(){if(this.currentEndpoint){var M=this.currentEndpoint;if(this.isNonVideoContentCommand(M)){var z=_.G(M,_.qj);return{reelNonVideoContentRenderer:_.G(z==null?void 0:z.renderer,_.Xc2),command:M}}if(this.data){var J;z=(J=_.G(this.currentEndpoint,_.je))==null?void 0:J.thumbnail;var R;J=(R=this.data.overlay)==null?void 0:R.reelPlayerOverlayRenderer;_.JF().resolve(_.pZ);M=this.data;var D,N;R=(D=M.overlay)==null?void 0:(N=D.shortsAdsRenderer)==null?void 0:N.adSlots;if(R!==void 0)R.length===
0?(_.iE("Shorts ads returned no ad slots."),M=void 0):(R.length>1&&_.iE("Shorts ads has more than one ad slots."),M=_.G(R[0],_.sNu));else{var Z,B;M=_.G((Z=M.overlay)==null?void 0:(B=Z.shortsAdsRenderer)==null?void 0:B.overlay,_.sNu)}Z=M;M=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.G(this.currentEndpoint,_.je),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:J,thumbnail:z,command:M,adsOverlay:Z}}}};
_.P.created=function(){var M=this;this.scrollToVideoThrottle=new _.A_(function(z){var J;(J=M.getActiveReelVideo(z))==null||J.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.A_(function(z){var J;(J=M.getActiveReelVideo(z))==null||J.scrollIntoView({behavior:"auto",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.P.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.P.attached=function(){var M=this;_.JF().resolve(_.pZ).registerRootElement(this);this.pageScrollElement=_.SN(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ou(this,this.processResetAction));_.U("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var z=M.getActiveReelVideo(M.activeIndex);M.maybeCreateIntersectionObserver();z==null||z.scrollIntoView({behavior:"instant",
block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"});M.shortsContainer.style.overflowY="scroll"}))};
_.P.calculateSqueezebackPanelSize=function(){var M=this,z=window.innerWidth-456-(window.innerHeight-106)*.5625;_.no.addLowPriorityJob(function(){z<360?_.rA().dispatch(k8E(!0)):(M.hostElement.style.setProperty("--anchored-panel-width",Math.min(z,480)+"px"),_.rA().dispatch(k8E(!1)))})};
_.P.detached=function(){var M=_.JF().resolve(_.pZ);M.rootElement=void 0;var z;(z=M.unsubscribeFromStore)==null||z.call(M);M.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ou(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.P.onResizeFinished=function(M,z){var J=this,R=new ResizeObserver(function(){J.shortsContainer.style.overflowY="hidden";_.no.addLowPriorityJob(function(){z()},100)});
R.observe(M);return R};
_.P.resetDocumentScrollTop=function(){var M,z;if((M=document)==null?0:(z=M.scrollingElement)==null?0:z.scrollTop)document.scrollingElement.scrollTop=0};
_.P.loadPage_=function(M){var z=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),M){var J;!_.U("web_enable_delay_shorts_sequence_call")&&((J=_.G(this.currentEndpoint,_.je))==null?0:J.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=M;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){z.isPlayerStarted&&(z.handleOnPlaybackCommand(),z.afterPlayerStarted=function(){})};
this.registerPanel(M)}};
_.P.afterPlayerStarted=function(){};
_.P.handleOnPlaybackCommand=function(){if(_.U("web_shorts_comment_stickers")&&this.isPlayerStarted){var M,z=(M=_.G(this.currentEndpoint,_.je))==null?void 0:M.onPlaybackCommand;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.P.maybeCreateIntersectionObserver=function(){var M=this,z=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==z){this.intersectionObserverThreshold=z;var J={rootMargin:"0px",threshold:z},R;(R=this.intersectionObserver)==null||R.disconnect();this.intersectionObserver=new IntersectionObserver(function(D){D=_.S(D);for(var N=D.next();!N.done;N=D.next())if(N=N.value,N.intersectionRatio>z){N=Number(N.target.id);if(isNaN(N))break;if(N===M.index)break;
_.D0R();M.loadVideo(N);_.Hv("r_vtc")}},J);
this.observeShorts()}};
_.P.observeShorts=function(){var M=[].concat(_.Yj(_.SN(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));M=_.S(M);for(var z=M.next();!z.done;z=M.next()){z=z.value;var J=void 0;(J=this.intersectionObserver)==null||J.observe(z)}};
_.P.initCsi=function(){_.hf("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var M={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},z,J;if((z=this.playerData)==null?0:(J=z.cacheMetadata)==null?0:J.isCacheHit)M.isCacheHit=!0;var R;if(z=(R=_.G(this.currentEndpoint,_.je))==null?void 0:
R.prefetchTaskId)M.prefetchInfo={taskId:z};_.sf(M)};
_.P.isAd=function(){var M,z;return!!((M=_.G(this.currentEndpoint,_.je))==null?0:(z=M.adClientParams)==null?0:z.isAd)};
_.P.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.P.getPlayerContainer=function(){var M;return(M=_.SN(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:M.playerContainer};
_.P.onPlayerStateChange=function(M){var z=this;this.isPlayerPaused=M===2;M!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?M===1&&this.index===0&&(this.isPlayerStarted||_.rA().dispatch(Si(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.rA().dispatch(Si(!0)));this.player&&!this.player.getLoopVideo()&&_.no.addLowPriorityJob(function(){z.getShortsLoopSetting().then(function(J){var R;(R=z.player)==null||R.setLoopVideo(J)})});
this.isPlayerPaused&&_.U("web_shorts_paused_state_logging")&&_.VC(_.y5(),[this.reelPlayerPausedStateRendererVe])};
_.P.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
_.P.isShortPlayable=function(){if(_.U("kevlar_playable_short_killswitch"))return!0;var M;return(M=this.playerData)!=null&&M.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.P.setNormalPlaybackSpeed=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(M.getPlayer().getPlayerPromise(),2);z=R.yieldResult;J=z.getPlaybackRate();J!==1&&(M.storedPlaybackSpeed=J,z.setPlaybackRate(1));_.UI(R)})};
_.P.restorePlaybackSpeed=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1)return M.storedPlaybackSpeed===null?J.jumpTo(0):J.yield(M.getPlayer().getPlayerPromise(),3);z=J.yieldResult;z.setPlaybackRate(M.storedPlaybackSpeed);M.storedPlaybackSpeed=null;_.UI(J)})};
_.P.playerDataChanged=function(){var M=this,z,J,R,D,N,Z,B,O,X;return _.k(function(l){if(l.nextAddress==1){z=M.getPlayer();(J=M.intersectionObserver)==null||J.disconnect();if(M.playerData){if(((R=M.playerData.videoDetails)==null?void 0:R.videoId)!==((D=z.getPlayer())==null?void 0:D.getVideoData().video_id)){N={};if(Z=_.G(M.currentEndpoint,_.je))N.watch_endpoint=Z,Z.endTimeSeconds&&(N.end=Z.endTimeSeconds);z.loadVideoWithPlayerResponse(M.playerData,N)}}else return l.return();return M.player?l.jumpTo(2):
l.yield(z.getPlayerPromise(),3)}l.nextAddress!=2&&(M.player=l.yieldResult,M.JSC$22226_playerStateChangeListener=M.onPlayerStateChange.bind(M),M.player.addEventListener("onStateChange",M.JSC$22226_playerStateChangeListener),_.U("kevlar_client_enable_shorts_player_bootstrap")&&_.VL(),M.scrollToVideoThrottle.fire(M.index),M.movePlayerToVideo(M.index),_.no.addLowPriorityJob(function(){M.getShortsLoopSetting().then(function(e){var Q;(Q=M.player)==null||Q.setLoopVideo(e)})}),_.JU2.resolve(M.player),M.player.syncVolume(),
M.getPlayer().focusOnPlayer());
_.no.addLowPriorityJob(function(){M.observeShorts()},100);
B=M.player.getPlayerState(M.player.getPresentingPlayerType());B!==1||M.isPlayerStarted||_.rA().dispatch(Si(!0));M.updateBackNavContainerWidth();O=_.G(M.currentEndpoint,_.je);((X=O)==null?0:X.startTimeSeconds)&&M.player.seekTo(O.startTimeSeconds);if(M.JSC$22226_cinematicController||M.cinematicsInitializeJobId)return l.return();M.cinematicsInitializeJobId=_.no.addLowPriorityJob(function(){M.initCinematicController();M.cinematicsInitializeJobId=void 0});
_.UI(l)})};
_.P.onShortUndoDismiss=function(){var M=this,z=S8E().pop();z!==void 0&&(_.C4(this,function(){M.showCardWithIndex(z)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.P.onShortsDismiss=function(M){if(M=M.detail.reelDismissalActionRenderer)(M=_.G(M.onDismissalCompletionRenderer,_.ept))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:M}}}),this.scrollAndDismissCard()};
_.P.processReelNonVideoContentDismissalCommand=function(M){var z=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);M=_.G(M,Q3d);this.activeDimissalTimeout=setTimeout(function(){z.scrollAndDismissCard()},Number(M==null?void 0:M.delayMs))};
_.P.scrollAndDismissCard=function(){var M=this,z=this.index;S8E().push(z);_.C4(this,function(){var J=M.getPlayableNextIndex();J!==null&&(J=M.getActiveReelVideo(J),M.hideCardWithIndex(z),J==null||J.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"}))})};
_.P.hideCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!0};
_.P.showCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!1};
_.P.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.P.activeChanged=function(M){_.rA().dispatch(_.Nv({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:M}}));if(M)document.addEventListener("keydown",_.ou(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var z;(z=this.player)==null||z.sendAbandonmentPing()}var J;(J=this.player)==null||J.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ou(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.P.graftClientVisualElements=function(){if(this.data){var M=_.Gm();_.Mba(M,_.Of({response:this.reelWatchSequenceResponse}));_.ln(M,this.nextReelVe);_.ln(M,this.prevReelVe);_.U("kevlar_shorts_auto_advance")&&(_.ln(M,this.loopToggleOffVe),_.ln(M,this.loopToggleOnVe));_.ln(M,this.ambientModeToggleVe);_.VC(_.y5(),[this.nextReelVe,this.prevReelVe]);_.U("web_shorts_paused_state_logging")&&_.ln(M,this.reelPlayerPausedStateRendererVe)}};
_.P.graftNvcRenderer=function(){var M,z,J,R,D=this.index<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(z=M[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:z.command:(J=this.shortsProcessedSequence)==null?void 0:(R=J[this.index])==null?void 0:R.command;if(D&&this.isNonVideoContentCommand(D)){M=_.G(D,_.qj);var N,Z;(M=(N=_.G(M==null?void 0:M.renderer,_.Xc2))==null?void 0:(Z=N.loggingDirectives)==null?void 0:Z.trackingParams)&&_.Gm().graftServerVe(M)}};
_.P.setActiveIndex=function(){_.JF().resolve(_.pZ).setActiveIndex(this.index)};
_.P.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.P.lazyUpdateMiniplayerData=function(){var M=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.no.addLowPriorityJob(function(){M.updateMiniplayerData();M.updateMiniplayerDataJobId=void 0}))};
_.P.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.no.cancelJob(this.updateMiniplayerDataJobId)};
_.P.updateMiniplayerData=function(){var M,z,J,R=_.JF().resolve(_.q5),D={shortsData:this.getCurrentShort(),previousButtonDisabled:!((M=this.prevButtonData)==null||!M.isDisabled),nextButtonDisabled:!((z=this.nextButtonData)==null||!z.isDisabled),playabilityStatus:(J=this.playerData)==null?void 0:J.playabilityStatus};_.Vi(R,D)};
_.P.resetPlayerLocation=function(){var M=this.getPlayer();this.initialPlayerContainer&&M.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.P.movePlayerToVideo=function(M,z){var J=this;z=z===void 0?!0:z;var R=this.getActiveReelVideo(M),D=this.getPlayer();if(R){this.overlayContainer?R.appendChild(this.overlayContainer):(this.overlayContainer=_.SN(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,R.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||D.appendTo(this.overlayContainer.playerContainer,void 0,!0));var N;(N=this.player)==null||N.setSize(NaN,NaN);this.isActive||_.x4(_.no,function(){J.isActive=
!0});
D.style.visibility="visible";_.U("reels_web_disable_rtr_tick")||_.U("reels_web_use_pbs_first_shorts")&&M===0||_.hd("r_tr");this.currentPlayerIndex=M;R.appendChild(this.errorScreenContainer);var Z;(Z=this.JSC$22226_cinematicController)==null||_.Wut(Z)}else z?_.no.addLowPriorityJob(function(){J.movePlayerToVideo(J.index,!1)}):Math.random()<=_.NC("web_shorts_error_logging_threshold")&&_.hL(new _.xN("Trying to movePlayerToVideo with undefined container.",{firstAttempt:z,
index:M}))};
_.P.enableFormatFirst=function(M){return _.U("web_enable_format_first")||M.adsOverlay&&_.U("web_enable_format_first_ads_only")||M.reelPlayerOverlayRenderer&&_.U("web_enable_format_first_organic_only")};
_.P.getAspectRatio=function(M){if(M!=null&&M.thumbnail&&this.enableFormatFirst(M))return"--ytd-shorts-player-ratio: "+AZt(M.thumbnail)};
_.P.getBackgroundImage=function(M){if(M!=null&&M.thumbnail)return(M=_.Sh(M.thumbnail.thumbnails))?'background-image:url("'+M+'");':"background-color:black;"};
_.P.onPersistentPanelActiveChanged=function(){var M=this.getCurrentShort();if(M&&this.enableFormatFirst(M)&&(M==null?0:M.thumbnail)&&AZt(M.thumbnail)!==.5625){var z;(z=this.player)==null||z.setSize(NaN,NaN)}};
_.P.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.P.moveCinematicsToVideo=function(){var M=_.SN(this.hostElement).querySelector("ytd-reel-video-renderer");(M==null?0:M.cinematicContainer)&&M.cinematicContainer!==this.shortsCinematicContainer.parentElement&&M.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.P.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.P.updatePrevButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(M){var z;this.prevButtonData=M=Object.assign({},M,{accessibility:{label:_.e9("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:M.isDisabled||this.index===-(((z=this.shortsProcessedPrevSequence)==null?void 0:z.length)||0),tooltip:this.isUpArrowHidden?"":_.e9("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=M=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.P.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.P.updateNextButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(M){var z;this.nextButtonData=M=Object.assign({},M,{accessibility:{label:_.e9("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:M.isDisabled||this.index===((z=this.shortsProcessedSequence)==null?void 0:z.length),tooltip:_.e9("NEXT_VIDEO_LABEL")||""})}};
_.P.getPlayablePreviousIndex=function(){for(var M,z=this.index-1;z>=-(((M=this.prevShortsSequence)==null?void 0:M.length)||0);z--)if(!S8E().includes(z))return z;return null};
_.P.getIndexInSequence=function(M,z){return M.findIndex(function(J){var R;return((R=_.G(J.command,_.je))==null?void 0:R.videoId)===z})};
_.P.handlePrevButtonClick=function(M){var z=this,J,R;return _.k(function(D){J=z.getPlayablePreviousIndex();if(J===null)return D.return();z.gestureType=((R=M)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";J===0&&(z.hidePreviousButtonImmediately=!0);if(z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){z.transitionToVideoThrottle.fire(J)}),D.return();
z.scrollToVideoThrottle.fire(J);_.UI(D)})};
_.P.getPlayableNextIndex=function(){for(var M,z=this.index+1;z<(((M=this.shortsProcessedSequence)==null?void 0:M.length)||0);z++)if(!S8E().includes(z))return z;return null};
_.P.handleNextButtonClick=function(M,z){var J=this,R,D;return _.k(function(N){R=J.getPlayableNextIndex();if(R===null)return N.return();R===1&&(J.showPreviousButtonImmediately=!0);J.gestureType=((D=M)==null?void 0:D.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";z&&(J.gestureType=z);if(J.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){J.transitionToVideoThrottle.fire(R)}),N.return();
J.scrollToVideoThrottle.fire(R);_.UI(N)})};
_.P.handleReelNavigateCommand=function(M,z,J){(M=_.G(M,e0r))&&z&&M.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(J)};
_.P.loadVideo=function(M,z){z=z===void 0?!1:z;if(M!==this.currentPlayerIndex){_.rA().dispatch(Si(!1));if(this.isAd()&&!z){var J;(J=this.player)==null||J.notifyShortsAdSwipeEvent()}if((z=this.JSC$22226_cinematicController)!=null){var R;(R=z.currentCinematicEffect)==null||R.pause()}if((R=this.JSC$22226_cinematicController)!=null){var D;(D=R.currentCinematicEffect)==null||D.clear()}R=M>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(R));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var N,Z,B,O;D=M<0?(N=this.shortsProcessedPrevSequence)==null?void 0:(Z=N[this.shortsProcessedPrevSequence.length+M])==null?void 0:Z.command:(B=this.shortsProcessedSequence)==null?void 0:(O=B[M])==null?void 0:O.command;this.index=M;this.gestureType||(this.gestureType=R?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
D&&this.isVideoContentCommand(D)&&(this.ytComponentBehavior.resolveCommand(D,{form:{createScreenConfig:{clickedVisualElement:R?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(D&&this.isNonVideoContentCommand(D)){this.currentEndpoint=D;this.data=void 0;N=_.Gm();Z=_.G(D,_.qj);var X,l;(Z=(X=_.G(Z==null?void 0:Z.renderer,_.Xc2))==null?void 0:(l=X.screenLoggingData)==null?void 0:l.screenVeType)&&_.Xx(N,Z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(X=this.getActiveReelVideo(M))&&X.appendChild(this.overlayContainer)}var e,Q;if(((e=this.reelWatchSequenceResponse)==null?0:e.continuationEndpoint)&&((Q=this.reelWatchSequenceResponse)==null?0:Q.entries)&&M===this.reelWatchSequenceResponse.entries.length-1){var v,x;e={contentPlaybackContext:_.YV({},(x=_.G((v=this.currentEndpoint)==null?void 0:v.commandMetadata,_.X9))==null?void 0:x.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:e})}var m,y,H;((m=this.reelWatchSequenceResponse)==null?0:m.prevContinuationEndpoint)&&M===-(((y=this.reelWatchSequenceResponse)==null?void 0:(H=y.prevEntries)==null?void 0:H.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.P.setMiniplayerPreview=function(M){M=(M===void 0?0:M)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var z,J,R=_.JF().resolve(_.q5),D={shortsData:void 0,shortsPreviewThumbnail:M?(z=this.shortsProcessedSequence)==null?void 0:(J=z[M])==null?void 0:J.thumbnail:void 0};_.Vi(R,D)};
_.P.updateTitle=function(M){var z,J;M=(M==null?0:M.adSlots)?"":(J=M==null?void 0:(z=M.videoDetails)==null?void 0:z.title)!=null?J:"";_.Pv(this.hostElement,"yt-update-title",M)};
_.P.registerPanel=function(M){var z=_.JF().resolve(_.nx);if(z){M=_.S(M.engagementPanels||[]);for(var J=M.next();!J.done;J=M.next()){J=J.value;var R=this.getPanelContentIdentifier(J.engagementPanelSectionListRenderer),D=void 0,N=void 0;(N=(D=z).registerPanelContent)==null||N.call(D,R,J)}}};
_.P.getPanelIdentifier=function(M){var z;return(M==null?void 0:(z=M.identifier)==null?void 0:z.tag)||(M==null?void 0:M.panelIdentifier)||(M==null?void 0:M.targetId)};
_.P.getPanelContentIdentifier=function(M){var z;return(M==null?void 0:M.targetId)||(M==null?void 0:M.panelIdentifier)||(M==null?void 0:(z=M.identifier)==null?void 0:z.tag)};
_.P.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.rA().dispatch(Si(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.rA().dispatch(Zp3(!1));var M=_.JF().resolve(_.pZ);M.dismissedIndices=[];M.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.JF().resolve(_.q5).close(!0)};
_.P.processAppendReelWatchSequenceContinuationEntriesAction=function(M){var z=this,J;(J=this.intersectionObserver)==null||J.disconnect();M=M.appendReelWatchSequenceContinuationEntriesAction;if(M==null?0:M.entries){var R;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Yj(((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)||[]),_.Yj(M.entries)),continuationEndpoint:M.continuationEndpoint})}else if(M==null?0:M.prevEntries){var D;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Yj(((D=this.reelWatchSequenceResponse)==null?void 0:D.prevEntries)||[]),_.Yj(M.prevEntries)),prevContinuationEndpoint:M.prevContinuationEndpoint});_.no.addLowPriorityJob(function(){z.movePlayerToVideo(z.index);var N;(N=z.getActiveReelVideo(z.index))==null||N.scrollIntoView({block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.no.addLowPriorityJob(function(){z.observeShorts()},100)};
_.P.processWatchSequence=function(M){var z=this;return M.map(function(J){J=J.command;if(z.isVideoContentCommand(J)){var R=_.G(J,_.je);return{reelPlayerOverlayRenderer:_.G(R==null?void 0:R.overlay,_.lBg),thumbnail:R.thumbnail,command:J}}return z.isNonVideoContentCommand(J)?(R=_.G(J,_.qj),{reelNonVideoContentRenderer:_.G(R==null?void 0:R.renderer,_.Xc2),command:J}):{command:J}})};
_.P.calculateIntersectionObserverThreshold=function(){var M=_.SN(this.hostElement).querySelector("ytd-reel-video-renderer"),z=1;(M==null?0:M.offsetHeight)&&(M==null?0:M.offsetWidth)&&(z=Math.min(M.offsetHeight,this.shortsContainer.offsetHeight)/M.offsetHeight*(Math.min(M.offsetWidth,this.shortsContainer.offsetWidth)/M.offsetWidth));return Math.round(z*.6*10)/10};
_.P.isVideoContentCommand=function(M){_.JF().resolve(_.pZ);return!!_.G(M,_.je)};
_.P.isNonVideoContentCommand=function(M){_.JF().resolve(_.pZ);return!!_.G(M,_.qj)};
_.P.initCinematicController=function(){var M=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22226_cinematicController=new _.PF(this.shortsCinematicContainer,this.player);var z,J=_.G((z=this.data)==null?void 0:z.background,_.gY);_.qll(this.JSC$22226_cinematicController,J);_.uVl(this.JSC$22226_cinematicController,fwu(J));_.$rw(this.JSC$22226_cinematicController);_.no.addLowPriorityJob(function(){M.moveCinematicsToVideo()})}};
_.P.handleMiniplayerNavigateShorts=function(M){M==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():M==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.P.handleSignalActionToggleShortsPictureInPicture=function(){if(_.JF().resolve(_.q5).pictureInPictureSupported()){var M=_.JF().resolve(_.pZ);if(_.U("web_shorts_pip")){var z=_.JF().resolve(_.q5);M.isShortsPipActive()?z.deactivate():z.isMiniplayerActive()||(_.x9().shortsPipActivation=!0,_.yAs(z))}}else(M=this.player)==null||M.togglePictureInPicture()};
_.rX.Object.defineProperties(ei.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.prevEntries)return this.processWatchSequence([].concat(_.Yj(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var M=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!M)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var z=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Yj(this.prevShortsSequence.slice(0,z)),[M],_.Yj(this.prevShortsSequence.slice(z+
1)))}z=this.index+this.shortsProcessedPrevSequence.length;M.thumbnail=this.shortsProcessedPrevSequence[z].thumbnail;return[].concat(_.Yj(this.shortsProcessedPrevSequence.slice(0,z)),[M],_.Yj(this.shortsProcessedPrevSequence.slice(z+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var M=this.getCurrentShort();if(!M||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[M];if(M==null||!M.reelNonVideoContentRenderer){var z=this.getIndexInSequence(this.shortsSequence,_.G(this.currentEndpoint,_.je).videoId);if(this.index===0&&z!==-1)return this.currentPlayerIndex=this.index=z,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Yj(this.shortsSequence.slice(0,this.index)),[M],_.Yj(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){M.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var J,R,D,N;z=((R=_.G((J=this.shortsProcessedSequence[0])==null?void 0:J.command,_.je))==null?void 0:R.videoId)===((N=_.G((D=this.shortsSequence[0])==null?void 0:D.command,_.je))==null?void 0:N.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Yj(this.shortsProcessedSequence.slice(0,
this.index)),[M],_.Yj(this.shortsSequence.slice(z)))}return[M].concat(_.Yj(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var M=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;M&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(M)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var M,z;return this.index===((M=this.reelWatchSequenceResponse)==null?void 0:(z=M.entries)==null?void 0:z.length)}var J;return!((J=this.reelWatchSequenceResponse)==null?0:J.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var M;(M=this.delayedActiveIndexUpdateDebouncer)==null||M.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return this.isShortPlayable()||((z=_.G((M=this.data)==null?void 0:M.watchStatus,_.jRu))==null?void 0:(J=z.style)==null?void 0:J.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var M=this,z=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),J;if((this.data||z)&&(((J=this.data)==null?0:J.engagementPanels)||this.isAd()||z)){z=!1;this.activePanel="shorts-comments-panel";var R;J=_.S(((R=this.data)==null?void 0:R.engagementPanels)||[]);for(R=J.next();!R.done;R=J.next())if(this.getPanelIdentifier(R.value.engagementPanelSectionListRenderer)===this.activePanel){z=!0;break}if(this.isPersistentPanelActive){var D=
_.JF().resolve(_.nx);_.x4(_.no,function(){D.showPanel(M.activePanel,void 0,void 0,void 0,null)},100)}var N;
R=[].concat(_.Yj(Object.values(((N=this.data)==null?void 0:N.engagementPanels)||{})));if(_.U("enable_preview_panel_for_shorts_search_suggested_action")){var Z,B,O,X,l;((X=_.G((Z=this.data)==null?void 0:(B=Z.overlay)==null?void 0:(O=B.reelPlayerOverlayRenderer)==null?void 0:O.metapanel,_.oBg))==null?void 0:(l=X.metadataItems)==null?void 0:l.find(function(e){var Q,v;return((Q=_.G(e,voZ))==null?void 0:(v=Q.icon)==null?void 0:v.iconType)==="SEARCH"}))!==void 0&&R.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}N=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return N===void 0&&Z===void 0||(N==null?0:N.isDisabled)||(Z==null?void 0:Z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!z?(z=R==null?void 0:R.findIndex(function(e){var Q,
v;return((Q=e.engagementPanelSectionListRenderer)==null?void 0:(v=Q.identifier)==null?void 0:v.tag)==="shorts-comments-panel"}),z===-1||z===void 0||R!=null&&R.splice(z,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.e9("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.e9("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:_.e9("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.e9("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(_.Yj(Object.values(R||
{})))):R}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.shortsProcessedSequence)==null?void 0:M[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J,R;if((z=this.playerData)==null?0:(J=z.playabilityStatus)==null?0:(R=J.errorScreen)==null?0:R.playerInterstitialRenderer)return _.no.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.playerData.playabilityStatus.errorScreen;
var D,N;return((D=this.data)==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((N=this.data)==null?0:N.watchStatus)&&_.G(this.data.watchStatus,_.Q_V)?(_.no.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.rX.Object.defineProperties(ei,{template:{configurable:!0,enumerable:!0,get:function(){if(wY4===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);wY4=M}M=wY4;return M}}});
ei.prototype.onNextButtonDataChange=ei.prototype.onNextButtonDataChange;ei.prototype.onPrevButtonDataChange=ei.prototype.onPrevButtonDataChange;ei.prototype.onPersistentPanelActiveChanged=ei.prototype.onPersistentPanelActiveChanged;ei.prototype.lazyUpdateMiniplayerData=ei.prototype.lazyUpdateMiniplayerData;ei.prototype.onShortsPipActiveChanged=ei.prototype.onShortsPipActiveChanged;ei.prototype.setActiveIndex=ei.prototype.setActiveIndex;ei.prototype.graftNvcRenderer=ei.prototype.graftNvcRenderer;
ei.prototype.graftClientVisualElements=ei.prototype.graftClientVisualElements;ei.prototype.onActiveChanged=ei.prototype.onActiveChanged;ei.prototype.onShortsDismiss=ei.prototype.onShortsDismiss;ei.prototype.onShortUndoDismiss=ei.prototype.onShortUndoDismiss;ei.prototype.playerDataChanged=ei.prototype.playerDataChanged;ei.prototype.afterPlayerStarted=ei.prototype.afterPlayerStarted;ei.prototype.unhideCurrentOverlay=ei.prototype.unhideCurrentOverlay;ei.prototype.onServiceRequestCompleted=ei.prototype.onServiceRequestCompleted;
ei.prototype.engagementPanelsChanged=ei.prototype.engagementPanelsChanged;ei.prototype.onFullscreenChange=ei.prototype.onFullscreenChange;ei.prototype.onResize=ei.prototype.onResize;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.yJ.YtPageBehavior),_.W("design:type",Object)],ei.prototype,"ytPageBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ei.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.Hw),_.W("design:type",Object)],ei.prototype,"ironResizableBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],ei.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],ei.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],ei.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"playerData",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"reelWatchSequenceResponse",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"cachedReelWatchSequenceResponse",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"cachedSequenceParams",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"cachedSequenceProvider",void 0);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"currentEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"nextButtonData",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"prevButtonData",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"isPreviousPageShorts",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"index",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"delayedActiveIndex",void 0);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"playablePreviousIndex",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"player",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"isPlayerPaused",void 0);_.u([_.Y({selector:Ctu}),_.W("design:type",Object)],ei.prototype,"isPlayerStarted",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"intersectionObserver",void 0);_.u([_.Y(),_.W("design:type",Number)],ei.prototype,"cinematicsInitializeJobId",void 0);
_.u([_.Y(),_.W("design:type",Number)],ei.prototype,"updateMiniplayerDataJobId",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"fitToVisibleBounds",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"pageSubtype",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],ei.prototype,"enablePreviousContinuation",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"shortsPipEnabled",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"isDark",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"shortsViewTransitions",void 0);_.u([_.Y({selector:_.k8,reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"isFullscreen",void 0);_.u([_.Y({selector:_.BX,reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"isShortsPipActive",void 0);
_.u([_.Qc("#shorts-inner-container"),_.W("design:type",HTMLElement)],ei.prototype,"shortsInnerContainer",void 0);_.u([_.Qc("#back-nav-button ytd-button-renderer"),_.W("design:type",_.SC)],ei.prototype,"backNavButton",void 0);_.u([_.Qc("#shorts-container"),_.W("design:type",HTMLElement)],ei.prototype,"shortsContainer",void 0);_.u([_.XD("error-screen"),_.W("design:type",HTMLElement)],ei.prototype,"errorScreenContainer",void 0);
_.u([_.XD("player"),_.W("design:type",Object)],ei.prototype,"playerElement",void 0);_.u([_.XD("shorts-cinematic-container"),_.W("design:type",HTMLElement)],ei.prototype,"shortsCinematicContainer",void 0);_.u([_.XD("initial-player-container"),_.W("design:type",HTMLElement)],ei.prototype,"initialPlayerContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"buttonOverride",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"anchoredPanelActive",void 0);
_.u([_.Y(),_.W("design:type",String)],ei.prototype,"activePanel",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"isActive",void 0);_.u([_.Y({selector:i5l,reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"smallScreenPersistentPanel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"isPersistentPanelActive",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"smallScreenSqueezeBack",void 0);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"enableScrollIntoViewCenter",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"formatFirst",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"enableFlexibleOverlay",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ei.prototype,"useAspectRatio",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"panelContainer",void 0);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"overlayContainer",void 0);_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"isShortsInitialized",void 0);_.u([_.F("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"prevShortsSequence",null);_.u([_.F("data","prevShortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"shortsProcessedPrevSequence",null);
_.u([_.F("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"shortsSequence",null);_.u([_.F("data","shortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"shortsProcessedSequence",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ei.prototype,"isUpArrowHidden",null);_.u([_.Y({reflectToAttribute:!0}),_.F("reelWatchSequenceResponse","index","endOfNextContinuation"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ei.prototype,"isDownArrowHidden",null);
_.u([_.Y(),_.F("index"),_.W("design:type",Number),_.W("design:paramtypes",[])],ei.prototype,"activeIndex",null);_.u([_.F("isShortPlayable","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ei.prototype,"shouldRenderOfflineContent",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onResize",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"anchoredEngagementPanels",null);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"watchWhileEngagementPanels",void 0);_.u([_.la("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onFullscreenChange",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"engagementPanelsChanged",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],ei.prototype,"onServiceRequestCompleted",null);_.u([_.F("data","shortsSequence","index"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"activeReel",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"unhideCurrentOverlay",null);
_.u([_.la("isPlayerStarted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"afterPlayerStarted",null);_.u([_.F("playerData","reelWatchSequenceResponse","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],ei.prototype,"errorScreen",null);_.u([_.F("errorScreen"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ei.prototype,"hasError",null);
_.u([_.la("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ei.prototype,"playerDataChanged",null);_.u([_.Xw("yt-dismissible-item-undo-feedback"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onShortUndoDismiss",null);_.u([_.Xw("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],ei.prototype,"onShortsDismiss",null);
_.u([_.wH("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onActiveChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"graftClientVisualElements",null);_.u([_.la("currentPlayerIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"graftNvcRenderer",null);
_.u([_.la("index"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"setActiveIndex",null);_.u([_.la("isShortsPipActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onShortsPipActiveChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"lazyUpdateMiniplayerData",null);
_.u([_.Y(),_.W("design:type",Object)],ei.prototype,"onOverlayDensityChanged",void 0);_.u([_.la("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onPersistentPanelActiveChanged",null);_.u([_.la("index","data","isUpArrowHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onPrevButtonDataChange",null);
_.u([_.la("index","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ei.prototype,"onNextButtonDataChange",null);_.u([_.c({is:"ytd-shorts"})],ei);_.oQ.registerService(_.VL0,ei);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("JzFVk");
var qYd=function(M){return _.T("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},uru(M.data.ctaButton,{buttonViewModel:{}}),_.T(_.m3,{text:M.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Wkw;var aHm;var Hx=function(){return _.g.apply(this,arguments)||this};
_.w(Hx,_.g);Hx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Hx.prototype.computeBlueBottomLink=function(M){return M};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Hx.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon_(data.bottomIcon)"}),_.W("design:type",String)],Hx.prototype,"bottomIcon",void 0);
_.u([_.Y({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Hx.prototype,"enableBlueBottomLink",void 0);_.u([_.c({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Hx);
_.d(Hx,"ytd-web-answer-renderer",function(){if(aHm!==void 0)return aHm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return aHm=M},{mode:_.B5("kevlar_poly_si_batch_j035")?1:2});var Vjw;var cx=function(){var M=_.g.apply(this,arguments)||this;M.hasChipBar=!1;return M};
_.w(cx,_.g);cx.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}}};
cx.prototype.computeHasChipBar=function(M){return!(M==null||!M.chipBar)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cx.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.W("design:type",Object)],cx.prototype,"hasChipBar",void 0);_.u([_.c({is:"ytd-search-header-renderer",disableElementRegistration:!0})],cx);
_.d(cx,"ytd-search-header-renderer",function(){if(Vjw!==void 0)return Vjw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Vjw=M},{mode:1});var EAv;var da=function(){return _.g.apply(this,arguments)||this};
_.w(da,_.g);da.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],da.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-page-continuation"})],da);
_.d(da,"ytd-page-continuation",function(){if(EAv!==void 0)return EAv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return EAv=M},{mode:1});var fHc;var Lkv;var AWl;var Ki=function(){return _.g.apply(this,arguments)||this};
_.w(Ki,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ki.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Ki);
_.d(Ki,"ytd-watch-card-one-vs-one-event",function(){if(AWl!==void 0)return AWl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AWl=M},{mode:1});var $P=function(){return _.g.apply(this,arguments)||this};
_.w($P,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$P.prototype,"data",void 0);_.u([_.c({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],$P);
_.d($P,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Lkv!==void 0)return Lkv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Lkv=M},{mode:1});var iVG;var uc=function(){return _.g.apply(this,arguments)||this};
_.w(uc,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uc.prototype,"data",void 0);_.u([_.c({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],uc);
_.d(uc,"ytd-banner-and-box-hero-image-renderer",function(){if(iVG!==void 0)return iVG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return iVG=M},{mode:1});var Cql;var qM=function(){var M=_.g.apply(this,arguments)||this;M.modern=_.U("web_modern_buttons");return M};
_.w(qM,_.g);qM.prototype.computeIcon=function(){var M,z,J=(M=this.data)==null?void 0:(z=M.icon)==null?void 0:z.iconType;if(J)return _.oE(J)};
qM.prototype.computeButtonShape=function(){var M;return{buttonText:_.CD((M=this.data)==null?void 0:M.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.rX.Object.defineProperties(qM.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"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qM.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qM.prototype,"modern",void 0);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.F("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],qM.prototype,"buttonColor",null);
_.u([_.c({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],qM);
_.d(qM,"ytd-call-to-action-button-renderer",function(){if(Cql!==void 0)return Cql;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Cql=M},{mode:1});var bVN;var Wx=function(){return _.g.apply(this,arguments)||this};
_.w(Wx,_.g);Wx.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.SN(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.PS(this.data.leftThumbnail.thumbnails,216)+")")};
Wx.prototype.onLeftThumbnailChanged=Wx.prototype.onLeftThumbnailChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Wx.prototype,"data",void 0);_.u([_.la("data.leftThumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Wx.prototype,"onLeftThumbnailChanged",null);_.u([_.c({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Wx);
_.d(Wx,"ytd-collage-hero-image-renderer",function(){if(bVN!==void 0)return bVN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return bVN=M},{mode:1});var rWd;var aU=function(){return _.g.apply(this,arguments)||this};
_.w(aU,_.g);aU.prototype.computeStyle=function(M){return M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],aU.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],aU.prototype,"componentStyle",void 0);_.u([_.c({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],aU);
_.d(aU,"ytd-single-hero-image-renderer",function(){if(rWd!==void 0)return rWd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return rWd=M},{mode:1});var MQ5;var VK=function(){return _.g.apply(this,arguments)||this};
_.w(VK,_.g);_.P=VK.prototype;
_.P.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.U("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.P.computeSubtitle=function(M){if(this.data){var z;if(this.data.upcomingEventData){M=_.CD(M.subtitle);var J=Number(this.data.upcomingEventData.startTime);isNaN(J)||(z=_.id(_.h_(M,J)))}else z=M.subtitle;return z}};
_.P.onHeroTap=function(M){M.preventDefault();var z=this.data&&this.data.navigationEndpoint;!z||!_.bP(_.CX(M),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.bP(_.CX(M),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.U("kevlar_watchcard_hero_video_renderer_killswitch")?_.Pv(this.hostElement,"yt-navigate",{navigationEndpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.P.computeHeroTabIndex=function(M){return M&&M.simpleText?-1:0};
_.P.computeHeroRole=function(M){return M&&M.simpleText?"":"link"};
_.P.computeIsReminderButtonPresent=function(M){return!(!M||!M.reminderButton)};
_.P.computeHideBottomItems=function(M){return!(this.computeIsReminderButtonPresent(M)||M.subtitle)};
_.P.dataChanged=function(){var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;((z=_.G(M==null?void 0:M.commandMetadata,_.hV))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M)};
VK.prototype.dataChanged=VK.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],VK.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],VK.prototype,"data",void 0);
_.u([_.Y({computed:"computeSubtitle(data)"}),_.W("design:type",String)],VK.prototype,"subtitle",void 0);_.u([_.Y({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],VK.prototype,"isReminderButtonPresent",void 0);_.u([_.Y({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],VK.prototype,"hideBottomItems",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VK.prototype,"dataChanged",null);_.u([_.c({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],VK);
_.d(VK,"ytd-watch-card-hero-video-renderer",function(){if(MQ5!==void 0)return MQ5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return MQ5=M},{mode:1});var zpi;var Ex=function(){return _.g.apply(this,arguments)||this};
_.w(Ex,_.g);_.P=Ex.prototype;_.P.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.computeTitleBadges=function(M){return M?[M]:[]};
_.P.computeHeaderStyle=function(M){return M?M.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.P.computeAvatarAriaLabel=function(M){if(M){var z,J,R,D;return(D=(z=M.avatar)==null?void 0:(J=z.accessibility)==null?void 0:(R=J.accessibilityData)==null?void 0:R.label)!=null?D:_.CD(M==null?void 0:M.title)}};
_.P.computeAvatarHeight=function(M){return M==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.P.computeBadgeRowClass=function(M){return(M==null?0:M[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ex.prototype,"data",void 0);_.u([_.Y({computed:"computeTitleBadges(data.titleBadge)"}),_.W("design:type",Array)],Ex.prototype,"titleBadges",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.W("design:type",String)],Ex.prototype,"headerStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.W("design:type",String)],Ex.prototype,"badgeRowClass",void 0);_.u([_.c({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Ex);
_.d(Ex,"ytd-watch-card-rich-header-renderer",function(){if(zpi!==void 0)return zpi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return zpi=M},{mode:1});var JZl;var Rpm;var fi=function(){return _.g.apply(this,arguments)||this};
_.w(fi,_.g);fi.prototype.onMetadataTap=function(M){var z=this.data&&this.data.navigationEndpoint;z&&!_.bP(_.CX(M),this.hostElement,["A".toString()])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:z})};
_.rX.Object.defineProperties(fi.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M;if(this.data.upcomingEventData){var z=_.CD(this.data.subtitle),J=Number(this.data.upcomingEventData.startTime);isNaN(J)||(M=_.id(_.h_(z,J)))}else M=this.data.subtitle;return M}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fi.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data.style"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fi.prototype,"isCondensed",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],fi.prototype,"subtitle",null);
_.u([_.c({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],fi);
_.d(fi,"ytd-watch-card-compact-video-renderer",function(){if(Rpm!==void 0)return Rpm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Rpm=M},{mode:1});var Drt;var Li=function(){return _.g.apply(this,arguments)||this};
_.w(Li,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Li.prototype,"data",void 0);_.u([_.c({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Li);
_.d(Li,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Drt!==void 0)return Drt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Drt=M},{mode:1});var AH=function(){return _.g.apply(this,arguments)||this};
_.w(AH,_.g);AH.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}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],AH.prototype,"ytRendererStamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],AH.prototype,"data",void 0);_.u([_.c({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],AH);
_.d(AH,"ytd-vertical-watch-card-list-renderer",function(){if(JZl!==void 0)return JZl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return JZl=M},{mode:1});var NWl;var ic=function(){var M=_.g.apply(this,arguments)||this;M.ariaExpanded="false";return M};
_.w(ic,_.g);_.P=ic.prototype;_.P.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.P.dataChanged=function(){var M;this.currentSeasonIndex=((M=this.data)==null?void 0:M.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.P.computeEpisodesInfo=function(M,z,J){if(M!==void 0&&z.length===M.length)return M[J]};
_.P.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.P.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.P.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.P.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.P.getUppercaseSimpleString=function(M){return this.ytRendererBehavior.getSimpleString(M).toUpperCase()};
_.P.updateCurrentSeasonIndexFromBinding=function(M){this.currentSeasonIndex=M.detail.value};
ic.prototype.onIronOverlayClosed=ic.prototype.onIronOverlayClosed;ic.prototype.currentSeasonIndexChanged=ic.prototype.currentSeasonIndexChanged;ic.prototype.dataChanged=ic.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ic.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",String)],ic.prototype,"label",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],ic.prototype,"currentSeasonIndex",void 0);_.u([_.Y({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.W("design:type",Object)],ic.prototype,"episodesInfo",void 0);_.u([_.Y({value:"false"}),_.W("design:type",Object)],ic.prototype,"ariaExpanded",void 0);_.u([_.Qc("#lists"),_.W("design:type",Object)],ic.prototype,"lists",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ic.prototype,"dataChanged",null);_.u([_.wH("currentSeasonIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ic.prototype,"currentSeasonIndexChanged",null);_.u([_.Xw("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ic.prototype,"onIronOverlayClosed",null);
_.u([_.c({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],ic);
_.d(ic,"ytd-watch-card-section-dropdown-renderer",function(){if(NWl!==void 0)return NWl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return NWl=M},{mode:1});var Ptd;var Ci=function(){var M=_.g.apply(this,arguments)||this;M.isSearch=!1;return M};
_.w(Ci,_.g);Ci.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}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ci.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Ci.prototype,"isSearch",void 0);_.u([_.c({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Ci);
_.d(Ci,"ytd-watch-card-section-sequence-renderer",function(){if(Ptd!==void 0)return Ptd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return Ptd=M},{mode:1});var uru=_.gZ({buttonViewModel:_.lT});_.RO(qYd);var Slw=_.Mf(function(M){return _.T("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.T(_.t_,{data:function(){return M.data().ctaButton}},{buttonViewModel:_.lT}),_.T(_.m3,{text:function(){return M.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Fj"),Z5v=_.U("web_enable_sink_ytd_button_banner_view_model_ks")?qYd:Slw,k65=_.U("web_enable_sink_ytd_button_banner_view_model_ks")?_.lP(qYd):Slw;
Slw.idomCompat=!0;_.U("web_enable_sink_ytd_button_banner_view_model_ks")?_.Il(Z5v,"ytd-button-banner-view-model",{propNames:["data"]}):_.N7(k65,"ytd-button-banner-view-model",{props:{data:_.zn}});var bc=function(){var M=_.g.apply(this,arguments)||this;M.isSearch=!1;return M};
_.w(bc,_.g);
bc.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"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bc.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],bc.prototype,"rounded",void 0);_.u([_.Y(),_.W("design:type",Object)],bc.prototype,"isSearch",void 0);
_.u([_.c({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],bc);
_.d(bc,"ytd-universal-watch-card-renderer",function(){if(fHc!==void 0)return fHc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fHc=M},{mode:1});var BWu;_.N7(_.Mf(function(M){var z=M.data;var J;M=!((J=_.JF().resolve(_.zw(_.Ah)))==null||!J());J={};return _.T("overview-message-view-model",{class:_.Qe("ytwOverviewMessageViewModelHost",(J.ytwOverviewMessageViewModelDarkBackground=M,J.ytwOverviewMessageViewModelLightBackground=!M,J))},_.T(_.I,{cond:function(){return z().primaryImage},
then:function(R){return _.T(_.rv,{data:R,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.T(_.I,{cond:function(){return z().primaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.T(_.m3,{text:function(){return z().primaryText}}))}}),_.T(_.I,{cond:function(){return z().secondaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.T(_.m3,{text:function(){return z().secondaryText}}))}}))},"Gj"),"overview-message-view-model",{props:{data:_.zn}});_.N7(_.pOB,"ytd-overview-answer-view-model",{props:{data:_.zn}});var ra=function(){return _.g.apply(this,arguments)||this};
_.w(ra,_.g);ra.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"}}}};
ra.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],ra.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ra.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ra.prototype,"isSearch",void 0);
_.u([_.c({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],ra);
_.d(ra,"ytd-secondary-search-container-renderer",function(){if(BWu!==void 0)return BWu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return BWu=M},{mode:1});var O5w;var MX=function(){var M=_.g.apply(this,arguments)||this;M.renderSecondarySearchContainer=!1;M.isSearch=!1;return M};
_.w(MX,_.g);_.P=MX.prototype;_.P.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.P.created=function(){var M=this;this.boundStampSecondarySearchContainerIfFits=function(){M.stampSecondarySearchContainerIfFits()};
_.yU("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.P.computeIsSearchFrictionPage=function(M){var z,J,R,D,N;M=M==null?void 0:(z=M.primaryContents)==null?void 0:(J=z.sectionListRenderer)==null?void 0:(R=J.contents)==null?void 0:(D=R[0])==null?void 0:(N=D.itemSectionRenderer)==null?void 0:N.contents;if(!M)return!1;z=_.S(M);for(J=z.next();!J.done;J=z.next())if(R=void 0,(R=J.value)==null?0:R.searchFrictionViewModel)return!0;return!1};
_.P.computeShowSecondaryColumn=function(M,z){return!!(z&&z.secondaryContents&&M)};
_.P.activeChanged=function(){var M=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ou(this,this.debounceStampSecondarySearchContainerIfFits)),_.au(function(){M.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ou(this,this.debounceStampSecondarySearchContainerIfFits))};
_.P.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.P.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.P.debounceStampSecondarySearchContainerIfFits=function(){_.Vc(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.P.onRetrieveLocation=function(M,z){z.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);M.stopPropagation()};
_.P.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
MX.prototype.dataChanged=MX.prototype.dataChanged;MX.prototype.onRetrieveLocation=MX.prototype.onRetrieveLocation;MX.prototype.persistentGuideChanged=MX.prototype.persistentGuideChanged;MX.prototype.activeChanged=MX.prototype.activeChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],MX.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],MX.prototype,"ironResizableBehavior",void 0);_.u([_.Y(),_.W("design:type",Boolean)],MX.prototype,"active",void 0);_.u([_.Y(),_.W("design:type",Object)],MX.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],MX.prototype,"useBiggerThumbs",void 0);_.u([_.Y({reflectToAttribute:!0,value:function(){return _.Sz("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],MX.prototype,"biggerThumbsStyle",void 0);_.u([_.Y(),_.W("design:type",Object)],MX.prototype,"renderSecondarySearchContainer",void 0);_.u([_.Y({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.W("design:type",Boolean)],MX.prototype,"showSecondaryColumn",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.W("design:type",Boolean)],MX.prototype,"isSearchFrictionPage",void 0);
_.u([_.Y(),_.W("design:type",Object)],MX.prototype,"isSearch",void 0);_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MX.prototype,"activeChanged",null);_.u([_.la("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MX.prototype,"persistentGuideChanged",null);
_.u([_.Xw("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],MX.prototype,"onRetrieveLocation",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MX.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],MX);
_.d(MX,"ytd-two-column-search-results-renderer",function(){if(O5w!==void 0)return O5w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return O5w=M},{mode:1});var z2=function(){var M=_.g.apply(this,arguments)||this;M.hasSearchHeader=!1;M.hasSecondaryContent=!1;M.hasBiggerThumbs=_.U("enable_desktop_search_bigger_thumbs");M.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return M};
_.w(z2,_.g);_.P=z2.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.r1(["aa","eocs"])}}};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.loadPage_=function(M){this.initCsi();M&&(this.data=M,_.yU("REFINEMENTS_TUPLE",["FromSearchResponse",M.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ao(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.P.initCsi=function(){_.hf("results",["ol","cpt"])};
_.P.updateTitle=function(){var M=_.KW(window.location.href,"q");M||(M=_.KW(window.location.href,"search_query"));_.Pv(this.hostElement,"yt-update-title",M||"")};
_.P.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.P.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.U("web_srp_data_changed_terminate_imp_killswitch")||_.S9(this.hostElement,"yt-terminate-video-preview-action")};
_.P.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.P.computeHasSearchHeader=function(M){var z;M=M==null?void 0:(z=M.header)==null?void 0:z.searchHeaderRenderer;return!!M&&(!!M.searchFilterButton||!!M.chipBar)};
_.P.computeHasSecondaryContent=function(M){var z,J;return!!(M==null?0:(z=M.contents)==null?0:(J=z.twoColumnSearchResultsRenderer)==null?0:J.secondaryContents)};
_.rX.Object.defineProperties(z2,{template:{configurable:!0,enumerable:!0,get:function(){if(Wkw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);Wkw=M}M=Wkw;return M}}});
z2.prototype.onReloadContinuationFinish=z2.prototype.onReloadContinuationFinish;z2.prototype.dataChanged=z2.prototype.dataChanged;_.u([_.p(_.yJ.YtPageBehavior),_.W("design:type",Object)],z2.prototype,"ytPageBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],z2.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],z2.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],z2.prototype,"data",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],z2.prototype,"monitorScroll",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],z2.prototype,"hasSearchHeader",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],z2.prototype,"hasSecondaryContent",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],z2.prototype,"hasBiggerThumbs",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z2.prototype,"dataChanged",null);
_.u([_.Xw("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z2.prototype,"onReloadContinuationFinish",null);_.u([_.c({is:"ytd-search"})],z2);_.oQ.registerService(_.alG,z2);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("h8y2qb");
var MiN=function(M){if(M=_.oHY(M)){var z;(z=M.sources)!=null&&z[0]?(z=_.l_Y(M),z=z<1?"VERTICAL":z>1?"HORIZONTAL":"SQUARE"):z=void 0;return z}},HO=function(M){_.F$.call(this,"upload");
this.opts.query=M},Jcc=function(M,z){return _.T(z7m,{data:M,
onYtNavigate:z})},R7m=function(M,z){return _.Is(M.entities,"pageHeaderEntity",z)},NTw=function(M,z){return M.map(function(J){if(J.tabRenderer)return DXG(J.tabRenderer);
if(J.expandableTabRenderer&&z){var R=J.expandableTabRenderer;return{customTabRenderable:function(){return z(R)}}}return{}})},DXG=function(M){return{identifier:M.tabIdentifier,
aTagConfig:_.qf({innertubeCommand:M.endpoint,forceNewState:!0}),title:M.title,selected:M.selected,disabled:M.unselectable,icon:M.icon}},Phu=function(M){return _.Nv({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:M})},SgG=function(M){if(!_.DU(document,"gtm-noscript")){var z=document.createElement("noscript");
z.id="gtm-noscript";z.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+M+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(z)}};_.ZP(HO,_.F$);HO.prototype.JSC$10040_setLabel=function(M){HO.superClass_.JSC$10040_setLabel.call(this,M);return this};
HO.prototype.addUploadMetadata=function(M,z){HO.superClass_.addUploadMetadata.call(this,M,z);return this};var Ztt=function(M){if(M!=="youtubebanner"&&M!=="youtube-channel-banner")throw Error("no");HO.call(this,M)};
_.w(Ztt,HO);Ztt.prototype.JSC$10040_setLabel=function(M){HO.prototype.JSC$10040_setLabel.call(this,M);return this};
Ztt.prototype.addUploadMetadata=function(M,z){HO.prototype.addUploadMetadata.call(this,M,z);return this};var k25=[_.Hw,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(M){_.pu(M).path[0]!==this&&(this.resetLayout(),M.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var M=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Iq(this._layoutDebouncer,_.mK,M);_.oq(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var M=this;requestAnimationFrame(function(){M.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var BTw=[_.lUg,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(M,z){var J=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[M];if(!J)throw new ReferenceError(this._getUndefinedMsg(M));M=this._boundEffect(J,z||{});M.setUp();return M},
_effectsChanged:function(M,z,J){this._tearDownEffects();M&&J&&(M.split(" ").forEach(function(R){var D;R!==""&&((D=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R])?this._effects.push(this._boundEffect(D,z[R])):console.warn(this._getUndefinedMsg(R)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(M,z){z=z||{};var J=parseFloat(z.startsAt||0),R=parseFloat(z.endsAt||1),D=R-J,N=function(){};
R=J===0&&R===1?M.run:function(Z,B){M.run.call(this,Math.max(0,(Z-J)/D),B)};
return{setUp:M.setUp?M.setUp.bind(this,z):N,run:M.run?R.bind(this):N,tearDown:M.tearDown?M.tearDown.bind(this):N}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(M){M.setUp()!==!1&&this._effectsRunFn.push(M.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(M){M.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(M,z){this._effectsRunFn&&this._effectsRunFn.forEach(function(J){J(M,z)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var M=this._clampedScrollTop;this._updateScrollState(M);this.threshold>0&&this._setThresholdTriggered(M>=this.threshold)}},
_getDOMRef:function(M){console.warn("_getDOMRef","`"+M+"` is undefined")},
_getUndefinedMsg:function(M){return"Scroll effect `"+M+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+M+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("oo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(M){var z={};M=parseFloat(M.scalar);z.background=this._getDOMRef("background");z.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");z.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");z.deltaBg=z.backgroundFrontLayer.offsetHeight-z.background.offsetHeight;z.deltaBg===0?(isNaN(M)&&(M=.8),z.deltaBg=(this._dHeight||0)*M):(isNaN(M)&&(M=
1),z.deltaBg*=M);this._fxParallaxBackground=z},
run:function(M){var z=this._fxParallaxBackground;this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,M)+"px, 0px)",z.backgroundFrontLayer);z.backgroundRearLayer&&this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,M)+"px, 0px)",z.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var OtN;var TTl;var IxG=function(){};
_.P=IxG.prototype;_.P._scrollTargetChanged=function(){};
_.P.scroll=function(){};
_.P._isValidScrollTarget=function(){};
_.P._toggleScrollListener=function(){};
_.P.toggleScrollListener=function(){};
_.P.createEffect=function(){};
_.P._effectsChanged=function(){};
_.P._layoutIfDirty=function(){};
_.P._boundEffect=function(){};
_.P._setUpEffect=function(){};
_.P._tearDownEffects=function(){};
_.P._runEffects=function(){};
_.P._scrollHandler=function(){};
_.P._scrollStateChanged=function(){};
_.P._getUndefinedMsg=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P._appResetLayoutHandler=function(){};
_.P.resetLayout=function(){};
_.P._notifyLayoutChanged=function(){};
_.P._notifyDescendantResize=function(){};
_.P._setThresholdTriggered=function(){};
IxG=_.sV({_template:function(){if(TTl!==void 0)return TTl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;OtN===void 0&&(OtN=document.createElement("template"));var R=OtN;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return TTl=M},
is:"tp-yt-app-header",behaviors:[BTw,k25],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var M=_.pu(this.$.slot).getDistributedNodes(),z=0,J;J=M[z];z++)if(J.nodeType===Node.ELEMENT_NODE)if(J.hasAttribute("sticky")){this._stickyElRef=J;break}else this._stickyElRef||(this._stickyElRef=J);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var M=this._clampedScrollTop,z=this._height===0||M===0,J=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;z||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();z?this._updateScrollState(M,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=J}},
_updateScrollState:function(M,z){if(this._height!==0){var J=0,R=this._top;var D=this._maxHeaderTop;var N=M-this._lastScrollTop,Z=Math.abs(N),B=M>this._lastScrollTop,O=performance.now();this._mayMove()&&(J=this._clamp(this.reveals?R+N:M,0,D));M>=this._dHeight&&(J=this.condenses&&!this.fixed?Math.max(this._dHeight,J):J,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Z<100){if(O-this._initTimestamp>300||this._wasScrollingDown!==B)this._initScrollTop=M,this._initTimestamp=O;M>=D&&
(Math.abs(this._initScrollTop-M)>30||Z>10?(B&&M>=D?J=D:!B&&M>=this._dHeight&&(J=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((J-R)/(N/(O-this._lastTimestamp)),0,300)+"ms"):J=this._top)}D=this._dHeight===0?M>0?1:0:J/this._dHeight;z||(this._lastScrollTop=M,this._top=J,this._wasScrollingDown=B,this._lastTimestamp=O);if(z||D!==this._progress||R!==J||M===0)this._progress=D,this._runEffects(D,J),this._transformHeader(J)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(M){this.translate3d(0,-M+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&M>=this._stickyElTop?Math.min(M,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(M,z,J){return Math.min(J,Math.max(z,M))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.pu(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(M){switch(M){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.pu(this).querySelector("[main-title]");case "condensedTitle":return _.pu(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var o0i;var XFw;_.sV({_template:function(){if(XFw!==void 0)return XFw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;o0i===void 0&&(o0i=document.createElement("template"));var R=o0i;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return XFw=M},
is:"tp-yt-app-header-layout",behaviors:[k25],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.pu(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var M=this.header;if(this.isAttached&&M){this.$.wrapper.classList.remove("initializing");M.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)M.style.left=
"",M.style.right="";else{var z=this.getBoundingClientRect(),J=document.documentElement.clientWidth-z.right;M.style.left=z.left+"px";M.style.right=J+"px"}z=this.$.contentContainer.style;J=M.offsetHeight;M.fixed&&!M.condenses&&this.hasScrollingRegion?(z.marginTop=J+"px",z.paddingTop=""):(z.paddingTop=J+"px",z.marginTop="")}}});var lxu=new _.R_("alertCommand");var e7c=new _.R_("manageLabsStateCommand");var Qaw=new _.R_("inlineFormRenderer");var cO=new _.R_("playlistSidebarPrimaryInfoRenderer");var UXt=new _.R_("productDetailsThumbnailRenderer"),v0s=new _.R_("productDetailsVariantRenderer"),G2s=new _.R_("productDetailsVariantOptionRenderer"),wFt=new _.R_("productDetailsOffersContainerRenderer"),xXv=new _.R_("productDetailsOfferRenderer");var tid=new _.R_("shoppingFlaggingRenderer");var jas=new _.R_("playlistBylineRenderer");var pFi=new _.R_("insertChannelTabCommand");var dY=function(){return _.vU.apply(this,arguments)||this};
_.w(dY,_.vU);_.P=dY.prototype;_.P.activeChanged=function(){if(this.active){var M=_.SN(this.hostElement).querySelector("#header");M&&_.Pv(M,"iron-resize");window.addEventListener("scroll",_.ou(this,this.onScroll))}else window.removeEventListener("scroll",_.ou(this,this.onScroll)),_.Pv(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.P.guideVisibleChanged=function(){var M=_.SN(this.hostElement).querySelector("#header");M&&_.Pv(M,"iron-resize")};
_.P.onScroll=function(){var M=this;_.Vc(this,"onScroll",function(){var z=_.SN(M.hostElement).querySelector("#header");z&&z.polymerController&&(z=z.polymerController.getScrollState().progress===1?"standard":"seamed",_.Pv(M.hostElement,"yt-request-panel-mode-change",{mode:z}))},10)};
_.P.tabsChanged=function(){if(this.tabs){for(var M=null,z=0,J=this.tabs.length;z<J;++z){var R=this.tabs[z].tabRenderer;if(R&&R.selected){M=z;break}}this.selected=M}};
_.P.onTabsActivate=function(M){_.Pv(this.hostElement,"yt-navigate",{endpoint:this.tabs[M.detail.selected].tabRenderer.endpoint})};
dY.prototype.tabsChanged=dY.prototype.tabsChanged;dY.prototype.guideVisibleChanged=dY.prototype.guideVisibleChanged;dY.prototype.activeChanged=dY.prototype.activeChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],dY.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.Y(),_.W("design:type",Array)],dY.prototype,"tabs",void 0);
_.u([_.Y(),_.W("design:type",Object)],dY.prototype,"selected",void 0);_.u([_.Y(),_.W("design:type",Boolean)],dY.prototype,"active",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],dY.prototype,"disableHeaderFluidWidth",void 0);_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dY.prototype,"activeChanged",null);
_.u([_.la("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dY.prototype,"guideVisibleChanged",null);_.u([_.la("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dY.prototype,"tabsChanged",null);_.u([_.Gp()],dY);var Fyl=[_.f.YtRendererBehavior,_.Ap.YtdGuideStateAwareBehavior,dY.prototype];var Ygu=2/3,mXc=_.O3(130749),g0l=function(M,z){var J=this;this.element=M;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){J.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Ygu,moveAction:function(R){J.moveAction(R)},
triggerAction:function(){J.element.isReloading=!0;_.al(_.Gm(),{visualElement:mXc});_.l5.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:J.element}})}}}};
_.ex(_.Gm(),mXc,this.layer);this.gesture=new _.Tq(M,z,this.refreshConfig,"pan-down");this.attach()};
_.P=g0l.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.reset=function(){this.element.close()};
_.P.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.P.moveAction=function(M){this.element.rotation=M*360};var sai=_.O3(130750),K0=function(M,z,J,R,D){var N=this;this.element=M;this.parent=J;this.channelHeader=R;this.ytdReduxDispatch=D;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){N.tabsStartAtInPx=N.channelHeader.clientHeight-48;var Z;(Z=N.selectedTab)!=null&&Z.title&&(Z=_.JF().resolve(_.zw(_.M6)))&&(Z=Z.getCurrentPage(),N.lastVisitedTabScrollPosition=Z.getScrollTop(),N.previousTab&&
((N.lastVisitedTabScrollPosition===void 0?0:N.lastVisitedTabScrollPosition<N.channelHeader.clientHeight-48)?N.scrollPositionForTabs.has(N.selectedTab.title)&&N.scrollPositionForTabs.delete(N.selectedTab.title):N.scrollPositionForTabs.set(N.selectedTab.title,Z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:n0w(),triggerAction:function(){N.navigate(N.previousTab)},
moveAction:function(Z,B){N.moveAction(Z,B)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-n0w(),triggerAction:function(){N.navigate(N.nextTab)},
moveAction:function(Z,B){N.moveAction(Z,B)}}}};
_.ex(_.Gm(),sai,this.layer);this.gesture=new _.Tq(M,z,this.tabConfig);this.attach()};
K0.prototype.attach=function(){this.gesture.attach()};
K0.prototype.detach=function(){this.gesture.detach()};
K0.prototype.tabsChanged=function(M){if(M){var z=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;M=_.S(M);for(var J=M.next();!J.done;J=M.next()){J=J.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=J);var R=void 0;if((R=J)==null?0:R.selected)this.previousTab=z,this.selectedTab=J;z=J}z=this.gesture;M=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}});
z.config=M;this.scrollPositionNeedsUpdate=!0}};
K0.prototype.moveAction=function(M,z){if(!this.tabsElement){var J;this.tabsElement=(J=this.parent.header)==null?void 0:J.tabsElement;z==="right"&&this.previousTab?_.bzv(_.Y5.instance,this.previousTab.endpoint,{},""):z==="left"&&this.nextTab&&_.bzv(_.Y5.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}J=this.tabsElement._pos;z==="right"&&(M*=-1);this.tabsElement._positionBar(J.width,J.left*1+J.width*M)};
var n0w=function(){var M,z;return(z=(M=_.JF().resolve(_.M6).getCurrentPage())==null?void 0:M.clientWidth)!=null?z:0};
K0.prototype.navigate=function(M){this.element.data=void 0;if(M=M==null?void 0:M.endpoint)this.ytdReduxDispatch(Phu(!0)),_.al(_.Gm(),{visualElement:sai}),_.l5.instance.resolveCommand({navigateAction:{endpoint:M}},{form:{element:this.element}})};var h7G;var ycG;var $w=function(){return _.g.apply(this,arguments)||this};
_.w($w,_.g);$w.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$w.prototype,"data",void 0);_.u([_.c({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],$w);
_.d($w,"ytd-labs-edit-renderer",function(){if(ycG!==void 0)return ycG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ycG=M},{mode:1});var Htm;var uy=function(){var M=_.g.apply(this,arguments)||this;M.dark=!1;M.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(uy,_.g);uy.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uy.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.setBackgroundImage(M);this.dark=M};
uy.prototype.onDarkModeToggledAction=function(M){this.setBackgroundImage(M);this.dark=M};
uy.prototype.setBackgroundImage=function(M){_.Tp(this.hostElement,{"--yt-labs-header-background":"url("+(M?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],uy.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],uy.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uy.prototype,"dark",void 0);
_.u([_.c({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],uy);
_.d(uy,"ytd-labs-header-renderer",function(){if(Htm!==void 0)return Htm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Htm=M},{mode:1});var cct;var qe=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return M};
_.w(qe,_.g);qe.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"}}}}}};
qe.prototype.onYtToggleButton=function(M){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",M.detail.toggled)};
qe.prototype.onManageLabsState=function(M){if(M=_.G(M,e7c))M.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?M.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&M.labsItemId===this.data.labsItemId&&(M.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.S9(this.hostElement,"yt-check-labs-opted-in-state").some(function(z){return z})&&this.data.confirmationDialogCommand?_.Bv(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.JF().resolve(_.Rb).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&M.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.JF().resolve(_.Rb).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
qe.prototype.onCheckLabsOptedInState=function(){var M=this.get("data.primaryButton.toggleButtonRenderer");return M?M.isToggled:!1};
_.rX.Object.defineProperties(qe.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
qe.prototype.onYtToggleButton=qe.prototype.onYtToggleButton;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],qe.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qe.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],qe.prototype,"itemStyle",null);_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qe.prototype,"onYtToggleButton",null);_.u([_.c({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],qe);
_.d(qe,"ytd-labs-item-renderer",function(){if(cct!==void 0)return cct;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cct=M},{mode:1});var dXw;var Kyl;var WO=function(){return _.g.apply(this,arguments)||this};
_.w(WO,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],WO.prototype,"data",void 0);_.u([_.c({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],WO);
_.d(WO,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Kyl!==void 0)return Kyl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Kyl=M},{mode:1});var $Xs;var aW=function(){return _.g.apply(this,arguments)||this};
_.w(aW,_.g);aW.prototype.observeSuperchatChip=function(){if(this.data){var M={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.Tp(this.hostElement,M)}};
aW.prototype.colorFromDecimal=function(M){return _.qG(Number(M||0))};
aW.prototype.observeSuperchatChip=aW.prototype.observeSuperchatChip;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],aW.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aW.prototype,"observeSuperchatChip",null);_.u([_.c({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],aW);
_.d(aW,"ytd-live-chat-history-super-chat-chip-renderer",function(){if($Xs!==void 0)return $Xs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return $Xs=M},{mode:1});var VJ=function(){return _.g.apply(this,arguments)||this};
_.w(VJ,_.g);VJ.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"}}}};
_.rX.Object.defineProperties(VJ.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Vg),_.W("design:type",Object)],VJ.prototype,"ytdDismissibleItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],VJ.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VJ.prototype,"hideMessageBlock",null);
_.u([_.c({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],VJ);
_.d(VJ,"ytd-live-chat-history-entry-renderer",function(){if(dXw!==void 0)return dXw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dXw=M},{mode:1});var uIl;var En=function(){return _.g.apply(this,arguments)||this};
_.w(En,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],En.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],En);
_.d(En,"ytd-channel-options-renderer",function(){if(uIl!==void 0)return uIl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uIl=M},{mode:1});var qg5;var f0=function(){return _.g.apply(this,arguments)||this};
_.w(f0,_.g);f0.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],f0.prototype,"data",void 0);_.u([_.c({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],f0);
_.d(f0,"ytd-settings-email-item-renderer",function(){if(qg5!==void 0)return qg5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qg5=M},{mode:1});var Wyu;var L0=function(){return _.g.apply(this,arguments)||this};
_.w(L0,_.g);L0.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"}}}};
L0.prototype.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
L0.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.rX.Object.defineProperties(L0.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L0.prototype,"data",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],L0.prototype,"expanded",void 0);_.u([_.F("expanded"),_.W("design:type",String),_.W("design:paramtypes",[])],L0.prototype,"emailListExpanded",null);
_.u([_.Qc("#options"),_.W("design:type",Object)],L0.prototype,"options",void 0);_.u([_.c({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],L0);
_.d(L0,"ytd-settings-email-list-renderer",function(){if(Wyu!==void 0)return Wyu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Wyu=M},{mode:1});var axu;var Af=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.w(Af,_.g);Af.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"}}}};
Af.prototype.handleSignalActionSubmitForm=function(){var M,z=(M=this.formRenderer)==null?void 0:M.getForm();z&&this.data.serviceEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},z,{element:this.hostElement})})};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Af.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Af.prototype,"data",void 0);_.u([_.Qc("yt-form-renderer"),_.W("design:type",Object)],Af.prototype,"formRenderer",void 0);
_.u([_.c({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Af);
_.d(Af,"ytd-settings-gaia-link-renderer",function(){if(axu!==void 0)return axu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return axu=M},{mode:1});var Vic;var iy=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return M};
_.w(iy,_.g);iy.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.lZi()&&this.set("data.hidden",!1)};
iy.prototype.onSwitchReady=function(){var M=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.U("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Xl5().then(function(z){z&&(Notification.permission==="default"?M.set("data.hidden",!1):Notification.permission==="granted"&&_.UJ("NotificationsDisabled").then(function(J){J||_.S9(M.hostElement,"yt-toggle-settings-switch",[M.data.id,!J]);M.set("data.hidden",!1)}).catch(function(){}))})})};
iy.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}}}}};
iy.prototype.handleUpdateOptionsCommand=function(M){(M=_.G(M,_.PFQ))&&this.data&&this.data.id===M.id&&(this.set("data.hidden",M.hidden),M.text!==void 0&&this.set("data.text",M.text),M.clearOptions&&this.set("data.options",[]))};
iy.prototype.onSwitchReady=iy.prototype.onSwitchReady;iy.prototype.dataChanged=iy.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],iy.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],iy.prototype,"data",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iy.prototype,"dataChanged",null);_.u([_.Xw("yt-settings-switch-ready"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iy.prototype,"onSwitchReady",null);_.u([_.c({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],iy);
_.d(iy,"ytd-settings-options-renderer",function(){if(Vic!==void 0)return Vic;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Vic=M},{mode:1});var E0l;var C0=function(){return _.g.apply(this,arguments)||this};
_.w(C0,_.g);C0.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
C0.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
C0.prototype.onYtExpanderMoreTapped=C0.prototype.onYtExpanderMoreTapped;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],C0.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],C0.prototype,"data",void 0);
_.u([_.Xw("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C0.prototype,"onYtExpanderMoreTapped",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],C0);
_.d(C0,"ytd-product-details-description-renderer",function(){if(E0l!==void 0)return E0l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return E0l=M},{mode:1});var fxl;var by=function(){var M=_.g.apply(this,arguments)||this;M.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";M.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";M.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";M.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return M};
_.w(by,_.g);by.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rX.Object.defineProperties(by.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:(z=M.offerData)==null?void 0:z.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?void 0:M.purchaseButtonRenderers)!==void 0&&((z=this.data)==null?void 0:z.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.formattedFromMerchantText)&&(!((z=this.data)==null||!z.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],by.prototype,"data",void 0);
_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],by.prototype,"shippingIcon",void 0);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],by.prototype,"shippingAddressIcon",void 0);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],by.prototype,"googleGuaranteeIcon",void 0);
_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],by.prototype,"returnPolicyIcon",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],by.prototype,"showAdditionalFees",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],by.prototype,"showMultiPurchaseButtons",null);
_.u([_.F("data","showMultiPurchaseButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],by.prototype,"showPurchaseData",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],by);
_.d(by,"ytd-product-details-hero-offer-renderer",function(){if(fxl!==void 0)return fxl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fxl=M},{mode:1});var Lyi;var Act;var rY=function(){return _.g.apply(this,arguments)||this};
_.w(rY,_.g);_.P=rY.prototype;_.P.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.P.onKeyDown=function(M){M=M.keyCode;M!==13&&M!==32||this.handleSelection()};
_.P.onMouseEnterImage=function(){var M;((M=this.data)==null?void 0:M.thumbnailDetails)!==void 0&&_.ZL(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.P.onMouseLeaveImage=function(){_.ZL(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.P.handleSelection=function(){this.data&&_.Pv(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.rX.Object.defineProperties(rY.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rY.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rY.prototype,"isSelected",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],rY);
_.d(rY,"ytd-product-details-thumbnail-renderer",function(){if(Act!==void 0)return Act;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Act=M},{mode:1});var MM=function(){var M=_.g.apply(this,arguments)||this;var z={};M.actionMap=(z["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",z["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",z);M.selectedThumbnailIndex=0;M.selectItem=function(J){J.target.onKeyDown(J)};
return M};
_.w(MM,_.g);_.P=MM.prototype;_.P.handlePreviewImageSelect=function(M){this.hoverThumbnail=M};
_.P.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.P.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.P.onThumbnailSelected=function(M,z){this.selectedThumbnailIndex=z};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.P.updateOffset=function(){var M=_.SN(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_()};
_.rX.Object.defineProperties(MM.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.imageRenderer){var z,J;return((z=this.data)==null?void 0:(J=z.imageRenderer)==null?void 0:J.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var M;if((M=this.data)==null?0:M.imageRenderer){var z;return(z=_.G(this.data.imageRenderer[this.selectedThumbnailIndex],UXt))==null?void 0:z.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J,R,D=(R=(z=this.data)==null?void 0:(J=z.imageRenderer)==null?void 0:J.map(function(N,Z){return{productDetailsThumbnailRenderer:Object.assign({},_.G(N,UXt),{index:Z,isSelected:Z===M.selectedThumbnailIndex})}}))!=null?R:[];
return Object.assign({},this.data,{imageRenderer:D})}}});
MM.prototype.updateOffset=MM.prototype.updateOffset;MM.prototype.dataChanged=MM.prototype.dataChanged;MM.prototype.onThumbnailSelected=MM.prototype.onThumbnailSelected;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.OS.YtdHorizontalListBehavior),_.W("design:type",Object)],MM.prototype,"ytdHorizontalListBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],MM.prototype,"componentBehavior",void 0);_.u([_.p([_.wx.YtActionHandlerBehavior]),_.W("design:type",Object)],MM.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],MM.prototype,"data",void 0);_.u([_.Y({value:"$.items.children"}),_.W("design:type",String)],MM.prototype,"itemsPath",void 0);_.u([_.Y({value:3}),_.W("design:type",Number)],MM.prototype,"initialCount",void 0);
_.u([_.Qc("#items"),_.W("design:type",Object)],MM.prototype,"items",void 0);_.u([_.Y(),_.W("design:type",Object)],MM.prototype,"selectedThumbnailIndex",void 0);_.u([_.Y(),_.W("design:type",Object)],MM.prototype,"hoverThumbnail",void 0);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MM.prototype,"showThumbnails",null);
_.u([_.Xw("ytd-product-details-thumbnail-renderer-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Number]),_.W("design:returntype")],MM.prototype,"onThumbnailSelected",null);_.u([_.F("data","selectedThumbnailIndex","hoverThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"thumbnailDetails",null);_.u([_.F("data","selectedThumbnailIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],MM.prototype,"populatedData",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"dataChanged",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"updateOffset",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],MM);
_.d(MM,"ytd-product-details-image-carousel-renderer",function(){if(Lyi!==void 0)return Lyi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Lyi=M},{mode:_.B5("kevlar_poly_si_batch_j079")?1:2});var itw;var zH=function(){return _.g.apply(this,arguments)||this};
_.w(zH,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],zH.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],zH.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],zH);
_.d(zH,"ytd-product-details-offer-renderer",function(){if(itw!==void 0)return itw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return itw=M},{mode:1});var Chs;var JH=function(){var M=_.g.apply(this,arguments)||this;M.isOffersHidden=!0;return M};
_.w(JH,_.g);JH.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var M,z=_.G((M=this.data)==null?void 0:M.viewOffersButton,_.aR);z&&this.ytRendererBehavior.logExplicitClick(z)};
JH.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.rX.Object.defineProperties(JH.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R;return(J=_.G((M=this.data)==null?void 0:(z=M.offers)==null?void 0:z[0],xXv))==null?void 0:(R=J.offerData)==null?void 0:R.vendorLogoUrl}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],JH.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JH.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],JH.prototype,"isOffersHidden",void 0);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],JH.prototype,"firstOfferVendorLogoUrl",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],JH);
_.d(JH,"ytd-product-details-offers-container-renderer",function(){if(Chs!==void 0)return Chs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Chs=M},{mode:1});var btd;var rcG;var RU=function(){return _.g.apply(this,arguments)||this};
_.w(RU,_.g);RU.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
RU.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.ZL(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
RU.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.ZL(this,"ytd-product-details-variant-image-unselect")};
_.rX.Object.defineProperties(RU.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?void 0:M.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((z=this.data)==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((J=this.data)==null?void 0:J.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var M;if(((M=this.data)==null?void 0:M.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.isUnavailable?(M=this.data)==null?void 0:M.variantOptionUnavailableAccessibilityLabel:(z=this.data)==null?void 0:z.variantOptionAccessibilityLabel}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],RU.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RU.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],RU.prototype,"displayType",void 0);
_.u([_.F("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RU.prototype,"isImageButton",null);_.u([_.F("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RU.prototype,"isPillButton",null);_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RU.prototype,"isActive",null);
_.u([_.F("data"),_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RU.prototype,"isUnavailable",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],RU.prototype,"thumbnailDetails",null);_.u([_.F("isUnavailable","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],RU.prototype,"accessibilityLabel",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],RU);
_.d(RU,"ytd-product-details-variant-option-renderer",function(){if(rcG!==void 0)return rcG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rcG=M},{mode:1});var Mjt;var Di=function(){var M=_.g.apply(this,arguments)||this;M.variantsExpanded=!1;M.hideShowMoreLessVariantButton=!0;M.initialized=!1;M.computeVariantsDebouncer=null;M.computeVariants=function(z){z=z===void 0?!1:z;M.variantsExpanded||M.showOptions()||!z||(M.variantsExpanded=!0);if(M.variantsExpanded){z=_.S(M.items.children);for(var J=z.next();!J.done;J=z.next())J.value.hidden=!1}M.initialized=!0};
return M};
_.w(Di,_.g);_.P=Di.prototype;_.P.ready=function(){var M=this;setTimeout(function(){M.computeVariants(!0)})};
_.P.showOptions=function(){for(var M=_.S(this.items.children),z=M.next();!z.done;z=M.next())z.value.hidden=!0;var J=this.container.getBoundingClientRect().width,R=0,D=M=0;z=!1;for(var N=_.S(this.items.children),Z=N.next();!Z.done;Z=N.next()){Z=Z.value;Z.hidden=!1;var B=Z.getBoundingClientRect().width;if(R+B<J)R+=B;else if(++D<2)R=B;else break;M+=1;Z.hasAttribute("is-active")&&(z=!0)}for(J=M;J<this.items.children.length;J++)this.items.children[J].hidden=!0;this.hideShowMoreLessVariantButton=M===this.items.children.length;
return z};
_.P.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Iq(this.computeVariantsDebouncer,_.zx.after(100),this.computeVariants)};
_.P.onShowMoreLessVariantsButtonClick=function(){var M;(M=this.data)!=null&&M.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.P.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.rX.Object.defineProperties(Di.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.variantOptionRenderers)==null?void 0:z.find(function(N){return _.G(N,G2s).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),R,D;
return(D=(R=_.G(J,G2s))==null?void 0:R.name)!=null?D:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
Di.prototype.debouncedComputeVariants=Di.prototype.debouncedComputeVariants;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Di.prototype,"componentBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],Di.prototype,"ironResizableBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Di.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Di.prototype,"variantsExpanded",void 0);_.u([_.Y(),_.W("design:type",Object)],Di.prototype,"hideShowMoreLessVariantButton",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Di.prototype,"initialized",void 0);_.u([_.Qc("#items"),_.W("design:type",HTMLDivElement)],Di.prototype,"items",void 0);_.u([_.Qc("#container"),_.W("design:type",HTMLDivElement)],Di.prototype,"container",void 0);
_.u([_.Qc("#more-variants-button"),_.W("design:type",HTMLElement)],Di.prototype,"moreVariantsButton",void 0);_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],Di.prototype,"selectedOptionName",null);_.u([_.la("data","variantsExpanded"),_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Di.prototype,"debouncedComputeVariants",null);
_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],Di.prototype,"displayType",null);_.u([_.F("displayType"),_.W("design:type",Object),_.W("design:paramtypes",[])],Di.prototype,"variantItemsClassname",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Di);
_.d(Di,"ytd-product-details-variant-renderer",function(){if(Mjt!==void 0)return Mjt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Mjt=M},{mode:1});var NM=function(){return _.g.apply(this,arguments)||this};
_.w(NM,_.g);
NM.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"}}}};
_.rX.Object.defineProperties(NM.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(z=_.G((M=this.data)==null?void 0:M.offersContainerRenderer,wFt))==null?void 0:z.offers;return J!==void 0&&(J==null?void 0:J.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((J=(M=this.data)==null?void 0:(z=M.variants)==null?void 0:z.map(function(R){var D,N;R=(N=(D=_.G(R,v0s))==null?void 0:D.variantOptionRenderers)==null?void 0:N.find(function(B){var O;return((O=_.G(B,G2s))==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Z;return(Z=_.G(R,G2s))==null?void 0:Z.name}).filter(function(R){return typeof R==="string"}))!=null?J:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var M,z,J,R=(z=_.G((M=this.data)==null?void 0:M.shoppingFlaggingRenderer,tid))==null?void 0:(J=z.reportButton)==null?void 0:J.buttonRenderer;if(R)return{text:R.text,command:R.command,icon:{iconType:"FLAG"},accessibilityData:R.accessibilityData,trackingParams:R.trackingParams,loggingDirectives:R.loggingDirectives}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],NM.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NM.prototype,"data",void 0);_.u([_.Qc("#image-carousel-renderer"),_.W("design:type",Object)],NM.prototype,"imageCarouselRenderer",void 0);
_.u([_.Qc("#hero-offer-renderer"),_.W("design:type",Object)],NM.prototype,"productDetailsHeroOfferRenderer",void 0);_.u([_.Qc("#variants"),_.W("design:type",Object)],NM.prototype,"productDetailsVariantRenderer",void 0);_.u([_.Qc("#offers"),_.W("design:type",Object)],NM.prototype,"productDetailsOffersContainerRenderer",void 0);_.u([_.Qc("#description-renderer"),_.W("design:type",Object)],NM.prototype,"productDetailsDescriptionRenderer",void 0);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showPurchaseData",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showHeroOfferRenderer",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showBrandText",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showOffers",null);
_.u([_.F("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showBuySeparator",null);_.u([_.F("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"showBuyCard",null);_.u([_.F("data"),_.W("design:type",String),_.W("design:paramtypes",[])],NM.prototype,"selectedVariantsText",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NM.prototype,"shoppingReportingButtonData",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],NM);
_.d(NM,"ytd-product-details-renderer",function(){if(btd!==void 0)return btd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return btd=M},{mode:1});var z9l;var JWN;var R9w;var Px=function(){return _.g.apply(this,arguments)||this};
_.w(Px,_.g);Px.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.rX.Object.defineProperties(Px.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Px.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],Px.prototype,"formattedAmount",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Px.prototype,"ariaLabel",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],Px.prototype,"vcBalanceWidgetStyle",null);_.u([_.cU({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Px);
_.d(Px,"yt-vc-balance-renderer",function(){if(R9w===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;JWN===void 0&&(JWN=document.createElement("template"));var R=JWN;J.call(z,R.content.cloneNode(!0),M.content.firstChild);R9w=M}M=R9w;return M},{mode:2});_.nn("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ST=function(){return _.g.apply(this,arguments)||this};
_.w(ST,_.g);_.rX.Object.defineProperties(ST.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:""}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],ST.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ST.prototype,"data",void 0);_.u([_.Y({selectorArgs:["data.vcBalanceEntityKey"],selector:function(M,z){return _.Is(M.entities,"vcBalanceEntity",z)}}),
_.W("design:type",Object)],ST.prototype,"vcBalanceEntity",void 0);_.u([_.F("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],ST.prototype,"formattedAmount",null);_.u([_.F("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],ST.prototype,"vcBalanceAriaLabel",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ST);
_.d(ST,"ytd-vc-balance-renderer",function(){if(z9l!==void 0)return z9l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return z9l=M},{mode:1});var DRt;var Zi=function(){var M=_.g.apply(this,arguments)||this;M.rotation=0;M.isReloading=!1;return M};
_.w(Zi,_.g);Zi.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Zi.prototype.reset=function(){this.hostElement.style.opacity=""};
Zi.prototype.close=function(){var M=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(M.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.hostElement.style.opacity="0";_.UI(z)})};
Zi.prototype.rotationChanged=Zi.prototype.rotationChanged;_.u([_.Y(),_.W("design:type",Object)],Zi.prototype,"rotation",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Zi.prototype,"isReloading",void 0);_.u([_.Qc("#icon"),_.W("design:type",HTMLElement)],Zi.prototype,"icon",void 0);_.u([_.la("rotation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Zi.prototype,"rotationChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-refresh"})],Zi);
_.d(Zi,"ytd-refresh",function(){if(DRt!==void 0)return DRt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return DRt=M},{mode:1});var Nni;var kP=function(){return _.g.apply(this,arguments)||this};
_.w(kP,_.g);kP.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"}}}};
kP.prototype.dataChanged=function(){if(this.data){var M=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var z=_.PS(this.data.banner.thumbnails,this.hostElement.clientWidth);z&&(z.indexOf("//")===0&&(z="https:"+z),this.hasBannerArt=!0,_.Tp(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+z+")"}))}this.hasBannerArt!==M&&_.SN(this.hostElement).querySelector("#header").fire("iron-resize")}};
kP.prototype.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
kP.prototype.dataChanged=kP.prototype.dataChanged;_.u([_.p(Fyl),_.W("design:type",Object)],kP.prototype,"ytdTabbedHeaderBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.fk),_.W("design:type",Object)],kP.prototype,"ytdGridStateAwareBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],kP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],kP.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],kP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],kP.prototype,"selected",void 0);_.u([_.Y(),_.W("design:type",Boolean)],kP.prototype,"active",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],kP.prototype,"hasBannerArt",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kP.prototype,"dataChanged",null);_.u([_.c({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],kP);
_.d(kP,"ytd-interactive-tabbed-header-renderer",function(){if(Nni!==void 0)return Nni;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Nni=M},{mode:1});var Pql;var Bx=function(){return _.g.apply(this,arguments)||this};
_.w(Bx,_.g);Bx.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bx.prototype.computeActionsAlignment=function(M){return(M==null?void 0:M.actionsAlignment)||""};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Bx.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.W("design:type",String)],Bx.prototype,"actionsAlignment",void 0);_.u([_.c({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Bx);
_.d(Bx,"ytd-page-footer-renderer",function(){if(Pql!==void 0)return Pql;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Pql=M},{mode:1});var SY5;var ZVi;var Ox=function(){var M=_.g.apply(this,arguments)||this;M.isEditing=!1;M.useSlot=!1;M.isMultiline=!1;return M};
_.w(Ox,_.g);_.P=Ox.prototype;_.P.onKeydown=function(M){if(M.keyCode===13&&!this.isMultiline)this.onSave();else if(M.keyCode===27)this.onCancel()};
_.P.computeComponentStyle=function(M){return(M==null?0:M.style)?M.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.P.computeisMultiline=function(M){if(this.multilineOverride!==void 0)return this.multilineOverride;var z,J;return!!(M==null?0:(z=M.formField)==null?0:(J=z.textInputFormFieldRenderer)==null?0:J.isMultiline)};
_.P.computeTextDisplayed=function(M,z){if(M)return M;if(z)return z};
_.P.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.P.onSave=function(){if(this.textForm.validate()){this.textForm.save();var M=this.textForm.value;if(M)this.set("data.textDisplayed",_.id(M));else{var z;((z=this.data)==null?0:z.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.rx("inline-form-changed",this.data));this.isEditing=!1}};
_.P.onCancel=function(){var M=_.CD(this.data.textDisplayed);M===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(M);this.isEditing=!1};
Ox.prototype.onKeydown=Ox.prototype.onKeydown;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Ox.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ox.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ox.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ox.prototype,"isEditing",void 0);_.u([_.Y(),_.W("design:type",Object)],Ox.prototype,"useSlot",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Ox.prototype,"multilineOverride",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Ox.prototype,"enableOverlayTheme",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.W("design:type",String)],Ox.prototype,"componentStyle",void 0);
_.u([_.Y({computed:"computeisMultiline(data)"}),_.W("design:type",Object)],Ox.prototype,"isMultiline",void 0);_.u([_.Qc("#text-form"),_.W("design:type",Object)],Ox.prototype,"textForm",void 0);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],Ox.prototype,"onKeydown",null);_.u([_.c({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Ox);
_.d(Ox,"ytd-inline-form-renderer",function(){if(ZVi!==void 0)return ZVi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return ZVi=M},{mode:1});var kBl;var TH=function(){var M=_.g.apply(this,arguments)||this;M.previousSelectValue=void 0;M.selectedItemMessage=void 0;return M};
_.w(TH,_.g);TH.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
TH.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var M,z,J,R,D=(M=this.data)==null?void 0:(z=M.dropdown)==null?void 0:(J=z.dropdownRenderer)==null?void 0:(R=J.entries)==null?void 0:R.map(function(B){return B.privacyDropdownItemRenderer});
M=_.S(D!=null?D:[]);for(z=M.next();!z.done;z=M.next())if((z=z.value)&&z.int32Value===this.selectedValue){this.selectedItemMessage=z.itemMessage;break}}else this.selectedItemMessage=void 0;var N;(N=this.onValueChanged)==null||N.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Z;(Z=this.data)!=null&&Z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
TH.prototype.onValueChangedForSelectedValue=function(M){this.selectedValue=M.detail.value};
TH.prototype.selectedValueChanged=TH.prototype.selectedValueChanged;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],TH.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],TH.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],TH.prototype,"theme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Number)],TH.prototype,"selectedValue",void 0);_.u([_.Y(),_.W("design:type",Function)],TH.prototype,"onValueChanged",void 0);
_.u([_.wH("selectedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TH.prototype,"selectedValueChanged",null);_.u([_.c({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],TH);
_.d(TH,"ytd-dropdown-form-field-renderer",function(){if(kBl!==void 0)return kBl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return kBl=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var BnG;var IU=function(){return _.g.apply(this,arguments)||this};
_.w(IU,_.g);_.rX.Object.defineProperties(IU.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var M=[],z=_.S(this.data||[]),J=z.next();!J.done;J=z.next())(J=_.G(J.value,jas))&&M.push(J);return M}}});
_.u([_.Y(),_.W("design:type",Array)],IU.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IU.prototype,"byline",null);_.u([_.c({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],IU);
_.d(IU,"ytd-playlist-byline-renderer",function(){if(BnG!==void 0)return BnG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return BnG=M},{mode:1});var OVw;var oU=function(){var M=_.g.apply(this,arguments)||this;M.rtlBullet=_.U("web_playlist_stats_rtl_bullet_icon_killswitch");M.modern=_.U("web_modern_buttons");M.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return M};
_.w(oU,_.g);_.P=oU.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.P.attached=function(){};
_.P.computeIsCustomThumbnail=function(M){return M?!!M.playlistCustomThumbnailRenderer:!1};
_.P.onYtNavigate=function(M,z){if(z&&z.actions&&z.actions.indexOf("shuffle")>-1){M=_.JF().resolve(_.aV);var J=z.tempData||{};J.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);z.tempData=J;M.isShuffleNextPlaylist=!0}};
_.P.onUpdatePlaylistAction=function(M){var z;M=(z=_.G(M,_.HsQ))==null?void 0:z.updatedRenderer;if(z=_.G(M,cO))this.data=z};
_.P.computeStyleType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(M){return M==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.P.computeHideThumbnailAria=function(M){if(M==null?0:M.thumbnailOverlays)for(var z=0;z<M.thumbnailOverlays.length;z++){var J=void 0;if((J=M.thumbnailOverlays[z])==null?0:J.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
oU.prototype.onYtNavigate=oU.prototype.onYtNavigate;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],oU.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oU.prototype,"rtlBullet",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.W("design:type",String)],oU.prototype,"styleType",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],oU.prototype,"thumbnailWidth",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],oU.prototype,"modern",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.W("design:type",Boolean)],oU.prototype,"isCustomThumbnail",void 0);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],oU.prototype,"onYtNavigate",null);_.u([_.c({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],oU);
_.d(oU,"ytd-playlist-sidebar-primary-info-renderer",function(){if(OVw!==void 0)return OVw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return OVw=M},{mode:1});var TnN;var X1=function(){return _.g.apply(this,arguments)||this};
_.w(X1,_.g);X1.prototype.computeOwnerVisibility=function(M){return!(!M.videoOwner&&!M.button)};
X1.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],X1.prototype,"data",void 0);_.u([_.c({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],X1);
_.d(X1,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(TnN!==void 0)return TnN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return TnN=M},{mode:1});var IHi;var lc=function(){var M=_.g.apply(this,arguments)||this;M.expanded=!1;M.isCompact=!1;return M};
_.w(lc,_.g);_.P=lc.prototype;_.P.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.P.dataChanged=function(){this.data&&_.C3(_.SN(this.text),_.Qkt(_.GtB,_.CD(this.data.text||null)))};
_.P.computeAutoScrollEnabled=function(M,z){return M&&!z};
_.P.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.P.toggleOnTap=function(){this.expanded=!this.expanded};
lc.prototype.expandedChanged=lc.prototype.expandedChanged;lc.prototype.dataChanged=lc.prototype.dataChanged;_.u([_.p(_.kHl),_.W("design:type",Object)],lc.prototype,"ytdAutoScrollBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lc.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lc.prototype,"expanded",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],lc.prototype,"isCompact",void 0);_.u([_.Y({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.W("design:type",Boolean)],lc.prototype,"autoScrollEnabled",void 0);_.u([_.Qc("#text"),_.W("design:type",Object)],lc.prototype,"text",void 0);_.u([_.Qc("#expander-icon"),_.W("design:type",Object)],lc.prototype,"expanderIcon",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lc.prototype,"dataChanged",null);_.u([_.la("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lc.prototype,"expandedChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],lc);
_.d(lc,"ytd-channel-legal-info-renderer",function(){if(IHi!==void 0)return IHi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return IHi=M},{mode:1});var oAw;var X7d=_.e9("DOWNLOAD",{},"Download"),lHl=_.e9("DOWNLOADING",{},"Downloading"),e9w=_.e9("DOWNLOADED",{},"Downloaded"),eT=function(){var M=_.g.apply(this,arguments)||this;M.downloadProgress=0;M.isDownloadComplete=!1;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.w(eT,_.g);_.P=eT.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var M;(M=this.data)!=null&&M.tooltip||(M=_.$f(_.rA().getState(),this.playlistId),this.updateButtonState(M))};
_.P.computePlaylistId=function(M){return M};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(M){if(this.data&&(this.data.tooltip!==lHl||!_.xf(M))){this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=X7d;var z="OFFLINE_DOWNLOAD";var J="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":M=e9w;z="OFFLINE_PIN";J="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":M=lHl;z="OFFLINE_DOWNLOADING_ZERO";J="ACTION_REMOVE_WITH_PROMPT";
break;default:M=X7d,z="OFFLINE_DOWNLOAD",J="ACTION_ADD"}var R=Object.assign({},this.data);R.tooltip=M;R.accessibilityData={accessibilityData:{label:M}};R.icon={iconType:z};R.size="SIZE_DEFAULT";_.G(R.command,_.Q9)&&(_.G(R.command,_.Q9).action=J);this.set("data",R)}};
_.P.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?M="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var z;M!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.tooltip=lHl,z.accessibilityData={accessibilityData:{label:lHl}},z.icon={iconType:M},_.G(z.command,_.Q9)&&(_.G(z.command,_.Q9).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
eT.prototype.updateProgress=eT.prototype.updateProgress;eT.prototype.onTransferStateChanged=eT.prototype.onTransferStateChanged;eT.prototype.dataChanged=eT.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],eT.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"forceIconButton",void 0);
_.u([_.Y({value:!0}),_.W("design:type",Boolean)],eT.prototype,"forceIconOnly",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"overrides",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"buttonTooltipPosition",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"styleActionButton",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"disableTextTransform",void 0);
_.u([_.Y({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.W("design:type",String)],eT.prototype,"playlistId",void 0);_.u([_.Y(),_.W("design:type",Object)],eT.prototype,"data",void 0);_.u([_.Y({selector:_.zyc,selectorArgs:["playlistId"]}),_.W("design:type",Object)],eT.prototype,"downloadProgress",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],eT.prototype,"isDownloadComplete",void 0);
_.u([_.Y({selector:_.$f,selectorArgs:["playlistId"]}),_.W("design:type",String)],eT.prototype,"transferState",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],eT.prototype,"showTooltips",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],eT.prototype,"sendCommandWhenDisabled",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],eT.prototype,"disabled",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eT.prototype,"dataChanged",null);_.u([_.wH("transferState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eT.prototype,"onTransferStateChanged",null);_.u([_.wH("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eT.prototype,"updateProgress",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],eT);
_.d(eT,"ytd-download-playlist-button-renderer",function(){if(oAw!==void 0)return oAw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return oAw=M},{mode:1});var QAm;_.N7(_.iTJ,"thumbnail-overlay-button-view-model",{props:{data:_.zn,lockupExperiments:_.zn}});var QK=function(){var M=_.g.apply(this,arguments)||this;M.isSquare=!1;M.isVertical=!1;return M};
_.w(QK,_.g);QK.prototype.computeIsSquare=function(M){return M!=null&&M.thumbnail?MiN(M.thumbnail)==="SQUARE":!1};
QK.prototype.computeIsVertical=function(M){return M!=null&&M.thumbnail?MiN(M.thumbnail)==="VERTICAL":!1};
QK.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.W("design:type",Object)],QK.prototype,"isSquare",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.W("design:type",Object)],QK.prototype,"isVertical",void 0);
_.u([_.Y(),_.W("design:type",Object)],QK.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],QK);
_.d(QK,"ytd-hero-playlist-thumbnail-renderer",function(){if(QAm!==void 0)return QAm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return QAm=M},{mode:1});var Ux=function(){var M=_.g.apply(this,arguments)||this;M.isDarkTheme=!1;M.isUltraWide=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return M};
_.w(Ux,_.g);_.P=Ux.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.JF();var M;(M=_.JF().resolve(_.zw(_.BV)))!=null&&(M.headerElement=this.hostElement)};
_.P.detached=function(){var M;(M=_.JF().resolve(_.zw(_.BV)))!=null&&(M.headerElement=void 0)};
_.P.onUpdateHeader=function(M){(M=M.detail)&&this.set("data",M)};
_.P.computeTextDisplayed=function(M){if(M)return M.textDisplayed?M.textDisplayed:M.placeholder};
_.P.gradientColorToLinearGradientStop=function(M){var z=this.isDarkTheme?M.darkThemeColor:M.lightThemeColor;return z?_.qG(z)+" "+((M==null?void 0:M.startLocation)||0)*100+"%":"transparent"};
_.P.onWindowResize=function(){var M;((M=this.data)==null?0:M.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.P.onIronResize=function(M){this.isUltraWide=!M.detail.value};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.onUpdatePlaylistName=function(M){var z=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},M.detail.value));_.C4(this,function(){var J;(J=z.editableTitle)==null||J.resize()})};
_.P.onUpdatePlaylistDescription=function(M){var z=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},M.detail.value));_.C4(this,function(){var J;(J=z.editableDescriptionInlineExpander)==null||J.resize()})};
_.P.getCinematicData=function(M){return _.G(M==null?void 0:M.cinematicContainer,_.gY)};
_.rX.Object.defineProperties(Ux.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.getCinematicData(this.data))==null?void 0:M.config;return(M=this.isDarkTheme?z==null?void 0:z.darkThemeBackgroundColor:z==null?void 0:z.lightThemeBackgroundColor)?"background-color:"+_.u7(M)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var M;return _.G((M=this.data)==null?void 0:M.descriptionForm,Qaw)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J,R;return"background:linear-gradient(to bottom, "+(((R=(z=this.getCinematicData(this.data))==null?void 0:(J=z.gradientColorConfig)==null?void 0:J.map(function(D){return M.gradientColorToLinearGradientStop(D)}))==null?void 0:R.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var M;return _.CD((M=this.data)==null?void 0:M.descriptionTapText)}}});
Ux.prototype.onUpdateHeader=Ux.prototype.onUpdateHeader;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Ux.prototype,"actionHandlerBehavior",void 0);_.u([_.Qc("#description-inline-expander"),_.W("design:type",Object)],Ux.prototype,"descriptionInlineExpander",void 0);
_.u([_.Qc("#editable-description-inline-expander"),_.W("design:type",Object)],Ux.prototype,"editableDescriptionInlineExpander",void 0);_.u([_.Y(),_.W("design:type",Object)],Ux.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Ux.prototype,"isUltraWide",void 0);_.u([_.Qc("#editable-title-display"),_.W("design:type",Object)],Ux.prototype,"editableTitle",void 0);_.u([_.F("isUltraWide"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"maxDescriptionLines",null);
_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"noCinematicData",null);_.u([_.Xw("yt-new-playlist-header"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ux.prototype,"onUpdateHeader",null);_.u([_.F("data","isDarkTheme"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"backgroundStyle",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"descriptionFormData",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"getDropdownTheme",null);_.u([_.F("data","isDarkTheme"),_.W("design:type",String),_.W("design:paramtypes",[])],Ux.prototype,"gradientStyle",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Ux.prototype,"descriptionTapText",null);
_.u([_.c({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Ux);
_.d(Ux,"ytd-playlist-header-renderer",function(){if(SY5!==void 0)return SY5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SY5=M},{mode:_.B5("kevlar_poly_si_batch_j078")?1:2});var URt;var vAu;var vx=function(){return _.g.apply(this,arguments)||this};
_.w(vx,_.g);vx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vx.prototype,"data",void 0);_.u([_.c({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],vx);
_.d(vx,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(vAu!==void 0)return vAu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return vAu=M},{mode:1});var GH=function(){return _.g.apply(this,arguments)||this};
_.w(GH,_.g);
GH.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}}}}};
GH.prototype.computeUsePremiumShowStyle=function(M){if(!M||!M.items)return!1;for(var z=0;z<M.items.length;z++)if(_.G(M.items[z],cO)){var J=void 0;return((J=_.G(M.items[z],cO))==null?void 0:J.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GH.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.W("design:type",Boolean)],GH.prototype,"usePremiumShowStyle",void 0);
_.u([_.c({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],GH);
_.d(GH,"ytd-playlist-sidebar-renderer",function(){if(URt!==void 0)return URt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return URt=M},{mode:1});var GBc;var w7l;var xRd=function(M,z,J,R,D,N,Z,B){this.minWidth=M;this.minHeight=z;this.recommendedWidth=J;this.recommendedHeight=R;this.JSC$22006_maxFileSize=D;this.title=N;this.bannerGalleryTitle=Z;this.channelId=B;this.picker_=null;M=_.YS8("yt-banner");z=M.addView;J=(new Ztt("youtubebanner")).addUploadMetadata("silo_id","19");J.opts.ytMaxFileSize=this.JSC$22006_maxFileSize;R=this.recommendedHeight;J.opts.ytRecWidth=this.recommendedWidth;J.opts.ytRecHeight=R;z.call(M,J);M.addView(new _.gq);z=M.addView;J=new _.gq;
J.opts.type="ytbanner";z.call(M,J.JSC$10040_setLabel(this.bannerGalleryTitle));z=M.setTitle(this.title).setSize(1E3);z.urlParamMap_.set("thumbs","orig");J=this.minWidth;R=this.minHeight;if(isNaN(J)||isNaN(R))throw Error("gb`"+J+"`"+R);z.urlParamMap_.set("minSize",J+"x"+R);z.urlParamMap_.set("cropMode","ytcb");this.builder_=M};
xRd.prototype.open=function(){var M=this;return new _.If(function(z,J){_.S7V(M.builder_,function(R){R.action=="picked"?z(R):R.action=="cancel"&&J(Error("po"))});
M.picker_&&M.picker_.dispose();M.picker_=M.builder_.build();M.picker_.setVisible(!0)})};
xRd.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var tjm=function(M){this.channelId=M};
tjm.prototype.upload=function(M){var z="";M.viewToken&&(z=M.viewToken[2].type);var J=M.docs[0];M=J.crop;z={channel_id:this.channelId,fife_url:J.thumbnails[0].url,photo_id:J.id,is_gallery_image:z=="ytbanner"};M&&(z.crop_top=M.top,z.crop_right=M.right,z.crop_bottom=M.bottom,z.crop_left=M.left);return _.I5o("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:z})};var wa=function(){var M=_.g.apply(this,arguments)||this;M.ariaLabel=null;return M};
_.w(wa,_.g);_.P=wa.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){this.picker&&this.picker.dispose()};
_.P.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.P.computeAriaLabel=function(M){return M};
_.P.onTap=function(){var M=this,z;if((z=this.data)==null||!z.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new xRd(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 J;(J=this.picker)==null||J.open().then(function(R){M.handleBannerPicked(R)},function(){})}};
_.P.handleBannerPicked=function(M){var z=this;this.uploader||(this.uploader=new tjm(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(M).then(function(J){z.handleBannerUploadSucceeded(J)},function(J){z.handleBannerUploadFailed(J)})};
_.P.handleBannerUploadSucceeded=function(M){M&&M.errors?this.handleBannerUploadFailed(M):(_.Pv(this.hostElement,"yt-banner-updated",M),this.message=null)};
_.P.handleBannerUploadFailed=function(M){this.message=M&&M.errors&&M.errors.length?M.errors[0]:null};
wa.prototype.dataChanged=wa.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wa.prototype,"componentBehavior",void 0);_.u([_.p(_.dL),_.W("design:type",Object)],wa.prototype,"ironButtonState",void 0);_.u([_.Y(),_.W("design:type",Object)],wa.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.W("design:type",Object)],wa.prototype,"ariaLabel",void 0);
_.u([_.Y(),_.W("design:type",Object)],wa.prototype,"message",void 0);_.u([_.Y(),_.W("design:type",Object)],wa.prototype,"picker",void 0);_.u([_.Y(),_.W("design:type",Object)],wa.prototype,"uploader",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wa.prototype,"dataChanged",null);_.u([_.c({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],wa);
_.d(wa,"ytd-channel-banner-editor-renderer",function(){if(w7l!==void 0)return w7l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return w7l=M},{mode:1});var jAd;var p7G=_.Ca(["#"]),xP=function(){return _.g.apply(this,arguments)||this};
_.w(xP,_.g);xP.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.b30(p7G)};
xP.prototype.dataChanged=function(){var M=this.data;M&&M.targetId&&_.oxQ(_.sE(),M.targetId,this.moreIcon)};
xP.prototype.dataChanged=xP.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],xP.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xP.prototype,"data",void 0);_.u([_.Qc("#more-icon"),_.W("design:type",Object)],xP.prototype,"moreIcon",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xP.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],xP);
_.d(xP,"ytd-channel-tagline-renderer",function(){if(jAd!==void 0)return jAd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return jAd=M},{mode:1});var Fku;var tH=function(){return _.g.apply(this,arguments)||this};
_.w(tH,_.g);_.P=tH.prototype;_.P.ready=function(){var M=this;_.SN(this.hostElement).querySelector("#form").addEventListener("submit",function(z){M.onSubmit(z)})};
_.P.onDataChanged=function(){var M;((M=this.data)==null?0:M.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.P.onIconButtonKeydown=function(M){M.keyCode===13&&this.iconButton.click()};
_.P.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.P.openOnClickHandler=function(){this.input.focus()};
_.P.onSubmit=function(M){M.preventDefault();return!1};
_.P.submitOnEnterKeyUp=function(M){var z;if(M.keyCode===13&&((z=this.data)==null?0:z.expandedText)){M=this.data.endpoint;z=_.gu.unsafeClone(M);var J;((J=_.G(z==null?void 0:z.commandMetadata,_.X9))==null?0:J.url)?(_.G(z.commandMetadata,_.X9).url=_.$4(_.G(z.commandMetadata,_.X9).url,"query",this.data.expandedText),_.G(z,_.Gh)&&(_.G(z,_.Gh).query=this.data.expandedText),_.Pv(this.hostElement,"yt-navigate",{endpoint:z,tempData:{disableCache:!0}})):(J=new _.xN("Error: Trying to navigate to an endpoint without url",
M),_.nc(J))}};
_.P.updateDataExpandedTextFromBinding=function(M){this.set("data.expandedText",M.detail.value)};
_.rX.Object.defineProperties(tH.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
tH.prototype.onDataChanged=tH.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.tPm),_.W("design:type",Object)],tH.prototype,"ytdExpandableInputBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tH.prototype,"data",void 0);_.u([_.Qc("#input"),_.W("design:type",Object)],tH.prototype,"input",void 0);_.u([_.Qc("#icon-button"),_.W("design:type",HTMLElement)],tH.prototype,"iconButton",void 0);
_.u([_.Y(),_.W("design:type",String),_.W("design:paramtypes",[])],tH.prototype,"searchIcon",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],tH);
var z7m=_.kS()(tH,"ytd-expandable-tab-renderer",function(){if(Fku===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);Fku=M}M=Fku;return M},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var YYl;var jT=function(){var M=_.g.apply(this,arguments)||this;M.avatarSize=80;M.ariaLabel=_.e9("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return M};
_.w(jT,_.g);jT.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
jT.prototype.computeHref=function(M){var z;return((z=_.G(M,_.af))==null?0:z.url)?this.componentBehavior.computeHref_(M):null};
jT.prototype.onTap=function(){var M,z;(M=this.data)==null||!M.editAvatarServiceEndpoint||((z=_.G(this.data.editAvatarServiceEndpoint,_.af))==null?0:z.url)||_.JF().resolve(_.Rb).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.u([_.p(_.dL),_.W("design:type",Object)],jT.prototype,"ironButtonState",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],jT.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jT.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],jT.prototype,"avatarSize",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],jT.prototype,"ariaLabel",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],jT);
_.d(jT,"ytd-channel-avatar-editor",function(){if(YYl!==void 0)return YYl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return YYl=M},{mode:1});var mRl=_.Mf(function(M){var z=M.data;var J=M.noPadding;var R=M.enableBanner;var D=M.cinematicContainerTopbarOffset;var N=M.allowCinematicContainerOverflow;var Z=M.displayAsSidebar;M=M.className;_.jP(function(){z().tagManagerId&&(_.Ha(z().tagManagerId,_.HW("GL")),SgG(z().tagManagerId))},"xVTVTe");
var B=_.U3(R7m,function(){return z().pageHeaderEntityKey});
return _.T("yt-page-header-renderer",{class:_.Qe("page-header-renderer-wiz",M)},_.T(_.t_,{data:function(){var O;return((O=B())==null?0:O.header)?B().header:(Z==null?0:Z())&&z().sidebarContent?z().sidebarContent:z().content}},{pageHeaderViewModel:function(O){return _.T(_.QW2,{data:O.data,
noPadding:J,enableBanner:R,cinematicContainerTopbarOffset:D,allowCinematicContainerOverflow:N,displayAsSidebar:function(){return(Z==null?void 0:Z())&&z().enableSidebarView}})}}))},"Dj");
mRl.idomCompat=!0;_.N7(mRl,"yt-page-header-renderer",{props:{data:_.zn,noPadding:_.zn,enableBanner:_.zn,cinematicContainerTopbarOffset:_.zn,allowCinematicContainerOverflow:_.zn,displayAsSidebar:_.zn,className:_.zn}});_.N7(_.VI,"yt-image-banner-view-model",{props:{data:_.zn,isPositionRelative:_.zn}});_.N7(_.deJ,"yt-tab-group-shape",{props:{shape:_.zn}});var pi=function(){var M=_.g.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(z){return Jcc(z,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.isConstrainedList=!1;M.richGridMiniMode=!1;M.richGridStyle="RICH_GRID_STYLE_UNKNOWN";M.isRichGridShorts=!1;M.responsiveSizing="COMPACT";M.disableGridStateAware=!1;M.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return M};
_.w(pi,_.g);_.P=pi.prototype;_.P.computeHeaderDisabled=function(M,z){return z||!M||this.tabsHidden};
_.P.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.P.computeIsRichGridShorts=function(M){return M==="RICH_GRID_STYLE_SHORTS_GRID"||M==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.P.computeImageBannerViewModel=function(){var M,z;return _.G((z=_.G((M=this.data)==null?void 0:M.content,_.n9$))==null?void 0:z.banner,_.jVV)};
_.P.computeHasCinematicContainer=function(){var M,z;return!((z=_.G((M=this.data)==null?void 0:M.content,_.n9$))==null||!z.background)};
_.P.handleHeaderResize=function(){var M=_.SN(this.hostElement).querySelector("#header");M&&_.Pv(M,"iron-resize")};
_.P.handleInsertTabCommand=function(M){var z=_.G(M,pFi);z&&(z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(J){return J.tabRenderer&&J.tabRenderer.tabIdentifier===z.tabIdentifier})||this.splice("tabs",z.tabIndex||-1,0,z.tab))};
_.P.handleRefreshChannelTabAction=function(M){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===M&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.P.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Tp(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.P.observerRichGridSlimItemsPerRow=function(){_.Tp(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.P.updateCssVars=function(){this.richGridItemsPerRow&&_.Tp(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.NC("rich_grid_max_item_width",500))+16)-16+"px"})};
_.P.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Tp(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.P.onDataChanged=function(){this.handleHeaderResize()};
_.P.onWindowResize=function(){this.handleHeaderResize()};
_.P.onFocusedChanged=function(M){(M=_.b7(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.P.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.P.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.rX.Object.defineProperties(pi.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:NTw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.imageBannerViewModel)==null?void 0:M.style)==="IMAGE_BANNER_STYLE_INSET"}}});
pi.prototype.onDataChanged=pi.prototype.onDataChanged;pi.prototype.updateCssVarsForResponsiveGrid=pi.prototype.updateCssVarsForResponsiveGrid;pi.prototype.updateCssVars=pi.prototype.updateCssVars;pi.prototype.observerRichGridSlimItemsPerRow=pi.prototype.observerRichGridSlimItemsPerRow;pi.prototype.observerRichGridItemsPerRow=pi.prototype.observerRichGridItemsPerRow;_.u([_.p(_.fk),_.W("design:type",Object)],pi.prototype,"ytdGridStateAwareBehavior",void 0);
_.u([_.p(Fyl),_.W("design:type",Object)],pi.prototype,"ytdTabbedHeaderBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],pi.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],pi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],pi.prototype,"ytdReduxBehavior",void 0);_.u([_.Qc("#tabs"),_.W("design:type",Object)],pi.prototype,"tabsElement",void 0);_.u([_.Y(),_.W("design:type",Array)],pi.prototype,"tabs",void 0);_.u([_.Y(),_.W("design:type",Object)],pi.prototype,"expandableCustomTabRenderable",void 0);_.u([_.F("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],pi.prototype,"tabGroupShape",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pi.prototype,"isRichGrid",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pi.prototype,"isConstrainedList",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Object)],pi.prototype,"richGridMiniMode",void 0);_.u([_.Y({selector:function(M){return M.ui.richGridStyle}}),
_.W("design:type",Object)],pi.prototype,"richGridStyle",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.W("design:type",Object)],pi.prototype,"isRichGridShorts",void 0);_.u([_.Y({selector:_.y$}),_.W("design:type",Number)],pi.prototype,"richGridItemsPerRow",void 0);_.u([_.Y({selector:function(M){return M.ui.richGridContainerWidth}}),
_.W("design:type",Number)],pi.prototype,"richGridContainerWidth",void 0);_.u([_.Y({selector:_.ux3}),_.W("design:type",Number)],pi.prototype,"richGridSlimItemsPerRow",void 0);_.u([_.Y(),_.W("design:type",Object)],pi.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pi.prototype,"responsiveSizing",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],pi.prototype,"disableGridStateAware",void 0);
_.u([_.Y({computed:"computeImageBannerViewModel(data)"}),_.W("design:type",Object)],pi.prototype,"imageBannerViewModel",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.W("design:type",Boolean)],pi.prototype,"hasCinematicContainer",void 0);_.u([_.Y({selector:_.BfG,reflectToAttribute:!0}),_.W("design:type",Boolean)],pi.prototype,"guideIsVisibleButNotPersistent",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pi.prototype,"hasBanner",null);_.u([_.Y({reflectToAttribute:!0}),_.F("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],pi.prototype,"hasInsetBanner",null);_.u([_.Y({computed:"computeTabsHidden(tabs)",value:!0}),_.W("design:type",Boolean)],pi.prototype,"tabsHidden",void 0);
_.u([_.la("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"observerRichGridItemsPerRow",null);_.u([_.la("richGridSlimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"observerRichGridSlimItemsPerRow",null);
_.u([_.la("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"updateCssVars",null);_.u([_.la("richGridContainerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"updateCssVarsForResponsiveGrid",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pi.prototype,"onDataChanged",null);
_.u([_.c({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],pi);
_.d(pi,"ytd-tabbed-page-header",function(){if(GBc!==void 0)return GBc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return GBc=M},{mode:1});var gAN;var F1=function(){return _.g.apply(this,arguments)||this};
_.w(F1,_.g);F1.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Tp(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.rX.Object.defineProperties(F1.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var M,z;return this.componentBehavior.computeIcon_(((z=_.G((M=this.data)==null?void 0:M.badge,_.ehB))==null?void 0:z.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.badge,_.ehB))==null?void 0:z.label}}});
F1.prototype.observerRichGridItemsPerRow=F1.prototype.observerRichGridItemsPerRow;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],F1.prototype,"componentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],F1.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.hN}),_.W("design:type",Boolean)],F1.prototype,"richGridMiniMode",void 0);
_.u([_.Y({selector:_.y$}),_.W("design:type",Number)],F1.prototype,"richGridItemsPerRow",void 0);_.u([_.Y(),_.W("design:type",Object)],F1.prototype,"data",void 0);_.u([_.la("richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F1.prototype,"observerRichGridItemsPerRow",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],F1.prototype,"badgeIconName",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],F1.prototype,"badgeLabel",null);_.u([_.c({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],F1);
_.d(F1,"ytd-member-hub-profile-renderer",function(){if(gAN!==void 0)return gAN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return gAN=M},{mode:1});var sAs;var YP=function(){return _.g.apply(this,arguments)||this};
_.w(YP,_.g);YP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YP.prototype,"data",void 0);_.u([_.c({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],YP);
_.d(YP,"ytd-settings-sidebar-renderer",function(){if(sAs!==void 0)return sAs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return sAs=M},{mode:1});var nAw;var mj=function(){var M=_.g.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(z){return Jcc(z,function(){return void M.onSearchNavigate()})};
return M};
_.w(mj,_.g);mj.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
mj.prototype.onSearchNavigate=function(){this.selected=void 0};
mj.prototype.onTabsChange=function(){var M,z=(M=this.tabs)==null?void 0:M.findIndex(function(J){var R;return J==null?void 0:(R=J.tabRenderer)==null?void 0:R.selected});
z!==void 0&&(this.selected=z)};
mj.prototype.onTabsActive=function(M){if(this.tabs!==void 0){var z,J;(M=(z=this.tabs[M.detail.selected])==null?void 0:(J=z.tabRenderer)==null?void 0:J.endpoint)&&_.Pv(this.hostElement,"yt-navigate",{endpoint:M})}};
_.rX.Object.defineProperties(mj.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:NTw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
mj.prototype.onTabsChange=mj.prototype.onTabsChange;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.fk),_.W("design:type",Object)],mj.prototype,"ytdGridStateAwareBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],mj.prototype,"ytdGuideStateAwareBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],mj.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],mj.prototype,"tabs",void 0);_.u([_.Y(),_.W("design:type",Number)],mj.prototype,"selected",void 0);_.u([_.F("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],mj.prototype,"tabGroupShape",null);_.u([_.Y(),_.W("design:type",Object)],mj.prototype,"expandableCustomTabRenderable",void 0);
_.u([_.F("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mj.prototype,"tabsEnabled",null);_.u([_.wH("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mj.prototype,"onTabsChange",null);_.u([_.c({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],mj);
_.d(mj,"ytd-topic-channel-details-renderer",function(){if(nAw!==void 0)return nAw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nAw=M},{mode:1});var h9G;var sx=function(){var M=_.g.apply(this,arguments)||this;M.disableGridStateAware=!1;return M};
_.w(sx,_.g);sx.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]]"}}}}}};
sx.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
sx.prototype.updateCssVars=function(){_.Tp(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.NC("rich_grid_max_item_width",500))+16)-16+"px"})};
sx.prototype.updateCssVars=sx.prototype.updateCssVars;sx.prototype.activeChanged=sx.prototype.activeChanged;_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],sx.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],sx.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sx.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],sx.prototype,"tabs",void 0);_.u([_.Y(),_.W("design:type",Boolean)],sx.prototype,"active",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],sx.prototype,"disableGridStateAware",void 0);
_.u([_.Y({selector:_.y$}),_.W("design:type",Number)],sx.prototype,"richGridItemsPerRow",void 0);_.u([_.Y({selector:_.hN}),_.W("design:type",Boolean)],sx.prototype,"richGridMiniMode",void 0);_.u([_.Qc("ytd-carousel-item-renderer"),_.W("design:type",Object)],sx.prototype,"carousel",void 0);_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sx.prototype,"activeChanged",null);
_.u([_.la("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sx.prototype,"updateCssVars",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],sx);
_.d(sx,"ytd-carousel-header-renderer",function(){if(h9G!==void 0)return h9G;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return h9G=M},{mode:1});var yWw;var HVw=_.Ca(["https://www.google-analytics.com/analytics.js"]),ni=function(){var M=_.g.apply(this,arguments)||this;M.scriptAnalyticsAdded=!1;return M};
_.w(ni,_.g);ni.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var M,z=(M=this.data)==null?void 0:M.tagManagerId;z&&(_.Ha(z,_.HW("GL")),SgG(z))};
ni.prototype.sendGoogleAnalyticsPageview=function(M){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var J=_.H4.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(J)};
var z=window.ga;z("set","page",window.location.pathname);z.l=+new Date;z("set","forceSSL",!0);z("create",M,"'auto'");z("send","pageview")};
ni.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var M=_.lm("SCRIPT");M.name="ga-analytics";var z=_.Nx(HVw);_.is(M,z);M.async=!0;_.SN(this.hostElement).appendChild(M)};
ni.prototype.dataChanged=ni.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],ni.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ni.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],ni);
_.d(ni,"ytd-channel-metadata-renderer",function(){if(yWw!==void 0)return yWw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yWw=M},{mode:1});var cWu;var dRu;var hH=function(){var M=_.g.apply(this,arguments)||this;M.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return M};
_.w(hH,_.g);_.P=hH.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.P.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.P.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.computeAlertStyle_=function(M){return M};
_.P.observerElementsPerRow=function(){this.elementsPerRow&&_.Tp(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.P.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.P.requestElementsPerRow=function(){_.Pv(this.hostElement,"yt-request-elements-per-row")};
hH.prototype.onIsVisibleChanged_=hH.prototype.onIsVisibleChanged_;hH.prototype.observerElementsPerRow=hH.prototype.observerElementsPerRow;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],hH.prototype,"actionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],hH.prototype,"data",void 0);_.u([_.Y({value:6,reflectToAttribute:!0}),_.W("design:type",Number)],hH.prototype,"elementsPerRow",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],hH.prototype,"wrapButtons",void 0);_.u([_.Y({value:_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],hH.prototype,"isMusic",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.W("design:type",String)],hH.prototype,"alertStyle",void 0);_.u([_.Y({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.W("design:type",Function)],hH.prototype,"dismissBoundButtonTap_",void 0);_.u([_.Y({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.W("design:type",Function)],hH.prototype,"acceptBoundButtonTap_",void 0);_.u([_.la("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hH.prototype,"observerElementsPerRow",null);_.u([_.la("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hH.prototype,"onIsVisibleChanged_",null);_.u([_.cU({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],hH);
_.d(hH,"yt-alert-with-actions-renderer",function(){if(dRu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;cWu===void 0&&(cWu=document.createElement("template"));var R=cWu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dRu=M}M=dRu;return M},{mode:2});_.N7(_.Mf(function(M){function z(Q){var v={};return _.T(_.m3,{text:Q,className:_.Qe("ytPersonalGreetingViewModelHeadline",(v.ytPersonalGreetingViewModelHeadlineSmall=function(){return B()===48},v))})}
function J(Q,v){return _.T("span",{el:Q,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},z(v))}
var R=_.zL(_.uE(function(){var Q;return(Q=M.data())==null?void 0:Q.rendererContext},void 0,void 0,void 0,!0)),D=_.AL("span"),N=_.AL("span"),Z=function(){return M.data().canvasPromoData},B=function(){var Q;
return(Q=M.data().bannerHeight)!=null?Q:56},O=_.a9R(R,{throttleMs:100}),X=_.a9R(D,{throttleMs:100}),l=_.a9R(N,{throttleMs:100}),e=function(){return X.width()-O.width()>1};
return _.T("yt-personal-greeting-view-model",{el:R,"aria-hidden":e,class:_.Qe(M.className,"ytPersonalGreetingViewModelHost"),style:_.UN({height:(0,_.cB)(function(){return e()?0:B()})})},_.T(_.I,{cond:function(){return M.data().avatar&&!(l.width()+(M.data().avatar?48:0)-O.width()>1)},
then:function(){return _.T(_.t_,{data:function(){return M.data().avatar}},{decoratedAvatarViewModel:function(Q){return _.T(_.Km,{data:Q.data,
className:_.Qe("ytPersonalGreetingViewModelAvatar")})}})}}),_.T("h1",null,z(function(){var Q;
return(Z==null?void 0:(Q=Z())==null?void 0:Q.headline)||(l.width()+(M.data().avatar?48:0)-O.width()>1?M.data().shorterGreeting:M.data().greeting)})),J(N,function(){return M.data().greeting}),J(D,function(){return M.data().shorterGreeting}))},"Ej"),"yt-personal-greeting-view-model",{props:{data:_.zn,
className:_.zn}});var yK=function(){var M=_.g.apply(this,arguments)||this;M.hidden=!1;M.isConstrainedList=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.responsiveSizing="COMPACT";M.attachedPlayers=_.U("kevlar_channel_trailer_multi_attach")?[]:void 0;M.player=null;M.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return M};
_.w(yK,_.g);_.P=yK.prototype;
_.P.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.P.created=function(){var M=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){M.disposeMastheadAd()}]};
_.P.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new g0l(this.refresh,this.contents))};
_.P.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.P.activeChanged=function(){var M=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=M)};
_.P.tabsChanged=function(){var M=this,z,J;if(this.pageSubtype==="channels"||_.U("kevlar_tab_gestures_for_tabbed_header_data")&&((z=this.data)==null?0:(J=z.header)==null?0:J.carouselHeaderRenderer))this.tabGestures=new K0(this.contents,this.contents,this.hostElement,this.header,function(Z){M.ytdReduxBehavior.dispatch(Z)});
var R,D,N;z=(R=this.data)==null?void 0:(D=R.contents)==null?void 0:(N=D.twoColumnBrowseResultsRenderer)==null?void 0:N.tabs;this.tabGestures&&this.tabGestures.tabsChanged(z)};
_.P.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.P.engagementPanelsChanged=function(){var M=_.JF().resolve(_.nx);if(M){if(this.engagementPanels)for(var z=_.S(this.engagementPanels),J=z.next();!J.done;J=z.next()){var R=void 0;(J=(R=J.value.identifier)==null?void 0:R.tag)&&M.panelMap.delete(J)}this.engagementPanels=[];var D;z=_.S(((D=this.data)==null?void 0:D.panels)||[]);for(D=z.next();!D.done;D=z.next()){D=_.G(D.value,_.zEc);var N=J=void 0,Z=void 0,B=void 0;if(R=((J=D)==null?void 0:J.targetId)||((N=D)==null?void 0:N.panelIdentifier)||((Z=D)==
null?void 0:(B=Z.identifier)==null?void 0:B.tag))N=J=void 0,(N=(J=M).registerPanelContent)==null||N.call(J,R,{engagementPanelSectionListRenderer:D}),this.engagementPanels.push(D)}}};
_.P.onStampFinished=function(){var M=this;_.C4(this,function(){if(M.tabGestures){var z=M.tabGestures;if(z.scrollPositionNeedsUpdate){var J=_.JF().resolve(_.zw(_.M6)),R;if((R=z.selectedTab)!=null&&R.title&&J&&(R=J.getCurrentPage())){if(z.scrollPositionForTabs.has(z.selectedTab.title)){var D,N;J=(N=(D=J.getCurrentPage())==null?void 0:D.clientHeight)!=null?N:0;D=z.scrollPositionForTabs.get(z.selectedTab.title);R.setScrollTop(D);J>D+100&&(z.scrollPositionNeedsUpdate=!1)}else R.setScrollTop(Math.min(z.lastVisitedTabScrollPosition!==
void 0?z.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,z.tabsStartAtInPx)),z.scrollPositionNeedsUpdate=!1;z.ytdReduxDispatch(Phu(!1))}}}})};
_.P.loadPage_=function(M){this.initCsi();M&&(this.data=M);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.P.getTitle=function(M){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",M))return this.get("microformat.microformatDataRenderer.title",M);if(this.get("header.feedTabbedHeaderRenderer.title",M))return _.CD(this.get("header.feedTabbedHeaderRenderer.title",M));if(this.get("header.interactiveTabbedHeaderRenderer.title",M))return this.get("header.interactiveTabbedHeaderRenderer.title",M);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
M))return _.CD(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",M));var z,J;return(M==null?0:(z=M.header)==null?0:(J=z.pageHeaderRenderer)==null?0:J.pageTitle)?M.header.pageHeaderRenderer.pageTitle:""};
_.P.updateTitle=function(M){_.Pv(this.hostElement,"yt-update-title",this.getTitle(M))};
_.P.initCsi=function(){_.hf(this.pageSubtype||"browse",["ol","cpt"])};
_.P.getPlayer=function(){if(_.U("kevlar_channel_trailer_multi_attach")){for(var M=_.S(this.attachedPlayers),z=M.next();!z.done;z=M.next())if(z=z.value,z.isConnected||_.dS(this.hostElement,z))return z;return null}return this.player};
_.P.getPlayerContainer=function(){return null};
_.P.onPlayerAttached=function(M,z){_.U("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(z):this.player=z};
_.P.onPlayerDetached=function(M,z){_.U("kevlar_channel_trailer_multi_attach")?(M=this.attachedPlayers.indexOf(z),M<0||this.attachedPlayers.splice(M,1)):this.player=null};
_.P.getServiceTrackingParams=function(){var M,z;return((M=this.data)==null?void 0:(z=M.responseContext)==null?void 0:z.serviceTrackingParams)||[]};
_.P.setMastheadAd=function(M){M&&M.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=M&&M.mastheadAd};
_.P.dataChanged=function(){var M=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.aiw();_.C4(this,function(){_.ZL(M.hostElement,"ytd-update-grid-state-action")})};
_.P.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.P.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(z){return!!z.alertWithActionsRenderer})}};
_.P.computeGreetingData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(z){return!!z.personalGreetingViewModel})}};
_.P.computeHasMemberHubProfileRenderer=function(M){var z;return!!(M==null?0:(z=M.header)==null?0:z.memberHubProfileRenderer)};
_.P.handleAlertCommand=function(M){this.get("alertCommand.alert.alertWithActionsRenderer",M)&&(M=_.G(M,lxu),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",M.alert))};
_.P.handleYtPlaylistDeletionRedirect=function(M){M=this.get("playlistDeletionRedirectCommand.redirectEndpoint",M);_.Pv(this.hostElement,"yt-navigate",{endpoint:M})};
_.P.computeFluidWidth=function(M,z,J){if(z==="mini_app"||J)return!0;var R,D,N;M=M==null?void 0:(R=M.contents)==null?void 0:(D=R.twoColumnBrowseResultsRenderer)==null?void 0:(N=D.tabs)==null?void 0:N.find(function(O){var X;return O==null?void 0:(X=O.tabRenderer)==null?void 0:X.selected});
if(!M)return!1;var Z,B;return!!((Z=M.tabRenderer)==null?0:(B=Z.content)==null?0:B.richGridRenderer)&&!["channel","channels","playables"].includes(z)};
_.P.computeHeaderFluidWidth=function(M){return M==="hashtag-landing-page"};
_.P.computeHasSidebar=function(M){var z;return!!(M.sidebar||((z=M.header)==null?0:z.playlistHeaderRenderer))};
_.P.computeHasPageHeaderSidebar=function(M){var z,J;return!!((z=M.header)==null?0:(J=z.pageHeaderRenderer)==null?0:J.enableSidebarView)};
_.P.computeUseUnifiedShowPageLayout=function(M){if(!M||this.pageSubtype!=="show"||!M.sidebar||!M.sidebar.playlistSidebarRenderer)return!1;M=M.sidebar.playlistSidebarRenderer;if(!M.items)return!1;for(var z=0;z<M.items.length;z++)if(_.G(M.items[z],cO)){var J=void 0;return((J=_.G(M.items[z],cO))==null?void 0:J.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P.computeIsConstrainedList=function(M){return _.U("web_enable_constrained_list_subscriptions_channels")&&M==="subscriptions-channels"};
_.P.computeResponsiveSizing=function(M){return M==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.rX.Object.defineProperties(yK.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z;return((M=this.data)==null?0:(z=M.header)==null?0:z.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var M,z;if(!((M=this.data)==null?0:(z=M.sidebar)==null?0:z.playlistSidebarRenderer))return!1;var J;return(J=this.data)!=null&&J.header?!1:!0}}});
_.rX.Object.defineProperties(yK,{template:{configurable:!0,enumerable:!0,get:function(){if(h7G===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);h7G=M}M=h7G;return M}}});
yK.prototype.dataChanged=yK.prototype.dataChanged;yK.prototype.onPlayerDetached=yK.prototype.onPlayerDetached;yK.prototype.onPlayerAttached=yK.prototype.onPlayerAttached;yK.prototype.onStampFinished=yK.prototype.onStampFinished;yK.prototype.engagementPanelsChanged=yK.prototype.engagementPanelsChanged;yK.prototype.scrollAtTopChanged=yK.prototype.scrollAtTopChanged;yK.prototype.tabsChanged=yK.prototype.tabsChanged;yK.prototype.activeChanged=yK.prototype.activeChanged;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],yK.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],yK.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.yJ.YtPageBehavior),_.W("design:type",Object)],yK.prototype,"ytPageBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],yK.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yK.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yK.prototype,"hidden",void 0);
_.u([_.Y(),_.W("design:type",Object)],yK.prototype,"mastheadAdData",void 0);_.u([_.Y({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.W("design:type",Object)],yK.prototype,"alertBannerData",void 0);_.u([_.Y({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.W("design:type",Object)],yK.prototype,"greetingData",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],yK.prototype,"pageSubtype",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.W("design:type",Boolean)],yK.prototype,"hasMemberHubProfileRenderer",void 0);_.u([_.Y({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yK.prototype,"hasSidebar",void 0);_.u([_.Y({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yK.prototype,"hasPageHeaderSidebar",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],yK.prototype,"roundedContainer",void 0);_.u([_.Y({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],yK.prototype,"useUnifiedShowPageLayout",void 0);_.u([_.Y({computed:"computeIsConstrainedList(pageSubtype)"}),_.W("design:type",Object)],yK.prototype,"isConstrainedList",void 0);
_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yK.prototype,"usePlaylistHeaderRenderer",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yK.prototype,"useOldPlaylistSidebarRenderer",null);_.u([_.Y({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.W("design:type",Boolean)],yK.prototype,"fluidWidth",void 0);_.u([_.Y({selector:function(M){return M.ui.scrollAtTop}}),
_.W("design:type",Boolean)],yK.prototype,"scrollAtTop",void 0);_.u([_.Y({selector:_.Oqw}),_.W("design:type",Boolean)],yK.prototype,"tabGesturesIsActive",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yK.prototype,"darkerDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.W("design:type",Boolean)],yK.prototype,"disableHeaderFluidWidth",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.W("design:type",String)],yK.prototype,"responsiveSizing",void 0);_.u([_.Qc("ytd-two-column-browse-results-renderer"),_.W("design:type",HTMLElement)],yK.prototype,"contents",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],yK.prototype,"header",void 0);_.u([_.Qc("ytd-refresh"),_.W("design:type",Object)],yK.prototype,"refresh",void 0);
_.u([_.la("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"activeChanged",null);_.u([_.la("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"tabsChanged",null);_.u([_.la("scrollAtTop"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"scrollAtTopChanged",null);
_.u([_.Y(),_.W("design:type",Object)],yK.prototype,"engagementPanels",void 0);_.u([_.la("data.panels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"engagementPanelsChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"onStampFinished",null);
_.u([_.Xw("yt-player-attached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],yK.prototype,"onPlayerAttached",null);_.u([_.Xw("yt-player-detached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],yK.prototype,"onPlayerDetached",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-browse"})],yK);_.oQ.registerService(_.WBH,yK);
_.gS();
}catch(e){_._DumpException(e)}
try{
_.mq("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 GD,pNw,F6l,YFm,mSN,g2u,sOw,n25,hJw,y1l,H4w,c1v,K6l,$Sv,qFN,W6w,a35,E2m,f35,L6w,A1s,ww,C45,xJ,b4w,r1l,Mnl,zMG,Juw,DIs,PSG,RMc,dSw,SKv,Zuw,ki5,BMt,Oul,TMv,XsN,lQl,eMl,QTl,vll,Giw,xIt,jTd,psl,F4c,mIc,sTc,nls,hMN,yui,Huc,cuw,dIw,K4i,$Iw,ujw,qK5,W4m,aQd,VnN,Eli,fQl,L4t,Aud,iuc,buu,ruN,M9c,z45,Jdc,R4N,Dsu,NEl,P3s,Sfu,ZYv,kVl,BEc,OYu,TEG,ILN,oQG,Xvw,lLl,e45,Qnl,Usd,vQv,GVN,wvl,xsl,t9l,jnl,pvN,FVm,h8,Yfi,mst,gQ5,nQ5,h4u,ydc,HYw,cdw,dsu,KVu,qfd,C3l,zbl,JNw,Shm,ZDw,Pdt,Dvi,TAs,XAw,Grs,Rbw,ebl,I8u,$J,xvm,
pAw,mvu,Fpl,YhN,gft,yNm,nfw,HDl,cNc,hbu,ssv,dvN,a7,V2,a8G,VgN,E0,Ef5,f8v,Lpu,Mem,z8G,fg,Lg,R8v,J9c,DGd,NBl,P75,A8,ik,Cg,oVG,XPi,lSi,rw,GhN,e85,vVG,wPs,Qzs,tet,UGv,FQc,jzt,pPu,M_,mGt,YAs,h8w,dGw,Dj,N_,HXG,$Gs,c9w,KQG,S8,kZ,B1,Or,SVs,C7w,BHl,Ods,THs,IEw,XUd,EVc,fSs,o6,A9d,Tv,I6,iXd,ozw,Zdl,LQG,l6,efi,Quu,U3w,Gpc,x3c,tNu,jud,pUu,YVd,Fxs,gzw,suv,hfv,yJd,cJt,d3u,Kxm,$3w,uww,Wxl,aE5,VNt,Ezi,fEd,LxN,AJi,Cam,bdu,rJc,M5N,ztw,Rtl,Jhl,Dfd,Nvs,Qm,P5w,SUv,Ur,Ze5,kmu,Bvw,OeN,Tvw,Ifm,oSl,X5l,lfG,QE5,v1,Uft,vSw,
xfd,jEw,p55,YUu,FKv,mfd,gS5,sEt,hti,yhi,Hem,chi,dfG,KKw,$fi,uHw,qUw,WK5,afw,V5l,Ahu,ieN,ffm,LKm,ESu,C5l,Mhv,bel,rhw,RUi,zUl,JMG,D7N,N4l,PPs,SNw,kLv,B4m,Onw,Ivl,onl,lv5,Ql5,vnw,wSm,thw,pSd,YNt,gnt,hUN,yMd,Hnl,d7w,cMs,$7N,uYw,qNt,WNm,wD,avt,Vhm,EnG,J_G,D6w,NZi,k_i,BZl,Ofw,TZu,oCG,IU5,Xnv,lUl,e$w,Q9c,U6v,y2,vCd,FW,GLw,G_l,wnG;
GD=function(M){if(!M)return"browse";var z=M.page,J=M.url,R,D,N,Z=(R=M.response)==null?void 0:(D=R.responseContext)==null?void 0:(N=D.webResponseContextExtensionData)==null?void 0:N.pageTheme;if(Z)z=Z.toLowerCase().replace(/_/g,"-");else if(z!=="watch"&&z!=="learning_journey_watch"){var B,O;if((z==="browse"||z==="settings")&&((B=M.response)==null?0:(O=B.sidebar)==null?0:O.settingsSidebarRenderer))z="WEB_PAGE_TYPE_SETTINGS";else{var X,l;z==="browse"&&((X=M.response)==null?0:(l=X.metadata)==null?0:l.channelMetadataRenderer)?
z="channel":J&&(z=_.UA(J)||z)}}return z};
pNw=function(){var M=_.qH("yt.aba.att");return M?M:_.Im.instance!==void 0?_.Im.instance.rif.bind(_.Im.instance):null};
F6l=function(M,z){var J;return _.k(function(R){return(J=pNw())?R.return(J(M,z,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
YFm=function(M,z,J,R,D){z=z===void 0?[]:z;D=D?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:D}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.JN(M),dialogMessages:z.map(function(N){return _.JN(N)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.JN(J),serviceEndpoint:D}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.JN(R)}}}}}};
mSN=function(M){var z=!!_.Am().queueProxy;var J,R,D;M=M==null?void 0:(J=M.response)==null?void 0:(R=J.currentVideoEndpoint)==null?void 0:(D=R.watchEndpoint)==null?void 0:D.playlistId;return!(!z&&!M)};
g2u=function(M,z){var J=_.x9();if(mSN(M))return J.playlistWatchPageActivation=!0;switch(GD(z)){case "yts-products":return J.productDetailsPageActivation=!0;case "mini_app":return J.miniAppPageActivation=!0;case "playables":return J.playablesDestPageActivation=!0;default:return!1}};
sOw=function(M,z,J){for(var R=typeof M==="string"?M.split(""):M,D=M.length-1;D>=0;--D)D in R&&z.call(J,R[D],D,M)};
n25=function(M,z){z=_.voH(M,z);z>=0&&_.xbH(M,z)};
hJw=function(M){return Array.prototype.concat.apply([],arguments)};
y1l=function(M){var z=0;z=z===void 0?0:z;if(!_.E$(M))throw _.bG("uint64");var J=typeof M;switch(z){case 512:switch(J){case "string":return _.puH(M);case "bigint":return String((0,_.kG)(64,M));default:return _.ta3(M)}case 1024:switch(J){case "string":return _.F$G(M);case "bigint":return _.hS((0,_.kG)(64,M));default:return _.jkn(M)}case 0:switch(J){case "string":return _.puH(M);case "bigint":return _.hS((0,_.kG)(64,M));default:return _.xBn(M)}default:return _.uJ(z,"Unknown format requested type for int64")}};
H4w=function(M){M!=null&&(M=M.JSC$8786_value_||"",M=typeof M==="string"?M:new Uint8Array(M));return M};
c1v=function(M,z){if(/-[a-z]/.test(z))return null;if(_.cia&&M.dataset){if(_.Opb()&&!(z in M.dataset))return null;M=M.dataset[z];return M===void 0?null:M}return M.getAttribute("data-"+_.Q5(z))};
K6l=function(){var M=dSw;_.qH("yt.ads.biscotti.getId_")||_.b9("yt.ads.biscotti.getId_",M)};
$Sv=function(M){_.b9("yt.ads.biscotti.lastId_",M)};
qFN=function(){var M={};for(_.YN=new uKi(M.handleError===void 0?_.hL:M.handleError,M.logEvent===void 0?_.gP:M.logEvent);_.mo.length>0;)switch(M=_.mo.shift(),M.type){case "ERROR":_.YN.logError(M.payload);break;case "EVENT":_.YN.logEvent(M.eventType,M.payload)}};
W6w=function(M,z,J){return _.dvb(function(R){return J?R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)&&J.includes(R.publicName):R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)},z)};
a35=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return z=_.Gw("YtIdbMeta hasAnyMeta other"),R.yield(_.dvb(function(D){return D.userIdentifier!==void 0&&D.userIdentifier!==z},M),2);
J=R.yieldResult;return R.return(J.length>0)})};
E2m=function(M,z){V_G||(V_G=_.no.addLowPriorityJob(function(){var J,R,D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:return B.yield(_.rQ(),2);case 2:J=B.yieldResult;if(!J)return B.return();R=!0;_.Io(B,3);return B.yield(W6w(M,J,z),5);case 5:D=B.yieldResult;if(!D.length){R=!1;B.jumpTo(6);break}N=D[0];return B.yield(_.Vy(N.actualName),7);case 7:return B.yield(_.LK(N.actualName,J),6);case 6:_.ab(B,4);break;case 3:Z=_.Qa(B),_.gQ(Z),R=!1;case 4:_.no.cancelJob(V_G),V_G=0,R&&E2m(M,z),_.UI(B)}})}))};
f35=function(){var M;return _.k(function(z){return z.nextAddress==1?z.yield(_.rQ(),2):(M=z.yieldResult)?z.return(a35(M)):z.return(!1)})};
L6w=function(M){var z=100;z=z===void 0?500:z;var J,R,D,N,Z,B;return _.k(function(O){return O.nextAddress==1?(J=_.HW("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[J,(0,_.zU)()-2592E6],D=[J,(0,_.zU)()],N=IDBKeyRange.bound(R,D),O.yield(_.Bvp(M),2)):O.nextAddress!=3?(Z=O.yieldResult,B=[],O.yield(_.fK(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(X){B.length=0;return _.Jo(X.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:N,direction:"prev"},function(l){if(l.getValue()&&B.length<
z)return B.push(l.getValue()),l.delete().then(function(){return l.continue()})})}),3)):O.return(B)})};
A1s=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.rQ(),2);M=z.yieldResult;if(!M||!_.wQ()&&!_.U("nwl_init_require_datasync_id_killswitch")||!_.mfw())return z.jumpTo(0);_.sEY=!0;_.gS8.isNwlInitialized=_.sEY;return z.yield(_.DIV().awaitInitialization(),0)})};
ww=function(M,z){_.LKp[M]=!0;var J=_.Dh();J&&J.publish.apply(J,arguments);_.LKp[M]=!1};
C45=function(){if(_.juw()&&!i4m){var M=function(J){J=J.data;if(J.op==="serializedGelBatch"){var R=_.AMG.get(J.key);R&&(_.CP8(J.serializedBatch,R.client,R.resolve,R.networklessOptions,R.isIsolated,R.useVSSEndpoint,R.dangerousLogToVisitorSession,R.requestsOutstanding),_.AMG.delete(J.key))}},z=_.tNH();
z&&(z.addEventListener("message",M),z.onerror=function(){_.AMG.clear()});
i4m=!0}};
xJ=function(){this.relativeTimeStart_=_.Ss()};
b4w=function(M,z){M!=null&&this.append.apply(this,arguments)};
r1l=function(){return _.$l("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Mnl=function(M,z,J){J=J===void 0?!1:J;var R,D,N,Z,B;return _.k(function(O){switch(O.nextAddress){case 1:_.U7("SOCS",M,34128E3,"youtube.com",!0);if(_.lN)return D=fetch(z,{method:"POST",mode:_.EK(z),credentials:_.V5(z),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),N=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.EK("/upgrade_visitor_cookie?eom=1"),credentials:_.V5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),O.yield(Promise.all([D,N]).then(function(X){return X[1]}),5);
fetch(z,{method:"POST",mode:_.EK(z),credentials:_.V5(z),cache:"no-store",headers:{"Content-Type":"text/plain"}});return O.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.EK("/upgrade_visitor_cookie?eom=1"),credentials:_.V5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:R=O.yieldResult;O.jumpTo(3);break;case 5:R=Z=O.yieldResult;case 3:if(!R.ok)throw Error("lf");return O.yield(R.text(),7);case 7:B=O.yieldResult,
!B.includes('"state_switch":true')&&!J||B.includes("skip_reload_for_test")||window.location.reload(),_.UI(O)}})};
zMG=function(M){return _.k(function(z){return z.nextAddress==1?z.yield(Mnl(M.socsCookie,M.savePreferenceUrl,!0),2):z.return()})};
Juw=function(M){return _.k(function(z){return z.nextAddress==1?z.yield(Mnl(M.socsCookie,M.savePreferenceUrl),2):z.return()})};
DIs=function(M){M=M.xhr.responseText;if(!_.PY(M,")]}'"))throw new t8;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new t8;M=M.id;$Sv(M);jy=_.r$(M);RMc(18E5,2);return M};
PSG=function(M,z){z=new NMm(z);$Sv("");jy=_.fJa(z);M>0&&RMc(12E4,M-1);throw z;};
RMc=function(M,z){_.BJ(function(){_.TXw().then(DIs,function(J){return PSG(z,J)}).thenCatch(_.xi)},M)};
dSw=function(){var M=_.XNi();if(M!==void 0)return _.gv(M);jy||(jy=_.TXw().then(DIs).thenCatch(function(z){return PSG(2,z)}));
return jy};
SKv=function(){var M=document;return _.he(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in M})};
Zuw=function(M){M.addEventListener("click",function(z){var J=z.target;J&&J.getAttribute("href")&&(J=J.getAttribute("href"),_.VZ(window,J,"_blank"),z.preventDefault(),z.stopImmediatePropagation())})};
ki5=function(M){var z,J,R,D=(R=(J=((z=M.mainDownloadsListEntity)!=null?z:{})[_.n98])==null?void 0:J.refresh)!=null?R:"",N;M=(N=M.refresh)==null?void 0:N[D];D=M!=null?M:{};return(D==null?0:D.refreshTime)?Number(D==null?void 0:D.refreshTime):0};
BMt=function(M,z){var J=_.Yf(M);return z.every(function(R){var D;R=R==null?void 0:(D=R.playbackDataEntity)==null?void 0:D.key;if(!R)return!1;D=_.Tr(_.kf(R).entityId,"mainVideoEntity");return!!J[D]})};
Oul=function(M){M=_.jg(M.entities);return _.fBp(M).length};
TMv=function(M,z){if(z){var J;M=(J=_.Is(M.entities,"downloadQualityPickerEntity",z))!=null?J:void 0}else M=void 0;return M};
XsN=function(){IQs||(_.AN=_.sQ0,IQs=new ol5);return IQs};
lQl=function(M){var z=document.getElementsByTagName("ytd-enforcement-message-view-model");z.length===0||getComputedStyle(z[0]).display==="none"?M(0,"p.h_"):M(1,"p.h_")};
eMl=function(){pg=0;var M=[_.t9(!0)];FD&&_.ZL(FD,"yt-window-resized",M)};
QTl=function(){pg||(pg=_.no.addLowPriorityJob(eMl,200))};
vll=function(){YJ=0;UIt=_.dBQ(document);var M=[UIt];FD&&_.ZL(FD,"yt-window-scrolled",M)};
Giw=function(){YJ||(YJ=_.no.addLowPriorityJob(vll,200))};
xIt=function(M){M=M===void 0?null:M;wsi.push(_.Mp(window,"resize",QTl));wsi.push(_.Mp(window,"scroll",Giw));M&&(FD=M)};
jTd=function(){var M={isWide:_.Qy.get("wide","0")==="1"},z=_.vv();if(z=z.getFlag(165)||z.getFlag(174))M.theme=_.gB(!0);if(_.wH3()){var J=_.mQ()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";M.systemTheme=J}!z&&_.U("parent_tools_enable_app_settings")&&_.fh(window.location.href).theme!==void 0&&(M.theme=_.gB());if((z=mr)?!_.gu.equals(z,M):M)z={currentValue:M},tnl&&(z.timeSinceLastSnapshotSecs=Math.round(((0,_.zU)()-tnl)/1E3)),mr&&(z.previousValue=mr),_.gP("appSettingsCaptured",z),mr=M,tnl=
(0,_.zU)()};
psl=function(M){_.k(function(z){if(z.nextAddress==1)return z.yield(M.delete("yt-appshell-assets"),2);_.UI(z)})};
F4c=function(M){return _.E7((0,_.xOS)(),M)};
mIc=function(){var M;_.k(function(z){return z.nextAddress==1?z.yield(gw.getInstance(),2):(M=z.yieldResult)?z.yield(YKu(M),0):z.jumpTo(0)})};
sTc=function(){var M;_.k(function(z){return z.nextAddress==1?z.yield(s0.getInstance(),2):(M=z.yieldResult)?z.yield(gll(M),0):z.jumpTo(0)})};
nls=function(M){psl(M);mIc();sTc()};
hMN=function(M){var z,J;return _.k(function(R){if(R.nextAddress==1)return R.yield(_.V0p(M),2);if(z=R.yieldResult){var D;a:{if(z.headers&&(D=z.headers.get("date"))&&(D=Date.parse(D),!isNaN(D))){D=Math.round((0,_.zU)()-D);break a}D=-1}J=D;if(J>-1)return R.return(J)}return R.return(-1)})};
yui=function(){var M=_.R3.caches,z=_.cW("IS_SHELL_LOAD"),J,R;_.k(function(D){if(D.nextAddress==1)return J=-1,z?D.yield(hMN(M),3):(R=_.pY(),J=Math.round((0,_.zU)()-R),D.jumpTo(2));D.nextAddress!=2&&(J=D.yieldResult);J>=0&&J<2147483648&&_.sf({appInstallDataAgeMs:J});_.UI(D)})};
Huc=function(M){var z=_.um(_.R3.location.href),J={};"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(R){var D=z.JSC$9998_queryData_.getValues(R);if(D==null?0:D.length)J[R]=D});
return _.Pj(M,new Map(Object.entries(J)))};
cuw=function(M){M=M.match(/(.*)::.*::.*/);if(M!==null)return M[1]};
dIw=function(M){if(_.kPR()){var z=Object.keys(window.localStorage);z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=cuw(J);R===void 0||M.includes(R)||self.localStorage.removeItem(J)}}};
K4i=function(){if(!_.kPR())return!1;var M=_.Gw(),z=Object.keys(window.localStorage);z=_.S(z);for(var J=z.next();!J.done;J=z.next())if(J=cuw(J.value),J!==void 0&&J!==M)return!0;return!1};
$Iw=function(M){return _.I7("NotificationsDisabled",M)};
ujw=function(){return Notification.permission!="granted"?Promise.resolve():_.Tfv().then(function(M){return M?M.pushManager.getSubscription().then(function(z){if(z)return Promise.resolve();z={userVisibleOnly:!0,applicationServerKey:_.Ae("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return M.pushManager.subscribe(z).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
qK5=function(M){return _.Tfv().then(function(z){if(!z||!z.active)return Promise.reject(new _.xN("serviceworker.postMessage",M,z));try{return z.active.postMessage(M),Promise.resolve()}catch(J){return Promise.reject(J)}})};
W4m=function(){qK5({type:"notifications_register",data:_.HW("ID_TOKEN")})};
aQd=function(){if(!_.cW("LOGGED_IN"))return Promise.resolve(!1);var M=_.Sz("service_worker_push_force_notification_prompt_tag");return M?_.UJ("PromptTags").then(function(z){if(!z)return!0;var J=[];try{J=JSON.parse(z)}catch(R){return!1}return J&&J.indexOf(M)==-1}):Promise.resolve(!1)};
VnN=function(){var M=_.NC("service_worker_push_prompt_delay_microseconds");return M?_.UJ("PromptTime").then(function(z){return Promise.resolve(Date.now()-M>(z||0))}):Promise.resolve(!0)};
Eli=function(){var M=_.NC("service_worker_push_logged_out_prompt_watches");return M==-1?Promise.resolve(!1):_.UJ("WatchCount").then(function(z){return z>=M})};
fQl=function(){var M=_.DU(document,"yt-push-prompt-modal-bg");M&&_.eJ(M)};
L4t=function(){return _.NC("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.UJ("PromptCount").then(function(M){M||(M=0);return Promise.resolve(M<_.NC("service_worker_push_prompt_cap"))})};
Aud=function(M){return _.cW("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.cW("LOGGED_IN")&&(M===void 0?0:M)?aQd().then(function(z){if(z)return!0;z=[L4t(),VnN()];_.cW("LOGGED_IN")||z.push(Eli());return Promise.all(z).then(function(J){return J.every(function(R){return R})})}):Promise.resolve(!1)};
iuc=function(){_.UJ("PromptCount").then(function(M){return _.I7("PromptCount",M+1)}).then(function(){return _.I7("PromptTime",Date.now())}).then(function(){var M=_.Sz("service_worker_push_force_notification_prompt_tag");
if(M)return _.UJ("PromptTags").then(function(z){var J=[];if(z)try{J=JSON.parse(z)}catch(R){return!1}J||(J=[]);J.push(M);return _.I7("PromptTags",JSON.stringify(J))})})};
buu=function(){CSu||fQl()};
ruN=function(M){M.style.zIndex=2147483648;M.style.pointerEvents="auto";M.style.backgroundColor="rgba(0, 0, 0, 0.6)";M.style.width="100%";M.style.height="100vh";M.style.position="absolute";M.style.top="0";M.style.left="0";M.style.border="none"};
M9c=function(){var M=_.DU(document,"yt-push-prompt-modal-bg");CSu=_.U("service_worker_push_prompt_modal_ignore_click");M?ruN(M):(M=_.sc("div",{id:"yt-push-prompt-modal-bg"}),ruN(M),document.body.appendChild(M),_.afp(document,"click",buu))};
z45=function(){var M=arguments;_.U("service_worker_push_prompt_modal_enable")&&M9c();return Notification.requestPermission().then(function(z){fQl();var J=document.getElementById("ticker");J&&(J.className=J.classList.remove("show"));if(z=="granted")return ujw().then(function(){$Iw(!1);W4m();return Promise.resolve(!0)});
z=="denied"&&W4m();return Promise.resolve(!1)}).catch(function(){fQl();
return Promise.reject.apply(Promise,_.Yj(M))})};
Jdc=function(M){M=M===void 0?!1:M;var z=_.FSo().client;if(z&&z.browserVersion){var J=z.browserVersion,R=z.browserName=="CHROME"&&_.Xn(J,"50.0.0")<0;z=z.browserName=="OPERA"&&_.Xn(J,"42.0.0")<0;if(R||z)return Promise.resolve()}return _.Xl5().then(function(D){if(!D)return Promise.resolve();D=ujw().then(function(){return qK5({type:"notifications_check_registration",data:_.HW("ID_TOKEN")})});
return Notification.permission!="default"?D.catch(function(){}):D.then(function(){return Aud(M)}).then(function(N){if(N)return iuc(),z45().then(function(){})}).catch(function(){})})};
R4N=function(M){return _.IZc(M)?Jdc():Promise.resolve()};
Dsu=function(M){var z=M.installing||M.waiting;return M.active||!z?Promise.resolve(M):new Promise(function(J){var R=function(D){D=D.target;if(D.state==="activated"||D.state==="redundant")z.removeEventListener("statechange",R),J(M)};
z.addEventListener("statechange",R)})};
NEl=function(){var M=new _.HCo("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.T0(M,{mainAppWeb:_.fX()});var z=_.uFp;_.U("service_worker_forward_exp_params")&&(z=Huc(z));try{var J=_.mAw(z).catch(function(){_.Ih(M,"FAILURE");return new Promise(function(){})});
_.U("service_worker_push_enabled")&&J.then(function(R){_.Ih(M,"SUCCESS");return R}).then(Dsu).then(R4N)}catch(R){if(_.Ih(M,"FAILURE"),R.name!=="SecurityError")throw R;
}};
P3s=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&NEl()};
Sfu=function(M,z){var J={};z&&(J.serializedYpcFamilyCreateLoggingParams=z);_.gP(M,J);_.sB()};
ZYv=function(M,z){var J={};J.serializedYpcRefundFlowLoggingParams=z;M&&(J.eventType=M);_.gP("ypcRefundFlowEvent",J);_.sB()};
kVl=function(M){M&&_.sS8("transactionFlowSucceeded",M)};
BEc=function(M){M&&_.bg("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
OYu=function(M){M.currentTarget._data&&_.H6p(M.currentTarget._data)};
TEG=function(M,z){if(z=_.G(z,_.af))(z==null?void 0:z.target)==="TARGET_NEW_WINDOW"&&(M.target="_blank"),z.nofollow&&(M.rel="nofollow")};
ILN=function(M){M=_.G(M==null?void 0:M.commandMetadata,_.X9);return(M==null?0:M.url)?M.url:null};
oQG=function(M){var z,J,R,D,N,Z,B;_.k(function(O){if(O.nextAddress==1)return O.yield(_.ovp(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);z=[];return O.yield(_.ON.keys(),3)}J=O.yieldResult;R=_.S(J);for(D=R.next();!D.done;D=R.next())N=D.value,Z=_.Tte(N),B=Z.datasyncId,!B||M.includes(B)||z.push(_.ON.delete(N));return O.return(Promise.all(z).then(function(X){return X.some(function(l){return l})}))})};
Xvw=function(){var M,z,J,R,D,N,Z;return _.k(function(B){if(B.nextAddress==1)return B.yield(_.ovp(),2);if(B.nextAddress!=3){if(!B.yieldResult)return B.return(!1);M=_.Gw("cache contains other");return B.yield(_.ON.keys(),3)}z=B.yieldResult;J=_.S(z);for(R=J.next();!R.done;R=J.next())if(D=R.value,N=_.Tte(D),(Z=N.datasyncId)&&Z!==M)return B.return(!0);return B.return(!1)})};
lLl=function(){var M=_.JF().resolve(_.zw(_.dwv));return M?M.getCurrentTime():0};
e45=function(){var M,z,J,R,D,N,Z,B,O,X,l,e,Q,v;return _.k(function(x){switch(x.nextAddress){case 1:M={},z=_.O80(),J=_.S(Object.entries(z)),R=J.next();case 4:if(R.done){x.jumpTo(3);break}D=R.value;N=_.S(D);Z=N.next().value;B=N.next().value;O=Z;X=B;if(!X){x.jumpTo(5);break}return x.yield(X(),8);case 8:M[O]=x.yieldResult;case 5:R=J.next();x.jumpTo(4);break;case 2:l=_.S(void 0),e=l.next();case 9:if(e.done){x.jumpTo(3);break}Q=e.value;v=z[Q];if(!v){x.jumpTo(10);break}return x.yield(v(),13);case 13:M[Q]=
x.yieldResult;case 10:e=l.next();x.jumpTo(9);break;case 3:return x.return(M)}})};
Qnl=function(){var M;_.k(function(z){if(z.nextAddress==1)return z.yield(e45(),2);M=z.yieldResult;return z.yield(navigator.clipboard.writeText(JSON.stringify(M,null,2)),0)})};
Usd=function(M,z){return _.Is(M.entities,"superThanksSelectedTierEntity",z)};
vQv=function(M,z){var J=_.xn();_.Yy(function(){var R=M.value;if(R)return _.Lrc(R,z),_.A8p(R,z,void 0,void 0,void 0,J)},[z])};
GVN=function(M){var z;return(z=M.sharedUi)==null?void 0:z.currentPageType};
wvl=function(M,z){return{popup:{searchSuggestionReportDialog:{searchQuery:M,title:_.e9("SBOX_INAPPROPRIATE_TITLE"),suggestions:z,categoryLabel:_.e9("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.e9("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.e9("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.e9("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.e9("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.e9("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.e9("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.e9("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.e9("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.e9("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
xsl=function(M){var z,J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b;return _.k(function(V){switch(V.nextAddress){case 1:return V.yield(_.eg(),2);case 2:return(z=V.yieldResult)?V.yield(_.SGc(z),3):V.return();case 3:J=V.yieldResult;if(!J)return V.return();D=((R=J.offlineVideos)==null?void 0:R.length)||0;Z=((N=J.offlinePlaylists)==null?void 0:N.length)||0;if(D===0&&Z===0)return V.return();B=0;if(J.offlineVideos)for(O=_.S(J.offlineVideos),X=O.next();!X.done;X=O.next())l=X.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
l.videoState&&(B+=1);M.offline_videos_count=D.toString();_.U("kevlar_log_offline_current_network_type_ks")||(M.offline_current_network_type=(e=_.TAc())!=null?e:"CONN_INVALID");_.U("kevlar_log_updated_time_for_smart_downloads")&&(Q=_.rA().getState().entities,v=_.nD(Q),x=ki5(Q),M.offline_smart_downloads_last_sync_time_ms=v.toString(),M.offline_smart_downloads_next_sync_time_ms=x.toString());M.offline_videos_playable=B.toString();M.offline_playlists_count=Z.toString();J.offlineVideos&&(m=J.offlineVideos.reduce(function(E,
L){L.downloadedBytes&&(E+=Number(L.downloadedBytes));return E},0).toString())&&(M.offline_used_disk_space_bytes=m);
if(!((y=navigator)==null?0:(H=y.storage)==null?0:H.estimate)){V.jumpTo(4);break}return V.yield(navigator.storage.estimate(),5);case 5:q=V.yieldResult,M.offline_free_disk_space_bytes=(((b=q)==null?void 0:b.quota)||0).toString();case 4:M.offline_client_state=JSON.stringify(J),_.UI(V)}})};
t9l=function(M){M=_.S(M);for(var z=M.next(),J={};!z.done;J={setter$jscomp$5:void 0},z=M.next()){var R=z.value;z=R.params;R=R.service;z&&R&&(J.setter$jscomp$5=_.TiG[R],J.setter$jscomp$5&&z.forEach(function(D){return function(N){var Z=N.key;N=N.value;Z&&N&&(0,D.setter$jscomp$5)(Z,N)}}(J)))}};
jnl=function(M){M=M.match(/(.*)::.*::.*/);if(M!==null)return M[1]};
pvN=function(M){if(_.IMo()){var z=Object.keys(window.sessionStorage);z=_.S(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=jnl(J);R===void 0||M.includes(R)||self.sessionStorage.removeItem(J)}}};
FVm=function(){if(!_.IMo())return!1;var M=_.Gw(),z=Object.keys(window.sessionStorage);z=_.S(z);for(var J=z.next();!J.done;J=z.next())if(J=jnl(J.value),J!==void 0&&J!==M)return!0;return!1};
h8=function(M,z,J){(_.U("desktop_keyboard_shortcut_usage_log")||J&&_.U("web_shorts_keyboard_shortcut_usage_log"))&&(z?_.Q2.get(M):_.ey.get(M))&&(M=z?_.vD.get(M):_.U0.get(M))&&_.fY(_.y5(),M)};
Yfi=function(M,z){return M.findIndex(function(J){return J.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(z.keyCode):!1};
mst=function(){var M,z;return typeof CSS!=="undefined"&&((z=(M=CSS).supports)==null?void 0:z.call(M,"selector(:has(*))"))};
gQ5=function(M){return M.visibility!=="hidden"&&M.display!=="none"};
nQ5=function(M){if(mst()||M.tagName!=="DETAILS"?!M.matches(snv):M.querySelector("summary")!==null)return-1;M=M.getAttribute("tabindex")||"0";return Number(M)};
h4u=function(M){return M.some(function(z){return nQ5(z)>0})};
ydc=function(M){if(M.textContent)return!0;if(M instanceof HTMLInputElement){if(!M.labels)return!1;M=_.S(M.labels);for(var z=M.next();!z.done;z=M.next())if(z.value.textContent)return!0}return!1};
HYw=function(M){return M.sort(function(z,J){return nQ5(J)-nQ5(z)})};
cdw=function(M){M=Array.from(M.querySelectorAll(snv)).filter(function(z){return(gQ5(z.style)?gQ5(window.getComputedStyle(z)):!1)&&ydc(z)});
return h4u(M)?HYw(M):M};
dsu=function(M){M=cdw(M);M.length>0&&M[0].focus()};
KVu=function(M,z){z.stack&&(M.stack+="\n"+z.stack);return M};
qfd=function(M){var z=y2(M,"Content-Type");if(!z)return null;z=z.toLowerCase();if(z.startsWith("application/json"))return z.startsWith("application/json+protobuf")?new $sv:new _.Ov;if(z.startsWith("application/x-protobuf")){M=y2(M,"Content-Transfer-Encoding");if(!M)return new HD;if(M.toLowerCase()=="base64")return new u9m}return null};
C3l=function(M,z,J,R){var D=new WVl(function(B,O){return aLd.has(O)?B.sentinel==="gal"&&B.event!==void 0:!1},function(B){B.event?(B=V9i(B.event),B=!B||EQw(R,B)?!0:_.xI(M.lastEvent,cD,2,dw)?!_.xI(B,Kg,1,dw)&&!_.xI(B,cD,2,dw):!_.xI(B,Kg,1,dw)&&!_.xI(B,cD,3,dw)):B=!0;
return B});
J=_.Pj(M.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",fLw(J)]]));if(M.nestedOrigins!==void 0)for(var N=_.S(M.nestedOrigins),Z=N.next();!Z.done;Z=N.next())J=_.Pj(J,new Map([["origin",Z.value]]));return LVl(D,J,z).then(function(B){B=Adm(B.event);if(_.xI(B,Kg,1,dw)){var O,X=(O=_.Ky(B,Kg,1,dw))==null?void 0:_.yE(O,2);X&&R.JSC$19234_logErrorEvent(iYt(X));O=_.Ky(B,Kg,1,dw);_.yE(O,2)===4?(B=_.Ky(B,Kg,1,dw),B={statusCode:11,statusMessage:_.hv(B,
3)}):(B=_.Ky(B,Kg,1,dw),B={statusCode:12,statusMessage:_.hv(B,3)});return B}_.xI(B,cD,3,dw)?(B=_.Ky(B,cD,3,dw),B={statusCode:1,consentLanguageKeys:_.hv(B,2)}):B={statusCode:1};return B}).catch(function(B){return B.errorCode!==void 0?{statusCode:B.errorCode,
statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
zbl=function(M){var z={};if(M===void 0||M===null)return z;M.getToken()!==void 0&&bYl(M.getToken())&&bYl(M.getToken()).length>0&&(z.scopes=new Set(bYl(M.getToken())));M.getToken()!==void 0&&rdl(M.getToken())&&rdl(M.getToken()).length>0&&(z.capabilities=new Set(rdl(M.getToken())));_.hv(M,3)!==void 0&&(z.consistencyKey=_.hv(M,3));M.getName()!==void 0&&M.getName()!==""&&(z.linkName=M.getName());_.wo(M,Mgw,4)&&(M=_.DG(M,Mgw,4),M=Object.assign({},_.hv(M,1)&&{userId:_.hv(M,1)},_.hv(M,2)&&{displayName:_.hv(M,
2)},_.hv(M,3)&&{email:_.hv(M,3)},_.hv(M,5)&&{username:_.hv(M,5)},_.hv(M,4)&&{profilePicture:_.hv(M,4)}),z.profile=M);return z};
JNw=function(M,z){var J=M.flowParams,R;return{serviceId:J.serviceId,sessionId:J.sessionId,currentFlow:M.currentFlow,googleScopesString:z,linkingSessionSerialized:M.session.serialize(),consentLanguageKeys:J.consentLanguageKeys,callerState:M.callerState,dynamicUrlParameters:J.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(R=J.partnerConfigMinReadTimestamp)==null?void 0:R.serialize()}};
Shm=function(M){var z=M.googleScopes!==void 0?Array.from(M.googleScopes).join(","):"";Rbw(JNw(M,z));z=Dvi(M);return z===null?Promise.resolve(NAG):z.start().then(function(J){var R,D=(R=J.link)==null?void 0:R.consistencyKey;return J.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&D!==void 0?(R=M.flowParams,Pdt(R.serviceId,R.sessionId,M.googleScopes,D,R.galService,M.config,J)):J})};
ZDw=function(M){var z=Dvi(M);return z===null?Promise.resolve($J({statusCode:7,statusMessage:"Failed to create flow object"},M.callerState)):z.complete().then(function(J){var R,D=(R=J.link)==null?void 0:R.consistencyKey;return J.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&D!==void 0?(R=M.flowParams,Pdt(R.serviceId,R.sessionId,M.googleScopes,D,R.galService,M.config,J)):$J(J,M.callerState)},function(J){return $J({statusCode:12,
statusMessage:"Failed to complete the flow: "+J.message},M.callerState)})};
Pdt=function(M,z,J,R,D,N,Z){return krt(D,{serviceId:M,sessionId:z,googleScopes:J,consistencyKey:R}).then(function(){return Z},function(B){return D.deleteLink({serviceId:M,
sessionId:z,accountLinkingEntryPoint:N.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+B.message}},function(O){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+O.message}})})};
Dvi=function(M){switch(M.currentFlow){case 1:var z=M.flowParams;M=_.DG(M.session,BAm,1);return uk.createOAuthFlow(z,M);case 2:case 3:return z=M.flowParams,M=_.DG(M.session,ODw,6),qZ.createStreamlinedFlow(z,M);default:return null}};
TAs=function(M,z){M===2&&(M=3);var J=0;WD.indexOf(M)!==-1&&(J=WD.indexOf(M)+1);for(M=J;M<WD.length;M++)if(z.has(WD[M]))return WD[M]};
XAw=function(M){var z=M.serviceId;var J=M.sessionId;var R=M.config;var D=M.galService;var N=M.capabilities;var Z=M.scopes;var B=M.loginHint;var O=M.callerState;var X=M.consentLanguageKeys;var l=M.linkName;var e=M.dynamicUrlParameters;var Q=M.partnerConfigMinReadTimestamp;M=R.dataUsageNoticeConfig?R.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return D.startLinkingSession({serviceId:z,sessionId:J,capabilities:N,scopes:Z,loginHint:B,callerState:O,supportedFlows:I8u(R.supportedFlows),completionUrl:R.completionUrl,
accountLinkingEntryPoint:R.accountLinkingEntryPoint,consentLanguageKeys:X,dataUsageNoticeConfig:M,linkName:l,dynamicUrlParameters:e,partnerConfigMinReadTimestamp:Q}).then(function(v){return new ofd(z,J,R,D,v,void 0,O,X,e,Q)})};
Grs=function(M,z,J){var R=(new l8w).getSession(M);if(R===null)return Promise.resolve({statusCode:2});ebl(M);var D=Qsd(R.linkingSessionSerialized),N=R.googleScopesString!==""&&R.googleScopesString!==void 0?new Set(R.googleScopesString.split(",")):void 0,Z=R.partnerConfigMinReadTimestampSerialized?UvG(R.partnerConfigMinReadTimestampSerialized):void 0;return vfw(new ofd(M,R.sessionId,z,J,D,N,R.callerState,R.consentLanguageKeys,R.dynamicUrlParameters,Z),R.currentFlow,R.consentLanguageKeys)};
Rbw=function(M){var z=new l8w;z.storage!==null&&z.storage.set("SAVED_SESSION",M)};
ebl=function(M){var z=new l8w;if(z.storage!==null){var J=z.storage.get("SAVED_SESSION");J!==void 0&&J.serviceId===M&&z.storage.remove("SAVED_SESSION")}};
I8u=function(M){var z=new Set;M=_.S(M);for(var J=M.next();!J.done;J=M.next())J=J.value,J!==1&&wAN.has(J)&&z.add(wAN.get(J));return z};
$J=function(M,z){z!==void 0&&(M.callerState=z);return M};
xvm=function(M){switch(M){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
pAw=function(M){return new tgl(M,new jst(M))};
mvu=function(M,z){z=z===void 0?!1:z;var J=document.createElement("div");M&&(J.style.transform="scaleX(-1)");J.style.backgroundColor=z?"rgba(138,180,248,.24)":"#e8f0fe";J.style.height="4px";J.style.overflow="hidden";J.style.position="absolute";J.style.top="0";J.style.width="100%";J.style.zIndex="1500";J.setAttribute("aria-label","Loading");J.setAttribute("aria-live","polite");M=document.createElement("style");M.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
J.appendChild(M);M=Fpl();M.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";M.style.left="-145.166611%";var R=YhN(z);R.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";M.appendChild(R);J.appendChild(M);M=Fpl();M.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";M.style.left="-54.888891%";z=YhN(z);z.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
M.appendChild(z);J.appendChild(M);return J};
Fpl=function(){var M=document.createElement("div");M.style.height="100%";M.style.position="absolute";M.style.transformOrigin="top left";M.style.width="100%";return M};
YhN=function(M){var z=document.createElement("span");z.style.borderTop=M?"4px solid #669df6":"4px solid #4285f4";z.style.display="inline-block";z.style.position="absolute";z.style.width="100%";return z};
gft=function(M){return M==null?void 0:_.Vmv(M).valueOf()};
yNm=function(M){var z=document.body,J=!1,R=function(){J||(J=!0,ssv(D,N),setTimeout(function(){z.removeChild(N);z.removeChild(D)},150))},D=nfw(M,getComputedStyle(z).direction==="rtl",R),N=hbu(R);
ssv(D,N);z.appendChild(N);z.appendChild(D);window.requestAnimationFrame(function(){N.style.opacity="1";D.style.opacity="1";D.style.transform="translate(-50%, -50%) scale(1)";D.children[0].focus()})};
nfw=function(M,z,J){var R=document.createElement("div");R.style.position="fixed";R.style.alignItems="center";R.style.backgroundColor=M?"rgb(32, 33, 36)":"white";R.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";R.style.display="flex";R.style.flexDirection="column";R.style.justifyContent="center";R.style.left="50%";R.style.top="50%";R.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";R.style.zIndex="2002";document.body.clientWidth>=
660?(R.style.borderRadius="8px",R.style.minHeight="220px",R.style.maxHeight="90%",R.style.maxWidth="90%",R.style.minWidth="540px"):(R.style.height="100%",R.style.width="100%");R.setAttribute("aria-label","Error");R.setAttribute("aria-modal","true");R.setAttribute("role","alertdialog");R.addEventListener("keydown",function(N){N.key==="Escape"&&J()});
z=HDl(M,z,J);R.appendChild(cNc(z));R.appendChild(z);var D=document.createElement("img");D.src=M?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";D.style.height="72px";D.style.width="72px";D.style.color="#9aa0a6";D.setAttribute("alt","");R.appendChild(D);D=document.createElement("h1");D.textContent="Something went wrong.  Try again.";
D.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";D.style.lineHeight="24px";D.style.fontSize="16px";D.style.textAlign="center";D.style.letterSpacing="0.1px";D.style.color=M?"rgb(232,234,237)":"#3c4043";R.appendChild(D);R.appendChild(cNc(z));return R};
HDl=function(M,z,J){var R=document.createElement("button");R.style.backgroundColor="transparent";R.style.border="none";R.style.borderRadius="50%";R.style.cursor="pointer";R.style.outline="none";R.style.padding="12px";R.setAttribute("aria-label","Close dialog");R.style.position="absolute";R.style.top="0";z?R.style.right="0":R.style.left="0";R.addEventListener("focus",function(){R.style.backgroundColor=M?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
R.addEventListener("blur",function(){R.style.backgroundColor="transparent"});
R.addEventListener("mouseenter",function(){R.style.backgroundColor=M?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
R.addEventListener("mouseleave",function(){R.style.backgroundColor="transparent"});
R.addEventListener("click",J);R.addEventListener("keydown",function(D){D.key!=="Enter"&&D.key!=="Space"||J()});
z=document.createElement("img");z.src=M?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";z.style.display="block";z.style.height="24px";z.style.width="24px";z.setAttribute("alt","");R.appendChild(z);return R};
cNc=function(M){var z=document.createElement("div");z.setAttribute("tabindex","0");z.setAttribute("aria-hidden","true");z.addEventListener("focus",function(){return void M.focus()});
return z};
hbu=function(M){var z=document.createElement("div");z.style.backgroundColor="rgba(32,33,36,0.6)";z.style.bottom="0";z.style.left="0";z.style.position="fixed";z.style.right="0";z.style.top="0";z.style.transition=" opacity 150 ms linear";z.style.zIndex="2001";z.addEventListener("click",M);return z};
ssv=function(M,z){z.style.opacity="0";M.style.opacity="0";M.style.transform="translate(-50%, -50%) scale(0.8)"};
dvN=function(M,z){M.sandbox&&M.sandbox.add&&(M.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),M.sandbox.add("allow-downloads"));M.src=z};
a7=function(M){Kpi.call(this,M)};
V2=function(M,z){z=z===void 0?!1:z;this.parsedImageUrl_=null;M instanceof $vs||(u2t==void 0&&(u2t=new qhd),M=u2t.parse(M.toString(),z));M=this.parsedImageUrl_=M;M.JSC$19446_parsedOptions_==void 0&&((z=M.getOptions())||(z=""),M.JSC$19446_parsedOptions_=(new Wpw).parse(z));Kpi.call(this,M.JSC$19446_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;M=this.parsedImageUrl_;z=M.uri_.JSC$9998_port_;this.JSC$19448_domain_=M.uri_.JSC$9998_domain_+(z?":"+z:"");this.JSC$19448_query_=
this.parsedImageUrl_.uri_.JSC$9998_queryData_.toString()};
a8G=function(M){this.mode=4;this.data=M;this.parsedData=[];M=0;for(var z=this.data.length;M<z;M++){var J=[],R=this.data.charCodeAt(M);R>65536?(J[0]=240|(R&1835008)>>>18,J[1]=128|(R&258048)>>>12,J[2]=128|(R&4032)>>>6,J[3]=128|R&63):R>2048?(J[0]=224|(R&61440)>>>12,J[1]=128|(R&4032)>>>6,J[2]=128|R&63):R>128?(J[0]=192|(R&1984)>>>6,J[1]=128|R&63):J[0]=R;this.parsedData.push(J)}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))};
VgN=function(M){this.typeNumber=0;this.errorCorrectLevel=M===void 0?2:M;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
E0=function(M,z){if(M.length==void 0)throw Error("vk`"+M.length+"`"+z);for(var J=0;J<M.length&&M[J]==0;)J++;this.num=Array(M.length-J+z);for(z=0;z<M.length-J;z++)this.num[z]=M[z+J]};
Ef5=function(M,z){this.totalCount=M;this.dataCount=z};
f8v=function(){this.buffer=[];this.length=0};
Lpu=function(){var M=!1;if(_.XYn()){M=_.lG();var z="";_.Q3c()?(z=/Windows (?:NT|Phone) ([0-9.]+)/,z=(M=z.exec(M))?M[1]:"0.0"):_.gR()?(z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,z=(M=z.exec(M))&&M[1].replace(/_/g,".")):_.e03()?(z=/Mac OS X ([0-9_.]+)/,z=(M=z.exec(M))?M[1].replace(/_/g,"."):"10"):_.T8(_.lG(),"KaiOS")?(z=/(?:KaiOS)\/(\S+)/i,z=(M=z.exec(M))&&M[1]):_.XYn()?(z=/Android\s+([^\);]+)(\)|;)/,z=(M=z.exec(M))&&M[1]):_.Ubw()&&(z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,z=(M=z.exec(M))&&M[1]);M=
z||""}return M};
Mem=function(M,z){this.JSC$19471__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(z)for(var J in z)this.JSC$19471__htOption[J]=z[J];this.JSC$19471__htOption.useSVG&&(ANv=iDd);this.JSC$19471__android=Lpu();this.JSC$19471__el=M;this._oQRCode=null;this._oDrawing=new ANv(this.JSC$19471__el,this.JSC$19471__htOption);this.JSC$19471__htOption.text&&(M=this.JSC$19471__htOption.text,this._oQRCode=new VgN(this.JSC$19471__htOption.correctLevel),Cdu(this._oQRCode,
M),z=this._oQRCode,bDv(z,!1,rNw(z)),this.JSC$19471__el.title=M,this._oDrawing.draw(this._oQRCode),this.makeImage())};
z8G=function(M,z,J,R,D){M.save();var N=new Path2D;N.roundRect(z,J,R*7,R*7,R*2);N.roundRect(z+R,J+R,R*5,R*5,R*1.3);N.roundRect(z+2*R,J+2*R,R*3,R*3,R);M.clip(N,"evenodd");M.fillStyle=D;M.fillRect(0,0,M.canvas.width,M.canvas.height);M.restore()};
fg=function(M,z){if(typeof M!=="function")throw Error("yk");return _.R3.setTimeout(function(){M()},z)};
Lg=function(){};
R8v=function(M,z,J,R,D){(new Lg).debug("TestLoadImageWithRetries: "+D);if(R==0)J(!1);else{var N=D||0;R--;J9c(M,z,function(Z){Z?J(!0):_.R3.setTimeout(function(){R8v(M,z,J,R,N)},N)})}};
J9c=function(M,z,J){var R=new Lg;R.debug("TestLoadImage: loading "+M);var D=new Image;D.onload=function(){try{R.debug("TestLoadImage: loaded"),DGd(D),J(!0)}catch(N){}};
D.onerror=function(){try{R.debug("TestLoadImage: error"),DGd(D),J(!1)}catch(N){}};
D.onabort=function(){try{R.debug("TestLoadImage: abort"),DGd(D),J(!1)}catch(N){}};
D.ontimeout=function(){try{R.debug("TestLoadImage: timeout"),DGd(D),J(!1)}catch(N){}};
_.R3.setTimeout(function(){if(D.ontimeout)D.ontimeout()},z);
D.src=M};
DGd=function(M){M.onload=null;M.onerror=null;M.onabort=null;M.ontimeout=null};
NBl=function(){this.front_=[];this.back_=[]};
P75=function(M,z){_.wS.call(this);this.delay_=new _.tK(this.JSC$19597_onTick_,0,this);_.OC(this,this.delay_);this.JSC$19595_interval_=5E3;this.nextTickTime_=0;if(typeof M==="function")z&&(M=(0,_.xF)(M,z));else if(M&&typeof M.handleEvent==="function")M=(0,_.xF)(M.handleEvent,M);else throw Error("ya");this.JSC$19597_listener_=M};
A8=function(M,z,J,R,D,N,Z,B,O,X,l,e,Q,v){J=J===void 0?!1:J;R=R===void 0?function(){return""}:R;
D=D===void 0?!1:D;N=N===void 0?!1:N;Z=Z===void 0?!1:Z;B=B===void 0?function(){return _.Of({})}:B;
O=O===void 0?!1:O;l=l===void 0?!1:l;e=e===void 0?!1:e;Q=Q===void 0?!1:Q;v=v===void 0?!1:v;this.JSC$19598_pathPrefix_=M;this.defaultQueryParams_=z;this.pubsub_=new _.l9;this.reconnectTimer_=new P75(this.safeReconnect_,this);this.JSC$19598_channel_=null;this.JSC$19598_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19598_pendingMessages_=[];this.enableAsyncTest_=J;this.JSC$19598_getXsrfToken_=R;this.useAsyncBrowserChannelHandler_=N;this.getAuthorizationHeader_=
B;this.getAuthorizationHeaderSync_=X;this.enableCachedUpdateAuthorizationHeader_=Z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Of();this.enableLoungeTokenRefresh_=D;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=O;this.disableMdxAuthForNonPlaybackMessages_=l;this.disableMdxAuthForAdMessages_=e;this.enableMdxAuthForConnectionOnly_=Q;this.disableMdxAuthForShortsMessages_=v;this.JSC$19598_channelOpenedCounter=new SAs;this.JSC$19598_channelClosedCounter=new ZXl;this.channelMessageSentCounter=
new khd;this.JSC$19598_channelMessageReceivedCounter=new BBw;this.JSC$19598_channelErrorCounter=new OXG;this.pendingMapsOnClosedCounter=new TBw;this.undeliveredMapsOnClosedCounter=new ISG};
ik=function(M){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;M=M||document.location.href;var z=Number(_.ii(M)[4]||null)||"";z&&(this.port=":"+z);this.domain=_.Ch(M)||"";M=_.lG();M.search("MSIE")>=0&&_.Xn(M.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Cg=function(M){M=M||{};this.name=M.name||"";this.id=M.id||M.screenId||"";this.token=M.token||M.loungeToken||"";this.uuid=M.uuid||M.dialId||"";this.idType=M.screenIdType||"normal"};
oVG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(M){var z=Math.random()*16|0;return(M=="x"?z:z&3|8).toString(16)})};
XPi=function(M){return _.sa(M,function(z){return{key:z.id,name:z.name}})};
lSi=function(M,z){return _.he(M,function(J){return J||z?!J!=!z?!1:J.id==z.id:!0})};
rw=function(M,z){return _.he(M,function(J){return bk(J,z)})};
GhN=function(){var M=e85(),z=Qzs();if(UGv()){var J=M,R=_.Y8o(J,z);R<0&&_.j3R(J,-(R+1),0,z)}M=vVG(M);if(M.length==0)try{_.ZD0("remote_sid")}catch(D){}else try{_.U7("remote_sid",M.join(","),-1)}catch(D){}};
e85=function(){var M=_.UE("yt-remote-connected-devices")||[];M.sort(_.Fwp);return M};
vVG=function(M){if(M.length==0)return[];var z=M[0].indexOf("#"),J=z==-1?M[0]:M[0].substring(0,z);return _.sa(M,function(R,D){return D==0?R:R.substring(J.length)})};
wPs=function(M){_.Qo("yt-remote-connected-devices",M,86400)};
Qzs=function(){if(xGu)return xGu;var M=_.UE("yt-remote-device-id");M||(M=oVG(),_.Qo("yt-remote-device-id",M,31536E3));for(var z=e85(),J=1,R=M;_.Kp(z,R);)J++,R=M+"#"+J;return xGu=R};
tet=function(){return _.UE("yt-remote-session-browser-channel")};
UGv=function(){return _.UE("yt-remote-session-screen-id")};
FQc=function(M){M.length>5&&(M=M.slice(M.length-5));var z=_.sa(jzt(),function(R){return R.loungeToken}),J=_.sa(M,function(R){return R.loungeToken});
_.P1G(J,function(R){return!_.Kp(z,R)})&&pPu();
_.Qo("yt-remote-local-screens",M,31536E3)};
jzt=function(){return _.UE("yt-remote-local-screens")||[]};
pPu=function(){_.Qo("yt-remote-lounge-token-expiration",!0,86400)};
M_=function(M){M||(_.va("yt-remote-session-screen-id"),_.va("yt-remote-session-video-id"));GhN();M=e85();_.$o(M,Qzs());wPs(M)};
mGt=function(){YAs();return zv?!!zv.get("yt-remote-use-staging-server"):!1};
YAs=function(){if(!zv){var M=_.ebR();M&&(zv=new _.tF(M))}};
h8w=function(M,z,J,R,D){J=J===void 0?function(){return""}:J;
var N=function(){return new A8(Jt(M,"/bc"),z,!1,J,R)};
return _.U("enable_mdx_web_channel_desktop")?new gVl(function(){return new szd(Jt(M,"/wc"),z,J)}):new nVl(N,D)};
dGw=function(){var M=y9w;HXG();R6.push(M);c9w()};
Dj=function(M,z){HXG();var J=KQG(M,String(z));R6.length==0?$Gs(J):(c9w(),_.VU(R6,function(R){R(J)}))};
N_=function(M){Dj("CP",M)};
HXG=function(){R6||(R6=_.qH("yt.mdx.remote.debug.handlers_")||[],_.b9("yt.mdx.remote.debug.handlers_",R6))};
$Gs=function(M){var z=(P1+1)%50;P1=z;ukl[z]=M;qAw||(qAw=z==49)};
c9w=function(){var M=R6;if(ukl[0]){var z=qAw?P1:-1,J={};do J={record$jscomp$15:void 0},z=(z+1)%50,J.record$jscomp$15=ukl[z],_.VU(M,function(R){return function(D){D(R.record$jscomp$15)}}(J));
while(z!=P1);ukl=Array(50);P1=-1;qAw=!1}};
KQG=function(M,z){var J=(Date.now()-WQs)/1E3;J.toFixed&&(J=J.toFixed(3));var R=[];R.push("[",J+"s","] ");R.push("[","yt.mdx.remote","] ");R.push(M+": "+z,"\n");return R.join("")};
S8=function(M){_.lk.call(this);this.JSC$19622_logName_=M;this.screens=[]};
kZ=function(M){S8.call(this,"LocalScreenService");this.JSC$19629_http_=M;this.loungeTokenRefreshTimer_=NaN;Zj(this);this.info("Initializing with "+aSw(this.screens))};
B1=function(M,z){z=z===void 0?!1:z;S8.call(this,"ScreenService");this.JSC$19635_http_=M;this.disableAutomaticScreenCache_=z;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Ve5(this)};
Or=function(M,z,J){_.lk.call(this);this.JSC$19639_logName_=J;this.JSC$19639_screenService_=M;this.receiver_=z;this.screen_=null};
SVs=function(M,z,J){J.disableCastApi?Tv("Cannot initialize because disabled by Mdx config."):EVc()?fSs(M,J)&&(LQG(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?A9d(z):(window.__onGCastApiAvailable=function(R,D){R?A9d(z):(I6("Failed to load cast API: "+D),iXd(!1),LQG(!1),_.va("yt-remote-cast-available"),_.va("yt-remote-cast-receiver"),C7w(),z(!1))},J.loadCastApiSetupScript?_.qI(bXw):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
r9d()>=60&&MNN():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?zfi():r9d()>=89?JJs():(Rfv(),D3s(NHv.map(Paw))))):Tv("Cannot initialize because not running Chrome")};
C7w=function(){Tv("dispose");var M=o6();M&&M.dispose();_.b9("yt.mdx.remote.cloudview.instance_",null);Zdl(!1);_.AhH(kpN);kpN.length=0};
BHl=function(){return!!_.UE("yt-remote-cast-installed")};
Ods=function(){var M=_.UE("yt-remote-cast-receiver");return M?M.friendlyName:null};
THs=function(){Tv("clearCurrentReceiver");_.va("yt-remote-cast-receiver")};
IEw=function(){return BHl()?o6()?o6().getCastSession():(I6("getCastSelector: Cast is not initialized."),null):(I6("getCastSelector: Cast API is not installed!"),null)};
XUd=function(M,z){ozw()?o6().setConnectedScreenStatus(M,z):I6("setConnectedScreenStatus called before ready.")};
EVc=function(){var M=_.lG().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.es||M};
fSs=function(M,z){var J=!1;o6()||(M=new XW(M,z),M.subscribe("yt-remote-cast2-availability-change",function(R){_.Qo("yt-remote-cast-available",R);ww("yt-remote-cast2-availability-change",R)}),M.subscribe("yt-remote-cast2-receiver-selected",function(R){Tv("onReceiverSelected: "+R.friendlyName);
_.Qo("yt-remote-cast-receiver",R);ww("yt-remote-cast2-receiver-selected",R)}),M.subscribe("yt-remote-cast2-receiver-resumed",function(R){Tv("onReceiverResumed: "+R.friendlyName);
_.Qo("yt-remote-cast-receiver",R);ww("yt-remote-cast2-receiver-resumed",R)}),M.subscribe("yt-remote-cast2-session-change",function(R){Tv("onSessionChange: "+lEc(R));
R||_.va("yt-remote-cast-receiver");ww("yt-remote-cast2-session-change",R)}),_.b9("yt.mdx.remote.cloudview.instance_",M),J=!0);
Tv("cloudview.createSingleton_: "+J);return J};
o6=function(){return _.qH("yt.mdx.remote.cloudview.instance_")};
A9d=function(M){iXd(!0);LQG(!1);o6().init(!1,function(z){z?(Zdl(!0),_.ieb("yt-remote-cast2-api-ready")):(I6("Failed to initialize cast API."),iXd(!1),_.va("yt-remote-cast-available"),_.va("yt-remote-cast-receiver"),C7w());M(z)})};
Tv=function(M){Dj("cloudview",M)};
I6=function(M){Dj("cloudview",M)};
iXd=function(M){Tv("setCastInstalled_ "+M);_.Qo("yt-remote-cast-installed",M)};
ozw=function(){return!!_.qH("yt.mdx.remote.cloudview.apiReady_")};
Zdl=function(M){Tv("setApiReady_ "+M);_.b9("yt.mdx.remote.cloudview.apiReady_",M)};
LQG=function(M){_.b9("yt.mdx.remote.cloudview.initializing_",M)};
l6=function(M){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(M)};
efi=function(){var M,z;return _.k(function(J){if(J.nextAddress==1)return(_.nSR()||_.U("use_new_nwl"))&&_.YUH().isNetworkAvailable()?J.yield(_.rQ(),2):J.return();if(J.nextAddress!=3)return(M=J.yieldResult)?J.yield(L6w(M),3):J.return();z=J.yieldResult;if(!z.length)return J.return();z.forEach(function(R){var D={timestamp:R.timestamp};R=R.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:R.appShellAssetLoadReport,options:D}:R.clientError?{payloadName:"clientError",payload:R.clientError,
options:D}:void 0;R&&_.gP(R.payloadName,R.payload,R.options)});
z.length===100&&_.no.addLowPriorityJob(efi);_.UI(J)})};
Quu=function(M){if(M.playerResponse){if(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(z){return!(!z||!z.mealbarPromoRenderer)}))&&M.mealbarPromoRenderer)return M.mealbarPromoRenderer}else if(M.response&&(M=M.response)&&M.overlay&&M.overlay.mealbarPromoRenderer)return M.overlay.mealbarPromoRenderer};
U3w=function(M){if(M.response){var z=M.response;if(z&&z.overlay&&z.overlay.tooltipRenderer)return z.overlay.tooltipRenderer}if(M.playerResponse&&(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(J){return!(!J||!J.tooltipRenderer)}))&&M.tooltipRenderer))return M.tooltipRenderer};
Gpc=function(M){if(!vzw&&(M=M||_.HW("ZWIEBACK_PING_URLS"))&&M.length){vzw=!0;for(var z=0;z<M.length;z++)_.WI(M[z])}};
x3c=function(M){if(_.gu.get(_.HW("PLAYER_VARS",{}),"privembed",!1)!="1"){M&&K6l();try{wUw().then(function(){},function(){}),_.BJ(x3c,18E5)}catch(z){_.$y(z)}}};
tNu=function(){var M=_.vv(),z=M.getFlag(119),J=window.devicePixelRatio>1;document.body&&_.Ee(document.body,"exp-invert-logo")&&(J&&!_.Ee(document.body,"inverted-hdpi")?_.M7(document.body,"inverted-hdpi"):!J&&_.Ee(document.body,"inverted-hdpi")&&_.b5(document.body,"inverted-hdpi"));z!=J&&(_.GV(0,119,J),M.save())};
jud=function(M){return M.filter(function(z){return"ypcGetCartEndpoint"in z||"ypcFixInstrumentEndpoint"in z})};
pUu=function(M){return M.filter(function(z){return!_.G(z,_.sYa)})};
YVd=function(M,z){var J,R,D,N,Z,B,O;_.k(function(X){switch(X.nextAddress){case 1:J=_.h9.getInstance();R=_.l5.instance;D=_.Ve.instance;if(!D)return Fxs(M,R,z),X.return();_.Io(X,2);M.onLoadingCommand&&R.resolveCommand(M.onLoadingCommand);return X.yield(J.getCurrentPositionFromGeolocation(),4);case 4:N=X.yieldResult;if(!M.resolveLocationCommand){X.jumpTo(5);break}Z=J.createLocationInfo(N);return X.yield(_.fn(D,M.resolveLocationCommand,{locationInfo:Z}),6);case 6:B=X.yieldResult;if(!B||"error"in B&&B.error||
B.errorMetadata)return Fxs(M,R,z),X.return();var l;if(B==null?0:(l=B.onResponseReceivedActions)==null?0:l.length){l=_.S(B.onResponseReceivedActions);for(var e=l.next();!e.done;e=l.next())R.resolveCommand(e.value)}(_.G(M.onSuccessCommand,_.Au)||_.G(M.onSuccessCommand,_.Gh))&&_.Pv(z.hostElement,"yt-navigate",{endpoint:M.onSuccessCommand,reload:!0});case 5:_.ab(X,0);break;case 2:O=_.Qa(X);if(O instanceof GeolocationPositionError&&O.code===GeolocationPositionError.PERMISSION_DENIED)return M.onDeniedCommand&&
R.resolveCommand(M.onDeniedCommand),X.return();Fxs(M,R,z);_.UI(X)}})};
Fxs=function(M,z,J){M.onFailureCommand&&(z.resolveCommand(M.onFailureCommand),_.S9(J.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
gzw=function(M,z){var J=_.G(M,_.cQQ);if(J&&z){M=J.videoIds||[J.videoId];var R;z=(R=_.Pv(z,"yt-lockup-requested",{videoIds:M}).detail)==null?void 0:R.returnValue;var D;J.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?D=z?z:M.map(function(N){return{videoId:N,navigationEndpoint:J.videoCommand}}):z&&(D=z);
D&&(R=D.map(function(N){var Z=Object,B=Z.assign;var O=N.navigationEndpoint;if(!_.G(O,_.je)){var X=_.G(O,_.Au);if(X){if(delete X.index,delete X.playlistId,X=_.G(O==null?void 0:O.commandMetadata,_.X9),X==null?0:X.url){var l=X.url;l=_.Ms(l,"list");l=_.Ms(l,"index");X.url=l}}else O=void 0}return B.call(Z,{},N,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:O})}),m35(R,J))}};
suv=function(M){var z=_.Am();if(M=_.G(M,_.dkv))M.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&z.clearQueue(),M.closeMiniplayer&&_.JF().resolve(_.q5).close(!0)};
hfv=function(M){nzc(_.Am(),M)};
yJd=function(M){var z;(M=(z=_.G(M,_.yQV))==null?void 0:z.setVideoIds)&&M.forEach(function(J){_.a7v(_.Am(),J)})};
cJt=function(M){Hdw(_.Am(),M)};
d3u=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(M){return!1}};
Kxm=function(M){var z=["h","m","s"],J=_.uG(z);J.reverse();var R={};M=(M.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Z){var B=(Z.match(/[hms]/)||[""])[0];return B?(R[B]=parseInt(Z.match(/\d+/)[0],10),!1):!0});
for(M.reverse();M.length&&J.length;){var D=J.shift();D in R||(R[D]=parseInt(M.shift(),10))}if(M.length||R.s>59||R.m>59||R.h>9)return null;var N="";z.forEach(function(Z){R[Z]&&(N+=""+R[Z]+Z)});
return N||null};
$3w=function(M){M=M.data;return _.T("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.T("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.T(_.rv,{data:{thumbnails:[{url:M.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.T("div",{class:"profile-badge-view-model-wiz__content"},_.T("div",{class:"profile-badge-view-model-wiz__badge-description"},M.badgeDesc),M.badgeSubtitle?_.T("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},M.badgeSubtitle):
null))};
uww=function(M){M=M.data;var z=_.AL("yt-comment-interaction-view-model");vQv(z,M.rendererContext);return _.T("yt-comment-interaction-view-model",{el:z,class:"yt-comment-interaction-view-model-wiz"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":M.onTapA11yLabel,"on:keydown":_.abw(),tabindex:0},_.T("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},M.headerPrefix,' "',M.videoTitle),
_.T("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.T("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},M.commentContent),_.T("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.T(_.rv,{data:{thumbnails:[{url:M.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
Wxl=function(M){M=M.data;return _.T("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},qVt(M.avatar),_.T("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},M.channelName))};
aE5=function(M,z){var J=function(R){R.preventDefault()};
_.Yy(function(){var R=M.value;if(R)return(R._data=z)?(R.addEventListener("touchstart",_.y28,{passive:!0}),R.addEventListener("click",OYu),z.clickTrackingParams&&(R.params={itct:z.clickTrackingParams}),TEG(R,z),_.K3(R,ILN(z)||"")):R.addEventListener("click",J),function(){z?(R.removeEventListener("touchstart",_.y28,{passive:!0}),R.removeEventListener("click",OYu)):R.removeEventListener("click",J)}},[z,
void 0])};
VNt=function(M){M=M.data;var z;return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},_.T("div",{class:"yt-profile-info-view-model-wiz__header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title"},M.commentsInteractionTitle)),(z=M.comments)==null?void 0:z.map(function(J){return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},e8(J))}))};
Ezi=function(M){M=M.data;var z=_.qf({elementsCommand:M.subscriptionsAccessButtonCommand}),J=_.AL("a");aE5(J,_.$S(M.subscriptionsAccessButtonCommand));var R;return _.T("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.T("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.T("a",{el:J,"on:click":_.ol(function(D){if(z==null?0:z.onclick)z.onclick(D);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},M.sharedSubscriptionsTitle),_.T("div",null,e8(M.subscriptionsAccessButton)))),_.T("div",{class:"yt-profile-info-view-model-wiz__subs"},(R=M.sharedSubscriptions)==null?void 0:R.slice(0,5).map(function(D){return _.T("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",e8(D))})))};
fEd=function(M){M=M.data;var z;return _.T("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.T("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.T("h2",{class:"yt-profile-info-view-model-wiz__section-title"},M.sharedSubscriptionsTitle)),_.T("div",{class:"yt-profile-info-view-model-wiz__subs"},(z=M.sharedSubscriptions)==null?void 0:z.slice(0,5).map(function(J){return _.T("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",e8(J))})))};
LxN=function(M){M=M.data;return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},[M.profileBadgeInfoYtWide,M.profileBadgeInfoChannelWide].map(function(z){var J,R,D,N,Z;return z?_.T(_.MH,null,_.T("div",{class:"yt-profile-info-view-model-wiz__header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title"},z==null?void 0:z.profileSectionTitle),_.T("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},z==
null?void 0:(J=z.commentBadge)==null?void 0:J.commentDesc),(z==null?0:(R=z.commentBadge)==null?0:R.blackHeartDesc)?_.T("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.T("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.T(_.rv,{data:{thumbnails:[{url:z==null?void 0:(D=z.commentBadge)==null?void 0:D.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.T("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
z==null?void 0:(N=z.commentBadge)==null?void 0:N.blackHeartDesc))),_.T("div",{class:"yt-profile-info-view-model-wiz__badge"},z==null?void 0:(Z=z.badges)==null?void 0:Z.map(function(B){return _.T($3w,{data:B})}))):null}))};
AJi=function(M){M=M.data;return _.T("yt-profile-info-view-model",{class:M.videosHorizontalShelf?"yt-profile-info-view-model-wiz yt-profile-info-view-model-wiz__with-video-shelf":"yt-profile-info-view-model-wiz"},_.T(LxN,{data:M}),M.videosHorizontalShelf?_.T("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},e8(M.videosHorizontalShelf)):null,M.comments?_.T(VNt,{data:M}):null,M.sharedSubscriptionsTitle?M.subscriptionsAccessButtonCommand?_.T(Ezi,{data:M}):_.T(fEd,{data:M}):null)};
Cam=function(M){M=M.data;if(M){var z=M.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";z=idw(M.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:z,isChannelInfoCard:z}})}else z=void 0;M=M?idw(M.profileInfo):void 0;return _.T("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},z,M)};
bdu=function(M,z){var J=_.Scv(z,{},M,!0);return new Promise(function(R,D){J.listenOnce("n",function(){D(Error("jl`"+J.JSC$29299_getErrorDescription()))});
J.listenOnce("l",function(){var N=J.getResponseCode();if(N!==200)D(Error("kl`"+z+"`"+M.type+"`"+M.size+"`"+N));else try{R(JSON.parse(J.getResponseText()).encryptedBlobId)}catch(Z){D(Z)}});
J.run()})};
rJc=function(M){return M.substring(M.indexOf(":")+1,M.indexOf(";"))};
M5N=function(M){return new Promise(function(z,J){var R=new FileReader;R.onloadend=function(){try{var D=new Uint8Array(R.result);D.length<8&&J(void 0);var N=D.subarray(0,8);D="";for(var Z=0;Z<N.length;Z++)D+=("0"+N[Z].toString(16)).substr(-2);D.startsWith("ffd8ff")?z("image/jpeg"):D.startsWith("47494638")?z("image/gif"):D.startsWith("89504e470d0a1a0a")?z("image/png"):D.startsWith("424d")?z("image/bmp"):z(void 0)}catch(B){J(B)}};
R.onerror=J;R.readAsArrayBuffer(M)})};
ztw=function(M){return new Promise(function(z,J){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var D=document.createElement("canvas");D.width=R.naturalWidth;D.height=R.naturalHeight;var N=D.getContext("2d");if(!N)throw Error("ll");N.drawImage(R,0,0);N=rJc(M);D.toBlob(function(Z){Z?z(Z):J()},N)};
R.src=M})};
Rtl=function(M,z){var J;if(((J=_.G(M,_.je))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R;_.Pv((R=z.hostElement)!=null?R:z,"yt-shorts-reset");_.Lm2(_.JF().resolve(_.pZ),M).then(function(N){Jhl(N,z,M)})}else{var D;
_.kQ((D=z.hostElement)!=null?D:z,[M]).then(function(N){N&&Jhl(N.data,z,M)})}};
Jhl=function(M,z,J){if(M){var R=_.G(M.replacementEndpoint,_.je);if(R){M.sequenceContinuation&&(R.sequenceParams=M.sequenceContinuation);var D;_.Pv((D=z.hostElement)!=null?D:z,"yt-navigate",{endpoint:M.replacementEndpoint})}else if((M==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(M==null?0:M.watchStatus)&&_.G(M.watchStatus,_.Q_V)){var N;_.Pv((N=z.hostElement)!=null?N:z,"yt-navigate",{endpoint:J})}}};
Dfd=function(M){var z=_.JF().resolve(_.Vo),J=GVN(z.getState())||"";z=_.YrR(z.getState())||"";J=J==="ytd-browse"&&z==="home";return _.U("web_guide_entry_enable_cache_for_non_home_pages")?(M=(M==null?void 0:M.navigationEndpoint)&&_.vP(M.navigationEndpoint)==="home",{disableCache:J&&M}):{disableCache:J}};
Nvs=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENT-INPUT")return!0}catch(z){return!1}return Nvs(M.parentNode)};
Qm=function(M){return M?M.tagName==="A"&&M.href&&M.classList.contains("yt-simple-endpoint"):!1};
P5w=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
SUv=function(M,z,J){if(!M)return null;var R=Qm(M);if(R&&J)return z=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(R&&!J)return document.createTextNode("");if(P5w(M))return J=M.alt,M=M.dataset.emojiId,!M&&z&&(z=_.Ty(z,J))&&z.isCustomEmoji&&(M=z.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(J);R=M.cloneNode(!1);for(var D=0;D<M.childNodes.length;++D){var N=SUv(M.childNodes[D],z,J);N&&R.appendChild(N)}return R};
Ur=function(M){return M?Qm(M)?M:Ur(M.lastChild):null};
Ze5=function(M){return M?Qm(M)?M:Ze5(M.firstChild):null};
kmu=function(M){if(!M)return null;for(var z=M.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=Ur(z))?M=z:M=(M=M.parentNode)?Ur(M.previousElementSibling):null;return M};
Bvw=function(M){if(!M)return null;for(var z=M.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=Ze5(z))?z:Bvw(M.parentNode)};
OeN=function(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();if(!Nvs(J.parentNode))return null;z=z.JSC$11258_getStartOffset();if(J.nodeType===Node.TEXT_NODE){var R=_.cj(J,Qm);if(R){if(M&&z===0||!M&&z===J.length)return R}else{if(M&&z===J.length)return!J||J.nodeName==="BR"||J.nextElementSibling&&_.XB(J.nextElementSibling,"display")==="block"?null:Ze5(J.nextElementSibling);if(!M&&z===0)return J?Ur(J.previousElementSibling):null}}if(J.nodeType===Node.ELEMENT_NODE)if(M){if(0<=z&&z<J.childNodes.length)return Ze5(J.childNodes[z])}else if(0<
z&&z<=J.childNodes.length)return Ur(J.childNodes[z-1]);return null};
Tvw=function(M,z,J){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(J){var R=kmu(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,z)))return R}else if((R=Bvw(M))&&!/\S\s+/.test(M.wholeText.substr(z,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?J?kmu(M.childNodes[z]):Bvw(M.childNodes[z]):Tvw(M.parentNode,z,J)};
Ifm=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var z="";for(M=M.firstChild;M;M=M.nextSibling)z+=Ifm(M);return z;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
oSl=function(M){M=M.data;return _.T("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.T("div",null,_.T(_.m3,{text:M.title})),M.subtitle?_.T("div",{class:"ytd-menu-title-renderer__subtitle"},_.T(_.m3,{text:M.subtitle})):null)};
X5l=function(M){switch(M){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
lfG=function(M){return M.map(function(z){return{settingsRadioOptionRenderer:{title:_.D8(z.name),asideText:_.D8(z.approximateSize),id:X5l(z.format)}}})};
QE5=function(M){if(M&&M.length!==0)return M.filter(etG()).map(function(z){return{settingsRadioOptionRenderer:{title:z.name,asideText:z.approximateSize,id:X5l(z.formatType)}}})};
v1=function(M){if(M)return M.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Uft=function(M,z){M=new Set(M!=null?M:[]);if(M.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(M.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(M.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(M.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(M.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(z)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
vSw=function(M){var z=M.indexOf("(");return z!==-1?M.substring(z+1,M.length-1):M};
_.w5d=function(M,z,J,R,D){J||(J=Gmu);var N;(N=_.G(J.commandMetadata,_.X9))!=null&&N.url||(J=Error("ql`"+JSON.stringify(J)),_.nc(J),J=Gmu);J=_.gu.unsafeClone(J);N=_.$4(_.G(J.commandMetadata,_.X9).url,"search_query",M);_.KW(location.href,"sv")==="1"&&(_.G(J,_.wB).params="EgOAAgE%3D",N=_.$4(N,"sv","1"));_.G(J,_.wB)&&(_.G(J,_.wB).query=M);N=N.replace(/%20/g,"+");_.G(J.commandMetadata,_.X9).url=N;D=_.U("desktop_enable_entity_suggest")?{entityMid:D}:{};_.JF().resolve(_.Rb).resolveCommand(J,{form:{tempData:Object.assign({},
{gs_l:z,oq:R!=null?R:M},D)}})};
xfd=function(M){switch(M){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
jEw=function(M,z,J,R,D,N){var Z=_.gu.clone(t5N);Z.locale=_.HW("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Z.report={description:D||"<empty>"};D=_.HW("SBOX_SETTINGS",{});z=z.join(",");var B=Date.now();M={choice_cc:R,choice_id_cc:J,choices_sc:z,gl:D.REQUEST_DOMAIN,hl:D.REQUEST_LANGUAGE,query:M,time:B};N&&(M.choice_additional_comment_cc=N);_.Ikp(Z,M)};
p55=function(M){var z=new Map;z.set("authuser",_.HW("SESSION_INDEX","0"));return _.Pj(M,z)};
YUu=function(M){var z;return _.k(function(J){switch(J.nextAddress){case 1:if(!M||!FKv(M))return J.return(null);z=null;switch(_.HW("INNERTUBE_CLIENT_NAME")){case "WEB":return J.jumpTo(2);case "WEB_REMIX":z=M.getPlayer()}J.jumpTo(3);break;case 2:return J.yield(M.getPlayerPromise(),4);case 4:z=J.yieldResult;J.jumpTo(3);break;case 3:return J.return(z)}})};
FKv=function(M){return["ytd-player","ytmusic-player"].includes(String(M.tagName||"").toLowerCase())};
mfd=function(M){M=Math.round(M);return M%2?M-1:M};
gS5=function(M){M=Math.round(M);return M%2===0?M-1:M};
sEt=function(M){var z,J,R;if(M=(z=M.createPlaylistDialogFormSchema)==null?void 0:(J=z.fieldSchemas)==null?void 0:(R=J.title)==null?void 0:R.validationSchema)for(z=[M.syncStep,M.asyncStep].filter(function(D){return D!==void 0}),z=_.S(z),J=z.next();!J.done;J=z.next()){J=J.value.rules;
if(!J)break;J=_.S(J);for(J=J.next();!J.done;J=J.next())return _.G(J.value,_.yg5)}};
hti=function(M){var z,J,R;if(M=(z=M.createPlaylistDialogFormSchema)==null?void 0:(J=z.fieldSchemas)==null?void 0:(R=J.visibility)==null?void 0:R.validationSchema)for(z=[M.syncStep,M.asyncStep].filter(function(D){return D!==void 0}),z=_.S(z),J=z.next();!J.done;J=z.next()){J=J.value.rules;
if(!J)break;J=_.S(J);for(R=J.next();!R.done;R=J.next())if(R=_.G(R.value,nSl))return z=void 0,(z=R.translations)==null?void 0:z.visibilityNotValidErrorMessage}};
yhi=function(){var M,z;return(z=(M=_.JF().resolve(_.zw(_.Ah)))==null?void 0:M())!=null?z:!1};
Hem=function(M){var z=21;if(!M)return z;z+=M.headerTitle?27:0;z+=M.headerTitle&&M.hasHeaderActionHeader?4:0;return z+=M.headerTitle&&M.headerSubtitle?16:0};
chi=function(M){var z=0;if(!M)return z;z+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton?48:0;z+=M.footerTrailingLabel||M.footerLeadingLabel?30:0;return z+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton||!M.footerTrailingLabel&&!M.footerLeadingLabel?0:12};
dfG=function(M){var z=new _.l9,J=M;return{subscribe:function(R){z.subscribe("changed",R)},
dispatch:function(R,D){var N=J;R==="Touch Start"?J=Object.assign({},N,{isAnimating:!1,initialY:D.event.touches[0].clientY}):R==="Touch Move"?(R=Math.min(D.fullContentWrapperHeight,D.contentHeightMap[D.contentWrapperId]+Hem(D.header)-chi(D.footer)),J=Object.assign({},N,{currentY:Math.max(D.contentScrollable?-1*(N.initialY-24):0,D.event.touches[0].clientY-N.initialY),maxHeightForContentWrapper:Math.min(R,Math.max(0,(N.isFullScreen?R:D.contentWrapperHeight)-N.currentY))})):J=R==="Snap To Full Screen"?
Object.assign({},N,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:D.maxHeight}):R==="Snap To Neutral Position"?Object.assign({},N,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:D.maxHeight}):R==="Close Sheet"?Object.assign({},N,{isAnimating:!0,currentY:D.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:D.maxHeight}):N;z.publish("changed",J)}}};
KKw=function(M){return _.ol(function(z){M(z);return!1})};
$fi=function(){_.JF().resolve(_.hX).closeSheet()};
uHw=function(M){var z,J,R,D,N,Z,B,O,X,l,e;return{headerTitle:(z=M.headerTitle)==null?void 0:z.call(M),headerSubtitle:(J=M.headerSubtitle)==null?void 0:J.call(M),headerActionHeader:M.headerActionHeader,footerPrimaryButton:M.footerPrimaryButton,footerSecondaryButton:M.footerSecondaryButton,footerButtonType:(R=M.footerButtonType)==null?void 0:R.call(M),footerLeadingLabel:(D=M.footerLeadingLabel)==null?void 0:D.call(M),footerTrailingLabel:(N=M.footerTrailingLabel)==null?void 0:N.call(M),shouldShowIcons:(Z=
M.shouldShowIcons)==null?void 0:Z.call(M),skipContentClick:(B=M.skipContentClick)==null?void 0:B.call(M),additionalClassName:(O=M.additionalClassName)==null?void 0:O.call(M),onClosedCallback:M.onClosedCallback,focusOnClose:(X=M.focusOnClose)==null?void 0:X.call(M),isDisabled:(l=M.isDisabled)==null?void 0:l.call(M),disabledCommand:(e=M.disabledCommand)==null?void 0:e.call(M),headerFn:M.headerFn,contentFn:M.contentFn,footerFn:M.footerFn,hasHeaderFn:M.hasHeaderFn(),hasContentFn:M.hasContentFn(),hasFooterFn:M.hasFooterFn(),
hasFooterPrimaryButton:M.hasFooterPrimaryButton(),hasFooterSecondaryButton:M.hasFooterSecondaryButton(),hasHeaderActionHeader:M.hasHeaderActionHeader()}};
qUw=function(M){switch(M){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
WK5=function(M){switch(M){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
afw=function(M){switch(M){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
V5l=function(M,z,J){z.forEach(function(R){_.Ub(_.JF().resolve(_.hs),R)});
_.S9(M,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",J])};
Ahu=function(M,z,J,R){var D=_.G(J,_.AV).commandLifeCycleConfig;D&&D.onStartCommand&&_.Bv(M,[D.onStartCommand],z);_.WX(z);var N=_.Ve.instance;N&&_.EN(N,J)?_.fn(N,J,R).then(function(Z){if(!Z||(Z==null?0:Z.error))return Z=_.G(J,_.AV).serializedTransactionFlowLoggingParams,_.aZ(z),_.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z));_.aZ(z);return{data:Z}}).then(function(Z){_.aZ(z);
ESu(Z.data);var B=Z.data.command;B&&_.Bv(M,[B],z);B=ffm(J,Z.data);if(!B){var O=Z.data;Z=!1;if(O&&O.command&&_.G(O.command,_.TV)){var X;O=((X=_.G(O.command,_.TV))==null?void 0:X.commands)||[];for(X=0;X<O.length;X++)if(_.G(O[X],_.oKB)){Z=!0;break}}Z||_.ca('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!B&&D&&D.onSuccessCommand?_.Bv(M,[D.onSuccessCommand],z):B&&D&&D.onFailureCommand&&_.Bv(M,[D.onFailureCommand],z)},function(){_.aZ(z);
D&&D.onFailureCommand&&_.Bv(M,[D.onFailureCommand],z);LKm(J)}):_.nc(Error("Cl"),"ERROR")};
ieN=function(M,z,J){var R=[z];J&&R.push(J);return _.kQ(M,R).then(function(D){var N=_.G(z,_.AV).serializedTransactionFlowLoggingParams,Z=D.data,B=ffm(z,Z);B?D=_.gv(new Gv(B,N)):ESu(Z);return D},function(){var D=_.G(z,_.AV).serializedTransactionFlowLoggingParams;
LKm(z);return _.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",D))})};
ffm=function(M,z){M=_.G(M,_.AV).serializedTransactionFlowLoggingParams;var J=null;switch(z.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":J="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":J="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":J="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}J?_.A9(J,M):kVl(M);return J};
LKm=function(M){_.A9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.G(M,_.AV).serializedTransactionFlowLoggingParams)};
ESu=function(M){if(M.trackingParams){var z=_.y5(),J=_.hu();z&&J&&_.qs(z,J,_.pe(M.trackingParams))}};
C5l=function(M,z,J){var R=_.Ve.instance,D=_.hmw(_.HW("YPC_MB_URL")),N=(new _.sec).init(),Z=_.n6n(),B=_.G(J,_.Bxa).languageCode;B===void 0?_.nc(Error("Fi"),"ERROR"):_.Ys([N,D]).then(function(){var O={ctk:payments.business.integration.ClientTokenFactory.createClientToken(B,Z)};R&&_.EN(R,J)?_.fn(R,J,O).then(function(X){return{data:X}}).then(function(X){_.Pv(z,"yt-service-request-completed",X);
X.code!=="ERROR"&&(X=X.data.command)&&_.Bv(M,[X],z)}):_.nc(Error("Cl"),"ERROR")})};
Mhv=function(M,z,J,R){var D=_.Ve.instance;D&&_.EN(D,J)?_.fn(D,J,R).then(function(N){return{data:N}}).then(function(N){bel(M,z,J,N)},function(){rhw(J)}):(D=_.JF().resolve(_.zw(_.HP)))&&D.requestDataForServiceEndpoint(J,R).then(function(N){bel(M,z,J,N)},function(){rhw(J)})};
bel=function(M,z,J,R){_.Pv(z,"yt-service-request-completed",R);if(R.code&&R.code=="ERROR")rhw(J);else{(R=R.data.commands)&&_.Bv(M,R,z);var D;(M=(D=_.G(J,_.lJp))==null?void 0:D.serializedYpcPauseFlowLoggingParams)&&M&&_.bg("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",M)}};
rhw=function(M){var z;(M=(z=_.G(M,_.lJp))==null?void 0:z.serializedYpcPauseFlowLoggingParams)&&M&&_.bg("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
RUi=function(M,z,J){var R=_.Ve.instance;R&&_.EN(R,J)?_.fn(R,J).then(function(D){return{data:D}}).then(function(D){zUl(M,z,J,D)},function(){JMG(J)}):(R=_.JF().resolve(_.zw(_.HP)))&&R.requestDataForServiceEndpoint(J).then(function(D){zUl(M,z,J,D)},function(){JMG(J)})};
zUl=function(M,z,J,R){_.Pv(z,"yt-service-request-completed",R);R.code&&R.code=="ERROR"?JMG(J):((R=R.data.commands)&&_.Bv(M,R,z),(M=_.G(J,_.e1k).serializedYpcResumeFlowLoggingParams)&&M&&_.bg("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",M))};
JMG=function(M){(M=_.G(M,_.e1k).serializedYpcResumeFlowLoggingParams)&&M&&_.bg("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
D7N=function(M){M=M===void 0?{}:M;_.JF().resolve(_.bVB).showFeedbackDialog(M.customProductData,M.feedbackContent,M.onFeedbackSubmitted,M.bucket)};
N4l=function(M){M=M===void 0?{}:M;_.JF().resolve(_.bVB).showHelpDialog(M.helpContext,M.articleId,M.productData)};
PPs=function(){N4l()};
SNw=function(){D7N()};
kLv=function(M,z,J){var R,D,N,Z,B,O,X;return _.k(function(l){switch(l.nextAddress){case 1:R=_.G(M,ZnN);if((D=R)==null?0:D.productId){O={productId:R.productId,bucket:R.bucket,enableAnonymousFeedback:(B=R.enableAnonymousFeedback)!=null?B:!0,allowNonLoggedInFeedback:!0};X={feedbackChoice:J.feedbackChoice};if(!_.U("web_collect_offline_state")){l.jumpTo(8);break}_.Io(l,9);return l.yield(xsl(X),11)}Z={bucket:(N=R)==null?void 0:N.bucket};if(!_.U("web_collect_offline_state")){l.jumpTo(4);break}Z.customProductData=
{};_.Io(l,5);return l.yield(xsl(Z.customProductData),7);case 7:_.ab(l,4);break;case 5:_.Qa(l);case 4:D7N(Z);l.jumpTo(0);break;case 11:_.ab(l,8);break;case 9:_.Qa(l);case 8:_.v3e(X),_.Ul3("GFEEDBACK",X),R.productId==="5295751"&&(X.client_attestation=Number(_.HW("CATSTAT",0))),R.productId==="5295751"&&(X.client_time=Date.now()/1E3/3600),R.productId==="5295751"&&(X.original_playback_id=_.zWV||""),_.Ikp(O,X),_.UI(l)}})};
B4m=function(M){if(M=_.G(M,_.jpe)){var z={bucket:M.bucketIdentifier};M.additionalDatas&&(z.customProductData={},M.additionalDatas.forEach(function(J){if(J=J.userFeedbackEndpointProductSpecificValueData)z.customProductData[J.key]=J.value}));
D7N(z)}};
Onw=function(M){var z=_.VA.getInstance();var J=_.e9("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var R=_.e9("DELETE",void 0,"Delete"),D=_.e9("CANCEL",void 0,"Cancel");J=YFm(J,void 0,R,D,{signal:"DELETE_ALL_DOWNLOADS"});_.uM(z,[{openPopupAction:J}],M)};
Ivl=function(){return _.k(function(M){return M.nextAddress==1?M.yield(_.JF().resolve(_.ek),2):M.yield(T4G(),0)})};
onl=function(M){var z,J;return _.k(function(R){return R.nextAddress==1?(J=(z=_.G(M,_.qp))==null?void 0:z.targetId)?R.yield(_.JF().resolve(_.ek),3):R.jumpTo(0):R.yield(_.JF().resolve(_.lg).deleteVideo(J),0)})};
lv5=function(M){var z,J;return _.k(function(R){return R.nextAddress==1?(J=(z=_.G(M,_.qp))==null?void 0:z.targetId)?R.yield(_.JF().resolve(_.ek),3):R.jumpTo(0):R.yield(XSl(_.JF().resolve(_.lg),J),0)})};
Ql5=function(M){var z,J;return _.k(function(R){return(J=(z=_.G(M,_.qp))==null?void 0:z.targetId)?R.yield(eUm(J),0):R.jumpTo(0)})};
vnw=function(){_.U("kevlar_woffle_refresh_dl_load_killswitch")||U7d()};
wSm=function(){_.U("kevlar_woffle")&&_.nX.instance&&GLw()};
thw=function(M){var z;if((z=_.G(M,_.lE))==null||!z.videoId)return!1;x7w(_.JF().resolve(_.lg),_.G(M,_.lE),M.clickTrackingParams);return!0};
pSd=function(M){var z;if((z=_.G(M,_.Q9))==null||!z.playlistId)return!1;jlw(_.JF().resolve(_.lg),_.G(M,_.Q9),M.clickTrackingParams);return!0};
YNt=function(M){var z=_.G(M,_.JmJ);(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||FNw(_.JF().resolve(_.lg),_.G(M,_.JmJ))};
gnt=function(M){M=_.G(M,_.hOv);var z;(M==null?0:(z=M.actions)==null?0:z.length)&&m7v(M)};
hUN=function(M){var z,J;return _.k(function(R){z=_.G(M,slG);return(J=z)!=null&&J.localWatchHistoryCommandType?R.yield(nns(z),0):R.return()})};
yMd=function(M){setTimeout(function(){requestAnimationFrame(M)},80)};
Hnl=function(M){return Object.entries(M).map(function(z){return z.join(":")}).join(";")};
d7w=function(M){var z,J,R;_.k(function(D){if(D.nextAddress==1)return D.yield(cMs(),2);z=D.yieldResult;J=_.l5.instance;switch(z){case "granted":R=M.getLocationCommand;break;case "denied":R=M.openDeniedDialogAction;break;case "prompt":R=M.openCollectionDialogAction;break;default:R=M.openCollectionDialogAction}R&&J.resolveCommand(R);_.UI(D)})};
cMs=function(){var M,z;return _.k(function(J){if(J.nextAddress==1)return M="prompt",navigator.permissions?J.yield(navigator.permissions.query({name:"geolocation"}),3):J.jumpTo(2);J.nextAddress!=2&&(z=J.yieldResult,M=z.state);return J.return(M)})};
$7N=function(){_.k(function(M){return M.yield(_.KNw(),0)})};
uYw=function(){var M,z,J;return _.k(function(R){if(R.nextAddress==1)return M=_.JF().resolve(_.cP),M?R.yield(_.fn(M,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.yA(Error("Fl")),R.return(void 0));if(z=R.yieldResult){if(z.errorMetadata)return _.yA(Error("Gl`"+z.errorMetadata.status+"`"+z.error)),R.return(void 0);J=z.datasyncIds;_.z0N=J.length;return R.return(J)}_.yA(Error("Hl"));return R.return(void 0)})};
qNt=function(){uYw().then(function(M){M&&(E2m(M),oQG(M),dIw(M),pvN(M))})};
WNm=function(M){_.no.addLowPriorityJob(function(){var z,J,R,D,N;return _.k(function(Z){switch(Z.nextAddress){case 1:if(_.U("ytidb_clear_optimizations_killswitch")){Z.jumpTo(2);break}z=_.Gw("clear");if(z.startsWith("V")&&z.endsWith("||")){var B=[z];E2m(B);oQG(B);dIw(B);pvN(B);return Z.return()}J=K4i();R=FVm();return Z.yield(Xvw(),3);case 3:return D=Z.yieldResult,Z.yield(f35(),4);case 4:if(N=Z.yieldResult,!(J||R||D||N))return Z.return();case 2:M.isNetworkAvailable()?qNt():M.listenOnce("publicytnetworkstatus-online",
qNt),_.UI(Z)}})})};
wD=function(M){M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.id(M)}}}};_.l5.instance&&_.l5.instance.resolveCommand(M)};
avt=function(M){if(M){var z=_.Gm();_.Xx(z,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var J=238708;break;case 2:J=238715;break;case 3:J=238710;break;case 6:J=238709}J&&(M=_.v5(z,{veType:J}))&&_.Q6(z,M)}};
Vhm=function(M){if(M){var z=_.Gm();_.Xx(z,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var J=238714;break;case 2:J=238711;break;case 8:J=238709;break;case 7:J=238713;break;case 3:case 4:case 5:J=238712}J&&(M=_.v5(z,{veType:J}))&&_.Q6(z,M)}};
EnG=function(M){switch(M.latencyType){case 0:_.nY("consent_primitive_flow");_.hd("cpit",M.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.hd("cpist",M.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.hd("cprtif",M.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.hd("cprtli",M.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.hd("cprt",M.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.hd("cpdt",M.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.hd("cpjct",M.timestampEpochMillis,"consent_primitive_flow")}};
J_G=function(M,z){var J,R,D,N,Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V,E;return _.k(function(L){switch(L.nextAddress){case 1:_.Io(L,2);(R=(J=_.G(M,fvi))==null?void 0:J.serializedConsentRequest)||(R=(D=_.G(M,LNv))==null?void 0:D.serializedConsentRequest);R&&(N=AMw(_.Ae(R)));if(N===void 0)return L.return();Z=in5(N);Z.latencyCallback=EnG;z&&CP5(Z,function(){z.then(function(z8){z8.pauseVideo();(new bnG).increment()})});
return((B=_.G(M,fvi))==null?void 0:B.consentAction)==="CONSENT_ACTION_PREWARM"||((O=_.G(M,LNv))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"?L.yield(rMs(Z),5):L.yield(MFw(Z),6);case 6:X=L.yieldResult;l=_.py(X,xZ);if(l===1){if(((e=_.Ky(X,tt,1,xZ))==null?void 0:_.yE(e,1))===1||((Q=_.Ky(X,tt,1,xZ))==null?void 0:_.yE(Q,1))===2||((v=_.Ky(X,tt,1,xZ))==null?void 0:_.yE(v,1))===3)_.G(M,LNv)?wD(_.e9("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
wD(_.e9("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));avt((x=_.Ky(X,tt,1,xZ))==null?void 0:_.yE(x,1),_.zz(X,z$d,3,_.JK()))}else l===2?(((m=j8(X))==null?void 0:_.yE(m,1))===5?_.G(M,LNv)?wD(_.e9("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):wD(_.e9("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((y=j8(X))==null?void 0:_.yE(y,1))===1||((H=j8(X))==null?void 0:_.yE(H,1))===4?wD(_.e9("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((q=j8(X))==null?void 0:_.yE(q,1))===7&&((b=N)==null?void 0:(V=_.DG(b,pT,4))==null?void 0:_.yE(V,4))!==1&&wD(_.e9("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Vhm((E=j8(X))==null?void 0:_.yE(E,1))):wD(_.e9("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));L.jumpTo(5);break;case 5:_.ab(L,0);break;case 2:_.Qa(L),wD(_.e9("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.UI(L)}})};
D6w=function(){if(!R$v.has("Worker")){R$v.set("Worker",!0);var M={api:"BROWSER_API_WEB_WORKER"};M.available="Worker"in window?!0:!1;_.gP("apiTest",M)}};
NZi=function(M){return typeof M==="undefined"?"-1":String(Math.ceil(M/1048576))};
k_i=function(M,z){PEw(new S3s(_.G(z,Zf5).addToken,_.G(z,Zf5).commonToken)).then(function(){_.Pv(M,"yt-invoke-instrument-manager-action-completed")},function(J){_.Pv(M,"yt-invoke-instrument-manager-action-error",J)})};
BZl=function(){var M,z;return(z=(M=window).matchMedia)==null?void 0:z.call(M,"(prefers-reduced-motion: reduce)").matches};
Ofw=function(M){var z=_.JF().resolve(_.zw(_.xm));if(z&&z.isAnyTransitionEnabled){var J={};z.viewTransitionCoordinator.registerElement(M,(J.slide="miniplayer-page-transition",J["lockup-to-watch"]="miniplayer-page-transition",J["learning-journey"]="miniplayer-page-transition",J))}};
TZu=function(M,z,J){return{horizontalAlignment:M.x+J.width/2<z.width/2?"west":"east",verticalAlignment:M.y+J.height/2<z.height/2?"north":"south"}};
oCG=function(M,z,J,R,D){D=D===void 0?new _.nO(0,0):D;M=IU5(M,z,J,R);return new _.nO(M.x+D.x,M.y+D.y)};
IU5=function(M,z,J,R){return new _.nO(M==="west"?16:J.width-R.width-16,z==="north"?16:J.height-R.height-16)};
Xnv=function(M,z){var J=0;M&&(J+=76);z&&(J+=285);return J};
lUl=function(M){return _.aJ(M)};
e$w=function(M){var z=1;M=M.split(":");for(var J=[];z>0&&M.length;)J.push(M.shift()),z--;M.length&&J.push(M.join(":"));return J};
Q9c=function(M){var z=new _.Iy;return _.$I(z,11,M)};
U6v=function(M){var z={};M=M.getAllResponseHeaders().split("\r\n");for(var J=0;J<M.length;J++)if(!_.ko(M[J])){var R=e$w(M[J]),D=R[0];R=R[1];if(typeof R==="string"){R=R.trim();var N=z[D]||[];z[D]=N;N.push(R)}}return _.gu.map(z,function(Z){return Z.join(", ")})};
y2=function(M,z){return M.JSC$9763_xhr_?M.JSC$9763_xhr_.getResponseHeader(z):null};
vCd=function(M,z){if(M.isDisposed())throw Error("Ea");M.qu.jV("n");var J=_.cR(M.qu,function(){return M.rRv([z.u0,z.svO,z.m5b,z.lgk])},"n");
M.qu.eW2(J.length);M.qu.yS();return J};
FW=function(M,z,J){Array.isArray(J)||(J=[String(J)]);_.aZJ(M.JSC$9998_queryData_,z,J);return M};
GLw=function(){var M=_.nX.instance;_.k(function(z){return M.deferredInstallPrompt?z.yield(M.deferredInstallPrompt.prompt(),0):z.jumpTo(0)})};
G_l=function(M,z,J){if(_.WY(M))_.VU(M,z,J);else for(M=_.RJk(M);;){var R=M.next();if(R.done)break;z.call(J,R.value,void 0,M)}};
wnG={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}"]};
wnG={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 x65=function(M,z){var J=[];G_l(z,function(R){try{var D=_.ZQ.prototype.getWrapper.call(this,R,!0)}catch(N){if(N=="Storage: Invalid value was encountered")return;throw N;}D===void 0?J.push(R):_.J1u(D)&&J.push(R)},M);
return J},tFw=function(M,z){x65(M,z).forEach(function(J){_.ZQ.prototype.remove.call(this,J)},M)},j9v=function(M){var z=_.LH;
z._minimumZ=Math.max(z._minimumZ,M)},pnw=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Fnt=function(M,z){_.bv(M.vm);M.vm=z},Y3v=function(M,z,J,R){M.setState(5);
var D=!!M.yrH&&pnw.includes(_.Ch(M.yrH)||"");try{var N=new _.ds({program:z,globalName:J,wmR:{disable:!_.U("att_web_record_metrics")||!_.U("att_skip_metrics_for_cookieless_domains_ks")&&D,lR:"aGIf"}});N.bCN.then(function(){M.setState(6);R&&R(z)});
Fnt(M,N)}catch(Z){M.setState(7),Z instanceof Error&&_.yA(Z)}},m65=function(M,z,J,R,D,N){var Z=Z===void 0?"trayride":Z;
J?(M.setState(2),_.qI(_.jJ(J),function(){if(window[Z])Y3v(M,R,Z,D);else{M.setState(3);var B=_.iCR(J),O=document.getElementById(B);O&&(_.beR(B),O.parentNode.removeChild(O));_.yA(new _.xN("BL:ULB",J))}},N)):z?(N=_.lm("SCRIPT"),z instanceof _.f3?_.Ar(N,z):N.textContent=z,N.nonce=_.Ew(document),document.head.appendChild(N),document.head.removeChild(N),window[Z]?Y3v(M,R,Z,D):(M.setState(4),_.yA(new _.xN("BL:ULBJ")))):_.yA(new _.xN("BL:ULV"))},gCi=function(){this.state=1;
this.vm=null;this.yrH=void 0};
_.P=gCi.prototype;_.P.initialize=function(M,z,J,R){this.yrH=R;if(M.program){var D;R=(D=M.interpreterUrl)!=null?D:null;if(M.interpreterSafeScript)D=_.vzG(M.interpreterSafeScript);else{var N;D=(N=M.interpreterScript)!=null?N:null}M.interpreterSafeUrl&&(R=_.ho(M.interpreterSafeUrl).toString());m65(this,D,R,M.program,z,J)}else _.yA(Error("jf"))};
_.P.isInitialized=function(){return!!this.vm};
_.P.getState=function(){return this.state};
_.P.isLoading=function(){return this.state===2};
_.P.invoke=function(M){M=M===void 0?{}:M;var z;this.vm?z=vCd(this.vm,{u0:M}):z=null;return z};
_.P.dispose=function(){Fnt(this,null);this.setState(8)};
_.P.setState=function(M){this.state=M};
var s9v=function(M,z){return M.vm.snapshot(z)},nC5=function(M,z){var J=_.NC("botguard_async_snapshot_timeout_ms",3E3);
z=z===void 0?{}:z;J=J===void 0?3E3:J;return M.vm?new Promise(function(R,D){var N=!1,Z=_.no.addJob(function(){N=!0;D(Error("kf"))},1,J);
M.vm?s9v(M,{u0:z}).then(function(B){_.no.cancelJob(Z);N||R(B)}).catch(function(B){_.no.cancelJob(Z);
N||D(B)}):(_.no.cancelJob(Z),R(null))}):Promise.resolve(null)},h$d=["att/log"],Gmu;
Gmu={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var y_l={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Hfw=function(M,z){return _.vA(M,{mode:"readwrite",enableRetries:!0},function(J){return _.sRp(J,z,"settingEntity")})},c_t=function(M,z,J){return _.vA(M,{mode:"readonly",
enableRetries:!0},function(R){return _.KYJ(R,z,J)})},d6l=function(M){if(!M.storage)return!1;
a:{if(M.storage){try{var z=M.storage.get("TLPQtimestamp")}catch(J){}M=Number(z);if(!isNaN(M))break a}M=void 0}return M?Date.now()-M<864E5:!1},Knw=function(M){if(M.storage){try{var z=M.storage.get("TLPQindex")}catch(J){}M=Number(z);
if(!isNaN(M))return M}},$6l=function(M,z){M.queueProxy&&z.forEach(function(J){if(J.videoId&&J.trackingParams&&M.queueProxy instanceof _.un){var R=_.y5();
M.queueProxy.attributionData.set(J.videoId,{enqueueingVe:_.pe(J.trackingParams).getAsJson(),enqueueingCsn:R?R:void 0,clientEnqueueingTimeMs:Math.floor((0,_.zU)()).toString()})}})},uam=function(M){var z=_.UVk(M);
z!=M.currentSnapState_&&(M.currentSnapState_=z,M.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},YZ=function(M){this.JSC$13069_networkManager_=M;
this.partCallbacks_=[]};
YZ.prototype.getCacheKeyForEndpoint=function(M){return _.oko(M,!1)};
YZ.prototype.onPartsCallback_=function(M){this.partCallbacks_.forEach(function(z){M&&z(M)})};
var mD=function(M,z,J){YZ.call(this,M);this.player_=z;this.autoplayData_=J};
_.w(mD,YZ);mD.prototype.getCacheKeyForEndpoint=function(M){return _.oko(M,!!this.autoplayData_)};
mD.prototype.getTempData=function(M,z){z=z.timeBeforeNextVideo;M={itct:M.clickTrackingParams,lact:_.Rf(),pbis:z,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(M.autonav=1);return M};
mD.prototype.getXhrParams=function(M){return Object.assign({pbj:"prefetch"},M)};
mD.prototype.getParams=function(M){M={frags:M.fragmentsRequested.join(",")};_.U("kevlar_droppable_prefetchable_requests")&&(M.prefetch=1);return M};
var q3t=function(M){M.playerEvents_.forEach(function(z){M.player.removeEventListener(z.eventName,z.callback)});
M.playerEvents_.length=0},gD=function(M,z,J){this.player=M;
this.JSC$13079_taskManager=z;this.prefetchDelay=J;this.completionResolver_=null;this.playerEvents_=[]};
gD.prototype.start=function(){var M=this;this.completionResolver_=_.Ln();_.mi(this.completionResolver_.promise,function(){q3t(M);M.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Wn5=function(M,z,J){M.player.addEventListener(z,J);M.playerEvents_.push({eventName:z,callback:J})},aUw={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},VFd={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},ECw=function(M,z,J){gD.call(this,M,z,J);this.cueId_="playbackTrigger-"+Math.random()};
_.w(ECw,gD);
ECw.prototype.prepareTrigger=function(M){var z=this,J=this.player.getDuration(),R=this.player.getVideoData(),D=R.isLive&&R.hasProgressBarBoundaries;if(D&&R.progressBarEndPositionUtcTimeMillis){var N=R.progressBarEndPositionUtcTimeMillis/1E3;isNaN(N)||(J=N)}var Z=0;this.prefetchDelay>=0?D?R.progressBarStartPositionUtcTimeMillis&&(R=R.progressBarStartPositionUtcTimeMillis/1E3,isNaN(R)||(Z=R+this.prefetchDelay)):Z=this.prefetchDelay:Z=J+this.prefetchDelay;D?this.player.addUtcCueRange(this.cueId_,Z,J):
this.player.addCueRange(this.cueId_,Z,J);_.mi(M.promise,function(){z.player.removeCueRange(z.cueId_)});
Wn5(this,"onCueRangeEnter",function(B){B==z.cueId_&&M.resolve(J-Z)})};
var fUc=function(M,z){M.fragmentConfiguration_[z].requiredKeys.every(function(J){return!!M.prefetchedData_[J]})&&(M.validatedFragments_.push(z),z=M.missingFragments_.indexOf(z),z!==-1&&M.missingFragments_.splice(z,1))},LnN=function(M){M.prefetchedFragments_.forEach(function(z){fUc(M,z)})},A_l=function(M,z,J){this.pageFragments_=M;
this.prefetchedFragments_=z;this.fragmentConfiguration_=VFd;this.prefetchedData_=J;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;LnN(this)},ifv=function(){},CEw=function(M){this.JSC$13093_playlistManager_=M};
_.w(CEw,ifv);CEw.prototype.getPrefetchEndpoint=function(){return this.JSC$13093_playlistManager_.getAutoplayEndpoint()};
var bfw=function(M){this.autonavEndpoints_=M};
_.w(bfw,ifv);bfw.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var r_u=function(M,z,J,R,D){this.autonavEndpoints=M;this.foregroundTrigger=z;this.backgroundTrigger=J;this.pageType=R;this.isInPlaylist=D},M4d=function(M,z){if(M.webPrefetchData&&M.webPrefetchData.navigationEndpoints&&M.webPrefetchData.navigationEndpoints.length){M=M.webPrefetchData.navigationEndpoints;
var J=_.G(M[0],_.Au);if(J.watchEndpointSupportedPrefetchConfig&&J.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var R=J.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;J=R.playbackRelativeSecondsPrefetchCondition;J=typeof J==="number"&&Math.abs(J)<z.videoDuration?J:void 0;R=R.countdownUiRelativeSecondsPrefetchCondition;R=typeof R!=="number"||_.U("prefetch_job_config_cleanup_ks")&&z.inPlaylist?void 0:R;if(typeof R==="number")return new r_u(M,z.makeUpNextTrigger(R),z.makePlaybackTrigger(R),
"watch",z.inPlaylist);if(typeof J==="number")return new r_u(M,z.makePlaybackTrigger(J),null,"watch",z.inPlaylist)}}},zYi=function(M){return M.prefetchJobConfig_.backgroundTrigger?_.ui(_.fyp)()==0?M.prefetchJobConfig_.backgroundTrigger:M.prefetchJobConfig_.foregroundTrigger:M.prefetchJobConfig_.foregroundTrigger},Jkv=function(M){_.tQ(document,"visibilitychange",M.onVisibilityChange_,!1,M)},sr=function(M){YZ.call(this,M)};
_.w(sr,YZ);sr.prototype.getCacheKeyForEndpoint=function(M){return YZ.prototype.getCacheKeyForEndpoint.call(this,M)};
sr.prototype.getTempData=function(){return{}};
sr.prototype.getXhrParams=function(M){return M};
sr.prototype.getParams=function(){return{}};
var RY5=function(M,z,J){var R=M.prefetchDelay*1E3;if(Math.abs(R)>z)J.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var D=R,N=z-R;R<0&&(D=z+R,N=Math.abs(R));var Z=M.JSC$13079_taskManager.addJob(function(){J.resolve(N/1E3)},10,D);
J.promise.thenCatch(function(){M.JSC$13079_taskManager.cancelJob(Z)})}},D95=function(M,z,J){gD.call(this,M,z,J)};
_.w(D95,gD);D95.prototype.prepareTrigger=function(M){var z=this;Wn5(this,"onAutonavCoundownStarted",function(J){RY5(z,J,M)})};
var NFm=function(M){M.pendingPrefetchJob_&&(M.pendingPrefetchJob_.cancel(),M.pendingPrefetchJob_=null)},PfG=function(M,z,J){if(!M.triggeredTargets.has(z)){var R=_.IqV(M,z);
R.action=J;_.OUQ(M,z,R)}},Smw=function(M){_.rjV();
_.SvY("cpt")&&_.yA(Error("kh"));_.R3.requestAnimationFrame(function(){_.R3.setTimeout(function(){_.hd("cpt");var z=_.cv("vpl"),J=_.cv("cpt");z&&J&&_.hd("ol",Math.max(z,J))})});
try{_.hd("fr_s"),M()}catch(z){_.nc(z)}_.R3.requestAnimationFrame(function(){_.hd("bcp")})},Zrd=function(M,z){M.serviceEndpointHandlers.push(z)},kym=function(M,z){z=M.pendingPages_.indexOf(z);
z>-1&&M.pendingPages_.splice(z,1)},BFw=function(M,z){var J=_.xwp.indexOf(z);
J>-1&&_.xwp.splice(J,1);M.targetPage_==z?(M.abort(),_.jGu(M)):kym(M,z)},Orw=function(M,z,J,R){z={challenge:z};
J&&(z.webResponse=J);return _.W2(M.innertubeTransportService,z,_.MG(h$d),R)},TFl=function(M,z,J){if(!z.challenge)throw Error("ni");
if(z.botguardData&&z.botguardData.program){var R=new gCi;R.initialize(z.botguardData,function(){nC5(R,{atr_challenge:z.challenge}).then(function(D){if(!D)throw Error("oi");return Orw(M,z.challenge,D,J)}).catch(function(D){_.yA(D);
return Orw(M,z.challenge,void 0,J)})},void 0)}else Orw(M,z.challenge,void 0,J)},IKG=function(M,z,J){var R={};
z.ids&&(R.ids=[].concat(_.Yj(z.ids)));z.engagementType&&(R.engagementType=z.engagementType);return _.W2(M.innertubeTransportService,R,_.MG(_.Jpa),J).then(function(D){if(!D)throw new _.xN("GetAttestationChallenge returned falsy");TFl(M,D,J)}).thenCatch(function(D){_.nc(D)})},o8w=function(M,z,J){return new _.If(function(R,D){var N;
return _.k(function(Z){if(Z.nextAddress==1){var B=Z.yield,O=z.engagementType,X=z.ids,l={};X=_.S(X!=null?X:[]);for(var e=X.next();!e.done;e=X.next())e=e.value,e.encryptedVideoId?l.encryptedVideoId=e.encryptedVideoId:e.externalChannelId?l.externalChannelId=e.externalChannelId:e.commentId?l.commentId=e.commentId:e.externalOwnerId?l.externalOwnerId=e.externalOwnerId:e.artistId?l.artistId=e.artistId:e.playlistId?l.playlistId=e.playlistId:e.externalPostId?l.externalPostId=e.externalPostId:e.shareId&&(l.shareId=
e.shareId);return B.call(Z,F6l(O,l),2)}N=Z.yieldResult;if(!N.challenge)return _.yA(Error("pi")),IKG(M,z,J).then(R,D),Z.return();B=N;O={challenge:B.challenge};O.webResponse=B.webResponse;O.engagementType=z.engagementType;O.ids=z.ids;_.W2(M.innertubeTransportService,O,_.MG(h$d),J).then(R,D);_.UI(Z)})})},Hdw=function(M,z){var J,R,D,N;
_.k(function(Z){if(Z.nextAddress==1){J=_.G(z,_.$kt);if(!(J&&J.listId&&M.response&&M.response.playingVideoId)||M.listId!==J.listId)return Z.return();M.index===void 0&&(M.index=0);return Z.yield(_.GMv(M.JSC$12824_playlistNetworkManager,J.listId,M.index,M.response.playingVideoId),2)}R=Z.yieldResult;if(!R)return Z.return();D=R.playlistId;N=R.playlistPanelRenderer;M.setPlaylistData(D,N,R.autoplayRenderer);_.UI(Z)})},XXl=function(M,z,J){var R=M.getParams(J),D=_.m68(z,R),N=M.getTempData(z,J);
N.endpoint=JSON.stringify(z);_.U("enable_unknown_lact_fix_on_html5")&&(_.JF().resolve(_.pn),N.lact=_.Rf());var Z={headers:{"X-YouTube-STS":_.HW("STS"),"x-youtube-csoc":1}};_.rM(D,N);return new _.If(function(B,O){var X=M.getXhrParams(R),l;_.U("kevlar_cache_on_ttl_player")&&(l=_.Y5.instance);l&&_.amg(l,z)?_.bzv(l,z,N,window.location.href).then(function(e){e?B(e):O()},O):_.U1B(M.JSC$13069_networkManager_,z,X,M.onPartsCallback_.bind(M),Z).then(function(e){e?B(e):O()},O)})},lKl=function(M,z){M.triggerPromise_=
z.start();
M.triggerPromise_.then(function(J){var R=M.prefetchEndpointProvider_.getPrefetchEndpoint();if(R){var D=aUw[M.prefetchJobConfig_.pageType].prefetchedFragments;M.prefetchRequestPromise_=XXl(M.JSC$13105_networkPrefetchRequest_,R,{fragmentsRequested:D,timeBeforeNextVideo:J});M.prefetchResponseCacheKey_=M.JSC$13105_networkPrefetchRequest_.getCacheKeyForEndpoint(R);Jkv(M);M.prefetchRequestPromise_.then(function(N){M.storePrefetchedDataCallback_(M.prefetchResponseCacheKey_,N);if(_.U("web_prefetch_preload_video")&&
D.length===1&&D[0]==="pl"&&N&&!N.playerAds&&!N.adPlacements){var Z=_.G(R,_.je),B=Z!=null,O={raw_player_response:N,watch_endpoint:Z};(N=_.JF().resolve(B?_.Rdt:_.SF))&&R&&N.then(function(X){B&&_.U("web_queue_preload_video")?(O.prefer_gapless=!0,X.queueNextVideo(O)):X.preloadVideoByPlayerVars(O)})}})}})},nT=function(M,z,J,R){this.prefetchEndpointProvider_=M;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=z;this.prefetchJobConfig_=J;this.JSC$13105_networkPrefetchRequest_=R;this.prefetchResponseCacheKey_=null};
nT.prototype.enqueue=function(){this.triggerPromise_||(lKl(this,zYi(this)),_.YS(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
nT.prototype.resolve=function(){this.cancel()};
nT.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.");Jkv(this)};
nT.prototype.onVisibilityChange_=function(){var M=this;_.ui(_.fyp)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){M.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||lKl(this,zYi(this))};
var eYN=function(M,z,J,R,D){z&&(z==null?0:z.videoId)&&J&&J.entries&&_.U("kevlar_enable_shorts_prefetch_in_sequence")&&(NFm(M),z=J.entries.map(function(N){var Z;return(Z=_.G(N.command,_.je))==null?void 0:Z.videoId}).indexOf(z.videoId),J=J.entries[z+1],J!=null&&J.command&&!_.G(J==null?void 0:J.command,_.qj)&&(R=new r_u([J.command],new ECw(R,_.no,1),null,"shorts",!1),M.pendingPrefetchJob_=new nT(new bfw(R.autonavEndpoints),function(){return!1},R,new sr(D)),M.pendingPrefetchJob_.enqueue()))},QZl=function(M,
z,J,R,D,N){var Z=_.NJ.getInstance();
if(!_.U("block_all_player_prefetch_requests")){NFm(M);var B=!!J.getPlaylistId(),O=J.getVideoData().isLive&&J.getVideoData().hasProgressBarBoundaries;if((Z.getState()==2||B||O)&&(!J.getVideoData().isLive||O)){Z={inPlaylist:B,videoDuration:J.getDuration(),makeUpNextTrigger:function(l){return new D95(J,_.no,l)},
makePlaybackTrigger:function(l){return new ECw(J,_.no,l)}};
var X=M4d(z,Z);X&&(M.pendingPrefetchJob_=new nT(X.isInPlaylist?new CEw(D):new bfw(X.autonavEndpoints),function(l,e){e=new A_l(aUw[X.pageType].pageFragments,aUw[X.pageType].prefetchedFragments,e);return _.JCQ(e)?(M.prefetchCache_.set(l,e),!0):!1},X,new mD(R,J,N,D)),M.pendingPrefetchJob_.enqueue())}}},U9d=function(){var M=_.Am();
M.signals.parkOrScheduleJob(function(){var z=M.storage;if(z.storage)if(d6l(z)){var J=z.getPlaylistId();z=Knw(z);J=!!J&&z!==void 0}else z.clear(),J=!1;else J=!1;if(J){J=M.pageManager.isOnWatch();a:{var R=M.storage;if(R.storage&&d6l(R)&&(z=R.getPlaylistId(),R=Knw(R),z&&R!==void 0)){J={recoverPlaylistCommand:{listId:z,index:R,openMiniplayer:!J,openListPanel:J,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}J=void 0}J&&_.uM(M.JSC$12824_actionRouter,[J],null)}},0,"ma")},v8t=function(M,z,J,R,D,N){var Z=
_.O3(7111);
_.ln(M.JSC$18202_screenManager,Z,N?_.pe(N):void 0);_.Q6(M.JSC$18202_screenManager,Z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:R,offlineId:z,offlineabilityFormatType:J,isDefaultFormatType:D==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:D}})},Gyw=function(M,z,J,R,D){var N,Z,B,O,X;
return _.k(function(l){if(l.nextAddress==1)return l.yield(M.JSC$18202_playerApiPromise,2);N=l.yieldResult;v8t(M,z,J,"OFFLINE_OBJECT_TYPE_PLAYLIST",R,D);if(B=_.Eh2[M.entityTypeMap.listEntityType])X={},Z=(X[B]={maximumDownloadQuality:(O=J)!=null?O:void 0},X);return l.yield(N.queueOfflineAction(z,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Z),0)})},wXw=function(M,z){var J,R,D,N;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(M.JSC$18202_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){J=Z.yieldResult;if(!J)return _.yA(new _.xN("PES is undefined")),Z.return();R=_.Tr(z,"downloadStatusEntity");return Z.yield(c_t(J,R,"downloadStatusEntity"),3)}D=Z.yieldResult;return Z.return((N=D)==null?void 0:N.downloadState)})},x9u=function(M,z,J,R,D){var N,Z,B,O,X,l;
return _.k(function(e){switch(e.nextAddress){case 1:return e.yield(M.JSC$18202_playerApiPromise,2);case 2:N=e.yieldResult;v8t(M,z,J,"OFFLINE_OBJECT_TYPE_VIDEO",R,D);if(B=_.Eh2[M.entityTypeMap.singleEntityType])X={},Z=(X[B]={maximumDownloadQuality:(O=J)!=null?O:void 0},X);return e.yield(wXw(M,z),3);case 3:l=e.yieldResult;if(l!=="DOWNLOAD_STATE_USER_DELETED"){e.jumpTo(4);break}return e.yield(M.deleteVideo(z),4);case 4:return e.yield(N.queueOfflineAction(z,M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
Z),0)}})},t4w=function(M,z,J,R,D){return _.k(function(N){return N.nextAddress==1?N.yield(M.deleteVideo(z,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):N.yield(x9u(M,z,J,R,D),0)})},jZu=function(M,z,J){var R,D;
return _.k(function(N){if(N.nextAddress==1)return N.yield(M.JSC$18202_playerApiPromise,2);R=N.yieldResult;D=_.Tr(z,"mainVideoDownloadStateEntity");return N.yield(R.updateDownloadState(D,J),0)})},eUm=function(M){var z=_.JF().resolve(_.lg);
return _.k(function(J){if(J.nextAddress==1)return z.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&z.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?J.jumpTo(2):J.yield(z.resumeVideoDownload(M),2);if(J.nextAddress!=4)return J.yield(jZu(z,M,z.previousDownloadStateForVideo[M]),4);delete z.previousDownloadStateForVideo[M];_.UI(J)})},XSl=function(M,z){var J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$18202_playerApiPromise,2);J=R.yieldResult;return R.yield(J.queueOfflineAction(z,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},T4G=function(){var M=_.JF().resolve(_.lg),z,J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$18202_playerApiPromise,2);if(R.nextAddress!=3)return z=R.yieldResult,J={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},R.yield(z.queueOfflineAction("!*$_ALL_ENTITIES_!*$",M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),3);var D=M.JSC$18202_commandHandler,N=D.resolveCommand,Z=_.e9("DELETING_ALL",void 0,"Downloads are being deleted");N.call(D,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.JN(Z)}},
popupType:"TOAST"}});_.UI(R)})},pXl=function(M,z){var J,R,D,N,Z,B;
return _.k(function(O){if(O.nextAddress==1)return O.yield(M.JSC$18202_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return J=O.yieldResult,J?O.yield(c_t(J,_.mp,"downloadsPageViewConfigurationEntity"),3):(_.yA(new _.xN("PES is undefined")),O.return());D=(R=O.yieldResult)!=null?R:{};B=(Z=(N=D)==null?void 0:N.downloadsUpsellBannerVisibility)!=null?Z:{};return B.visibleWithConnection?O.yield(z.refreshAllStaleEntities(0),0):O.jumpTo(0)})},F3c=function(M){var z,J;
return _.k(function(R){if(R.nextAddress==1)return R.yield(M.JSC$18202_prefStorage,2);z=R.yieldResult;return R.return((J=z)==null?void 0:J.get("sdois"))})},Ymv=function(M){var z,J,R,D,N,Z;
return _.k(function(B){if(B.nextAddress==1)return B.yield(M.JSC$18202_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){z=B.yieldResult;if(!z)return _.yA(new _.xN("PES is undefined")),B.return();J=_.Tr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return B.yield(c_t(z,J,"settingEntity"),3)}R=B.yieldResult;return B.return((Z=(D=R)==null?void 0:(N=D.settingOptionValue)==null?void 0:N.boolValue)!=null?Z:!1)})},m9w=function(M,z){var J,R,D,N;
return _.k(function(Z){switch(Z.nextAddress){case 1:return((J=z)==null?void 0:J.formatType)===void 0?Z.return():Z.yield(M.JSC$18202_prefStorage,2);case 2:R=Z.yieldResult;if(R===void 0)return Z.return();if(((D=z)==null?void 0:D.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return Z.yield(R.set("lmqf",z.formatType),8);if(((N=z)==null?void 0:N.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Z.jumpTo(0);break}return Z.yield(R.set("lmqf",z.formatType),6);case 6:return Z.yield(R.set("lmqflst",
Math.floor((0,_.zU)())),0);case 8:return Z.yield(R.remove("lmqflst"),0)}})},g8m=function(M){var z,J;
return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(M.JSC$18202_prefStorage,2);case 2:z=R.yieldResult;if(!z){R.jumpTo(3);break}return R.yield(z.get("lmqflst"),4);case 4:if(J=R.yieldResult,J!==void 0)return R.return(J);case 3:return R.return(0)}})},sZw=function(M){var z,J;
return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(M.JSC$18202_prefStorage,2);case 2:z=R.yieldResult;if(z===void 0){R.jumpTo(3);break}return R.yield(z.get("lmqf"),4);case 4:if(J=R.yieldResult,J!==void 0)return R.return(J);case 3:return R.return("SD")}})},jlw=function(M,z,J){var R,D,N,Z,B,O,X,l;
_.k(function(e){switch(e.nextAddress){case 1:return e.yield(m9w(M,(R=z)==null?void 0:R.actionParams),2);case 2:D=z.playlistId;if(!D)return e.return();if(z.action==="ACTION_ADD")return((Z=z.actionParams)==null?0:Z.formatType)?e.yield(Gyw(M,D,z.actionParams.formatType,(l=z.actionParams)==null?void 0:l.settingsAction,J),0):e.yield(M.offlineWebClientEligibility,14);if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var Q=M.JSC$18202_commandHandler,v=Q.resolveCommand,x=_.HW("INNERTUBE_CLIENT_NAME");var m=x===
"WEB_REMIX"?_.e9("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.e9("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=x==="WEB_REMIX"?[_.e9("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];x=x==="WEB_REMIX"?_.e9("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.e9("DELETE",void 0,"Delete");var H=_.e9("CANCEL",void 0,"Cancel");m=YFm(m,y,x,H,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:D});v.call(Q,{openPopupAction:m});return e.return()}if(z.action===
"ACTION_REMOVE")return e.yield(XSl(M,D),0);if(z.action!=="ACTION_SYNC"){e.jumpTo(0);break}return e.yield(M.JSC$18202_playerApiPromise,9);case 9:return N=e.yieldResult,e.yield(N.queueOfflineAction(D,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return B=e.yieldResult,e.yield(sZw(M),15);case 15:return O=e.yieldResult,e.yield(g8m(M),16);case 16:X=e.yieldResult,z.onAddCommand&&M.JSC$18202_commandHandler.resolveCommand(z.onAddCommand,{form:{preferredFormatType:O,
offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:X.toString()}}),e.jumpTo(0)}})},x7w=function(M,z,J){var R,D,N,Z,B,O,X,l,e,Q,v,x,m,y;
_.k(function(H){switch(H.nextAddress){case 1:return H.yield(m9w(M,(R=z)==null?void 0:R.actionParams),2);case 2:D=z.videoId;if(!D)return H.return();if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var q=M.JSC$18202_commandHandler,b=q.resolveCommand,V=_.HW("INNERTUBE_CLIENT_NAME");var E=V==="WEB_REMIX"?_.e9("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.e9("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=V==="WEB_REMIX"?[_.e9("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];V=V==="WEB_REMIX"?_.e9("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.e9("DELETE",void 0,"Delete");var z8=_.e9("CANCEL",void 0,"Cancel");E=YFm(E,L,V,z8,{signal:"DELETE_DOWNLOAD",targetId:D});b.call(q,{openPopupAction:E});return H.return()}if(z.action==="ACTION_ADD")return((Q=z.actionParams)==null?0:Q.formatType)?H.yield(x9u(M,D,z.actionParams.formatType,(y=z.actionParams)==null?void 0:y.settingsAction,J),0):H.yield(M.offlineWebClientEligibility,23);if(z.action==="ACTION_RETRY")return H.yield(sZw(M),
19);if(z.action==="ACTION_PAUSE")return H.yield(M.pauseVideoDownload(D),0);if(z.action==="ACTION_RESUME")return H.yield(M.resumeVideoDownload(D),0);if(z.action!=="ACTION_REMOVE"){H.jumpTo(0);break}return H.yield(wXw(M,D),13);case 13:return N=H.yieldResult,M.previousDownloadStateForVideo[D]=(Z=N)!=null?Z:"DOWNLOAD_STATE_UNKNOWN",H.yield(jZu(M,D,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(M.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&M.previousDownloadStateForVideo[D]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){H.jumpTo(15);break}return H.yield(M.pauseVideoDownload(D),15);case 15:q=_.e9("DELETED_VIDEO",void 0,"Video deleted from downloads.");b=_.e9("UNDO_ACTION",void 0,"Undo");E=_.e9("CLOSE",void 0,"Close");B={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.JN(q),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.JN(b),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:D}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:q+" "+b}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:D}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:E}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};M.JSC$18202_commandHandler.resolveCommand(B);
H.jumpTo(0);break;case 19:O=H.yieldResult;O==="UNKNOWN_FORMAT_TYPE"&&(O="SD");X="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((l=z.actionParams)==null?0:l.formatType)O=z.actionParams.formatType,X=(e=z.actionParams)==null?void 0:e.settingsAction;return H.yield(t4w(M,D,O,X,J),20);case 20:return H.return();case 23:return v=H.yieldResult,H.yield(sZw(M),24);case 24:return x=H.yieldResult,H.yield(g8m(M),25);case 25:m=H.yieldResult,z.onAddCommand&&M.JSC$18202_commandHandler.resolveCommand(z.onAddCommand,
{form:{preferredFormatType:x,offlineWebClientEligibility:v,lastOfflineQualitySettingsSavedMs:m.toString()}}),H.jumpTo(0)}})},n8G=function(M,z){var J,R,D,N,Z,B,O;
return _.k(function(X){if(X.nextAddress==1)return X.yield(M.JSC$18202_persistentStorePromiseAccessor(),2);J=X.yieldResult;if(!J)return _.yA(new _.xN("PES is undefined")),X.return();if((R=z)==null||!R.settingItemId)return X.return();D=z;N=D.settingItemId;Z=D.boolValue;B=_.Tr(N,"settingEntity");O={key:B,settingOptionValue:{boolValue:Z}};return X.yield(Hfw(J,O),0)})},hYt=function(M,z){var J,R,D,N,Z,B,O;
return _.k(function(X){switch(X.nextAddress){case 1:return X.yield(M.JSC$18202_prefStorage,2);case 2:return J=X.yieldResult,R=_.vv(),X.yield(M.JSC$18202_persistentStorePromiseAccessor(),3);case 3:return D=X.yieldResult,J?D?X.yield(J.get("sdois"),4):(_.yA(new _.xN("PES is undefined")),X.return()):(_.yA(new _.xN("prefStorage is undefined")),X.return());case 4:N=X.yieldResult;B=(Z=z)==null?void 0:Z.boolValue;B===void 0||_.U("kevlar_set_sd_enabled_flag_killswitch")||_.GV(0,197,!0);N===void 0&&B===void 0&&
(B=!1);if(B===void 0){X.jumpTo(0);break}return X.yield(J.set("sdois",B),6);case 6:return _.U("kevlar_set_sd_enabled_flag_killswitch")||(_.GV(0,196,B),R.save()),O={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:B},X.yield(n8G(M,O),0)}})},ykl=function(M,z,J){var R,D,N,Z,B;
return _.k(function(O){switch(O.nextAddress){case 1:return O.yield(F3c(M),2);case 2:return R=O.yieldResult,O.yield(hYt(M,J),3);case 3:return O.yield(F3c(M),4);case 4:return D=O.yieldResult,N=D!==R,O.yield(Ymv(M),5);case 5:Z=O.yieldResult&&!_.U("kevlar_modern_downloads_page");if((B=!D&&!Z)||N)return O.yield(z.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);O.jumpTo(0)}})},U7d=function(){var M=_.JF().resolve(_.lg),
z;
_.k(function(J){switch(J.nextAddress){case 1:return J.yield(M.JSC$18202_playerApiPromise,2);case 2:z=J.yieldResult;if(!_.U("kevlar_force_refresh_smart_downloads")){J.jumpTo(3);break}return J.yield(z.refreshAllStaleEntities(0),4);case 4:return J.return();case 3:return J.yield(z.refreshAllStaleEntities(),5);case 5:return J.yield(ykl(M,z),6);case 6:if(_.U("enable_download_pep_for_premium_countries_web"))return J.yield(pXl(M,z),0);J.jumpTo(0)}})},FNw=function(M,z){var J,R;
_.k(function(D){switch(D.nextAddress){case 1:return D.yield(M.JSC$18202_playerApiPromise,2);case 2:J=D.yieldResult;switch((R=z)==null?void 0:R.settingItemId){case "SMART_DOWNLOADS_ENABLED":return D.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return D.jumpTo(4)}D.jumpTo(0);break;case 3:return D.yield(ykl(M,J,z),6);case 6:D.jumpTo(0);break;case 4:return D.yield(n8G(M,z),7);case 7:D.jumpTo(0)}})},Hru=function(M,z){var J,R,D;
return _.k(function(N){if(N.nextAddress==1)return N.yield(M.JSC$18202_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3){J=N.yieldResult;if(!J)return _.yA(new _.xN("PES is undefined")),N.return(!1);if(!z)return N.return(!1);R=_.Tr(z,"mainVideoEntity");return N.yield(c_t(J,R,"mainVideoEntity"),3)}D=N.yieldResult;return N.return(D!==void 0)})},m7v=function(M){var z=_.JF().resolve(_.lg),J,R,D,N,Z,B,O,X,l,e,Q;
_.k(function(v){switch(v.nextAddress){case 1:return v.yield(z.JSC$18202_playerApiPromise,2);case 2:J=v.yieldResult;D=(R=M)==null?void 0:R.actions;if(!D)return v.return();N=_.S(D);Z=N.next();case 3:if(Z.done){v.jumpTo(0);break}B=Z.value;X=O=void 0;if(!(((O=B)==null?0:O.entityKey)&&((X=B)==null?0:X.actionType))){v.jumpTo(4);break}l=_.kf(B.entityKey);e=l.entityId;Q=l.entityType;return v.yield(J.queueOfflineAction(e,Q,B.actionType),4);case 4:Z=N.next(),v.jumpTo(3)}})},cku=function(M,z){var J,R,D,N,Z;
return _.k(function(B){if(B.nextAddress==1)return B.yield(M.JSC$18202_prefStorage,2);if(B.nextAddress!=3)return(J=B.yieldResult)?B.yield(J.get("psi"),3):B.return();R=B.yieldResult;Z={isPaused:z,lastSyncTimestamp:(N=(D=R)==null?void 0:D.lastSyncTimestamp)!=null?N:"0"};return B.yield(J.set("psi",Z),0)})},nns=function(M){var z=_.JF().resolve(_.lg),J,R,D,N,Z,B,O,X;
return _.k(function(l){switch(l.nextAddress){case 1:return l.yield(z.JSC$18202_playerApiPromise,2);case 2:J=l.yieldResult;D=((R=M)==null?void 0:R.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((B=M)==null?void 0:B.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":N="!*$_ALL_ENTITIES_!*$";Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return l.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return l.jumpTo(4)}l.jumpTo(5);break;case 3:return l.yield(cku(z,D),6);case 6:l.jumpTo(5);break;case 4:return l.yield(Hru(z,(O=M)==null?void 0:O.videoId),7);case 7:l.yieldResult&&(N=(X=M)==null?void 0:X.videoId,Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");l.jumpTo(5);break;case 5:if(N&&Z)return l.yield(J.queueOfflineAction(N,"videoPlaybackPositionEntity",Z),0);l.jumpTo(0)}})},d9w=function(M,z){var J;
z!==1||((J=M.currentPersistentToast)==null?0:J.isOpened())?M.openToast():M.currentPersistentToast=void 0},K3m=function(M,z){var J;
return(J=M.transitionTasksMap.get(z))!=null?J:[]},$9u=function(M,z){var J=[];
M.elementTasksMap.forEach(function(R){(R=R.get(z))&&J.push(R)});
return J},uBi=function(M,z,J,R,D){D=D===void 0?{}:D;
var N=z.defaultViewTransitionOptions;return Object.assign({},N,D,{beforeTransition:function(){R.forEach(function(X){X.beforeTransition()});
var Z;(Z=N.beforeTransition)==null||Z.call(N);var B,O;(O=(B=D).beforeTransition)==null||O.call(B);J.forEach(function(X){X.beforeTransition()})},
afterTransition:function(){R.forEach(function(X){X.afterTransition()});
var Z;(Z=N.afterTransition)==null||Z.call(N);var B,O;(O=(B=D).afterTransition)==null||O.call(B);J.forEach(function(X){X.afterTransition()})},
ignoredErrors:M.config.ignoredErrors})},qmu=function(M,z,J){M.transitionTasksMap.has(z)?M.transitionTasksMap.get(z).push(J):(M=new _.xN("Transition task registered for unknown transition type",z),_.nc(M))},W3t=function(M,z,J){if(M.transitionTasksMap.has(z)){var R=M.transitionTasksMap.get(z).filter(function(D){return D!==J});
M.transitionTasksMap.set(z,R)}},aKm=function(M,z){var J=K3m(M,z);
J=_.S(J);for(var R=J.next();!R.done;R=J.next())R=R.value,R.runOnce&&W3t(M,z,R);M.elementTasksMap.forEach(function(D,N){D.forEach(function(Z,B){Z.runOnce&&z===B&&(D.delete(B),D.size===0&&M.elementTasksMap.delete(N))})})},V4N=function(M,z,J){var R,D,N,Z,B,O,X,l,e;
_.k(function(Q){if(Q.nextAddress==1){if(M.config.disableAllTransitions)return Q.return(z());if((R=J)==null||!R.transitionType)return Q.return(_.Kql(z,Object.assign({},(D=J)==null?void 0:D.viewTransitionOptions,{ignoredErrors:M.config.ignoredErrors})));N=J;Z=N.transitionType;B=N.viewTransitionOptions;O=M.config.transitionConfigs.get(Z);if(!O)return Q.return(z());X=K3m(M,Z);l=$9u(M,Z);e=_.Kql(z,uBi(M,O,X,l,B));return Q.yield(e,2)}aKm(M,Z);_.UI(Q)})},E8c=function(){var M,z,J,R;
return _.k(function(D){if(D.nextAddress==1)return M=navigator,(z=M.storage)!=null&&z.persisted?D.yield((J=M.storage)==null?void 0:J.persisted(),2):D.return("PERSISTED_STATE_NOT_SUPPORTED");R=D.yieldResult;return D.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},fKN=function(){var M,z,J,R;
return _.k(function(D){if(D.nextAddress==1)return M=navigator,(z=M.storage)!=null&&z.persist?D.yield((J=M.storage)==null?void 0:J.persist(),2):D.return("PERSISTED_STATE_NOT_SUPPORTED");R=D.yieldResult;return D.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},L3w=function(){var M,z;
return _.k(function(J){switch(J.nextAddress){case 1:return M="PERSISTED_STATE_NOT_SUPPORTED",_.Io(J,2),J.yield(E8c(),4);case 4:M=J.yieldResult;if(M!=="PERSISTED_STATE_NOT_GRANTED"){J.jumpTo(5);break}return J.yield(fKN(),6);case 6:M=J.yieldResult;case 5:_.ab(J,3);break;case 2:z=_.Qa(J),z instanceof Error&&_.nc(z);case 3:return _.gP("persistentStorageStateChecked",{persistedState:M}),J.return(M)}})},Akw=function(M,z){var J=[],R=!1;
z=_.S(z);for(var D=z.next();!D.done;D=z.next()){D=M.moduleRegistry[D.value];var N=void 0,Z=void 0;((N=D)==null?0:N.isFetching)&&((Z=D)==null?0:Z.resolver)?(J.push(D.resolver.promise),R=!0):(D=new _.Iz,D.resolve(void 0),J.push(D.promise))}return R?Promise.all(J):void 0},irm=function(M,z,J){if(M.isAnyTransitionEnabled){var R={beforeTransition:function(){J(!0);
z.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){z.style.viewTransitionName&&(z.style.viewTransitionName="",J(!1))}};
qmu(M.viewTransitionCoordinator,"slide",R);qmu(M.viewTransitionCoordinator,"lockup-to-watch",R);qmu(M.viewTransitionCoordinator,"watch-next-appears",R);qmu(M.viewTransitionCoordinator,"learning-journey",R)}},Cfs=function(M,z){M.isBrowseTransitionEnabled?V4N(M.viewTransitionCoordinator,z,{transitionType:"slide"}):(z(),Promise.resolve())},brw=function(M,z){M.isLockupToWatchTransitionEnabled?V4N(M.viewTransitionCoordinator,z,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){M.registeredLockupThumbnail=void 0;M.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(z(),Promise.resolve())},rku=function(M,z){M.isLockupToWatchTransitionEnabled?V4N(M.viewTransitionCoordinator,z,{transitionType:"watch-next-appears"}):(z(),Promise.resolve())},M3w=function(M,z){M.isLearningJourneyTransitionEnabled?V4N(M.viewTransitionCoordinator,z,{transitionType:"learning-journey"}):(z(),Promise.resolve())},zcw=function(M,z,J){if(M.isInitialized()){var R=
GD(J),D=R==="watch";
R=R==="shorts";var N=GD(z)==="watch";if(D)N||(M.backgroundPageData=z),M.watchPipMode&&N||M.deactivate(J.endpoint);else if(R){if(GD(z)!=="shorts"){var Z;(Z=M.getPlayerElement())==null||Z.pause()}}else N&&!M.watchPipMode&&(g2u(z,J)?(M.watchWhileMode&&_.$xl(M,!1),_.hDs(M,z)):M.isMiniplayerActive()&&M.watchWhileMode&&M.deactivate());N&&_.qam(M);M.shortsPipMode&&!R&&(window.focus(),M.deactivate());if(M.pictureInPictureEnabled())if(R&&M.shortsPipEnabled||D&&M.watchPipEnabled)_.Xdo(M.handleMediaSessionPipActivation);
else if(!M.isMiniplayerActive()&&(M.shortsPipEnabled||M.watchPipEnabled)&&window.documentPictureInPicture&&_.Yo()&&_.ooG("Chromium")>=120){M=_.o$p().mediaSession;try{M.setActionHandler("enterpictureinpicture",null)}catch(B){}}}},Jxc=function(M,z){var J,R;
_.k(function(D){if(D.nextAddress==1){if(!M||!M.navigationEndpoint)return D.return();_.x9().lockupActivation=!0;var N;z?N=_.id(_.e9("QUEUE",void 0,"Queue")):N=M.longBylineText;R=(J=N)&&M.title?{miniplayerTitle:M.title,miniplayerSubtitle:J,playlistData:null}:void 0;return D.yield(_.BUg(_.JF().resolve(_.q5),M.navigationEndpoint,!0,R),2)}_.x9().userActivation=!0;_.UI(D)})},nzc=function(M,z){var J,R,D,N,Z,B;
_.k(function(O){if(O.nextAddress==1){J=_.G(z,_.KiV);if(!J||!J.listId)return O.return();M.index=J.index||M.index||0;R=M.response&&M.response.playingVideoId||void 0;return O.yield(_.GMv(M.JSC$12824_playlistNetworkManager,J.listId,M.index,R),2)}D=O.yieldResult;if(!D)return O.return();N=D.playlistId;Z=D.playlistPanelRenderer;!M.queueProxy&&N&&Z&&N.startsWith("TLPQ")&&(M.queueProxy=new _.un(M.JSC$12824_playlistNetworkManager,N,M.setPlaylistData.bind(M),M.clearQueue.bind(M),_.Pl8(Z),M.storage));if(J.openMiniplayer&&
(B=_.SP0(Z))&&!M.pageManager.isOnWatch()){var X=B,l=J.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";M.isMiniplayerActive()?M.openToast(X):Jxc(X,l)}M.setPlaylistData(N,Z,D.autoplayRenderer);_.UI(O)})},m35=function(M,z){var J=_.Am();
J.index===void 0&&(J.index=0);J.temporaryItems.push.apply(J.temporaryItems,_.Yj(M));if((z.videoId||z.videoIds)&&J.index!==void 0&&z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!J.queueProxy){var R=[];if(J.response){var D=_.JF().resolve(_.q5).isMiniplayerActive();if(J.response.playlistPanelRenderer&&J.response.playlistId&&!J.response.playlistId.startsWith("TLPQ")){if(J.pageManager.isOnWatch()||D)R=_.Pl8(J.response.playlistPanelRenderer)}else J.response.playingVideoId&&!z.openMiniplayer?R.push(J.response.playingVideoId):
D&&J.response.playingVideoId&&z.openMiniplayer&&R.push(J.response.playingVideoId)}J.queueProxy=new _.un(J.JSC$12824_playlistNetworkManager,"",J.setPlaylistData.bind(J),J.clearQueue.bind(J),R,J.storage);J.queueProxy.JSC$12770_setCurrentIndex(J.index)}J.queueProxy.addVideos(z.videoIds||[z.videoId],z)}$6l(J,M);J.response&&_.CN(J,_.bn(J,J.response.autoplayRenderer));J.pageManager.isOnWatch()?J.isMiniplayerActive()&&J.openToast(M[0]):(M=M[0],z=z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",J.isMiniplayerActive()?
J.openToast(M):Jxc(M,z))},Rci=function(M){var z=_.ak(M);
if(z=="object"||z=="array"){if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);z=z=="array"?[]:{};for(var J in M)z[J]=Rci(M[J]);return z}return M},ht=function(M,z){return _.BgR(_.Gj(M,z,void 0,_.v9))},ym=function(M,z){return _.rg(_.Gj(M,z,void 0,_.v9))},H1=function(M,z){return _.sk8(_.Gj(M,z,void 0,_.v9))},c1=function(M,z){return _.Gj(M,z,void 0,_.v9,_.Zvn)},D5m=_.Dd(function(M,
z,J){if(M.nextWireType_!==0)return!1;
_.NE(z,J,_.W9(M.decoder_,_.PJ0));return!0},_.kq,_.fy),Nys=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;
_.js(z,J,R,_.W9(M.decoder_,_.PJ0));return!0},_.kq,_.fy),P2w=_.Dd(function(M,z,J){if(M.nextWireType_!==1)return!1;
var R=M.decoder_;M=_.VE(R);R=_.VE(R);M=_.Kv(M,R);_.NE(z,J,M);return!0},_.Ywb,_.mRR),Sjm=_.Dd(function(M,z,J){if(M.nextWireType_!==5)return!1;
_.NE(z,J,_.VE(M.decoder_));return!0},function(M,z,J){z=_.IV8(z);
z!=null&&(_.P4(M,J,5),_.Sq(M.encoder_,z))},_.YYR),Zal=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;
M=_.kBn(M.decoder_);_.NE(z,J,M===!1?void 0:M);return!0},_.mE8,_.tjp),k0u=_.Dd(function(M,z,J){if(M.nextWireType_!==2)return!1;
M=_.X7w(M);_.NE(z,J,M===""?void 0:M);return!0},_.sro,_.jAw),Byi=_.Dd(function(M,z,J){if(M.nextWireType_!==2)return!1;
M=_.lHn(M);_.NE(z,J,M===_.ja()?void 0:M);return!0},_.hiR,_.nAG),Oaw=_.UE8(function(M,z,J){if(M.nextWireType_!==0&&M.nextWireType_!==2)return!1;
z=_.Y5Y(z,z[_.NB]|0,J);M.nextWireType_==2?_.e9p(M,lUl,z):z.push(_.aJ(M.decoder_));return!0},function(M,z,J){z=_.Qrn(_.rg,z,!0);
if(z!=null&&z.length){J=_.Wde(M,J);for(var R=0;R<z.length;R++)_.jro(M.encoder_,z[R]);_.asY(M,J)}},_.h9o),Ty5=_.Dd(function(M,z,J){if(M.nextWireType_!==0)return!1;
M=_.aJ(M.decoder_);_.NE(z,J,M===0?void 0:M);return!0},_.yrn,_.h9o),Izc=_.Dd(function(M,z,J,R){if(M.nextWireType_!==0)return!1;
_.js(z,J,R,_.aJ(M.decoder_));return!0},_.yrn,_.h9o),oTu=function(M){return M.previousElementSibling!==void 0?M.previousElementSibling:_.VaJ(M.previousSibling,!1)},Xfd=function(M,z){var J=[];
for(z=z||0;z<M.length;z+=2)_.hw$(M[z],M[z+1],J);return J.join("&")},lzc=function(M,z){var J=arguments.length==2?Xfd(arguments[1],0):Xfd(arguments,1);
return _.nG$(M,J)},UvG=_.TA(_.yL),ecu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(ecu,_.zA);ecu.prototype.getTypeName=function(){return _.hv(this,1).split("/").pop()};
ecu.prototype.getValue=function(){var M=_.Gj(this,2);if(Array.isArray(M)||M instanceof _.zA)throw Error("W");return _.tv(this,2)};
var SAs=function(){var M=_.kV();this.JSC$9884_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.P6("channel_type"))};
SAs.prototype.increment=function(M){this.JSC$9884_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",M)};
var ZXl=function(){var M=_.kV();this.JSC$9887_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.P6("channel_type"))};
ZXl.prototype.increment=function(M){this.JSC$9887_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",M)};
var BBw=function(){var M=_.kV();this.JSC$9890_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.P6("channel_type"))};
BBw.prototype.increment=function(M){this.JSC$9890_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",M)};
var khd=function(){var M=_.kV();this.JSC$9893_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
khd.prototype.increment=function(){this.JSC$9893_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var OXG=function(){var M=_.kV();this.JSC$9896_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.P6("channel_type"),_.P6("error_type"))};
OXG.prototype.increment=function(M,z){this.JSC$9896_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",M,z)};
var TBw=function(){var M=_.kV();this.JSC$9899_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
TBw.prototype.increment=function(){this.JSC$9899_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var ISG=function(){var M=_.kV();this.JSC$9902_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
ISG.prototype.increment=function(){this.JSC$9902_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var bnG=function(){var M=_.kV();this.JSC$9908_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
bnG.prototype.increment=function(){this.JSC$9908_streamzService.JSC$9754_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Qh5=function(M){return M.getCount&&typeof M.getCount=="function"?M.getCount():_.WY(M)||typeof M==="string"?M.length:_.gu.getCount(M)},U5t=function(M,z){if(typeof M.every=="function")return M.every(z,void 0);
if(_.WY(M)||typeof M==="string")return Array.prototype.every.call(M,z,void 0);for(var J=_.yPV(M),R=_.Jb(M),D=R.length,N=0;N<D;N++)if(!z.call(void 0,R[N],J&&J[N],M))return!1;return!0},vTt=function(M,z,J,R){var D=new _.iS(null);
M&&_.RI(D,M);z&&_.DF(D,z);J&&_.ND(D,J);R&&_.P3(D,R);return D},G0u=function(){var M=_.cJ&&_.Xn(_.AFu,10)>=0,z;
if(z=_.xX3)z=_.Xn(_.Lo$,10)>=0;var J=_.es&&_.Xn(_.AFu,85)>=0;return _.IJ||M||z||J},wfG=function(M){var z=_.Isg(M);
return z&&G0u()?-M.scrollLeft:z&&_.c6(M,"overflowX")!="visible"?M.scrollWidth-M.clientWidth-M.scrollLeft:M.scrollLeft},x5l=function(M,z){z=Math.max(z,0);
_.Isg(M)?G0u()?M.scrollLeft=-z:M.scrollLeft=M.scrollWidth-z-M.clientWidth:M.scrollLeft=z},V_G=0,i4m=!1;
xJ.prototype.set=function(M){this.relativeTimeStart_=M};
xJ.prototype.reset=function(){this.set(_.Ss())};
xJ.prototype.get=function(){return this.relativeTimeStart_};
var t3v=null,jhw=function(){t3v||(t3v=new xJ)},pfv=function(){t3v||(t3v=new xJ)};
_.ZP(pfv,jhw);_.P=b4w.prototype;_.P.JSC$11267_buffer_="";_.P.set=function(M){this.JSC$11267_buffer_=""+M};
_.P.append=function(M,z,J){this.JSC$11267_buffer_+=String(M);if(z!=null)for(var R=1;R<arguments.length;R++)this.JSC$11267_buffer_+=arguments[R];return this};
_.P.clear=function(){this.JSC$11267_buffer_=""};
_.P.getLength=function(){return this.JSC$11267_buffer_.length};
_.P.toString=function(){return this.JSC$11267_buffer_};
var Fzl=function(){var M={type:"unit",style:"narrow"};this.listType_=M&&M.type?M.type:"conjunction";this.listStyle_=M&&M.style?M.style:"long";this.listSymbols_=wnG;M=0;switch(this.listStyle_){case "short":M=1;break;case "narrow":M=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[M];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[M];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=
this.listSymbols_.AND_END[M];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[M];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[M];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=this.listSymbols_.OR_END[M];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[M],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[M],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[M],this.listEndPattern_=this.listSymbols_.UNIT_END[M]}};
Fzl.prototype.format=function(M){return Yjt(this,M)};
var Yjt=function(M,z){var J=z.length;switch(J){case 0:return"";case 1:return String(z[0]);case 2:return M.listTwoPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1]))}for(var R=M.listStartPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1])),D=2;D<J-1;++D)R=M.listMiddlePattern_.replace("{0}",R).replace("{1}",String(z[D]));return M.listEndPattern_.replace("{0}",R).replace("{1}",String(z[J-1]))},ol5=function(){var M={style:1};
this.style_=(M==null?void 0:M.style)||0;this.durationSymbols_=_.LYp||_.hfk},m5u=function(M,z){switch(z){default:case "years":return M.durationSymbols_.YEAR;
case "months":return M.durationSymbols_.MONTH;case "weeks":return M.durationSymbols_.WEEK;case "days":return M.durationSymbols_.DAY;case "hours":return M.durationSymbols_.HOUR;case "minutes":return M.durationSymbols_.MINUTE;case "seconds":return M.durationSymbols_.SECOND}},dD=function(M,z,J){a:{J=m5u(M,J);
switch(M.style_){case 1:if(J.LONG!=void 0){M=J.LONG;break a}case 2:if(J.NARROW!=void 0){M=J.NARROW;break a}default:M=J.SHORT;break a}M=void 0}return M?(new _.Jhg("{DURATION_VALUE,plural,"+M+"}")).format({DURATION_VALUE:z}):""};
ol5.prototype.format=function(M){var z=[],J=M.years,R=M.months,D=M.weeks,N=M.days,Z=M.hours,B=M.minutes;M=M.seconds;J!=null&&z.push(dD(this,J,"years"));R!=null&&z.push(dD(this,R,"months"));D!=null&&z.push(dD(this,D,"weeks"));N!=null&&z.push(dD(this,N,"days"));Z!=null&&z.push(dD(this,Z,"hours"));B!=null&&z.push(dD(this,B,"minutes"));M!=null&&z.push(dD(this,M,"seconds"));return(new Fzl).format(z)};
var gTv=!1,NMm=function(M){_.Mb.call(this,M.message||M.description||M.name);this.isMissing=M instanceof t8;this.isTimeout=M instanceof _.TD&&M.errorCode=="net.timeout";this.isCanceled=M instanceof _.q9};
_.w(NMm,_.Mb);NMm.prototype.name="BiscottiError";var t8=function(){_.Mb.call(this,"Biscotti ID is missing from server")};
_.w(t8,_.Mb);t8.prototype.name="BiscottiMissingError";var jy=null,wUw=function(){try{var M=_.qH("yt.ads.biscotti.getId_");return M?M():dSw()}catch(z){return _.gv(z)}},IQs,sht=function(M,z){return _.Nv({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:M,command:z}})},nT5=function(M){return _.Nv({type:"SET_GUIDE_IS_EXPANDED",
payload:M})},hcc=function(M){return _.Nv({type:"SET_ONLINE_STATUS",
payload:M})},yxl=function(M,z){return _.Nv({type:"SET_TRANSCRIPTION_STATE",
payload:{high:M,low:z}})},Haw=function(M){return _.Nv({type:"SET_OVERLAY_STATE",
payload:M})},cxw=0,d55=function(M,z,J){var R=this;
this.priority=z;this.delay=J;this.jobId=0;this.completionCallback=_.xi;this.wrappedJob=function(){M();R.completionCallback()};
this.id=++cxw};
d55.prototype.enqueue=function(M){this.completionCallback=M;this.jobId=_.no.addJob(this.wrappedJob,this.priority,this.delay)};
var KT=function(){_.ZW.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.w(KT,_.ZW);KT.prototype.addJob=function(M,z,J){M=new d55(M,z,J);this.taskIdToTask.set(M.id,M);this.isActive?Kzv(this,M):this.suspendedTasks.add(M);return M.id};
var Kzv=function(M,z){M.scheduledTasks.add(z);z.enqueue(function(){M.scheduledTasks.delete(z)})};
KT.prototype.cancelJob=function(M){(M=this.taskIdToTask.get(M))&&(this.scheduledTasks.delete(M)?_.no.cancelJob(M.jobId):this.suspendedTasks.delete(M))};
KT.prototype.pause=function(){var M=this;this.isActive=!1;this.scheduledTasks.forEach(function(z){_.no.cancelJob(z.jobId);M.suspendedTasks.add(z)});
this.scheduledTasks.clear()};
KT.prototype.start=function(){var M=this;this.isActive=!0;this.suspendedTasks.forEach(function(z){Kzv(M,z)});
this.suspendedTasks.clear()};
KT.prototype.reset=function(){this.scheduledTasks.forEach(function(M){_.no.cancelJob(M.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var $Z=function(M,z){this.JSC$12953_networkService_=M;this.pageRequestPromise=z};
$Z.prototype.fetchData=function(M){$5l(this,this.JSC$12953_networkService_.fetchData(M))};
$Z.prototype.postData=function(M,z){$5l(this,this.JSC$12953_networkService_.postData(M,z))};
$Z.prototype.requestDataForServiceEndpoint=function(M,z){$5l(this,this.JSC$12953_networkService_.requestDataForServiceEndpoint(M,z))};
var $5l=function(M,z){z.then(M.pageRequestPromise.onSuccess,M.pageRequestPromise.onFailure,M.pageRequestPromise)};
$Z.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var u6=function(M){this.buildNetworkRequest_=M;this.pendingRequests_=new Set};
u6.prototype.reset=function(){this.pendingRequests_.forEach(function(M){M.cancel()});
this.pendingRequests_.clear()};
u6.prototype.fetchData=function(M){var z=uLG(this);z.fetchData(M);return z.pageRequestPromise};
u6.prototype.postData=function(M,z){var J=uLG(this);J.postData(M,z);return J.pageRequestPromise};
u6.prototype.requestDataForServiceEndpoint=function(M,z){var J=uLG(this);J.requestDataForServiceEndpoint(M,z);return J.pageRequestPromise};
var uLG=function(M){var z=M.buildNetworkRequest_();M.pendingRequests_.add(z);var J=function(){M.pendingRequests_.delete(z)};
z.pageRequestPromise.then(J,J);return z},qjl=function(M){var z=new KT;
this.JSC$12960_networkService_=M;this.JSC$12960_taskManager_=z;this.JSC$12960_networkManager_=new u6(this.networkRequestFactory_.bind(this))};
_.P=qjl.prototype;_.P.networkRequestFactory_=function(){return new $Z(this.JSC$12960_networkService_,new _.OE(this.JSC$12960_taskManager_))};
_.P.reset=function(){this.JSC$12960_taskManager_.reset();this.JSC$12960_networkManager_.reset()};
_.P.start=function(){this.JSC$12960_taskManager_.start()};
_.P.pause=function(){this.JSC$12960_taskManager_.pause()};
_.P.getTaskManager=function(){return this.JSC$12960_taskManager_};
_.P.getNetworkManager=function(){return this.JSC$12960_networkManager_};
var UIt=null,wsi=[],pg=0,YJ=0,FD=null,Wzc=!1,mr=null,tnl=void 0,azv=function(){var M=(0,_.yBV)();M&&tFw(M,M.mechanism.__iterator__(!0))},s0=function(M){this.token=M};
s0.getInstance=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.rQ(),2);M=z.yieldResult;if(!M)return z.return();s0.instance||(s0.instance=new s0(M));return z.return(s0.instance)})};
var gll=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(F4c(M.token),2);z=J.yieldResult;return J.return(z.clear("resource-manifest-assets"))})},gw=function(M){this.token=M};
gw.getInstance=function(){var M;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.rQ(),2);M=z.yieldResult;if(!M)return z.return();gw.instance||(gw.instance=new gw(M));return z.return(gw.instance)})};
var YKu=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(F4c(M.token),2);z=J.yieldResult;return J.yield(z.clear("auth"),0)})},CSu=!1,V3u=function(M){_.Mb.call(this,M)};
_.w(V3u,_.Ie$);var ETu="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(" ");mst()&&ETu.push("details:not(:has(summary))");var snv=ETu.join(",");var r9d=function(){var M=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return M?parseInt(M[1],10):0},fzv=function(M){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+M)!=-1||document.currentScript.src.indexOf("&"+M)!=-1)},LzN=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},D3s=function(M){M.length?Axm(M.shift(),function(){D3s(M)}):zfi()},Paw=function(M){return"chrome-extension://"+M+"/cast_sender.js"},Axm=function(M,
z,J){var R=document.createElement("script");
R.onerror=z;J&&(R.onload=J);_.is(R,_.jJ(M));(document.head||document.documentElement).appendChild(R)},ial=function(){var M=r9d(),z=[];
if(M>1){var J=M-1;z.push("//www.gstatic.com/eureka/clank/"+M+"/cast_sender.js");z.push("//www.gstatic.com/eureka/clank/"+J+"/cast_sender.js")}return z},zfi=function(){var M=LzN();
M&&M(!1,"No cast extension found")},Rfv=function(){if(C2s){var M=2,z=LzN(),J=function(){M--;
M==0&&z&&z(!0)};
window.__onGCastApiAvailable=J;Axm("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",zfi,J)}},MNN=function(){Rfv();
var M=ial();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");D3s(M)},JJs=function(){Rfv();
var M=ial();M.push.apply(M,_.Yj(NHv.map(Paw)));M.push("//www.gstatic.com/eureka/clank/cast_sender.js");D3s(M)},C2s=fzv("loadCastFramework")||fzv("loadCastApplicationFramework"),NHv=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var bad=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(bad,_.zA);var rxG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(rxG,_.zA);var Msv=function(){var M=new rxG;return _.uN(M,1,3)};var q_=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(q_,_.zA);var Mgw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Mgw,_.zA);var zq5=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(zq5,_.zA);zq5.prototype.getToken=function(){return _.hv(this,1)};
zq5.prototype.setToken=function(M){return _.fr(this,1,M)};
var bYl=function(M){return _.av(M,3,_.ov,_.JK())},rdl=function(M){return _.av(M,6,_.ov,_.JK())};var W1=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(W1,_.zA);W1.prototype.getToken=function(){return _.DG(this,zq5,2)};
W1.prototype.setToken=function(M){return _.or(this,2,M)};
W1.prototype.getName=function(){return _.hv(this,6)};
var Jvt=_.TA(W1);var RqG=function(M,z,J){this.requestMessage=M;this.methodDescriptor=z;this.metadata=J};
RqG.prototype.getMetadata=function(){return this.metadata};var D8G=function(M,z){z=z===void 0?{}:z;this.responseMessage=M;this.metadata=z;this.status=null};
D8G.prototype.getMetadata=function(){return this.metadata};
D8G.prototype.getStatus=function(){return this.status};var a6=function(M,z,J,R,D){this.name=M;this.methodType="unary";this.requestType=z;this.responseType=J;this.requestSerializeFn=R;this.responseDeserializeFn=D},Nov=function(M,z,J){J=J===void 0?{}:J;
return new RqG(z,M,J)};
a6.prototype.getName=function(){return this.name};var Vm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Vm,_.zA);Vm.prototype.getHeader=function(){return _.DG(this,q_,1)};
Vm.prototype.setHeader=function(M){return _.or(this,1,M)};
Vm.prototype.hasHeader=function(){return _.wo(this,q_,1)};var PNm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(PNm,_.zA);var SDd=new a6("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Vm,PNm,function(M){return M.serialize()},_.TA(PNm));var Er=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Er,_.zA);Er.prototype.getHeader=function(){return _.DG(this,q_,1)};
Er.prototype.setHeader=function(M){return _.or(this,1,M)};
Er.prototype.hasHeader=function(){return _.wo(this,q_,1)};var Zyd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Zyd,_.zA);var kjw=new a6("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Er,Zyd,function(M){return M.serialize()},_.TA(Zyd));var fT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(fT,_.zA);fT.prototype.getHeader=function(){return _.DG(this,q_,1)};
fT.prototype.setHeader=function(M){return _.or(this,1,M)};
fT.prototype.hasHeader=function(){return _.wo(this,q_,1)};var Bow=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Bow,_.zA);Bow.prototype.getLink=function(){return _.DG(this,W1,1)};var Oyt=new a6("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",fT,Bow,function(M){return M.serialize()},_.TA(Bow));var LT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(LT,_.zA);LT.prototype.getHeader=function(){return _.DG(this,q_,1)};
LT.prototype.setHeader=function(M){return _.or(this,1,M)};
LT.prototype.hasHeader=function(){return _.wo(this,q_,1)};var Toi=new a6("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",LT,W1,function(M){return M.serialize()},Jvt);var IPG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(IPG,_.zA);var oIw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(oIw,_.zA);oIw.prototype.getUrl=function(){return _.hv(this,2)};
oIw.prototype.setUrl=function(M){return _.fr(this,2,M)};var X9m=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(X9m,_.zA);var lPv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(lPv,_.zA);var eqs=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(eqs,_.zA);var ODw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(ODw,_.zA);var BAm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(BAm,_.zA);var QJ5=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(QJ5,_.zA);var Qsd=_.TA(QJ5);var U8t=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(U8t,_.zA);var vIc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(vIc,_.zA);_.P=vIc.prototype;_.P.getHeader=function(){return _.DG(this,q_,1)};
_.P.setHeader=function(M){return _.or(this,1,M)};
_.P.hasHeader=function(){return _.wo(this,q_,1)};
_.P.getCompletionUrl=function(){return _.hv(this,6)};
_.P.getDeviceId=function(){return _.hv(this,11)};var Gjs=new a6("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",vIc,QJ5,function(M){return M.serialize()},Qsd);var w9u=new Set(["SAPISIDHASH","APISIDHASH"]);var x8u=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(x8u,_.zA);x8u.prototype.getMessage=function(){return _.hv(this,2)};
var tsw=_.TA(x8u);var At=function(M,z){this.xhrNodeReadableStream_=M.nodeReadableStream;this.grpcResponseDeserializeFn_=z;this.JSC$19161_xhr_=M.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19161_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&jJt(this)},sJl=function(M,z){var J=new p9w;
_.YS(M.JSC$19161_xhr_,"complete",function(){if(M.JSC$19161_xhr_.isSuccess()){var R=M.JSC$19161_xhr_.getResponseText();var D;if(D=z)D=M.JSC$19161_xhr_,D.JSC$9763_xhr_&&D.isComplete()?(D=D.JSC$9763_xhr_.getResponseHeader("Content-Type"),D=D===null?void 0:D):D=void 0,D=D==="text/plain";if(D){if(!atob)throw Error("Pj");R=atob(R)}try{var N=M.grpcResponseDeserializeFn_(R)}catch(B){i6(M,KVu(new _.se(13,"Error when deserializing response data; error: "+B+(", response: "+R)),J));return}R=_.Ag3(M.JSC$19161_xhr_.getStatus());
Few(M,YDt(M));R==0?m8w(M,N):i6(M,KVu(new _.se(R,"Xhr succeeded but the status code is not 200"),J))}else{R=M.JSC$19161_xhr_.getResponseText();N=YDt(M);if(R){var Z=gIG(M,R);R=Z.code;D=Z.details;Z=Z.metadata}else R=2,D="Rpc failed due to xhr error. uri: "+String(M.JSC$19161_xhr_.JSC$9763_lastUri_)+", error code: "+M.JSC$19161_xhr_.JSC$9763_lastErrorCode_+", error: "+M.JSC$19161_xhr_.getLastError(),Z=N;Few(M,N);i6(M,KVu(new _.se(R,D,Z),J))}})},jJt=function(M){M.xhrNodeReadableStream_.on("data",function(z){if("1"in
z){var J=z["1"];
try{var R=M.grpcResponseDeserializeFn_(J)}catch(D){i6(M,new _.se(13,"Error when deserializing response data; error: "+D+(", response: "+J)))}R&&m8w(M,R)}if("2"in z)for(z=gIG(M,z["2"]),J=0;J<M.onStatusCallbacks_.length;J++)M.onStatusCallbacks_[J](z)});
M.xhrNodeReadableStream_.on("end",function(){Few(M,YDt(M));for(var z=0;z<M.onEndCallbacks_.length;z++)M.onEndCallbacks_[z]()});
M.xhrNodeReadableStream_.on("error",function(){if(M.JSC$19161_onErrorCallbacks_.length!=0){var z=M.JSC$19161_xhr_.JSC$9763_lastErrorCode_;z!==0||M.JSC$19161_xhr_.isSuccess()||(z=6);var J=-1;switch(z){case 0:var R=2;break;case 7:R=10;break;case 8:R=4;break;case 6:J=M.JSC$19161_xhr_.getStatus();R=_.Ag3(J);break;default:R=14}Few(M,YDt(M));z=_.Iot(z)+", error: "+M.JSC$19161_xhr_.getLastError();J!=-1&&(z+=", http status code: "+J);i6(M,new _.se(R,z))}})},YDt=function(M){var z={},J=U6v(M.JSC$19161_xhr_);
Object.keys(J).forEach(function(R){z[R]=J[R]});
return z},gIG=function(M,z){var J=2,R={};
try{var D=tsw(z);J=_.R2(D,1);var N=D.getMessage();_.zz(D,ecu,3,_.JK()).length&&(R["grpc-web-status-details-bin"]=z)}catch(Z){M.JSC$19161_xhr_&&M.JSC$19161_xhr_.getStatus()===404?(J=5,N="Not Found: "+String(M.JSC$19161_xhr_.JSC$9763_lastUri_)):(J=14,N="Unable to parse RpcStatus: "+Z)}return{code:J,details:N,metadata:R}};
At.prototype.on=function(M,z){M=="data"?this.onDataCallbacks_.push(z):M=="metadata"?this.onMetadataCallbacks_.push(z):M=="status"?this.onStatusCallbacks_.push(z):M=="end"?this.onEndCallbacks_.push(z):M=="error"&&this.JSC$19161_onErrorCallbacks_.push(z);return this};
var CT=function(M,z){z=M.indexOf(z);z>-1&&M.splice(z,1)};
At.prototype.removeListener=function(M,z){M=="data"?CT(this.onDataCallbacks_,z):M=="metadata"?CT(this.onMetadataCallbacks_,z):M=="status"?CT(this.onStatusCallbacks_,z):M=="end"?CT(this.onEndCallbacks_,z):M=="error"&&CT(this.JSC$19161_onErrorCallbacks_,z);return this};
At.prototype.cancel=function(){this.JSC$19161_xhr_.abort()};
var m8w=function(M,z){for(var J=0;J<M.onDataCallbacks_.length;J++)M.onDataCallbacks_[J](z)},Few=function(M,z){for(var J=0;J<M.onMetadataCallbacks_.length;J++)M.onMetadataCallbacks_[J](z)},i6=function(M,z){for(var J=0;J<M.JSC$19161_onErrorCallbacks_.length;J++)M.JSC$19161_onErrorCallbacks_[J](z)};
At.prototype.cancel=At.prototype.cancel;At.prototype.removeListener=At.prototype.removeListener;At.prototype.on=At.prototype.on;var p9w=function(){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.w(p9w,Error);var b6=function(M){this.JSC$19170_worker_=M.worker||null;this.JSC$19170_streamBinaryChunks_=M.streamBinaryChunks||!1;this.JSC$19170_credentialsMode_=void 0};
_.ZP(b6,_.Ci8);b6.prototype.createInstance=function(){var M=new rD(this.JSC$19170_worker_,this.JSC$19170_streamBinaryChunks_);this.JSC$19170_credentialsMode_&&M.setCredentialsMode(this.JSC$19170_credentialsMode_);return M};
b6.prototype.setCredentialsMode=function(M){this.JSC$19170_credentialsMode_=M};
var rD=function(M,z){_.jB.call(this);this.JSC$19174_worker_=M;this.JSC$19174_streamBinaryChunks_=z;this.JSC$19174_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19174_responseHeaders_=null;this.JSC$19174_method_="GET";this.JSC$19174_url_="";this.inProgress_=!1;this.JSC$19174_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.ZP(rD,_.jB);rD.prototype.open=function(M,z){if(this.readyState!=0)throw this.abort(),Error("Qj");this.JSC$19174_method_=M;this.JSC$19174_url_=z;this.readyState=1;MF(this)};
rD.prototype.send=function(M){if(this.readyState!=1)throw this.abort(),Error("Rj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Sj");this.inProgress_=!0;var z={headers:this.requestHeaders_,method:this.JSC$19174_method_,credentials:this.JSC$19174_credentialsMode_,cache:void 0,signal:this.abortController_.signal};M&&(z.body=M);(this.JSC$19174_worker_||_.R3).fetch(new Request(this.JSC$19174_url_,z)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
rD.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,zl(this));this.readyState=0};
rD.prototype.handleResponse_=function(M){if(this.inProgress_&&(this.fetchResponse_=M,this.JSC$19174_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19174_responseHeaders_=M.headers,this.readyState=2,MF(this)),this.inProgress_&&(this.readyState=3,MF(this),this.inProgress_)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.R3.ReadableStream!==
"undefined"&&"body"in M){this.currentReader_=M.body.getReader();if(this.JSC$19174_streamBinaryChunks_){if(this.responseType)throw Error("Tj");this.response=[]}else this.response=this.responseText="",this.JSC$19174_textDecoder_=new TextDecoder;nIm(this)}else M.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var nIm=function(M){M.currentReader_.read().then(M.handleDataFromStream_.bind(M)).catch(M.handleSendFailure_.bind(M))};
rD.prototype.handleDataFromStream_=function(M){if(this.inProgress_){if(this.JSC$19174_streamBinaryChunks_&&M.value)this.response.push(M.value);else if(!this.JSC$19174_streamBinaryChunks_){var z=M.value?M.value:new Uint8Array(0);if(z=this.JSC$19174_textDecoder_.decode(z,{stream:!M.done}))this.response=this.responseText+=z}M.done?zl(this):MF(this);this.readyState==3&&nIm(this)}};
rD.prototype.handleResponseText_=function(M){this.inProgress_&&(this.response=this.responseText=M,zl(this))};
rD.prototype.handleResponseArrayBuffer_=function(M){this.inProgress_&&(this.response=M,zl(this))};
rD.prototype.handleSendFailure_=function(){this.inProgress_&&zl(this)};
var zl=function(M){M.readyState=4;M.fetchResponse_=null;M.currentReader_=null;M.JSC$19174_textDecoder_=null;MF(M)};
rD.prototype.setRequestHeader=function(M,z){this.requestHeaders_.append(M,z)};
rD.prototype.getResponseHeader=function(M){return this.JSC$19174_responseHeaders_?this.JSC$19174_responseHeaders_.get(M.toLowerCase())||"":""};
rD.prototype.getAllResponseHeaders=function(){if(!this.JSC$19174_responseHeaders_)return"";for(var M=[],z=this.JSC$19174_responseHeaders_.entries(),J=z.next();!J.done;)J=J.value,M.push(J[0]+": "+J[1]),J=z.next();return M.join("\r\n")};
rD.prototype.setCredentialsMode=function(M){this.JSC$19174_credentialsMode_=M};
var MF=function(M){M.onreadystatechange&&M.onreadystatechange.call(M)};
Object.defineProperty(rD.prototype,"withCredentials",{get:function(){return this.JSC$19174_credentialsMode_==="include"},
set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});var hql=function(M){var z="";_.gu.forEach(M,function(J,R){z+=R;z+=":";z+=J;z+="\r\n"});
return z},yvd=function(M,z,J){if(_.gu.isEmpty(J))return M;
J=hql(J);if(typeof M==="string")return _.fQ(M,_.aX(z),J);_.W6(M,z,J);return M};var Hym=function(){this.isInputValid_=!0;this.JSC$19179_streamPos_=0;this.leftoverInput_=""};
Hym.prototype.isInputValid=function(){return this.isInputValid_};
Hym.prototype.decode=function(M){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Uj`"+this.JSC$19179_streamPos_+"`stream already broken`"+M);this.leftoverInput_+=M;M=Math.floor(this.leftoverInput_.length/4);if(M==0)return null;try{var z=_.HIw(this.leftoverInput_.slice(0,M*4))}catch(J){throw z=this.leftoverInput_,M=J.message,this.isInputValid_=!1,Error("Uj`"+this.JSC$19179_streamPos_+"`"+M+"`"+z);}this.JSC$19179_streamPos_+=M*4;this.leftoverInput_=this.leftoverInput_.slice(M*4);return z};var HD=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19182_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
HD.prototype.isInputValid=function(){return this.state_!=3};
var J4=function(M,z,J,R){M.state_=3;M.errorMessage_="The stream is broken @"+M.JSC$19182_streamPos_+"/"+J+". Error: "+R+". With input:\n"+z;throw Error(M.errorMessage_);};
HD.prototype.acceptsBinaryInput=function(){return!0};
HD.prototype.parse=function(M){function z(O){O&128&&J4(N,Z,B,"invalid tag");(O&7)!=2&&J4(N,Z,B,"invalid wire type");N.tag_=O>>>3;N.tag_!=1&&N.tag_!=2&&N.tag_!=15&&J4(N,Z,B,"unexpected tag");N.state_=1;N.length_=0;N.countLengthBytes_=0}
function J(O){N.countLengthBytes_++;N.countLengthBytes_==5&&O&240&&J4(N,Z,B,"message length too long");N.length_|=(O&127)<<(N.countLengthBytes_-1)*7;O&128||(N.state_=2,N.countMessageBytes_=0,typeof Uint8Array!=="undefined"?N.messageBuffer_=new Uint8Array(N.length_):N.messageBuffer_=Array(N.length_),N.length_==0&&D())}
function R(O){N.messageBuffer_[N.countMessageBytes_++]=O;N.countMessageBytes_==N.length_&&D()}
function D(){if(N.tag_<15){var O={};O[N.tag_]=N.messageBuffer_;N.result_.push(O)}N.state_=0}
for(var N=this,Z=M instanceof Array?M:new Uint8Array(M),B=0;B<Z.length;){switch(N.state_){case 3:J4(N,Z,B,"stream already broken");break;case 0:z(Z[B]);break;case 1:J(Z[B]);break;case 2:R(Z[B]);break;default:throw Error("Vj`"+N.state_);}N.JSC$19182_streamPos_++;B++}M=N.result_;N.result_=[];return M.length>0?M:null};var u9m=function(){this.errorMessage_=null;this.JSC$19185_streamPos_=0;this.base64Decoder_=new Hym;this.pbParser_=new HD};
u9m.prototype.isInputValid=function(){return this.errorMessage_===null};
var cvl=function(M,z,J){M.errorMessage_="The stream is broken @"+M.JSC$19185_streamPos_+". Error: "+J+". With input:\n"+z;throw Error(M.errorMessage_);};
u9m.prototype.acceptsBinaryInput=function(){return!1};
u9m.prototype.parse=function(M){this.errorMessage_!==null&&cvl(this,M,"stream already broken");var z=null;try{var J=this.base64Decoder_.decode(M);z=J===null?null:this.pbParser_.parse(J)}catch(R){cvl(this,M,R.message)}this.JSC$19185_streamPos_+=M.length;return z};var $sv=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19188_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$sv.prototype.isInputValid=function(){return this.errorMessage_===null};
$sv.prototype.acceptsBinaryInput=function(){return!1};
$sv.prototype.parse=function(M){function z(O){N.state_=6;N.errorMessage_="The stream is broken @"+N.JSC$19188_streamPos_+"/"+Z+". Error: "+O+". With input:\n";throw Error(N.errorMessage_);}
function J(){N.jsonStreamParser_=new _.Ov({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function R(O){if(O)for(var X=0;X<O.length;X++){var l={};l[1]=O[X];N.result_.push(l)}}
function D(O){if(O){(N.statusParsed_||O.length>1)&&z("extra status: "+O);N.statusParsed_=!0;var X={};X[2]=O[0];N.result_.push(X)}}
for(var N=this,Z=0;Z<M.length;){var B;if(B=N.state_!==2){a:{for(;Z<M.length;){if(!_.Bw(M[Z])){B=!0;break a}Z++;N.JSC$19188_streamPos_++}B=!1}B=!B}if(B)return null;switch(N.state_){case 6:z("stream already broken");break;case 0:M[Z]==="["?(N.state_=1,Z++,N.JSC$19188_streamPos_++):z("unexpected input token");break;case 1:M[Z]==="["?(N.state_=2,J()):M[Z]===","||M.slice(Z,Z+5)=="null,"?N.state_=3:M[Z]==="]"?(N.state_=5,Z++,N.JSC$19188_streamPos_++):z("unexpected input token");break;case 2:B=N.jsonStreamParser_.parse(M.substring(Z));
R(B);N.jsonStreamParser_.done()?(N.state_=3,B=N.jsonStreamParser_.JSC$11394_buffer_,N.JSC$19188_streamPos_+=M.length-Z-B.length,M=B,Z=0):(N.JSC$19188_streamPos_+=M.length-Z,Z=M.length);break;case 3:M[Z]===","||M.slice(Z,Z+5)=="null,"?(N.state_=4,J(),N.jsonStreamParser_.parse("["),Z+=M[Z]===","?1:5,N.JSC$19188_streamPos_++):M[Z]==="]"&&(N.state_=5,Z++,N.JSC$19188_streamPos_++);break;case 4:B=N.jsonStreamParser_.parse(M.substring(Z));D(B);N.jsonStreamParser_.done()?(N.state_=5,B=N.jsonStreamParser_.JSC$11394_buffer_,
N.JSC$19188_streamPos_+=M.length-Z-B.length,M=B,Z=0):(N.JSC$19188_streamPos_+=M.length-Z,Z=M.length);break;case 5:z("extra input after stream end")}}return N.result_.length>0?(M=N.result_,N.result_=[],M):null};var d8i=function(M){this.JSC$19191_xhr_=M;this.JSC$19191_parser_=null;this.status_=this.JSC$19191_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19191_textDecoder_=null;this.JSC$19191_eventHandler_=new _.Ps(this);this.JSC$19191_eventHandler_.listen(this.JSC$19191_xhr_,"readystatechange",this.JSC$19193_readyStateChangeHandler_)},RK=function(M,z){M.status_!=z&&(M.status_=z,M.statusHandler_&&M.statusHandler_())},Dg=function(M){M.JSC$19191_eventHandler_.removeAll();
if(M.JSC$19191_xhr_){var z=M.JSC$19191_xhr_;M.JSC$19191_xhr_=null;z.abort();z.dispose()}};
d8i.prototype.getStatus=function(){return this.status_};
d8i.prototype.JSC$19193_readyStateChangeHandler_=function(M){M=M.target;try{if(M==this.JSC$19191_xhr_)a:{var z=_.yB(this.JSC$19191_xhr_),J=this.JSC$19191_xhr_.JSC$9763_lastErrorCode_,R=this.JSC$19191_xhr_.getStatus(),D=this.JSC$19191_xhr_.getResponseText();M=[];if(this.JSC$19191_xhr_.getResponse()instanceof Array){var N=this.JSC$19191_xhr_.getResponse();N.length>0&&N[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,M=N)}if(!(z<3||z==3&&!D&&M.length==0))if(R=R==200||R==206,z==4&&(J==8?RK(this,
7):J==7?RK(this,8):R||RK(this,3)),this.JSC$19191_parser_||(this.JSC$19191_parser_=qfd(this.JSC$19191_xhr_),this.JSC$19191_parser_==null&&RK(this,5)),this.status_>2)Dg(this);else{if(M.length>this.JSC$19191_pos_){var Z=M.length;J=[];try{if(this.JSC$19191_parser_.acceptsBinaryInput())for(var B=0;B<Z;B++){var O=this.JSC$19191_parser_.parse(Array.from(M[B]));O&&(J=J.concat(O))}else{O="";if(!this.JSC$19191_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Wj");this.JSC$19191_textDecoder_=new TextDecoder}for(B=
0;B<Z;B++)O+=this.JSC$19191_textDecoder_.decode(M[B],{stream:z==4&&B==Z-1});J=this.JSC$19191_parser_.parse(O)}M.splice(0,Z);J&&this.dataHandler_(J)}catch(l){RK(this,5);Dg(this);break a}}else if(D.length>this.JSC$19191_pos_){B=D.slice(this.JSC$19191_pos_);this.JSC$19191_pos_=D.length;try{var X=this.JSC$19191_parser_.parse(B);X!=null&&this.dataHandler_&&this.dataHandler_(X)}catch(l){RK(this,5);Dg(this);break a}}z==4?(D.length!=0||this.hasStreamingResponseData_?RK(this,2):RK(this,4),Dg(this)):RK(this,
1)}}}catch(l){RK(this,6),Dg(this)}};var Kev=function(M){M=this.xhrReader_=M;var z=(0,_.xF)(this.onData_,this);M.dataHandler_=z;M=this.xhrReader_;z=(0,_.xF)(this.onStatusChange_,this);M.statusHandler_=z;this.JSC$19195_callbackMap_={};this.callbackOnceMap_={}};
_.P=Kev.prototype;_.P.on=function(M,z){var J=this.JSC$19195_callbackMap_[M];J||(J=[],this.JSC$19195_callbackMap_[M]=J);J.push(z);return this};
_.P.addListener=function(M,z){this.on(M,z);return this};
_.P.removeListener=function(M,z){var J=this.JSC$19195_callbackMap_[M];J&&_.$o(J,z);(M=this.callbackOnceMap_[M])&&_.$o(M,z);return this};
_.P.once=function(M,z){var J=this.callbackOnceMap_[M];J||(J=[],this.callbackOnceMap_[M]=J);J.push(z);return this};
_.P.onData_=function(M){var z=this.JSC$19195_callbackMap_.data;z&&$8w(M,z);(z=this.callbackOnceMap_.data)&&$8w(M,z);this.callbackOnceMap_.data=[]};
var $8w=function(M,z){for(var J={},R=0;R<M.length;J={message$jscomp$1002:void 0},R++)J.message$jscomp$1002=M[R],z.forEach(function(D){return function(N){try{N(D.message$jscomp$1002)}catch(Z){}}}(J))};
Kev.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:uZc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:uZc(this,"error");break;case 8:uZc(this,"close");break;case 2:uZc(this,"end")}};
var uZc=function(M,z){var J=M.JSC$19195_callbackMap_[z];J&&J.forEach(function(R){try{R()}catch(D){}});
(J=M.callbackOnceMap_[z])&&J.forEach(function(R){R()});
M.callbackOnceMap_[z]=[]};var qDd=function(){var M={format:"jspb"};M=M===void 0?{}:M;this.suppressCorsPreflight=M.suppressCorsPreflight||_.qH("suppressCorsPreflight",M)||!1;this.withCredentials=M.withCredentials||_.qH("withCredentials",M)||!1;this.streamInterceptors=M.streamInterceptors||[];this.unaryInterceptors=M.unaryInterceptors||[];this.workerScope=M.workerScope;this.chunkedServerStreaming=M.useFetchDownloadStreams||!1},Vsv=function(M,z,J,R,D,N){N=N===void 0?{}:N;
var Z=z.substring(0,z.length-D.name.length),B,O=(B=N)==null?void 0:B.signal;return Wes(function(X){return new Promise(function(l,e){if(O==null?0:O.aborted){var Q=new _.se(1,"Aborted");Q.cause=O.reason;e(Q)}else{var v={},x=aPi(M,X,Z);x.on("error",function(m){return void e(m)});
x.on("metadata",function(m){v=m});
x.on("data",function(m){var y=v;y=y===void 0?{}:y;l(new D8G(m,y))});
O&&O.addEventListener("abort",function(){x.cancel();var m=new _.se(1,"Aborted");m.cause=O.reason;e(m)})}})},M.unaryInterceptors).call(M,Nov(D,J,R)).then(function(X){return X.responseMessage})},NF=function(M,z,J,R,D,N){N=N===void 0?{}:N;
return Vsv(M,z,J,R,D,N)};
qDd.prototype.serverStreaming=function(M,z,J,R){var D=this,N=M.substring(0,M.length-R.name.length);return EI5(function(Z){var B=Z.methodDescriptor,O=Z.getMetadata(),X=fPw(D,!1);O=Lem(D,O,X,N+B.getName());var l=Avu(X,B.responseDeserializeFn,!0);Z=B.requestSerializeFn(Z.requestMessage);X.send(O,"POST",Z);return l},this.streamInterceptors).call(this,Nov(R,z,J))};
var aPi=function(M,z,J){var R=z.methodDescriptor,D=z.getMetadata(),N=fPw(M,!0);M=Lem(M,D,N,J+R.getName());J=Avu(N,R.responseDeserializeFn,!1);sJl(J,D["X-Goog-Encode-Response-If-Executable"]==="base64");z=R.requestSerializeFn(z.requestMessage);N.send(M,"POST",z);return J},fPw=function(M,z){z=M.chunkedServerStreaming&&!z;
return M.workerScope||z?new _.hQ(new b6({worker:M.workerScope,streamBinaryChunks:z})):new _.hQ},Lem=function(M,z,J,R){z["Content-Type"]="application/json+protobuf";
z["X-User-Agent"]="grpc-web-javascript/0.1";var D=z.Authorization;if(D&&w9u.has(D.split(" ")[0])||M.withCredentials)J.JSC$9763_withCredentials_=!0;if(M.suppressCorsPreflight)R=yvd(R,"$httpHeaders",z);else for(M=_.S(Object.keys(z)),D=M.next();!D.done;D=M.next())D=D.value,J.headers.set(D,z[D]);return R},Avu=function(M,z,J){if(J){J=new d8i(M);
var R=new Kev(J)}return new At({xhr:M,nodeReadableStream:R},z)},EI5=function(M,z){return z.reduce(function(J,R){return function(D){return R.intercept(D,J)}},M)},Wes=function(M,z){return z.reduce(function(J,R){return function(D){return R.intercept(D,J)}},M)};var iyN=function(M){this.client_=new qDd;this.hostname_=M==void 0?M:M.replace(/\/+$/,"")};
_.P=iyN.prototype;_.P.JSC$19213_depositGoogleCredential=function(M,z,J){return NF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",M,z||{},kjw,J)};
_.P.deleteLink=function(M,z,J){return NF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",M,z||{},SDd,J)};
_.P.JSC$19213_finishOAuth=function(M,z,J){return NF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",M,z||{},Oyt,J)};
_.P.getLink=function(M,z,J){return NF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",M,z||{},Toi,J)};
_.P.startLinkingSession=function(M,z,J){return NF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",M,z||{},Gjs,J)};var CNw=[0,Zal,1,Oaw,[0,_.ro,[0,k0u,-1]],[0,Byi],[0,Ty5,-1]];var byt=function(){this.storage=new Map},M6m=function(M,z,J,R,D){if(!M.storage.has(z))return null;
M=_.S(M.storage.get(z));for(z=M.next();!z.done;z=M.next())if(z=z.value,!D||z.linkName===D)if(J&&z.scopes&&rvl(z.scopes,J)||R&&z.capabilities&&rvl(z.capabilities,R))return z;return null},zIN=function(M,z,J){if(!J)M.storage.delete(z);
else if(M.storage.has(z)){var R=M.storage.get(z).filter(function(D){return D.linkName!==J});
R.length>0?M.storage.set(z,R):M.storage.delete(z)}},rvl=function(M,z){z=_.S(z);
for(var J=z.next();!J.done;J=z.next())if(!M.has(J.value))return!1;return!0};var JwN=function(){var M=_.HW("LINK_GAL_DOMAIN");this.alsDomain1p=_.HW("LINK_GAL_DOMAIN");this.alsDomain3p=M;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},RIw=function(M,z){M.apiKey=z;
return M};
JwN.prototype.build=function(){var M={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Xj");M.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Yj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Zj");M.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(M.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)M.apiKey=
this.apiKey,M.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("$j");M.oauthToken=this.oauthToken;M.alsDomain=this.alsDomain3p}M.clientXd3=this.clientXd3;M.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(M.authUser=this.authUser);this.bucket!==void 0&&(M.bucket=this.bucket);this.completionUrl!==void 0&&(M.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(M.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(M.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(M.locale=this.locale);M.loggerType=this.loggerType;M.clientEnvironment=this.clientEnvironment;M.colorScheme=this.colorScheme;M.showCloseOption=this.showCloseOption;return M};var cD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(cD,_.zA);var DoG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(DoG,_.zA);var Npu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Npu,_.zA);var Kg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Kg,_.zA);var Pol=function(M){return _.yE(M,1)};var Scw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Scw,_.zA);var Adm=_.TA(Scw),dw=[1,2,3,4,5];var V9i=function(M){try{return Adm(M)}catch(z){return null}},ZQw=function(){},EQw=function(M,z){switch(_.py(z,dw)){case 4:return(z=_.Ky(z,Npu,4,dw))&&M.logStateTransition(_.yE(z,1)),!0;
case 5:return(z=_.Ky(z,DoG,5,dw))&&M.logInternalEvent(_.yE(z,1)),!0}return!1},iYt=function(M){switch(M){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.uJ(M)}};var WVl=function(M,z){var J=this;this.validator=M;this.messageListener=z;this.dismissCallback=function(){kEi(J,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19242_receiveMessage=function(R){R.type==="message"&&(R=R.event_,R!==null&&(new URL(J.iframe.src)).origin===R.origin&&J.validator(R.data,R.origin)&&!J.messageListener(R.data)&&(J.JSC$19242_resolveCb!==void 0&&J.JSC$19242_resolveCb(R.data),Bpw(J)))}},LVl=function(M,z,J){M.uiHandler!==void 0&&kEi(M,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(R,D){M.JSC$19242_resolveCb=R;M.JSC$19242_rejectCb=D;M.iframe=document.createElement("iframe");_.W4(M.iframe,z);M.uiHandler=J.displayContent(M.iframe,M.dismissCallback);_.YS(window,"message",M.JSC$19242_receiveMessage,!1,M)})},kEi=function(M,z){M.JSC$19242_rejectCb!==void 0&&M.JSC$19242_rejectCb(z);
Bpw(M)},Bpw=function(M){M.uiHandler!==void 0&&M.uiHandler.hideContent();
_.tQ(window,"message",M.JSC$19242_receiveMessage,!1,M);M.JSC$19242_resolveCb=void 0;M.JSC$19242_rejectCb=void 0;M.uiHandler=void 0;M.iframe=void 0};var OQv=function(M){if(M===2){var z;M=((z=window)==null?0:z.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return M},fLw=function(M){M=OQv(M);
switch(M){case 0:return"light";case 1:return"dark";default:_.uJ(M)}};var aLd=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Tpc=function(M,z){this.JSC$19254_linkingSession=M;this.noticeConfig=z;this.displayInfoMap=new Map;var J=new Map;if(_.wo(this.JSC$19254_linkingSession,X9m,7))for(M=_.DG(this.JSC$19254_linkingSession,X9m,7),M=_.zz(M,oIw,1,_.JK()),M=_.S(M),z=M.next();!z.done;z=M.next())z=z.value,J.set(_.yE(z,1),_.OKp(_.DG(z,_.uOo,3)));if(J.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){z=this.noticeConfig.enabledDataUsageNoticeUis;M=z.has(0)?J.get(1):void 0;z=z.has(1)?J.get(2):void 0;J=M!==void 0&&z!==void 0?J.get(3):void 0;var R=this.noticeConfig.nestedOrigins;var D=new Scw;var N=new cD;D=_.Xq(D,2,dw,N);N=new Scw;var Z=new cD;N=_.Xq(N,3,dw,Z);Z=[];M!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:M,lastEvent:D,nestedOrigins:R}]),Z.push({trustedUrl:M,lastEvent:D,nestedOrigins:R}));z!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:z,lastEvent:N,nestedOrigins:R}]),Z.push({trustedUrl:z,lastEvent:N,nestedOrigins:R}));J!==void 0?this.displayInfoMap.set(3,[{trustedUrl:J,lastEvent:N,nestedOrigins:R}]):this.displayInfoMap.set(3,Z)}};var IkG=function(M){var z=new byt;this.galService=M;this.galCache=z};
IkG.prototype.getLink=function(M){var z=M.serviceId;var J=M.scopes;var R=M.capabilities;var D=M.linkName;var N=this,Z;return _.k(function(B){if(R!==void 0&&J!==void 0)throw Error("ak");Z=M6m(N.galCache,z,J,R,D);return Z!==null?B.return(Z):B.return(N.galService.getLink({serviceId:z,sessionId:Math.floor(Math.random()*2147483648),scopes:J,capabilities:R,linkName:D}).then(function(O){O=zbl(O);var X=N.galCache;X.storage.has(z)?X.storage.get(z).push(O):X.storage.set(z,[O]);return O}))})};
IkG.prototype.deleteLink=function(M,z,J){var R=this;return _.k(function(D){zIN(R.galCache,M,J);return D.return(R.galService.deleteLink({serviceId:M,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:z,linkName:J}).then(function(){return!0}))})};var XKG=function(M,z){var J=this;this.validator=M;this.msgHandler=z;this.closedPopupTimeout=this.JSC$19276_rejectCb=this.JSC$19276_resolveCb=this.popup=null;this.JSC$19276_receiveMessage=function(R){if(R!==null&&(R=R.event_,R.source===J.popup)){var D=R.data;if(J.validator(D,R.origin)){var N;(N=J.msgHandler)!=null&&N.call(J,D)||(J.JSC$19276_resolveCb!==null&&J.JSC$19276_resolveCb(D),oiw(J))}}}};
XKG.prototype.open=function(M,z){var J=this;this.popup!==null&&lkG(this);return new Promise(function(R,D){J.JSC$19276_resolveCb=R;J.JSC$19276_rejectCb=D;J.popup=_.VZ(window,M,"",z);_.YS(window,"message",J.JSC$19276_receiveMessage,!1,J);eIw(J)})};
var lkG=function(M,z){M.JSC$19276_rejectCb!==null&&M.JSC$19276_rejectCb(z);oiw(M)},oiw=function(M){M.closedPopupTimeout&&(M.closedPopupTimeout.cancel(),M.closedPopupTimeout=null);
M.popup&&M.popup.close();_.tQ(window,"message",M.JSC$19276_receiveMessage,!1,M);M.popup=null;M.JSC$19276_resolveCb=null;M.JSC$19276_rejectCb=null},eIw=function(M){M.closedPopupTimeout=_.ZOV(100).then(function(){M.popup?M.popup.closed?QNv(M):eIw(M):lkG(M,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},QNv=function(M){M.closedPopupTimeout=_.ZOV(100).then(function(){lkG(M,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var UoN=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),vil=function(M,z,J,R,D,N,Z,B,O,X){var l=this;this.serviceId=M;this.sessionId=z;this.galService=J;this.oauthDetails=R;this.galLogger=D;this.interactionMode=N;this.redirectServiceUrl=Z;this.consentLanguageKeys=B;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=X;this.started=!1;this.JSC$19282_dataValidator=function(e,
Q){var v=UoN.has(Q);v||l.redirectServiceUrl===void 0||(v=l.redirectServiceUrl===Q);return v?e.sentinel==="gdi":!1}};
vil.prototype.complete=function(){var M=this,z;return _.k(function(J){if(M.interactionMode!==1)return J.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=uk.getRedirectStateFromUri();return z===null?J.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):J.return(GEG(M,z))})};
vil.prototype.start=function(){var M=this,z;return _.k(function(J){if(M.started)return J.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.hv(M.oauthDetails,1))return J.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(M.interactionMode===1)return uk.setLocation(_.hv(M.oauthDetails,1)),J.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));M.started=!0;M.galLogger.logStateTransition(5);
z=uk.getPostMessagePopup(M.JSC$19282_dataValidator);return J.return(z.open(_.hv(M.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){M.started=!1;var D=M.galLogger;if((R==null?void 0:R.error)!==void 0)throw D.logInternalEvent(59),Error("bk");if((R==null?void 0:R.redirect_state)===void 0)throw D.logInternalEvent(131),Error("ck");return GEG(M,R.redirect_state)}).catch(function(R){M.started=
!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var GEG=function(M,z){return _.k(function(J){return J.return(wKu(M.galService,{serviceId:M.serviceId,sessionId:M.sessionId,dynamicUrlParameters:M.dynamicUrlParameters,redirectState:z,consentLanguageKeys:M.consentLanguageKeys,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp}).then(function(R){var D={statusCode:1,link:zbl(R.getLink())};H4w(_.tv(R,3))!==void 0&&(D.callerState=H4w(_.tv(R,3)));M.galLogger.logInternalEvent(134);return D}))})},uk={getPostMessagePopup:function(M){return new XKG(M)},
getRedirectStateFromUri:function(){var M=_.um(uk.getLocation()).fragment_;return(new _.B3(M)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(M){_.BVp(window.location,_.hr(M))},
createOAuthFlow:function(M,z){return new vil(M.serviceId,M.sessionId,M.galService,z,M.galLogger,M.interactionMode,M.redirectServiceUrl,M.consentLanguageKeys,M.dynamicUrlParameters,M.partnerConfigMinReadTimestamp)}};var xod=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(xod,_.zA);var t6v=_.TA(xod);var jNu=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),pKl=function(M,z,J,R,D,N,Z,B,O){var X=this;this.serviceId=M;this.sessionId=z;this.galService=J;this.gsiWebFlowDetails=R;this.colorScheme=D;this.showCloseOption=N;this.galLogger=Z;this.interactionMode=B;this.redirectServiceUrl=O;this.started=!1;this.JSC$19294_dataValidator=function(l,e){var Q=jNu.has(e);Q||X.redirectServiceUrl===
void 0||(Q=X.redirectServiceUrl===e);return Q?l.sentinel==="gal":!1};
this.logEventProcessor=function(l){return l.result?(l=V9i(l.result))?EQw(X.galLogger,l):!1:!1}};
pKl.prototype.complete=function(){var M=this,z,J;return _.k(function(R){if(M.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=qZ.getRedirectStateFromUri();if(z===void 0)return M.galLogger.JSC$19234_logErrorEvent(131),R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return J=Fcc(M,z),R.return(Ycs(M,J))}catch(D){return R.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
pKl.prototype.start=function(){var M=this,z;return _.k(function(J){if(M.started)return J.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.hv(M.gsiWebFlowDetails,1))return J.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(M.interactionMode===1)return qZ.setLocation(mov(M,_.hv(M.gsiWebFlowDetails,1))),J.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
M.started=!0;z=qZ.getPostMessagePopup(M.JSC$19294_dataValidator,M.logEventProcessor);return J.return(z.open(mov(M,_.hv(M.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){M.started=!1;if((R==null?void 0:R.result)===void 0)throw M.galLogger.JSC$19234_logErrorEvent(131),Error("ck");R=Fcc(M,R.result);return Ycs(M,R)}).catch(function(R){M.started=!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var mov=function(M,z){M=["result_channel",M.interactionMode===1?"2":"1","color_scheme",fLw(M.colorScheme),"show_close_option",M.showCloseOption];return lzc(z,M)},Ycs=function(M,z){if(z!==null&&_.wo(z,Kg,2)){var J,R=z==null?void 0:(J=_.DG(z,Kg,2))==null?void 0:_.yE(J,2);
R&&M.galLogger.JSC$19234_logErrorEvent(iYt(R));return Pol(_.DG(z,Kg,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return M.galService.getLink({serviceId:M.serviceId,sessionId:M.sessionId,consistencyKey:_.hv(z,1)}).then(function(D){D=zbl(D);M.galLogger.logInternalEvent(134);return{statusCode:1,link:D}})},Fcc=function(M,z){z=t6v(z);
if(!_.wo(z,Kg,2)&&_.hv(z,1)==="")throw M.galLogger.JSC$19234_logErrorEvent(5),Error("dk");return z},qZ={getPostMessagePopup:function(M,z){return new XKG(M,z)},
getRedirectStateFromUri:function(){return _.q$(_.um(qZ.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(M){_.BVp(window.location,_.hr(M))},
createStreamlinedFlow:function(M,z){return new pKl(M.serviceId,M.sessionId,M.galService,z,M.colorScheme,M.showCloseOption,M.galLogger,M.interactionMode,M.redirectServiceUrl)}};var l8w=function(){var M=_.Qsw("GAL");this.storage=M?new _.tF(M):null};
l8w.prototype.getSession=function(M){if(this.storage!==null)try{var z=this.storage.get("SAVED_SESSION");if(z===void 0)return null;if(z.serviceId===M)return z}catch(J){}return null};var P_=function(){};
_.w(P_,ZQw);P_.prototype.logStateTransition=function(){};
P_.prototype.logInternalEvent=function(){};
P_.prototype.JSC$19234_logErrorEvent=function(){};var giw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(giw,_.zA);giw.prototype.getCompletionUrl=function(){return _.hv(this,15)};var Sw=function(M,z,J,R,D,N){this.serviceId=M;this.environment=z;this.sessionId=J;this.colorSchemeSelected=R;this.colorThemeDisplayed=D;this.JSC$19307_transport=N;this.currentState=1};
_.w(Sw,ZQw);Sw.prototype.logStateTransition=function(M){var z=sNt(this);z=_.Nc(z,3,this.currentState);z=_.Nc(z,1,M);this.currentState=M;M=Q9c(1);this.dispatch(z,M)};
Sw.prototype.logInternalEvent=function(M){M=Q9c(M);this.dispatch(sNt(this),M)};
Sw.prototype.JSC$19234_logErrorEvent=function(M){var z=sNt(this);z=_.Nc(z,1,10);M=Q9c(M);this.dispatch(z,M)};
var sNt=function(M){var z=new giw;z=_.Nc(z,1,M.currentState);z=_.G$(z,7,M.serviceId);var J,R;var D=((J=window)==null?0:(R=J.location)==null?0:R.href)?_.um(window.location.href).JSC$9998_domain_:"NO_PACKAGE_NAME";J=_.G$(z,8,D);J=_.Nc(J,6,M.environment);J=_.G$(J,5,"100");J=_.Nc(J,11,M.colorSchemeSelected);return _.Nc(J,12,M.colorThemeDisplayed)};
Sw.prototype.dispatch=function(M,z){z===void 0&&(z=new _.Iy);var J=z;M=M.serialize();J=_.G$(J,8,M);_.GF(J,12,this.sessionId);this.JSC$19307_transport.dispatch(z)};var niw=function(M,z){this.loggerType=M;this.sessionIndex=z!=null?z:0},hIw;
niw.prototype.create=function(M,z,J,R,D){switch(this.loggerType){case 0:return new P_;case 1:return hIw||(hIw=(new _.B6(555,this.sessionIndex.toString())).build()),new Sw(M,z,J,R,D,hIw);default:_.uJ(this.loggerType,"unknown logger type")}};var WD=[6,2,3,1],wAN=new Map([[4,1],[1,6],[2,2],[3,3]]),NAG={statusCode:7,statusMessage:"Failed to create flow object"},ofd=function(M,z,J,R,D,N,Z,B,O,X){this.serviceId=M;this.sessionId=z;this.config=J;this.galService=R;this.JSC$19314_linkingSession=D;this.googleScopes=N;this.callerState=Z;this.consentLanguageKeys=B;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=X;this.currentFlow=0;R=this.JSC$19314_linkingSession;D=new Set;_.wo(R,BAm,1)&&D.add(1);_.wo(R,eqs,2)&&_.wo(R,ODw,6)&&D.add(2);
_.wo(R,lPv,3)&&_.wo(R,ODw,6)&&D.add(3);_.wo(R,IPG,4)&&D.add(6);this.supportedFlows=D;R=J.loggerType;D=J.clientEnvironment;a:{N=J.colorScheme;switch(N){case 0:N=1;break a;case 1:N=2;break a;case 2:N=3;break a;default:_.uJ(N)}N=void 0}a:{Z=J.colorScheme;Z=OQv(Z);switch(Z){case 0:Z=1;break a;case 1:Z=2;break a;default:_.uJ(Z)}Z=void 0}this.galLogger=(new niw(R,J.authUser)).create(M,D,z,N,Z)},HQ5=function(M){return new Promise(function(z){var J,R,D,N,Z,B,O,X,l,e;
return _.k(function(Q){switch(Q.nextAddress){case 1:J=TAs(M.currentFlow,M.supportedFlows),R=!1,D=new Tpc(M.JSC$19314_linkingSession,M.config.dataUsageNoticeConfig);case 2:if(J===void 0){Q.jumpTo(4);break}_.Io(Q,5);var v=D,x=J,m=void 0;R?x===1&&(m=v.displayInfoMap.get(2)):x===2||x===3?m=v.displayInfoMap.get(1):x===1&&(m=v.displayInfoMap.get(3));N=m?m:[];Z=M.consentLanguageKeys;B=_.S(N);O=B.next();case 7:if(O.done)return M.currentFlow=J,Q.yield(Shm(ywd(M,Z)),11);X=O.value;return Q.yield(C3l(X,M.config.dataUsageNoticeConfig.uiAdapter,
M.config.colorScheme,M.galLogger),10);case 10:l=Q.yieldResult;if(l.statusCode!==1)return ebl(M.serviceId),M.currentFlow=0,z($J({statusCode:l.statusCode,statusMessage:l.statusMessage},M.callerState)),Q.return();l.consentLanguageKeys!==void 0&&(Z=l.consentLanguageKeys);O=B.next();Q.jumpTo(7);break;case 11:e=Q.yieldResult;if(e.statusCode!==10)return e.statusCode!==6&&(ebl(M.serviceId),M.currentFlow=0),e.statusCode!==1&&M.callerState!==void 0&&(e.callerState=M.callerState),z(e),Q.return();_.ab(Q,6);break;
case 5:_.Qa(Q);case 6:J=TAs(M.currentFlow,M.supportedFlows);R=!0;Q.jumpTo(2);break;case 4:ebl(M.serviceId),M.currentFlow=0,z($J({statusCode:12,statusMessage:"Linking failed"},M.callerState)),_.UI(Q)}})})},vfw=function(M,z,J){M.currentFlow=z;
return ZDw(ywd(M,J)).then(function(R){return R.statusCode===10&&M.config.interactionMode===1&&TAs(M.currentFlow,M.supportedFlows)!==void 0?HQ5(M):R})},ywd=function(M,z){return{flowParams:{serviceId:M.serviceId,
sessionId:M.sessionId,galService:M.galService,galLogger:M.galLogger,interactionMode:M.config.interactionMode,redirectServiceUrl:M.config.redirectServiceUrl,colorScheme:M.config.colorScheme,consentLanguageKeys:z,dynamicUrlParameters:M.dynamicUrlParameters,showCloseOption:M.config.showCloseOption,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp},currentFlow:M.currentFlow,config:M.config,session:M.JSC$19314_linkingSession,googleScopes:M.googleScopes,callerState:M.callerState}};var tgl=function(M,z){this.config=M;this.galService=z.getService();this.JSC$19327_galRepository=z.JSC$19345_galRepository};
tgl.prototype.getLink=function(M,z){return cwt(this,M,z)};
var cwt=function(M,z,J){return M.JSC$19327_galRepository.getLink({serviceId:z,scopes:void 0,capabilities:void 0,linkName:J}).then(function(R){return{statusCode:1,link:R}}).catch(function(R){return{statusCode:xvm(R.code),
statusMessage:R.message}})};
tgl.prototype.deleteLink=function(M,z){return this.JSC$19327_galRepository.deleteLink(M,this.config.accountLinkingEntryPoint,z).then(function(){return{statusCode:1}}).catch(function(J){return{statusCode:xvm(J.code),
statusMessage:J.message}})};
tgl.prototype.startLinkingSession=function(M){var z=M.serviceId;var J=M.sessionId;return XAw({serviceId:z,sessionId:J!==void 0?J:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:M.loginHint,callerState:M.callerState,consentLanguageKeys:M.consentLanguageKeys,linkName:M.linkName,dynamicUrlParameters:M.dynamicUrlParameters,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp})};var Zg=function(M,z,J,R,D,N,Z){this.apiKey=z;this.authUser=J;this.oauthToken=R;this.bucket=D;this.locale=N;this.galSdkEventHandler=Z;if(R===void 0){if(z===void 0)throw Error("ek");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new iyN(M)};
Zg.prototype.deleteLink=function(M){var z=M.serviceId;var J=M.sessionId;var R=M.accountLinkingEntryPoint;var D=M.linkName;var N=this,Z;return _.k(function(B){var O=(new Vm).setHeader(N.getHeader(J));var X=doc({serviceId:z,linkName:D});O=_.or(O,2,X);Z=_.uN(O,3,R);return B.return(N.makeRequest(N.galServiceClient.deleteLink,Z,[1,3],[2,4]))})};
var wKu=function(M,z){var J=z.serviceId;var R=z.sessionId;var D=z.dynamicUrlParameters;var N=z.redirectState;var Z=z.consentLanguageKeys;var B=z.partnerConfigMinReadTimestamp;var O;return _.k(function(X){var l=(new fT).setHeader(M.getHeader(R,D));l=_.fr(l,2,J);O=_.fr(l,4,N);Z!==void 0&&_.fr(O,5,Z);B!==void 0&&_.or(O,6,B);return X.return(M.makeRequest(M.galServiceClient.JSC$19213_finishOAuth,O,[1,3],[2,4]))})};
Zg.prototype.getLink=function(M){var z=M.serviceId;var J=M.sessionId;var R=M.scopes;var D=M.capabilities;var N=M.consistencyKey;var Z=M.linkName;var B=this,O;return _.k(function(X){var l=(new LT).setHeader(B.getHeader(J)),e=doc({serviceId:z,scopes:R,capabilities:D,linkName:Z});O=_.or(l,2,e);N!==void 0&&(l=Msv(),l=_.fr(l,2,N),_.or(O,3,l));return X.return(B.makeRequest(B.galServiceClient.getLink,O,[1,3],[2,4]))})};
var krt=function(M,z){var J=z.serviceId;var R=z.sessionId;var D=z.googleScopes;var N=z.consistencyKey;var Z;return _.k(function(B){var O=(new Er).setHeader(M.getHeader(R));O=_.fr(O,2,J);var X=Array.from(D.values());O=_.Lw(O,3,X,_.Bt);X=Msv();X=_.fr(X,2,N);Z=_.or(O,4,X);return B.return(M.makeRequest(M.galServiceClient.JSC$19213_depositGoogleCredential,Z,[1,3],[2,4]))})};
Zg.prototype.startLinkingSession=function(M){var z=M.serviceId;var J=M.sessionId;var R=M.scopes;var D=M.capabilities;var N=M.loginHint;var Z=M.supportedFlows;var B=M.completionUrl;var O=M.usePingPong;var X=M.twoWayLinking;var l=M.accountLinkingEntryPoint;var e=M.callerState;var Q=M.consentLanguageKeys;var v=M.googleScopes;var x=M.dataUsageNoticeConfig;var m=M.linkName;var y=M.dynamicUrlParameters;var H=M.partnerConfigMinReadTimestamp;var q=this,b,V;return _.k(function(E){if(D!==void 0&&R!==void 0)throw Error("ak");
var L=(new vIc).setHeader(q.getHeader(J,y));b=_.fr(L,2,z);m!==void 0&&_.fr(b,14,m);if(D!==void 0){L=b;var z8=Array.from(D.values());_.Lw(L,5,z8,_.Bt)}else R!==void 0&&(L=b,z8=Array.from(R.values()),_.Lw(L,3,z8,_.Bt));B!==void 0&&_.fr(b,6,B);O!==void 0&&_.gM(b,15,O);Z!==void 0&&(L=b,z8=Array.from(Z.values()),_.Lw(L,4,z8,_.fv));if(X!==void 0){if(X&&(!v||v.size===0))throw Error("fk");_.gM(b,8,X)}l!==void 0&&_.uN(b,9,l);N!==void 0&&_.fr(b,13,N);e!==void 0&&(L=b,z8=(new TextEncoder).encode(e),_.Ai(L,12,
_.pv(z8,!1),_.ja()));Q!==void 0&&_.fr(b,16,Q);H!==void 0&&_.or(b,18,H);if(x!==void 0&&x.size>0||v!==void 0&&v.size>0)V=new U8t,v!==void 0&&v.size>0&&(L=V,z8=Array.from(v.values()),_.Lw(L,1,z8,_.Bt)),x!==void 0&&(x.has(0)&&_.Hw8(V,2,_.fv,1,_.Cv),x.has(1)&&_.Hw8(V,2,_.fv,2,_.Cv)),_.or(b,17,V);return E.return(q.makeRequest(q.galServiceClient.startLinkingSession,b,[1],[2]))})};
Zg.prototype.getMetadata=function(){var M=this,z,J;return _.k(function(R){z={};M.useFpa?(z["X-Goog-Api-Key"]=M.apiKey,z["X-Goog-AuthUser"]=M.authUser!==void 0?M.authUser.toString():"0",(J=_.aE8([]))&&(z.Authorization=J)):z.Authorization="Bearer "+M.oauthToken;M.locale&&(z["accept-language"]=M.locale);return R.return(z)})};
Zg.prototype.makeRequest=function(M,z,J,R){var D=this,N;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(D.getMetadata(),2);N=Z.yieldResult;Kcl(D,J);return Z.return(M.bind(D.galServiceClient)(z,N).finally(function(){Kcl(D,R)}))})};
var Kcl=function(M,z){M.galSdkEventHandler!==void 0&&z.forEach(function(J){M.galSdkEventHandler.onEvent(J)})};
Zg.prototype.getHeader=function(M,z){var J=new q_;M=_.Ai(J,2,_.bJ(M),0);M=_.uN(M,5,3);z=_.Lw(M,8,z,_.Bt);this.bucket!==void 0&&_.fr(z,1,this.bucket);return z};
var doc=function(M){var z=M.serviceId;var J=M.scopes;var R=M.capabilities;M=M.linkName;if(R!==void 0&&J!==void 0)throw Error("ak");var D=new bad;z=_.fr(D,1,z);R!==void 0?(J=Array.from(R.values()),_.Lw(z,5,J,_.Bt)):J!==void 0&&(J=Array.from(J.values()),_.Lw(z,3,J,_.Bt));M!==void 0&&_.fr(z,6,M);return z};var jst=function(M){this.galService=new Zg(M.alsDomain,M.apiKey,M.authUser,M.oauthToken,M.bucket,M.locale,M.galSdkEventHandler);this.JSC$19345_galRepository=new IkG(this.galService)};
jst.prototype.getService=function(){return this.galService};var $ow=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w($ow,_.zA);var udt=function(M){var z=new $ow;return _.Nc(z,1,M)};
$ow.prototype.setErrorMessage=function(M){return _.G$(this,2,M)};var qcm=[0,_.zE,_.Cy,_.zE];var kR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(kR,_.zA);var Wcl=[0,[1,2,3],_.Mo,[0,D5m,Sjm,-1],_.Mo,[0,P2w,-1],_.Vjp];var akl=[0,_.Av,1,_.zE,_.Cy,-1,1,_.Lk3,_.Ly,_.zE,-1,Wcl];var V6l=[0,_.zE,[0,_.Lk3,_.Ly,[0,_.Cy]],_.iN,[0,_.zE,-1]];var pT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(pT,_.zA);var Eit=[0,_.Cy,_.zE,-2,_.Av,_.zE,_.Av,_.zE,-2,1,_.iN];var fk5=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(fk5,_.zA);var Lcw=[0,_.Av];var Awm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Awm,_.zA);var iQG=[0,_.zE,V6l,Lcw,Eit,akl];var AMw=_.B4(Awm,iQG);var Coi=[0,CNw];var z$d=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(z$d,_.zA);var bQN=[0,[1,3],Izc,_.zE,Izc];var tt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(tt,_.zA);var rwv=[0,_.zE];var MB5=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(MB5,_.zA);var j8=function(M){return _.Ky(M,$ow,2,xZ)},zvG=function(M){var z=new MB5;
return _.Xq(z,2,xZ,M)},xZ=[1,
2];var JQs=[0,xZ,_.Mo,rwv,_.Mo,qcm,_.ro,bQN,1,_.zE,Coi];var Rvt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Rvt,_.zA);var Nsc=function(M){var z=new Rvt;return _.Xq(z,3,Dkt,M)},Dkt=[2,
3];var B_=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(B_,_.zA);var PHu=function(M,z){return _.or(M,2,z)},Ses=function(M,z){return _.or(M,8,z)},Zsl=function(M,z){return _.or(M,3,z)};var kQ5=[0,_.zE,JQs,iQG,_.Ria,[0,[5,6],[0,_.zE,-2],[0,_.Av,_.zE,_.Cy],[0,Wcl],[0,_.Cy,_.zE,-1,_.Jr$,_.zE],_.Mo,[0,[0,_.Av],_.zE,-1],_.Mo,[0,[3,4],_.zE,-1,_.Mo,[0,[0,_.zE,_.iN]],_.Mo,[0,[0,[0,[1,2],_.Mo,[0],_.Mo,[0]]]]]],_.Ria,-1,[0,Dkt,_.zE,_.Mo,rwv,_.Mo,qcm,_.ro,bQN,[0,CNw]]];var Bsw=_.B4(B_,kQ5),Osi=_.Ow(kQ5);var Tsw=function(){_.wS.call(this)};
_.w(Tsw,_.wS);Tsw.prototype.init=function(){};
new Tsw;var ICl=_.Ca(["data-"]),osi=_.Ca(["aria-"]),XRd=_.Ca(["aria-"]),Od=function(M,z){this.isLatencyMeasurementExperiment=M===void 0?!1:M;this.enableDialogA11yFix=z===void 0?!1:z;this.JSC$19374_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Y5u(_.R3.location.href)},CP5=function(M,z){M.onConsentPrimitiveShownCallback=z},lCm=function(M,z){return M.overriddenIframeLoadTimeout?M.overriddenIframeLoadTimeout:z!==void 0?z:5E3},rMs=function(M){if(M.prewarmPromise!==void 0)return M.prewarmPromise;
M.prewarmPromise=new Promise(function(z,J){Tl(M,1);evw(M,Qym(M,!0),Ukl(M));M.iframe?M.prewarmChannel||vsu(M,M.iframe,z):J(Error("gk"))});
M.prewarmPromise.finally(function(){M.prewarmPromise=void 0});
return M.prewarmPromise};
Od.prototype.showPrimitive=function(){var M=this;if(this.consentPromise!==void 0)return this.consentPromise;var z=Date.now();GQc(this,z);this.consentPromise=new Promise(function(J,R){Tl(M,0,z);var D=M.isDarkTheme();M.isLatencyMeasurementExperiment||M.initialLoadingStrategy===1||M.initialLoadingStrategy===2||(M.loadingBar||(M.loadingBar=mvu(getComputedStyle(document.body).direction==="rtl",D),M.loadingBar.style.position="fixed",M.loadingBar.style.zIndex="15000"),document.body.appendChild(M.loadingBar));
evw(M,Qym(M),Ukl(M));M.iframe?M.channel||wRw(M,M.iframe,J,R):(xkw(M),R(Error("gk")))});
this.consentPromise.finally(function(){M.consentPromise=void 0});
return this.consentPromise};
var wRw=function(M,z,J,R){var D,N;_.k(function(Z){switch(Z.nextAddress){case 1:Tl(M,3);D=!1;setTimeout(function(){if(!D){xkw(M);tBl(M);jyc(M);var B=udt(7).setErrorMessage("Timeout connecting to iframe");J(Ses(PHu(new B_,zvG(B)),Nsc(B)))}},lCm(M,pRw(M)));
if(!M.prewarmPromise){Z.jumpTo(2);break}_.Io(Z,3);return Z.yield(M.prewarmPromise,5);case 5:_.ab(Z,2);break;case 3:_.Qa(Z),N=udt(4).setErrorMessage("Error while prewarming."),J(Ses(PHu(new B_,zvG(N)),Nsc(N)));case 2:M.prewarmChannel&&M.prewarmChannel.send(Osi(Zsl(new B_,M.consentPrimitiveRequest))),M.channel=_.Dk({destination:M.JSC$19374_win,iframe:z,origin:Fiu(M),channelName:"cpw",onEstablished:function(){D=!0;xkw(M);M.isLatencyMeasurementExperiment||(M.JSC$19374_previousBodyOverflow=document.body.style.overflow,
M.JSC$19374_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,M.JSC$19374_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",M.enableDialogA11yFix&&window.addEventListener("blur",M.focusChangeListener));var B=M.iframe;B.style.bottom="0";B.style.position="fixed";B.style.right="0";B.style.border="none";B.style.left="0";B.style.top=
"0";B.style.zIndex="5000";B.style.pointerEvents="";B.style.visibility="";M.initialLoadingStrategy===2||M.initialLoadingStrategy===3?Tl(M,4):Tl(M,6);var O;(O=M.onConsentPrimitiveShownCallback)==null||O.call(M)},
onMessage:function(B){B=Bsw(B.data);switch(_.yE(B,1)){case 1:tBl(M);var O=gft(_.DG(B,_.yL,7));O&&(M.initialLoadingStrategy!==2&&M.initialLoadingStrategy!==3||Tl(M,6,O),Tl(M,5,O));if(O=gft(_.DG(B,_.yL,6)))Tl(M,7,O),Tl(M,8);var X,l;((X=_.DG(B,MB5,2))==null?void 0:_.py(X,xZ))!==0&&((l=_.DG(B,Rvt,8))==null?void 0:_.py(l,Dkt))!==0||R(Error("hk"));J(B);break;case 2:jyc(M)}}}),_.UI(Z)}})},vsu=function(M,z,J){M.prewarmChannel=_.Dk({destination:M.JSC$19374_win,
iframe:z,origin:Fiu(M),channelName:"pwcp",onEstablished:function(){Tl(M,2);J()}})},Fiu=function(M){var z=_.xq(M.src).toString();
return z&&z.indexOf("://")<0&&z.indexOf("//")!==0?M.origin:_.Y5u(z)},Qym=function(M,z){z=z===void 0?!1:z;
var J,R=new Map([["origin",M.origin],["hl",(J=Yei(M))!=null?J:null]]);z&&R.set("pw","1");z=_.S([["cpr",M.consentPrimitiveRequest.serialize()]]);for(J=z.next();!J.done;J=z.next()){var D=_.S(J.value);J=D.next().value;D=D.next().value;R.set(J,D)}M.isDarkTheme()&&R.set("color_scheme","dark");return _.Pj(M.src,R)},xkw=function(M){M.isLatencyMeasurementExperiment||M.loadingBar&&document.body.removeChild(M.loadingBar)};
Od.prototype.getSrc=function(){var M=_.Ch(this.origin),z;var J=(z=_.DG(this.consentPrimitiveRequest,fk5,3))==null?void 0:_.R2(z,1);z="consent.google.com";J=J?"/u/"+encodeURIComponent(J.toString()):"";(M==null?0:M.endsWith("youtube.com"))?z="consent.youtube.com":(M=M==null?void 0:M.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(z="consent.google."+((M[1]?"co.":"")+encodeURIComponent(M[2])));return _.wi("https://"+z+"/signedin"+J+"/landing")};
var evw=function(M,z,J){M.iframe||(M.iframe=document.createElement("iframe"),M.iframe.style.width="100%",M.iframe.style.height="100%",J!==112496729&&(M.iframe.style.colorScheme="auto"),M.isLatencyMeasurementExperiment&&(M.iframe.style.display="none"),_.W4(M.iframe,z),M.iframe.setAttribute("jsname","C5o1O"),mkl(M.iframe),document.body.appendChild(M.iframe))},mkl=function(M){M.style.bottom="-200vh";
M.style.position="fixed";M.style.right="-200vw";M.style.border="";M.style.left="";M.style.top="";M.style.zIndex="";M.style.pointerEvents="none";M.style.visibility="hidden"},tBl=function(M){M.iframe&&(M.isLatencyMeasurementExperiment||(M.JSC$19374_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=M.JSC$19374_previousHtmlOverscroll),M.JSC$19374_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=M.JSC$19374_previousBodyOverscroll),M.JSC$19374_previousBodyOverflow!==
void 0&&(document.body.style.overflow=M.JSC$19374_previousBodyOverflow),M.enableDialogA11yFix&&gsd(M,!1)),mkl(M.iframe))};
Od.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(gsd(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var gsd=function(M,z){var J,R,D=(J=M.iframe)==null?void 0:(R=J.parentElement)==null?void 0:R.children;if(D)for(J=0;J<D.length;J++)R=D[J],R!==M.iframe&&(z?(R.hasAttribute("aria-hidden")&&_.bs([_.R$(ICl)],R,"data-old-aria-hidden",R.getAttribute("aria-hidden")),_.bs([_.R$(osi)],R,"aria-hidden","true")):(R.removeAttribute("aria-hidden"),R.hasAttribute("data-old-aria-hidden")&&(_.bs([_.R$(XRd)],R,"aria-hidden",R.getAttribute("data-old-aria-hidden")),R.removeAttribute("data-old-aria-hidden"))))},Tl=function(M,
z,J){var R;
(R=M.latencyCallback)==null||R.call(M,{latencyType:z,timestampEpochMillis:J!=null?J:Date.now()})};var syl=function(M,z,J){Od.call(this,z,J===void 0?!1:J);this.consentPrimitiveRequest=M;M=Yei(this);_.v2v(M);this.src=this.getSrc();var R;this.initialLoadingStrategy=(R=_.DG(this.consentPrimitiveRequest,pT,4))==null?void 0:_.yE(R,4)},nsc;
_.w(syl,Od);var in5=function(M){var z=_.U("enable_primitive_dialog_aria_hide_siblings");M={request:M,enableDialogA11yFix:z===void 0?!1:z};nsc||(nsc=new syl(M.request,M.isLatencyMeasurementExperiment||_.yE(M.request,1)===2,M.enableDialogA11yFix));return nsc},Yei=function(M){var z;
return(z=_.DG(M.consentPrimitiveRequest,pT,4))==null?void 0:_.hv(z,1)},GQc=function(M,z){if(!_.wo(M.consentPrimitiveRequest,kR,5)){var J=M.consentPrimitiveRequest,R=new kR;
_.or(J,5,R)}var D;if((D=_.DG(M.consentPrimitiveRequest,kR,5))==null||_.mB8(_.Gj(D,8))==null){var N;(N=_.DG(M.consentPrimitiveRequest,kR,5))!=null&&_.GF(N,8,z)}},Ukl=function(M){var z;
return(z=_.DG(M.consentPrimitiveRequest,kR,5))==null?void 0:_.R2(z,1)};
syl.prototype.isDarkTheme=function(){var M;return((M=_.DG(this.consentPrimitiveRequest,pT,4))==null?void 0:_.yE(M,2))===2};
var pRw=function(M){var z;return((z=_.DG(M.consentPrimitiveRequest,pT,4))==null?void 0:_.R2(z,5))||void 0},jyc=function(M){M.channel=void 0;
M.prewarmChannel=void 0;M.iframe&&(document.body.contains(M.iframe)&&document.body.removeChild(M.iframe),M.iframe=void 0);nsc=void 0},MFw=function(M){return Od.prototype.showPrimitive.call(M).then(function(z){return _.DG(z,MB5,2)})};for(var IK={},hvl=(IK[64]="ma",IK[73]="ogb",IK[89]="cr",IK[21]="test",IK[0]="unkn",IK[137]="con",IK[155]="hl",IK[78]="yt",IK[171]="lp",IK[172]="ap",IK[177]="amo",IK[178]="pqe",IK[74]="gg",IK[1]="gm",IK[140]="am",IK[193]="sc",IK),yQs=_.S(Object.keys(hvl)),Hsl=yQs.next();!Hsl.done;Hsl=yQs.next());var cQl=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(cQl,_.zA);var dkw=[0,[2,3,4],_.zE,Nys,Izc,_.Vjp];var Kiu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Kiu,_.zA);var $kc=_.B4(Kiu,[0,Ty5,_.Cy,_.zE,_.Cy,_.zE,dkw]);var upG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(upG,_.zA);upG.prototype.getCommand=function(){return _.yE(this,1)};
var qeN=function(){var M=new upG;return _.uN(M,1,0)};var Wit=_.Ow([0,Ty5,_.Cy,[0,_.zE,_.Cy,-1]]);var aCu=new _.Ue("s"),VBu=new _.Ue("t"),Est=new _.Ue("u"),fC5=new _.Ue("v"),Lim=function(M,z,J){_.vR.call(this,aCu);this.mediaKey=M;this.photoUrl=z;this.photoSource=J};
_.w(Lim,_.vR);var AQi=function(){_.vR.call(this,VBu)};
_.w(AQi,_.vR);var ist=function(M){M=M===void 0?!1:M;_.vR.call(this,Est);this.isError=M};
_.w(ist,_.vR);var CHl=function(){_.vR.call(this,fC5)};
_.w(CHl,_.vR);var bsw=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Jbw=function(M){if(typeof M=="string"){if(M.charAt(0)==".")return rQm(M.substr(1));if(M.charAt(0)=="["){var z=bsw.exec(M);M=M.indexOf("=")==-1?void 0:z[3];return MHt(z[1],M)}return zhi(M)}return M},rQm=function(M){return function(z){return z.getAttribute&&_.Ee(z,M)}},MHt=function(M,z){return function(J){return z!==void 0?J.getAttribute&&J.getAttribute(M)==z:J.hasAttribute&&J.hasAttribute(M)}},zhi=function(M){M=M.toUpperCase();
return function(z){return(z=z.tagName)&&z.toUpperCase()==M}},Rhw=function(){return!0};var oK=function(M,z){this.JSC$19402_key_=M;this.JSC$19402_value_=z},XU=function(M){throw Error("ik`"+M.JSC$19402_key_);
},DDt=function(M,z){return new TypeError("jk`"+z+"`"+M.JSC$19402_key_+"`"+M.JSC$19402_value_+"`"+typeof M.JSC$19402_value_)};
oK.prototype.string=function(M){return arguments.length==0?Nqv(this):PFl(this,M)};
var PFl=function(M,z){var J;return(J=Skw(M))!=null?J:z},Nqv=function(M){var z=Skw(M);
z===null&&XU(M);return z},Skw=function(M){var z=M.JSC$19402_value_;
if(z==null)return null;if(typeof z==="string")return z;throw DDt(M,"string");};
oK.prototype.bool=function(M){if(arguments.length==0){var z=this.optionalBool();z===null&&XU(this)}else{var J;z=(J=this.optionalBool())!=null?J:M}return z};
oK.prototype.optionalBool=function(){var M=this.JSC$19402_value_;if(M==null)return null;if(typeof M==="boolean")return M;if(typeof M==="string"){M=M.toLowerCase();if(M==="true"||M==="1")return!0;if(M==="false"||M==="0")return!1}throw DDt(this,"boolean");};
oK.prototype.number=function(M){if(arguments.length==0){var z=ZFw(this);z===null&&XU(this)}else z=k5t(this,M);return z};
var k5t=function(M,z){var J;return(J=ZFw(M))!=null?J:z},ZFw=function(M){var z=M.JSC$19402_value_;
if(z==null)return null;if(typeof z==="number")return z;if(typeof z==="string"){var J=Number(z);if(!isNaN(J)&&(J!==0||z.trim().length!==0))return J}throw DDt(M,"number");};
oK.prototype.toString=function(){return Nqv(this)};
oK.prototype.enum=function(M,z){var J=!0,R=void 0,D;for(D in M){var N=M[D];J&&(J=!1,R=typeof N==="number"?k5t(this,z):PFl(this,z));if(N==R)return R}JSON.stringify(M);return R};
oK.prototype.array=function(M){if(arguments.length==0){var z=Bql(this);z===null&&XU(this);return z}z=Bql(this);return z==null?M:z};
var Bql=function(M){var z=M.JSC$19402_value_;if(z==null)return null;Array.isArray(z)||(typeof z!=="string"?z=[z]:(z=z.trim(),z=z==""?[]:z.split(",").map(function(J){return J.trim()})));
return OFv(M,z)},OFv=function(M,z){var J=M.JSC$19402_key_+"[";
return Array.from(z,function(R,D){return new oK(J+D+"]",R)})};
oK.prototype.object=function(M){var z=this.JSC$19402_value_;if(z==null)return M===void 0&&XU(this),M;if(typeof z==="object"&&z.constructor===Object){M={};var J=this.JSC$19402_key_+".",R;for(R in z)M[R]=new oK(J+R,z[R]);return M}throw DDt(this,"object");};var lb=function(M){this.list_=Tqt(M)},Tqt=function(M){if(M instanceof lb)M=M.list_;
else if(M[0]instanceof lb){for(var z=new Set,J=0;J<M.length;J++)for(var R=_.S(M[J].list_),D=R.next();!D.done;D=R.next())z.add(D.value);M=z}return[].concat(_.Yj(M))};
_.P=lb.prototype;_.P.each=function(M,z,J){((J===void 0?0:J)?sOw:_.VU)(this.list_,M,z);return this};
_.P.size=function(){return this.list_.length};
_.P.isEmpty=function(){return this.list_.length===0};
_.P.get=function(M){return this.list_[M]||null};
_.P.el=function(){return this.list_[0]||null};
_.P.map=function(M,z){return _.sa(this.list_,M,z)};
_.P.equals=function(M){return this===M||_.Lp(this.list_,M.list_)};
_.P.first=function(){return this.list_.length==0?null:new ew(this.list_[0])};
_.P.last=function(){return this.list_.length==0?null:new ew(this.list_[this.list_.length-1])};
_.P.find=function(M){var z=[];this.each(function(J){J=J.querySelectorAll(String(M));for(var R=0;R<J.length;R++)z.push(J[R])});
return new lb(z)};
_.P.parent=function(){var M=[];this.each(function(z){(z=z.parentElement||null)&&!_.Kp(M,z)&&M.push(z)});
return new lb(M)};
_.P.children=function(){var M=[];this.each(function(z){z=_.dp(z);for(var J=0;J<z.length;J++)M.push(z[J])});
return new lb(M)};
_.P.filter=function(M){M=_.B9(this.list_,Jbw(M));return new lb(M)};
_.P.closest=function(M){var z=[],J=Jbw(M),R=function(D){return _.iD(D)&&J(D)};
this.each(function(D){(D=_.cj(D,R,!0))&&!_.Kp(z,D)&&z.push(D)});
return new lb(z)};
_.P.next=function(M){return IF5(this,_.Ep2,M)};
_.P.prev=function(M){return IF5(this,oTu,M)};
var IF5=function(M,z,J){var R=[];var D=J?Jbw(J):Rhw;M.each(function(N){(N=z(N))&&D(N)&&R.push(N)});
return new lb(R)};
lb.prototype.setClass=function(M){return this.each(function(z){_.VB(z,M)})};
var oew=function(M,z){return M.each(function(J){_.M7(J,z)})},X3d=function(M,z){return M.each(function(J){_.b5(J,z)})};
lb.prototype.toggleClass=function(M,z){return z===!0?oew(this,M):z===!1?X3d(this,M):this.each(function(J){_.Ee(J,M)?_.b5(J,M):_.M7(J,M)})};
lb.prototype.setText=function(M){return this.each(function(z){_.KQ(z,M)})};
var lFu=function(M){M.each(function(z){z.removeAttribute("aria-hidden")})};
lb.prototype.getStyle=function(M){if(this.list_.length>0){var z=this.list_[0],J=z.style[_.UK(M)];return typeof J!=="undefined"?J:z.style[_.NlQ(z,M)]||""}};
lb.prototype.getData=function(M){if(this.list_.length===0)return new oK(M,null);var z=c1v(this.list_[0],M);return new oK(M,z)};
lb.prototype.focus=function(M){try{M?this.el().focus(M):this.el().focus()}catch(z){}return this};
lb.prototype.click=function(){var M=_.yW(this.el());if(M.createEvent){var z=M.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,M.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(z)}else M=M.createEventObject(),M.clientX=0,M.clientY=0,M.screenX=0,M.screenY=0,M.altKey=!1,M.ctrlKey=!1,M.shiftKey=!1,M.button=0,this.el().fireEvent("onclick",M)};
var QR=function(M,z,J,R){function D(B,O,X){var l=O;O&&O.parentNode&&(l=O.cloneNode(!0));B(l,X)}
R=R===void 0?!1:R;if(M.list_.length==1){var N=M.list_[0],Z=function(B){return z(B,N)};
J instanceof lb?J.each(Z,void 0,R):Array.isArray(J)?(R?sOw:_.VU)(J,Z):Z(J);return M}return M.each(function(B){J instanceof lb?J.each(function(O){D(z,O,B)}):Array.isArray(J)?_.VU(J,function(O){D(z,O,B)}):D(z,J,B)})};
_.P=lb.prototype;_.P.append=function(M){return QR(this,function(z,J){z&&J.appendChild(z)},M)};
_.P.appendTo=function(M){(new lb([M])).append(this);return this};
_.P.remove=function(){return QR(this,function(M,z){_.eJ(z)},null)};
_.P.empty=function(){return QR(this,function(M,z){_.yD(z)},null)};
_.P.after=function(M,z){return QR(this,function(J,R){J&&_.cK(J,R)},M,!(z===void 0||z))};
_.P.before=function(M){return QR(this,function(z,J){z&&_.HK(z,J)},M)};
_.P.replaceWith=function(M){return QR(this,function(z,J){z&&_.W$V(z,J)},M)};
_.P.toggle=function(M){return this.each(function(z){_.a2(z,M)})};
_.P.show=function(){return this.toggle(!0)};
_.P.hide=function(){return this.toggle(!1)};
_.P.trigger=function(M,z,J,R){return ehN(this,M,z,J,R)};
var ehN=function(M,z,J,R,D){return M.each(function(N){_.Uce(_.yW(N)).triggerWizEventInternal(N,z,J,R,D)})},ew=function(M,z){M instanceof lb&&(z=M.list_,M=null);
this.list_=Tqt(M!=null?[M]:z)};
_.ZP(ew,lb);_.P=ew.prototype;_.P.children=function(){return new lb(Array.prototype.slice.call(_.dp(this.list_[0])))};
_.P.each=function(M,z){M.call(z,this.list_[0],0);return this};
_.P.size=function(){return 1};
_.P.el=function(){return this.list_[0]};
_.P.first=function(){return this};var Ud=function(M,z){z=z===void 0?window:z;this.hostId=M;this.JSC$19413_win=z;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$19413_previousHtmlOverscroll=this.JSC$19413_previousBodyOverscroll=this.JSC$19413_previousBodyOverflow="";this.eventTarget=new _.jB;this.JSC$19413_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
veN=function(M){var z=QId(QId(QId(new UDG(78),"po"),"hppp"),"hhc");
z.authUser=Number(_.HW("SESSION_INDEX","0"));z.colorScheme=M;return z};
Ud.prototype.getOrigin=function(){return this.origin?this.origin:_.ND(_.DF(_.RI(new _.iS,this.JSC$19413_win.location.protocol),this.JSC$19413_win.location.hostname),this.JSC$19413_win.location.port).toString()};
Ud.prototype.getTargetOrigin=function(){return _.ND(_.DF(_.RI(new _.iS,this.scheme),this.domain),this.port)};
Ud.prototype.preloadIframe=function(M){var z=this;if(this.iframeLoadPromise===void 0){var J=document.createElement("iframe");this.iframe=J;dvN(J,M);this.iframeLoadPromise=new Promise(function(R,D){var N=!1,Z=function(B){B.stopPropagation();J.removeEventListener("error",Z);J.removeEventListener("securitypolicyviolation",Z);D(Error("kk",{cause:B}))};
J.addEventListener("error",Z);J.addEventListener("securitypolicyviolation",Z);setTimeout(function(){N||D(Error("lk"))},3E4);
G5l(z,J,function(){N=!0;J.removeEventListener("error",Z);J.removeEventListener("securitypolicyviolation",Z);R()})});
w3N(this);M=this.getTargetOrigin().toString();J.setAttribute("allow","camera "+M+"; display-capture "+M);this.parentElement.appendChild(J)}return this.iframeLoadPromise};
var jIu=function(M,z){var J,R;return _.k(function(D){if(D.nextAddress==1)return J=mvu(getComputedStyle(M.parentElement).direction==="rtl"),M.parentElement.appendChild(J),document.activeElement instanceof HTMLElement&&(M.elementToFocusAfterClose=document.activeElement),_.Io(D,2),D.yield(M.preloadIframe(z),4);if(D.nextAddress!=2){M.parentElement.removeChild(J);M.JSC$19413_previousBodyOverflow=M.parentElement.style.overflow;M.JSC$19413_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
M.JSC$19413_previousBodyOverscroll=M.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";M.parentElement.style.overscrollBehavior="contain";M.parentElement.style.overflow="hidden";var N=M.iframe;N.style.bottom="0";N.style.border="none";N.style.height="100%";N.style.left="0";N.style.position=M.iframePosition;N.style.right="0";N.style.top="0";N.style.width="100%";N.style.zIndex="2202";N.setAttribute("aria-hidden","false");N.setAttribute("aria-modal","true");
M.opened=!0;xDt(M);return _.ab(D,0)}R=_.Qa(D);M.parentElement.removeChild(J);yNm(M.isDarkTheme());tHl(M,!1);throw Error("mk",{cause:R});})},tHl=function(M,z){z=z===void 0?!0:z;
M.iframe!==void 0&&(p3w(M),document.documentElement.style.overscrollBehavior=M.JSC$19413_previousHtmlOverscroll,M.parentElement.style.overscrollBehavior=M.JSC$19413_previousBodyOverscroll,M.parentElement.style.overflow=M.JSC$19413_previousBodyOverflow,M.elementToFocusAfterClose!==void 0&&(M.elementToFocusAfterClose.focus(),M.elementToFocusAfterClose=void 0),z?w3N(M):(M.parentElement.removeChild(M.iframe),M.iframe=void 0,M.iframeLoadPromise=void 0,M.mainChannel=void 0),M.opened=!1)},p3w=function(M){M.backgroundElementsAriaHiddenIsNull&&
(lFu(M.backgroundElementsAriaHiddenIsNull),M.backgroundElementsAriaHiddenIsNull=void 0);
M.backgroundElementsAriaHiddenIsFalse&&(M.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","false")}),M.backgroundElementsAriaHiddenIsFalse=void 0);
M.backgroundElementsWithoutInert&&(M.backgroundElementsWithoutInert.each(function(z){z.removeAttribute("inert")}),M.backgroundElementsWithoutInert=void 0)},xDt=function(M){M.backgroundElementsAriaHiddenIsNull=(new ew(M.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")===null&&z!==M.iframe});
M.backgroundElementsAriaHiddenIsNull.each(function(z){z.setAttribute("aria-hidden","true")});
M.backgroundElementsAriaHiddenIsFalse=(new ew(M.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")==="false"&&z!==M.iframe});
M.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","true")});
M.backgroundElementsWithoutInert=(new ew(M.iframe.parentElement)).children().filter(function(z){return!z.hasAttribute("inert")&&z!==M.iframe});
M.backgroundElementsWithoutInert.each(function(z){z.setAttribute("inert","true")})},w3N=function(M){M=M.iframe;
M.style.bottom="-1000px";M.style.position="fixed";M.style.right="-1000px";M.style.border="";M.style.height="";M.style.left="";M.style.top="";M.style.width="";M.style.zIndex="";M.setAttribute("aria-hidden","true");M.setAttribute("aria-modal","false")};
Ud.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var UDG=function(M,z){Ud.call(this,hvl[M],z);this.options=[];this.style=""};
_.w(UDG,Ud);var Fvw=function(M){M.style="youtube";return M},Ykd=function(M,z){M.eventTarget.listen(Est,z);
return M},mDl=function(M,z){M.eventTarget.listen(aCu,z);
return M},QId=function(M,z){M.options.push(z);
return M},gel=function(M){var z=[M.getOrigin()];
M.ancestorOrigins&&z.push.apply(z,_.Yj(M.ancestorOrigins));var J=new _.iS(M.JSC$19413_win.location.href),R=M.startUrl?M.startUrl:M.options.includes("po")?"profile-picture/art":"profile-picture";z=FW(_.P3(M.getTargetOrigin(),R),"origin",z);M.startUrl&&_.W6(z,"startPath",M.startUrl);M.authUser>0&&_.W6(z,"authuser",M.authUser);M.pageId!==void 0&&_.W6(z,"pageId",M.pageId);_.W6(z,"hostId",M.hostId);M.jsMode!==void 0&&_.W6(z,"jsmode",M.jsMode);M.rectangleRatio!==void 0&&_.W6(z,"rectangleRatio",M.rectangleRatio);
M.options.length>0&&_.W6(z,"opts",M.options.join(","));try{for(var D=_.S(["utm_source","utm_medium","utm_campaign","utm_content"]),N=D.next();!N.done;N=D.next()){var Z=N.value;_.q$(J,Z)&&_.W6(z,Z,_.q$(J,Z))}var B,O=(B=M.hl)!=null?B:_.q$(J,"hl");O!==void 0&&_.W6(z,"hl",O)}catch(X){if(!(X instanceof URIError))throw X;}M.colorScheme&&_.W6(z,"theme",M.colorScheme);M.style&&_.W6(z,"style",M.style);return z},sIw=function(M,z){M.mainChannel=_.Dk({destination:M.JSC$19413_win,
iframe:z,origin:M.getTargetOrigin().toString(),channelName:"ow",onMessage:function(J){J=$kc(J.data);if(z===M.iframe)switch(_.yE(J,1)){case 1:M.eventTarget.dispatchEvent(new ist);tHl(M);break;case 2:M.eventTarget.dispatchEvent(new Lim(_.hv(J,4),_.hv(J,2),_.yE(J,5),_.DG(J,cQl,6)));break;case 0:var R;M.eventTarget.dispatchEvent(new AQi(_.hv(J,2),(R=_.yE(J,3))!=null?R:0));break;case 3:M.eventTarget.dispatchEvent(new ist(!0));tHl(M,!1);break;case 4:M.eventTarget.dispatchEvent(new CHl)}}})},G5l=function(M,
z,J){_.Dk({destination:M.JSC$19413_win,
iframe:z,origin:_.ND(_.DF(_.RI(new _.iS,M.scheme),M.domain),M.port).toString(),channelName:"owi",onMessage:function(R){z===M.iframe&&(J!==void 0&&J(),sIw(M,z),M.opened&&M.mainChannel.send(Wit(qeN())),R.reply(),G5l(M,z))}})};
UDG.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ud.prototype.preloadIframe.call(this,gel(this).toString()):this.iframeLoadPromise};
UDG.prototype.openPicker=function(M){var z=this;return _.k(function(J){if(J.nextAddress==1)return z.startUrl=M?M:z.options.includes("po")?"profile-picture/art":"profile-picture",J.yield(jIu(z,gel(z).toString()),2);if(z.mainChannel){var R=z.mainChannel,D=R.send;var N=qeN();N=_.G$(N,2,z.startUrl);D.call(R,Wit(N))}_.UI(J)})};var ned=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(ned,_.zA);_.P=ned.prototype;_.P.getSize=function(){return ym(this,1)};
_.P.setSize=function(M){return _.$I(this,1,M)};
_.P.getWidth=function(){return ym(this,12)};
_.P.getHeight=function(){return ym(this,13)};
_.P.setCenterCrop=function(M){return _.SJ(this,20,M)};
_.P.getHtml=function(){return _.go(this,4)};
_.P.getToken=function(){return _.o2(this,24)};
_.P.setToken=function(M){return _.G$(this,24,M)};
_.P.getBackgroundColor=function(){return ym(this,87)};
_.P.hasBackgroundColor=function(){return _.rg(_.Gj(this,87))!=null};
_.P.getStoryboardLevel=function(){return ym(this,109)};var v_=function(M){this.JSC$19421_value_=void 0;this.childNodes_={};if(M){var z=_.yPV(M);M=_.Jb(M);for(var J=0;J<z.length;J++)this.set(z[J],M[J])}};
v_.prototype.set=function(M,z){hhc(this,M,z,!1)};
v_.prototype.add=function(M,z){hhc(this,M,z,!0)};
var hhc=function(M,z,J,R){for(var D=0;D<z.length;D++){var N=z.charAt(D);M.childNodes_[N]||(M.childNodes_[N]=new v_);M=M.childNodes_[N]}if(R&&M.JSC$19421_value_!==void 0)throw Error("nk`"+z);M.JSC$19421_value_=J},yb5=function(M,z){for(var J=0;J<z.length;J++)if(M=M.childNodes_[z.charAt(J)],!M)return;
return M};
v_.prototype.get=function(M){return(M=yb5(this,M))?M.JSC$19421_value_:void 0};
v_.prototype.getValues=function(){var M=[];HFt(this,M);return M};
var HFt=function(M,z){M.JSC$19421_value_!==void 0&&z.push(M.JSC$19421_value_);for(var J in M.childNodes_)HFt(M.childNodes_[J],z)};
v_.prototype.getKeys=function(M){var z=[];if(M){for(var J=this,R=0;R<M.length;R++){var D=M.charAt(R);if(!J.childNodes_[D])return[];J=J.childNodes_[D]}cbt(J,M,z)}else cbt(this,"",z);return z};
var cbt=function(M,z,J){M.JSC$19421_value_!==void 0&&J.push(z);for(var R in M.childNodes_)cbt(M.childNodes_[R],z+R,J)};
_.P=v_.prototype;_.P.containsKey=function(M){return this.get(M)!==void 0};
_.P.containsValue=function(M){if(this.JSC$19421_value_===M)return!0;for(var z in this.childNodes_)if(this.childNodes_[z].containsValue(M))return!0;return!1};
_.P.clear=function(){this.childNodes_={};this.JSC$19421_value_=void 0};
_.P.remove=function(M){for(var z=this,J=[],R=0;R<M.length;R++){var D=M.charAt(R);if(!z.childNodes_[D])throw Error("ok`"+M);J.push([z,D]);z=z.childNodes_[D]}M=z.JSC$19421_value_;for(delete z.JSC$19421_value_;J.length>0;)if(R=J.pop(),z=R[0],R=R[1],z.childNodes_[R].isEmpty())delete z.childNodes_[R];else break;return M};
_.P.clone=function(){return new v_(this)};
_.P.getCount=function(){return Qh5(this.getValues())};
_.P.isEmpty=function(){return this.JSC$19421_value_===void 0&&_.gu.isEmpty(this.childNodes_)};var Wpw=function(){if(!dDc){var M=dDc=new v_,z;for(z in Kvw)M.add(z,Kvw[z])}},dDc,Gl=function(M,z){this.types=M;
this.setters=z},Kvw={a:new Gl([3,
0],[function(M,z){_.SJ(M,21,z)},
function(M,z){_.$I(M,56,z)}]),
al:new Gl([3],[function(M,z){_.SJ(M,74,z)}]),
b:new Gl([3,0],[function(M,z){_.SJ(M,23,z)},
function(M,z){_.$I(M,38,z)}]),
ba:new Gl([0],[function(M,z){_.$I(M,85,z)}]),
bc:new Gl([0],[function(M,z){_.$I(M,87,z)}]),
br:new Gl([0],[function(M,z){_.$I(M,86,z)}]),
c:new Gl([3,0],[function(M,z){_.SJ(M,2,z)},
function(M,z){_.$I(M,39,z)}]),
cc:new Gl([3],[function(M,z){_.SJ(M,51,z)}]),
ci:new Gl([3],[function(M,z){_.SJ(M,32,z)}]),
ckm:new Gl([3],[function(M,z){_.SJ(M,104,z)}]),
cp:new Gl([0],[function(M,z){_.$I(M,92,z)}]),
cr:new Gl([3],[function(M,z){_.SJ(M,108,z)}]),
cv:new Gl([0],[function(M,z){_.$I(M,94,z)}]),
d:new Gl([3],[function(M,z){_.SJ(M,3,z)}]),
dc:new Gl([5],[function(M,z){_.G$(M,99,z)}]),
df:new Gl([3],[function(M,z){_.SJ(M,80,z)}]),
dv:new Gl([3],[function(M,z){_.SJ(M,90,z)}]),
e:new Gl([0],[function(M,z){_.$I(M,15,z)}]),
em:new Gl([0],[function(M,z){_.$I(M,107,z)}]),
f:new Gl([4],[function(M,z){_.G$(M,16,z)}]),
fg:new Gl([3],[function(M,z){_.SJ(M,34,z)}]),
fh:new Gl([3],[function(M,z){_.SJ(M,30,z)}]),
fm:new Gl([3],[function(M,z){_.SJ(M,84,z)}]),
fo:new Gl([2],[function(M,z){_.PI(M,79,_.Wu(z))}]),
ft:new Gl([3],[function(M,z){_.SJ(M,50,z)}]),
fv:new Gl([3],[function(M,z){_.SJ(M,31,z)}]),
g:new Gl([3],[function(M,z){_.SJ(M,14,z)}]),
gce:new Gl([4],[function(M,z){_.G$(M,112,z)}]),
gd:new Gl([3],[function(M,z){_.SJ(M,83,z)}]),
gm:new Gl([3],[function(M,z){_.SJ(M,105,z)}]),
h:new Gl([3,0],[function(M,z){_.SJ(M,4,z)},
function(M,z){_.$I(M,13,z)}]),
i:new Gl([3],[function(M,z){_.SJ(M,22,z)}]),
ic:new Gl([0],[function(M,z){_.$I(M,71,z)}]),
id:new Gl([3],[function(M,z){_.SJ(M,70,z)}]),
il:new Gl([3],[function(M,z){_.SJ(M,96,z)}]),
ip:new Gl([3],[function(M,z){_.SJ(M,54,z)}]),
iv:new Gl([0],[function(M,z){_.GF(M,75,z)}]),
j:new Gl([1],[function(M,z){z=z==null?z:y1l(z);_.PI(M,29,z)}]),
k:new Gl([3,0],[function(M,z){_.SJ(M,17,z)},
function(M,z){_.$I(M,42,z)}]),
l:new Gl([0],[function(M,z){_.$I(M,44,z)}]),
lf:new Gl([3],[function(M,z){_.SJ(M,65,z)}]),
lo:new Gl([3],[function(M,z){_.SJ(M,97,z)}]),
m:new Gl([0],[function(M,z){_.$I(M,63,z)}]),
md:new Gl([3],[function(M,z){_.SJ(M,91,z)}]),
mm:new Gl([4],[function(M,z){_.G$(M,81,z)}]),
mo:new Gl([3],[function(M,z){_.SJ(M,73,z)}]),
mp:new Gl([0],[function(M,z){_.$I(M,115,z)}]),
mv:new Gl([3],[function(M,z){_.SJ(M,66,z)}]),
n:new Gl([3],[function(M,z){M.setCenterCrop(z)}]),
nc:new Gl([3],[function(M,z){_.SJ(M,55,z)}]),
nd:new Gl([3],[function(M,z){_.SJ(M,53,z)}]),
ng:new Gl([3],[function(M,z){_.SJ(M,95,z)}]),
ngm:new Gl([3],[function(M,z){_.SJ(M,106,z)}]),
no:new Gl([3],[function(M,z){_.SJ(M,37,z)}]),
ns:new Gl([3],[function(M,z){_.SJ(M,40,z)}]),
nt0:new Gl([4],[function(M,z){_.G$(M,36,z)}]),
ntm:new Gl([3],[function(M,z){_.SJ(M,114,z)}]),
nu:new Gl([3],[function(M,z){_.SJ(M,46,z)}]),
nw:new Gl([3],[function(M,z){_.SJ(M,48,z)}]),
o:new Gl([1,3],[function(M,z){z=z==null?z:y1l(z);_.PI(M,7,z)},
function(M,z){_.SJ(M,27,z)}]),
p:new Gl([3,0],[function(M,z){_.SJ(M,19,z)},
function(M,z){_.$I(M,43,z)}]),
pa:new Gl([3],[function(M,z){_.SJ(M,61,z)}]),
pc:new Gl([0],[function(M,z){_.$I(M,88,z)}]),
pd:new Gl([3],[function(M,z){_.SJ(M,60,z)}]),
pf:new Gl([3],[function(M,z){_.SJ(M,67,z)}]),
pg:new Gl([3],[function(M,z){_.SJ(M,72,z)}]),
pi:new Gl([2],[function(M,z){_.PI(M,76,_.Wu(z))}]),
pp:new Gl([3],[function(M,z){_.SJ(M,52,z)}]),
pt:new Gl([4],[function(M,z){_.G$(M,111,z)}]),
q:new Gl([4],[function(M,z){_.G$(M,28,z)}]),
r:new Gl([3,0],[function(M,z){_.SJ(M,6,z)},
function(M,z){_.$I(M,26,z)}]),
ra:new Gl([3],[function(M,z){_.SJ(M,103,z)}]),
rf:new Gl([3],[function(M,z){_.SJ(M,100,z)}]),
rg:new Gl([3],[function(M,z){_.SJ(M,59,z)}]),
rh:new Gl([3],[function(M,z){_.SJ(M,49,z)}]),
rj:new Gl([3],[function(M,z){_.SJ(M,57,z)}]),
ro:new Gl([2],[function(M,z){_.PI(M,78,_.Wu(z))}]),
rp:new Gl([3],[function(M,z){_.SJ(M,58,z)}]),
rw:new Gl([3],[function(M,z){_.SJ(M,35,z)}]),
rwa:new Gl([3],[function(M,z){_.SJ(M,64,z)}]),
rwu:new Gl([3],[function(M,z){_.SJ(M,41,z)}]),
s:new Gl([3,0],[function(M,z){_.SJ(M,33,z)},
function(M,z){M.setSize(z)}]),
sb:new Gl([0],[function(M,z){_.$I(M,110,z)}]),
sc:new Gl([0],[function(M,z){_.$I(M,89,z)}]),
sg:new Gl([3],[function(M,z){_.SJ(M,82,z)}]),
sl:new Gl([0],[function(M,z){_.$I(M,109,z)}]),
sm:new Gl([3],[function(M,z){_.SJ(M,93,z)}]),
t:new Gl([4],[function(M,z){M.setToken(z)}]),
tm:new Gl([3],[function(M,z){_.SJ(M,113,z)}]),
u:new Gl([3],[function(M,z){_.SJ(M,18,z)}]),
ut:new Gl([3],[function(M,z){_.SJ(M,45,z)}]),
v:new Gl([0],[function(M,z){_.$I(M,62,z)}]),
vb:new Gl([0],[function(M,z){_.GF(M,68,z)}]),
vf:new Gl([4],[function(M,z){_.G$(M,102,z)}]),
vl:new Gl([0],[function(M,z){_.GF(M,69,z)}]),
vm:new Gl([3],[function(M,z){_.SJ(M,98,z)}]),
w:new Gl([0],[function(M,z){_.$I(M,12,z)}]),
x:new Gl([0],[function(M,z){_.$I(M,9,z)}]),
y:new Gl([0],[function(M,z){_.$I(M,10,z)}]),
ya:new Gl([2],[function(M,z){_.PI(M,77,_.Wu(z))}]),
z:new Gl([0],[function(M,z){_.$I(M,11,z)}])};
Wpw.prototype.parse=function(M){var z=new ned,J=new ned;if(M=="")M=!0;else{M=M.split("-");for(var R=!0,D=0;D<M.length;D++){var N=M[D];if(N.length==0)R=!1;else{var Z=N,B=!1;var O=Z;var X=Z.charAt(0);X!=X.toLowerCase()&&(B=!0,O=Z.charAt(0).toLowerCase()+Z.substring(1));var l=dDc;for(X=1;X<=O.length;++X){var e=l,Q=O.substring(0,X);if(Q.length==0?e.isEmpty():!yb5(e,Q))break}O=X==1?null:(O=l.get(O.substring(0,X-1)))?{option:Z.substring(0,X-1),value:Z.substring(X-1),signed:B,attributes:O}:null;if(O){Z=
[];B=[];X=!1;for(l=0;l<O.attributes.types.length;l++){e=O.attributes.types[l];var v=O.value;Q=D;if(O.signed&&e==1)for(var x=v.length;x<12&&Q<M.length-1;)v+="-"+M[Q+1],x=v.length,++Q;else if(e==2)for(;Q<M.length-1&&M[Q+1].match(/^[\d\.]/);)v+="-"+M[Q+1],++Q;x=O.attributes.setters[l];v=$Ds(this,e)(O.option,v,z,J,x);if(v===null){X=!0;D=Q;break}else Z.push(e),B.push(v)}if(!X)for(O=0;O<B.length;O++)l=Z[O],v=B[O],u$l(this,l)(N,v);R=R&&X}else R=!1}}M=R}return new qkl(z,J,M)};
var wI=function(M,z,J,R,D,N){D(J,z);M=M.charAt(0);N=N(M==M.toUpperCase());D(R,N)};
_.P=Wpw.prototype;_.P.parseAndSetIntOption_=function(M,z,J,R,D){if(z=="")return 0;isFinite(z)&&(z=String(z));z=typeof z==="string"?/^\s*-?0x/i.test(z)?parseInt(z,16):parseInt(z,10):NaN;if(isNaN(z))return 1;wI(M,z,J,R,D,Number);return null};
_.P.logIntParseError_=function(){};
_.P.parseAndSetFloatOption_=function(M,z,J,R,D){if(z=="")return 0;var N=Number(z);z=N==0&&_.ko(z)?NaN:N;if(isNaN(z))return 1;wI(M,z,J,R,D,Number);return null};
_.P.logFloatParseError_=function(){};
_.P.parseAndSetBoolOption_=function(M,z,J,R,D){if(z!="")return 2;wI(M,!0,J,R,D,Boolean);return null};
_.P.logBoolParseError_=function(){};
_.P.parseAndSetStringOption_=function(M,z,J,R,D){if(z=="")return 0;wI(M,z,J,R,D,function(N){return N?"1":""});
return null};
_.P.logStringParseError_=function(){};
_.P.parseAndSetUint64Base64Option_=function(M,z,J,R,D){if(z=="")return 0;wI(M,z,J,R,D,function(N){return N?1:0});
return null};
var $Ds=function(M,z){switch(z){case 0:return(0,_.xF)(M.parseAndSetIntOption_,M);case 2:return(0,_.xF)(M.parseAndSetFloatOption_,M);case 3:return(0,_.xF)(M.parseAndSetBoolOption_,M);case 4:return(0,_.xF)(M.parseAndSetStringOption_,M);case 1:return(0,_.xF)(M.parseAndSetUint64Base64Option_,M);default:return function(){}}},u$l=function(M,z){switch(z){case 0:return(0,_.xF)(M.logIntParseError_,M);
case 2:return(0,_.xF)(M.logFloatParseError_,M);case 3:return(0,_.xF)(M.logBoolParseError_,M);case 4:case 1:return(0,_.xF)(M.logStringParseError_,M);default:return function(){}}},qkl=function(M,z,J){this.valueProto_=M;
this.signatureFlagProto_=z;this.JSC$19433_valid_=J};
qkl.prototype.isValid=function(){return this.JSC$19433_valid_};var Kpi=function(M){this.JSC$19434_parser_=null;this.JSC$19434_components_=[];this.JSC$19434_parsedOptions_=null;Wvl(this,M)},aFc=function(M){M.JSC$19434_parser_==null&&(M.JSC$19434_parser_=new Wpw);
return M.JSC$19434_parser_},Wvl=function(M,z){M.JSC$19434_parsedOptions_=z?typeof z==="string"?aFc(M).parse(z):z:aFc(M).parse("")},xR=function(M,z){return M==z?!1:!0};
_.P=Kpi.prototype;_.P.JSC$19436_setCrop=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,_.go(J,2),_.go(z.signatureFlagProto_,2))&&_.SJ(J,2,M);return this};
_.P.JSC$19436_setCircleCrop=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,ht(J,51),ht(z.signatureFlagProto_,51))&&_.SJ(J,51,M);return this};
_.P.JSC$19436_setImageCrop=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,ht(J,32),ht(z.signatureFlagProto_,32))&&_.SJ(J,32,M);return this};
_.P.JSC$19436_setHeight=function(M){var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,J.getHeight(),z.signatureFlagProto_.getHeight())&&_.$I(J,13,M);return this};
_.P.setCenterCrop=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,_.go(J,20),_.go(z.signatureFlagProto_,20))&&J.setCenterCrop(M);return this};
_.P.JSC$19436_setSmartCrop=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,_.go(J,19),_.go(z.signatureFlagProto_,19))&&_.SJ(J,19,M);return this};
_.P.JSC$19436_setPad=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,ht(J,60),ht(z.signatureFlagProto_,60))&&_.SJ(J,60,M);return this};
_.P.JSC$19436_setSmartCropUseFace=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,_.go(J,67),_.go(z.signatureFlagProto_,67))&&_.SJ(J,67,M);return this};
_.P.JSC$19436_setSmartCropNoClip=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,_.go(J,52),_.go(z.signatureFlagProto_,52))&&_.SJ(J,52,M);return this};
_.P.setSize=function(M){var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,J.getSize(),z.signatureFlagProto_.getSize())&&J.setSize(M);return this};
_.P.setToken=function(M){M=M||void 0;var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,J.getToken(),z.signatureFlagProto_.getToken())&&J.setToken(M);return this};
_.P.JSC$19436_setWidth=function(M){var z=this.JSC$19434_parsedOptions_,J=z.valueProto_;xR(M,J.getWidth(),z.signatureFlagProto_.getWidth())&&_.$I(J,12,M);return this};
_.P.clearOptions=function(){Wvl(this,"");return this};
_.P.build=function(){this.JSC$19434_components_.length=0;var M=this.JSC$19434_parsedOptions_,z=M.valueProto_;M=M.signatureFlagProto_;t4(this,"s",z.getSize(),M.getSize());t4(this,"w",z.getWidth(),M.getWidth());jw(this,"c",_.go(z,2),_.go(M,2));jw(this,"d",_.go(z,3),_.go(M,3));t4(this,"h",z.getHeight(),M.getHeight());jw(this,"s",ht(z,33),ht(M,33));jw(this,"h",z.getHtml(),M.getHtml());jw(this,"p",_.go(z,19),_.go(M,19));jw(this,"pp",_.go(z,52),_.go(M,52));jw(this,"pf",_.go(z,67),_.go(M,67));jw(this,"n",
_.go(z,20),_.go(M,20));t4(this,"r",ym(z,26),ym(M,26));jw(this,"r",_.go(z,6),_.go(M,6));jw(this,"o",ht(z,27),ht(M,27));var J=_.me(z,7,_.v9);pl(this,"o",J,_.me(M,7,_.v9));J=_.me(z,29,_.v9);pl(this,"j",J,_.me(M,29,_.v9));t4(this,"x",ym(z,9),ym(M,9));t4(this,"y",ym(z,10),ym(M,10));t4(this,"z",ym(z,11),ym(M,11));jw(this,"g",_.go(z,14),_.go(M,14));t4(this,"e",ym(z,15),ym(M,15));pl(this,"f",_.o2(z,16),_.o2(M,16));jw(this,"k",ht(z,17),ht(M,17));jw(this,"u",ht(z,18),!0);jw(this,"ut",ht(z,45),!0);jw(this,"i",
ht(z,22),!0);jw(this,"a",ht(z,21),ht(M,21));jw(this,"b",_.go(z,23),_.go(M,23));t4(this,"b",ym(z,38),ym(M,38));t4(this,"c",ym(z,39),ym(M,39),16,8);pl(this,"q",_.o2(z,28),_.o2(M,28));jw(this,"fh",ht(z,30),ht(M,30));jw(this,"fv",ht(z,31),ht(M,31));jw(this,"fg",_.go(z,34),_.go(M,34));jw(this,"ci",ht(z,32),ht(M,32));pl(this,"t",z.getToken(),M.getToken());pl(this,"nt0",_.o2(z,36),_.o2(M,36));jw(this,"rw",_.go(z,35),_.go(M,35));jw(this,"rwu",_.go(z,41),_.go(M,41));jw(this,"rwa",_.go(z,64),_.go(M,64));jw(this,
"nw",_.go(z,48),_.go(M,48));jw(this,"rh",_.go(z,49),_.go(M,49));jw(this,"no",_.go(z,37),_.go(M,37));jw(this,"ns",ht(z,40),ht(M,40));t4(this,"k",ym(z,42),ym(M,42));t4(this,"p",ym(z,43),ym(M,43));t4(this,"l",ym(z,44),ym(M,44));t4(this,"v",ym(z,62),ym(M,62));jw(this,"nu",ht(z,46),ht(M,46));jw(this,"ft",ht(z,50),ht(M,50));jw(this,"cc",ht(z,51),ht(M,51));jw(this,"nd",ht(z,53),ht(M,53));jw(this,"ip",ht(z,54),ht(M,54));jw(this,"nc",ht(z,55),ht(M,55));t4(this,"a",ym(z,56),ym(M,56));jw(this,"rj",ht(z,57),
ht(M,57));jw(this,"rp",ht(z,58),ht(M,58));jw(this,"rg",ht(z,59),ht(M,59));jw(this,"pd",ht(z,60),ht(M,60));jw(this,"pa",ht(z,61),ht(M,61));t4(this,"m",ym(z,63),ym(M,63));t4(this,"vb",H1(z,68),H1(M,68));t4(this,"vl",H1(z,69),H1(M,69));jw(this,"lf",ht(z,65),ht(M,65));jw(this,"mv",ht(z,66),ht(M,66));jw(this,"id",ht(z,70),ht(M,70));t4(this,"ic",ym(z,71),!0);jw(this,"pg",_.go(z,72),_.go(M,72));jw(this,"mo",ht(z,73),ht(M,73));jw(this,"al",ht(z,74),ht(M,74));t4(this,"iv",H1(z,75),H1(M,75));t4(this,"pi",c1(z,
76),c1(M,76));t4(this,"ya",c1(z,77),c1(M,77));t4(this,"ro",c1(z,78),c1(M,78));t4(this,"fo",c1(z,79),c1(M,79));jw(this,"df",ht(z,80),ht(M,80));pl(this,"mm",_.o2(z,81),_.o2(M,81));jw(this,"sg",ht(z,82),ht(M,82));jw(this,"gd",ht(z,83),ht(M,83));jw(this,"fm",ht(z,84),ht(M,84));t4(this,"ba",ym(z,85),ym(M,85));t4(this,"br",ym(z,86),ym(M,86));t4(this,"bc",z.getBackgroundColor(),M.getBackgroundColor(),16,8);t4(this,"pc",ym(z,88),ym(M,88),16,8);t4(this,"sc",ym(z,89),ym(M,89),16,8);jw(this,"dv",ht(z,90),ht(M,
90));jw(this,"md",ht(z,91),ht(M,91));t4(this,"cp",ym(z,92),ym(M,92));jw(this,"sm",ht(z,93),ht(M,93));t4(this,"cv",ym(z,94),ym(M,94));jw(this,"ng",ht(z,95),ht(M,95));jw(this,"il",ht(z,96),ht(M,96));jw(this,"lo",ht(z,97),ht(M,97));jw(this,"vm",ht(z,98),ht(M,98));pl(this,"dc",_.o2(z,99),_.o2(M,99));jw(this,"rf",ht(z,100),ht(M,100));pl(this,"vf",_.o2(z,102),_.o2(M,102));jw(this,"ra",_.go(z,103),_.go(M,103));jw(this,"ckm",ht(z,104),ht(M,104));jw(this,"gm",ht(z,105),ht(M,105));jw(this,"ngm",ht(z,106),ht(M,
106));t4(this,"em",ym(z,107),ym(M,107));jw(this,"cr",ht(z,108),ht(M,108));t4(this,"sl",z.getStoryboardLevel(),M.getStoryboardLevel());t4(this,"sb",ym(z,110),ym(M,110));pl(this,"pt",_.o2(z,111),_.o2(M,111));pl(this,"gce",_.o2(z,112),_.o2(M,112));jw(this,"tm",ht(z,113),ht(M,113));jw(this,"ntm",ht(z,114),ht(M,114));t4(this,"mp",ym(z,115),ym(M,115));return this.JSC$19434_components_.join("-")};
var t4=function(M,z,J,R,D,N){if(J!=null){var Z=D==void 0||D!=10&&D!=16?10:D;J=Number(J).toString(Z);D=new b4w;D.append(Z==16?"0x":"");Z=D.append;N==void 0?N="":(N-=J.length,N=N<=0?"":(0,_.Y8p)("0",N));Z.call(D,N);D.append(J);VHw(M,z,D.toString(),!!Number(R))}},jw=function(M,z,J,R){J&&VHw(M,z,"",!!R)},pl=function(M,z,J,R){J&&VHw(M,z,String(J),!!Number(R))},VHw=function(M,z,J,R){R&&(z=z.charAt(0).toUpperCase()+z.substring(1));
M.JSC$19434_components_.push(z+J)};_.ZP(a7,Kpi);_.P=a7.prototype;_.P.JSC$19436_setCrop=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setCrop.call(this,M)};
_.P.JSC$19436_setHeight=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return a7.superClass_.JSC$19436_setHeight.call(this,M)};
_.P.JSC$19436_setImageCrop=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setImageCrop.call(this,M)};
_.P.JSC$19436_setCircleCrop=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setCircleCrop.call(this,M)};
_.P.setSize=function(M){_.E8(M)&&(M=Math.max(M.width,M.height));M=M==null||M<0?void 0:M;M!=null&&(this.JSC$19436_setWidth(),this.JSC$19436_setHeight());return a7.superClass_.setSize.call(this,M)};
_.P.JSC$19436_setSmartCrop=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setSmartCrop.call(this,M)};
_.P.JSC$19436_setSmartCropNoClip=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setSmartCropNoClip.call(this,M)};
_.P.JSC$19436_setSmartCropUseFace=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setSmartCropUseFace.call(this,M)};
_.P.setCenterCrop=function(M){M&&FU(this);return a7.superClass_.setCenterCrop.call(this,M)};
_.P.JSC$19436_setPad=function(M){M&&FU(this);return a7.superClass_.JSC$19436_setPad.call(this,M)};
_.P.JSC$19436_setWidth=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return a7.superClass_.JSC$19436_setWidth.call(this,M)};
var Eei=function(M){M.clearOptions();var z=M.JSC$19434_parsedOptions_,J=z.valueProto_;xR(!0,_.go(J,3),_.go(z.signatureFlagProto_,3))&&_.SJ(J,3,!0);return M},FU=function(M){M.setCenterCrop();
M.JSC$19436_setCircleCrop();M.JSC$19436_setCrop();M.JSC$19436_setImageCrop();M.JSC$19436_setPad();M.JSC$19436_setSmartCrop();M.JSC$19436_setSmartCropNoClip();M.JSC$19436_setSmartCropUseFace()};
a7.prototype.build=function(){var M=this.JSC$19434_parsedOptions_.valueProto_;ht(M,18)||ht(M,45)?M.getSize()||this.setSize(0):(M=this.JSC$19434_parsedOptions_.valueProto_,M.getSize()||M.getWidth()||M.getHeight()||(this.setSize(),this.JSC$19436_setHeight(),this.JSC$19436_setWidth(),FU(this)));return a7.superClass_.build.call(this)};var fFN=/^[^\/]*\/\//,YR=function(M,z){z=z===void 0?!1:z;this.original_=M;this.originalPrefix_="";(M=this.original_.match(fFN))&&M[0]?(this.originalPrefix_=M[0],M=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):M="http://"+this.original_;this.uri_=_.um(M,!0);this.isFreeformUrl_=z;this.JSC$19440_valid_=!0;this.obfuscated_=!1},Lvw=function(M,z){M.JSC$19442_pathPrefix_=M.JSC$19442_pathPrefix_?M.JSC$19442_pathPrefix_+("/"+z):z},mO=function(M){if(M.JSC$19442_components_==
void 0){var z=M.uri_.getPath().substring(1);
M.JSC$19442_pathPrefix_=null;if(M.isFreeformUrl_){M.JSC$19442_components_=[];if((z.match(/=/g)||[]).length>1)return M.JSC$19440_valid_=!1,M.JSC$19442_components_;var J=z.indexOf("=");J!=-1?(M.JSC$19442_components_.push(z.substr(0,J)),M.JSC$19442_components_.push(z.substr(J+1))):M.JSC$19442_components_.push(z);return M.JSC$19442_components_}M.JSC$19442_components_=z.split("/");z=M.JSC$19442_components_.length;z>2&&M.JSC$19442_components_[0]=="u"&&(Lvw(M,M.JSC$19442_components_[0]+"/"+M.JSC$19442_components_[1]),
M.JSC$19442_components_.shift(),M.JSC$19442_components_.shift(),z-=2);if(z==0||z==4||z>7)return M.JSC$19440_valid_=!1,M.JSC$19442_components_;if(z==2)Lvw(M,M.JSC$19442_components_[0]);else if(M.JSC$19442_components_[0]=="image")Lvw(M,M.JSC$19442_components_[0]);else if(z==7||z==3)return M.JSC$19440_valid_=!1,M.JSC$19442_components_;if(z<=3){M.obfuscated_=!0;z==3&&(Lvw(M,M.JSC$19442_components_[1]),M.JSC$19442_components_.shift(),--z);--z;J=M.JSC$19442_components_[z];var R=J.indexOf("=");R!=-1&&(M.JSC$19442_components_[z]=
J.substr(0,R),M.JSC$19442_components_.push(J.substr(R+1)))}}return M.JSC$19442_components_};
YR.prototype.isValid=function(){mO(this);return this.JSC$19440_valid_};
YR.prototype.isObfuscated=function(){mO(this);return this.obfuscated_};
var Abd=function(M){mO(M);return M.isFreeformUrl_},gI=function(M){mO(M);
M.JSC$19442_pathPrefix_==void 0&&(M.JSC$19442_pathPrefix_=null);return M.JSC$19442_pathPrefix_},iFm=function(M){switch(mO(M).length){case 7:return!0;
case 6:return gI(M)==null;case 5:return!1;case 3:return!0;case 2:return gI(M)==null;case 1:return!1;default:return!1}},sd=function(M,z){if(Abd(M))a:{switch(z){case 7:z=0;
break;case 4:if(!iFm(M)){M=null;break a}z=1;break;default:M=null;break a}M=mO(M)[z]}else if(M.isObfuscated())a:{var J=gI(M)!=null?1:0;switch(z){case 6:z=J;break;case 4:if(!iFm(M)){M=null;break a}z=1+J;break;default:M=null;break a}M=mO(M)[z]}else a:{J=gI(M)!=null?1:0;switch(z){case 0:z=J;break;case 1:z=1+J;break;case 2:z=2+J;break;case 3:z=3+J;break;case 4:if(!iFm(M)){M=null;break a}z=4+J;break;case 5:z=iFm(M)?1:0;z=4+J+z;break;default:M=null;break a}M=mO(M)[z]}return M};
YR.prototype.getOptions=function(){this.options_==void 0&&(this.options_=sd(this,4));return this.options_};var qhd=function(){};
qhd.prototype.parse=function(M,z){return new $vs(M,z===void 0?!1:z)};
var $vs=function(M,z){YR.call(this,M,z===void 0?!1:z)};
_.w($vs,YR);_.ZP(V2,a7);var u2t;V2.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
V2.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var M=V2.superClass_.build.call(this),z=[];gI(this.parsedImageUrl_)!=null&&z.push(gI(this.parsedImageUrl_));var J=Abd(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var R=this.parsedImageUrl_;R.obfuscatedData_==void 0&&(R.obfuscatedData_=sd(R,6));z.push(R.obfuscatedData_+(M?"="+M:""))}else if(J){R=z.push;var D=this.parsedImageUrl_;D.freeformUrlPath_===void 0&&(D.freeformUrlPath_=sd(D,
7));R.call(z,D.freeformUrlPath_);M&&z.push(M)}else R=z.push,D=this.parsedImageUrl_,D.obfuscatedGaiaId_==void 0&&(D.obfuscatedGaiaId_=sd(D,0)),R.call(z,D.obfuscatedGaiaId_),R=z.push,D=this.parsedImageUrl_,D.photoId_==void 0&&(D.photoId_=sd(D,1)),R.call(z,D.photoId_),R=z.push,D=this.parsedImageUrl_,D.imageVersion_==void 0&&(D.imageVersion_=sd(D,2)),R.call(z,D.imageVersion_),R=z.push,D=this.parsedImageUrl_,D.signature_==void 0&&(D.signature_=sd(D,3)),R.call(z,D.signature_),M&&z.push(M),M=z.push,R=this.parsedImageUrl_,
R.filename_==void 0&&(R.filename_=sd(R,5)),M.call(z,R.filename_);z=J?z.join("="):z.join("/");z=_.um(this.protocolPrefix_+this.JSC$19448_domain_+"/"+z+(this.JSC$19448_query_?"?"+this.JSC$19448_query_:"")).toString();z.startsWith("%3a//")&&(z=z.replace("%3a//","://"));return z};var CFt=_.Ca(["viewBox"]),bFu=_.Ca(["width"]),rbN=_.Ca(["height"]),Mll=_.Ca(["fill"]),z_w=_.Ca(["id"]),J$m=_.Ca(["x"]),R_w=_.Ca(["y"]);a8G.prototype.getLength=function(){return this.parsedData.length};
a8G.prototype.write=function(M){for(var z=0,J=this.parsedData.length;z<J;z++)M.put(this.parsedData[z],8)};
var Cdu=function(M,z){var J=new a8G(z);M.dataList.push(J);J=M.errorCorrectLevel;var R=1,D=encodeURI(z).toString().replace(/%[0-9a-fA-F]{2}/g,"a");z=D.length+(D.length!=z?3:0);D=0;for(var N=nl.length;D<=N;D++){var Z=0;switch(J){case 1:Z=nl[D][0];break;case 0:Z=nl[D][1];break;case 3:Z=nl[D][2];break;case 2:Z=nl[D][3]}if(z<=Z)break;else R++}if(R>nl.length)throw Error("xk");M.typeNumber=R;M.dataCache=null};
VgN.prototype.isDark=function(M,z){if(M<0||this.moduleCount<=M||z<0||this.moduleCount<=z)throw Error("pk`"+M+"`"+z);return this.modules[M][z]};
for(var bDv=function(M,z,J){M.moduleCount=M.typeNumber*4+17;M.modules=Array(M.moduleCount);for(var R=0;R<M.moduleCount;R++){M.modules[R]=Array(M.moduleCount);for(var D=0;D<M.moduleCount;D++)M.modules[R][D]=null}Dhw(M,0,0);Dhw(M,M.moduleCount-7,0);Dhw(M,0,M.moduleCount-7);R=Ndd[M.typeNumber-1];for(D=0;D<R.length;D++)for(var N=0;N<R.length;N++){var Z=R[D],B=R[N];if(M.modules[Z][B]==null)for(var O=-2;O<=2;O++)for(var X=-2;X<=2;X++)M.modules[Z+O][B+X]=O==-2||O==2||X==-2||X==2||O==0&&X==0?!0:!1}for(R=
8;R<M.moduleCount-8;R++)M.modules[R][6]==null&&(M.modules[R][6]=R%2==0);for(R=8;R<M.moduleCount-8;R++)M.modules[6][R]==null&&(M.modules[6][R]=R%2==0);R=M.errorCorrectLevel<<3|J;for(D=R<<10;h4(D)-h4(1335)>=0;)D^=1335<<h4(D)-h4(1335);R=(R<<10|D)^21522;for(D=0;D<15;D++)N=!z&&(R>>D&1)==1,D<6?M.modules[D][8]=N:D<8?M.modules[D+1][8]=N:M.modules[M.moduleCount-15+D][8]=N;for(D=0;D<15;D++)N=!z&&(R>>D&1)==1,D<8?M.modules[8][M.moduleCount-D-1]=N:D<9?M.modules[8][15-D-1+1]=N:M.modules[8][15-D-1]=N;M.modules[M.moduleCount-
8][8]=!z;if(M.typeNumber>=7){R=M.typeNumber;for(D=R<<12;h4(D)-h4(7973)>=0;)D^=7973<<h4(D)-h4(7973);R=R<<12|D;for(D=0;D<18;D++)N=!z&&(R>>D&1)==1,M.modules[Math.floor(D/3)][D%3+M.moduleCount-8-3]=N;for(D=0;D<18;D++)N=!z&&(R>>D&1)==1,M.modules[D%3+M.moduleCount-8-3][Math.floor(D/3)]=N}if(M.dataCache==null){D=M.typeNumber;N=M.dataList;z=M.errorCorrectLevel;R=PMu(D,z);if(R==void 0)throw Error("wk`"+D+"`"+z);Z=R.length/3;z=[];for(B=0;B<Z;B++){O=R[B*3];X=R[B*3+1];for(var l=R[B*3+2],e=0;e<O;e++)z.push(new Ef5(X,
l))}R=new f8v;for(Z=0;Z<N.length;Z++)B=N[Z],R.put(B.mode,4),R.put(B.getLength(),Sqw(B.mode,D)),B.write(R);for(Z=D=0;Z<z.length;Z++)D+=z[Z].dataCount;if(R.length>D*8)throw Error("qk`"+R.length+"`"+D*8);for(R.length+4<=D*8&&R.put(0,4);R.length%8!=0;)ZC5(R,!1);for(;!(R.length>=D*8);){R.put(236,8);if(R.length>=D*8)break;R.put(17,8)}N=D=X=0;Z=Array(z.length);B=Array(z.length);for(O=0;O<z.length;O++){e=z[O].dataCount;var Q=z[O].totalCount-e;D=Math.max(D,e);N=Math.max(N,Q);Z[O]=Array(e);for(l=0;l<Z[O].length;l++)Z[O][l]=
255&R.buffer[l+X];X+=e;l=Q;e=new E0([1],0);for(Q=0;Q<l;Q++)e=e.multiply(new E0([1,kai(Q)],0));l=e;e=(new E0(Z[O],l.getLength()-1)).mod(l);B[O]=Array(l.getLength()-1);for(l=0;l<B[O].length;l++)Q=l+e.getLength()-B[O].length,B[O][l]=Q>=0?e.get(Q):0}for(l=R=0;l<z.length;l++)R+=z[l].totalCount;R=Array(R);for(l=X=0;l<D;l++)for(O=0;O<z.length;O++)l<Z[O].length&&(R[X++]=Z[O][l]);for(l=0;l<N;l++)for(O=0;O<z.length;O++)l<B[O].length&&(R[X++]=B[O][l]);M.dataCache=R}z=M.dataCache;R=-1;D=M.moduleCount-1;N=7;Z=
0;for(B=M.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(O=0;O<2;O++)M.modules[D][B-O]==null&&(X=!1,Z<z.length&&(X=(z[Z]>>>N&1)==1),Bdw(J,D,B-O)&&(X=!X),M.modules[D][B-O]=X,N--,N==-1&&(Z++,N=7));D+=R;if(D<0||M.moduleCount<=D){D-=R;R=-R;break}}},Dhw=function(M,z,J){for(var R=-1;R<=7;R++)if(!(z+R<=-1||M.moduleCount<=z+R))for(var D=-1;D<=7;D++)J+D<=-1||M.moduleCount<=J+D||(M.modules[z+R][J+D]=0<=R&&R<=6&&(D==0||D==6)||0<=D&&D<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=D&&D<=4?!0:!1)},rNw=function(M){for(var z=0,
J=0,R=0;R<8;R++){bDv(M,!0,R);
var D=M;for(var N=D.moduleCount,Z=0,B=0;B<N;B++)for(var O=0;O<N;O++){for(var X=0,l=D.isDark(B,O),e=-1;e<=1;e++)if(!(B+e<0||N<=B+e))for(var Q=-1;Q<=1;Q++)O+Q<0||N<=O+Q||(e!=0||Q!=0)&&l==D.isDark(B+e,O+Q)&&X++;X>5&&(Z+=3+X-5)}for(B=0;B<N-1;B++)for(O=0;O<N-1;O++)if(X=0,D.isDark(B,O)&&X++,D.isDark(B+1,O)&&X++,D.isDark(B,O+1)&&X++,D.isDark(B+1,O+1)&&X++,X==0||X==4)Z+=3;for(B=0;B<N;B++)for(O=0;O<N-6;O++)D.isDark(B,O)&&!D.isDark(B,O+1)&&D.isDark(B,O+2)&&D.isDark(B,O+3)&&D.isDark(B,O+4)&&!D.isDark(B,O+5)&&
D.isDark(B,O+6)&&(Z+=40);for(O=0;O<N;O++)for(B=0;B<N-6;B++)D.isDark(B,O)&&!D.isDark(B+1,O)&&D.isDark(B+2,O)&&D.isDark(B+3,O)&&D.isDark(B+4,O)&&!D.isDark(B+5,O)&&D.isDark(B+6,O)&&(Z+=40);for(O=X=0;O<N;O++)for(B=0;B<N;B++)D.isDark(B,O)&&X++;D=Z+=Math.abs(100*X/N/N-50)/5*10;if(R==0||z>D)z=D,J=R}return J},Ndd=[[],
[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]],h4=function(M){for(var z=0;M!=0;)z++,M>>>=1;return z},Bdw=function(M,z,J){switch(M){case 0:return(z+J)%2==0;
case 1:return z%2==0;case 2:return J%3==0;case 3:return(z+J)%3==0;case 4:return(Math.floor(z/2)+Math.floor(J/3))%2==0;case 5:return z*J%2+z*J%3==0;case 6:return(z*J%2+z*J%3)%2==0;case 7:return(z*J%3+(z+J)%2)%2==0;default:throw Error("rk`"+M);}},Sqw=function(M,z){if(1<=z&&z<10)switch(M){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("sk`"+M);}else if(z<27)switch(M){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("sk`"+M);}else if(z<41)switch(M){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("sk`"+M);}else throw Error("tk`"+z);},yR=function(M){if(M<1)throw Error("uk`"+M);
return OCw[M]},kai=function(M){for(;M<0;)M+=255;
for(;M>=256;)M-=255;return H_[M]},H_=Array(256),OCw=Array(256),Tdu=0;Tdu<8;Tdu++)H_[Tdu]=1<<Tdu;
for(var c_=8;c_<256;c_++)H_[c_]=H_[c_-4]^H_[c_-5]^H_[c_-6]^H_[c_-8];for(var IWs=0;IWs<255;IWs++)OCw[H_[IWs]]=IWs;E0.prototype.get=function(M){return this.num[M]};
E0.prototype.getLength=function(){return this.num.length};
E0.prototype.multiply=function(M){for(var z=Array(this.getLength()+M.getLength()-1),J=0;J<this.getLength();J++)for(var R=0;R<M.getLength();R++)z[J+R]^=kai(yR(this.get(J))+yR(M.get(R)));return new E0(z,0)};
E0.prototype.mod=function(M){if(this.getLength()-M.getLength()<0)return this;for(var z=yR(this.get(0))-yR(M.get(0)),J=Array(this.getLength()),R=0;R<this.getLength();R++)J[R]=this.get(R);for(R=0;R<M.getLength();R++)J[R]^=kai(yR(M.get(R))+z);return(new E0(J,0)).mod(M)};
var oDc=[[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]],PMu=function(M,z){switch(z){case 1:return oDc[(M-1)*4];case 0:return oDc[(M-1)*4+1];case 3:return oDc[(M-1)*4+2];case 2:return oDc[(M-1)*4+3]}};
f8v.prototype.get=function(M){return(this.buffer[Math.floor(M/8)]>>>7-M%8&1)==1};
f8v.prototype.put=function(M,z){for(var J=0;J<z;J++)ZC5(this,(M>>>z-J-1&1)==1)};
var ZC5=function(M,z){var J=Math.floor(M.length/8);M.buffer.length<=J&&M.buffer.push(0);z&&(M.buffer[J]|=128>>>M.length%8);M.length++},nl=[[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]],iDd=function(){var M=function(z,J){this.JSC$19468__el=z;this.JSC$19468__htOption=J};
M.prototype.draw=function(z){function J(l,e){l=document.createElementNS("http://www.w3.org/2000/svg",l);for(var Q in e)e.hasOwnProperty(Q)&&(Q==="href"?_.Ktw(l,e[Q]):_.bs([_.R$(CFt),_.R$(bFu),_.R$(rbN),_.R$(Mll),_.R$(z_w),_.R$(J$m),_.R$(R_w)],l,Q,e[Q]));return l}
var R=this.JSC$19468__htOption,D=this.JSC$19468__el,N=z.moduleCount;this.clear();var Z=J("svg",{viewBox:"0 0 "+String(N)+" "+String(N),width:"100%",height:"100%",fill:R.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});D.appendChild(Z);Z.appendChild(J("rect",{fill:R.colorLight,width:"100%",height:"100%"}));Z.appendChild(J("rect",{fill:R.colorDark,width:"1",height:"1",id:"template"}));for(var B=0;B<N;B++)for(var O=0;O<N;O++)if(z.isDark(B,O)){var X=J("use",{x:String(B),y:String(O),href:"#template"});
Z.appendChild(X)}};
M.prototype.clear=function(){for(;this.JSC$19468__el.hasChildNodes();)this.JSC$19468__el.removeChild(this.JSC$19468__el.lastChild)};
return M}(),ANv=document.documentElement.tagName.toLowerCase()==="svg"?iDd:typeof CanvasRenderingContext2D!="undefined"?function(){var M=function(z,J){this._bIsPainted=!1;
Lpu();this.JSC$19468__htOption=J;this._elCanvas=document.createElement("canvas");this._elCanvas.width=J.width;this._elCanvas.height=J.height;z.appendChild(this._elCanvas);this.JSC$19468__el=z;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$19468__el.appendChild(this._elImage);this._bSupportDataURI=null};
M.prototype._onMakeImage=function(){var z=this._elCanvas.toDataURL("image/png");this._elImage.src=z;this._elImage.style.display="block";this._elCanvas.style.display="none"};
M.prototype._safeSetDataURI=function(z,J){var R=this;R._fFail=J;R._fSuccess=z;R._bSupportDataURI===null?(z=_.lm("IMG"),J=function(){R._bSupportDataURI=!1;R._fFail&&R._fFail.call(R)},z.onabort=J,z.onerror=J,z.onload=function(){R._bSupportDataURI=!0;
R._fSuccess&&R._fSuccess.call(R)},z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):R._bSupportDataURI===!0&&R._fSuccess?R._fSuccess.call(R):R._bSupportDataURI===!1&&R._fFail&&R._fFail.call(R)};
M.prototype.draw=function(z){var J=this._oContext,R=this.JSC$19468__htOption,D=z.moduleCount,N=R.width/D,Z=R.height/D,B=Math.round(N),O=Math.round(Z);this._elImage.style.display="none";this.clear();for(var X=0;X<D;X++)for(var l=0;l<D;l++){var e=z.isDark(X,l),Q=l*N,v=X*Z;J.strokeStyle=e?R.colorDark:R.colorLight;J.lineWidth=1;J.fillStyle=e?R.colorDark:R.colorLight;J.fillRect(Q,v,N,Z);J.strokeRect(Math.floor(Q)+.5,Math.floor(v)+.5,B,O);J.strokeRect(Math.ceil(Q)-.5,Math.ceil(v)-.5,B,O)}this._bIsPainted=
!0};
M.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
M.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
M.prototype.round=function(z){return z?Math.floor(z*1E3)/1E3:z};
return M}():function(){var M=function(z,J){this.JSC$19468__el=z;
this.JSC$19468__htOption=J};
M.prototype.draw=function(z){for(var J=this.JSC$19468__htOption,R=this.JSC$19468__el,D=z.moduleCount,N=Math.floor(J.width/D),Z=Math.floor(J.height/D),B=['<table style="border:0;border-collapse:collapse;">'],O=0;O<D;O++){B.push("<tr>");for(var X=0;X<D;X++)B.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+N+"px;height:"+Z+"px;background-color:"+(z.isDark(O,X)?J.colorDark:J.colorLight)+';"></td>');B.push("</tr>")}B.push("</table>");z=B.join("");z=_.Qkt(_.vpV,z);_.C3(R,z);
z=R.childNodes[0];D=(J.width-z.offsetWidth)/2;N=(J.height-z.offsetHeight)/2;D>0&&N>0&&(z.style.margin=N+"px "+D+"px")};
M.prototype.clear=function(){this.JSC$19468__el.textContent=""};
return M}();
Mem.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19471__android||this.JSC$19471__android>=3)&&this._oDrawing.makeImage()};
Mem.prototype.clear=function(){this._oDrawing.clear()};
_.R3.QRCode=Mem;var Xhd={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var dI=function(){};
dI.prototype.stringify=function(M){return _.R3.JSON.stringify(M,void 0)};
dI.prototype.parse=function(M){return _.R3.JSON.parse(M,void 0)};var lWw=function(){_.vR.call(this,"z")};
_.ZP(lWw,_.vR);var e_5=function(){_.vR.call(this,"y")};
_.ZP(e_5,_.vR);var Q_s=null,Uhu=function(){return Q_s=Q_s||new _.jB},vDs=function(M){_.vR.call(this,"serverreachability",M)};
_.ZP(vDs,_.vR);var Kl=function(M){var z=Uhu();z.dispatchEvent(new vDs(z,M))},Gam=function(M,z){_.vR.call(this,"statevent",M);
this.stat=z};
_.ZP(Gam,_.vR);var $R=function(M){var z=Uhu();z.dispatchEvent(new Gam(z,M))},whm=function(M,z,J,R){_.vR.call(this,"timingevent",M);
this.size=z;this.rtt=J;this.retries=R};
_.ZP(whm,_.vR);var xhc=function(M,z,J){var R=Uhu();R.dispatchEvent(new whm(R,M,z,J))},ub=function(M,z){if(typeof M!=="function")throw Error("yk");
return _.R3.setTimeout(function(){M()},z)};var qF=function(){this.redactEnabled_=!0};
qF.prototype.disableRedact=function(){this.redactEnabled_=!1};
var j_m=function(M,z,J,R,D,N){M.info(function(){if(M.redactEnabled_)if(N){var Z="";for(var B=N.split("&"),O=0;O<B.length;O++){var X=B[O].split("=");if(X.length>1){var l=X[0];X=X[1];var e=l.split("_");Z=e.length>=2&&e[1]=="type"?Z+(l+"="+X+"&"):Z+(l+"=redacted&")}}}else Z=null;else Z=N;return"XMLHTTP REQ ("+R+") [attempt "+D+"]: "+z+"\n"+J+"\n"+Z})},phw=function(M,z,J,R,D,N,Z){M.info(function(){return"XMLHTTP RESP ("+R+") [ attempt "+D+"]: "+z+"\n"+J+"\n"+N+" "+Z})},W_=function(M,z,J,R){M.info(function(){return"XMLHTTP TEXT ("+
z+"): "+F8m(M,J)+(R?" "+R:"")})},Yqu=function(M,z){M.info(function(){return"TIMEOUT: "+z})};
qF.prototype.debug=function(){};
qF.prototype.info=function(){};
qF.prototype.warning=function(){};
var F8m=function(M,z){if(!M.redactEnabled_)return z;if(!z)return null;try{var J=JSON.parse(z);if(J)for(var R=0;R<J.length;R++)if(Array.isArray(J[R])){var D=J[R];if(!(D.length<2)){var N=D[1];if(Array.isArray(N)&&!(N.length<1)){var Z=N[0];if(Z!="noop"&&Z!="stop"&&Z!="close")for(var B=1;B<N.length;B++)N[B]=""}}}return(0,_.ns)(J)}catch(O){return M.debug("Exception parsing expected JS array - probably was not JS"),z}};var aK=function(M,z,J,R,D){this.JSC$19493_channel_=M;this.JSC$19493_channelDebug_=z;this.sid_=J;this.JSC$19493_rid_=R;this.JSC$19493_retryId_=D||1;this.JSC$19493_eventHandler_=new _.Ps(this);this.timeout_=45E3;this.JSC$19493_extraHeaders_=null;this.JSC$19493_successful_=!1;this.JSC$19493_postData_=this.JSC$19493_requestUri_=this.JSC$19493_baseUri_=this.JSC$19493_type_=this.JSC$19493_requestStartTime_=this.JSC$19493_watchDogTimeoutTime_=this.JSC$19493_watchDogTimerId_=null;this.JSC$19493_pendingMessages_=
[];this.JSC$19493_xmlHttp_=null;this.JSC$19493_xmlHttpChunkStart_=0;this.JSC$19493_lastError_=this.JSC$19493_verb_=null;this.JSC$19493_lastStatusCode_=-1;this.JSC$19493_cancelled_=!1;this.JSC$19493_readyStateChangeThrottleMs_=0;this.JSC$19493_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new mh5},mh5=function(){this.JSC$19495_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},gDw=function(M,z){switch(M){case 0:return"Non-200 return code ("+z+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},s_G={},nDu={};
aK.prototype.setTimeout=function(M){this.timeout_=M};
var y$u=function(M,z,J){M.JSC$19493_type_=1;M.JSC$19493_baseUri_=_.T5(z.clone());M.JSC$19493_postData_=J;M.decodeChunks_=!0;h_w(M,null)},h_w=function(M,z){M.JSC$19493_requestStartTime_=Date.now();
HCG(M);M.JSC$19493_requestUri_=M.JSC$19493_baseUri_.clone();FW(M.JSC$19493_requestUri_,"t",M.JSC$19493_retryId_);M.JSC$19493_xmlHttpChunkStart_=0;var J=M.JSC$19493_channel_.JSC$19512_supportsCrossDomainXhrs_;M.fetchResponseState_=new mh5;M.JSC$19493_xmlHttp_=c$w(M.JSC$19493_channel_,J?z:null,!M.JSC$19493_postData_);M.JSC$19493_readyStateChangeThrottleMs_>0&&(M.JSC$19493_readyStateChangeThrottle_=new _.A_((0,_.xF)(M.JSC$19497_xmlHttpHandler_,M,M.JSC$19493_xmlHttp_),M.JSC$19493_readyStateChangeThrottleMs_));
M.JSC$19493_eventHandler_.listen(M.JSC$19493_xmlHttp_,"readystatechange",M.JSC$19497_readyStateChangeHandler_);z=M.JSC$19493_extraHeaders_?_.gu.clone(M.JSC$19493_extraHeaders_):{};M.JSC$19493_postData_?(M.JSC$19493_verb_||(M.JSC$19493_verb_="POST"),z["Content-Type"]="application/x-www-form-urlencoded",M.JSC$19493_xmlHttp_.send(M.JSC$19493_requestUri_,M.JSC$19493_verb_,M.JSC$19493_postData_,z)):(M.JSC$19493_verb_="GET",M.JSC$19493_xmlHttp_.send(M.JSC$19493_requestUri_,M.JSC$19493_verb_,null,z));Kl(1);
j_m(M.JSC$19493_channelDebug_,M.JSC$19493_verb_,M.JSC$19493_requestUri_,M.JSC$19493_rid_,M.JSC$19493_retryId_,M.JSC$19493_postData_)};
aK.prototype.JSC$19497_readyStateChangeHandler_=function(M){M=M.target;var z=this.JSC$19493_readyStateChangeThrottle_;z&&_.yB(M)==3?(this.JSC$19493_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$19497_xmlHttpHandler_(M)};
aK.prototype.JSC$19497_xmlHttpHandler_=function(M){try{M==this.JSC$19493_xmlHttp_?dht(this):this.JSC$19493_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(z){this.JSC$19493_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),K85(this)}finally{}};
var dht=function(M){var z=_.yB(M.JSC$19493_xmlHttp_),J=M.JSC$19493_xmlHttp_.JSC$9763_lastErrorCode_,R=M.JSC$19493_xmlHttp_.getStatus();if(!(z<3||z==3&&!K85(M))){M.JSC$19493_cancelled_||z!=4||J==7||(J==8||R<=0?Kl(3):Kl(2));$hl(M);var D=M.JSC$19493_xmlHttp_.getStatus();M.JSC$19493_lastStatusCode_=D;J=uMt(M);K85(M)||M.JSC$19493_channelDebug_.debug(function(){return"No response text for uri "+M.JSC$19493_requestUri_+" status "+D});
M.JSC$19493_successful_=D==200;phw(M.JSC$19493_channelDebug_,M.JSC$19493_verb_,M.JSC$19493_requestUri_,M.JSC$19493_rid_,M.JSC$19493_retryId_,z,D);if(M.JSC$19493_successful_){if(M.decodeInitialResponse_&&!M.initialResponseDecoded_)if(R=qqt(M))W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,R,"Initial handshake response via X-HTTP-Initial-Response"),M.initialResponseDecoded_=!0,W8l(M,R);else{M.JSC$19493_successful_=!1;M.JSC$19493_lastError_=3;$R(12);M.JSC$19493_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
M.JSC$19493_rid_+")");VR(M);Ed(M);return}M.decodeChunks_?aWl(M,z,J):(W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,J,null),W8l(M,J));z==4&&VR(M);M.JSC$19493_successful_&&!M.JSC$19493_cancelled_&&(z==4?Vlm(M.JSC$19493_channel_,M):(M.JSC$19493_successful_=!1,HCG(M)))}else U6v(M.JSC$19493_xmlHttp_),D==400&&J.indexOf("Unknown SID")>0?(M.JSC$19493_lastError_=3,$R(12),M.JSC$19493_channelDebug_.warning("XMLHTTP Unknown SID ("+M.JSC$19493_rid_+")")):(M.JSC$19493_lastError_=0,$R(13),M.JSC$19493_channelDebug_.warning("XMLHTTP Bad status "+
D+" ("+M.JSC$19493_rid_+")")),VR(M),Ed(M)}},qqt=function(M){return M.JSC$19493_xmlHttp_&&(M=y2(M.JSC$19493_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ko(M)?M:null},uMt=function(M){if(!EDu(M))return M.JSC$19493_xmlHttp_.getResponseText();
var z=M.JSC$19493_xmlHttp_.getResponse();if(z==="")return"";var J="",R=z.length,D=_.yB(M.JSC$19493_xmlHttp_)==4;if(!M.fetchResponseState_.JSC$19495_textDecoder){if(typeof TextDecoder==="undefined")return VR(M),Ed(M),"";M.fetchResponseState_.JSC$19495_textDecoder=new _.R3.TextDecoder}for(var N=0;N<R;N++)M.fetchResponseState_.responseArrivedForFetch=!0,J+=M.fetchResponseState_.JSC$19495_textDecoder.decode(z[N],{stream:!(D&&N==R-1)});z.length=0;M.fetchResponseState_.responseBuffer+=J;M.JSC$19493_xmlHttpChunkStart_=
0;return M.fetchResponseState_.responseBuffer},K85=function(M){return M.JSC$19493_xmlHttp_?M.fetchResponseState_.responseArrivedForFetch?!0:!(!M.JSC$19493_xmlHttp_.getResponseText()&&!M.JSC$19493_xmlHttp_.getResponse()):!1},EDu=function(M){return M.JSC$19493_xmlHttp_?M.JSC$19493_verb_=="GET"&&M.JSC$19493_type_!=2&&M.JSC$19493_channel_.usesFetchStreams_:!1},aWl=function(M,z,J){for(var R=!0,D;!M.JSC$19493_cancelled_&&M.JSC$19493_xmlHttpChunkStart_<J.length;)if(D=fWw(M,J),D==nDu){z==4&&(M.JSC$19493_lastError_=
4,$R(14),R=!1);
W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,null,"[Incomplete Response]");break}else if(D==s_G){M.JSC$19493_lastError_=4;$R(15);W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,J,"[Invalid Chunk]");R=!1;break}else W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,D,null),W8l(M,D);EDu(M)&&M.JSC$19493_xmlHttpChunkStart_!=0&&(M.fetchResponseState_.responseBuffer=M.fetchResponseState_.responseBuffer.slice(M.JSC$19493_xmlHttpChunkStart_),M.JSC$19493_xmlHttpChunkStart_=0);z!=4||J.length!=0||M.fetchResponseState_.responseArrivedForFetch||
(M.JSC$19493_lastError_=1,$R(16),R=!1);M.JSC$19493_successful_=M.JSC$19493_successful_&&R;R?J.length>0&&!M.firstByteReceived_&&(M.firstByteReceived_=!0,z=M.JSC$19493_channel_,z.JSC$19512_backChannelRequest_==M&&z.detectBufferingProxy_&&!z.bpDetectionDone_&&(z.JSC$19512_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+J.length),L8G(z),z.bpDetectionDone_=!0,$R(11))):(W_(M.JSC$19493_channelDebug_,M.JSC$19493_rid_,J,"[Invalid Chunked Response]"),VR(M),Ed(M))},fWw=function(M,z){var J=
M.JSC$19493_xmlHttpChunkStart_,R=z.indexOf("\n",J);
if(R==-1)return nDu;J=Number(z.substring(J,R));if(isNaN(J))return s_G;R+=1;if(R+J>z.length)return nDu;z=z.slice(R,R+J);M.JSC$19493_xmlHttpChunkStart_=R+J;return z};
aK.prototype.cancel=function(){this.JSC$19493_cancelled_=!0;VR(this)};
var HCG=function(M){M.JSC$19493_watchDogTimeoutTime_=Date.now()+M.timeout_;A$N(M,M.timeout_)},A$N=function(M,z){if(M.JSC$19493_watchDogTimerId_!=null)throw Error("zk");
M.JSC$19493_watchDogTimerId_=ub((0,_.xF)(M.JSC$19497_onWatchDogTimeout_,M),z)},$hl=function(M){M.JSC$19493_watchDogTimerId_&&(_.R3.clearTimeout(M.JSC$19493_watchDogTimerId_),M.JSC$19493_watchDogTimerId_=null)};
aK.prototype.JSC$19497_onWatchDogTimeout_=function(){this.JSC$19493_watchDogTimerId_=null;var M=Date.now();M-this.JSC$19493_watchDogTimeoutTime_>=0?(Yqu(this.JSC$19493_channelDebug_,this.JSC$19493_requestUri_),this.JSC$19493_type_!=2&&(Kl(3),$R(17)),VR(this),this.JSC$19493_lastError_=2,Ed(this)):(this.JSC$19493_channelDebug_.warning("WatchDog timer called too early"),A$N(this,this.JSC$19493_watchDogTimeoutTime_-M))};
var Ed=function(M){M.JSC$19493_channel_.state_==0||M.JSC$19493_cancelled_||Vlm(M.JSC$19493_channel_,M)},VR=function(M){$hl(M);
_.bv(M.JSC$19493_readyStateChangeThrottle_);M.JSC$19493_readyStateChangeThrottle_=null;M.JSC$19493_eventHandler_.removeAll();if(M.JSC$19493_xmlHttp_){var z=M.JSC$19493_xmlHttp_;M.JSC$19493_xmlHttp_=null;z.abort();z.dispose()}};
aK.prototype.getLastError=function(){return this.JSC$19493_lastError_};
var W8l=function(M,z){try{var J=M.JSC$19493_channel_;if(J.state_!=0&&(J.JSC$19512_backChannelRequest_==M||iCl(J.forwardChannelRequestPool_,M)))if(!M.initialResponseDecoded_&&iCl(J.forwardChannelRequestPool_,M)&&J.state_==3){try{var R=J.wireCodec_.JSC$19507_parser_.parse(z)}catch(B){R=null}if(Array.isArray(R)&&R.length==3){z=R;if(z[0]==0)a:if(J.JSC$19512_channelDebug_.debug("Server claims our backchannel is missing."),J.JSC$19512_backChannelTimerId_)J.JSC$19512_channelDebug_.debug("But we are currently starting the request.");
else{if(J.JSC$19512_backChannelRequest_)if(J.JSC$19512_backChannelRequest_.JSC$19493_requestStartTime_+3E3<M.JSC$19493_requestStartTime_)CMw(J),bCN(J);else break a;else J.JSC$19512_channelDebug_.warning("We do not have a BackChannel established");r$w(J);$R(18)}else{J.JSC$19512_lastPostResponseArrayId_=z[1];var D=J.JSC$19512_lastPostResponseArrayId_-J.JSC$19512_lastArrayId_;if(0<D){var N=z[2];J.JSC$19512_channelDebug_.debug(N+" bytes (in "+D+" arrays) are outstanding on the BackChannel");N<37500&&
J.enableStreaming_&&J.JSC$19512_backChannelRetryCount_==0&&!J.JSC$19512_deadBackChannelTimerId_&&(J.JSC$19512_deadBackChannelTimerId_=ub((0,_.xF)(J.JSC$19514_onBackChannelDead_,J),6E3))}}if(MRw(J.forwardChannelRequestPool_)<=1&&J.forwardChannelFlushedCallback_){try{J.forwardChannelFlushedCallback_()}catch(B){}J.forwardChannelFlushedCallback_=void 0}}else J.JSC$19512_channelDebug_.debug("Bad POST response data returned"),fl(J,11)}else if((M.initialResponseDecoded_||J.JSC$19512_backChannelRequest_==
M)&&CMw(J),!_.ko(z)){var Z=J.wireCodec_.JSC$19507_parser_.parse(z);J.onInput_(Z,M)}Kl(4)}catch(B){}};var zTu=function(M,z){this.JSC$19500_mapId=M;this.map=z;this.context=null};var Jnd=function(M){this.maxPoolSizeConfigured_=M||10;_.R3.PerformanceNavigationTiming?(M=_.R3.performance.getEntriesByType("navigation"),M=M.length>0&&(M[0].nextHopProtocol=="hq"||M[0].nextHopProtocol=="h2")):M=!!(_.R3.chrome&&_.R3.chrome.loadTimes&&_.R3.chrome.loadTimes()&&_.R3.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19503_maxSize_=M?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19503_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19503_request_=null;this.JSC$19503_pendingMessages_=
[]},RTl=function(M){return M.JSC$19503_request_?!0:M.requestPool_?M.requestPool_.size>=M.JSC$19503_maxSize_:!1},MRw=function(M){return M.JSC$19503_request_?1:M.requestPool_?M.requestPool_.size:0},iCl=function(M,z){return M.JSC$19503_request_?M.JSC$19503_request_==z:M.requestPool_?M.requestPool_.has(z):!1},DPs=function(M,z){M.requestPool_?M.requestPool_.add(z):M.JSC$19503_request_=z},NJi=function(M,z){M.JSC$19503_request_&&M.JSC$19503_request_==z?M.JSC$19503_request_=null:M.requestPool_&&M.requestPool_.has(z)&&
M.requestPool_.delete(z)};
Jnd.prototype.cancel=function(){this.JSC$19503_pendingMessages_=PZl(this);if(this.JSC$19503_request_)this.JSC$19503_request_.cancel(),this.JSC$19503_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var M=_.S(this.requestPool_.values()),z=M.next();!z.done;z=M.next())z.value.cancel();this.requestPool_.clear()}};
var PZl=function(M){if(M.JSC$19503_request_!=null)return M.JSC$19503_pendingMessages_.concat(M.JSC$19503_request_.JSC$19493_pendingMessages_);if(M.requestPool_!=null&&M.requestPool_.size!==0){var z=M.JSC$19503_pendingMessages_;M=_.S(M.requestPool_.values());for(var J=M.next();!J.done;J=M.next())z=z.concat(J.value.JSC$19493_pendingMessages_);return z}return _.uG(M.JSC$19503_pendingMessages_)},S_t=function(M,z){M.JSC$19503_pendingMessages_=M.JSC$19503_pendingMessages_.concat(z)};var ZRw=function(M,z){var J=new qF;J.debug("TestLoadImage: loading "+M);if(_.R3.Image){var R=new Image;R.onload=_.Uf(Ll,J,"TestLoadImage: loaded",!0,z,R);R.onerror=_.Uf(Ll,J,"TestLoadImage: error",!1,z,R);R.onabort=_.Uf(Ll,J,"TestLoadImage: abort",!1,z,R);R.ontimeout=_.Uf(Ll,J,"TestLoadImage: timeout",!1,z,R);_.R3.setTimeout(function(){if(R.ontimeout)R.ontimeout()},1E4);
R.src=M}else z(!1)},kxl=function(M,z){var J=new qF,R=new AbortController,D=setTimeout(function(){R.abort();
Ll(J,"TestPingServer: timeout",!1,z)},1E4);
fetch(M,{signal:R.signal}).then(function(N){clearTimeout(D);N.ok?Ll(J,"TestPingServer: ok",!0,z):Ll(J,"TestPingServer: server error",!1,z)}).catch(function(){clearTimeout(D);
Ll(J,"TestPingServer: error",!1,z)})},Ll=function(M,z,J,R,D){try{M.debug(z),D&&(D.onload=null,D.onerror=null,D.onabort=null,D.ontimeout=null),R(J)}catch(N){}};var BJw=function(){this.JSC$19507_parser_=new dI};var A4=function(M,z,J){return J&&J.internalChannelParams?J.internalChannelParams[M]||z:z},ib=function(M){this.serverVersion_=0;
this.JSC$19512_outgoingMaps_=[];this.JSC$19512_channelDebug_=new qF;this.JSC$19512_hostPrefix_=this.JSC$19512_backChannelUri_=this.JSC$19512_forwardChannelUri_=this.JSC$19512_path_=this.JSC$19512_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19512_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19512_extraHeaders_=null;this.JSC$19512_nextMapId_=this.JSC$19512_nextRid_=0;this.JSC$19512_failFast_=A4("failFast",!1,M);this.enableStreaming_=this.JSC$19512_deadBackChannelTimerId_=
this.JSC$19512_backChannelTimerId_=this.JSC$19512_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19512_lastPostResponseArrayId_=this.JSC$19512_lastArrayId_=-1;this.JSC$19512_backChannelAttemptId_=this.JSC$19512_backChannelRetryCount_=this.JSC$19512_forwardChannelRetryCount_=0;this.JSC$19512_baseRetryDelayMs_=A4("baseRetryDelayMs",5E3,M);this.JSC$19512_retryDelaySeedMs_=A4("retryDelaySeedMs",1E4,M);this.JSC$19512_forwardChannelMaxRetries_=
A4("forwardChannelMaxRetries",2,M);this.JSC$19512_forwardChannelRequestTimeoutMs_=A4("forwardChannelRequestTimeoutMs",2E4,M);this.JSC$19512_xmlHttpFactory_=M&&M.xmlHttpFactory||void 0;this.networkTestUrl_=M&&M.networkTestUrl||void 0;this.usesFetchStreams_=M&&M.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19512_supportsCrossDomainXhrs_=M&&M.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Jnd(M&&M.concurrentRequestLimit);this.wireCodec_=new BJw;this.fastHandshake_=
M&&M.fastHandshake||!1;this.encodeInitMessageHeaders_=M&&M.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19512_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=M&&M.blockingHandshake||!1;M&&M.disableRedact&&this.JSC$19512_channelDebug_.disableRedact();M&&M.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
M&&M.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;M&&M.longPollingTimeout&&M.longPollingTimeout>0&&(this.longPollingTimeout_=M.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ib.prototype.JSC$19514_channelVersion_=8;ib.prototype.state_=1;
ib.prototype.connect=function(M,z,J,R){this.JSC$19512_channelDebug_.debug("connect()");$R(0);this.JSC$19512_path_=M;this.JSC$19512_extraParams_=z||{};J&&R!==void 0&&(this.JSC$19512_extraParams_.OSID=J,this.JSC$19512_extraParams_.OAID=R);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19512_channelDebug_.debug("connectChannel_()");M=ORm(this,null,this.JSC$19512_path_);this.JSC$19512_channelDebug_.debug("GetForwardChannelUri: "+M);this.JSC$19512_forwardChannelUri_=M;TJc(this)};
ib.prototype.disconnect=function(){this.JSC$19512_channelDebug_.debug("disconnect()");Iy5(this);if(this.state_==3){var M=this.JSC$19512_nextRid_++,z=this.JSC$19512_forwardChannelUri_.clone();_.W6(z,"SID",this.sid_);_.W6(z,"RID",M);_.W6(z,"TYPE","terminate");Cl(this,z);M=new aK(this,this.JSC$19512_channelDebug_,this.sid_,M);M.JSC$19493_type_=2;M.JSC$19493_baseUri_=_.T5(z.clone());z=!1;if(_.R3.navigator&&_.R3.navigator.sendBeacon)try{z=_.R3.navigator.sendBeacon(M.JSC$19493_baseUri_.toString(),"")}catch(J){}!z&&
_.R3.Image&&((new Image).src=M.JSC$19493_baseUri_,z=!0);z||(M.JSC$19493_xmlHttp_=c$w(M.JSC$19493_channel_,null),M.JSC$19493_xmlHttp_.send(M.JSC$19493_baseUri_));M.JSC$19493_requestStartTime_=Date.now();HCG(M)}otw(this)};
var bCN=function(M){M.JSC$19512_backChannelRequest_&&(L8G(M),M.JSC$19512_backChannelRequest_.cancel(),M.JSC$19512_backChannelRequest_=null)},Iy5=function(M){bCN(M);
M.JSC$19512_backChannelTimerId_&&(_.R3.clearTimeout(M.JSC$19512_backChannelTimerId_),M.JSC$19512_backChannelTimerId_=null);CMw(M);M.forwardChannelRequestPool_.cancel();M.JSC$19512_forwardChannelTimerId_&&(typeof M.JSC$19512_forwardChannelTimerId_==="number"&&_.R3.clearTimeout(M.JSC$19512_forwardChannelTimerId_),M.JSC$19512_forwardChannelTimerId_=null)};
ib.prototype.getState=function(){return this.state_};
var TJc=function(M){RTl(M.forwardChannelRequestPool_)||M.JSC$19512_forwardChannelTimerId_||(M.JSC$19512_forwardChannelTimerId_=!0,_.Fp(M.JSC$19514_onStartForwardChannelTimer_,M),M.JSC$19512_forwardChannelRetryCount_=0)},lyG=function(M,z){if(MRw(M.forwardChannelRequestPool_)>=M.forwardChannelRequestPool_.JSC$19503_maxSize_-(M.JSC$19512_forwardChannelTimerId_?1:0))return!1;
if(M.JSC$19512_forwardChannelTimerId_)return M.JSC$19512_channelDebug_.debug("Use the retry request that is already scheduled."),M.JSC$19512_outgoingMaps_=z.JSC$19493_pendingMessages_.concat(M.JSC$19512_outgoingMaps_),!0;if(M.state_==1||M.state_==2||M.JSC$19512_forwardChannelRetryCount_>=(M.JSC$19512_failFast_?0:M.JSC$19512_forwardChannelMaxRetries_))return!1;M.JSC$19512_channelDebug_.debug("Going to retry POST");M.JSC$19512_forwardChannelTimerId_=ub((0,_.xF)(M.JSC$19514_onStartForwardChannelTimer_,
M,z),X0w(M,M.JSC$19512_forwardChannelRetryCount_));M.JSC$19512_forwardChannelRetryCount_++;return!0};
ib.prototype.JSC$19514_onStartForwardChannelTimer_=function(M){if(this.JSC$19512_forwardChannelTimerId_)if(this.JSC$19512_forwardChannelTimerId_=null,this.JSC$19512_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!M){this.JSC$19512_channelDebug_.debug("open_()");this.JSC$19512_nextRid_=Math.floor(Math.random()*1E5);M=this.JSC$19512_nextRid_++;var z=new aK(this,this.JSC$19512_channelDebug_,"",M),J=this.JSC$19512_extraHeaders_;this.initHeaders_&&(J?(J=_.gu.clone(J),_.gu.extend(J,this.initHeaders_)):
J=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(z.JSC$19493_extraHeaders_=J,J=null);var R;if(this.fastHandshake_)a:{for(var D=R=0;D<this.JSC$19512_outgoingMaps_.length;D++){b:{var N=this.JSC$19512_outgoingMaps_[D];if("__data__"in N.map&&(N=N.map.__data__,typeof N==="string")){N=N.length;break b}N=void 0}if(N===void 0)break;R+=N;if(R>4096){R=D;break a}if(R===4096||D===this.JSC$19512_outgoingMaps_.length-1){R=D+1;break a}}R=1E3}else R=1E3;R=eTl(this,z,R);
D=this.JSC$19512_forwardChannelUri_.clone();_.W6(D,"RID",M);_.W6(D,"CVER",22);this.httpSessionIdParam_&&_.W6(D,"X-HTTP-Session-Id",this.httpSessionIdParam_);Cl(this,D);J&&(this.encodeInitMessageHeaders_?R="headers="+_.aX(hql(J))+"&"+R:this.httpHeadersOverwriteParam_&&yvd(D,this.httpHeadersOverwriteParam_,J));DPs(this.forwardChannelRequestPool_,z);this.blockingHandshake_&&_.W6(D,"TYPE","init");this.fastHandshake_?(_.W6(D,"$req",R),_.W6(D,"SID","null"),z.decodeInitialResponse_=!0,y$u(z,D,null)):y$u(z,
D,R);this.state_=2}}else this.state_==3&&(M?Qqw(this,M):this.JSC$19512_outgoingMaps_.length==0?this.JSC$19512_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):RTl(this.forwardChannelRequestPool_)||(Qqw(this),this.JSC$19512_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Qqw=function(M,z){var J;z?J=z.JSC$19493_rid_:J=M.JSC$19512_nextRid_++;var R=M.JSC$19512_forwardChannelUri_.clone();_.W6(R,"SID",M.sid_);_.W6(R,"RID",J);_.W6(R,"AID",M.JSC$19512_lastArrayId_);Cl(M,R);M.httpHeadersOverwriteParam_&&M.JSC$19512_extraHeaders_&&yvd(R,M.httpHeadersOverwriteParam_,M.JSC$19512_extraHeaders_);J=new aK(M,M.JSC$19512_channelDebug_,M.sid_,J,M.JSC$19512_forwardChannelRetryCount_+1);M.httpHeadersOverwriteParam_===null&&(J.JSC$19493_extraHeaders_=M.JSC$19512_extraHeaders_);z&&
(M.JSC$19512_outgoingMaps_=z.JSC$19493_pendingMessages_.concat(M.JSC$19512_outgoingMaps_));z=eTl(M,J,1E3);J.setTimeout(Math.round(M.JSC$19512_forwardChannelRequestTimeoutMs_*.5)+Math.round(M.JSC$19512_forwardChannelRequestTimeoutMs_*.5*Math.random()));DPs(M.forwardChannelRequestPool_,J);y$u(J,R,z)},Cl=function(M,z){M.JSC$19512_extraParams_&&_.gu.forEach(M.JSC$19512_extraParams_,function(J,R){_.W6(z,R,J)});
M.handler_&&_.gu.forEach({},function(J,R){_.W6(z,R,J)})},eTl=function(M,z,J){J=Math.min(M.JSC$19512_outgoingMaps_.length,J);
var R=M.handler_?(0,_.xF)(M.handler_.JSC$19518_badMapError,M.handler_,M):null;a:{for(var D=M.JSC$19512_outgoingMaps_,N=-1;;){var Z=["count="+J];N==-1?J>0?(N=D[0].JSC$19500_mapId,Z.push("ofs="+N)):N=0:Z.push("ofs="+N);for(var B=!0,O=0;O<J;O++){var X=D[O].JSC$19500_mapId,l=D[O].map;X-=N;if(X<0)N=Math.max(0,D[O].JSC$19500_mapId-100),B=!1;else try{X="req"+X+"_"||"";try{var e=l instanceof Map?l:Object.entries(l);for(var Q=_.S(e),v=Q.next();!v.done;v=Q.next()){var x=_.S(v.value),m=x.next().value,y=x.next().value,
H=y;_.E8(y)&&(H=(0,_.ns)(y));Z.push(X+m+"="+encodeURIComponent(H))}}catch(q){throw Z.push(X+"type="+encodeURIComponent("_badmap")),q;}}catch(q){R&&R(l)}}if(B){e=Z.join("&");break a}}e=void 0}M=M.JSC$19512_outgoingMaps_.splice(0,J);z.JSC$19493_pendingMessages_=M;return e},UPt=function(M){M.JSC$19512_backChannelRequest_||M.JSC$19512_backChannelTimerId_||(M.JSC$19512_backChannelAttemptId_=1,_.Fp(M.JSC$19514_onStartBackChannelTimer_,M),M.JSC$19512_backChannelRetryCount_=0)},r$w=function(M){if(M.JSC$19512_backChannelRequest_||
M.JSC$19512_backChannelTimerId_||M.JSC$19512_backChannelRetryCount_>=3)return!1;
M.JSC$19512_channelDebug_.debug("Going to retry GET");M.JSC$19512_backChannelAttemptId_++;M.JSC$19512_backChannelTimerId_=ub((0,_.xF)(M.JSC$19514_onStartBackChannelTimer_,M),X0w(M,M.JSC$19512_backChannelRetryCount_));M.JSC$19512_backChannelRetryCount_++;return!0};
ib.prototype.JSC$19514_onStartBackChannelTimer_=function(){this.JSC$19512_backChannelTimerId_=null;vtv(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19512_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19512_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19512_backChannelRequest_+" "+this.handshakeRttMs_);else{var M=4*this.handshakeRttMs_;this.JSC$19512_channelDebug_.info("BP detection timer enabled: "+M);this.bpDetectionTimerId_=ub((0,_.xF)(this.onBpDetectionTimer_,
this),M)}};
ib.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19512_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19512_backChannelRequest_.JSC$19493_xmlHttp_!=null){var M=this.JSC$19512_backChannelRequest_.JSC$19493_xmlHttp_.getResponseText();M&&this.JSC$19512_channelDebug_.warning("Timer should have been cancelled : "+M)}this.JSC$19512_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;$R(10);bCN(this);vtv(this)}else this.JSC$19512_channelDebug_.warning("Invalid operation.")};
var L8G=function(M){M.bpDetectionTimerId_!=null&&(M.JSC$19512_channelDebug_.debug("Cancel the BP detection timer."),_.R3.clearTimeout(M.bpDetectionTimerId_),M.bpDetectionTimerId_=null)},vtv=function(M){M.JSC$19512_channelDebug_.debug("Creating new HttpRequest");
M.JSC$19512_backChannelRequest_=new aK(M,M.JSC$19512_channelDebug_,M.sid_,"rpc",M.JSC$19512_backChannelAttemptId_);M.httpHeadersOverwriteParam_===null&&(M.JSC$19512_backChannelRequest_.JSC$19493_extraHeaders_=M.JSC$19512_extraHeaders_);M.JSC$19512_backChannelRequest_.JSC$19493_readyStateChangeThrottleMs_=0;var z=M.JSC$19512_backChannelUri_.clone();_.W6(z,"RID","rpc");_.W6(z,"SID",M.sid_);_.W6(z,"AID",M.JSC$19512_lastArrayId_);_.W6(z,"CI",M.enableStreaming_?"0":"1");!M.enableStreaming_&&M.longPollingTimeout_&&
_.W6(z,"TO",M.longPollingTimeout_);_.W6(z,"TYPE","xmlhttp");Cl(M,z);M.httpHeadersOverwriteParam_&&M.JSC$19512_extraHeaders_&&yvd(z,M.httpHeadersOverwriteParam_,M.JSC$19512_extraHeaders_);M.backChannelRequestTimeoutMs_&&M.JSC$19512_backChannelRequest_.setTimeout(M.backChannelRequestTimeoutMs_);var J=M.JSC$19512_backChannelRequest_,R=M.JSC$19512_hostPrefix_;J.JSC$19493_type_=1;J.JSC$19493_baseUri_=_.T5(z.clone());J.JSC$19493_postData_=null;J.decodeChunks_=!0;h_w(J,R);M.JSC$19512_channelDebug_.debug("New Request created")};
ib.prototype.JSC$19514_onBackChannelDead_=function(){this.JSC$19512_deadBackChannelTimerId_!=null&&(this.JSC$19512_deadBackChannelTimerId_=null,bCN(this),r$w(this),$R(19))};
var CMw=function(M){M.JSC$19512_deadBackChannelTimerId_!=null&&(_.R3.clearTimeout(M.JSC$19512_deadBackChannelTimerId_),M.JSC$19512_deadBackChannelTimerId_=null)},Vlm=function(M,z){M.JSC$19512_channelDebug_.debug("Request complete");
var J=null;if(M.JSC$19512_backChannelRequest_==z){CMw(M);L8G(M);M.JSC$19512_backChannelRequest_=null;var R=2}else if(iCl(M.forwardChannelRequestPool_,z))J=z.JSC$19493_pendingMessages_,NJi(M.forwardChannelRequestPool_,z),R=1;else return;if(M.state_!=0)if(z.JSC$19493_successful_)R==1?(xhc(z.JSC$19493_postData_?z.JSC$19493_postData_.length:0,Date.now()-z.JSC$19493_requestStartTime_,M.JSC$19512_forwardChannelRetryCount_),TJc(M)):UPt(M);else{var D=z.JSC$19493_lastStatusCode_,N=z.getLastError();if(N==3||
N==0&&D>0)M.JSC$19512_channelDebug_.debug("Not retrying due to error type"),D>200&&(M.errorResponseStatusCode_=z.JSC$19493_lastStatusCode_);else{M.JSC$19512_channelDebug_.debug(function(){return"Maybe retrying, last error: "+gDw(N,M.errorResponseStatusCode_)});
if(R==1&&lyG(M,z)||R==2&&r$w(M))return;M.JSC$19512_channelDebug_.debug("Exceeded max number of retries")}J&&J.length>0&&S_t(M.forwardChannelRequestPool_,J);M.JSC$19512_channelDebug_.debug("Error: HTTP request failed");switch(N){case 1:fl(M,5);break;case 4:fl(M,10);break;case 3:fl(M,6);break;default:fl(M,2)}}},X0w=function(M,z){var J=M.JSC$19512_baseRetryDelayMs_+Math.floor(Math.random()*M.JSC$19512_retryDelaySeedMs_);
M.isActive()||(M.JSC$19512_channelDebug_.debug("Inactive channel"),J*=2);return J*z};
ib.prototype.onInput_=function(M,z){for(var J=0;J<M.length;J++){var R=M[J];this.JSC$19512_lastArrayId_=R[0];R=R[1];if(this.state_==2)if(R[0]=="c"){this.sid_=R[1];this.JSC$19512_hostPrefix_=R[2];var D=R[3];D!=null&&(this.JSC$19514_channelVersion_=D,this.JSC$19512_channelDebug_.info("VER="+this.JSC$19514_channelVersion_));D=R[4];D!=null&&(this.serverVersion_=D,this.JSC$19512_channelDebug_.info("SVER="+this.serverVersion_));R=R[5];R!=null&&typeof R==="number"&&R>0&&(this.backChannelRequestTimeoutMs_=
R*=1.5,this.JSC$19512_channelDebug_.info("backChannelRequestTimeoutMs_="+R));if(R=z.JSC$19493_xmlHttp_){var N=y2(R,"X-Client-Wire-Protocol");N&&(D=this.forwardChannelRequestPool_,!D.requestPool_&&(_.BY(N,"spdy")||_.BY(N,"quic")||_.BY(N,"h2"))&&(D.JSC$19503_maxSize_=D.maxPoolSizeConfigured_,D.requestPool_=new Set,D.JSC$19503_request_&&(DPs(D,D.JSC$19503_request_),D.JSC$19503_request_=null)));this.httpSessionIdParam_&&((R=y2(R,"X-HTTP-Session-Id"))?(this.httpSessionId_=R,_.W6(this.JSC$19512_forwardChannelUri_,
this.httpSessionIdParam_,R)):this.JSC$19512_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19518_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-z.JSC$19493_requestStartTime_,this.JSC$19512_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));R=z;D=ORm(this,this.JSC$19512_supportsCrossDomainXhrs_?this.JSC$19512_hostPrefix_:null,this.JSC$19512_path_);this.JSC$19512_channelDebug_.debug("GetBackChannelUri: "+
D);this.JSC$19512_backChannelUri_=D;R.initialResponseDecoded_?(this.JSC$19512_channelDebug_.debug("Upgrade the handshake request to a backchannel."),NJi(this.forwardChannelRequestPool_,R),D=R,(N=this.backChannelRequestTimeoutMs_)&&D.setTimeout(N),D.JSC$19493_watchDogTimerId_&&($hl(D),HCG(D)),this.JSC$19512_backChannelRequest_=R):UPt(this);this.JSC$19512_outgoingMaps_.length>0&&TJc(this)}else R[0]!="stop"&&R[0]!="close"||fl(this,7);else this.state_==3&&(R[0]=="stop"||R[0]=="close"?R[0]=="stop"?fl(this,
7):this.disconnect():R[0]!="noop"&&this.handler_&&this.handler_.JSC$19518_channelHandleArray(R),this.JSC$19512_backChannelRetryCount_=0)}};
var fl=function(M,z){M.JSC$19512_channelDebug_.info("Error code "+z);if(z==2){var J=(0,_.xF)(M.testNetworkCallback_,M),R=M.networkTestUrl_,D=!R;R=new _.iS(R||"//www.google.com/images/cleardot.gif");_.R3.location&&_.R3.location.protocol=="http"||_.RI(R,"https");_.T5(R);D?ZRw(R.toString(),J):kxl(R.toString(),J)}else $R(2);M.onError_(z)};
ib.prototype.testNetworkCallback_=function(M){M?(this.JSC$19512_channelDebug_.info("Successfully pinged google.com"),$R(2)):(this.JSC$19512_channelDebug_.info("Failed to ping google.com"),$R(1))};
ib.prototype.onError_=function(M){this.JSC$19512_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$19518_channelError(M);otw(this);Iy5(this)};
var otw=function(M){M.state_=0;M.nonAckedMapsAtChannelClose_=[];if(M.handler_){var z=PZl(M.forwardChannelRequestPool_);if(z.length!=0||M.JSC$19512_outgoingMaps_.length!=0)M.JSC$19512_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+z.length+", outgoing: "+M.JSC$19512_outgoingMaps_.length}),_.a3(M.nonAckedMapsAtChannelClose_,z),_.a3(M.nonAckedMapsAtChannelClose_,M.JSC$19512_outgoingMaps_),M.forwardChannelRequestPool_.JSC$19503_pendingMessages_.length=0,_.uG(M.JSC$19512_outgoingMaps_),
M.JSC$19512_outgoingMaps_.length=0;
M.handler_.JSC$19518_channelClosed()}},Gxw=function(M){if(M.state_==0)return M.nonAckedMapsAtChannelClose_;
var z=[];_.a3(z,PZl(M.forwardChannelRequestPool_));_.a3(z,M.JSC$19512_outgoingMaps_);return z},ORm=function(M,z,J){var R=_.um(J);
R.JSC$9998_domain_!=""?(z&&_.DF(R,z+"."+R.JSC$9998_domain_),_.ND(R,R.JSC$9998_port_)):(R=_.R3.location,R=vTt(R.protocol,z?z+"."+R.hostname:R.hostname,+R.port,J));z=M.httpSessionIdParam_;J=M.httpSessionId_;z&&J&&_.W6(R,z,J);_.W6(R,"VER",M.JSC$19514_channelVersion_);Cl(M,R);return R},c$w=function(M,z,J){if(z&&!M.JSC$19512_supportsCrossDomainXhrs_)throw Error("Ak");
z=M.usesFetchStreams_&&!M.JSC$19512_xmlHttpFactory_?new _.hQ(new b6({streamBinaryChunks:J})):new _.hQ(M.JSC$19512_xmlHttpFactory_);z.JSC$9763_withCredentials_=M.JSC$19512_supportsCrossDomainXhrs_;return z};
ib.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var w0c=function(){};
_.P=w0c.prototype;_.P.JSC$19518_channelOpened=function(){};
_.P.JSC$19518_channelHandleArray=function(){};
_.P.JSC$19518_channelError=function(){};
_.P.JSC$19518_channelClosed=function(){};
_.P.isActive=function(){return!0};
_.P.JSC$19518_badMapError=function(){};var xPG=function(){},rI=function(M,z){_.jB.call(this);
this.JSC$19521_channel_=new ib(z);this.JSC$19521_url_=M;this.messageUrlParams_=z&&z.messageUrlParams||null;M=z&&z.messageHeaders||null;z&&z.clientProtocolHeaderRequired&&(M?_.gu.set(M,"X-Client-Protocol","webchannel"):M=_.gu.create("X-Client-Protocol","webchannel"));this.JSC$19521_channel_.JSC$19512_extraHeaders_=M;M=z&&z.initMessageHeaders||null;z&&z.messageContentType&&(M?_.gu.set(M,"X-WebChannel-Content-Type",z.messageContentType):M=_.gu.create("X-WebChannel-Content-Type",z.messageContentType));
z&&z.clientProfile&&(M?_.gu.set(M,"X-WebChannel-Client-Profile",z.clientProfile):M=_.gu.create("X-WebChannel-Client-Profile",z.clientProfile));this.JSC$19521_channel_.initHeaders_=M;(M=z&&z.httpHeadersOverwriteParam)&&!_.ko(M)&&(this.JSC$19521_channel_.httpHeadersOverwriteParam_=M);this.supportsCrossDomainXhr_=z&&z.supportsCrossDomainXhr||!1;this.sendRawJson_=z&&z.sendRawJson||!1;(z=z&&z.httpSessionIdParam)&&!_.ko(z)&&(this.JSC$19521_channel_.httpSessionIdParam_=z,_.gu.containsKey(this.messageUrlParams_,
z)&&_.gu.remove(this.messageUrlParams_,z));this.channelHandler_=new bb(this)};
_.ZP(rI,_.jB);rI.prototype.open=function(){this.JSC$19521_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19521_channel_.JSC$19512_supportsCrossDomainXhrs_=!0);this.JSC$19521_channel_.connect(this.JSC$19521_url_,this.messageUrlParams_||void 0)};
rI.prototype.close=function(){this.JSC$19521_channel_.disconnect()};
rI.prototype.send=function(M){var z=this.JSC$19521_channel_;if(typeof M==="string"){var J={};J.__data__=M;M=J}else this.sendRawJson_&&(J={},J.__data__=(0,_.ns)(M),M=J);z.JSC$19512_outgoingMaps_.push(new zTu(z.JSC$19512_nextMapId_++,M));z.state_==3&&TJc(z)};
rI.prototype.disposeInternal=function(){this.JSC$19521_channel_.handler_=null;delete this.channelHandler_;this.JSC$19521_channel_.disconnect();delete this.JSC$19521_channel_;rI.superClass_.disposeInternal.call(this)};
var tRc=function(M){lWw.call(this);M.__headers__&&(this.headers=M.__headers__,this.statusCode=M.__status__,delete M.__headers__,delete M.__status__);var z=M.__sm__;z?this.data=(this.metadataKey=_.gu.getAnyKey(z))?_.gu.get(z,this.metadataKey):z:this.data=M};
_.ZP(tRc,lWw);var jqt=function(M){e_5.call(this);this.status=1;this.errorCode=M};
_.ZP(jqt,e_5);var bb=function(M){this.JSC$19528_channel_=M};
_.ZP(bb,w0c);bb.prototype.JSC$19518_channelOpened=function(){this.JSC$19528_channel_.dispatchEvent("w")};
bb.prototype.JSC$19518_channelHandleArray=function(M){this.JSC$19528_channel_.dispatchEvent(new tRc(M))};
bb.prototype.JSC$19518_channelError=function(M){this.JSC$19528_channel_.dispatchEvent(new jqt(M))};
bb.prototype.JSC$19518_channelClosed=function(){this.JSC$19528_channel_.dispatchEvent("x")};
var p0c=function(M,z){this.transportChannel_=M;this.JSC$19531_channel_=z},F7N=function(M){return Gxw(M.JSC$19531_channel_).map(function(z){var J=M.transportChannel_;
z=z.map;"__data__"in z?(z=z.__data__,J=J.sendRawJson_?(0,_.TuV)(z):z):J=z;return J})};
p0c.prototype.commit=function(M){this.JSC$19531_channel_.forwardChannelFlushedCallback_=M};var Mu=function(M){Y_l.dispatchEvent(new mPG(Y_l,M))},Y_l=new _.jB,mPG=function(M,z){_.vR.call(this,"statevent",M);
this.stat=z};
_.w(mPG,_.vR);var z9=function(M,z,J,R,D){this.JSC$19536_channel_=M;this.JSC$19536_channelDebug_=z;this.sid_=J;this.JSC$19536_rid_=R;this.JSC$19536_retryId_=D||1;this.timeout_=45E3;this.JSC$19536_eventHandler_=new _.Ps(this);this.pollingTimer_=new _.NI;this.pollingTimer_.setInterval(250)};
_.P=z9.prototype;_.P.JSC$19538_extraHeaders_=null;_.P.JSC$19538_successful_=!1;_.P.JSC$19538_watchDogTimerId_=null;_.P.JSC$19538_watchDogTimeoutTime_=null;_.P.JSC$19538_requestStartTime_=null;_.P.JSC$19538_type_=null;_.P.JSC$19538_baseUri_=null;_.P.JSC$19538_requestUri_=null;_.P.JSC$19538_postData_=null;_.P.JSC$19538_xmlHttp_=null;_.P.JSC$19538_xmlHttpChunkStart_=0;_.P.trident_=null;_.P.JSC$19538_verb_=null;_.P.JSC$19538_lastError_=null;_.P.JSC$19538_lastStatusCode_=-1;_.P.sendClose_=!0;
_.P.JSC$19538_cancelled_=!1;_.P.JSC$19538_readyStateChangeThrottleMs_=0;_.P.JSC$19538_readyStateChangeThrottle_=null;var gtu=function(M,z){switch(M){case 0:return"Non-200 return code ("+z+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sqm={},ntG={};
z9.prototype.setTimeout=function(M){this.timeout_=M};
var ynl=function(M,z,J){M.JSC$19538_type_=1;M.JSC$19538_baseUri_=_.T5(z.clone());M.JSC$19538_postData_=J;M.decodeChunks_=!0;hTd(M,null)},HRl=function(M,z,J,R,D){M.JSC$19538_type_=1;
M.JSC$19538_baseUri_=_.T5(z.clone());M.JSC$19538_postData_=null;M.decodeChunks_=J;D&&(M.sendClose_=!1);hTd(M,R)},hTd=function(M,z){M.JSC$19538_requestStartTime_=Date.now();
cnG(M);M.JSC$19538_requestUri_=M.JSC$19538_baseUri_.clone();FW(M.JSC$19538_requestUri_,"t",M.JSC$19536_retryId_);M.JSC$19538_xmlHttpChunkStart_=0;M.JSC$19538_xmlHttp_=M.JSC$19536_channel_.JSC$19545_createXhrIo(M.JSC$19536_channel_.JSC$19545_shouldUseSecondaryDomains()?z:null);M.JSC$19538_readyStateChangeThrottleMs_>0&&(M.JSC$19538_readyStateChangeThrottle_=new _.A_((0,_.xF)(M.JSC$19538_xmlHttpHandler_,M,M.JSC$19538_xmlHttp_),M.JSC$19538_readyStateChangeThrottleMs_));M.JSC$19536_eventHandler_.listen(M.JSC$19538_xmlHttp_,
"readystatechange",M.JSC$19538_readyStateChangeHandler_);z=M.JSC$19538_extraHeaders_?_.gu.clone(M.JSC$19538_extraHeaders_):{};M.JSC$19538_postData_?(M.JSC$19538_verb_="POST",z["Content-Type"]="application/x-www-form-urlencoded",M.JSC$19538_xmlHttp_.send(M.JSC$19538_requestUri_,M.JSC$19538_verb_,M.JSC$19538_postData_,z)):(M.JSC$19538_verb_="GET",M.sendClose_&&!_.oJ&&(z.Connection="close"),M.JSC$19538_xmlHttp_.send(M.JSC$19538_requestUri_,M.JSC$19538_verb_,null,z));M.JSC$19536_channel_.notifyServerReachabilityEvent(1);
z=M.JSC$19536_channelDebug_;var J=M.JSC$19538_postData_;if(J){var R="";J=J.split("&");for(var D=0;D<J.length;D++){var N=J[D].split("=");if(N.length>1){var Z=N[0];N=N[1];var B=Z.split("_");R=B.length>=2&&B[1]=="type"?R+(Z+"="+N+"&"):R+(Z+"=redacted&")}}}else R=null;z.info("XMLHTTP REQ ("+M.JSC$19536_rid_+") [attempt "+M.JSC$19536_retryId_+"]: "+M.JSC$19538_verb_+"\n"+M.JSC$19538_requestUri_+"\n"+R)};
z9.prototype.JSC$19538_readyStateChangeHandler_=function(M){M=M.target;var z=this.JSC$19538_readyStateChangeThrottle_;z&&_.yB(M)==3?(this.JSC$19536_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$19538_xmlHttpHandler_(M)};
z9.prototype.JSC$19538_xmlHttpHandler_=function(M){try{if(M==this.JSC$19538_xmlHttp_)a:{var z=_.yB(this.JSC$19538_xmlHttp_),J=this.JSC$19538_xmlHttp_.JSC$9763_lastErrorCode_,R=this.JSC$19538_xmlHttp_.getStatus();if(_.oJ&&!_.XZ("420+")){if(z<4)break a}else if(z<3||z==3&&!this.JSC$19538_xmlHttp_.getResponseText())break a;this.JSC$19538_cancelled_||z!=4||J==7||(J==8||R<=0?this.JSC$19536_channel_.notifyServerReachabilityEvent(3):this.JSC$19536_channel_.notifyServerReachabilityEvent(2));dPw(this);var D=
this.JSC$19538_xmlHttp_.getStatus();this.JSC$19538_lastStatusCode_=D;var N=this.JSC$19538_xmlHttp_.getResponseText();N||this.JSC$19536_channelDebug_.debug("No response text for uri "+this.JSC$19538_requestUri_+" status "+D);this.JSC$19538_successful_=D==200;this.JSC$19536_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19536_rid_+") [ attempt "+this.JSC$19536_retryId_+"]: "+this.JSC$19538_verb_+"\n"+this.JSC$19538_requestUri_+"\n"+z+" "+D);if(this.JSC$19538_successful_){z==4&&Jy(this);if(this.decodeChunks_){for(M=
!0;!this.JSC$19538_cancelled_&&this.JSC$19538_xmlHttpChunkStart_<N.length;){var Z=K7N(this,N);if(Z==ntG){z==4&&(this.JSC$19538_lastError_=4,Mu(15),M=!1);RF(this.JSC$19536_channelDebug_,this.JSC$19536_rid_,null,"[Incomplete Response]");break}else if(Z==sqm){this.JSC$19538_lastError_=4;Mu(16);RF(this.JSC$19536_channelDebug_,this.JSC$19536_rid_,N,"[Invalid Chunk]");M=!1;break}else RF(this.JSC$19536_channelDebug_,this.JSC$19536_rid_,Z,null),$Pl(this,Z)}z==4&&N.length==0&&(this.JSC$19538_lastError_=1,
Mu(17),M=!1);this.JSC$19538_successful_=this.JSC$19538_successful_&&M;M||(RF(this.JSC$19536_channelDebug_,this.JSC$19536_rid_,N,"[Invalid Chunked Response]"),Jy(this),uev(this))}else RF(this.JSC$19536_channelDebug_,this.JSC$19536_rid_,N,null),$Pl(this,N);this.JSC$19538_successful_&&!this.JSC$19538_cancelled_&&(z==4?this.JSC$19536_channel_.JSC$19545_onRequestComplete(this):(this.JSC$19538_successful_=!1,cnG(this)))}else D==400&&N.indexOf("Unknown SID")>0?(this.JSC$19538_lastError_=3,Mu(13),this.JSC$19536_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19536_rid_+")")):(this.JSC$19538_lastError_=0,Mu(14),this.JSC$19536_channelDebug_.warning("XMLHTTP Bad status "+D+" ("+this.JSC$19536_rid_+")")),Jy(this),uev(this)}else this.JSC$19536_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(B){this.JSC$19536_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var K7N=function(M,z){var J=M.JSC$19538_xmlHttpChunkStart_,R=z.indexOf("\n",J);if(R==-1)return ntG;J=Number(z.substring(J,R));if(isNaN(J))return sqm;R+=1;if(R+J>z.length)return ntG;z=z.slice(R,R+J);M.JSC$19538_xmlHttpChunkStart_=R+J;return z};
z9.prototype.cancel=function(){this.JSC$19538_cancelled_=!0;Jy(this)};
var cnG=function(M){M.JSC$19538_watchDogTimeoutTime_=Date.now()+M.timeout_;q_G(M,M.timeout_)},q_G=function(M,z){if(M.JSC$19538_watchDogTimerId_!=null)throw Error("zk");
M.JSC$19538_watchDogTimerId_=fg((0,_.xF)(M.JSC$19538_onWatchDogTimeout_,M),z)},dPw=function(M){M.JSC$19538_watchDogTimerId_&&(_.R3.clearTimeout(M.JSC$19538_watchDogTimerId_),M.JSC$19538_watchDogTimerId_=null)};
z9.prototype.JSC$19538_onWatchDogTimeout_=function(){this.JSC$19538_watchDogTimerId_=null;var M=Date.now();M-this.JSC$19538_watchDogTimeoutTime_>=0?(this.JSC$19536_channelDebug_.info("TIMEOUT: "+this.JSC$19538_requestUri_),this.JSC$19538_type_!=2&&this.JSC$19536_channel_.notifyServerReachabilityEvent(3),Jy(this),this.JSC$19538_lastError_=2,Mu(18),uev(this)):(this.JSC$19536_channelDebug_.warning("WatchDog timer called too early"),q_G(this,this.JSC$19538_watchDogTimeoutTime_-M))};
var uev=function(M){M.JSC$19536_channel_.JSC$19545_isClosed()||M.JSC$19538_cancelled_||M.JSC$19536_channel_.JSC$19545_onRequestComplete(M)},Jy=function(M){dPw(M);
_.bv(M.JSC$19538_readyStateChangeThrottle_);M.JSC$19538_readyStateChangeThrottle_=null;M.pollingTimer_.stop();M.JSC$19536_eventHandler_.removeAll();if(M.JSC$19538_xmlHttp_){var z=M.JSC$19538_xmlHttp_;M.JSC$19538_xmlHttp_=null;z.abort();z.dispose()}M.trident_&&(M.trident_=null)};
z9.prototype.getLastError=function(){return this.JSC$19538_lastError_};
var $Pl=function(M,z){try{M.JSC$19536_channel_.JSC$19545_onRequestData(M,z),M.JSC$19536_channel_.notifyServerReachabilityEvent(4)}catch(J){}};var RF=function(M,z,J,R){var D=M.info;a:if(J&&J!="y2f%"){try{var N=JSON.parse(J);if(N)for(var Z=0;Z<N.length;Z++)if(Array.isArray(N[Z])){var B=N[Z];if(!(B.length<2)){var O=B[1];if(Array.isArray(O)&&!(O.length<1)){var X=O[0];if(X!="noop"&&X!="stop")for(var l=1;l<O.length;l++)O[l]=""}}}var e=(0,_.ns)(N);break a}catch(Q){M.debug("Exception parsing expected JS array - probably was not JS");e=J;break a}e=void 0}else e=J;D.call(M,"XMLHTTP TEXT ("+z+"): "+e+(R?" "+R:""))};
Lg.prototype.debug=function(M){this.info(M)};
Lg.prototype.info=function(){};
Lg.prototype.warning=function(){};var W7m=function(M,z){this.JSC$19543_channel_=M;this.JSC$19543_channelDebug_=z;this.JSC$19543_parser_=new dI};
_.P=W7m.prototype;_.P.JSC$19545_extraHeaders_=null;_.P.JSC$19545_request_=null;_.P.receivedIntermediateResult_=!1;_.P.JSC$19545_path_=null;_.P.state_=null;_.P.JSC$19545_lastStatusCode_=-1;_.P.JSC$19545_hostPrefix_=null;_.P.blockedPrefix_=null;
_.P.connect=function(M){this.JSC$19545_path_=M;M=ayt(this.JSC$19543_channel_,this.JSC$19545_path_);Mu(3);Date.now();var z=this.JSC$19543_channel_.firstTestResults_;z!=null?(this.JSC$19545_hostPrefix_=z[0],(this.blockedPrefix_=z[1])?(this.state_=1,VRu(this)):(this.state_=2,Etu(this))):(FW(M,"MODE","init"),this.JSC$19545_request_=new z9(this,this.JSC$19543_channelDebug_),this.JSC$19545_request_.JSC$19538_extraHeaders_=this.JSC$19545_extraHeaders_,HRl(this.JSC$19545_request_,M,!1,null,!0),this.state_=
0)};
var VRu=function(M){var z=fym(M.JSC$19543_channel_,M.blockedPrefix_,"/mail/images/cleardot.gif");_.T5(z);R8v(z.toString(),5E3,(0,_.xF)(M.checkBlockedCallback_,M),3,2E3);M.notifyServerReachabilityEvent(1)};
W7m.prototype.checkBlockedCallback_=function(M){if(M)this.state_=2,Etu(this);else{Mu(4);var z=this.JSC$19543_channel_;z.JSC$19546_channelDebug_.debug("Test Connection Blocked");z.JSC$19550_lastStatusCode_=z.connectionTest_.JSC$19545_lastStatusCode_;De(z,9)}M&&this.notifyServerReachabilityEvent(2)};
var Etu=function(M){M.JSC$19543_channelDebug_.debug("TestConnection: starting stage 2");var z=M.JSC$19543_channel_.secondTestResults_;z!=null?(M.JSC$19543_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+z?"Buffered":"Unbuffered"),Mu(5),z?(Mu(11),Nu(M.JSC$19543_channel_,M,!1)):(Mu(12),Nu(M.JSC$19543_channel_,M,!0))):(M.JSC$19545_request_=new z9(M,M.JSC$19543_channelDebug_),M.JSC$19545_request_.JSC$19538_extraHeaders_=M.JSC$19545_extraHeaders_,z=L7i(M.JSC$19543_channel_,
M.JSC$19545_hostPrefix_,M.JSC$19545_path_),Mu(5),FW(z,"TYPE","xmlhttp"),HRl(M.JSC$19545_request_,z,!1,M.JSC$19545_hostPrefix_,!1))};
_.P=W7m.prototype;_.P.JSC$19545_createXhrIo=function(M){return this.JSC$19543_channel_.JSC$19545_createXhrIo(M)};
_.P.abort=function(){this.JSC$19545_request_&&(this.JSC$19545_request_.cancel(),this.JSC$19545_request_=null);this.JSC$19545_lastStatusCode_=-1};
_.P.JSC$19545_isClosed=function(){return!1};
_.P.JSC$19545_onRequestData=function(M,z){this.JSC$19545_lastStatusCode_=M.JSC$19538_lastStatusCode_;if(this.state_==0)if(this.JSC$19543_channelDebug_.debug("TestConnection: Got data for stage 1"),z){try{var J=this.JSC$19543_parser_.parse(z)}catch(R){Anu(this.JSC$19543_channel_,this);return}this.JSC$19545_hostPrefix_=J[0];this.blockedPrefix_=J[1]}else this.JSC$19543_channelDebug_.debug("TestConnection: Null responseText"),Anu(this.JSC$19543_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Mu(7),Date.now()):z=="11111"?(Mu(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19545_lastStatusCode_=200,this.JSC$19545_request_.cancel(),this.JSC$19543_channelDebug_.debug("Test connection succeeded; using streaming connection"),Mu(12),Nu(this.JSC$19543_channel_,this,!0)):(Mu(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.P.JSC$19545_onRequestComplete=function(){this.JSC$19545_lastStatusCode_=this.JSC$19545_request_.JSC$19538_lastStatusCode_;this.JSC$19545_request_.JSC$19538_successful_?this.state_==0?(this.JSC$19543_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,VRu(this)):(this.state_=2,Etu(this))):this.state_==2&&(this.JSC$19543_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19543_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Mu(12),Nu(this.JSC$19543_channel_,this,!0)):(this.JSC$19543_channelDebug_.debug("Test connection failed; not using streaming"),Mu(11),Nu(this.JSC$19543_channel_,this,!1))):(this.JSC$19543_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Mu(9):this.state_==2&&Mu(10),Anu(this.JSC$19543_channel_,this,this.JSC$19545_request_.getLastError()))};
_.P.JSC$19545_shouldUseSecondaryDomains=function(){return this.JSC$19543_channel_.JSC$19545_shouldUseSecondaryDomains()};
_.P.isActive=function(){return this.JSC$19543_channel_.isActive()};
_.P.notifyServerReachabilityEvent=function(M){this.JSC$19543_channel_.notifyServerReachabilityEvent(M)};var PT=function(M,z,J){this.state_=1;this.JSC$19546_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19546_channelDebug_=new Lg;this.JSC$19546_parser_=new dI;this.firstTestResults_=M||null;this.secondTestResults_=z!=null?z:null;this.asyncTest_=J||!1},iRt=function(M,z){this.JSC$19548_mapId=M;
this.map=z;this.context=null};
_.P=PT.prototype;_.P.JSC$19550_extraHeaders_=null;_.P.JSC$19550_extraParams_=null;_.P.forwardChannelRequest_=null;_.P.JSC$19550_backChannelRequest_=null;_.P.JSC$19550_path_=null;_.P.JSC$19550_forwardChannelUri_=null;_.P.JSC$19550_backChannelUri_=null;_.P.JSC$19550_hostPrefix_=null;_.P.JSC$19550_nextRid_=0;_.P.JSC$19550_nextMapId_=0;_.P.handler_=null;_.P.JSC$19550_forwardChannelTimerId_=null;_.P.JSC$19550_backChannelTimerId_=null;_.P.JSC$19550_deadBackChannelTimerId_=null;_.P.connectionTest_=null;
_.P.useChunked_=null;_.P.JSC$19550_lastArrayId_=-1;_.P.JSC$19550_lastPostResponseArrayId_=-1;_.P.JSC$19550_lastStatusCode_=-1;_.P.JSC$19550_forwardChannelRetryCount_=0;_.P.JSC$19550_backChannelRetryCount_=0;_.P.JSC$19550_channelVersion_=8;var CZl={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},bR5=function(M,z,J,R){_.vR.call(this,"timingevent",M);this.size=z;this.rtt=J;this.retries=R};
_.ZP(bR5,_.vR);var rn5=function(M){_.vR.call(this,"serverreachability",M)};
_.ZP(rn5,_.vR);PT.prototype.connect=function(M,z,J,R,D){this.JSC$19546_channelDebug_.debug("connect()");Mu(0);this.JSC$19550_path_=z;this.JSC$19550_extraParams_=J||{};R&&D!==void 0&&(this.JSC$19550_extraParams_.OSID=R,this.JSC$19550_extraParams_.OAID=D);this.asyncTest_?(fg((0,_.xF)(this.connectTest_,this,M),100),Mcv(this)):this.connectTest_(M)};
PT.prototype.disconnect=function(){this.JSC$19546_channelDebug_.debug("disconnect()");zO5(this);if(this.state_==3){var M=this.JSC$19550_nextRid_++,z=this.JSC$19550_forwardChannelUri_.clone();_.W6(z,"SID",this.sid_);_.W6(z,"RID",M);_.W6(z,"TYPE","terminate");Sr(this,z);M=new z9(this,this.JSC$19546_channelDebug_,this.sid_,M);M.JSC$19538_type_=2;M.JSC$19538_baseUri_=_.T5(z.clone());(new Image).src=M.JSC$19538_baseUri_.toString();M.JSC$19538_requestStartTime_=Date.now();cnG(M)}JTw(this)};
PT.prototype.connectTest_=function(M){this.JSC$19546_channelDebug_.debug("connectTest_()");this.connectionTest_=new W7m(this,this.JSC$19546_channelDebug_);this.connectionTest_.JSC$19545_extraHeaders_=this.JSC$19550_extraHeaders_;this.connectionTest_.JSC$19543_parser_=this.JSC$19546_parser_;this.connectionTest_.connect(M)};
var Mcv=function(M){M.JSC$19546_channelDebug_.debug("connectChannel_()");M.JSC$19550_ensureInState_(1,0);M.JSC$19550_forwardChannelUri_=ayt(M,M.JSC$19550_path_);fuG(M)},zO5=function(M){M.connectionTest_&&(M.connectionTest_.abort(),M.connectionTest_=null);
M.JSC$19550_backChannelRequest_&&(M.JSC$19550_backChannelRequest_.cancel(),M.JSC$19550_backChannelRequest_=null);M.JSC$19550_backChannelTimerId_&&(_.R3.clearTimeout(M.JSC$19550_backChannelTimerId_),M.JSC$19550_backChannelTimerId_=null);L9w(M);M.forwardChannelRequest_&&(M.forwardChannelRequest_.cancel(),M.forwardChannelRequest_=null);M.JSC$19550_forwardChannelTimerId_&&(_.R3.clearTimeout(M.JSC$19550_forwardChannelTimerId_),M.JSC$19550_forwardChannelTimerId_=null)},Amw=function(M,z){if(M.state_==0)throw Error("Ck");
M.JSC$19546_outgoingMaps_.length==1E3&&M.JSC$19546_parser_.stringify(z);M.JSC$19546_outgoingMaps_.push(new iRt(M.JSC$19550_nextMapId_++,z));M.state_!=2&&M.state_!=3||fuG(M)};
PT.prototype.JSC$19545_isClosed=function(){return this.state_==0};
PT.prototype.getState=function(){return this.state_};
var fuG=function(M){M.forwardChannelRequest_||M.JSC$19550_forwardChannelTimerId_||(M.JSC$19550_forwardChannelTimerId_=fg((0,_.xF)(M.JSC$19550_onStartForwardChannelTimer_,M),0),M.JSC$19550_forwardChannelRetryCount_=0)};
PT.prototype.JSC$19550_onStartForwardChannelTimer_=function(M){this.JSC$19550_forwardChannelTimerId_=null;iNw(this,M)};
var iNw=function(M,z){M.JSC$19546_channelDebug_.debug("startForwardChannel_");if(M.state_==1){if(!z){M.JSC$19546_channelDebug_.debug("open_()");M.JSC$19550_nextRid_=Math.floor(Math.random()*1E5);z=M.JSC$19550_nextRid_++;var J=new z9(M,M.JSC$19546_channelDebug_,"",z);J.JSC$19538_extraHeaders_=M.JSC$19550_extraHeaders_;var R=CnN(M),D=M.JSC$19550_forwardChannelUri_.clone();_.W6(D,"RID",z);_.W6(D,"CVER","1");Sr(M,D);ynl(J,D,R);M.forwardChannelRequest_=J;M.state_=2}}else M.state_==3&&(z?bNm(M,z):M.JSC$19546_outgoingMaps_.length==
0?M.JSC$19546_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):M.forwardChannelRequest_||(bNm(M),M.JSC$19546_channelDebug_.debug("startForwardChannel_ finished, sent request")))},bNm=function(M,z){if(z)if(M.JSC$19550_channelVersion_>6){M.JSC$19546_outgoingMaps_=M.pendingMaps_.concat(M.JSC$19546_outgoingMaps_);
M.pendingMaps_.length=0;var J=M.JSC$19550_nextRid_-1;z=CnN(M)}else J=z.JSC$19536_rid_,z=z.JSC$19538_postData_;else J=M.JSC$19550_nextRid_++,z=CnN(M);var R=M.JSC$19550_forwardChannelUri_.clone();_.W6(R,"SID",M.sid_);_.W6(R,"RID",J);_.W6(R,"AID",M.JSC$19550_lastArrayId_);Sr(M,R);J=new z9(M,M.JSC$19546_channelDebug_,M.sid_,J,M.JSC$19550_forwardChannelRetryCount_+1);J.JSC$19538_extraHeaders_=M.JSC$19550_extraHeaders_;J.setTimeout(1E4+Math.round(1E4*Math.random()));M.forwardChannelRequest_=J;ynl(J,R,z)},
Sr=function(M,z){M.handler_&&(M=M.handler_.JSC$19557_getAdditionalParams())&&_.gu.forEach(M,function(J,R){_.W6(z,R,J)})},CnN=function(M){var z=Math.min(M.JSC$19546_outgoingMaps_.length,1E3),J=["count="+z];
if(M.JSC$19550_channelVersion_>6&&z>0){var R=M.JSC$19546_outgoingMaps_[0].JSC$19548_mapId;J.push("ofs="+R)}else R=0;for(var D={},N=0;N<z;D={mapId$jscomp$3:void 0},N++){D.mapId$jscomp$3=M.JSC$19546_outgoingMaps_[N].JSC$19548_mapId;var Z=M.JSC$19546_outgoingMaps_[N].map;D.mapId$jscomp$3=M.JSC$19550_channelVersion_<=6?N:D.mapId$jscomp$3-R;try{_.gu.forEach(Z,function(B){return function(O,X){J.push("req"+B.mapId$jscomp$3+"_"+X+"="+encodeURIComponent(O))}}(D))}catch(B){J.push("req"+D.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}M.pendingMaps_=M.pendingMaps_.concat(M.JSC$19546_outgoingMaps_.splice(0,z));
return J.join("&")},rmw=function(M){M.JSC$19550_backChannelRequest_||M.JSC$19550_backChannelTimerId_||(M.JSC$19550_backChannelAttemptId_=1,M.JSC$19550_backChannelTimerId_=fg((0,_.xF)(M.JSC$19550_onStartBackChannelTimer_,M),0),M.JSC$19550_backChannelRetryCount_=0)},zys=function(M){if(M.JSC$19550_backChannelRequest_||M.JSC$19550_backChannelTimerId_||M.JSC$19550_backChannelRetryCount_>=3)return!1;
M.JSC$19546_channelDebug_.debug("Going to retry GET");M.JSC$19550_backChannelAttemptId_++;M.JSC$19550_backChannelTimerId_=fg((0,_.xF)(M.JSC$19550_onStartBackChannelTimer_,M),ME5(M,M.JSC$19550_backChannelRetryCount_));M.JSC$19550_backChannelRetryCount_++;return!0};
PT.prototype.JSC$19550_onStartBackChannelTimer_=function(){this.JSC$19550_backChannelTimerId_=null;this.JSC$19546_channelDebug_.debug("Creating new HttpRequest");this.JSC$19550_backChannelRequest_=new z9(this,this.JSC$19546_channelDebug_,this.sid_,"rpc",this.JSC$19550_backChannelAttemptId_);this.JSC$19550_backChannelRequest_.JSC$19538_extraHeaders_=this.JSC$19550_extraHeaders_;this.JSC$19550_backChannelRequest_.JSC$19538_readyStateChangeThrottleMs_=0;var M=this.JSC$19550_backChannelUri_.clone();_.W6(M,
"RID","rpc");_.W6(M,"SID",this.sid_);_.W6(M,"CI",this.useChunked_?"0":"1");_.W6(M,"AID",this.JSC$19550_lastArrayId_);Sr(this,M);_.W6(M,"TYPE","xmlhttp");HRl(this.JSC$19550_backChannelRequest_,M,!0,this.JSC$19550_hostPrefix_,!1);this.JSC$19546_channelDebug_.debug("New Request created")};
var Nu=function(M,z,J){M.JSC$19546_channelDebug_.debug("Test Connection Finished");M.useChunked_=M.secondTestResults_==null?J:!M.secondTestResults_;M.JSC$19550_lastStatusCode_=z.JSC$19545_lastStatusCode_;M.asyncTest_||Mcv(M)},Anu=function(M,z){M.JSC$19546_channelDebug_.debug("Test Connection Failed");
M.JSC$19550_lastStatusCode_=z.JSC$19545_lastStatusCode_;De(M,2)};
PT.prototype.JSC$19545_onRequestData=function(M,z){if(this.state_!=0&&(this.JSC$19550_backChannelRequest_==M||this.forwardChannelRequest_==M))if(this.JSC$19550_lastStatusCode_=M.JSC$19538_lastStatusCode_,this.forwardChannelRequest_==M&&this.state_==3)if(this.JSC$19550_channelVersion_>7){try{var J=this.JSC$19546_parser_.parse(z)}catch(R){J=null}if(Array.isArray(J)&&J.length==3)if(z=J,z[0]==0)a:if(this.JSC$19546_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19550_backChannelTimerId_)this.JSC$19546_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19550_backChannelRequest_)if(this.JSC$19550_backChannelRequest_.JSC$19538_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19538_requestStartTime_)L9w(this),this.JSC$19550_backChannelRequest_.cancel(),this.JSC$19550_backChannelRequest_=null;else break a;else this.JSC$19546_channelDebug_.warning("We do not have a BackChannel established");zys(this);Mu(19)}else this.JSC$19550_lastPostResponseArrayId_=z[1],M=this.JSC$19550_lastPostResponseArrayId_-this.JSC$19550_lastArrayId_,0<
M&&(z=z[2],this.JSC$19546_channelDebug_.debug(z+" bytes (in "+M+" arrays) are outstanding on the BackChannel"),z<37500&&this.useChunked_&&this.JSC$19550_backChannelRetryCount_==0&&!this.JSC$19550_deadBackChannelTimerId_&&(this.JSC$19550_deadBackChannelTimerId_=fg((0,_.xF)(this.JSC$19550_onBackChannelDead_,this),6E3)));else this.JSC$19546_channelDebug_.debug("Bad POST response data returned"),De(this,11)}else z!="y2f%"&&(this.JSC$19546_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
De(this,11));else this.JSC$19550_backChannelRequest_==M&&L9w(this),_.ko(z)||(M=this.JSC$19546_parser_.parse(z),this.onInput_(M))};
PT.prototype.JSC$19550_onBackChannelDead_=function(){this.JSC$19550_deadBackChannelTimerId_!=null&&(this.JSC$19550_deadBackChannelTimerId_=null,this.JSC$19550_backChannelRequest_.cancel(),this.JSC$19550_backChannelRequest_=null,zys(this),Mu(20))};
var L9w=function(M){M.JSC$19550_deadBackChannelTimerId_!=null&&(_.R3.clearTimeout(M.JSC$19550_deadBackChannelTimerId_),M.JSC$19550_deadBackChannelTimerId_=null)};
PT.prototype.JSC$19545_onRequestComplete=function(M){this.JSC$19546_channelDebug_.debug("Request complete");if(this.JSC$19550_backChannelRequest_==M){L9w(this);this.JSC$19550_backChannelRequest_=null;var z=2}else if(this.forwardChannelRequest_==M)this.forwardChannelRequest_=null,z=1;else return;this.JSC$19550_lastStatusCode_=M.JSC$19538_lastStatusCode_;if(this.state_!=0)if(M.JSC$19538_successful_)if(z==1){z=M.JSC$19538_postData_?M.JSC$19538_postData_.length:0;M=Date.now()-M.JSC$19538_requestStartTime_;
var J=Y_l;J.dispatchEvent(new bR5(J,z,M,this.JSC$19550_forwardChannelRetryCount_));fuG(this);this.handler_&&this.handler_.JSC$19557_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else rmw(this);else{J=M.getLastError();if(J==3||J==7||J==0&&this.JSC$19550_lastStatusCode_>0)this.JSC$19546_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19546_channelDebug_.debug("Maybe retrying, last error: "+gtu(J,this.JSC$19550_lastStatusCode_));var R;if(R=z==1)this.forwardChannelRequest_||
this.JSC$19550_forwardChannelTimerId_||this.state_==1||this.JSC$19550_forwardChannelRetryCount_>=2?R=!1:(this.JSC$19546_channelDebug_.debug("Going to retry POST"),this.JSC$19550_forwardChannelTimerId_=fg((0,_.xF)(this.JSC$19550_onStartForwardChannelTimer_,this,M),ME5(this,this.JSC$19550_forwardChannelRetryCount_)),this.JSC$19550_forwardChannelRetryCount_++,R=!0);if(R||z==2&&zys(this))return;this.JSC$19546_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19546_channelDebug_.debug("Error: HTTP request failed");
switch(J){case 1:De(this,5);break;case 4:De(this,10);break;case 3:De(this,6);break;case 7:De(this,12);break;default:De(this,2)}}};
var ME5=function(M,z){var J=5E3+Math.floor(Math.random()*1E4);M.isActive()||(M.JSC$19546_channelDebug_.debug("Inactive channel"),J*=2);return J*z};
PT.prototype.onInput_=function(M){for(var z=0;z<M.length;z++){var J=M[z];this.JSC$19550_lastArrayId_=J[0];J=J[1];this.state_==2?J[0]=="c"?(this.sid_=J[1],this.JSC$19550_hostPrefix_=J[2],J=J[3],J!=null?this.JSC$19550_channelVersion_=J:this.JSC$19550_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19557_channelOpened(),this.JSC$19550_backChannelUri_=L7i(this,this.JSC$19550_hostPrefix_,this.JSC$19550_path_),rmw(this)):J[0]=="stop"&&De(this,7):this.state_==3&&(J[0]=="stop"?De(this,7):
J[0]!="noop"&&this.handler_&&this.handler_.JSC$19557_channelHandleArray(J),this.JSC$19550_backChannelRetryCount_=0)}};
PT.prototype.JSC$19550_ensureInState_=function(M){if(!_.Kp(arguments,this.state_))throw Error("Dk`"+this.state_);};
var De=function(M,z){M.JSC$19546_channelDebug_.info("Error code "+z);if(z==2||z==9){var J=null;M.handler_&&(J=null);var R=(0,_.xF)(M.testGoogleComCallback_,M);J||(J=new _.iS("//www.google.com/images/cleardot.gif"),_.T5(J));J9c(J.toString(),1E4,R)}else Mu(2);M.onError_(z)};
PT.prototype.testGoogleComCallback_=function(M){M?(this.JSC$19546_channelDebug_.info("Successfully pinged google.com"),Mu(2)):(this.JSC$19546_channelDebug_.info("Failed to ping google.com"),Mu(1),this.onError_(8))};
PT.prototype.onError_=function(M){this.JSC$19546_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$19557_channelError(M);JTw(this);zO5(this)};
var JTw=function(M){M.state_=0;M.JSC$19550_lastStatusCode_=-1;if(M.handler_)if(M.pendingMaps_.length==0&&M.JSC$19546_outgoingMaps_.length==0)M.handler_.JSC$19557_channelClosed();else{M.JSC$19546_channelDebug_.debug("Number of undelivered maps, pending: "+M.pendingMaps_.length+", outgoing: "+M.JSC$19546_outgoingMaps_.length);var z=_.uG(M.pendingMaps_),J=_.uG(M.JSC$19546_outgoingMaps_);M.pendingMaps_.length=0;M.JSC$19546_outgoingMaps_.length=0;M.handler_.JSC$19557_channelClosed(z,J)}},ayt=function(M,
z){z=fym(M,null,z);
M.JSC$19546_channelDebug_.debug("GetForwardChannelUri: "+z);return z},L7i=function(M,z,J){z=fym(M,M.JSC$19545_shouldUseSecondaryDomains()?z:null,J);
M.JSC$19546_channelDebug_.debug("GetBackChannelUri: "+z);return z},fym=function(M,z,J){var R=_.um(J);
if(R.JSC$9998_domain_!="")z&&_.DF(R,z+"."+R.JSC$9998_domain_),_.ND(R,R.JSC$9998_port_);else{var D=window.location;R=vTt(D.protocol,z?z+"."+D.hostname:D.hostname,+D.port,J)}M.JSC$19550_extraParams_&&_.gu.forEach(M.JSC$19550_extraParams_,function(N,Z){_.W6(R,Z,N)});
_.W6(R,"VER",M.JSC$19550_channelVersion_);Sr(M,R);return R};
PT.prototype.JSC$19545_createXhrIo=function(M){if(M)throw Error("Ak");M=new _.hQ;M.JSC$9763_withCredentials_=!1;return M};
PT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
PT.prototype.notifyServerReachabilityEvent=function(M){var z=Y_l;z.dispatchEvent(new rn5(z,M))};
PT.prototype.JSC$19545_shouldUseSecondaryDomains=function(){return!1};
new pfv;var JEc=function(){};
_.P=JEc.prototype;_.P.JSC$19557_channelOpened=function(){};
_.P.JSC$19557_channelHandleArray=function(){};
_.P.JSC$19557_channelSuccess=function(){};
_.P.JSC$19557_channelError=function(){};
_.P.JSC$19557_channelClosed=function(){};
_.P.JSC$19557_getAdditionalParams=function(){return{}};
_.P.isActive=function(){return!0};var Ryi=function(M){M.front_.length===0&&(M.front_=M.back_,M.front_.reverse(),M.back_=[])};
_.P=NBl.prototype;_.P.enqueue=function(M){this.back_.push(M)};
_.P.peek=function(){Ryi(this);return _.s8(this.front_)};
_.P.getCount=function(){return this.front_.length+this.back_.length};
_.P.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.P.clear=function(){this.front_=[];this.back_=[]};
_.P.contains=function(M){return _.Kp(this.front_,M)||_.Kp(this.back_,M)};
_.P.remove=function(M){var z=this.front_;var J=Array.prototype.lastIndexOf.call(z,M,z.length-1);J>=0?(_.xbH(z,J),z=!0):z=!1;return z||_.$o(this.back_,M)};
_.P.getValues=function(){for(var M=[],z=this.front_.length-1;z>=0;--z)M.push(this.front_[z]);z=this.back_.length;for(var J=0;J<z;++J)M.push(this.back_[J]);return M};var Ze=function(M){this.JSC$19561_map_=new _.ow;this.size=0;M&&this.addAll(M)},Dnw=function(M){var z=typeof M;
return z=="object"&&M||z=="function"?"o"+_.fp(M):z.charAt(0)+M};
_.P=Ze.prototype;_.P.getCount=function(){return this.JSC$19561_map_.size};
_.P.add=function(M){this.JSC$19561_map_.set(Dnw(M),M);this.size=this.JSC$19561_map_.size};
_.P.addAll=function(M){M=_.Jb(M);for(var z=M.length,J=0;J<z;J++)this.add(M[J]);this.size=this.JSC$19561_map_.size};
_.P.removeAll=function(M){M=_.Jb(M);for(var z=M.length,J=0;J<z;J++)this.remove(M[J]);this.size=this.JSC$19561_map_.size};
_.P.delete=function(M){M=this.JSC$19561_map_.remove(Dnw(M));this.size=this.JSC$19561_map_.size;return M};
_.P.remove=function(M){return this.delete(M)};
_.P.clear=function(){this.JSC$19561_map_.clear();this.size=0};
_.P.isEmpty=function(){return this.JSC$19561_map_.size===0};
_.P.has=function(M){return this.JSC$19561_map_.containsKey(Dnw(M))};
_.P.contains=function(M){return this.JSC$19561_map_.containsKey(Dnw(M))};
_.P.getValues=function(){return this.JSC$19561_map_.getValues()};
_.P.values=function(){return this.JSC$19561_map_.values()};
_.P.clone=function(){return new Ze(this)};
_.P.equals=function(M){return this.getCount()==Qh5(M)&&N_l(this,M)};
var N_l=function(M,z){var J=Qh5(z);if(M.getCount()>J)return!1;!(z instanceof Ze)&&J>5&&(z=new Ze(z));return U5t(M,function(R){var D=z;return D.contains&&typeof D.contains=="function"?D.contains(R):D.containsValue&&typeof D.containsValue=="function"?D.containsValue(R):_.WY(D)||typeof D==="string"?_.Kp(D,R):_.gu.containsValue(D,R)})};
Ze.prototype.__iterator__=function(){return this.JSC$19561_map_.__iterator__(!1)};
Ze.prototype[Symbol.iterator]=function(){return this.values()};var P_i={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(M){return(this._clampValue(M)-this.min)/(this.max-this.min)},
_clampValue:function(M){return Math.min(this.max,Math.max(this.min,this._calcStep(M)))},
_calcStep:function(M){M=parseFloat(M);if(!this.step)return M;M=Math.round((M-this.min)/this.step);return this.step<1?M/(1/this.step)+this.min:M*this.step+this.min},
_validateValue:function(){var M=this._clampValue(this.value);this.value=this.oldValue=isNaN(M)?this.oldValue:M;return this.value!==M},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var SE5;var ZZl;_.sV({_template:function(){if(ZZl!==void 0)return ZZl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;SE5===void 0&&(SE5=document.createElement("template"));var R=SE5;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return ZZl=M},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.C4(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(M){M.keyCode===27&&(M.preventDefault(),this.close())},
_track:function(M){if(!this.persistent&&!this.disableSwipe)switch(M.preventDefault(),M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackMove(M);break;case "end":this._trackEnd(M)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var M=this.$.contentContainer.getBoundingClientRect();this._savedWidth=M.width;this._translateOffset=this.position==="left"?M.left:M.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(M){this._trackDetails&&(this._translateDrawer(M.detail.dx+this._translateOffset),this._trackDetails.push({dx:M.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(M){if(this._trackDetails){var z=M.detail.dx+this._translateOffset,J=this.getWidth();z=this.position==="left"?z>=0||z<=-J:z<=0||z>=J;if(!z){var R=this._trackDetails;this._trackDetails=null;this._flingDrawer(M,R);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}J/=2;M.detail.dx<-J?this.opened=this.position==="right":M.detail.dx>J&&(this.opened=this.position==="left");z?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(M,z){for(var J=Date.now(),R=J-100,D,N=0,Z=z.length-1;N<=Z;){var B=N+Z>>1,O=z[B];O.timeStamp>=R?(D=O,Z=B-1):N=B+1}return D?(M.detail.dx-D.dx)/(J-D.timeStamp||1):0},
_flingDrawer:function(M,z){z=this._calculateVelocity(M,z);if(!(Math.abs(z)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;M=M.detail.dx+this._translateOffset;var J=this.getWidth(),R=this.position==="left",D=z>0;D?(z=Math.max(z,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(z=Math.min(z,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");z=this._FLING_INITIAL_SLOPE*(!D&&R?-(M+J):D&&!R?J-M:-M)/z;this._styleTransitionDuration(z);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,z)}},
_styleTransitionDuration:function(M){this.style.transitionDuration=M+"ms";this.$.contentContainer.style.transitionDuration=M+"ms";this.$.scrim.style.transitionDuration=M+"ms"},
_styleTransitionTimingFunction:function(M){this.$.contentContainer.style.transitionTimingFunction=M;this.$.scrim.style.transitionTimingFunction=M},
_translateDrawer:function(M){var z=this.getWidth();this.position==="left"?(M=Math.max(-z,Math.min(M,0)),this.$.scrim.style.opacity=1+M/z):(M=Math.max(0,Math.min(M,z)),this.$.scrim.style.opacity=1-M/z);this.translate3d(M+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var M=this._drawerState;M===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;M!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),M!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var M=_.pu(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');M.length>0?(this._firstTabStop=M[0],this._lastTabStop=M[M.length-1]):
this._lastTabStop=this._firstTabStop=null;(M=this.getAttribute("tabindex"))&&parseInt(M,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(M){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||M.keyCode!==9||(M.shiftKey?this._firstTabStop&&_.pu(M).localTarget===this._firstTabStop&&(M.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.pu(M).localTarget===this._lastTabStop&&(M.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(M,z){this.toggleClass("visible",M&&!z,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 kNu;var B_v;_.sV({_template:function(){if(B_v!==void 0)return B_v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;kNu===void 0&&(kNu=document.createElement("template"));var R=kNu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return B_v=M},
is:"tp-yt-paper-progress",behaviors:[P_i],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(M){this.toggleClass("indeterminate",M,this.$.primaryProgress)},
_transformProgress:function(M,z){M.style.transform=M.style.webkitTransform="scaleX("+z/100+")"},
_mainRatioChanged:function(M){this._transformProgress(this.$.primaryProgress,M)},
_progressChanged:function(M,z,J,R,D){M=this._clampValue(M);z=this._clampValue(z);var N=this._calcRatio(M)*100,Z=this._calcRatio(z)*100;this._setSecondaryRatio(N);this._transformProgress(this.$.secondaryProgress,N);this._transformProgress(this.$.primaryProgress,Z);this.secondaryProgress=M;D?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",z);this.setAttribute("aria-valuemin",J);this.setAttribute("aria-valuemax",R)},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false")},
_hideSecondaryProgress:function(M){return M===0}});var OZu;var T_v;var I1i=function(){};
_.P=I1i.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._calcRatio=function(){};
_.P._clampValue=function(){};
_.P._calcStep=function(){};
_.P._validateValue=function(){};
_.P._update=function(){};
_.P._setImmediateValue=function(){};
_.P._setExpand=function(){};
_.P._setDragging=function(){};
_.P._setTransiting=function(){};
_.P._setMarkers=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setRatio=function(){};
I1i=_.sV({_template:function(){if(T_v!==void 0)return T_v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;OZu===void 0&&(OZu=document.createElement("template"));var R=OZu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return T_v=M},
is:"tp-yt-paper-slider",behaviors:[_.pH,_.gL,_.M3J,P_i],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&&_.HN(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(M,z,J){this.setAttribute("aria-valuemin",z);this.setAttribute("aria-valuemax",J);this.setAttribute("aria-valuenow",M);this._positionKnob(this._calcRatio(M)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(M){this._setImmediateValue(this._calcStep(this._calcKnobPosition(M)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(M){return(this.max-this.min)*M/100+this.min},
_onTrack:function(M){M.stopPropagation();switch(M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackX(M);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(M){this.dragging||this._trackStart(M);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,M.detail.dx*(this._isRTL?-1:1)));M=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(M);M=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(M+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var M=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;M.transform=M.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(M){this._expandKnob();M.preventDefault();this.focus()},
_bartrack:function(M){this._allowBarEvent(M)&&this._onTrack(M)},
_barclick:function(M){this._w=this.$.sliderBar.offsetWidth;var z=this.$.sliderBar.getBoundingClientRect();z=(M.detail.x-z.left)/this._w*100;this._isRTL&&(z=100-z);var J=this.ratio;this._setTransiting(!0);this._positionKnob(z);J===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
M.preventDefault();this.focus()},
_bardown:function(M){this._allowBarEvent(M)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(M))},
_knobTransitionEnd:function(M){M.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(M,z,J,R){R||this._setMarkers([]);z=Math.round((J-z)/this.step);z>M&&(z=M);if(z<0||!isFinite(z))z=0;this._setMarkers(Array(z))},
_mergeClasses:function(M){return Object.keys(M).filter(function(z){return M[z]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(M){return!this.ignoreBarTouch||M.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(M){this._isRTL?this._incrementKey(M):this._decrementKey(M)},
_rightKey:function(M){this._isRTL?this._decrementKey(M):this._incrementKey(M)},
_incrementKey:function(M){this.disabled||(M.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),M.preventDefault())},
_decrementKey:function(M){this.disabled||(M.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),M.preventDefault())},
_changeValue:function(M){this.value=M.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(M){M.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.rkV._createRipple.call(this)},
_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=M?"":"none",this._ripple.holdDown=M)}});var o55;var Xad;var ku=null,l1G=function(){};
_.P=l1G.prototype;_.P.fit=function(){};
_.P._discoverInfo=function(){};
_.P.resetFit=function(){};
_.P.refit=function(){};
_.P.position=function(){};
_.P.constrain=function(){};
_.P._sizeDimension=function(){};
_.P.__sizeDimension=function(){};
_.P.center=function(){};
_.P.__getNormalizedRect=function(){};
_.P.__getOffscreenArea=function(){};
_.P.__getPosition=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P.toggle=function(){};
_.P.open=function(){};
_.P.close=function(){};
_.P.cancel=function(){};
_.P.invalidateTabbables=function(){};
_.P._ensureSetup=function(){};
_.P._canceledChanged=function(){};
_.P._withBackdropChanged=function(){};
_.P._prepareRenderOpened=function(){};
_.P._finishRenderOpened=function(){};
_.P._finishRenderClosed=function(){};
_.P._preparePositioning=function(){};
_.P._finishPositioning=function(){};
_.P._applyFocus=function(){};
_.P._onCaptureClick=function(){};
_.P._onCaptureFocus=function(){};
_.P._onCaptureEsc=function(){};
_.P._onCaptureTab=function(){};
_.P._onIronResize=function(){};
_.P._onNodesChange=function(){};
_.P.__ensureFirstLastFocusables=function(){};
_.P.__openedChanged=function(){};
_.P.__deraf=function(){};
_.P.__updateScrollObservers=function(){};
_.P.__addScrollListeners=function(){};
_.P.__removeScrollListeners=function(){};
_.P.__isValidScrollAction=function(){};
_.P.__onCaptureScroll=function(){};
_.P.__saveScrollPosition=function(){};
_.P.__restoreScrollPosition=function(){};
_.P._setCanceled=function(){};
l1G=_.sV({_template:function(){if(Xad!==void 0)return Xad;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;o55===void 0&&(o55=document.createElement("template"));var R=o55;J.call(z,R.content.cloneNode(!0),M.content.firstChild);return Xad=M},
is:"tp-yt-paper-toast",behaviors:[_.i$],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(){_.Yt._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Vv.requestAvailability()},
show:function(M){typeof M=="string"&&(M={text:M});for(var z in M)z.indexOf("_")===0?_.Yt._warn('The property "'+z+'" is private and was not set.'):z in this?this[z]=M[z]:_.Yt._warn('The property "'+z+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(M){M&&M.target===this&&M.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(ku&&ku!==this&&ku.close(),ku=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):ku===this&&(ku=null);_.AT._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(M){this.positionTarget=M},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var eyu=new _.R_("disablePersonalizationAction");var fvi=new _.R_("showDmaConsentFlowCommand");var LNv=new _.R_("showMmgNoticeCommand");var QQi=new _.R_("saveConsentAction");var Unl=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.nw(M)};
_.w(Unl,_.zA);var v5N=_.dEo(Unl);var GNl=new _.R_("updateTopbarAvatarAction");var wad=new _.R_("channelHandleValidationResultRenderer");var xnu=new _.R_("generateHandleFromNameResultRenderer");var tEw=new _.R_("channelHandleInputRenderer");var jQc=new _.R_("copyLinkRenderer");var paw=new _.R_("timedCommand");var F_m=new _.R_("clearCookieAction");var YEu=new _.R_("getMultiPageMenuAction");var mnl=new _.R_("addToGuideSectionAction"),g5l=new _.R_("removeFromGuideSectionAction");var sQw=new _.R_("updateNotificationsUnseenCountAction");var n5u=new _.R_("resetChannelUnreadCountCommand");var hyi=new _.R_("resetSubscriptionsUnreadDotCommand");var yEG=new _.R_("selectLanguageCommand");var ZnN=new _.R_("sendFeedbackAction");var HZl=new _.R_("uploadImageToScottyCommand");var cEl=new _.R_("registerPromoCommand");var dnd=new _.R_("setPushNotificationsEnabledCommand");var K_G=new _.R_("desktopTopbarRenderer");var $nc=new _.R_("surveyFollowUpRenderer");var ufw=new _.R_("handlesClaimingRadioOptionRenderer");var qEw=new _.R_("hotkeyDialogRenderer");var W_v=new _.R_("modifyReportFormCommand");var a1m=new _.R_("accountLinkCommand");var VEG=new _.R_("accountUnlinkCommand");var E5m=new _.R_("logAccountLinkingEventCommand");var f1d=new _.R_("guideCollapsibleEntryRenderer");var L_N=new _.R_("guideDownloadsEntryRenderer");var BT=new _.R_("guideEntryRenderer");var AEN=new _.R_("getLocationCommand");var iZw=new _.R_("locationCollectionCommand");var C_s=new _.R_("storiesItemViewModel");var bZ5=new _.R_("addToRemoteQueueAction");var rEd=new _.R_("insertInRemoteQueueAction");var Muv=new _.R_("removeFromRemoteQueueAction");var z1w=new _.R_("notificationRenderer");var slG=new _.R_("localWatchHistoryCommand");var Jsu=new _.R_("pdgBuyFlowHeaderRenderer");var R1t=new _.R_("pdgColorSliderRenderer");var DKu=new _.R_("pdgCommentOptionRenderer");var Nxw=new _.R_("pdgCommentPreviewRenderer");var PTw=new _.R_("superVodSelectableItemButtonRenderer");var SQw=new _.R_("switchButtonRenderer");var ZEs=new _.R_("upsellDialogRenderer");var knl=new _.R_("feedbackQuestionRenderer"),Bxm=new _.R_("feedbackOptionRenderer");var OEl=new _.R_("sponsorshipsTierRenderer"),Txw=new _.R_("sponsorshipsPromotionChannelRenderer");var IJm=new _.R_("simpleSurveyMessageRenderer");var Zf5=new _.R_("invokeInstrumentManagerAction");var oKN=new _.R_("logYpcFlowDismissCommand");var Xmw=new _.R_("logYpcFlowStartCommand");var lJG=new _.R_("unlimitedCreateFamilyEndpoint");var e1v=new _.R_("iconBadgeRenderer");var nSl=new _.R_("collaborativePlaylistVisibilityValidationRule");var QYw=function(M){_.vR.call(this,"channelMessage");this.message=M};
_.w(QYw,_.vR);var UKw=function(M){_.vR.call(this,"channelError");this.error=M};
_.w(UKw,_.vR);var vKc={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},Gn5={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},wml={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},xKs={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},tus={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Ot=function(M){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.ow;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;M&&(this.id=M.id||M.name,this.name=M.name,this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=M.app,this.type=M.type||"REMOTE_CONTROL",this.username=M.user||"",this.avatar=M.userAvatarUri||"",this.obfuscatedGaiaId=M.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=M.ownerObfuscatedGaiaId||"",this.castUserId=M.castUserId||"",this.theme=M.theme||"u",jYs(this,M.capabilities||""),pml(this,
M.compatibleSenderThemes||""),Fgc(this,M.experiments||""),this.remoteControllerUrl=M.remoteControllerUrl||"",this.localChannelEncryptionKey=M.localChannelEncryptionKey||"",this.deviceContext=M.deviceContext,this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=M.pairingType||"unknown",M=M.deviceInfo)&&(M=JSON.parse(M),this.brand=
M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Ot.prototype.copy=function(){var M={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(M.brand=this.brand);
this.model&&(M.model=this.model);this.year&&(M.year=this.year);this.os&&(M.os=this.os);this.osVersion&&(M.osVersion=this.osVersion);this.chipset&&(M.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(M.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(M.mdxDialServerType=this.mdxDialServerType);M=new Ot(M);M.connected=this.connected;M.remoteControllerUrl=this.remoteControllerUrl;M.localChannelEncryptionKey=this.localChannelEncryptionKey;M.deviceContext=
this.deviceContext;M.castUserId=this.castUserId;return M};
Ot.prototype.equals=function(M){return M?this.id==M.id:!1};
var jYs=function(M,z){M.capabilities.clear();_.B9(z.split(","),_.Uf(_.gu.contains,vKc)).forEach(function(J){M.capabilities.add(J)})},pml=function(M,z){M.compatibleSenderThemes.clear();
_.B9(z.split(","),_.Uf(_.gu.contains,Gn5)).forEach(function(J){M.compatibleSenderThemes.add(J)})},Fgc=function(M,z){M.experiments.clear();
z.split(",").forEach(function(J){M.experiments.add(J)})};var YQu=function(M,z){this.action=M;this.params=z||{}};_.ZP(P75,_.wS);_.P=P75.prototype;_.P.JSC$19597_onTick_=function(){this.JSC$19595_interval_=Math.min(3E5,this.JSC$19595_interval_*2);this.JSC$19597_listener_();this.nextTickTime_&&this.start()};
_.P.start=function(){var M=this.JSC$19595_interval_+15E3*Math.random(),z=this.delay_;z.isActive()||z.start(M);this.nextTickTime_=Date.now()+M};
_.P.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.P.isActive=function(){return this.delay_.isActive()};
_.P.reset=function(){this.delay_.stop();this.JSC$19595_interval_=5E3};_.ZP(A8,JEc);_.P=A8.prototype;_.P.subscribe=function(M,z,J){return this.pubsub_.subscribe(M,z,J)};
_.P.unsubscribe=function(M,z,J){return this.pubsub_.unsubscribe(M,z,J)};
_.P.unsubscribeByKey=function(M){return this.pubsub_.unsubscribeByKey(M)};
_.P.publish=function(M,z){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.P.dispose=function(){this.JSC$19598_disposed_||(this.JSC$19598_disposed_=!0,_.bv(this.pubsub_),this.disconnect(),_.bv(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19598_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Of({})})};
_.P.isDisposed=function(){return this.JSC$19598_disposed_};
_.P.connect=function(M,z,J){var R=this,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return _.lY(O,2),R.useAsyncBrowserChannelHandler_?O.yield(R.connectPromise_,2):O.jumpTo(2);_.X4(O);if(R.JSC$19598_disposed_||R.JSC$19598_channel_&&R.JSC$19598_channel_.getState()==2)return O.return();R.sCookie_="";R.reconnectTimer_.stop();R.connectionParams_=M||null;R.connectUi_=z||0;D=R.JSC$19598_pathPrefix_+"/test";N=R.JSC$19598_pathPrefix_+"/bind";Z=new PT(J?J.firstTestResults:null,J?J.secondTestResults:null,
R.enableAsyncTest_);if(B=R.JSC$19598_channel_)B.handler_=null;Z.handler_=R;R.JSC$19598_channel_=Z;if(R.useAsyncBrowserChannelHandler_)return R.connectPromise_=mKw(R).then(function(){return gKw(R,D,N,B,J)}),O.return(R.connectPromise_.then(function(){R.connectPromise_=_.Of()}));
gKw(R,D,N,B,J);return _.eX(O,0)})};
var gKw=function(M,z,J,R,D){sYm(M);if(M.JSC$19598_channel_){var N=_.HW("ID_TOKEN"),Z=M.JSC$19598_channel_.JSC$19550_extraHeaders_||{};N?Z["x-youtube-identity-token"]=N:delete Z["x-youtube-identity-token"];M.JSC$19598_channel_.JSC$19550_extraHeaders_=Z}nKN(M);R?(R.getState(),M.JSC$19598_channel_.connect(z,J,M.defaultQueryParams_,R.sid_,R.JSC$19550_lastArrayId_)):D?M.JSC$19598_channel_.connect(z,J,M.defaultQueryParams_,D.sessionId,D.arrayId):M.JSC$19598_channel_.connect(z,J,M.defaultQueryParams_)};
A8.prototype.disconnect=function(M){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Of())}finally{this.disconnectUi_=M||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),sYm(this),this.JSC$19598_channel_&&(this.JSC$19598_channel_.getState()==3&&iNw(this.JSC$19598_channel_),this.JSC$19598_channel_.disconnect()),this.disconnectUi_=0}};
A8.prototype.sendMessage=function(M,z){var J=this,R;return _.k(function(D){switch(D.nextAddress){case 1:_.lY(D,2);if(!J.useAsyncBrowserChannelHandler_){D.jumpTo(2);break}return D.yield(J.connectPromise_,2);case 2:_.X4(D);if(J.JSC$19598_disposed_)return D.return();R={_sc:M};z&&_.gu.extend(R,z);if(J.reconnectTimer_.isActive()||(J.JSC$19598_channel_?J.JSC$19598_channel_.getState():0)==2){J.JSC$19598_pendingMessages_.push(R);D.jumpTo(6);break}if(!J.isChannelOpened()){D.jumpTo(6);break}_.lY(D,8);if(!J.useAsyncBrowserChannelHandler_||
h1w(J,M)){D.jumpTo(8);break}return D.yield(mKw(J),8);case 8:_.X4(D,0,0,1);J.isChannelOpened()&&(h1w(J,M)||nKN(J),sYm(J),Amw(J.JSC$19598_channel_,R));_.eX(D,6,1);break;case 6:_.eX(D,0)}})};
var h1w=function(M,z){return M.enableMdxAuthForConnectionOnly_?!0:M.disableMdxAuthForAdMessages_?Object.values(wml).includes(z):M.disableMdxAuthForNonPlaybackMessages_?!Object.values(xKs).includes(z):M.disableMdxAuthForShortsMessages_?Object.values(tus).includes(z):!1};
A8.prototype.JSC$19557_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19598_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)ysw(this);else{var M=this.JSC$19598_pendingMessages_;this.JSC$19598_pendingMessages_=[];var z=M.length;nKN(this);HEu(this,M,z);csl(this)}else csl(this)};
var ysw=function(M){var z,J;_.k(function(R){if(R.nextAddress==1)return _.lY(R,2),R.yield(mKw(M),2);_.X4(R);z=M.JSC$19598_pendingMessages_;M.JSC$19598_pendingMessages_=[];J=z.length;HEu(M,z,J);csl(M);return _.eX(R,0)})},HEu=function(M,z,J){for(var R=0;R<J;++R)Amw(M.JSC$19598_channel_,z[R]);
csl(M)},csl=function(M){M.publish("handlerOpened");
M.JSC$19598_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.P=A8.prototype;_.P.JSC$19557_channelError=function(M){var z=M==2&&this.JSC$19598_channel_.JSC$19550_lastStatusCode_==401;M==4||z||this.reconnectTimer_.start();this.publish("handlerError",M,z);z=Object.keys(CZl).find(function(J){return CZl[J]===M});
this.JSC$19598_channelErrorCounter.increment("BROWSER_CHANNEL",z!=null?z:"UNKNOWN")};
_.P.JSC$19557_channelClosed=function(M,z){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(z)for(var J=z.length,R=0;R<J;++R){var D=z[R].map;D&&this.JSC$19598_pendingMessages_.push(D)}this.JSC$19598_channelClosedCounter.increment("BROWSER_CHANNEL");M&&this.pendingMapsOnClosedCounter.JSC$9899_streamzService.JSC$9754_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",M.length);z&&this.undeliveredMapsOnClosedCounter.JSC$9902_streamzService.JSC$9754_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
z.length)};
_.P.JSC$19557_channelSuccess=function(M,z){z!=null&&M!=null&&this.channelMessageSentCounter.increment()};
_.P.JSC$19557_getAdditionalParams=function(){var M={v:2};this.sCookie_&&(M.gsessionid=this.sCookie_);this.connectUi_!=0&&(M.ui=""+this.connectUi_);this.disconnectUi_!=0&&(M.ui=""+this.disconnectUi_);this.connectionParams_&&_.gu.extend(M,this.connectionParams_);return M};
_.P.JSC$19557_channelHandleArray=function(M){M[0]=="S"?this.sCookie_=M[1]:M[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19598_channel_.disconnect()):this.publish("handlerMessage",new YQu(M[0],M[1]));this.JSC$19598_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.P.isChannelOpened=function(){return!!this.JSC$19598_channel_&&this.JSC$19598_channel_.getState()==3};
var sYm=function(M){if(M.JSC$19598_channel_){var z=M.JSC$19598_getXsrfToken_(),J=M.JSC$19598_channel_.JSC$19550_extraHeaders_||{};z?J["x-youtube-lounge-xsrf-token"]=z:delete J["x-youtube-lounge-xsrf-token"];M.JSC$19598_channel_.JSC$19550_extraHeaders_=J}},mKw=function(M){if(M.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Of();
if(!M.enableCachedUpdateAuthorizationHeader_)return dKc(M);M.updateAuthorizationHeaderPromise_===null&&(M.updateAuthorizationHeaderPromise_=dKc(M));return M.updateAuthorizationHeaderPromise_},dKc=function(M){return _.mi(M.getAuthorizationHeader_().then(function(z){Kgw(M,z)}).thenCatch(function(){}),function(){M.updateAuthorizationHeaderPromise_=null})},Kgw=function(M,z){if(M.JSC$19598_channel_){var J=M.JSC$19598_channel_.JSC$19550_extraHeaders_||{};
z&&Object.keys(z).length>0?J=Object.assign({},J,z):delete J.Authorization;M.JSC$19598_channel_.JSC$19550_extraHeaders_=J}},nKN=function(M){M.getAuthorizationHeaderSync_&&!M.useAsyncBrowserChannelHandler_&&Kgw(M,M.getAuthorizationHeaderSync_())};
_.P=A8.prototype;_.P.setLoungeToken=function(M){(this.defaultQueryParams_.loungeIdToken=M)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19598_channel_){var z=this.JSC$19598_channel_.JSC$19550_extraHeaders_||{};M?z["X-YouTube-LoungeId-Token"]=M:delete z["X-YouTube-LoungeId-Token"];this.JSC$19598_channel_.JSC$19550_extraHeaders_=z}};
_.P.getDeviceId=function(){return this.defaultQueryParams_.id};
_.P.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var M=this.reconnectTimer_;M.delay_.fire();M.start()};
_.P.safeReconnect_=function(){var M=this.JSC$19598_channel_,z=0;M.JSC$19550_backChannelRequest_&&z++;M.forwardChannelRequest_&&z++;z==0&&this.connect(this.connectionParams_,this.connectUi_)};var Jt=function(M,z){var J=M.basePath;M.supportCors&&(J=M.scheme+"://"+M.domain+M.port+M.basePath);return _.Ag(J+z,{})};
ik.prototype.sendRequest=function(M,z,J,R,D,N,Z){M={format:N?"RAW":"JSON",method:M,context:this,timeout:5E3,withCredentials:!!Z,onSuccess:_.Uf(this.JSC$19603_onSuccess_,R,!N),onError:_.Uf(this.onError_,D),onTimeout:_.Uf(this.JSC$19603_onTimeout_,D)};J&&(M.postParams=J,M.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.ob(z,M)};
ik.prototype.JSC$19603_onSuccess_=function(M,z,J,R){z?M(R):M({text:J.responseText})};
ik.prototype.onError_=function(M,z){M(Error("Ek`"+z.status))};
ik.prototype.JSC$19603_onTimeout_=function(M){M(Error("Fk"))};var bk=function(M,z){return!!z&&(M.id==z||M.uuid==z)},$KG=function(M){return{name:M.name,
screenId:M.id,loungeToken:M.token,dialId:M.uuid,screenIdType:M.idType}},uCd=function(M){return new Cg(M)},qQu=function(M){return Array.isArray(M)?_.sa(M,uCd):[]},lEc=function(M){if(!M)return"null";
var z=M.token?".."+M.token.slice(-6):"-",J=M.uuid?".."+M.uuid.slice(-6):"-";return'{name:"'+M.name+'",id:'+M.id.substr(0,6)+"..,token:"+(z+",uuid:"+J+",idType:"+M.idType+"}")},aSw=function(M){return Array.isArray(M)?"["+_.sa(M,lEc).join(",")+"]":"null"};var xGu="",zv=null;var nVl=function(M,z){_.jB.call(this);var J=this;this.handler=M();this.handler.subscribe("handlerOpened",this.JSC$19610_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(R,D){J.onError(D)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=z};
_.w(nVl,_.jB);_.P=nVl.prototype;_.P.connect=function(M,z,J){this.handler.connect(M,z,J)};
_.P.disconnect=function(M){this.handler.disconnect(M)};
_.P.reconnect=function(){this.handler.reconnect()};
_.P.getDeviceId=function(){return this.handler.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.P.JSC$19610_onOpened=function(){this.dispatchEvent("channelOpened");var M=this.handler,z=this.currentScreenId;_.Qo("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!M.JSC$19598_channel_.useChunked_,sessionId:M.JSC$19598_channel_.sid_,arrayId:M.JSC$19598_channel_.JSC$19550_lastArrayId_});_.Qo("yt-remote-session-screen-id",z);M=e85();z=Qzs();_.Kp(M,z)||M.push(z);wPs(M);GhN()};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(M){this.dispatchEvent(new QYw(M))};
_.P.onError=function(M){this.dispatchEvent(new UKw(M?1:0))};
_.P.sendMessage=function(M,z){this.handler.sendMessage(M,z)};
_.P.setLoungeToken=function(M){this.handler.setLoungeToken(M)};
_.P.dispose=function(){this.handler.dispose()};var szd=function(M,z,J){var R=this;J=J===void 0?function(){return""}:J;
var D=D===void 0?new xPG:D;var N=N===void 0?new _.l9:N;this.pathPrefix=M;this.defaultQueryParams=z;this.getXsrfToken=J;this.JSC$19613_pubsub=N;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new P75(function(){var Z;((Z=R.channel)==null?void 0:MRw((new p0c(Z,Z.JSC$19521_channel_)).JSC$19531_channel_.forwardChannelRequestPool_))===0&&R.connect(R.connectionParams,R.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19613_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19613_channelOpenedCounter=new SAs;this.JSC$19613_channelClosedCounter=new ZXl;this.JSC$19613_channelMessageReceivedCounter=new BBw;this.JSC$19613_channelErrorCounter=new OXG};
szd.prototype.connect=function(M,z){M=M===void 0?{}:M;z=z===void 0?0:z;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=M,this.connectUi=z,WgG(this),(M=_.HW("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=M:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new rI(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,aJ5(this))};
var aJ5=function(M){_.YS(M.channel,"w",function(){M.channelState=3;M.reconnectTimer.reset();M.connectionParams=null;M.connectUi=0;for(var z=_.S(M.nonAckedMessagesOnChannelClosed),J=z.next();!J.done;J=z.next())J=J.value,M.channel&&M.channel.send(J);M.nonAckedMessagesOnChannelClosed=[];M.publish("webChannelOpened");M.JSC$19613_channelOpenedCounter.increment("WEB_CHANNEL")});
_.YS(M.channel,"x",function(){M.channelState=0;M.reconnectTimer.isActive()||M.publish("webChannelClosed");var z,J=(z=M.channel)==null?void 0:F7N(new p0c(z,z.JSC$19521_channel_));J&&(M.nonAckedMessagesOnChannelClosed=[].concat(_.Yj(J)));M.JSC$19613_channelClosedCounter.increment("WEB_CHANNEL")});
_.YS(M.channel,"z",function(z){var J=z.data;J[0]==="gracefulReconnect"?(M.reconnectTimer.start(),M.channel&&M.channel.close()):M.publish("webChannelMessage",new YQu(J[0],J[1]));M.lastStatusCode=z.statusCode;M.JSC$19613_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.YS(M.channel,"y",function(){M.lastStatusCode===401||M.reconnectTimer.start();M.publish("webChannelError");M.JSC$19613_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.P=szd.prototype;_.P.disconnect=function(M){this.disconnectUi=M===void 0?0:M;this.reconnectTimer.stop();WgG(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.P.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var M=this.reconnectTimer;M.delay_.fire();M.start()};
_.P.sendMessage=function(M,z){this.channel&&(WgG(this),M=Object.assign({},{_sc:M},z),this.channel.send(M))};
_.P.setLoungeToken=function(M){M||this.reconnectTimer.stop();M?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=M:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var WgG=function(M){var z=M.getXsrfToken();z?M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=z:delete M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.P=szd.prototype;_.P.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.P.publish=function(M){return this.JSC$19613_pubsub.publish.apply(this.JSC$19613_pubsub,[M].concat(_.Yj(_.H4.apply(1,arguments))))};
_.P.subscribe=function(M,z,J){return this.JSC$19613_pubsub.subscribe(M,z,J)};
_.P.unsubscribe=function(M,z,J){return this.JSC$19613_pubsub.unsubscribe(M,z,J)};
_.P.unsubscribeByKey=function(M){return this.JSC$19613_pubsub.unsubscribeByKey(M)};
_.P.dispose=function(){this.JSC$19613_disposed||(this.JSC$19613_disposed=!0,_.bv(this.JSC$19613_pubsub),this.disconnect(),_.bv(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.P.isDisposed=function(){return this.JSC$19613_disposed};var gVl=function(M){_.jB.call(this);this.webChannelService=M();this.webChannelService.subscribe("webChannelOpened",this.JSC$19621_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.w(gVl,_.jB);_.P=gVl.prototype;_.P.connect=function(M,z){this.webChannelService.connect(M,z)};
_.P.disconnect=function(M){this.webChannelService.disconnect(M)};
_.P.reconnect=function(){this.webChannelService.reconnect()};
_.P.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.P.JSC$19621_onOpened=function(){this.dispatchEvent("channelOpened")};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(M){this.dispatchEvent(new QYw(M))};
_.P.onError=function(){this.dispatchEvent(new UKw(this.webChannelService.lastStatusCode===401?1:0))};
_.P.sendMessage=function(M,z){this.webChannelService.sendMessage(M,z)};
_.P.setLoungeToken=function(M){this.webChannelService.setLoungeToken(M)};
_.P.dispose=function(){this.webChannelService.dispose()};var WQs=Date.now(),R6=null,ukl=Array(50),P1=-1,qAw=!1;_.ZP(S8,_.lk);S8.prototype.getScreens=function(){return this.screens};
S8.prototype.contains=function(M){return!!lSi(this.screens,M)};
S8.prototype.get=function(M){return M?rw(this.screens,M):null};
var Vuc=function(M,z){var J=M.get(z.uuid)||M.get(z.id);if(J)return M=J.name,J.id=z.id||J.id,J.name=z.name,J.token=z.token,J.uuid=z.uuid||J.uuid,J.name!=M;M.screens.push(z);return!0},EKv=function(M,z){var J=M.screens.length!=z.length;
M.screens=_.B9(M.screens,function(N){return!!lSi(z,N)});
for(var R=z.length,D=0;D<R;D++)J=Vuc(M,z[D])||J;return J},fJm=function(M,z){var J=M.screens.length;
M.screens=_.B9(M.screens,function(R){return!(R||z?!R!=!z?0:R.id==z.id:1)});
return M.screens.length<J};
S8.prototype.info=function(M){Dj(this.JSC$19622_logName_,M)};var Lg5=function(M,z,J,R,D){_.lk.call(this);this.JSC$19625_http_=M;this.pairingCode_=z;this.deviceId_=J;this.friendlyName_=R;this.enableShortLivedLoungeToken_=D;this.pollIndex_=0;this.JSC$19625_xhr_=null;this.JSC$19625_timer_=NaN};
_.w(Lg5,_.lk);_.P=Lg5.prototype;_.P.start=function(){!this.JSC$19625_xhr_&&isNaN(this.JSC$19625_timer_)&&this.poll_()};
_.P.stop=function(){this.JSC$19625_xhr_&&(this.JSC$19625_xhr_.abort(),this.JSC$19625_xhr_=null);isNaN(this.JSC$19625_timer_)||(_.Tw(this.JSC$19625_timer_),this.JSC$19625_timer_=NaN)};
_.P.disposeInternal=function(){this.stop();_.lk.prototype.disposeInternal.call(this)};
_.P.poll_=function(){this.JSC$19625_timer_=NaN;this.JSC$19625_xhr_=_.ob(Jt(this.JSC$19625_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.xF)(this.JSC$19627_onSuccess_,this),onError:(0,_.xF)(this.onError_,this),onTimeout:(0,_.xF)(this.JSC$19627_onTimeout_,this)})};
_.P.JSC$19627_onSuccess_=function(M,z){this.JSC$19625_xhr_=null;M=z.screen||{};M.dialId=this.deviceId_;M.name=this.friendlyName_;z=-1;this.enableShortLivedLoungeToken_&&M.shortLivedLoungeToken&&M.shortLivedLoungeToken.value&&M.shortLivedLoungeToken.refreshIntervalMs&&(M.screenIdType="shortLived",M.loungeToken=M.shortLivedLoungeToken.value,z=M.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Cg(M),z)};
_.P.onError_=function(M){this.JSC$19625_xhr_=null;M.status&&M.status==404?this.pollIndex_>=Asm.length?this.publish("pairingFailed",Error("Gk")):(M=Asm[this.pollIndex_],this.JSC$19625_timer_=_.BJ((0,_.xF)(this.poll_,this),M),this.pollIndex_++):this.publish("pairingFailed",Error("Hk`"+M.status))};
_.P.JSC$19627_onTimeout_=function(){this.JSC$19625_xhr_=null;this.publish("pairingFailed",Error("Ik"))};
var Asm=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.ZP(kZ,S8);_.P=kZ.prototype;_.P.start=function(){Zj(this)&&this.publish("screenChange");!_.UE("yt-remote-lounge-token-expiration")&&iEv(this);_.Tw(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.BJ((0,_.xF)(this.start,this),1E4)};
_.P.add=function(M,z){Zj(this);Vuc(this,M);CT5(this,!1);this.publish("screenChange");z(M);M.token||iEv(this)};
_.P.remove=function(M,z){var J=Zj(this);fJm(this,M)&&(CT5(this,!1),J=!0);z(M);J&&this.publish("screenChange")};
_.P.updateName=function(M,z,J,R){var D=Zj(this),N=this.get(M.id);N?(N.name!=z&&(N.name=z,CT5(this,!1),D=!0),J(M)):R(Error("Jk"));D&&this.publish("screenChange")};
_.P.disposeInternal=function(){_.Tw(this.loungeTokenRefreshTimer_);kZ.superClass_.disposeInternal.call(this)};
var iEv=function(M){if(M.screens.length){var z=_.sa(M.screens,function(R){return R.id}),J=Jt(M.JSC$19629_http_,"/pairing/get_lounge_token_batch");
M.JSC$19629_http_.sendRequest("POST",J,{screen_ids:z.join(",")},(0,_.xF)(M.handleLoungeTokens_,M),(0,_.xF)(M.handleLoungeTokenError_,M))}};
kZ.prototype.handleLoungeTokens_=function(M){Zj(this);var z=this.screens.length;M=M&&M.screens||[];for(var J=M.length,R=0;R<J;++R){var D=M[R],N=this.get(D.screenId);N&&(N.token=D.loungeToken,--z)}CT5(this,!z);z&&Dj(this.JSC$19622_logName_,"Missed "+z+" lounge tokens.")};
kZ.prototype.handleLoungeTokenError_=function(M){Dj(this.JSC$19622_logName_,"Requesting lounge tokens failed: "+M)};
var Zj=function(M){if(_.U("deprecate_pair_servlet_enabled"))return EKv(M,[]);var z=qQu(jzt());z=_.B9(z,function(J){return!J.uuid});
return EKv(M,z)},CT5=function(M,z){FQc(_.sa(M.screens,$KG));
z&&pPu()};var T9=function(M,z){_.lk.call(this);this.getScreensToCheck_=z;z=(z=_.UE("yt-remote-online-screen-ids")||"")?z.split(","):[];for(var J={},R=this.getScreensToCheck_(),D=R.length,N=0;N<D;++N){var Z=R[N].id;J[Z]=_.Kp(z,Z)}this.screenIdSet_=J;this.JSC$19632_http_=M;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;bEs("Initialized with "+(0,_.ns)(this.screenIdSet_))};
_.w(T9,_.lk);T9.prototype.isOnline=function(M){return!!this.screenIdSet_[M]};
T9.prototype.start=function(){var M=parseInt(_.UE("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Ss()-144E5<M?0:M)?rs5(this):(this.fastCheckEndTime_=_.Ss()+3E5,_.Qo("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
T9.prototype.isEmpty=function(){return _.gu.isEmpty(this.screenIdSet_)};
T9.prototype.update=function(){bEs("Updating availability on schedule.");var M=this.getScreensToCheck_(),z=_.gu.filter(this.screenIdSet_,function(J,R){return J&&!!rw(M,R)},this);
MCc(this,z)};
var zjs=function(M,z,J){var R=Jt(M.JSC$19632_http_,"/pairing/get_screen_availability");M.JSC$19632_http_.sendRequest("POST",R,{lounge_token:z.token},(0,_.xF)(function(D){D=D.screens||[];for(var N=D.length,Z=0;Z<N;++Z)if(D[Z].loungeToken==z.token){J(D[Z].status=="online");return}J(!1)},M),(0,_.xF)(function(){J(!1)},M))};
T9.prototype.disposeInternal=function(){_.Tw(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.lk.prototype.disposeInternal.call(this)};
var MCc=function(M,z){a:if(_.gu.getCount(z)!=_.gu.getCount(M.screenIdSet_))var J=!1;else{J=_.gu.getKeys(z);for(var R=J.length,D=0;D<R;++D)if(!M.screenIdSet_[J[D]]){J=!1;break a}J=!0}J||(bEs("Updated online screens: "+(0,_.ns)(M.screenIdSet_)),M.screenIdSet_=z,M.publish("screenChange"));Jpm(M)},rs5=function(M){isNaN(M.refreshTimer_)||_.Tw(M.refreshTimer_);
M.refreshTimer_=_.BJ((0,_.xF)(M.requestScreenAvailability_,M),M.fastCheckEndTime_>0&&M.fastCheckEndTime_<_.Ss()?2E4:1E4)};
T9.prototype.requestScreenAvailability_=function(){_.Tw(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var M=Rjm(this);if(_.gu.getCount(M)){var z=Jt(this.JSC$19632_http_,"/pairing/get_screen_availability"),J={lounge_token:_.gu.getKeys(M).join(",")};this.currentRequest_=this.JSC$19632_http_.sendRequest("POST",z,J,(0,_.xF)(this.onScreenAvailability_,this,M),(0,_.xF)(this.onScreenAvailabilityError_,this))}else MCc(this,{}),rs5(this)};
T9.prototype.onScreenAvailability_=function(M,z){this.currentRequest_=null;var J=_.gu.getKeys(Rjm(this));if(_.Lp(J,_.gu.getKeys(M))){z=z.screens||[];J={};for(var R=z.length,D=0;D<R;++D)J[M[z[D].loungeToken]]=z[D].status=="online";MCc(this,J);rs5(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
T9.prototype.onScreenAvailabilityError_=function(M){this.warn_("Screen availability failed: "+M);this.currentRequest_=null;rs5(this)};
var bEs=function(M){Dj("OnlineScreenService",M)};
T9.prototype.warn_=function(M){Dj("OnlineScreenService",M)};
var Rjm=function(M){var z={};_.VU(M.getScreensToCheck_(),function(J){J.token?z[J.token]=J.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return z},Jpm=function(M){M=_.gu.getKeys(_.gu.filter(M.screenIdSet_,function(z){return z}));
M.sort(_.Fwp);M.length?_.Qo("yt-remote-online-screen-ids",M.join(","),60):_.va("yt-remote-online-screen-ids")};_.ZP(B1,S8);_.P=B1.prototype;_.P.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.P.add=function(M,z,J){this.localScreenService_.add(M,z,J)};
_.P.remove=function(M,z,J){this.localScreenService_.remove(M,z,J);this.onlineScreenService_.update()};
_.P.updateName=function(M,z,J,R){this.localScreenService_.contains(M)?this.localScreenService_.updateName(M,z,J,R):(M="Updating name of unknown screen: "+M.name,Dj(this.JSC$19622_logName_,M),R(Error(M)))};
_.P.getScreens=function(M){return M?this.screens:hJw(this.screens,_.B9(this.automaticScreens_,function(z){return!this.contains(z)},this))};
_.P.JSC$19637_getOnlineScreens=function(){return _.B9(this.getScreens(!0),function(M){return this.onlineScreenService_.isOnline(M.id)},this)};
var Nbc=function(M,z,J,R,D,N){M.info("getAutomaticScreenByIds "+J+" / "+z);J||(J=M.deviceToScreenId_[z]);var Z=M.getScreens(),B=J?rw(Z,J):null;J&&(M.disableAutomaticScreenCache_||B)||(B=rw(Z,z));if(B){B.uuid=z;var O=IF(M,B);zjs(M.onlineScreenService_,O,function(X){D(X?O:null)})}else J?D4i(M,J,(0,_.xF)(function(X){var l=IF(this,new Cg({name:R,
screenId:J,loungeToken:X,dialId:z||""}));zjs(this.onlineScreenService_,l,function(e){D(e?l:null)})},M),N):D(null)};
B1.prototype.JSC$19637_getScreenByPollingPairingCode=function(M,z,J,R,D,N){var Z=this;this.info("getDialScreenByPairingCode "+M+" / "+z);var B=new Lg5(this.JSC$19635_http_,M,z,J,R);B.subscribe("pairingComplete",function(O,X){_.bv(B);D(IF(Z,O),X)});
B.subscribe("pairingFailed",function(O){_.bv(B);N(O)});
B.start();return(0,_.xF)(B.stop,B)};
var Plc=function(M,z){for(var J=M.screens.length,R=0;R<J;++R)if(M.screens[R].name==z)return M.screens[R];return null};
B1.prototype.JSC$19637_getScreenByPairingCode=function(M,z,J,R){_.ob(Jt(this.JSC$19635_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:M},timeout:5E3,onSuccess:(0,_.xF)(function(D,N){D=new Cg(N.screen||{});if(!D.name||Plc(this,D.name)){a:{N=D.name;for(var Z=2,B=z(N,Z);Plc(this,B);){Z++;if(Z>20)break a;B=z(N,Z)}N=B}D.name=N}J(IF(this,D))},this),
onError:(0,_.xF)(function(D){R(Error("Kk`"+D.status))},this),
onTimeout:(0,_.xF)(function(){R(Error("Lk"))},this)})};
var SPw=function(M,z,J){zjs(M.onlineScreenService_,z,J)};
B1.prototype.disposeInternal=function(){_.bv(this.localScreenService_);_.bv(this.onlineScreenService_);B1.superClass_.disposeInternal.call(this)};
var D4i=function(M,z,J,R){M.info("requestLoungeToken_ for "+z);var D={postParams:{screen_ids:z},method:"POST",context:M,onSuccess:function(N,Z){N=Z&&Z.screens||[];N[0]&&N[0].screenId==z?J(N[0].loungeToken):R(Error("Mk"))},
onError:function(){R(Error("Nk"))}};
_.ob(Jt(M.JSC$19635_http_,"/pairing/get_lounge_token_batch"),D)},Zkc=function(M){M.screens=M.localScreenService_.getScreens();
for(var z=_.gu.transpose(M.deviceToScreenId_),J=M.screens.length,R=0;R<J;++R){var D=M.screens[R];D.uuid=z[D.id]||""}M.info("Updated manual screens: "+aSw(M.screens))};
B1.prototype.handleScreenChange_=function(){Zkc(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Ve5=function(M){ksN(M);M.localScreenService_=new kZ(M.JSC$19635_http_);M.localScreenService_.subscribe("screenChange",(0,_.xF)(M.handleScreenChange_,M));Zkc(M);M.disableAutomaticScreenCache_||(M.automaticScreens_=qQu(_.UE("yt-remote-automatic-screen-cache")||[]));ksN(M);M.info("Initializing automatic screens: "+aSw(M.automaticScreens_));M.onlineScreenService_=new T9(M.JSC$19635_http_,(0,_.xF)(M.getScreens,M,!0));M.onlineScreenService_.subscribe("screenChange",(0,_.xF)(function(){this.publish("onlineScreenChange")},
M))},IF=function(M,z){var J=M.get(z.id);
J?(J.uuid=z.uuid,z=J):((J=rw(M.automaticScreens_,z.uuid))?(J.id=z.id,J.token=z.token,z=J):M.automaticScreens_.push(z),M.disableAutomaticScreenCache_||Bbl(M));ksN(M);M.deviceToScreenId_[z.uuid]=z.id;_.Qo("yt-remote-device-id-map",M.deviceToScreenId_,31536E3);return z},Bbl=function(M){M=_.B9(M.automaticScreens_,function(z){return z.idType!="shortLived"});
_.Qo("yt-remote-automatic-screen-cache",_.sa(M,$KG))},ksN=function(M){M.deviceToScreenId_=_.UE("yt-remote-device-id-map")||{}};
B1.prototype.dispose=B1.prototype.dispose;_.ZP(Or,_.lk);var oF=function(M,z){M.screen_=z;M.publish("sessionScreen",M.screen_)},Okm=function(M,z){M.screen_&&(M.screen_.token=z,IF(M.JSC$19639_screenService_,M.screen_));
M.publish("sessionScreen",M.screen_)};
Or.prototype.onSessionStopped=function(M){this.isDisposed()||(M&&(XA(this,""+M),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Or.prototype.info=function(M){Dj(this.JSC$19639_logName_,M)};
var XA=function(M,z){Dj(M.JSC$19639_logName_,z)};
Or.prototype.JSC$19641_getCastSession=function(){return null};
Or.prototype.setDisplayStatus=function(M){var z=this.receiver_;M?(z.displayStatus=new chrome.cast.ReceiverDisplayStatus(M,[]),z.displayStatus.showStop=!0):z.displayStatus=null;chrome.cast.setReceiverDisplayStatus(z,(0,_.xF)(function(){this.info("Updated receiver status for "+z.friendlyName+": "+M)},this),(0,_.xF)(function(){XA(this,"Failed to update receiver status for: "+z.friendlyName)},this))};
Or.prototype.disposeInternal=function(){this.setDisplayStatus("");Or.superClass_.disposeInternal.call(this)};var lp=function(M,z,J){Or.call(this,M,z,"CastSession");var R=this;this.config_=J;this.JSC$19644_session_=null;this.JSC$19644_boundSessionUpdate_=(0,_.xF)(this.JSC$19646_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.xF)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.BJ(function(){TbN(R,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19644_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19644_isInitLoungeToken_=!1;this.JSC$19644_lastLoungeTokenRefreshError_="unknown"};
_.w(lp,Or);_.P=lp.prototype;
_.P.setCastSession=function(M){if(this.JSC$19644_session_){if(this.JSC$19644_session_==M)return;XA(this,"Overriding cast session with new session object");I2t(this);this.JSC$19644_isInitLoungeToken_=!1;this.JSC$19644_lastLoungeTokenRefreshError_="unknown";this.JSC$19644_session_.removeUpdateListener(this.JSC$19644_boundSessionUpdate_);this.JSC$19644_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19644_session_=M;this.JSC$19644_session_.addUpdateListener(this.JSC$19644_boundSessionUpdate_);this.JSC$19644_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);o1u(this,"getMdxSessionStatus")};
_.P.launchWithParams=function(M){this.info("launchWithParams no-op for Cast: "+(0,_.ns)(M))};
_.P.stop=function(){if(this.JSC$19644_session_)this.JSC$19644_session_.stop((0,_.xF)(function(){this.onSessionStopped()},this),(0,_.xF)(function(){this.onSessionStopped(Error("Ok"))},this));
else this.onSessionStopped(Error("Pk"))};
_.P.setDisplayStatus=function(){};
_.P.disposeInternal=function(){this.info("disposeInternal");I2t(this);this.JSC$19644_session_&&(this.JSC$19644_session_.removeUpdateListener(this.JSC$19644_boundSessionUpdate_),this.JSC$19644_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19644_session_=null;Or.prototype.disposeInternal.call(this)};
var l2u=function(M,z){_.Tw(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0;z==0?Xgl(M):M.getLoungeTokenTimeoutKey_=_.BJ(function(){Xgl(M)},z)},Xgl=function(M){o1u(M,"getLoungeToken");
_.Tw(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=_.BJ(function(){ej5(M,null)},3E4)},o1u=function(M,z){M.info("sendYoutubeMessage_: "+z+" "+(0,_.ns)(void 0));
var J={};J.type=z;M.JSC$19644_session_?M.JSC$19644_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",J,function(){},(0,_.xF)(function(){XA(this,"Failed to send message: "+z+".")},M)):XA(M,"Sending yt message without session: "+(0,_.ns)(J))};
lp.prototype.onYoutubeMessage_=function(M,z){if(!this.isDisposed())if(z)if(z=(0,_.m4)(z),_.E8(z))switch(M=""+z.type,z=z.data||{},this.info("onYoutubeMessage_: "+M+" "+(0,_.ns)(z)),M){case "mdxSessionStatus":TbN(this,z);break;case "loungeToken":ej5(this,z);break;default:XA(this,"Unknown youtube message: "+M)}else XA(this,"Unable to parse message.");else XA(this,"No data in message.")};
var QLi=function(M,z){if(z)M.info("onConnectedScreenId_: Received screenId: "+z),M.screen_&&M.screen_.id==z||M.getScreen_(z,function(J){oF(M,J)},function(){return M.onSessionStopped()},5);
else M.onSessionStopped(Error("Qk"))},v1d=function(M,z,J){M.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(z));
var R=new Cg(z);U4w(M,R,function(D){D?(M.JSC$19644_isInitLoungeToken_=!0,IF(M.JSC$19639_screenService_,R),oF(M,R),M.JSC$19644_lastLoungeTokenRefreshError_="unknown",l2u(M,J)):(_.$y(Error("Rk`"+JSON.stringify(z))),M.onSessionStopped())},5)},TbN=function(M,z){_.Tw(M.sessionStatusTimeoutKey_);
M.sessionStatusTimeoutKey_=0;if(z)M.config_.enableCastLoungeToken&&z.loungeToken?z.deviceId?M.screen_&&M.screen_.uuid==z.deviceId||(z.loungeTokenRefreshIntervalMs?v1d(M,{name:M.receiver_.friendlyName,screenId:z.screenId,loungeToken:z.loungeToken,dialId:z.deviceId,screenIdType:"shortLived"},z.loungeTokenRefreshIntervalMs):(_.$y(Error("Tk`"+JSON.stringify(z))),QLi(M,z.screenId))):(_.$y(Error("Sk`"+JSON.stringify(z))),QLi(M,z.screenId)):QLi(M,z.screenId);else M.onSessionStopped(Error("Qk"))},ej5=function(M,
z){_.Tw(M.onLoungeTokenTimeoutKey_);
M.onLoungeTokenTimeoutKey_=0;var J=null;if(z)if(z.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==z.loungeToken&&(J="staleLoungeToken")}else J="missingLoungeToken";else J="noLoungeTokenResponse";J?(M.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(z)+", error: "+J)),M.JSC$19644_lastLoungeTokenRefreshError_=J,l2u(M,3E4)):(Okm(M,z.loungeToken),M.JSC$19644_isInitLoungeToken_=!1,M.JSC$19644_lastLoungeTokenRefreshError_="unknown",l2u(M,z.loungeTokenRefreshIntervalMs))};
lp.prototype.getScreen_=function(M,z,J,R){_.Tw(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Nbc(this.JSC$19639_screenService_,this.receiver_.label,M,this.receiver_.friendlyName,(0,_.xF)(function(D){D?z(D):R>=0?(XA(this,"Screen "+M+" appears to be offline. "+R+" retries left."),this.getScreenTimeoutKey_=_.BJ((0,_.xF)(this.getScreen_,this,M,z,J,R-1),300)):J(Error("Uk"))},this),J)};
var U4w=function(M,z,J,R){_.Tw(M.JSC$19644_checkScreenAvailabilityTimeoutKey_);M.JSC$19644_checkScreenAvailabilityTimeoutKey_=0;SPw(M.JSC$19639_screenService_,z,function(D){D||R<0?J(D):M.JSC$19644_checkScreenAvailabilityTimeoutKey_=_.BJ(function(){U4w(M,z,J,R-1)},300)})};
lp.prototype.JSC$19641_getCastSession=function(){return this.JSC$19644_session_};
lp.prototype.JSC$19646_onSessionUpdate_=function(M){this.isDisposed()||M||(XA(this,"Cast session died."),this.onSessionStopped())};
var I2t=function(M){_.Tw(M.getScreenTimeoutKey_);M.getScreenTimeoutKey_=0;_.Tw(M.JSC$19644_checkScreenAvailabilityTimeoutKey_);M.JSC$19644_checkScreenAvailabilityTimeoutKey_=0;_.Tw(M.sessionStatusTimeoutKey_);M.sessionStatusTimeoutKey_=0;_.Tw(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=0;_.Tw(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0};var er=function(M,z,J,R){Or.call(this,M,z,"DialSession");this.config_=R;this.JSC$19648_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19648_theme_=J;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19648_deferredLaunchDeadlineTimer_=NaN;this.JSC$19648_boundSessionUpdate_=(0,_.xF)(this.JSC$19650_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19648_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19648_isInitLoungeToken_=!1;this.JSC$19648_lastLoungeTokenRefreshError_="unknown"};
_.w(er,Or);er.prototype.setCastSession=function(M){this.JSC$19648_session_=M;this.JSC$19648_session_.addUpdateListener(this.JSC$19648_boundSessionUpdate_)};
er.prototype.launchWithParams=function(M){this.connectData_=M;this.deferredLaunch_()};
er.prototype.stop=function(){Gsm(this);if(this.JSC$19648_session_)this.JSC$19648_session_.stop((0,_.xF)(this.onSessionStopped,this,null),(0,_.xF)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
er.prototype.disposeInternal=function(){Gsm(this);this.JSC$19648_session_&&this.JSC$19648_session_.removeUpdateListener(this.JSC$19648_boundSessionUpdate_);this.JSC$19648_session_=null;Or.prototype.disposeInternal.call(this)};
var wgw=function(M){var z;return!!(M.config_.enableDialLoungeToken&&((z=M.JSC$19648_session_)==null?0:z.getDialAppInfo))},x4u=function(M){M.cancelPolling_=M.JSC$19639_screenService_.JSC$19637_getScreenByPollingPairingCode(M.reversePairingCode_,M.receiver_.label,M.receiver_.friendlyName,wgw(M),function(z,J){M.cancelPolling_=function(){};
M.JSC$19648_isInitLoungeToken_=!0;oF(M,z);z.idType=="shortLived"&&J>0&&Qk(M,J)},function(z){M.cancelPolling_=function(){};
M.onSessionStopped(z)})};
er.prototype.JSC$19650_onSessionUpdate_=function(M){this.isDisposed()||M||(XA(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var tCl=function(M){var z={};z.pairingCode=M.reversePairingCode_;z.theme=M.JSC$19648_theme_;mGt()&&(z.env_useStageMdx=1);return _.Xh(z)},jLu=function(M){return new Promise(function(z){M.reversePairingCode_=oVG();
if(M.connectData_){var J=new chrome.cast.DialLaunchResponse(!0,tCl(M));z(J);x4u(M)}else M.deferredLaunch_=function(){_.Tw(M.JSC$19648_deferredLaunchDeadlineTimer_);M.deferredLaunch_=function(){};
M.JSC$19648_deferredLaunchDeadlineTimer_=NaN;var R=new chrome.cast.DialLaunchResponse(!0,tCl(M));z(R);x4u(M)},M.JSC$19648_deferredLaunchDeadlineTimer_=_.BJ(function(){M.deferredLaunch_()},100)})},FGw=function(M,z,J){M.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(z));
var R=new Cg(z);return(new Promise(function(D){pgv(M,R,function(N){N?(M.JSC$19648_isInitLoungeToken_=!0,IF(M.JSC$19639_screenService_,R),oF(M,R),Qk(M,J)):_.$y(Error("Wk`"+JSON.stringify(z)));D(N)},5)})).then(function(D){return D?new chrome.cast.DialLaunchResponse(!1):jLu(M)})},YPw=function(M,z){var J=M.launchData_.receiver.label,R=M.receiver_.friendlyName;
return(new Promise(function(D){Nbc(M.JSC$19639_screenService_,J,z,R,function(N){N&&N.token&&oF(M,N);D(N)},function(N){XA(M,"Failed to get DIAL screen: "+N);
D(null)})})).then(function(D){return D&&D.token?new chrome.cast.DialLaunchResponse(!1):jLu(M)})},pgv=function(M,z,J,R){_.Tw(M.JSC$19648_checkScreenAvailabilityTimeoutKey_);
M.JSC$19648_checkScreenAvailabilityTimeoutKey_=0;SPw(M.JSC$19639_screenService_,z,function(D){D||R<0?J(D):M.JSC$19648_checkScreenAvailabilityTimeoutKey_=_.BJ(function(){pgv(M,z,J,R-1)},300)})},Qk=function(M,z){M.info("getDialAppInfoWithTimeout_ "+z);
wgw(M)&&(_.Tw(M.getDialAppInfoTimeoutKey_),M.getDialAppInfoTimeoutKey_=0,z==0?m4t(M):M.getDialAppInfoTimeoutKey_=_.BJ(function(){m4t(M)},z))},m4t=function(M){wgw(M)&&M.JSC$19648_session_.getDialAppInfo(function(z){M.info("getDialAppInfo dialLaunchData: "+JSON.stringify(z));
z=z.extraData||{};var J=null;if(z.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==z.loungeToken&&(J="staleLoungeToken")}else J="missingLoungeToken";J?(M.JSC$19648_lastLoungeTokenRefreshError_=J,Qk(M,3E4)):(M.JSC$19648_isInitLoungeToken_=!1,M.JSC$19648_lastLoungeTokenRefreshError_="unknown",Okm(M,z.loungeToken),Qk(M,z.loungeTokenRefreshIntervalMs))},function(z){M.info("getDialAppInfo error: "+z);
M.JSC$19648_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Qk(M,3E4)})},Gsm=function(M){_.Tw(M.JSC$19648_checkScreenAvailabilityTimeoutKey_);
M.JSC$19648_checkScreenAvailabilityTimeoutKey_=0;_.Tw(M.getDialAppInfoTimeoutKey_);M.getDialAppInfoTimeoutKey_=0;M.cancelPolling_();M.cancelPolling_=function(){};
_.Tw(M.JSC$19648_deferredLaunchDeadlineTimer_)};var Ut=function(M,z){Or.call(this,M,z,"ManualSession");this.JSC$19652_deferredLaunchDeadlineTimer_=_.BJ((0,_.xF)(this.launchWithParams,this,null),150)};
_.w(Ut,Or);Ut.prototype.stop=function(){this.onSessionStopped()};
Ut.prototype.setCastSession=function(){};
Ut.prototype.launchWithParams=function(){_.Tw(this.JSC$19652_deferredLaunchDeadlineTimer_);this.JSC$19652_deferredLaunchDeadlineTimer_=NaN;var M=rw(this.JSC$19639_screenService_.getScreens(),this.receiver_.label);if(M)oF(this,M);else this.onSessionStopped(Error("Xk"))};
Ut.prototype.disposeInternal=function(){_.Tw(this.JSC$19652_deferredLaunchDeadlineTimer_);this.JSC$19652_deferredLaunchDeadlineTimer_=NaN;Or.prototype.disposeInternal.call(this)};var XW=function(M,z){_.lk.call(this);this.config_=z;this.JSC$19655_screenService_=M;this.JSC$19655_appId_=z.appId||"233637DE";this.JSC$19655_theme_=z.theme||"cl";this.disableDial_=z.disableCastApi||!1;this.forceMirroring_=z.forceMirroring||!1;this.JSC$19655_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.xF)(this.onReceiverAction_,this)};
_.w(XW,_.lk);
XW.prototype.init=function(M,z){chrome.cast.timeout.requestSession=3E4;var J=new chrome.cast.SessionRequest(this.JSC$19655_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.U("desktop_enable_cast_connect")&&(J.androidReceiverCompatible=!0);this.disableDial_||(J.dialRequest=new chrome.cast.DialRequest("YouTube"));var R=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;M=M||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var D=(0,_.xF)(this.onReceiverUpdated_,
this);J=new chrome.cast.ApiConfig(J,(0,_.xF)(this.onSessionEstablished_,this),D,R,M);J.customDialLaunchCallback=(0,_.xF)(this.onDialLaunchRequested_,this);chrome.cast.initialize(J,(0,_.xF)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),dGw(),this.JSC$19655_screenService_.subscribe("onlineScreenChange",(0,_.xF)(this.JSC$19657_onScreenChange_,this)),this.customReceivers_=g1s(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.xF)(function(N){this.warn_("Failed to set initial custom receivers: "+(0,_.ns)(N))},this)),this.publish("yt-remote-cast2-availability-change",vT(this)),z(!0))},this),(0,_.xF)(function(N){this.warn_("Failed to initialize API: "+(0,_.ns)(N));
z(!1)},this))};
XW.prototype.setConnectedScreenStatus=function(M,z){G9("Setting connected screen ID: "+M+" -> "+z);if(this.JSC$19655_session_){var J=this.JSC$19655_session_.screen_;if(!M||J&&J.id!=M)G9("Unsetting old screen status: "+this.JSC$19655_session_.receiver_.friendlyName),w7(this,null)}if(M&&z){if(!this.JSC$19655_session_){M=rw(this.JSC$19655_screenService_.getScreens(),M);if(!M){G9("setConnectedScreenStatus: Unknown screen.");return}if(M.idType=="shortLived"){G9("setConnectedScreenStatus: Screen with id type to be short lived.");
return}J=sLc(this,M);J||(G9("setConnectedScreenStatus: Connected receiver not custom..."),J=new chrome.cast.Receiver(M.uuid?M.uuid:M.id,M.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(J),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.xF)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.ns)(R))},this)));
G9("setConnectedScreenStatus: new active receiver: "+J.friendlyName);w7(this,new Ut(this.JSC$19655_screenService_,J),!0)}this.JSC$19655_session_.setDisplayStatus(z)}else G9("setConnectedScreenStatus: no screen.")};
var sLc=function(M,z){return z?_.he(M.customReceivers_,function(J){return bk(z,J.label)},M):null};
XW.prototype.setLaunchParams=function(M){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19655_session_?this.JSC$19655_session_.launchWithParams(M):this.warn_("Setting connection data without a session")};
XW.prototype.JSC$19657_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19655_session_?(this.JSC$19655_session_.stop(),w7(this,null)):G9("Stopping non-existing session")};
XW.prototype.requestSession=function(){chrome.cast.requestSession((0,_.xF)(this.onSessionEstablished_,this),(0,_.xF)(this.onSessionRequestFailed_,this))};
XW.prototype.disposeInternal=function(){this.JSC$19655_screenService_.unsubscribe("onlineScreenChange",(0,_.xF)(this.JSC$19657_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.$o(_.qH("yt.mdx.remote.debug.handlers_")||[],y9w);_.bv(this.JSC$19655_session_);_.lk.prototype.disposeInternal.call(this)};
var G9=function(M){Dj("Controller",M)};
XW.prototype.warn_=function(M){Dj("Controller",M)};
var y9w=function(M){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(M)},vT=function(M){return M.hasCastReceiver_||!!M.customReceivers_.length||!!M.JSC$19655_session_},w7=function(M,z,J){z!=M.JSC$19655_session_&&(_.bv(M.JSC$19655_session_),(M.JSC$19655_session_=z)?(J?M.publish("yt-remote-cast2-receiver-resumed",z.receiver_):M.publish("yt-remote-cast2-receiver-selected",z.receiver_),z.subscribe("sessionScreen",(0,_.xF)(M.onSessionScreen_,M,z)),z.subscribe("sessionFailed",
function(){return n1t(M,z)}),z.screen_?M.publish("yt-remote-cast2-session-change",z.screen_):J&&M.JSC$19655_session_.launchWithParams(null)):M.publish("yt-remote-cast2-session-change",null))},n1t=function(M,z){M.JSC$19655_session_==z&&M.publish("yt-remote-cast2-session-failed")};
_.P=XW.prototype;_.P.onSessionScreen_=function(M,z){this.JSC$19655_session_==M&&(z||w7(this,null),this.publish("yt-remote-cast2-session-change",z))};
_.P.onReceiverAction_=function(M,z){if(!this.isDisposed())if(M)switch(M.friendlyName=chrome.cast.unescape(M.friendlyName),G9("onReceiverAction_ "+M.label+" / "+M.friendlyName+"-- "+z),z){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19655_session_)if(this.JSC$19655_session_.receiver_.label!=M.label)G9("onReceiverAction_: Stopping active receiver: "+this.JSC$19655_session_.receiver_.friendlyName),this.JSC$19655_session_.stop();else{G9("onReceiverAction_: Casting to active receiver.");this.JSC$19655_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19655_session_.screen_);break}switch(M.receiverType){case chrome.cast.ReceiverType.CUSTOM:w7(this,new Ut(this.JSC$19655_screenService_,M));break;case chrome.cast.ReceiverType.DIAL:w7(this,new er(this.JSC$19655_screenService_,M,this.JSC$19655_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:w7(this,new lp(this.JSC$19655_screenService_,M,this.config_));break;default:this.warn_("Unknown receiver type: "+M.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19655_session_&&
this.JSC$19655_session_.receiver_.label==M.label?this.JSC$19655_session_.stop():this.warn_("Stopping receiver w/o session: "+M.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.P.onDialLaunchRequested_=function(M){if(this.isDisposed())return Promise.reject(Error("Yk"));var z=M.receiver;z.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+z.friendlyName),z.receiverType=chrome.cast.ReceiverType.DIAL);var J=this.JSC$19655_session_?this.JSC$19655_session_.receiver_:null;if(!J||J.label!=z.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+z.friendlyName),Promise.reject(Error("Zk"));if(J&&J.label==z.label&&J.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19655_session_.screen_)return G9("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19655_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+J.receiverType+'" to "dial" for '+z.friendlyName);w7(this,new er(this.JSC$19655_screenService_,z,this.JSC$19655_theme_,this.config_))}z=this.JSC$19655_session_;z.launchData_=M;z.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(M=z.launchData_.extraData||{},J=M.screenId||null,wgw(z)&&M.loungeToken?M.loungeTokenRefreshIntervalMs?M=FGw(z,{name:z.receiver_.friendlyName,screenId:M.screenId,loungeToken:M.loungeToken,dialId:z.launchData_.receiver.label,screenIdType:"shortLived"},M.loungeTokenRefreshIntervalMs):(_.$y(Error("Vk`"+JSON.stringify(M))),M=YPw(z,J)):M=YPw(z,J)):M=jLu(z);return M};
_.P.onSessionEstablished_=function(M){var z=this;if(!this.isDisposed()&&!this.forceMirroring_){G9("New cast session ID: "+M.sessionId);var J=M.receiver;if(J.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19655_session_)if(J.receiverType==chrome.cast.ReceiverType.CAST)G9("Got resumed cast session before resumed mdx connection."),J.friendlyName=chrome.cast.unescape(J.friendlyName),w7(this,new lp(this.JSC$19655_screenService_,J,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var R=this.JSC$19655_session_.receiver_,D=rw(this.JSC$19655_screenService_.getScreens(),R.label);D&&bk(D,J.label)&&R.receiverType!=chrome.cast.ReceiverType.CAST&&J.receiverType==chrome.cast.ReceiverType.CAST&&(G9("onSessionEstablished_: manual to cast session change "+J.friendlyName),_.bv(this.JSC$19655_session_),this.JSC$19655_session_=new lp(this.JSC$19655_screenService_,J,this.config_),this.JSC$19655_session_.subscribe("sessionScreen",(0,_.xF)(this.onSessionScreen_,this,this.JSC$19655_session_)),
this.JSC$19655_session_.subscribe("sessionFailed",function(){return n1t(z,z.JSC$19655_session_)}),this.JSC$19655_session_.launchWithParams(null));
this.JSC$19655_session_.setCastSession(M)}}};
_.P.JSC$19657_getCastSession=function(){return this.JSC$19655_session_?this.JSC$19655_session_.JSC$19641_getCastSession():null};
_.P.onSessionRequestFailed_=function(M){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.ns)(M)),M.code!=chrome.cast.ErrorCode.CANCEL&&w7(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.P.onReceiverUpdated_=function(M){G9("Receiver availability updated: "+M);if(!this.isDisposed()){var z=vT(this);this.hasCastReceiver_=M==chrome.cast.ReceiverAvailability.AVAILABLE;vT(this)!=z&&this.publish("yt-remote-cast2-availability-change",vT(this))}};
var g1s=function(M){var z=M.JSC$19655_screenService_.JSC$19637_getOnlineScreens(),J=M.JSC$19655_session_&&M.JSC$19655_session_.receiver_;M=_.sa(z,function(R){J&&bk(R,J.label)&&(J=null);var D=R.uuid?R.uuid:R.id,N=sLc(this,R);N?(N.label=D,N.friendlyName=R.name):(N=new chrome.cast.Receiver(D,R.name),N.receiverType=chrome.cast.ReceiverType.CUSTOM);return N},M);
J&&(J.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(J=new chrome.cast.Receiver(J.label,J.friendlyName),J.receiverType=chrome.cast.ReceiverType.CUSTOM),M.push(J));return M};
XW.prototype.JSC$19657_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=g1s(this),G9("Updating custom receivers: "+(0,_.ns)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.xF)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",vT(this)))};
XW.prototype.setLaunchParams=XW.prototype.setLaunchParams;XW.prototype.setConnectedScreenStatus=XW.prototype.setConnectedScreenStatus;XW.prototype.stopSession=XW.prototype.JSC$19657_stopSession;XW.prototype.getCastSession=XW.prototype.JSC$19657_getCastSession;XW.prototype.requestSession=XW.prototype.requestSession;XW.prototype.init=XW.prototype.init;XW.prototype.dispose=XW.prototype.dispose;var hjw=_.Ca(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),kpN=[],bXw=_.Nx(hjw);var ypc=function(M){M.audioTrackId=null;M.trackData=null;M.playerState=-1;M.hasPrevious=!1;M.hasNext=!1;M.playerTime_=0;M.playerTimeAt_=_.Ss();M.seekableStart_=0;M.seekableEnd_=0;M.duration_=0;M.loadedTime=0;M.liveIngestionTime_=NaN;M.isLive_=!1};
_.P=l6.prototype;
_.P.reset=function(M){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;M&&(this.index=M.index,this.listId=M.listId,this.videoId=M.videoId,this.playerState=M.playerState,this.volume=M.volume,this.muted=M.muted,this.audioTrackId=M.audioTrackId,this.trackData=M.trackData,this.hasPrevious=M.hasPrevious,this.hasNext=M.hasNext,this.playerTime_=M.playerTime,this.playerTimeAt_=M.playerTimeAt,this.seekableStart_=M.seekableStart,this.seekableEnd_=M.seekableEnd,this.duration_=M.duration,this.loadedTime=
M.loadedTime,this.liveIngestionTime_=M.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.P.stopPlayer=function(){this.index=-1;this.videoId="";ypc(this)};
_.P.isPlaying=function(){return this.playerState==1};
_.P.isBuffering=function(){return this.playerState==3};
_.P.isAdPlaying=function(){return this.playerState==1081};
var xu=function(M,z){M.playerTime_=z;M.playerTimeAt_=_.Ss()},Hkv=function(M){switch(M.playerState){case 1:case 1081:return(_.Ss()-M.playerTimeAt_)/1E3+M.playerTime_;
case -1E3:return 0}return M.playerTime_};
l6.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Ss()-this.playerTimeAt_)/1E3:0):this.duration_};
var cpw=function(M,z,J){var R=M.videoId;M.videoId=z;M.index=J;z!=R&&ypc(M)},d4l=function(M){var z={};
z.index=M.index;z.listId=M.listId;z.videoId=M.videoId;z.playerState=M.playerState;z.volume=M.volume;z.muted=M.muted;z.audioTrackId=M.audioTrackId;z.trackData=_.gu.unsafeClone(M.trackData);z.hasPrevious=M.hasPrevious;z.hasNext=M.hasNext;z.playerTime=M.playerTime_;z.playerTimeAt=M.playerTimeAt_;z.seekableStart=M.seekableStart_;z.seekableEnd=M.seekableEnd_;z.duration=M.duration_;z.loadedTime=M.loadedTime;z.liveIngestionTime=M.liveIngestionTime_;return z};
l6.prototype.clone=function(){return new l6(d4l(this))};var ty=function(M,z){_.lk.call(this);var J=this;this.state_=0;this.connection_=M;this.contextSubscriptions_=[];this.actionQueue_=new NBl;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.xF)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.xF)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.xF)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.xF)(this.onCloudviewAvailabilityChange_,this);var R=0;M?(R=M.getProxyState(),
R!=3&&(M.subscribe("proxyStateChange",this.setState_,this),KGw(this))):R=3;R!=0&&(z?this.setState_(R):_.BJ(function(){J.setState_(R)},0));
(M=IEw())&&$4N(this,M);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.w(ty,_.lk);ty.prototype.getState=function(){return this.state_};
ty.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
ty.prototype.reconnect=function(){this.connection_.reconnect()};
var jr=function(M){return new l6(M.connection_.getPlayerContextData())};
_.P=ty.prototype;_.P.play=function(){pG(this)?(this.castMedia_?this.castMedia_.play(null,_.xi,umw(this,"play")):FA(this,"play"),qPN(this,1,Hkv(jr(this))),this.publish("remotePlayerChange")):Yu(this,this.play)};
_.P.pause=function(){pG(this)?(this.castMedia_?this.castMedia_.pause(null,_.xi,umw(this,"pause")):FA(this,"pause"),qPN(this,2,Hkv(jr(this))),this.publish("remotePlayerChange")):Yu(this,this.pause)};
_.P.seekTo=function(M){if(pG(this)){if(this.castMedia_){var z=jr(this),J=new chrome.cast.media.SeekRequest;J.currentTime=M;z.isPlaying()||z.isBuffering()?J.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:J.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(J,_.xi,umw(this,"seekTo",{newTime:M}))}else FA(this,"seekTo",{newTime:M});qPN(this,3,M);this.publish("remotePlayerChange")}else Yu(this,_.Uf(this.seekTo,M))};
_.P.stop=function(){if(pG(this)){this.castMedia_?this.castMedia_.stop(null,_.xi,umw(this,"stopVideo")):FA(this,"stopVideo");var M=jr(this);M.stopPlayer();mX(this,M);this.publish("remotePlayerChange")}else Yu(this,this.stop)};
_.P.setVolume=function(M,z){if(pG(this)){var J=jr(this);if(this.castSession_){if(J.volume!=M){var R=Math.round(M)/100;this.castSession_.setReceiverVolumeLevel(R,(0,_.xF)(function(){N_("set receiver volume: "+R)},this),(0,_.xF)(function(){this.warn_("failed to set receiver volume.")},this))}J.muted!=z&&this.castSession_.setReceiverMuted(z,(0,_.xF)(function(){N_("set receiver muted: "+z)},this),(0,_.xF)(function(){this.warn_("failed to set receiver muted.")},this))}else{var D={volume:M,
muted:z};J.volume!=-1&&(D.delta=M-J.volume);FA(this,"setVolume",D)}J.muted=z;J.volume=M;mX(this,J)}else Yu(this,_.Uf(this.setVolume,M,z))};
_.P.setAudioTrack=function(M,z){pG(this)?(z=z.getLanguageInfo().getId(),FA(this,"setAudioTrack",{videoId:M,audioTrackId:z}),M=jr(this),M.audioTrackId=z,mX(this,M)):Yu(this,_.Uf(this.setAudioTrack,M,z))};
_.P.addVideo=function(M){pG(this)?FA(this,"addVideo",{videoId:M}):Yu(this,_.Uf(this.addVideo,M))};
_.P.addPlaylist=function(M){pG(this)?FA(this,"addVideos",{listId:M}):Yu(this,_.Uf(this.addPlaylist,M))};
_.P.addVideos=function(M){M.length==0?this.warn_("Ignore add videos request due to empty list"):pG(this)?FA(this,"addVideos",{videoIds:M.join(",")}):Yu(this,_.Uf(this.addVideos,M))};
_.P.JSC$19667_removeVideo=function(M){pG(this)?FA(this,"removeVideo",{videoId:M}):Yu(this,_.Uf(this.JSC$19667_removeVideo,M))};
_.P.JSC$19667_insertVideo=function(M){pG(this)?FA(this,"insertVideo",{videoId:M}):Yu(this,_.Uf(this.JSC$19667_insertVideo,M))};
_.P.playVideo=function(M,z,J,R,D,N,Z){R=R===void 0?null:R;D=D===void 0?null:D;N=N===void 0?null:N;Z=Z===void 0?null:Z;var B=jr(this),O={videoId:M};J!==void 0&&(O.currentIndex=J);cpw(B,M,J||0);z!==void 0&&(xu(B,z),O.currentTime=z);R&&(O.listId=R);D&&(O.playerParams=D);N&&(O.clickTrackingParams=N);Z&&(O.locationInfo=(0,_.ns)(Z));FA(this,"setPlaylist",O);R||mX(this,B)};
_.P.nextVideo=function(M,z){if(pG(this)){if(M&&z){var J=jr(this);cpw(J,M,z);mX(this,J)}FA(this,"next")}else Yu(this,_.Uf(this.nextVideo,M,z))};
_.P.clearPlaylist=function(){if(pG(this)){FA(this,"clearPlaylist");var M=jr(this);M.reset();mX(this,M);this.publish("remotePlayerChange")}else Yu(this,this.clearPlaylist)};
_.P.dispose=function(){if(this.state_!=3){var M=this.state_;this.state_=3;this.publish("proxyStateChange",M,this.state_)}_.lk.prototype.dispose.call(this)};
_.P.disposeInternal=function(){WGi(this);this.connection_=null;this.actionQueue_.clear();$4N(this,null);_.lk.prototype.disposeInternal.call(this)};
var KGw=function(M){_.VU("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(z){this.contextSubscriptions_.push(this.connection_.subscribe(z,_.Uf(this.onProxyEvent_,z),this))},M)},WGi=function(M){_.VU(M.contextSubscriptions_,function(z){this.connection_.unsubscribeByKey(z)},M);
M.contextSubscriptions_.length=0},pG=function(M){return M.getState()==1},Yu=function(M,z){M.actionQueue_.getCount()<50&&M.actionQueue_.enqueue(z)},qPN=function(M,z,J){var R=jr(M);
xu(R,J);R.playerState!=-1E3&&(R.playerState=z);mX(M,R)},FA=function(M,z,J){M.connection_.sendMessage(z,J)},mX=function(M,z){WGi(M);
M.connection_.setPlayerContextData(d4l(z));KGw(M)};
ty.prototype.setState_=function(M){if((M!=this.state_||M==2)&&this.state_!=3&&M!=0){var z=this.state_;this.state_=M;this.publish("proxyStateChange",z,M);if(M==1)for(;!this.actionQueue_.isEmpty();)M=this.actionQueue_,Ryi(M),M.front_.pop().apply(this);else M==3&&this.dispose()}};
ty.prototype.onProxyEvent_=function(M,z){this.publish(M,z)};
var $4N=function(M,z){M.castSession_&&(M.castSession_.removeUpdateListener(M.boundCastStatusListener_),M.castSession_.removeMediaListener(M.boundCastMediaListener_),M.onCastMediaChange_(null));M.castSession_=z;if(M.castSession_&&(N_("Setting cast session: "+M.castSession_.sessionId),M.castSession_.addUpdateListener(M.boundCastStatusListener_),M.castSession_.addMediaListener(M.boundCastMediaListener_),M.castSession_.media.length))M.onCastMediaChange_(M.castSession_.media[0])};
ty.prototype.onCastStatusUpdate_=function(M){if(!M)this.onCastMediaChange_(null),$4N(this,null);else if(this.castSession_.receiver.volume){M=this.castSession_.receiver.volume;var z=jr(this),J=Math.round(100*M.level||0);if(z.volume!=J||z.muted!=M.muted)N_("Cast volume update: "+M.level+(M.muted?" muted":"")),z.volume=J,z.muted=!!M.muted,mX(this,z)}};
ty.prototype.onCastMediaChange_=function(M){N_("Cast media: "+!!M);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=M)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),a2G(this),this.publish("remotePlayerChange")};
var a2G=function(M){var z=M.castMedia_.media,J=M.castMedia_.customData;if(z&&J){var R=jr(M);z.contentId!=R.videoId&&N_("Cast changing video to: "+z.contentId);R.videoId=z.contentId;R.playerState=J.playerState;xu(R,M.castMedia_.getEstimatedTime());mX(M,R)}else N_("No cast media video. Ignoring state update.")};
ty.prototype.onCastMediaUpdate_=function(M){if(M)a2G(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
ty.prototype.onCloudviewAvailabilityChange_=function(){var M=IEw();M&&$4N(this,M)};
ty.prototype.warn_=function(M){Dj("CP",M)};
var umw=function(M,z,J){return(0,_.xF)(function(R){this.warn_("Failed to "+z+" with cast v2 channel. Error code: "+R.code);R.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+z+" using MDx browser channel."),FA(this,z,J))},M)};var st=function(M,z,J,R){R=R===void 0?!1:R;_.lk.call(this);var D=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$19672_http_=M;this.enableConnectWithInitialState_=R;this.listeners_.push(_.Mp(window,"beforeunload",function(){D.JSC$19675_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new l6;this.currentScreenId_=z.id;this.currentScreenIdType_=z.idType;this.channelService=h8w(this.JSC$19672_http_,J,this.JSC$19675_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){VCG(D)});
this.channelService.listen("channelClosed",function(){g7("Channel closed");isNaN(D.connectTimerId_)?M_(!0):M_();D.dispose()});
this.channelService.listen("channelError",function(N){M_();isNaN(D.getReconnectTimeout_())?(N==1&&D.currentScreenIdType_=="shortLived"&&D.publish("browserChannelAuthError",N),g7("Channel error: "+N+" without reconnection"),D.dispose()):(D.reconnecting_=!0,g7("Channel error: "+N+" with reconnection in "+D.getReconnectTimeout_()+" ms"),E1u(D,2))});
this.channelService.listen("channelMessage",function(N){f2u(D,N)});
this.channelService.setLoungeToken(z.token);this.subscribe("remoteQueueChange",function(){var N=D.playerContext_.videoId;UGv()&&_.Qo("yt-remote-session-video-id",N)})};
_.w(st,_.lk);
st.prototype.connect=function(M,z){if(z){var J=z.listId,R=z.videoId,D=z.videoIds,N=z.playerParams,Z=z.clickTrackingParams,B=z.index,O={videoId:R},X=z.currentTime,l=z.locationInfo;z=z.loopMode;X!==void 0&&(O.currentTime=X<=5?0:X);N&&(O.playerParams=N);l&&(O.locationInfo=l);Z&&(O.clickTrackingParams=Z);J&&(O.listId=J);D&&D.length>0&&(O.videoIds=D.join(","));B!==void 0&&(O.currentIndex=B);this.enableConnectWithInitialState_&&(O.loopMode=z||"LOOP_MODE_OFF");J&&(this.playerContext_.listId=J);this.playerContext_.videoId=
R;this.playerContext_.index=B||0;this.playerContext_.state=3;xu(this.playerContext_,X);this.autoplayMode_="UNSUPPORTED";J=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";g7("Connecting with "+J+" and params: "+(0,_.ns)(O));this.channelService.connect({method:J,params:(0,_.ns)(O)},M,tet())}else g7("Connecting without params"),this.channelService.connect({},M,tet());LGs(this)};
st.prototype.setLoungeToken=function(M){this.channelService.setLoungeToken(M)};
st.prototype.dispose=function(){this.isDisposed()||(_.b9("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),E1u(this,3));_.lk.prototype.dispose.call(this)};
st.prototype.disposeInternal=function(){Apu(this);ikt(this);Cls(this);_.Tw(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Tw(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.WK8(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.lk.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var bki=function(M){return _.he(M.connectedDevices_,function(z){return z.type=="LOUNGE_SCREEN"})},g7=function(M){Dj("conn",M)},E1u=function(M,z){M.publish("proxyStateChange",z)},LGs=function(M){M.connectTimerId_=_.BJ(function(){g7("Connecting timeout");
M.JSC$19675_disconnect_(1)},2E4)},Apu=function(M){_.Tw(M.connectTimerId_);
M.connectTimerId_=NaN},Cls=function(M){_.Tw(M.reconnectedCheckScreenTimeout_);
M.reconnectedCheckScreenTimeout_=NaN},rpw=function(M){ikt(M);
M.playingSyncTimerId_=_.BJ(function(){nG(M,"getNowPlaying")},2E4)},ikt=function(M){_.Tw(M.playingSyncTimerId_);
M.playingSyncTimerId_=NaN},VCG=function(M){g7("Channel opened");
M.reconnecting_&&(M.reconnecting_=!1,Cls(M),M.reconnectedCheckScreenTimeout_=_.BJ(function(){g7("Timing out waiting for a screen.");M.JSC$19675_disconnect_(1)},15E3))},zuw=function(M,z){var J=null;
if(z){var R=bki(M);R&&(J={clientName:R.clientName,deviceMake:R.brand,deviceModel:R.model,osVersion:R.osVersion})}_.b9("yt.mdx.remote.remoteClient_",J);z&&(Apu(M),Cls(M));J=M.channelService.isChannelOpened()&&isNaN(M.connectTimerId_);z==J?z&&(E1u(M,1),nG(M,"getSubtitlesTrack")):z?(M.getOtherConnectedRemoteId_()&&M.playerContext_.reset(),E1u(M,1),nG(M,"getNowPlaying"),M0s(M)):M.JSC$19675_disconnect_(1)},JXd=function(M,z){var J=z.params.videoId;
delete z.params.videoId;J==M.playerContext_.videoId&&(_.gu.isEmpty(z.params)?M.playerContext_.trackData=null:M.playerContext_.trackData=z.params,M.publish("remotePlayerChange"))},Ruw=function(M,z,J){var R=z.params.videoId||z.params.video_id,D=parseInt(z.params.currentIndex,10);
M.playerContext_.listId=z.params.listId||M.playerContext_.listId;cpw(M.playerContext_,R,D);M.publish("remoteQueueChange",J)},Dmv=function(M,z){z.params=z.params||{};
Ruw(M,z,"NOW_PLAYING_MAY_CHANGE");M.onStateChange_(z);M.publish("autoplayDismissed")};
st.prototype.onStateChange_=function(M){var z=parseInt(M.params.currentTime||M.params.current_time,10);xu(this.playerContext_,isNaN(z)?0:z);z=parseInt(M.params.state,10);z=isNaN(z)?-1:z;z==-1&&this.playerContext_.playerState==-1E3&&(z=-1E3);this.playerContext_.playerState=z;z=Number(M.params.loadedTime);this.playerContext_.loadedTime=isNaN(z)?0:z;z=Number(M.params.duration);this.playerContext_.duration_=isNaN(z)?0:z;z=this.playerContext_;var J=Number(M.params.liveIngestionTime);z.liveIngestionTime_=
J;z.isLive_=isNaN(J)?!1:!0;z=this.playerContext_;J=Number(M.params.seekableStartTime);M=Number(M.params.seekableEndTime);z.seekableStart_=isNaN(J)?0:J;z.seekableEnd_=isNaN(M)?0:M;this.playerContext_.playerState==1?rpw(this):ikt(this);this.publish("remotePlayerChange")};
st.prototype.onAdStateChange_=function(M){if(this.playerContext_.playerState!=-1E3){var z=1085;switch(parseInt(M.params.adState,10)){case 1:z=1081;break;case 2:z=1084;break;case 0:z=1083}this.playerContext_.playerState=z;M=parseInt(M.params.currentTime,10);xu(this.playerContext_,isNaN(M)?0:M);this.publish("remotePlayerChange")}};
var N0d=function(M,z){var J=z.params.muted=="true";M.playerContext_.volume=parseInt(z.params.volume,10);M.playerContext_.muted=J;M.publish("remotePlayerChange")},PAw=function(M,z){M.autoplayVideoId_=z.params.videoId;
M.publish("nowAutoplaying",parseInt(z.params.timeout,10))},SSl=function(M,z){M.autoplayVideoId_=z.params.videoId||null;
M.publish("autoplayUpNext",M.autoplayVideoId_)},Zxu=function(M,z){M.autoplayMode_=z.params.autoplayMode;
M.publish("autoplayModeChange",M.autoplayMode_);M.autoplayMode_=="DISABLED"&&M.publish("autoplayDismissed")},kWs=function(M,z){var J=z.params.hasNext=="true";
M.playerContext_.hasPrevious=z.params.hasPrevious=="true";M.playerContext_.hasNext=J;M.publish("previousNextChange")};
st.prototype.isCapabilitySupportedOnConnectedDevices_=function(M){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var z=_.S(this.connectedDevices_),J=z.next();!J.done;J=z.next())if(!J.value.capabilities.has(M))return!1;return!0};
var f2u=function(M,z){z=z.message;z.params?g7("Received: action="+z.action+", params="+(0,_.ns)(z.params)):g7("Received: action="+z.action+" {}");switch(z.action){case "loungeStatus":z=(0,_.m4)(z.params.devices);M.connectedDevices_=_.sa(z,function(R){return new Ot(R)});
z=!!_.he(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
zuw(M,z);z=M.isCapabilitySupportedOnConnectedDevices_("mlm");M.publish("multiStateLoopEnabled",z);break;case "loungeScreenDisconnected":n25(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
zuw(M,!1);break;case "remoteConnected":var J=new Ot((0,_.m4)(z.params.device));_.he(M.connectedDevices_,function(R){return R.equals(J)})||_.wYY(M.connectedDevices_,J);
break;case "remoteDisconnected":J=new Ot((0,_.m4)(z.params.device));n25(M.connectedDevices_,function(R){return R.equals(J)});
break;case "gracefulDisconnect":break;case "playlistModified":Ruw(M,z,"QUEUE_MODIFIED");break;case "nowPlaying":Dmv(M,z);break;case "onStateChange":M.onStateChange_(z);break;case "onAdStateChange":M.onAdStateChange_(z);break;case "onVolumeChanged":N0d(M,z);break;case "onSubtitlesTrackChanged":JXd(M,z);break;case "nowAutoplaying":PAw(M,z);break;case "autoplayDismissed":M.publish("autoplayDismissed");break;case "autoplayUpNext":SSl(M,z);break;case "onAutoplayModeChanged":Zxu(M,z);break;case "onHasPreviousNextChanged":kWs(M,
z);break;case "requestAssistedSignIn":M.publish("assistedSignInRequested",z.params.authCode);break;case "onLoopModeChanged":M.publish("loopModeChange",z.params.loopMode);break;default:g7("Unrecognized action: "+z.action)}};
_.P=st.prototype;_.P.getProxyState_=function(){var M=3;this.isDisposed()||(M=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(M=1):M=2);return M};
_.P.JSC$19675_disconnect_=function(M){g7("Disconnecting with "+M);_.b9("yt.mdx.remote.remoteClient_",null);Apu(this);this.publish("beforeDisconnect",M);M==1&&M_();this.channelService.disconnect(M);this.dispose()};
_.P.getPlayerContextData_=function(){var M=this.playerContext_;this.clientVideoId_&&(M=this.playerContext_.clone(),cpw(M,this.clientVideoId_,M.index));return d4l(M)};
_.P.setPlayerContextData_=function(M){var z=this,J=new l6(M);J.videoId&&J.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=J.videoId,_.Tw(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.BJ(function(){if(z.clientVideoId_){var D=z.clientVideoId_;z.clientVideoId_=null;z.playerContext_.videoId!=D&&nG(z,"getNowPlaying")}},5E3));
var R=[];this.playerContext_.listId==J.listId&&this.playerContext_.videoId==J.videoId&&this.playerContext_.index==J.index||R.push("remoteQueueChange");this.playerContext_.playerState==J.playerState&&this.playerContext_.volume==J.volume&&this.playerContext_.muted==J.muted&&Hkv(this.playerContext_)==Hkv(J)&&(0,_.ns)(this.playerContext_.trackData)==(0,_.ns)(J.trackData)||R.push("remotePlayerChange");this.playerContext_.reset(M);_.VU(R,function(D){this.publish(D)},this)};
_.P.getOtherConnectedRemoteId_=function(){var M=this.channelService.getDeviceId(),z=_.he(this.connectedDevices_,function(J){return J.type=="REMOTE_CONTROL"&&J.id!=M});
return z?z.id:""};
_.P.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.P.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.P.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.P.JSC$19675_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var M0s=function(M){_.Tw(M.idleDisconnectTimerId_);M.idleDisconnectTimerId_=_.BJ(function(){M.JSC$19675_disconnect_(1)},864E5)},nG=function(M,z,J){J?g7("Sending: action="+z+", params="+(0,_.ns)(J)):g7("Sending: action="+z);
M.channelService.sendMessage(z,J)};
st.prototype.sendMessageWithUserAction_=function(M,z){nG(this,M,z);M0s(this)};
st.prototype.JSC$19675_getXsrfToken_=function(){var M=_.Qy.get("SAPISID","")||_.Qy.get("__Secure-1PAPISID",void 0)||"",z=_.Qy.get("__Secure-3PAPISID","")||"";if(!M&&!z)return"";M=_.YG(_.Gz(M),2);z=_.YG(_.Gz(z),2);return _.YG(_.Gz(","+M+","+z),2)};
st.prototype.subscribe=st.prototype.subscribe;st.prototype.unsubscribeByKey=st.prototype.unsubscribeByKey;st.prototype.getProxyState=st.prototype.getProxyState_;st.prototype.disconnect=st.prototype.JSC$19675_disconnect_;st.prototype.getPlayerContextData=st.prototype.getPlayerContextData_;st.prototype.setPlayerContextData=st.prototype.setPlayerContextData_;st.prototype.getOtherConnectedRemoteId=st.prototype.getOtherConnectedRemoteId_;st.prototype.getReconnectTimeout=st.prototype.getReconnectTimeout_;
st.prototype.getAutoplayMode=st.prototype.getAutoplayMode_;st.prototype.getAutoplayVideoId=st.prototype.getAutoplayVideoId_;st.prototype.reconnect=st.prototype.JSC$19675_reconnect_;st.prototype.sendMessage=st.prototype.sendMessageWithUserAction_;st.prototype.getXsrfToken=st.prototype.JSC$19675_getXsrfToken_;st.prototype.isCapabilitySupportedOnConnectedDevices=st.prototype.isCapabilitySupportedOnConnectedDevices_;var B0u=function(M){S8.call(this,"ScreenServiceProxy");this.instance_=M;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.xF)(this.JSC$19678_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.xF)(this.onOnlineScreenChange_,this)))};
_.w(B0u,S8);_.P=B0u.prototype;_.P.getScreens=function(M){return this.instance_.$_gs(M)};
_.P.contains=function(M){return!!this.instance_.$_c(M)};
_.P.get=function(M){return this.instance_.$_g(M)};
_.P.start=function(){this.instance_.$_st()};
_.P.add=function(M,z,J){this.instance_.$_a(M,z,J)};
_.P.remove=function(M,z,J){this.instance_.$_r(M,z,J)};
_.P.updateName=function(M,z,J,R){this.instance_.$_un(M,z,J,R)};
_.P.disposeInternal=function(){for(var M=this.subscriptionKeys_.length,z=0;z<M;++z)this.instance_.$_ubk(this.subscriptionKeys_[z]);this.subscriptionKeys_.length=0;this.instance_=null;S8.prototype.disposeInternal.call(this)};
_.P.JSC$19678_onScreenChange_=function(){this.publish("screenChange")};
_.P.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
B1.prototype.$_st=B1.prototype.start;B1.prototype.$_gspc=B1.prototype.JSC$19637_getScreenByPairingCode;B1.prototype.$_gsppc=B1.prototype.JSC$19637_getScreenByPollingPairingCode;B1.prototype.$_c=B1.prototype.contains;B1.prototype.$_g=B1.prototype.get;B1.prototype.$_a=B1.prototype.add;B1.prototype.$_un=B1.prototype.updateName;B1.prototype.$_r=B1.prototype.remove;B1.prototype.$_gs=B1.prototype.getScreens;B1.prototype.$_gos=B1.prototype.JSC$19637_getOnlineScreens;B1.prototype.$_s=B1.prototype.subscribe;
B1.prototype.$_ubk=B1.prototype.unsubscribeByKey;var euG=function(M){YAs();if(!zv||!zv.get("yt-remote-disable-remote-module-for-dev")){M=_.HW("MDX_CONFIG")||M;azv();GhN();hy||(hy=new ik(M?M.loungeApiHost:void 0),mGt()&&(hy.basePath="/api/loungedev"));yk||(yk=_.qH("yt.mdx.remote.deferredProxies_")||[],_.b9("yt.mdx.remote.deferredProxies_",yk));Oxc();var z=HT();if(!z){var J=new B1(hy,M?M.disableAutomaticScreenCache||!1:!1);_.b9("yt.mdx.remote.screenService_",J);z=HT();var R={};M&&(R={appId:M.appId,disableDial:M.disableDial,theme:M.theme,loadCastApiSetupScript:M.loadCastApiSetupScript,
disableCastApi:M.disableCastApi,enableDialLoungeToken:M.enableDialLoungeToken,enableCastLoungeToken:M.enableCastLoungeToken,forceMirroring:M.forceMirroring});_.b9("yt.mdx.remote.enableConnectWithInitialState_",M?M.enableConnectWithInitialState||!1:!1);SVs(J,function(N){N?cT()&&XUd(cT(),"YouTube TV"):J.subscribe("onlineScreenChange",function(){ww("yt-remote-receiver-availability-change")})},R)}if(M&&!_.qH("yt.mdx.remote.initialized_")){_.b9("yt.mdx.remote.initialized_",!0);
d7("Initializing: "+(0,_.ns)(M));KG.push(_.SI("yt-remote-cast2-api-ready",function(){ww("yt-remote-api-ready")}));
KG.push(_.SI("yt-remote-cast2-availability-change",function(){ww("yt-remote-receiver-availability-change")}));
KG.push(_.SI("yt-remote-cast2-receiver-selected",function(){T0m();ww("yt-remote-auto-connect","cast-selector-receiver")}));
KG.push(_.SI("yt-remote-cast2-receiver-resumed",function(){ww("yt-remote-receiver-resumed","cast-selector-receiver")}));
KG.push(_.SI("yt-remote-cast2-session-change",IXs));KG.push(_.SI("yt-remote-connection-change",function(N){N?XUd(cT(),"YouTube TV"):okG()||(XUd(null,null),THs())}));
KG.push(_.SI("yt-remote-cast2-session-failed",function(){ww("yt-remote-connection-failed")}));
R=XH5();M.isAuto&&(R.id+="#dial");var D=M.capabilities||[];D.length>0&&(R.capabilities=D);R.name=M.device;R.app=M.app;(M=M.theme)&&(R.theme=M);d7(" -- with channel params: "+(0,_.ns)(R));R?(_.Qo("yt-remote-session-app",R.app),_.Qo("yt-remote-session-name",R.name)):(_.va("yt-remote-session-app"),_.va("yt-remote-session-name"));_.b9("yt.mdx.remote.channelParams_",R);z.start();cT()||lXl()}}},Umw=function(){var M=HT().instance_.$_gos();
var z=Qjt();z&&$u()&&(lSi(M,z)||M.push(z));return XPi(M)},vk5=function(){var M=Umw(),z=Qjt();
z||(z=okG());return _.he(M,function(J){return z&&bk(z,J.key)?!0:!1})},Qjt=function(){var M=cT();
if(!M)return null;var z=HT().getScreens();return rw(z,M)},IXs=function(M){d7("remote.onCastSessionChange_: "+lEc(M));
if(M){var z=Qjt();z&&z.id==M.id?(XUd(z.id,"YouTube TV"),M.idType=="shortLived"&&(M=M.token)&&(z=$u())&&z.setLoungeToken(M)):(z&&GWc(),wHv(M,1))}else $u()&&GWc()},GWc=function(){ozw()?o6().stopSession():I6("stopSession called before API ready.");
var M=$u();M&&(M.disconnect(1),xmG(null))},t0d=function(){var M=$u();
return M&&M.getProxyState()!=3?new ty($u(),void 0):null},d7=function(M){Dj("remote",M)},HT=function(){if(!jjw){var M=_.qH("yt.mdx.remote.screenService_");
jjw=M?new B0u(M):null}return jjw},cT=function(){return _.qH("yt.mdx.remote.currentScreenId_")},pHl=function(M){_.b9("yt.mdx.remote.currentScreenId_",M)},T0m=function(){_.b9("yt.mdx.remote.connectData_",null)},$u=function(){return _.qH("yt.mdx.remote.connection_")},xmG=function(M){var z=$u();
T0m();M||pHl("");_.b9("yt.mdx.remote.connection_",M);yk&&(_.VU(yk,function(J){J(M)}),yk.length=0);
z&&!M?ww("yt-remote-connection-change",!1):!z&&M&&ww("yt-remote-connection-change",!0)},okG=function(){var M=UGv();
if(!M)return null;var z=HT();if(!z)return null;z=z.getScreens();return rw(z,M)},wHv=function(M,z){pHl(M.id);
M=new st(hy,M,XH5(),_.qH("yt.mdx.remote.enableConnectWithInitialState_")||!1);M.connect(z,_.qH("yt.mdx.remote.connectData_"));M.subscribe("beforeDisconnect",function(J){ww("yt-remote-before-disconnect",J)});
M.subscribe("beforeDispose",function(){$u()&&xmG(null)});
M.subscribe("browserChannelAuthError",function(){var J=Qjt();J&&J.idType=="shortLived"&&(ozw()?o6().handleBrowserChannelAuthError():I6("refreshLoungeToken called before API ready."))});
xmG(M)},lXl=function(){var M=okG();
M?(d7("Resume connection to: "+lEc(M)),wHv(M,0)):(M_(),THs(),d7("Skipping connecting because no session screen found."))},hy=null,yk=null,jjw=null,Oxc=function(){var M=XH5();
if(_.gu.isEmpty(M)){M=Qzs();var z=_.UE("yt-remote-session-name")||"",J=_.UE("yt-remote-session-app")||"";M={device:"REMOTE_CONTROL",id:M,name:z,app:J,mdxVersion:3};M.authuser=String(_.HW("SESSION_INDEX","0"));(z=_.HW("DELEGATED_SESSION_ID"))&&(M.pageId=String(z));_.b9("yt.mdx.remote.channelParams_",M)}},XH5=function(){return _.qH("yt.mdx.remote.channelParams_")||{}},KG=[];var FSG=new _.dc("yt-menu"),YSc=function(){},gkw=function(M,z,J){M=z=="right-click"?J.rightClickMenuPopupHint:J.menuPopupHint;
if(!(mmm(z)>10))return z=z||"default",FSG.set(z+"-impression",mmm(z)+1),M},mmm=function(M){return parseInt(FSG.get((M||"default")+"-impression")||0,10)};
_.P9(YSc);var sjd=function(){this.contexts_=new WeakMap;this.JSC$19684_networkService_=this.activeContext_=null},nkl=function(M,z,J){var R=M.contexts_.get(z);
R||(R=new qjl(M.JSC$19684_networkService_),M.contexts_.set(z,R));M.activeContext_=R;J&&M.activeContext_.reset();M.activeContext_.start();return M.activeContext_};var up=function(){};
up.prototype.enqueue=function(){var M=this,z;return _.k(function(J){if(M.isCounterfactual())return(z=M.getCounterfactualData())&&M.shouldLogCounterfactualImpression()&&M.sendImpressionEndpoints(z),J.return();M.doEnqueue();_.UI(J)})};
up.prototype.sendImpressionEndpoints=function(M){_.VA.getInstance().triggerOptionalAction("yt-service-request",{},M[0])};var qu=function(M,z){this.renderer=M;this.page=z};
_.w(qu,up);qu.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
qu.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
qu.prototype.shouldLogCounterfactualImpression=function(){return!0};
qu.prototype.doEnqueue=function(){var M=_.z_(this.page);M&&M.pause();this.renderer.impressionCommand&&_.VA.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.uM(_.VA.getInstance(),[this.renderer.promoCommand],this.page)};var hu5=function(M,z){this.renderer=M;this.resolver=_.Ln();this.JSC$19696_enforcementCounter=new _.hB$;z?this.JSC$19696_playerManager=_.z_(z):this.JSC$19696_playerManager=null;_.QO(1,!0)};
_.w(hu5,up);_.P=hu5.prototype;_.P.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var M=[];this.renderer.impressionEndpoints.forEach(function(z){(z=_.$S(z))&&M.push(z)});
return M}};
_.P.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.P.shouldLogCounterfactualImpression=function(){var M=_.mlb();M?(this.JSC$19696_enforcementCounter.increment("POPUP"),_.QO(3)):_.QO(2);return M};
_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.doEnqueue=function(){var M=this;_.mlb()?(this.JSC$19696_enforcementCounter.increment("POPUP"),_.QO(3),yXw(this)):this.JSC$19696_playerManager?(this.resolver.promise.then(function(){yXw(M)}),Hxl(this.resolver,this.JSC$19696_playerManager)):_.QO(2)};
var Hxl=function(M,z){var J=_.Ln();z.getPlayerPromise().then(function(R){J.resolve(R)});
J.promise.then(function(R){R.addEventListener("onAbnormalityDetected",M.resolve);_.mi(M.promise,function(){R.removeEventListener("onAbnormalityDetected",M.resolve)})});
M.promise.thenCatch(function(){J.promise.cancel()})},yXw=function(M){_.QO(3);
var z={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:M.renderer}};z=_.VA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});Promise.all(z).then(function(){cXv();M.JSC$19696_playerManager&&M.JSC$19696_playerManager.pause()})},cXv=function(){lQl(function(M,z){_.eJl(M,z);
M===0?_.QO(7):_.QO(4)})};var dml=function(M,z){this.renderer=M;this.page=z;this.resolver=_.Ln()};
_.w(dml,up);_.P=dml.prototype;_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var M=this;this.resolver.promise.then(function(){var J={popup:{mealbarPromoRenderer:M.renderer},popupType:"MEALBAR"};_.VA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:J},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var z=_.z_(this.page);z&&KSs(this.resolver,z)}break;default:this.resolver.resolve()}};
var KSs=function(M,z){var J=_.Ln();z.getPlayerPromise().then(function(R){J.resolve(R)});
J.promise.then(function(R){R.addEventListener("onAdEnd",M.resolve);_.mi(M.promise,function(){R.removeEventListener("onAdEnd",M.resolve)})});
M.promise.thenCatch(function(){J.promise.cancel()})};var $ms=function(M,z){this.renderer=M;this.page=z};
_.w($ms,up);_.P=$ms.prototype;_.P.cancel=function(){this.JSC$19704_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19704_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19704_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var M=this,z,J;((z=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(J=z.playbackUpsellDialogTriggerConditionData)==null?void 0:J.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19704_downloadedVideosCountSelectorUnsubscriber=_.jx(_.rA(),Oul,function(R,D){R>D&&(uyN(M),M.cancel())}):uyN(this)};
var uyN=function(M){var z={popup:{upsellDialogRenderer:M.renderer},popupType:"MODAL"};_.VA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});(M=_.z_(M.page))&&M.pause()};var WT={},qS5=(WT.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",WT.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",WT.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",WT.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",WT.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",WT.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",WT.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",WT),WSv=function(M,z){this.renderer=M;this.targetManager=
z};
_.w(WSv,up);_.P=WSv.prototype;_.P.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19711_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19711_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19711_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){if(this.isCounterfactual()){var M;return(M=this.renderer.promoConfig)==null?void 0:M.impressionEndpoints}};
_.P.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var M=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19711_downloadedVideosCountSelectorUnsubscriber=_.jx(_.rA(),Oul,function(z,J){M.renderer.targetId&&z>J&&(PfG(M.targetManager,M.renderer.targetId,aXv(M)),M.cancel())});
break;default:PfG(this.targetManager,this.renderer.targetId,aXv(this))}};
var aXv=function(M){var z;if((z=M.renderer.suggestedPosition)==null?0:z.type)var J=qS5[M.renderer.suggestedPosition.type];J||(J="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:M.renderer},popupType:"HINT",position:J}}};var V0m=function(){this.previousPage=null},Ekw;
V0m.prototype.registerPromoCommand=function(M,z){fXG(this,void 0,void 0,_.G(M.roadblock,ZEs),void 0,void 0,z)};
var fXG=function(M,z,J,R,D,N,Z){M.previousPage!==Z&&M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel();M.previousPage=Z;D?(M.pendingEnforcementPromo&&M.pendingEnforcementPromo.cancel(),M.pendingEnforcementPromo=new hu5(D,Z),M.pendingEnforcementPromo.enqueue()):N?(M.pendingCommandWrapperPromo=new qu(N,Z),M.pendingCommandWrapperPromo.enqueue()):R?(M.pendingRoadblockPromo&&M.pendingRoadblockPromo.cancel(),M.pendingRoadblockPromo=new $ms(R,Z),M.pendingRoadblockPromo.enqueue()):z?(M.pendingMealbarPromo&&
M.pendingMealbarPromo.cancel(),M.pendingMealbarPromo=new dml(z,Z),M.pendingMealbarPromo.enqueue()):J&&(M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel(),M.pendingTooltipPromo=new WSv(J,_.sE()),M.pendingTooltipPromo.enqueue())},LSs=function(){Ekw||(Ekw=new V0m);
return Ekw};var vzw=!1;var S3s=function(M,z){var J=_.HW("SESSION_INDEX");this.actionToken_=M;this.commonToken_=z;this.sessionIndex_=J},PEw=function(M){var z=_.Ln(),J=_.qH("payments.business.integration.bootstrap"),R=_.qH("payments.business.integration"),D=R.Style.create().withMaterialDesignStyle(),N=R.mashupMode.popup("instrument-manager");
J.asMashupMode(N).usingUserIndex(M.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(D).inStandaloneContext(R.standaloneContextAuthId.forUserId()).instrumentManager(M.actionToken_,M.commonToken_.length>0?M.commonToken_:void 0,function(Z){var B=Z.instrumentId;B?z.resolve(B):(B=_.qH("payments.business.integration.scenario.InstrumentManager"),z.reject(Z.errorCode&&Z.errorCode===B.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Z){_.$y(Z);
z.reject("instrumentManagerLoadError")});
return z.promise};var Gv=function(M,z,J){this.payloadName="transactionFlowFailed";this.payload={errorType:M,serializedTransactionFlowLoggingParams:z,isUserDismiss:J===void 0?!1:J}};
_.b9("yt.ypc.shared.YpcTransactionFlowError",Gv);var aF=function(){return _.vU.apply(this,arguments)||this};
_.w(aF,_.vU);aF.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
aF.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
aF.prototype.onErrorMessageDismiss=aF.prototype.onErrorMessageDismiss;_.u([_.Y({readOnly:!0,observer:"errorRendererChanged"}),_.W("design:type",Object)],aF.prototype,"errorRenderer",void 0);_.u([_.Xw("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aF.prototype,"onErrorMessageDismiss",null);_.u([_.Gp()],aF);var AXw=[aF.prototype];var ixl;var CAc;var bxd=new _.dc("yt-live-chat"),rXv=new Map;rXv.set("timestamp_toggle","show-timestamps");rXv.set("reactions_toggle","allow-reactions");var Vk=function(){return _.g.apply(this,arguments)||this};
_.w(Vk,_.g);_.P=Vk.prototype;_.P.menuItemIdentifierChanged=function(){var M;(M=this.data)!=null&&M.menuItemIdentifier&&(M=rXv.get(this.data.menuItemIdentifier))&&(_.U("enable_lwe_web_mute")?(M=bxd.get(M),this.isToggled=!(M===void 0?!this.data.isToggled:!M)):this.isToggled=bxd.get(M))};
_.P.onFocus=function(){this.toggleButton.focus()};
_.P.onTap=function(){var M=this.data.command;M&&this.componentBehavior.resolveCommand(M)};
_.P.computeText=function(M,z,J){return this.componentBehavior.getSimpleString(M?J:z)};
_.P.computeIcon=function(M,z,J){return(M=M?J:z)&&M.iconType?_.oE(M.iconType):""};
Vk.prototype.onTap=Vk.prototype.onTap;Vk.prototype.onFocus=Vk.prototype.onFocus;Vk.prototype.menuItemIdentifierChanged=Vk.prototype.menuItemIdentifierChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Vk.prototype,"componentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Vk.prototype,"data",void 0);
_.u([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],Vk.prototype,"icon",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Vk.prototype,"isToggled",void 0);_.u([_.Qc("tp-yt-paper-toggle-button"),_.W("design:type",Object)],Vk.prototype,"toggleButton",void 0);_.u([_.la("data.menuItemIdentifier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"menuItemIdentifierChanged",null);
_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"onFocus",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vk.prototype,"onTap",null);_.u([_.cU({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Vk);
_.d(Vk,"yt-live-chat-toggle-renderer",function(){if(CAc===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;ixl===void 0&&(ixl=document.createElement("template"));var R=ixl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);CAc=M}M=CAc;return M},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Mbm=new _.Nh("NAVIGATION_PROGRESS_TOKEN");var zll={},J3i={},Rli=(J3i[iZw.name]=!0,J3i),Et=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;M.tabGesturesIsActive=!1;M.actionRouterIsRoot=!0;M.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};M.pageTitle="";M.titleSuffix="YouTube";M.unseenNotificationCount=
0;M.hasNavigated=!1;M.hasSetScrollTopForNavigation=!1;M.pagePreparer=null;M.zwiebackInitJobId=0;M.dataUpdatePromise=null;M.loadDepsPromise=_.Of();M.hasPendingNavigation=!1;M.pendingPlayerOnResponseReceivedActions=[];return M};
_.w(Et,_.vU);Et.prototype.attached=function(){DAs(this);document.addEventListener("yt-navigate-cache",_.ou(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var M=fG();M.init();M.dispatchElement=this.hostElement};
var DAs=function(M,z){z=z===void 0?0:z;var J=_.JF().resolve(_.zw(_.g_));if(J)Njw(M,J);else{if(z>=5)throw Error("$k");setTimeout(function(){DAs(M,z+1)},0)}},Njw=function(M,z){z.addEventListener("yt-navigate-start",_.ou(M,M.onYtNavigateStart));
z.addEventListener("yt-navigate-finish",_.ou(M,M.onYtNavigateFinish));z.addEventListener("yt-navigate-error",_.ou(M,M.onYtNavigateError));z.addEventListener("yt-page-data-fetched",_.ou(M,M.onYtPageDataFetched))};
_.P=Et.prototype;_.P.detached=function(){var M=_.JF().resolve(_.g_);M.removeEventListener("yt-navigate-start",_.ou(this,this.onYtNavigateStart));M.removeEventListener("yt-navigate-finish",_.ou(this,this.onYtNavigateFinish));M.removeEventListener("yt-navigate-error",_.ou(this,this.onYtNavigateError));M.removeEventListener("yt-page-data-fetched",_.ou(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ou(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.P.setPageOffset=function(M,z){M?_.S9(this.hostElement,"yt-set-page-offset",[M,z]):_.nc(Error("al"))};
_.P.setPageOffsetForNavigation=function(M,z){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(M,z))};
_.P.onYtNavigateSetPageOffset=function(M,z){this.setPageOffsetForNavigation(z.page,z.offset)};
_.P.getPageOffset=function(){var M=_.SN(this.hostElement).querySelector("#page-manager").getCurrentPage(),z=0;M&&(z=_.S9(this.hostElement,"yt-get-page-offset",[M])[0]);return z};
_.P.onYtHistoryPop=function(M,z){if(_.cW("DISABLE_WARM_LOADS"))M.preventDefault(),window.location.reload();else{var J=_.JF().resolve(_.g_);J.hasPendingNavigation()&&M.preventDefault();J.cancelPendingNavigation();_.ZL(this.hostElement,"yt-pending-navigation-cancelled");z.errorMsg&&(M=z.errorMsg.split(" - "),z=Error(M[0]),M.length==2&&M[1]&&(_.Hb(z,M[1]),_.yA(z)),window.location.reload())}};
_.P.onYtHistoryLoad=function(M,z){var J=this;if(_.cW("DISABLE_WARM_LOADS"))window.location.reload();else{(M=z.endpoint)&&Object.keys(M).length||(M=null);var R=z.historyEntry,D=_.JF().resolve(_.g_),N=_.JF().resolve(_.M6),Z=null;R&&R.rootData&&(Z=R.rootData);var B=Z&&P1w(Z);!Z||B||Z.filler?M?(D.navigate(M,!0),SLu(this,M)):(z.legacyBorder||B||(z.JSC$30004_savedComponentState==null&&Z==null?_.yA(new _.xN("Incomplete history entry",z.forward)):_.hL(new _.xN("Malformed history entry",z.JSC$30004_savedComponentState,
z.forward,Z))),window.location.reload()):(_.D0R({isHot:!0}),_.sf({webInfo:{navigationReason:"h"}}),_.vMw(),_.hd("srt"),_.hd("pdc"),this.cancelPendingTasks(),Zml(this,z.forward,Z),Z.player&&(Z.player.loaded=!1),SLu(this,M),_.ZJB(D,M||{},Z,2,{},!1,z).then(function(){J.setPageOffset(N.getCurrentPage(),R.scrollTop||0)}))}};
_.P.initHistoryManager=function(M){if(!this.hasNavigated){this.hasNavigated=!0;var z=_.SN(this.hostElement).querySelector("#page-manager").getCurrentData();M=isNaN(M)?this.getPageOffset():M;var J=_.JF().resolve(_.g_).currentEndpoint;this.replaceState(J,z,M)}};
_.P.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.P.onYtNavigateStart=function(M,z){this.cancelPendingTasks();z.noProgressBar||(M=_.JF().resolve(_.zw(Mbm)))&&M.start();M=this.hasPendingNavigation?null:this.data;var J=_.JF().resolve(_.M6),R,D,N;_.U("kevlar_use_vimio_behavior")&&!((R=z.endpoint)==null?0:(D=R.commandMetadata)==null?0:(N=D.webCommandMetadata)==null?0:N.ignoreNavigation)&&(R=J.getCurrentPage())&&R.disconnectVisibilityRoot();J.prepareForNavigation(z.pageType,z.endpoint);_.U("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.ZJ(1,
"pcl"),_.kK(this.pagePreparer,J.preparePage.bind(J,z.pageType,z.endpoint)));R=this.getPageOffset();this.initHistoryManager(R);z.reload||this.hasPendingNavigation?this.replaceState(z.endpoint,M,R):(M==null?void 0:M.page)==="watch"&&z.pageType==="watch"&&_.U("kevlar_replace_watch_to_watch_history_state")?this.replaceState(z.endpoint,M,R):(M==null?void 0:M.page)!=="shorts"||z.pageType!=="shorts"||z.endpoint.reelWatchEndpoint.sequenceParams||_.U("short_to_short_back_nav_killswitch")?z.type!="navigate-back"&&
z.type!="navigate-forward"&&(z.pageType==="shorts"&&_.Pv(this.hostElement,"yt-shorts-reset"),this.saveAndPush(z.url,z.endpoint,M,R)):(_.U("web_enable_delay_shorts_sequence_call")&&(z.endpoint.reelWatchEndpoint.sequenceParams=M==null?void 0:M.cachedSequenceParams,z.endpoint.reelWatchEndpoint.sequenceProvider=M==null?void 0:M.cachedSequenceProvider),this.replaceState(z.endpoint,M,0));this.hasPendingNavigation=!0};
var kPl=function(M){M.hasPendingNavigation=!1;(M=_.JF().resolve(_.zw(Mbm)))&&M.finish()};
Et.prototype.onYtNavigateError=function(M,z){kPl(this);M=this.get("endpoint.commandMetadata.webCommandMetadata.url",z);var J=_.fh(window.location.href);M&&!J.pbjreload&&(z=z.navigationErrorReason||"10",_.U("kevlar_parent_on_pbjreload")&&(J={csn:_.y5()},this.get("data.endpoint.clickTrackingParams")&&(J.itct=this.data.endpoint.clickTrackingParams),_.rM(M,J)),_.EA(_.Lh(M,{pbjreload:z})))};
Et.prototype.onYtNavigateCache=function(M,z){var J=this,R=z.url,D=z.endpoint,N=z.data;M=!!z.miniplayer;z=!!z.skipHistory;if(R&&D&&N){var Z=this.getPageOffset(),B=this.data||null;z||this.saveAndPush(R,D,B,Z);R=_.ZJB(_.JF().resolve(_.g_),D,N,M?4:3,{},M);M&&R.then(function(){J.dataUpdatePromise&&J.dataUpdatePromise.then(function(){var O=_.JF().resolve(_.M6);J.setPageOffset(O.getCurrentPage(),0)})})}};
Et.prototype.onYtNavigateFinish=function(M,z){var J=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Bjm(J,z.fromHistory)})};
var Bjm=function(M,z){kPl(M);if(M.pendingPlayerOnResponseReceivedActions){for(var J=_.S(M.pendingPlayerOnResponseReceivedActions),R=J.next();!R.done;R=J.next())_.e5(R.value,M.hostElement);M.pendingPlayerOnResponseReceivedActions=[]}J=_.JF().resolve(_.M6);z||!M.hasNavigated||_.U("web_disable_scroll_on_navigate_finish")||((z=J.getCurrentPage())?z.is==="ytd-shorts"||M.tabGesturesIsActive||M.setPageOffsetForNavigation(z,0):_.yA(Error("bl")));_.au(function(){_.au(function(){_.hd("pda")})})};
Et.prototype.onYtNavigate=function(M){if(!M.detail.endpoint){var z=new _.xN("Error: Missing yt-navigate endpoint from target:",M.target,M.target.nodeName);_.nc(z)}if(z=_.U("cold_missing_history"))z=fG(),z.init(!1),z=!(z.browserHistory.boundHistoryReplaceState&&z.browserHistory.boundHistoryPushState);if(z){_.yU("DISABLE_WARM_LOADS",!0);z=new _.xN("Failed to initialize history manager",this.getDebugString());var J=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
J?_.yA(z):_.nc(z)}z=M.detail.endpoint;var R,D;_.U("debug_forward_web_query_parameters")&&((R=z.commandMetadata)==null?0:(D=R.webCommandMetadata)==null?0:D.url)&&(z=JSON.parse(JSON.stringify(z)),z.commandMetadata.webCommandMetadata.url=_.WVR(z.commandMetadata.webCommandMetadata.url,window.location.search));M={type:0,command:z,form:{params:M.detail.params,tempData:M.detail.tempData||{},requestType:M.detail.type,createScreenConfig:M.detail.createScreenConfig,reload:M.detail.reload?M.detail.reload:!1,
requestForm:M.detail}};_.U("kevlar_yt_navigate_command_handler")?(R=_.JF().resolve(_.Rb),M.form.skipDefaultElement=!0,R.resolveCommand(z,{form:M.form})):this.handleNavigate(M)};
Et.prototype.handleNavigate=function(M){this.hasSetScrollTopForNavigation=!1;var z=_.JF().resolve(_.g_),J=M.form||{};z.navigate(M.command,J.reload,J.params,J.tempData,J.requestType,J.createScreenConfig,J.ignoreConfirmation,J.requestForm)&&SLu(this,M.command,J.tempData)};
Et.prototype.onYtPageDataFetched=function(M,z){try{_.rjV().reset();this.data=z.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.JF().resolve(_.M6).updatePageData(this.data);if(!_.U("web_service_params_response_processor")){var J=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);J&&t9l(J);var R=this.get("response.responseContext.serviceTrackingParams",
this.data);R&&t9l(R)}var D=this.get("playerResponse.onResponseReceivedActions",this.data);D&&(D=OmG(this,D));D&&_.Bv(this.hostElement,D,this.hostElement);var N=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Z=this.get("response.responseContext.consistencyTokenJar",this.data);if(N||Z){var B=_.pHR(),O=(0,_.gu.getValues)(B.tokenJars);N&&B.replace(O,N);Z&&B.replace(O,Z)}}catch(X){_.nc(X)}};
var SLu=function(M,z,J){try{M.onYtEndpointChangeHandler(z,J)}catch(R){_.nc(R)}};
_.P=Et.prototype;_.P.onYtEndpointChangeHandler=function(){};
_.P.setPageTitle=function(M){M=(this.pageTitle=M)?M+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+M};
_.P.onYtUpdateTitle=function(M,z){this.setPageTitle(z)};
_.P.setUnseenNotificationCount=function(M){this.unseenNotificationCount=M;this.setPageTitle(this.pageTitle)};
_.P.handleUpdateNotificationsUnseenCountAction=function(M){_.G(M,sQw)&&((M=_.G(M,sQw).unseenCount)?this.setUnseenNotificationCount(M):this.setUnseenNotificationCount(0))};
_.P.handleClearCookieAction=function(M){var z;(M=(z=_.G(M,F_m))==null?void 0:z.cookieName)&&_.ZD0(M)};
_.P.onYtUpdateUnseenNotificationCount=function(M,z){this.setUnseenNotificationCount(z)};
_.P.loadData=function(M){var z=this;this.loadDepsPromise.then(function(){var J=_.JF().resolve(_.zw(_.g_));J||_.nc(Error("cl"));if(M&&M.response){if(!M.endpoint){var R=_.aT(window.document.location.href)||"/",D="";if(R==="/"||R.startsWith("/?"))D="WEB_PAGE_TYPE_BROWSE";M.endpoint={commandMetadata:{webCommandMetadata:{url:R,webPageType:D,rootVe:3854}}}}_.ZJB(J,M.endpoint,M,5,{})}else M.endpoint?J.navigate(M.endpoint):J.navigate(_.tm);_.no.cancelJob(z.zwiebackInitJobId);z.zwiebackInitJobId=_.no.addLowPriorityJob(Gpc)})};
var fG=function(){return _.JF().resolve(_.GW)};
Et.prototype.getDebugString=function(){return fG().getDebugString()};
Et.prototype.getThirdPartyManipulationSuspected=function(){return fG().getThirdPartyManipulationSuspected()};
Et.prototype.replaceState=function(M,z,J){fG().saveAndReplace(M,z,J)};
Et.prototype.saveAndPush=function(M,z,J,R){fG().saveAndPush(M,z,J,R)};
var P1w=function(M){return _.G(M.endpoint,_.Au)||_.G(M.endpoint,_.je)?!0:!M||isNaN(M.expirationTime)?!1:(0,_.zU)()>M.expirationTime},Zml=function(M,z,J){var R=M.get("response.trackingParams",J),D=_.hu(),N=_.y5();
if(R&&D&&N&&(R=M.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",J),!R&&J.rootVe&&(R=J.rootVe),D=z?"forwardButton":"backButton",z=M.get("playerResponse.topbar.desktopTopbarRenderer."+D+".buttonRenderer.command.clickTrackingParams",M.data),M=M.get("response.topbar.desktopTopbarRenderer."+D+".buttonRenderer.command.clickTrackingParams",M.data),z=(M=z||M)?_.pe(M):void 0,M=_.Gm(),D=[_.Of(J)],_.Xx(M,R,z,{dataPromises:D,csnToClone:J.csn}),J.graftedVes))for(J=
_.S(J.graftedVes),R=J.next();!R.done;R=J.next())_.ln(M,R.value)};
Et.prototype.onStoreGraftedVeAction=function(M){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(M)):_.yA(Error("dl"))};
var OmG=function(M,z){return z.filter(function(J){for(var R in J)if(Rli[R])return M.pendingPlayerOnResponseReceivedActions.push(J),!0;return!1})};
_.rX.Object.defineProperties(Et.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Et.prototype.onStoreGraftedVeAction=Et.prototype.onStoreGraftedVeAction;Et.prototype.loadData=Et.prototype.loadData;Et.prototype.onYtUpdateUnseenNotificationCount=Et.prototype.onYtUpdateUnseenNotificationCount;Et.prototype.handleClearCookieAction=Et.prototype.handleClearCookieAction;Et.prototype.handleUpdateNotificationsUnseenCountAction=Et.prototype.handleUpdateNotificationsUnseenCountAction;Et.prototype.setUnseenNotificationCount=Et.prototype.setUnseenNotificationCount;
Et.prototype.onYtUpdateTitle=Et.prototype.onYtUpdateTitle;Et.prototype.setPageTitle=Et.prototype.setPageTitle;Et.prototype.onYtEndpointChangeHandler=Et.prototype.onYtEndpointChangeHandler;Et.prototype.onYtPageDataFetched=Et.prototype.onYtPageDataFetched;Et.prototype.handleNavigate=Et.prototype.handleNavigate;Et.prototype.onYtNavigate=Et.prototype.onYtNavigate;Et.prototype.onYtNavigateFinish=Et.prototype.onYtNavigateFinish;Et.prototype.onYtNavigateCache=Et.prototype.onYtNavigateCache;
Et.prototype.onYtNavigateError=Et.prototype.onYtNavigateError;Et.prototype.onYtNavigateStart=Et.prototype.onYtNavigateStart;Et.prototype.cancelPendingTasks=Et.prototype.cancelPendingTasks;Et.prototype.initHistoryManager=Et.prototype.initHistoryManager;Et.prototype.onYtHistoryLoad=Et.prototype.onYtHistoryLoad;Et.prototype.onYtHistoryPop=Et.prototype.onYtHistoryPop;Et.prototype.onYtNavigateSetPageOffset=Et.prototype.onYtNavigateSetPageOffset;Et.prototype.setPageOffset=Et.prototype.setPageOffset;
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Et.prototype,"data",void 0);_.u([_.Xw("yt-navigate-set-page-offset"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Et.prototype,"onYtNavigateSetPageOffset",null);
_.u([_.Xw("yt-history-pop"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Et.prototype,"onYtHistoryPop",null);_.u([_.Xw("yt-history-load"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Y9$]),_.W("design:returntype")],Et.prototype,"onYtHistoryLoad",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Et.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-update-title"),_.W("design:type",Function),_.W("design:paramtypes",[Event,String]),_.W("design:returntype")],Et.prototype,"onYtUpdateTitle",null);_.u([_.Xw("yt-update-unseen-notification-count"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Number]),_.W("design:returntype")],Et.prototype,"onYtUpdateUnseenNotificationCount",null);_.u([_.Gp()],Et);zll.YtdAppBehavior=[_.wx.YtActionHandlerBehavior,Et.prototype];var LG=function(){var M=_.vU.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.w(LG,_.vU);LG.prototype.ready=function(){var M=this;_.SN(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){M.onChange_()})};
LG.prototype.dataChanged_=function(){_.SN(this.hostElement).querySelector("#checkbox").checked=!1};
LG.prototype.onChange_=function(){var M=_.SN(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Pv(this.hostElement,"yt-dismissal-reason-"+M,this.data.feedbackToken)};
LG.prototype.dataChanged_=LG.prototype.dataChanged_;_.u([_.Y(),_.W("design:type",Object)],LG.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LG.prototype,"dataChanged_",null);_.u([_.Gp()],LG);var Tjv=[LG.prototype];var Ay=function(){var M=_.vU.apply(this,arguments)||this;M.timeoutJobId=0;M.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return M};
_.w(Ay,_.vU);Ay.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ay.prototype.startTimeout=function(){var M=this,z=this.data&&this.data.displayDurationSeconds;z&&!this.timeoutJobId&&(this.timeoutJobId=_.x4(_.no,function(){_.S9(M.hostElement,"yt-close-popup-action",[M.is]);M.timeoutJobId=0},z*1E3))};
Ay.prototype.cancelTimeout=function(){_.no.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Ay.prototype.ytdHatsSurveyBehaviorDataChanged=Ay.prototype.ytdHatsSurveyBehaviorDataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Ay.prototype,"ytActionHandlerBehavior",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ay.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.u([_.Gp()],Ay);var Inv=[_.wx.YtActionHandlerBehavior,Ay.prototype];var ohc=function(M,z){var J;return((J=M.prefixMapping)==null?0:J[z])?M.prefixMapping[z]:M.SHARED_RENDERERS_.hasOwnProperty(z)?"yt":M.prefix},ip={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}};ip.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.U("kevlar_mealbar_above_player"),modern:_.U("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
ip.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};ip.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};ip.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
ip.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)"}};
ip.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};
ip.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};
ip.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};
ip.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};ip.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"}};
ip.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};ip.TOAST={component:null,properties:{}};var X8G=new function(M,z,J){this.supportedPopups=M;this.navigationEndpointPopupMap=z;this.popupTypeMap=J;this.supportedPopups=M;this.navigationEndpointPopupMap=z;this.popupTypeMap=J}({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:_.U("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"}),lnw=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19761_popupConfig=ip;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 elu=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.$1.getInstance()},CG=function(M,z){var J=M.pageNameToElement.get(z);
if(!J){switch(z){case "watch":var R=_.U("web_watch_force_learning_journey_for_testing")?_.Su("ytd-watch-learning-journey"):_.U("kevlar_watch_fixie")?_.Su("ytd-watch-fixie"):_.U("kevlar_watch_grid")?_.Su("ytd-watch-grid"):_.Su("ytd-watch-flexy");break;case "learning_journey_watch":R=_.Su("ytd-watch-learning-journey");break;case "shorts":R=_.Su("ytd-shorts");break;case "search":R=_.Su("ytd-search");break;case "channel":R=_.Su("ytd-browse");R.pageSubtype="channels";break;case "trending":R=_.Su("ytd-browse");
R.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":R=
_.Su("ytd-browse");R.pageSubtype=z;break;case "browse":R=_.Su("ytd-browse");break;default:_.yA(new _.xN("Error getting page element for type",z))}J=R;M.pageNameToElement.set(z,J)}return J};
elu.prototype.preparePage=function(M,z,J){J&&(M=_.vP(J)||M);if(M!=="watch"&&M!=="learning_journey_watch"){var R=this.elementPoolPopulator,D=M;D!=R.targetPage_&&R.pendingPages_.indexOf(D)>-1&&(R.targetPage_&&(R.pendingPages_.unshift(R.targetPage_),R.abort()),kym(R,D),_.t$t(R,D))}if((R=CG(this,M))||!_.G(J,_.af)){R.isAttached||R===z||(R.hidden=!0);if(!R.data&&(M!=="watch"&&M!=="learning_journey_watch"||!_.U("swatcheroo_page_pool_dont_provide_filler_data"))){var N;if(M=(N=_.HW("FILLER_DATA",{})[M])==
null?void 0:N.response)R.data=M}return R}};var QSw=function(M){this.JSC$31902_clientRoot=M;this.playlistHandlerActionMap={"yt-add-to-playlist-command":gzw,"yt-end-playlist-command":suv,"yt-recover-playlist-command":hfv,"yt-refresh-playlist-command":cJt,"yt-playlist-remove-videos-action":yJd};_.EB(_.VA.getInstance(),this.playlistHandlerActionMap,this.JSC$31902_clientRoot);U9d()},UAl;var bp=function(M,z,J){this.apiKey=M;this.endpoint=z;this.confidenceThreshold=J===void 0?.5:J;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=z==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
z==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new xPG};
_.P=bp.prototype;
_.P.start=function(M){if(this.state===0)if(this.isOnline()){M.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=M.supportsHttpHeadersOverwriteParam);M.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=M.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.nY("voice_assistant");_.yC("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=M.languageCode||"en-US";this.supportsCrossDomainXhr=M.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=M.youtubeAssistantRequest||null;this.listeningHandler=M.listeningHandler||this.listeningHandler;this.audioDetectedHandler=M.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=M.stopHandler||this.stopHandler;this.completeHandler=M.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=M.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=M.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
M.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=M.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=M.accessToken;this.additionalHeaders=M.additionalHeaders||{};var z;this.prefetchResponseTimeoutMs=(z=M.prefetchResponseTimeoutMs)!=null?z:this.prefetchResponseTimeoutMs;vhc(this);this.startAudio();GPw(this)}else this.errorHandler("OFFLINE")};
_.P.stop=function(M){var z=M===void 0?{}:M;M=z.logCancel===void 0?!0:z.logCancel;var J=z.logMicClosed===void 0?!0:z.logMicClosed;var R=z.handleError===void 0?!0:z.handleError;z=z.handleStop===void 0?!0:z.handleStop;this.state!==0&&(M&&r7("voz_cx"),MY(this,{logMicClosed:J,handleStop:z}),R&&this.errorHandler("ABORTED"))};
_.P.getState=function(){return this.state};
_.P.isSupported=function(){return!0};
_.P.stopAudio=function(M){(M===void 0||M)&&r7("voz_mf")};
_.P.startAudio=function(){r7("voz_vp");return _.Of(null)};
var w8v=function(M,z){M.channelOpen&&(M.state!==2&&(M.state=2,r7("voz_ss"),M.listeningHandler()),z=new Uint8Array(z),z='{ "audioIn": "'+_.YG(z)+'" }',M.channel.send(z))},MY=function(M,z){var J=z===void 0?{}:z;
z=J.logMicClosed===void 0?!0:J.logMicClosed;J=J.handleStop===void 0?!0:J.handleStop;M.vozEndOfDataTimeout>-1&&(clearTimeout(M.vozEndOfDataTimeout),M.vozEndOfDataTimeout=-1);xAi(M);M.stopAudio(z);M.channel&&(M.channelOpen=!1,M.manuallyClosedChannel=!0,M.channel.close(),M.channel=void 0);M.transcribedSpeechResults=[];M.state=0;J&&M.stopHandler()},vhc=function(M){var z={httpHeadersOverwriteParam:M.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},M.additionalHeaders,M.accessToken&&M.isUsingVoz?{Authorization:"Bearer "+M.accessToken}:{"x-goog-api-key":M.apiKey}),supportsCrossDomainXhr:M.supportsCrossDomainXhr};M.channel=new rI(M.endpoint,z);M.channel.open();_.YS(M.channel,"w",function(){var J=M.channel,R=J.send,D=M.isUsingVoz?"PLACEHOLDER":"example";D={config:{dialogStateIn:{languageCode:M.languageCode},deviceConfig:{deviceId:D,deviceModelId:D},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!M.isUsingVoz)D.config.requestType=4;else if(M.isUsingVoz&&M.youtubeAssistantRequest){var N=JSON.stringify(M.youtubeAssistantRequest);D.config.internalIn={youtubeAssistantS3InputJson:N}}R.call(J,D);M.channelOpen=!0;M.manuallyClosedChannel=!1});
_.YS(M.channel,"x",function(){M.manuallyClosedChannel||(M.channelOpen=!1,M.channel=void 0,MY(M))});
_.YS(M.channel,"z",function(J){if(J.data){xAi(M);for(var R=0;R<J.data.length;R++){var D=M,N=J.data[R],Z=N.speechResults;if(Z)a:{var B=[];N=[];var O=!1;Z=_.S(Z);for(var X=Z.next();!X.done;X=Z.next()){X=X.value;if(X.noSpeech){MY(D);D.errorHandler("NO_SPEECH");break a}X.transcript!==void 0&&X.stability!==void 0&&(X.stability<D.confidenceThreshold&&(O=!0),O?N.push(X.transcript):B.push(X.transcript))}if(B.length!==0||N.length!==0)B=B.join(" "),N=N.join(" "),D.receivedEndOfUtterance&&!D.isUsingVoz?D.isUsingVoz||
D.completeHandler([B,N]):(O=D,Z=B,X=N,r7("voz_sf"),O.transcriptionUpdateHandler(Z,X),O.transcribedSpeechResults=[Z,X]),D.receivedEndOfUtterance&&(r7("voz_eou"),D.transcriptionCompleteHandler([B,N]),D.isUsingVoz&&(D.prefetchResponseTimeoutMs===0?MY(D,{logMicClosed:!1,handleStop:!0}):D.prefetchResponseTimeoutMs>0&&tbt(D)))}else D.isUsingVoz&&(N==null?0:N.internalOut)?(N=JSON.parse(N.internalOut.youtubeAssistantS3OutputJson),N.userHasOptedInToVaa||N.vaaConsent?D.vaaConsentUpdateHandler(!!N.userHasOptedInToVaa,
!!N.vaaConsent):(jSt(D),N&&(B=D.transcribedSpeechResults,r7("voz_rqf"),D.completeHandler(B,N)))):N.eventType==="END_OF_UTTERANCE"?D.receivedEndOfUtterance=!0:(r7("voz_err"),D.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.yA(Error("el")))}}});
_.YS(M.channel,"y",function(J){MY(M);switch(J.status){case 1:J="WEBCHANNEL_NETWORK_ERROR";break;case 2:J="WEBCHANNEL_SERVER_ERROR";break;default:J="WEBCHANNEL_UNKNOWN_ERROR"}M.errorHandler(J);M.logError(Error(J))})};
bp.prototype.logError=function(M){_.nc(M)};
bp.prototype.isOnline=function(){return!0};
var tbt=function(M){jSt(M);M.prefetchResponseSetTimeoutId=setTimeout(function(){MY(M,{logMicClosed:!1,handleStop:!0})},M.prefetchResponseTimeoutMs)},jSt=function(M){M.prefetchResponseSetTimeoutId>-1&&(clearTimeout(M.prefetchResponseSetTimeoutId),M.prefetchResponseSetTimeoutId=-1)},GPw=function(M){xAi(M);
M.noResponseReceivedTimeout=window.setTimeout(function(){MY(M);M.errorHandler("NO_SPEECH")},11E3)},xAi=function(M){M.noResponseReceivedTimeout>-1&&(window.clearTimeout(M.noResponseReceivedTimeout),M.noResponseReceivedTimeout=-1)},r7=function(M){_.hd(M,void 0,"voice_assistant")};var zo=function(){bp.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.w(zo,bp);zo.prototype.isSupported=function(){return d3u()};
zo.prototype.startAudio=function(){var M=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.gv(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(R){p85(M,R)};
this.processor.connect(this.audioContext.destination);var z=function(R){M.stream=R;if(!M.audioContext)return _.Of(null);R=M.audioContext.createMediaStreamSource(R);M.processor&&R.connect(M.processor);return _.Of(null)},J={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?z(this.stream):(J=navigator.mediaDevices.getUserMedia(J))?J.then(z).catch(function(R){MY(M);R.name&&R.name==="NotAllowedError"?M.errorHandler("NO_MICROPHONE_PERMISSION"):(M.errorHandler("AUDIO_ERROR"),M.logError(R));return _.gv(null)}):(MY(this),this.errorHandler("AUDIO_ERROR"),_.yA(Error("fl")));
return bp.prototype.startAudio.call(this)};
zo.prototype.stopAudio=function(M){M=M===void 0?!0:M;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(z){z.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;bp.prototype.stopAudio.call(this,M)};
zo.prototype.isOnline=function(){return navigator.onLine};
var p85=function(M,z){if(M.audioContext)if(window.OfflineAudioContext){var J=M.audioContext.sampleRate,R=z.inputBuffer.getChannelData(0);z=new window.OfflineAudioContext(1,R.length,16E3);for(var D=z.createBuffer(1,R.length,J),N=D.getChannelData(0),Z=0,B=0;B<R.length;B++)N[B]=R[B],Z+=N[B]*N[B];!M.audioDetected&&Math.sqrt(Z/R.length)>.01&&(M.audioDetected=!0,M.audioDetectedHandler());R=z.createBufferSource();R.buffer=D;R.connect(z.destination);R.start(0);z.oncomplete=function(O){O=O.renderedBuffer.getChannelData(0);
for(var X=Math.floor(16384E3/J),l=new Int16Array(X),e=0;e<X;++e)l[e]=Math.max(-1,Math.min(1,O[e]))*32767;w8v(M,l.buffer)};
z.startRendering()}else FYv(M,z)},FYv=function(M,z){var J=M.audioContext.sampleRate,R=z.inputBuffer.getChannelData(0),D=Math.floor((J+8E3)/16E3);
J=R.length/D;z=new Float32Array(J);for(var N=0;N<J;++N)z[N]=R[N*D];R=new Int16Array(J);for(D=0;D<J;++D)R[D]=Math.max(-1,Math.min(1,z[D]))*32767;w8v(M,R.buffer)};var YLu={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var mAd=function(){this.JSC$19826_audioEnabled=!0;this.audioFeedbackHolder={}};
mAd.prototype.isPlaying=function(M){return M.currentTime>0&&!M.paused&&!M.ended&&M.readyState>2};
var ght=function(M){for(var z=_.S(Object.values(YLu)),J=z.next();!J.done;J=z.next())J=J.value,M.audioFeedbackHolder[J]=new Audio,M.audioFeedbackHolder[J].src="/s/search/audio/"+J+".mp3",M.audioFeedbackHolder[J].load()},Jq=function(M,z){if(M.JSC$19826_audioEnabled!==!1&&z in M.audioFeedbackHolder){for(var J=_.S(Object.values(M.audioFeedbackHolder)),R=J.next();!R.done;R=J.next())R=R.value,M.isPlaying(R)&&R.pause();
M.audioFeedbackHolder[z].currentTime=0;M.audioFeedbackHolder[z].play().catch(function(){})}};var sS5=function(M,z){var J=this;this.store=M;this.service=z;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){J.setState("offline");J.stop()};
this.audioPlayer=new mAd;var R;(R=this.audioPlayer)==null||ght(R)};
_.P=sS5.prototype;_.P.getService=function(){return this.service};
_.P.isEnabled=function(){return!!this.service};
_.P.isSupported=function(){var M;return(M=this.service)==null?void 0:M.isSupported()};
_.P.start=function(){var M=this,z,J,R,D,N,Z,B,O,X,l,e,Q,v;return _.k(function(x){switch(x.nextAddress){case 1:M.store.dispatch(yxl("",""));if(!navigator.onLine)return M.setState("offline"),x.return();window.addEventListener("offline",M.handleOfflineEvent);M.stream=null;if(!M.permissionsSupported){x.jumpTo(2);break}_.Io(x,3);return x.yield(nhm(M),5);case 5:z=x.yieldResult;if(!z)return(J=M.audioPlayer)==null||Jq(J,"failure"),x.return();M.service.stream=M.stream;M.setState("listening");_.ab(x,2);break;
case 3:_.Qa(x),M.permissionsSupported=!1;case 2:R={context:_.oVo(_.RH())},R.youtubeAssistantParams={searchParams:{inlineSearchResponse:M.enableInlineSearchResponse}},D=function(m,y){M.store.dispatch(Haw("transcribing"));M.store.dispatch(yxl(m,y))},N=function(){var m;
(m=M.audioPlayer)==null||Jq(m,"open");M.setState("listening")},Z=function(){M.setState("transcribing")},B=function(m){M.setErrorState(m)},O=function(m,y){var H;
(H=M.audioPlayer)==null||Jq(H,"success");y&&(_.U("kevlar_voice_search_inline_search")&&(M.responseProcessor=_.JF().resolve(_.REe),M.responseProcessor&&(H=y.navigationAction,m=y.prefetchedSearchResponse,H&&m&&(H=(new _.R25).JSC$13024_getStoreKey(H),_.Ej(M.responseProcessor,m,H)))),M.JSC$19844_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",y))},X=function(){window.removeEventListener("offline",M.handleOfflineEvent)},l=_.xGH(!1),e=l.Authorization!=null,Q=M.enableFirstPartyAuth||
M.enableFPAForSignedInUsers&&e?l:{"X-Goog-Visitor-Id":l["X-Goog-Visitor-Id"]},v={completeHandler:O,
errorHandler:B,listeningHandler:N,audioDetectedHandler:Z,stopHandler:X,transcriptionUpdateHandler:D,youtubeAssistantRequest:R,languageCode:hli(),additionalHeaders:Q,supportsCrossDomainXhr:M.enableFirstPartyAuth||M.enableFPAForSignedInUsers&&e,supportsHttpHeadersOverwriteParam:!M.disableHttpHeadersOverwrite},M.service.start(v),_.UI(x)}})};
_.P.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.P.reset=function(){this.store.dispatch(_.Nv({type:"RESET_VOICE_SEARCH_STATE"}))};
_.P.setState=function(M){this.store.dispatch(Haw(M))};
_.P.setErrorState=function(M){switch(M){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var z;(z=this.audioPlayer)==null||Jq(z,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)nhm(this);else{var J;(J=this.audioPlayer)==null||Jq(J,"failure");this.setState("permission-denied")}break;case "ABORTED":var R;(R=this.audioPlayer)==null||Jq(R,"no_input");break;default:var D;(D=this.audioPlayer)==
null||Jq(D,"no_input");this.setState("timeout")}};
var nhm=function(M){var z,J;return _.k(function(R){switch(R.nextAddress){case 1:return R.yield(navigator.permissions.query({name:"microphone"}),2);case 2:z=R.yieldResult;if(z.state==="granted")return R.return(!0);if(z.state==="denied")return M.setState("permission-denied"),R.return(!1);M.setState("permission");J={audio:{sampleSize:16,channelCount:1},video:!1};_.Io(R,3);return R.yield(navigator.mediaDevices.getUserMedia(J),5);case 5:return M.stream=R.yieldResult,R.return(!0);case 3:return _.Qa(R),
M.setState("permission-denied"),R.return(!1)}})},hli=function(){var M=_.HW("INNERTUBE_CONTEXT_HL"),z=_.HW("INNERTUBE_CONTEXT_GL");
return M.indexOf("-")>-1?M:M+"-"+z};var y3l=function(M,z,J){sS5.call(this,z,J);this.JSC$19844_actionRouter=M;this.enableInlineSearchResponse=_.U("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.U("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.U("kevlar_voice_search_enable_fpa_signedin_users")},Hmd;
_.w(y3l,sS5);
var c3l=function(){if(!Hmd){var M="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.U("kevlar_voice_search_auth_enabled")||_.U("kevlar_voice_search_use_yt_endpoint")?M="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.U("kevlar_voice_search_use_fp_endpoint")&&(M="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Hmd=
new y3l(_.VA.getInstance(),_.rA(),new zo(_.HW("VOZ_API_KEY"),M,.5))}return Hmd};var dAl=function(M){this.JSC$19848_clientRoot=M;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19848_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)]]));M=_.S(this.eventListeners);for(var z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;J=_.S(J);for(var R=J.next();!R.done;R=J.next()){var D=
_.S(R.value);R=D.next().value;D=D.next().value;z.addEventListener(R,D)}}_.EB(_.VA.getInstance(),this.autonavPauseActionMap,this.JSC$19848_clientRoot)},KYw,$Aw=function(M){return _.U("kevlar_autonav_popup_filtering")?(M=_.b7(M))?M.hasAttribute("prevent-autonav"):!0:!0};
_.P=dAl.prototype;_.P.onIronOverlayOpened=function(M){$Aw(M)&&(this.autonavPauseReasons.overlayOpen=!0,R1(this))};
_.P.onIronOverlayClosed=function(M){$Aw(M)&&(this.autonavPauseReasons.overlayOpen=!1,R1(this))};
_.P.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;R1(this)};
_.P.onYtAutonavPauseBlur=function(){var M=this;_.no.addJob(function(){M.isInBackground()||(M.autonavPauseReasons.inputBoxFocus=!1,R1(M))},8,0)};
_.P.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;R1(this)};
_.P.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;R1(this)};
_.P.onYtAutonavPauseScroll=function(){var M=_.JF().resolve(_.M6);M.isOnWatch()&&(M=M.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=M.getBoundingClientRect().top<-200,R1(this))};
_.P.onYtAutonavPauseUserEngagement=function(M){var z=this;if(_.U("user_engagement_enable_autoplay_pause_feature")){var J=Number(M.lowEngagementThresholdMs);isNaN(J)||J<=0||M.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.JF().resolve(_.pn),_.Rf()<J?_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.USl()?(this.userEngagementCsn=_.y5(),_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,R1(this)):_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.pnG(Error("gl`"+JSON.stringify(M)))};
_.P.onYtAutonavPausePlayer=function(M){this.autonavPauseReasons.requestedByPlayer=!!M.detail;R1(this)};
_.P.onYtAutonavVisibilityChanged=function(){var M=this,z,J,R;return _.k(function(D){if(D.nextAddress==1)return(z=_.J_())?D.yield(z.getPlayerPromise(),2):D.return();J=D.yieldResult;R=J.isMuted()||J.getVolume()===0;M.autonavPauseReasons.backgroundAndMute=M.isInBackground()&&R;R1(M);_.UI(D)})};
_.P.onYtAutonavPausePlayerEnded=function(){_.JF().resolve(_.pn);var M=144E5;_.U("user_engagement_enable_autoplay_pause_feature")||_.U("is_part_of_any_user_engagement_experiment")||(M=45E5);this.autonavPauseReasons.longIdle=_.Rf()>M;uPl(this);R1(this)};
_.P.onYtUserActivity=function(){var M=this;this.autonavPauseReasons.userEngagement&&(_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",M.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,R1(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",M.userEngagementCsn);_.sB()}),this.autonavPauseReasons.youthereLactExperiment=!1,R1(this));
this.autonavPauseReasons.longIdle&&!_.U("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,R1(this))};
_.P.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
var R1=function(M){for(var z=!1,J=_.S(Object.values(M.autonavPauseReasons)),R=J.next();!R.done;R=J.next())R=R.value,z=z||R;z?_.NJ.getInstance().pause(M.autonavPauseReasons):(M=_.NJ.getInstance(),M.autonavState_==3?(M.setState(2,!1,!1),M.autonavPauseReason_=void 0):M.autonavState_==1&&(M.disabledAutonavPauseReason_=void 0))},uPl=function(M){var z=!1;
if(_.U("enable_autoplay_pause_by_lact")){_.JF().resolve(_.pn);z=_.NC("autoplay_pause_by_lact_sec")*1E3;var J=_.NC("autoplay_pause_by_lact_sampling_fraction");(z=_.Rf()>=z&&Math.random()<J)&&!_.USl()&&(_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),z=!1)}z!==M.autonavPauseReasons.youthereLactExperiment&&(M.autonavPauseReasons.youthereLactExperiment=z)&&(M.userEngagementCsn=_.y5(),_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",M.userEngagementCsn)}));
M.autonavPauseReasons.userEngagement&&_.x4(_.no,function(){_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",M.userEngagementCsn)})};
dAl.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.o7("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.sB(),this.autonavPauseReasons.youthereLactExperiment=!1,R1(this));this.autonavPauseReasons.userEngagement&&(_.o7("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,R1(this))};
dAl.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var D9=function(){var M=_.g.apply(this,arguments)||this;M.miniGuideVisible=!1;M.guideOpened=_.U("disable_initial_guide_state_fix")?!1:M.canFitPersistentGuide(M.initialBodyClientWidth);M.guideUserStateOpened=M.getInitialGuideUserStateOpened();M.isFullscreenShorts=!1;M.miniGuideWidthThreshold=_.NC("kevlar_mini_guide_width_threshold",791);M.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");M.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");M.persistentGuideBlockedPagePathRegex=new RegExp(M.persistentGuideBlockedPagesPatterns.join("|"));M.animationTransitionDuration=0;M.lateDataResolver=_.Ln();M.initialGuideDataFetchFailed=!1;M.initialLoad=!0;M.guideRenderers=new Set;M.isMouseOverGuide=!1;M.sessionUserManuallyExpandedGuideState=!1;M.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return M};
_.w(D9,_.g);_.P=D9.prototype;_.P.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.P.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.P.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.P.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.P.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.P.ready=function(){_.JF().addProvider({provide:_.Lk,useValue:this.hostElement})};
_.P.attached=function(){var M=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ou(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ou(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ou(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ou(this,this.onYtGuideShow));_.C4(this,function(){M.animationTransitionDuration=200})};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.ou(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ou(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ou(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ou(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ou(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ou(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ou(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.P.getData=function(){return this.data};
_.P.load=function(){var M=this,z,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=M.lateDataResolver.resolve.bind(M),N.return(M.lateDataResolver.promise);if(window.ytInitialGuideData)return z=_.Ln(),z.resolve(window.ytInitialGuideData),N.return(z.promise);R=!1;_.Io(N,2);return N.yield(M.fetchGuideData(),4);case 4:J=N.yieldResult;_.ab(N,3);break;case 2:D=_.Qa(N),D.message==="Returned error"&&(R=
!0);case 3:if(J)return N.return(J);M.onYtGuideClose();R||(M.initialGuideDataFetchFailed=!0);return N.return(M.lateDataResolver.promise)}})};
_.P.fetchGuideData=function(){var M=this,z,J,R,D,N,Z,B;return _.k(function(O){if(O.nextAddress==1)return z=_.JF(),M.guidePromise||(J=z.resolve(_.cP),M.guidePromise=_.fn(J,y_l)),O.yield(M.guidePromise,2);if(O.nextAddress!=3)return R=O.yieldResult,D=z.resolve(_.Z4),O.yield(D(),3);(N=O.yieldResult)&&((Z=R)==null?void 0:(B=Z.responseContext)==null?void 0:B.maxAgeSeconds)!==0&&N.put("service:guide:fallback",new _.e0({innertubeResponse:R}));return O.return(R)})};
_.P.initializeGuideDataIfEmpty=function(){var M=this,z,J;return _.k(function(R){if(R.nextAddress==1){if(!M.initialGuideDataFetchFailed||M.data)return R.return();_.Io(R,2);return R.yield(M.fetchGuideData(),4)}if(R.nextAddress!=2)return(z=R.yieldResult)&&M.lateDataResolver.resolve(z),_.ab(R,0);J=_.Qa(R);_.yA(J);_.UI(R)})};
_.P.initializeGuideData=function(){var M=this,z;return _.k(function(J){switch(J.nextAddress){case 1:return _.T0(r1l(),{mainAppWeb:_.fX()}),_.Io(J,2),J.yield(M.load(),4);case 4:M.data=J.yieldResult;_.ab(J,3);break;case 2:_.Qa(J),_.Ih(r1l(),"FAILURE");case 3:z=M.data&&M.data.items&&M.data.items.length>0?"SUCCESS":"FAILURE",_.Ih(r1l(),z),_.UI(J)}})};
_.P.setGuideData=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1)return z.disabled?D.return():z.data?(M.data=z.data,z.guideRenderers.add(M),D.return()):D.yield(z.initializeGuideData(),2);z.graftGuideToPage();J=_.cW("IS_HOMEPAGE_COLD")?"eop":void 0;_.U("disable_element_pool_populator")?z.setGuideDataAfterInit(M):(R=new _.ZJ(1,J),_.kK(R,z.setGuideDataAfterInit.bind(z,M)));_.UI(D)})};
_.P.setGuideDataAfterInit=function(M){M.data=this.data;M.markDirty();this.guideRenderers.add(M);_.au(function(){_.hd("gle")});
_.C4(this,function(){_.hd("gpe")})};
_.P.graftGuideToPage=function(){if(this.data){var M=this.data&&this.data.trackingParams;M&&(M=_.pe(M),_.ex(_.Gm(),M))}};
_.P.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ou(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.P.onDrawerOpenedChanged=function(M,z){!z.value&&this.guideOpened&&(this.guideOpened=!1)};
_.P.onYtGuideToggle=function(M){var z=this.guideOpened;this.guideOpened=!z;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var J=_.vv();_.GV(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;J.save()}this.updateGuideDrawerElementState();if(this.guideElement){var R;this.guideOpened&&((R=M.detail)==null?0:R.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ou(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.ou(this,this.onAppDrawerTransitioned))}z||this.initializeGuideDataIfEmpty()};
_.P.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ou(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ao(this.guideElement)};
_.P.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ou(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(nT5(this.guideOpened))};
_.P.guidePersistentAndVisibleChanged=function(){_.ZL(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.P.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.P.miniGuideVisibleChanged=function(){_.ZL(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.P.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(nT5(this.guideOpened)),this.initialLoad=!1);_.ZL(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.P.activeEndpointChanged=function(){_.ZL(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.P.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.P.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.P.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var M=this.canFitPersistentGuide(this.cachedClientWidth);M?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=M}this.updateGuideDrawerElementState()};
_.P.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.P.getGuideOpened=function(){return this.guideOpened};
_.P.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.P.getActiveEndpoint=function(){return this.activeEndpoint};
_.P.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.P.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.Pv(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.P.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.P.handleGuideMouseLeave=function(){var M=this;!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Vc(this,"handleGuideMouseLeave",function(){M.isMouseOverGuide||!M.guideOpened||M.miniGuideVisible||(M.guideOpened=!1,M.updateGuideDrawerElementState())},100))};
_.P.computeGuidePersistentAndVisible=function(){var M=this;_.Vc(this,"computeGuidePersistentAndVisible",function(){M.guidePersistentAndVisible=M.guideOpened&&M.guidePersistent;M.guideIsVisibleButNotPersistent=!(!M.guideOpened||M.guidePersistent)})};
_.P.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.P.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.P.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.P.startLoadingWatch=function(){this.closeGuide()};
_.P.startLoadingShorts=function(){_.U("web_hide_guide_on_shorts")&&this.closeGuide()};
_.P.onYtNavigateFinish=function(M,z){if(!_.Tj||z){this.activeEndpoint=z.endpoint;this.pageType=z.pageType;this.pageUrl=z.response.url;var J,R;M=(R=_.G((J=z.endpoint)==null?void 0:J.commandMetadata,_.X9))==null?void 0:R.url;!this.pageUrl&&M&&(this.pageUrl=M);_.U("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.P.getVisibleGuideRenderer=function(){for(var M=_.S(this.guideRenderers),z=M.next();!z.done;z=M.next())if(z=z.value,this.miniGuideVisible&&z.is==="ytd-mini-guide-renderer"||this.guideOpened&&z.is==="ytd-guide-renderer")return z;return null};
_.P.markGuideRendererDirty=function(M){if(M){typeof M.markDirty==="function"&&M.markDirty();M=_.S([].concat(_.Yj(_.SN(M).children)));for(var z=M.next();!z.done;z=M.next())this.markGuideRendererDirty(z.value)}};
_.P.persistentGuideEnabled=function(M,z){if(!z||M==="watch"||M==="settings"||M==="shorts"&&this.isFullscreenShorts||_.U("reels_web_disable_persistent_guide_shorts")&&M==="shorts")return!1;var J=_.Ib(z)||"";return _.U("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(R){return J===R}):!this.persistentGuideBlockedPagePathRegex.test(J)};
_.P.canFitPersistentGuide=function(M){var z=_.NC("kevlar_persistent_guide_width_threshold",1312);return z===-1||_.U("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:M>z};
_.P.canFitMiniGuide=function(M){return this.miniGuideWidthThreshold===-1?!1:M>this.miniGuideWidthThreshold};
_.P.onResize=function(){var M=this;_.Vc(this,"calculateGuideState",function(){M.onResizeDebounced()})};
_.P.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.P.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.P.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.P.getInitialGuideUserStateOpened=function(){return _.U("web_force_mini_guide_default")?!1:!_.vv().getFlag(109)};
_.rX.Object.defineProperties(D9.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.HW("initialBodyClientWidth")||window.innerWidth}}});
D9.prototype.onResize=D9.prototype.onResize;D9.prototype.observeForMiniGuideVisible=D9.prototype.observeForMiniGuideVisible;D9.prototype.computeGuidePersistentAndVisible=D9.prototype.computeGuidePersistentAndVisible;D9.prototype.cachedClientWidthChanged=D9.prototype.cachedClientWidthChanged;D9.prototype.resetGuide=D9.prototype.resetGuide;D9.prototype.activeEndpointChanged=D9.prototype.activeEndpointChanged;D9.prototype.guideOpenedChanged=D9.prototype.guideOpenedChanged;
D9.prototype.miniGuideVisibleChanged=D9.prototype.miniGuideVisibleChanged;D9.prototype.guideIsVisibleButNotPersistentChanged=D9.prototype.guideIsVisibleButNotPersistentChanged;D9.prototype.guidePersistentAndVisibleChanged=D9.prototype.guidePersistentAndVisibleChanged;D9.prototype.onGuideElementChanged=D9.prototype.onGuideElementChanged;D9.prototype.onGuidePersistentChanged=D9.prototype.onGuidePersistentChanged;D9.prototype.onRenderGuideChanged=D9.prototype.onRenderGuideChanged;
D9.prototype.onActiveEndpointChanged=D9.prototype.onActiveEndpointChanged;D9.prototype.onMiniGuideVisibleChanged=D9.prototype.onMiniGuideVisibleChanged;D9.prototype.onGuideIsVisibleButNotPersistentChanged=D9.prototype.onGuideIsVisibleButNotPersistentChanged;D9.prototype.onGuidePersistendAndVisibleChanged=D9.prototype.onGuidePersistendAndVisibleChanged;_.u([_.p(_.Hw),_.W("design:type",Object)],D9.prototype,"ironResizableBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],D9.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],D9.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"disabled",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"guidePersistentAndVisible",void 0);_.u([_.la("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onGuidePersistendAndVisibleChanged",null);_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"guideIsVisibleButNotPersistent",void 0);
_.u([_.la("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"miniGuideVisible",void 0);_.u([_.la("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onMiniGuideVisibleChanged",null);_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"forceMiniGuideClose",void 0);
_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"activeEndpoint",void 0);_.u([_.la("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onActiveEndpointChanged",null);_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"renderGuide",void 0);_.u([_.la("renderGuide"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onRenderGuideChanged",null);
_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"guideOpened",void 0);_.u([_.Y(),_.W("design:type",Boolean)],D9.prototype,"guidePersistent",void 0);_.u([_.la("guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onGuidePersistentChanged",null);_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"guideUserStateOpened",void 0);_.u([_.Y(),_.W("design:type",String)],D9.prototype,"pageUrl",void 0);
_.u([_.Y(),_.W("design:type",String)],D9.prototype,"pageType",void 0);_.u([_.Y(),_.W("design:type",Number)],D9.prototype,"cachedClientWidth",void 0);_.u([_.Y(),_.W("design:type",Object)],D9.prototype,"guideElement",void 0);_.u([_.Y({selector:_.k8}),_.W("design:type",Object)],D9.prototype,"isFullscreenShorts",void 0);_.u([_.la("guideElement"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onGuideElementChanged",null);
_.u([_.la("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"guidePersistentAndVisibleChanged",null);_.u([_.wH("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.u([_.la("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"miniGuideVisibleChanged",null);_.u([_.wH("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"guideOpenedChanged",null);_.u([_.la("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"activeEndpointChanged",null);
_.u([_.wH("pageUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"resetGuide",null);_.u([_.wH("cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"cachedClientWidthChanged",null);_.u([_.la("guideOpened","guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"computeGuidePersistentAndVisible",null);
_.u([_.wH("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"observeForMiniGuideVisible",null);_.u([_.Xw("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D9.prototype,"onResize",null);_.u([_.c({disableElementRegistration:!0,is:"yt-guide-manager"})],D9);var qL5=_.d(D9,"yt-guide-manager",void 0,{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var NY=function(){var M=_.g.apply(this,arguments)||this;M.JSC$19858_keyboardInUse=!1;M.boundHandleCapturedKeydownEvent=function(z){M.handleCapturedKeydownEvent(z)};
return M};
_.w(NY,_.g);_.P=NY.prototype;_.P.attached=function(){this.listenToDocument(document)};
_.P.listenToDocument=function(M){M.addEventListener("keydown",_.ou(this,this.onKeyDownEvent));M.addEventListener("keyup",_.ou(this,this.onKeyUpEvent));M.addEventListener("mousedown",_.ou(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||M.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.addEventListener("yt-page-data-updated",_.ou(this,this.onPageUpdate))};
_.P.detached=function(){this.unlistenFromDocument(document)};
_.P.unlistenFromDocument=function(M){M.removeEventListener("keydown",_.ou(this,this.onKeyDownEvent));M.removeEventListener("keyup",_.ou(this,this.onKeyUpEvent));M.removeEventListener("mousedown",_.ou(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||M.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.removeEventListener("yt-page-data-updated",_.ou(this,this.onPageUpdate))};
_.P.ready=function(){_.JF().addProvider({provide:_.OQ,useValue:this})};
_.P.isKeyBoardInUse=function(){return this.JSC$19858_keyboardInUse};
_.P.handleCapturedKeydownEvent=function(M){if(M.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(M)};
_.P.onMouseDownEvent=function(){this.JSC$19858_keyboardInUse=!1};
_.P.onPageUpdate=function(){if(_.U("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.U("web_shorts_keyboard_shortcut_usage_log")){_.U0.clear();for(var M=_.S(_.ey),z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;J=_.O3(J);_.U0.set(z,J);_.qs(_.y5(),_.hu(),J)}_.vD.clear();M=_.S(_.Q2);for(z=M.next();!z.done;z=M.next())J=_.S(z.value),z=J.next().value,J=J.next().value,J=_.O3(J),_.vD.set(z,J),_.qs(_.y5(),_.hu(),J);_.Wv(_.y5(),_.hu(),[].concat(_.Yj(_.vD.values()),
_.Yj(_.U0.values())));_.VC(_.y5(),[].concat(_.Yj(_.vD.values()),_.Yj(_.U0.values())))}};
_.P.onMiniplayerActiveChange=function(){var M;(M=_.JF().resolve(_.q5).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(M.document):this.unlistenFromDocument(M.document))};
_.P.ignoreKeyEvent=function(M){if(M.ctrlKey||M.altKey)if(_.U("kevlar_macro_markers_keyboard_shortcut")){if(M.keyCode!==37&&M.keyCode!==39)return!0}else return!0;var z=_.CX(M)||[];return _.wNG(z)?(_.U("web_button_or_anchor_list_item")&&Yfi(z,M)&&(this.JSC$19858_keyboardInUse=!0),!0):M.defaultPrevented?(h8(M.keyCode,M.shiftKey,this.isShortsPage),!0):M.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(M):!1};
_.P.isSpacebarClick=function(M){var z=M||window.event;var J;z.composedPath&&typeof z.composedPath==="function"?J=z.composedPath():J=z.path;J&&J.length?z=J[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z&&M.keyCode===32&&(M=z.tagName==="BUTTON"||z.tagName==="A"||z.tagName==="INPUT",z=(z=z.getAttribute("role"))&&(z==="option"||z==="button"||z.indexOf("menuitem")===0),M||z)?!0:!1};
_.P.onKeyDownEvent=function(M){if(!this.ignoreKeyEvent(M)&&(M.keyCode===191&&(M.shiftKey||M.metaKey?M.repeat!=null&&M.repeat||(this.openHotkeyDialog(),h8(M.keyCode,M.shiftKey,this.isShortsPage)):(this.focusSearchBox(),M.preventDefault())),!M.metaKey)){var z=_.JF().resolve(_.q5);switch(M.keyCode){case 9:this.JSC$19858_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(M);break;case 84:z.pipController.getWindow()&&window.focus();this.toggleTheaterMode(M.keyCode,M.shiftKey);break;case 73:z.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(M.keyCode,M.shiftKey);break;case 70:if(this.isShortsPage&&_.U("web_fullscreen_shorts")){_.xSm();break}this.isMiniplayerActive()?z.pipController.getWindow()&&(z.close(!0),window.focus()):this.passEventToPlayer(M);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(M.keyCode,M.shiftKey):this.closeMiniplayer(M.keyCode,M.shiftKey)||this.passEventToPlayer(M);break;case 13:M.shiftKey&&_.JF().resolve(_.g1).activate(M);break;default:this.passEventToPlayer(M)}}};
_.P.onKeyUpEvent=function(M){if(!this.ignoreKeyEvent(M))if(_.U("web_speedmaster_spacebar_control")&&M.keyCode===32)this.handlePlayerSpaceKey(M,!0);else{var z=this.getPlayerManager();z&&(z=z.getPlayer())&&z.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)}};
_.P.getPlayerManager=function(){var M=_.J_(),z=_.JF().resolve(_.zw(_.M6));return M&&z&&z.isOnWatch()?M:null};
_.P.passEventToPlayer=function(M,z){var J=this,R,D,N,Z;return _.k(function(B){if(B.nextAddress==1){if(!_.U("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&J.isMiniplayerActive())R=_.JF().resolve(_.q5).getPlayerElement();else if(J.inlinePreviewIsActive){if(D=_.ZL(J.hostElement,"yt-get-inline-preview-player-action"),(N=D)==null?0:N[0])R=D[0]}else R=_.J_();return R?B.yield(R.getPlayerPromise(),3):B.jumpTo(0)}Z=B.yieldResult;z?Z.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,
M.key,M.code):Z.handleGlobalKeyDown(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat);M.keyCode!==38&&M.keyCode!==40&&h8(M.keyCode,M.shiftKey,J.isShortsPage);_.UI(B)})};
_.P.focusSearchBox=function(){_.Pv(this.hostElement,"yt-focus-searchbox")};
_.P.openHotkeyDialog=function(){_.Pv(this.hostElement,"yt-open-hotkey-dialog")};
_.P.isMiniplayerActive=function(){return _.JF().resolve(_.q5).isMiniplayerActive()};
_.P.closeMiniplayer=function(M,z){return this.isMiniplayerActive()?(_.JF().resolve(_.q5).close(),h8(M,z,this.isShortsPage),!0):!1};
_.P.toggleTheaterMode=function(M,z){var J=_.ye(_.rA().getState()),R=this.getPlayerManager(),D=_.U("disable_theater_mode_keyboard")||_.cW("START_IN_FULL_WINDOW_MODE");R&&!D&&(J=!J,_.zV()&&_.U("external_fullscreen")&&(J=!0),_.S9(this.hostElement,"yt-toggle-theater-mode",[J]),h8(M,z,this.isShortsPage))};
_.P.toggleMiniplayer=function(M,z){var J=this.getPlayerManager();if(this.isMiniplayerActive()){var R;((R=_.JF().resolve(_.zw(_.M6)))==null?0:R.isOnWatch())?_.JF().resolve(_.q5).close(!0):_.ug(_.JF().resolve(_.q5));h8(M,z,this.isShortsPage)}else J&&(_.S9(this.hostElement,"yt-activate-miniplayer-from-watch-action"),h8(M,z,this.isShortsPage))};
_.P.handlePlayerSpaceKey=function(M,z){var J=!!_.J_()||this.isMiniplayerActive();J=_.U("disable_space_scroll_fix")||J;_.U("global_spacebar_pause")&&!this.isKeyBoardInUse()&&J&&(M.preventDefault(),this.passEventToPlayer(M,z))};
_.P.isPresentingTheaterMode=function(){return _.U("web_watch_enable_tm_esc_key")?_.ye(_.rA().getState())&&!_.zV():!1};
NY.prototype.onMiniplayerActiveChange=NY.prototype.onMiniplayerActiveChange;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],NY.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],NY.prototype,"ytdReduxBehavior",void 0);_.u([_.Y({selector:_.E98}),_.W("design:type",Boolean)],NY.prototype,"inlinePreviewIsActive",void 0);_.u([_.Y({selector:_.Mrb}),_.W("design:type",Boolean)],NY.prototype,"isShortsPage",void 0);
_.u([_.Y({selector:_.HA}),_.W("design:type",Boolean)],NY.prototype,"miniplayerIsActive",void 0);_.u([_.la("miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NY.prototype,"onMiniplayerActiveChange",null);_.u([_.c({disableElementRegistration:!0,is:"yt-hotkey-manager"})],NY);_.d(NY,"yt-hotkey-manager",void 0,{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var Pr=function(){var M=_.g.apply(this,arguments)||this;M.loopStateEntityKey_=null;M.playlistLoopStateEntity_=null;M.isShuffleNextPlaylist=!1;M.PLAYER_EVENTS_=new Map;M.playerListenersSetup_=!1;M.videoSkipJob_=0;M.canAutoAdvance_=!1;M.playerManager_=null;M.TEST_ONLY={};return M};
_.w(Pr,_.g);_.P=Pr.prototype;_.P.ready=function(){_.JF().addProvider({provide:_.aV,useValue:this.hostElement})};
_.P.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.P.attached=function(){document.addEventListener("yt-navigate-start",_.ou(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ou(this,this.onYtNavigateFinish_))};
_.P.detached=function(){document.removeEventListener("yt-navigate-start",_.ou(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ou(this,this.onYtNavigateFinish_))};
_.P.updatePlaylistEventListeners=function(M,z){z&&!this.playerListenersSetup_?(this.playerManager_=M,this.registerPlaylistEventListeners_(M)):!z&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(M))};
_.P.setPlayer=function(M){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=M};
_.P.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.P.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.P.registerPlaylistEventListeners_=function(M){var z=this;M.getPlayerPromise().then(function(J){z.playerListenersSetup_||(z.ytPlayerListenerBehavior.listenToPlayerEvents(J,z.PLAYER_EVENTS_),z.playerListenersSetup_=!0)})};
_.P.removePlaylistEventListeners_=function(M){var z=this;M.getPlayerPromise().then(function(J){z.playerListenersSetup_&&(z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(J,z.PLAYER_EVENTS_),z.playerListenersSetup_=!1)})};
_.P.setPlaylistComponent=function(M){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ou(this,this.onPlaylistYtNavigate_)),M&&(M.data&&this.playlistComponent.data&&M.data.playlistId==this.playlistComponent.data.playlistId?(M.loopOn=this.playlistComponent.loopOn,M.shuffleOn=this.playlistComponent.shuffleOn):(M.loopOn=!1,M.shuffleOn=!1),this.isShuffleNextPlaylist&&(M.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=M;this.playlistComponent.addEventListener("yt-navigate",
_.ou(this,this.onPlaylistYtNavigate_))};
_.P.setAutoplayRenderer=function(M){this.autoplayData=M};
_.P.setPlaylistData=function(M){this.currentPlaylistData_=M;_.Pv(this.hostElement,"yt-playlist-data-updated");_.gu.isEmpty(M)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(M)};
_.P.setPlayerPlaybackControlData=function(M){this.playerManager_&&this.playerManager_.updatePlayerComponents(M.playlistPanelRenderer)};
_.P.getPlaylistData=function(){return this.currentPlaylistData_};
_.P.getTempData_=function(M,z){if(this.playlistComponent==null)return null;M={};this.playlistComponent.shuffleOn&&(M.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(M.loop_on=this.playlistComponent.loopOn);z&&(M.autonav="1",_.JF().resolve(_.pn),z=_.Rf(),z>0&&(M.lact=z),this.playerManager_&&(z=this.playerManager_.getPlayer())&&z.shouldSendVisibilityState()&&(z=z.getVisibilityState(),z!=0&&(M.vis=z)));_.U("enable_unknown_lact_fix_on_html5")&&(_.JF().resolve(_.pn),M.lact=
_.Rf());return M};
_.P.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.P.setLoopStateEntityKey_=function(M){var z;this.loopStateEntityKey_=((z=this.getPlaylistLoopData_(M))==null?void 0:z.playlistLoopStateEntityKey)||null};
_.P.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.P.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.P.skipVideo=function(){var M=this,z=_.U("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||z)z=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.mn(_.no,function(){M.onPlaylistNext();M.videoSkipJob_=0},z)};
_.P.cancelVideoSkip=function(){this.videoSkipJob_&&(_.no.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.P.isInBackground_=function(){var M=window.document.visibilityState;return!(!M||M=="visible")};
_.P.onPlaylistIndex_=function(M){this.playlistComponent&&(M=this.playlistComponent.data.contents[M].playlistPanelVideoRenderer.navigationEndpoint,_.Pv(this.hostElement,"yt-navigate",{endpoint:M,tempData:this.getTempData_(M)}))};
_.P.onPlayerStateChange_=function(M){if(M=M==0&&this.playlistComponent&&this.canAutoAdvance_)M=_.NJ.getInstance(),M=!(M.autonavState_===3?M.autonavPauseReason_&&M.autonavPauseReason_.inputBoxFocus===!0:M.autonavState_===1&&M.disabledAutonavPauseReason_&&M.disabledAutonavPauseReason_.inputBoxFocus===!0);M&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.P.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.P.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.P.navigateToAutoplayWatchEndpoint_=function(M,z,J){var R=this.playlistComponent.data.currentIndex,D=this.getNumPlayableVideos_();M=="NORMAL"&&z=="autoplayVideo"&&R+1>=D&&J||!(M=this.getVideoEndpoint_(M,z))||(J=this.getTempData_(M,J),_.Pv(this.hostElement,"yt-navigate",{endpoint:M,tempData:J}))};
_.P.getNumPlayableVideos_=function(){for(var M=0,z=_.S(this.playlistComponent.data.contents||[]),J=z.next();!J.done;J=z.next())J.value.playlistPanelVideoRenderer&&(M+=1);return M};
_.P.getVideoEndpoint_=function(M,z){if(this.autoplayData&&this.autoplayData.sets)for(var J=0,R=this.autoplayData.sets.length;J<R;J++){var D=this.autoplayData.sets[J];if(D.mode==M){if(D[z])return D[z];break}}else M=new _.xN("AutoplayData is undefined in playlist manager","Mode: "+M+" endpoint: "+z),_.yA(M)};
_.P.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.P.onPlaylistYtNavigate_=function(M){if(M.detail.endpoint){M.stopPropagation();var z=M.detail;z.tempData=this.getTempData_(M.detail.endpoint);_.Pv(this.hostElement,"yt-navigate",z)}};
_.P.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.P.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.P.playlistLoopStateEntityChanged_=function(M){var z=this,J,R,D;return _.k(function(N){if(N.nextAddress==1){if(!M)return N.return();J=M.state==="PLAYLIST_LOOP_STATE_ONE";return z.playerManager_?N.yield(z.playerManager_.getPlayerPromise(),3):N.jumpTo(2)}N.nextAddress!=2&&(R=N.yieldResult,R.setLoopVideo(J));D=M.state==="PLAYLIST_LOOP_STATE_ALL";z.playlistComponent&&(z.playlistComponent.loopOn=D);_.UI(N)})};
_.P.getPlaylistLoopData_=function(M){var z,J;if(M=M==null?void 0:(z=M.playlistButtons)==null?void 0:(J=z.menuRenderer)==null?void 0:J.topLevelButtons)for(z=_.S(M),J=z.next();!J.done;J=z.next())if(J=J.value,J.playlistLoopButtonRenderer)return J.playlistLoopButtonRenderer};
_.P.getLoopStateCommand_=function(M){var z=this.getPlaylistData(),J;z=((J=this.getPlaylistLoopData_(z))==null?void 0:J.states)||[];var R;M=(R=_.G(z[M?1:2],_.UDp))==null?void 0:R.button;var D;return(D=_.G(M,_.aR))==null?void 0:D.command};
_.P.onPlayerLoopChange_=function(M){this.playlistLoopStateEntity_&&(M?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(M=this.getLoopStateCommand_(M))&&this.ytComponentBehavior.resolveCommand(M)};
_.P.onSleepTimerSettingsChanged_=function(M){this.canAutoAdvance_=M!=="End of video"};
Pr.prototype.onPlaylistLoopStateEntityChanged=Pr.prototype.onPlaylistLoopStateEntityChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Mm.YtPlayerListenerBehavior),_.W("design:type",_.zW)],Pr.prototype,"ytPlayerListenerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Pr.prototype,"loopStateEntityKey_",void 0);
_.u([_.Y({selectorArgs:["loopStateEntityKey_"],selector:_.Ks8}),_.W("design:type",Object)],Pr.prototype,"playlistLoopStateEntity_",void 0);_.u([_.la("playlistLoopStateEntity_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Pr.prototype,"onPlaylistLoopStateEntityChanged",null);_.u([_.c({disableElementRegistration:!0,is:"yt-playlist-manager"})],Pr);_.d(Pr,"yt-playlist-manager",void 0,{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var WYl,anN=function(){if(WYl!==void 0)return WYl;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return WYl=M};var S2=function(){var M=_.g.apply(this,arguments)||this;M.lastCallback=null;M.getAccountLinkPromises={};M.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);M.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return M};
_.w(S2,_.g);_.P=S2.prototype;_.P.getLocation=function(){return window.location.href};
_.P.getCompletionUrl=function(){return _.bS(this.getLocation())};
_.P.containsRedirectState=function(M){return(M=_.gy(_.eoc(M)))?(new URLSearchParams(M)).get("redirect_state")!==null:!1};
_.P.createGalConfig=function(M,z){var J=new JwN;M=J=z?this.getPopupOrRedirectSetting(J,_.HW("LINK_API_KEY"),_.HW("LINK_API_KEY_REDIRECT"),M):RIw(J,_.HW("LINK_API_KEY"));M.authUser=_.HW("SESSION_INDEX")||0;M.supportedFlows=new Set([4]);return M.build()};
_.P.getPopupOrRedirectSetting=function(M,z,J,R){this.isGalInteractionPopupMode(R)?(M.interactionMode=0,M=RIw(M,z)):(M.interactionMode=1,z=this.getCompletionUrl(),M.completionUrl=z,M=RIw(M,J));return M};
_.P.isGalInteractionPopupMode=function(M){if(this.redirectModeProviderAllowlist.has(M))switch(M){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.P.getStatusEntityKeyForProviderId=function(M){return _.Tr(M+":all","accountLinkStatusEntity")};
_.P.findNestedPropValue=function(M,z){var J=!1,R=null;JSON.stringify(M,function(D,N){J||D!==z||(J=!0,R=N);return J?null:N});
return R};
_.P.findAccountLinkButtonViewModel=function(M,z){var J=null,R=!1;JSON.stringify(M,function(D,N){R||N.accountLinkStatusEntityKey!==z||N.accountLinkStatusSecondaryEntityKey||(R=!0,J=N);return R?null:N});
return J};
_.P.executeLinkingSuccessOrFailureCommands=function(M,z,J){var R=null,D;(z==null?0:(D=z.url)==null?0:D.includes("account_sharing"))?R=z==null?void 0:z.response:R=z==null?void 0:z.response;(z=this.findAccountLinkButtonViewModel(R,M))?(M=J?this.findNestedPropValue(z,"onSuccessCommand"):this.findNestedPropValue(z,"onFailureCommand"))?_.In([M],this.hostElement):_.WW(Error("hl")):_.WW(Error("il`"+M))};
_.P.handleInitializeRequest=function(M,z){var J=this,R=pAw(this.createGalConfig(M,!0));this.containsRedirectState(this.getLocation())?Grs(M,R.config,R.galService).then(function(D){var N=J.getStatusEntityKeyForProviderId(M);if(D.statusCode===1)z&&J.executeLinkingSuccessOrFailureCommands(N,z,!0),D=J.getLocation().indexOf("#"),D!==-1&&window.history.pushState(null,"",J.getLocation().substring(0,D));else return z&&J.executeLinkingSuccessOrFailureCommands(N,z,!1),Promise.reject(Error(D.statusMessage))}).catch(function(D){_.yA(D);
_.gP("gamingAccountLinkStatusChanged",{serviceId:M,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(D)}):this.getAccountLinkPromises[M]=R.startLinkingSession({serviceId:M})};
_.P.handleAccountLinkCommand=function(M){_.G(M,a1m)&&this.handleLinkRequest(_.G(M,a1m))};
_.P.handleLinkRequest=function(M){var z=this,J=M.thirdPartyId;if(J)if(this.isGalInteractionPopupMode(J)){var R=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onFailureCommand)},D=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onSuccessCommand)};
this.lastCallback=D;this.getAccountLinkPromises[J].then(function(N){HQ5(N).then(function(Z){Z.statusCode===1?D():R()})}).catch(function(){R()})}else this.getAccountLinkPromises[J].then(function(N){HQ5(N).then(function(Z){if(Z.statusCode!==1)return Promise.reject(Error(Z.statusMessage))})}).catch(function(N){_.yA(N);
_.gP("gamingAccountLinkStatusChanged",{serviceId:J,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(N)})};
_.P.closeAndFire=function(M,z){_.S9(this.hostElement,"yt-close-popup-action",[M]);z&&_.In([z],this.hostElement)};
_.P.handleAccountUnlinkCommand=function(M){_.G(M,VEG)&&this.handleUnlinkRequest(_.G(M,VEG))};
_.P.handleUnlinkRequest=function(M){var z=this,J=M.thirdPartyId;if(J){var R=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onFailureCommand)},D=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onSuccessCommand)};
this.lastCallback=D;var N=pAw(this.createGalConfig(J,!1));this.unlinkUserGal(N,J).then(function(Z){Z.statusCode===1?D():R()}).catch(function(){R()})}};
_.P.unlinkUserGal=function(M,z){return M.deleteLink(z)};
_.P.handleLogAccountLinkingEventCommand=function(M){_.U("enable_gel_log_commands")&&_.G(M,E5m)&&(M=_.G(M,E5m).event)&&_.gP("gamingAccountLinkStatusChanged",M)};
_.rX.Object.defineProperties(S2,{template:{configurable:!0,enumerable:!0,get:function(){return anN()}}});
_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],S2.prototype,"ytOpenPopupBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-third-party-manager"})],S2);_.d(S2,"ytd-third-party-manager",function(){return anN()},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var Vbl,Ehw=function(){if(Vbl!==void 0)return Vbl;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Vbl=M};var Z9=function(){var M=_.g.apply(this,arguments)||this;M.currentPage=void 0;M.renderLoadingStateJobId=0;M.updatePageDataJobId=0;M.pageDisposeJobsets=new WeakMap;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};M.shouldApplyLockupToWatchTransition=_.U("web_thumbnail_to_watch_transition");M.shouldApplySlideTransition=_.Sz("web_page_transition_type")==="slide"||_.U("enable_plj_landing_page");M.shouldApplyLearningJourneyTransition=_.U("enable_plj_landing_page");M.TEST_ONLY=void 0;return M};
_.w(Z9,_.g);_.P=Z9.prototype;_.P.ready=function(){var M=_.JF();M.addProvider({provide:_.M6,useValue:this});M.addProvider({provide:_.OVJ,useValue:this})};
_.P.created=function(){this.pagePool=new elu;this.contextSwitcher=new sjd};
_.P.attached=function(){_.Pv(this.hostElement,"attached");var M=_.JF().resolve(_.zw(_.HP));M&&(this.contextSwitcher.JSC$19684_networkService_=M);this.viewTransitionManager=_.JF().resolve(_.xm)};
_.P.getPageOffset=function(M){return M.getScrollTop()};
_.P.setPageOffset=function(M,z){try{M.setScrollTop(z)}catch(J){}};
_.P.setPageOffsetForNavigation=function(M,z){_.Pv(this.hostElement,"yt-navigate-set-page-offset",{page:M,offset:z===void 0?0:z})};
_.P.pauseActiveContext=function(){var M=this.contextSwitcher;M.activeContext_&&M.activeContext_.pause()};
_.P.getModuleNameForType=function(M){return M==="watch"?_.U("kevlar_watch_fixie")?"watchFixie":_.U("kevlar_watch_grid")?"watchGrid":"watchFlexy":M==="shorts"||M==="search"?M:"browse"};
_.P.attachPage=function(M){var z,J=!_.U("pc_is_attached_ks")&&(M==null?void 0:(z=M.polymerController)==null?void 0:z.isAttached);if(!M.isAttached&&!J)try{_.SN(this.hostElement).appendChild(M)}catch(D){var R;_.yA(new _.xN("Error attaching page element for component",{origin:(R=this.currentPage)==null?void 0:R.is,component:M.is}))}};
_.P.setActivePage=function(M){var z=this,J=!1,R=function(){var D=z.isOnWatch(),N=z.currentPage;if(M)if(M!==z.currentPage){N&&(N.hidden=!0,N.active=!1,N.removeAttribute("role"));z.currentPage=M;var Z,B=_.vP((Z=z.data)==null?void 0:Z.endpoint);N&&_.Pv(z.hostElement,"yt-page-type-changed",{oldPageType:N.is,newPageType:M.is,newPageSubtype:B});_.ia().dispatch(_.Nv({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:M.is}));_.ia().dispatch(_.Nv({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:B||""}));M.hidden=
!1;z.attachPage(M);M.active=!0;M.setAttribute("role","main");N&&z.setPageOffsetForNavigation(M,0);_.U("kevlar_remove_page_dom_on_switch")&&!D&&N&&_.SN(z.hostElement).removeChild(N)}else J=!0;else D=new _.xN("Unable to set active page",N?N.is:"unknown origin",(B=z.data)==null?void 0:B.endpoint),_.nc(D)};
this.shouldRunBrowseTransition(this.currentPage,M)?Cfs(this.viewTransitionManager,R):this.shouldRunLearningJourneyTransition(this.currentPage,M)?M3w(this.viewTransitionManager,R):R();return J};
_.P.shouldRunBrowseTransition=function(M,z){return this.shouldApplySlideTransition&&(M==null?void 0:M.is)==="ytd-browse"&&(z==null?void 0:z.is)==="ytd-browse"&&M!==z};
_.P.shouldRunLearningJourneyTransition=function(M,z){return this.shouldApplyLearningJourneyTransition&&(M==null?void 0:M.is)==="ytd-browse"&&((z==null?void 0:z.is)==="ytd-watch-learning-journey"||(z==null?void 0:z.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.P.shouldRunWatchNextLoadedTransition=function(M,z){return this.viewTransitionManager&&M.is==="ytd-watch-flexy"&&z};
_.P.updatePageData=function(M){var z=this,J=this.data;this.updatePageDataJobId&&_.no.cancelJob(this.updatePageDataJobId);this.data=M;return new _.If(function(R){var D=function(){M.filler?z.performDataUpdate(M,J):Smw(function(){z.performDataUpdate(M,J)});
var O=_.Eb();_.fN(O,"cr")||O.processSignal("cr");R()},N=function(){M&&M.page==="watch"?z.updatePageDataJobId=_.mn(_.no,D):D()};
if(_.U("kevlar_enable_mss_page_modules_client")&&M){var Z=_.JF().resolve(_.ah),B=z.getModuleNameForType(M.page);(Z=Akw(Z,[B]))?Z.then(N):N()}else N()})};
_.P.isDownloadsPage=function(M){var z,J;return(M==null?void 0:(z=M.endpoint)==null?void 0:(J=z.browseEndpoint)==null?void 0:J.browseId)==="FEdownloads"};
_.P.setPlayerSyncInterval=function(M){var z;return _.k(function(J){if(J.nextAddress==1)return J.yield(_.JF().resolve(_.SF),2);z=J.yieldResult;z.setUpPositionSyncInterval(M);_.UI(J)})};
_.P.performDataUpdate=function(M,z){_.U("kevlar_early_popup_close")||_.S9(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var J=!M.filler;J&&(_.hd("lps"),_.U("config_age_report_killswitch")||yui());var R=GD(M),D,N=!1;if(_.U("kevlar_remove_page_dom_on_switch")){var Z=z&&GD(z);R===Z&&(D=this.getCurrentPage())}D||(D=CG(this.pagePool,R));J&&BFw(this.pagePool.elementPoolPopulator,R);J&&!this.renderLoadingStateJobId&&(N=this.setActivePage(D));if(D){Z=R==="watch";var B=
R==="shorts",O=R==="learning_journey_watch";_.U("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(D);if(Z||B||O)D.playerData=M.playerResponse;if(B)if(_.U("web_enable_delay_shorts_sequence_call")){M.reelWatchSequenceResponse&&(D.reelWatchSequenceResponse=M.reelWatchSequenceResponse);D.currentEndpoint=M.endpoint;var X;D.isPreviousPageShorts=!!(z==null?0:(X=z.endpoint)==null?0:X.reelWatchEndpoint);var l,e;M.cachedSequenceParams=((l=M.endpoint)==null?void 0:(e=l.reelWatchEndpoint)==
null?void 0:e.sequenceParams)||M.cachedSequenceParams||(z==null?void 0:z.cachedSequenceParams);var Q,v;M.cachedSequenceProvider=((Q=M.endpoint)==null?void 0:(v=Q.reelWatchEndpoint)==null?void 0:v.sequenceProvider)||M.cachedSequenceProvider||(z==null?void 0:z.cachedSequenceProvider);D.cachedSequenceParams=M.cachedSequenceParams;D.cachedSequenceProvider=M.cachedSequenceProvider}else{M.reelWatchSequenceResponse?D.reelWatchSequenceResponse=M.reelWatchSequenceResponse:M.cachedReelWatchSequenceResponse?
D.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse:_.U("web_enable_cached_reel_sequence_fix")&&D.cachedReelWatchSequenceResponse&&!D.reelWatchSequenceResponse&&(D.reelWatchSequenceResponse=D.cachedReelWatchSequenceResponse);D.currentEndpoint=M.endpoint;var x;D.isPreviousPageShorts=!!(z==null?0:(x=z.endpoint)==null?0:x.reelWatchEndpoint);M.cachedReelWatchSequenceResponse=M.reelWatchSequenceResponse||M.cachedReelWatchSequenceResponse||(z==null?void 0:z.cachedReelWatchSequenceResponse);D.cachedReelWatchSequenceResponse=
M.cachedReelWatchSequenceResponse}X=this.isDownloadsPage(M);l=this.isDownloadsPage(z);X&&!l?this.setPlayerSyncInterval(6E5):!X&&l&&this.setPlayerSyncInterval();_.U("block_all_player_prefetch_requests")||this.preparePrefetchRequest(M,D,J,Z,B,O);zcw(_.JF().resolve(_.q5),z,M);_.S0(_.JF().resolve(_.pn));_.U("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(D);J?(J=typeof D.loadPage,J==="function"?(D.pageContext=nkl(this.contextSwitcher,D,D.data!==M.response),J=function(){D.loadPage(M.response)},
this.shouldApplySlideTransition&&D.is==="ytd-browse"&&N&&(R==="learning"||this.isDifferentBrowseId(M==null?void 0:M.endpoint,z==null?void 0:z.endpoint))?Cfs(this.viewTransitionManager,J):this.shouldRunWatchNextLoadedTransition(D,N)?rku(this.viewTransitionManager,J):J()):_.hL(new _.xN("b/38014653 ",[R,
D.is,D.nodeName,J,D.isAttached,z&&GD(z),this.hostElement.children.length])),_.hd("pdl")):(D.hidden=!0,M.response.filler=!0,D.data=M.response,this.attachPage(D));_.Pv(this.hostElement,"yt-page-data-updated",{pageType:R})}_.x4(_.no,function(){_.U("logging_avoid_blocking_during_navigation")&&_.rMc().transition("none");var m=LSs(),y=D;if(M){var H=Quu(M),q=U3w(M),b;a:{if(M.playerResponse){var V=M.playerResponse,E;if((b=V.auxiliaryUi)==null?0:(E=b.messageRenderers)==null?0:E.upsellDialogRenderer){b=V.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(M.response&&(b=M.response,(V=b.overlay)==null?0:V.upsellDialogRenderer)){b=b.overlay.upsellDialogRenderer;break a}b=void 0}var L;var z8;E=(L=M.playerResponse)==null?void 0:(z8=L.auxiliaryUi)==null?void 0:z8.messageRenderers;L=(E==null?void 0:E.enforcementMessageViewModel)||(E==null?void 0:E.bkaEnforcementMessageViewModel);L=(L==null?void 0:L.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?L:void 0;var O8;a:{if(M.response&&(z8=M.response,(O8=z8.overlay)==null?0:
O8.commandWrapperPromoRenderer)){O8=z8.overlay.commandWrapperPromoRenderer;break a}O8=void 0}fXG(m,H,q,b,L,O8,y)}})};
_.P.preparePrefetchRequest=function(M,z,J,R,D,N){var Z,B,O,X,l,e,Q,v,x,m,y,H,q,b,V;return _.k(function(E){if(E.nextAddress==1)return!J||!(R||D||N)||_.U("kevlar_disable_background_prefetch")&&_.ui(_.fyp)()===0?E.return():(Z=_.z_(z))?E.yield(Z.getPlayerPromise(),2):E.return();B=E.yieldResult;O=_.JF().resolve(_.zw(_.HP));if(!O)return E.return();if(D)return X=_.Jx(_.m_),eYN(X,(l=M.endpoint)==null?void 0:l.reelWatchEndpoint,z.reelWatchSequenceResponse,B,O),E.return();v=(e=M.response)==null?void 0:(Q=e.responseContext)==
null?void 0:Q.webResponseContextExtensionData;if(!v)return E.return();q=(x=M.response)==null?void 0:(m=x.contents)==null?void 0:(y=m.twoColumnWatchNextResults)==null?void 0:(H=y.autoplay)==null?void 0:H.autoplay;b=_.JF().resolve(_.aV);V=_.Jx(_.m_);QZl(V,v,B,O,b,q);_.UI(E)})};
_.P.movePlayerToWatch=function(M){var z=this,J,R;return _.k(function(D){J=CG(z.pagePool,"watch");R=J.getPlayerContainer();M.appendTo(R);_.UI(D)})};
_.P.movePlayerToShorts=function(M){var z=this,J,R,D;return _.k(function(N){J=CG(z.pagePool,"shorts");R=J.getPlayerContainer();(D=M)==null||D.appendTo(R,void 0,!0);_.UI(N)})};
_.P.getPlayerFromWatch=function(){var M=CG(this.pagePool,"watch");return _.z_(M)};
_.P.getPlayerFromShorts=function(){var M=CG(this.pagePool,"shorts");return _.z_(M)};
_.P.startLoadingWatch=function(){var M=this,z=CG(this.pagePool,"watch");this.renderLoadingStateJobId?(_.no.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.U("web_watch_transition_enable_start_loading_watch_callsite")?brw(this.viewTransitionManager,function(){M.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(z)};
_.P.startLoadingShorts=function(){var M=CG(this.pagePool,"shorts");this.setActivePage(M)};
_.P.startLoadingLearningJourney=function(){var M=CG(this.pagePool,"learning_journey_watch");this.setActivePage(M)};
_.P.getCurrentPage=function(){return this.currentPage};
_.P.getDestinationPageType=function(){return this.destinationPageType};
_.P.getCurrentData=function(){return this.data};
_.P.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.P.isOnShorts=function(){var M;return((M=this.currentPage)==null?void 0:M.is)==="ytd-shorts"};
_.P.isWatchPage=function(M){return!!M&&(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-fixie"||M.is==="ytd-watch-grid")};
_.P.preparePage=function(M,z){var J=this,R=function(){var Z=J.pagePool.preparePage(M,J.currentPage,z);Z&&J.attachPage(Z)},D=function(Z){_.Hb(Z,z);
_.yA(Z)};
if(_.U("kevlar_enable_mss_page_modules_client")){var N=this.getModuleNameForType(M);if(N=Akw(_.JF().resolve(_.ah),[N])){N.then(R.bind(this)).catch(D.bind(this));return}}try{R()}catch(Z){D(Z)}};
_.P.lazyPrepareCriticalPages=function(M,z){M=_.vP(z)||M;_.U("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(M).then(this.maybePrepareWatchPage.bind(this,M)):this.maybePrepareWatchPage(M)};
_.P.maybePrepareWatchPage=function(M){M!=="watch"&&_.x4(_.no,this.preparePage.bind(this,"watch"))};
_.P.downloadPageModules=function(M){M=this.getModuleNameForType(M);var z=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);z.delete(M);var J=_.JF().resolve(_.ah);J.JSC$18435_loadModules(M);return J.JSC$18435_loadModules.apply(J,_.Yj(z))};
_.P.renderPageLoadingState=function(M,z){this.preparePage(M,z);var J=CG(this.pagePool,M);J.loadingData&&(J.loadingData.endpoint=z);J.loading=!0;this.setActivePage(J);M!=="watch"&&M!=="learning_journey_watch"||_.Pv(this.hostElement,"yt-guide-close")};
_.P.prepareForNavigation=function(M,z){var J=this;if(this.currentPage&&this.data){var R=_.vP(z)||M;this.destinationPageType=R;GD(this.data)==R&&_.Pv(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((M==="watch"||M==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.no.cancelJob(this.renderLoadingStateJobId);_.JF().resolve(_.q5).deactivate(z);_.xC(_.no,function(){var N=J.viewTransitionManager,Z=J.currentPage;
if(N.isLockupToWatchTransitionEnabled&&N.isLockupThumbnailRegistrationEnabled&&Z)if(N.registeredLockupThumbnail)N.lockupThumbnailRegisteredFromWatchEndpoint&&_.yA(new _.xN("Lockup thumbnail already registered from watch endpoint."));else{a:{var B=_.G(z,_.Au);if(B==null?0:B.videoId){var O="yt-lockup-view-model ."+_.Pbp(B.videoId)+" yt-thumbnail-view-model";Z=Z.querySelectorAll(O);if(Z.length===1){B=Z[0];break a}Z.length>1?_.yA(new _.xN("Multiple LockupViewModel thumbnails found for videoId: "+B.videoId+
". Selector: "+O)):_.U("web_thumbnail_to_watch_transition_debug")&&_.yA(new _.xN("No LockupViewModel thumbnail found for videoId: "+B.videoId+". Selector: "+O))}B=void 0}B&&(N.registeredLockupThumbnail=B,N.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.yGv(N,B))}});
var D=this.data;this.renderLoadingStateJobId=_.xC(_.no,function(){brw(J.viewTransitionManager,function(){if(J.data!=D){var N=CG(J.pagePool,M);J.setActivePage(N)}else J.renderPageLoadingState(M,z);J.renderLoadingStateJobId=0})},150)}};
_.P.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var M=new _.ZJ(1);this.currentPage.pageDisposeJobs.forEach(function(z){_.kK(M,z)});
this.pageDisposeJobsets.set(this.currentPage,M)}};
_.P.flushPageDisposeJobset=function(M){var z=this.pageDisposeJobsets.get(M);z&&(z.flushJobs(),this.pageDisposeJobsets.delete(M))};
_.P.onYtStopOldPlayer=function(M,z){z=z===void 0?!1:z;var J,R=_.ZR("kevlar_new_stop_old_player_logic_pages");if(_.U("kevlar_check_current_page_on_stop_old_player")&&(R.length===0||this.currentPage&&R.includes(this.currentPage.is)))if(this.data&&(J=GD(this.data)),GD(M)===J&&this.currentPage&&GD(this.currentPage.data)!==J)var D=_.z_(this.currentPage);else J=GD(this.data),D=CG(this.pagePool,J),D=_.z_(D);else this.data&&(J=GD(this.data),D=CG(this.pagePool,J),D=_.z_(D));if(D)if(M=GD(M),R=CG(this.pagePool,
M),R=_.z_(R),D==R)z&&!_.U("kevlar_disable_preemptive_player_reset")&&D.resetForNewPlayback();else if(z=J==="watch"&&M!=="watch",!z||M==="shorts"||_.X8p()&&!mSN(this.data)&&M!=="yts-products"&&M!="mini_app"&&M!="playables")J=_.JF().resolve(_.q5),z&&J.isMiniplayerActive()&&J.pipController.getWindow()||D.stop()};
_.P.isDifferentBrowseId=function(M,z){M=_.G(M,_.Gh);z=_.G(z,_.Gh);return(M==null?void 0:M.browseId)!==(z==null?void 0:z.browseId)};
_.rX.Object.defineProperties(Z9,{template:{configurable:!0,enumerable:!0,get:function(){return Ehw()}}});
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Z9.prototype,"ytActionHandlerBehavior",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-page-manager"})],Z9);_.d(Z9,"ytd-page-manager",function(){return Ehw()},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var fnu;var kU=function(){var M=_.g.apply(this,arguments)||this;M.useListItemStyles=_.U("web_list_item_style_for_menu_items");M.systemIcons=_.U("kevlar_system_icons");return M};
_.w(kU,_.g);_.P=kU.prototype;_.P.ready=function(){this.hostElement.addEventListener("tap",_.ou(this,this.onEndpointTapExtra))};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var M;(M=_.SN(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.P.onEndpointTapExtra=function(M){_.Pv(this.hostElement,"iron-activate");var z=this.data.navigationEndpoint;z&&_.G(z,_.jpe)&&(M.stopPropagation(),_.Bv(this.hostElement,[z],this.hostElement))};
_.P.computeIcon=function(M){return M&&M.iconType?_.oE(M.iconType):""};
_.P.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.Tp(this.hostElement)};
kU.prototype.forceUpdateStylesOnLegacyBrowsers=kU.prototype.forceUpdateStylesOnLegacyBrowsers;kU.prototype.onFocus=kU.prototype.onFocus;_.u([_.p(_.N4),_.W("design:type",Object)],kU.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.urV.YtConditionalRendererBehavior),_.W("design:type",Object)],kU.prototype,"ytConditionalRendererBehavior",void 0);_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],kU.prototype,"ytEndpointBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],kU.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],kU.prototype,"icon",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kU.prototype,"useIcons",void 0);_.u([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],kU.prototype,"hasSeparator",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kU.prototype,"useListItemStyles",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],kU.prototype,"systemIcons",void 0);_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kU.prototype,"onFocus",null);_.u([_.la("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kU.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(kU,"ytd-menu-navigation-item-renderer",function(){if(fnu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);fnu=M}M=fnu;return M},{mode:1});var LYG;var A3u=_.id(_.e9("DOWNLOAD",{},"Download")),iml=_.id(_.e9("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),C1t=_.id(_.e9("RETRY",{},"Retry")),bml=_.id(_.e9("PAUSE_DOWNLOADING",{},"Pause downloading")),r3t=_.id(_.e9("RESUME_DOWNLOAD",{},"Resume download")),Br=function(){var M=_.g.apply(this,arguments)||this;M.primaryText=A3u;M.primaryIconType="OFFLINE_DOWNLOAD";M.hasSecondaryContent=!1;M.hasSeparator=!1;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.isHidden=!1;M.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return M};
_.w(Br,_.g);_.P=Br.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){this.primaryEntry.focus()};
_.P.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.P.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.P.getRemoveAction=function(){return"ACTION_REMOVE"};
_.P.sendOfflineAction=function(M){var z=this.data.serviceEndpoint;if(z){var J=_.G(z,_.lE);J&&M&&(J.action=M);this.ytComponentBehavior.resolveCommand(z)}};
_.P.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=A3u,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=A3u;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=C1t;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=iml;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=r3t;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=iml;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
bml;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=iml;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=iml;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=A3u,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.P.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.P.isSecondaryEntryHidden=function(M,z){return M?!0:!z};
_.P.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
Br.prototype.showHideButton=Br.prototype.showHideButton;Br.prototype.onTransferStateChange=Br.prototype.onTransferStateChange;Br.prototype.onFocus=Br.prototype.onFocus;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Br.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Br.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Br.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Br.prototype,"primaryText",void 0);_.u([_.Y(),_.W("design:type",String)],Br.prototype,"primaryIconType",void 0);_.u([_.Y(),_.W("design:type",String)],Br.prototype,"primaryAction",void 0);_.u([_.Y(),_.W("design:type",Object)],Br.prototype,"secondaryText",void 0);_.u([_.Y(),_.W("design:type",String)],Br.prototype,"secondaryIconType",void 0);
_.u([_.Y(),_.W("design:type",String)],Br.prototype,"secondaryAction",void 0);_.u([_.Y(),_.W("design:type",Object)],Br.prototype,"hasSecondaryContent",void 0);_.u([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Object)],Br.prototype,"hasSeparator",void 0);_.u([_.Y({selector:_.KD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",String)],Br.prototype,"transferState",void 0);
_.u([_.Y({selector:_.B_3,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],Br.prototype,"isVideoDeletedByUser",void 0);_.u([_.Y(),_.W("design:type",Object)],Br.prototype,"isHidden",void 0);_.u([_.Y({selector:_.Rye,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],Br.prototype,"offlineabilityState",void 0);_.u([_.Qc("#primary-entry"),_.W("design:type",Object)],Br.prototype,"primaryEntry",void 0);
_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Br.prototype,"onFocus",null);_.u([_.wH("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Br.prototype,"onTransferStateChange",null);_.u([_.wH("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Br.prototype,"showHideButton",null);
_.d(Br,"ytd-menu-service-item-download-renderer",function(){if(LYG===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);LYG=M}M=LYG;return M},{mode:1});var Mts;var O6=function(){var M=_.g.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.U("kevlar_system_icons");M.useListItemStyles=_.U("web_list_item_style_for_menu_items");return M};
_.w(O6,_.g);_.P=O6.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var M;(M=_.SN(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.P.onTap=function(){_.ZL(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var M=this.data.serviceEndpoint,z=this.data.command;if(M){var J,R=(J=this.data)==null?void 0:J.trackingParams;J=!!_.G(M,_.Yvv);R&&J&&_.rA().dispatch(_.Nv({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:R}}));this.ytComponentBehavior.resolveCommand(M)||_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}})}z&&(this.ytComponentBehavior.resolveCommand(z)||_.Bv(this.hostElement,
[z],this.hostElement))};
_.P.computeIcon=function(M){return M&&M.iconType?_.oE(M.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.Tp(this.hostElement)};
_.P.computeIsSelected=function(){var M;return!((M=this.data)==null||!M.isSelected)};
O6.prototype.forceUpdateStylesOnLegacyBrowsers=O6.prototype.forceUpdateStylesOnLegacyBrowsers;O6.prototype.onTap=O6.prototype.onTap;O6.prototype.onFocus=O6.prototype.onFocus;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],O6.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],O6.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.urV.YtConditionalRendererBehavior),_.W("design:type",Object)],O6.prototype,"ytConditionalRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],O6.prototype,"data",void 0);_.u([_.Y({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],O6.prototype,"icon",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O6.prototype,"useIcons",void 0);
_.u([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],O6.prototype,"hasSeparator",void 0);_.u([_.Y({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.W("design:type",Boolean)],O6.prototype,"isSelected",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O6.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],O6.prototype,"useListItemStyles",void 0);
_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O6.prototype,"onFocus",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],O6.prototype,"onTap",null);_.u([_.la("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O6.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(O6,"ytd-menu-service-item-renderer",function(){if(Mts===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);Mts=M}M=Mts;return M},{mode:2});var zdm;var To=function(){return _.g.apply(this,arguments)||this};
_.w(To,_.g);_.P=To.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var M=this;_.C4(this,function(){M.postbox.openDialog();M.focus();_.Pv(M.hostElement,"yt-refit")})};
_.P.focus=function(){this.postbox.focus()};
_.P.closePopup=function(){_.S9(this.hostElement,"yt-close-popup-action")};
_.P.onYtCommentboxDismiss=function(){this.closePopup()};
To.prototype.onYtCommentboxDismiss=To.prototype.onYtCommentboxDismiss;To.prototype.onDataChanged=To.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],To.prototype,"data",void 0);_.u([_.Y({value:function(){return _.e9("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],To.prototype,"closeButtonAriaLabel",void 0);_.u([_.Qc("#postbox"),_.W("design:type",Object)],To.prototype,"postbox",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],To.prototype,"onDataChanged",null);_.u([_.Xw("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],To.prototype,"onYtCommentboxDismiss",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],To);
_.d(To,"ytd-backstage-post-dialog-popup-renderer",function(){if(zdm!==void 0)return zdm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return zdm=M},{mode:1});var JUw;var I1=function(){return _.g.apply(this,arguments)||this};
_.w(I1,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],I1.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],I1);
_.d(I1,"ytd-sender-id-section-renderer",function(){if(JUw!==void 0)return JUw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return JUw=M},{mode:1});var Rdc;var DLc;var NG5;var o1=function(){return _.g.apply(this,arguments)||this};
_.w(o1,_.g);o1.prototype.closePopup=function(){_.S9(this.hostElement,"yt-close-popup-action")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],o1.prototype,"data",void 0);_.u([_.cU({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],o1);
_.d(o1,"yt-community-post-section-renderer",function(){if(NG5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;DLc===void 0&&(DLc=document.createElement("template"));var R=DLc;J.call(z,R.content.cloneNode(!0),M.content.firstChild);NG5=M}M=NG5;return M},{mode:2});var Pjm;var Szw;var Z9d;var kMw;var BGw;var O9u;var XN=function(){return _.g.apply(this,arguments)||this};
_.w(XN,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],XN.prototype,"data",void 0);_.u([_.cU({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],XN);
_.d(XN,"yt-share-start-time-with-context-renderer",function(){if(O9u===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;BGw===void 0&&(BGw=document.createElement("template"));var R=BGw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);O9u=M}M=O9u;return M},{mode:2});var l8=function(){return _.g.apply(this,arguments)||this};
_.w(l8,_.g);l8.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],l8.prototype,"data",void 0);_.u([_.cU({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],l8);
_.d(l8,"yt-share-panel-title-v15-renderer",function(){if(kMw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Z9d===void 0&&(Z9d=document.createElement("template"));var R=Z9d;J.call(z,R.content.cloneNode(!0),M.content.firstChild);kMw=M}M=kMw;return M},{mode:2});var e2=function(){return _.g.apply(this,arguments)||this};
_.w(e2,_.g);e2.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],e2.prototype,"data",void 0);_.u([_.cU({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],e2);
_.d(e2,"yt-share-panel-header-renderer",function(){if(Szw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Pjm===void 0&&(Pjm=document.createElement("template"));var R=Pjm;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Szw=M}M=Szw;return M},{mode:2});var TGl;var I7G;var Qx=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-open-popup-action":"onOpen"};return M};
_.w(Qx,_.g);_.P=Qx.prototype;_.P.attached=function(){this.onOpen()};
_.P.updateTimeSecs=function(M){this.currentTimeSecs=M};
_.P.computeTimeString=function(M){M=M.toString();var z=Math.floor(Number(M)/3600),J=Math.floor(Number(M)%3600%60);return(z>0?z+":":"")+_.S6(Math.floor(Number(M)%3600/60),z>0?2:1)+":"+_.S6(J,2)};
_.P.computeTimeStringA11y=function(M){M=_.T_3({seconds:M});var z=M.hours===void 0?0:M.hours,J=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds;M=[];if(z>0){var D=XsN().format({hours:z});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.WA)||z>9999)D=D.replace(z.toString(),_.I1e(z)),_.WA==="km"&&(D=D.replace(".",","));M.push(D)}J>0&&M.push(XsN().format({minutes:J}));R>0&&M.push(XsN().format({seconds:R}));z="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");J=_.WA==
"am"?"{0}\u1363 ":_.WA=="fa"?"{0}\u060c\u200f ":_.WA=="my"?"{0} - ":_.WA=="ne"?"{0},":_.WA=="th"?"{0} ":_.WA=="ur"?"{0}\u060c ":_.WA=="ar"||_.WA=="ar-XB"?"{0} \u0648":_.WA=="ja"||_.WA=="zh-CN"||_.WA=="zh-HK"||_.WA=="zh-TW"?"{0}\u3001":"{0}, ";R=_.WA=="am"?"\u1363 ":_.WA=="fa"?"\u060c\u200f ":_.WA=="my"?" - ":_.WA=="th"?" ":_.WA=="ur"?"\u060c ":_.WA=="ar"||_.WA=="ar-XB"?" \u0648":_.WA=="ja"||_.WA=="zh-CN"||_.WA=="zh-HK"||_.WA=="zh-TW"?"\u3001":", ";D=_.WA=="am"?" \u12a5\u1293 {0}":_.WA=="as"?" \u0986\u09f0\u09c1 {0}":
_.WA=="az"?" v\u0259 {0}":_.WA=="bn"?" \u098f\u09ac\u0982 {0}":_.WA=="cs"?" a\u00a0{0}":_.WA=="de"?" und {0}":_.WA=="el"?" \u03ba\u03b1\u03b9 {0}":_.WA=="eu"?" eta {0}":_.WA=="fa"?"\u060c \u0648 {0}":_.WA=="fil"?", at {0}":_.WA=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.WA=="hi"?", \u0914\u0930 {0}":_.WA=="hu"?" \u00e9s {0}":_.WA=="hy"?" \u0587 {0}":_.WA=="id"?", dan {0}":_.WA=="iw"?" \u05d5-{0}":_.WA=="ja"?"\u3001{0}":_.WA=="ka"?" \u10d3\u10d0 {0}":_.WA=="km"?" \u1793\u17b7\u1784 {0}":_.WA=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.WA=="ko"?" \ubc0f {0}":_.WA=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.WA=="lt"?" ir {0}":_.WA=="lv"?" un {0}":_.WA=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.WA=="mr"?" \u0906\u0923\u093f {0}":_.WA=="ms"?" dan {0}":_.WA=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.WA=="ne"?" \u0930 {0}":_.WA=="or"?", \u0b13 {0}":_.WA=="pa"?" \u0a05\u0a24\u0a47 {0}":_.WA=="ro"?" \u0219i {0}":_.WA=="si"?", \u0dc3\u0dc4 {0}":_.WA=="sk"?" a {0}":_.WA=="sl"?" in {0}":_.WA=="sq"?" dhe {0}":_.WA=="sv"?" och {0}":
_.WA=="sw"?" na {0}":_.WA=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.WA=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.WA=="th"?" \u0e41\u0e25\u0e30{0}":_.WA=="tr"?" ve {0}":_.WA=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.WA=="uz"?" va {0}":_.WA=="vi"?" v\u00e0 {0}":_.WA=="zh-HK"?"\u53ca{0}":_.WA=="zu"?", ne-{0}":_.WA=="af"||_.WA=="nl"?" en {0}":_.WA=="ar"||_.WA=="ar-XB"?" \u0648{0}":_.WA=="be"||_.WA=="uk"?" \u0456 {0}":_.WA=="en-GB"||_.WA=="en-IN"?" and {0}":_.WA=="en"||_.WA=="en-XA"?
", and {0}":_.WA=="et"||_.WA=="fi"?" ja {0}":_.WA=="fr"||_.WA=="fr-CA"?" et {0}":_.WA=="zh-CN"||_.WA=="zh-TW"?"\u548c{0}":_.WA=="da"||_.WA=="is"||_.WA=="no"?" og {0}":_.WA=="es"||_.WA=="es-419"||_.WA=="es-US"?" y {0}":_.WA=="kk"||_.WA=="lo"||_.WA=="mn"?", {0}":_.WA=="bg"||_.WA=="mk"||_.WA=="ru"||_.WA=="sr"?" \u0438 {0}":_.WA=="gl"||_.WA=="it"||_.WA=="pt-BR"||_.WA=="pt-PT"?" e {0}":" i {0}";var N=_.WA=="am"?"{0} \u12a5\u1293 {1}":_.WA=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.WA=="az"?"{0} v\u0259 {1}":
_.WA=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.WA=="de"?"{0} und {1}":_.WA=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.WA=="eu"?"{0} eta {1}":_.WA=="fa"?"{0} \u0648 {1}":_.WA=="fil"?"{0} at {1}":_.WA=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.WA=="hi"?"{0} \u0914\u0930 {1}":_.WA=="hu"?"{0} \u00e9s {1}":_.WA=="hy"?"{0} \u0587 {1}":_.WA=="iw"?"{0} \u05d5-{1}":_.WA=="ja"?"{0}\u3001{1}":_.WA=="ka"?"{0} \u10d3\u10d0 {1}":_.WA=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.WA=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.WA=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.WA=="ko"?"{0} \ubc0f {1}":_.WA=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.WA=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.WA=="lt"?"{0} ir {1}":_.WA=="lv"?"{0} un {1}":_.WA=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.WA=="mn"?"{0}, {1}":_.WA=="mr"?"{0} \u0906\u0923\u093f {1}":_.WA=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.WA=="ne"?"{0} \u0930 {1}":_.WA=="or"?"{0} \u0b13 {1}":_.WA=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.WA=="ro"?"{0} \u0219i {1}":_.WA==
"si"?"{0} \u0dc3\u0dc4 {1}":_.WA=="sl"?"{0} in {1}":_.WA=="sq"?"{0} dhe {1}":_.WA=="sv"?"{0} och {1}":_.WA=="sw"?"{0} na {1}":_.WA=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.WA=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.WA=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.WA=="tr"?"{0} ve {1}":_.WA=="ur"?"{0} \u0627\u0648\u0631 {1}":_.WA=="uz"?"{0} va {1}":_.WA=="vi"?"{0} v\u00e0 {1}":_.WA=="zh-HK"?"{0}\u53ca{1}":_.WA=="zu"?"{0} ne-{1}":_.WA=="af"||_.WA=="nl"?"{0} en {1}":_.WA=="ar"||_.WA==
"ar-XB"?"{0} \u0648{1}":_.WA=="be"||_.WA=="uk"?"{0} \u0456 {1}":_.WA=="cs"||_.WA=="sk"?"{0} a\u00a0{1}":_.WA=="et"||_.WA=="fi"?"{0} ja {1}":_.WA=="fr"||_.WA=="fr-CA"?"{0} et {1}":_.WA=="id"||_.WA=="ms"?"{0} dan {1}":_.WA=="zh-CN"||_.WA=="zh-TW"?"{0}\u548c{1}":_.WA=="da"||_.WA=="is"||_.WA=="no"?"{0} og {1}":_.WA=="es"||_.WA=="es-419"||_.WA=="es-US"?"{0} y {1}":_.WA=="bg"||_.WA=="mk"||_.WA=="ru"||_.WA=="sr"?"{0} \u0438 {1}":_.WA=="en"||_.WA=="en-GB"||_.WA=="en-IN"||_.WA=="en-XA"?"{0} and {1}":_.WA==
"gl"||_.WA=="it"||_.WA=="pt-BR"||_.WA=="pt-PT"?"{0} e {1}":"{0} i {1}";_.WA==="sq"?(D=D.replace("dhe","e"),N=N.replace("dhe","e")):_.WA==="th"?(R=R.replace("{0}"," {0}"),N=N.replace("{0}","{0} "),N=N.replace("{1}"," {1}")):_.WA==="ne"?R=",":_.WA==="zh-CN"?R="":z.includes(_.WA)&&(R=" ");return M.length<2?M.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.WA)?M.length===2?
N.replace("{0}",M[0]).replace("{1}",M[1]):J.replace("{0}",M[0])+M.slice(1,-1).join(R)+D.replace("{0}",M[M.length-1]):M.join(R)};
_.P.getTimeParam=function(){return Kxm(this.timeString)};
_.P.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var M={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},z;_.Ub(_.Gm(),(z=this.data)==null?void 0:z.trackingParams,M,7)};
_.P.onChangeStartAtTimestamp=function(){for(var M=this.startAtTimestamp.value.split(":"),z=0,J=1,R=M.length-1;R>=0;R--)z+=Number(M[R])*J,J*=60;this.updateTimeSecs(z);this.setTimestamp()};
_.P.onOpen=function(){var M=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var z=_.J_();z?z.getPlayerPromise().then(function(J){J=J.getCurrentTime();M.updateTimeSecs(J)}):lLl()&&this.updateTimeSecs(lLl())};
_.P.setTimestamp=function(){var M=Math.floor(this.currentTimeSecs);_.S9(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!M,timestamp:M||""}])};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Qx.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Qx.prototype,"data",void 0);_.u([_.Y({value:!1,notify:!0}),_.W("design:type",Boolean)],Qx.prototype,"isStartAtChecked",void 0);_.u([_.Y(),_.W("design:type",Number)],Qx.prototype,"currentTimeSecs",void 0);
_.u([_.Y({computed:"computeTimeString(currentTimeSecs)"}),_.W("design:type",String)],Qx.prototype,"timeString",void 0);_.u([_.Y({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.W("design:type",String)],Qx.prototype,"timeStringA11y",void 0);_.u([_.Qc("#start-at-timestamp"),_.W("design:type",Object)],Qx.prototype,"startAtTimestamp",void 0);_.u([_.cU({is:"yt-start-at-renderer",disableElementRegistration:!0})],Qx);
_.d(Qx,"yt-start-at-renderer",function(){if(I7G===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;TGl===void 0&&(TGl=document.createElement("template"));var R=TGl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);I7G=M}M=I7G;return M},{mode:2});var oYw;var XCd;var l7l=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),edd=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),Q5l=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var ULG={};ULG.YtBindingExpressionsBehavior={identity:_.yH,msg:function(M,z){z=z===void 0?{}:z;return _.e9(M,z,M)},
msgPlural:function(M,z){return _.QC(M,z)},
getMusicIconFromType:function(M){if(_.U("music_web_enable_icon_wil"))M=_.oE(M);else if(edd.has(M))M="yt-sys-icons:"+edd.get(M);else{var z=l7l.get(M)||_.oE(M).split(":")[1];z=_.KJG(z);var J;M=((J=Q5l.get(M))!=null?J:"yt-sys-icons:")+z}return M}};var vYu;var GMw;var wCi;var xLw=document.head,tt5=xLw.appendChild,j5N;if(wCi===void 0){var pCc=document.createElement("template");_.t(pCc,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');wCi=pCc}j5N=wCi;tt5.call(xLw,j5N.content);var U6=function(){var M=_.g.apply(this,arguments)||this;M.screenLayer=7;return M};
_.w(U6,_.g);U6.prototype.getScreenLayer=function(){return this.screenLayer};
U6.prototype.onTap=function(M){M&&M.detail&&(M.detail.x||M.detail.y)&&_.SN(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.kQ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(M=this.getScreenLayer(),_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:M}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.rX.Object.defineProperties(U6.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()}}});
U6.prototype.onTap=U6.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],U6.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],U6.prototype,"data",void 0);_.u([_.F("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],U6.prototype,"title",null);
_.u([_.F("data.serviceName"),_.W("design:type",String),_.W("design:paramtypes",[])],U6.prototype,"icon",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],U6.prototype,"onTap",null);_.u([_.cU({is:"yt-share-target-renderer",disableElementRegistration:!0})],U6);
_.d(U6,"yt-share-target-renderer",function(){if(GMw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;vYu===void 0&&(vYu=document.createElement("template"));var R=vYu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);GMw=M}M=GMw;return M},{mode:2});var FEt;var YzN;var vr=function(){var M=_.g.apply(this,arguments)||this;M.SHARE_TARGET_WIDTH=70;M.SHARE_TARGET_MARGIN_RIGHT=8;M.PAGE_SCROLL_SPEED=9;M.actionMap={"yt-share-panel-reset-action":"onReset_"};return M};
_.w(vr,_.g);_.P=vr.prototype;_.P.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.P.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.SN(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.SN(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.P.onReset_=function(){if(_.SN(this.hostElement).querySelector("#list")){var M=_.SN(this.hostElement).querySelector("#list");var z=_.SN(this.hostElement).querySelector("#list");var J=z.offsetLeft,R=z.offsetParent;R||_.S5p(z)!="fixed"||(R=_.yW(z).documentElement);if(R){if(_.IJ&&!_.XZ(58)){var D=_.Xta(R);J+=D.left}else Number(_.h7o)>=8&&!(Number(_.h7o)>=9)&&(D=_.Xta(R),J-=D.left);z=_.Isg(R)?R.clientWidth-(J+z.offsetWidth):J}else z=J;x5l(M,z);this.updateScrollButtons_()}};
_.P.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.P.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.P.onScrollWheel_=function(M){M.stopPropagation();M.preventDefault();var z=wfG(_.SN(this.hostElement).querySelector("#list"));M=Math.abs(M.deltaX)>Math.abs(M.deltaY)?M.deltaX:M.deltaY;x5l(_.SN(this.hostElement).querySelector("#list"),z+M);this.updateScrollButtons_()};
_.P.smoothScrollByOnePage_=function(M){var z=_.SN(this.hostElement).querySelector("#list"),J=(Math.floor(z.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,R=wfG(z),D=J*(M?1:-1),N=this.PAGE_SCROLL_SPEED,Z=this.updateScrollButtons_.bind(this),B=0,O;(function l(){B+=N;O=B/J*2;x5l(z,R+D*(O<1?O*O:-O*O+4*O-2));B<J?window.requestAnimationFrame(l):Z()})()};
_.P.updateScrollButtons_=function(){var M=wfG(_.SN(this.hostElement).querySelector("#list")),z=_.SN(this.hostElement).querySelector("#list").scrollWidth-_.SN(this.hostElement).querySelector("#list").clientWidth;_.SN(this.hostElement).querySelector("#scroll-button-back").hidden=M<=0;_.SN(this.hostElement).querySelector("#scroll-button-forward").hidden=M>=z};
vr.prototype.onScrollWheel_=vr.prototype.onScrollWheel_;vr.prototype.onDataChanged_=vr.prototype.onDataChanged_;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(ULG.YtBindingExpressionsBehavior),_.W("design:type",Object)],vr.prototype,"ytBindingExpressionsBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vr.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vr.prototype,"onDataChanged_",null);_.u([_.Xw("wheel"),_.W("design:type",Function),_.W("design:paramtypes",[WheelEvent]),_.W("design:returntype")],vr.prototype,"onScrollWheel_",null);
_.u([_.cU({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],vr);
_.d(vr,"yt-third-party-share-target-section-renderer",function(){if(YzN===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;FEt===void 0&&(FEt=document.createElement("template"));var R=FEt;J.call(z,R.content.cloneNode(!0),M.content.firstChild);YzN=M}M=YzN;return M},{mode:2});var Go=function(){return _.g.apply(this,arguments)||this};
_.w(Go,_.g);Go.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"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Go.prototype,"data",void 0);_.u([_.cU({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Go);
_.d(Go,"yt-third-party-network-section-renderer",function(){if(XCd===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;oYw===void 0&&(oYw=document.createElement("template"));var R=oYw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);XCd=M}M=XCd;return M},{mode:2});_.N7(_.Mf(function(M){return _.T("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.T("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.T(_.t_,{data:function(){return M.data().firstPartyItems}},{listItemViewModel:_.uI})))},"Kg"),"first-party-network-section-view-model",{props:{data:_.zn}});var mLG=_.Ca(["data:image/svg+xml;charset=UTF-8;base64,",""]),wK=function(){var M=_.g.apply(this,arguments)||this;M.screenLayer=7;M.qrCodeEnabled=_.U("web_enable_sharing_qr_code");M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return M};
_.w(wK,_.g);_.P=wK.prototype;_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.P.attached=function(){this.JSC$19923_scroller&&(this.JSC$19923_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19923_scroller.attached&&typeof this.JSC$19923_scroller.attached==="function"&&this.JSC$19923_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.P.onDataChanged=function(){var M=this,z;(z=this.data)!=null&&z.contents&&(this.hostElement.setAttribute("links-only","true"),_.BU(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.C4(this,function(){_.Pv(M.hostElement,"yt-refit");M.focusSharePanelHeader()}))};
_.P.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.P.handleSetTimestamp=function(M){var z=this.shortUrl();M.isSet&&(z=_.fQ(z,"t",M.timestamp));this.maybeRenderQrCode(z)};
_.P.shortUrl=function(){var M,z=(M=this.data)==null?void 0:M.contents;if(z)for(M=0;M<z.length;M++){var J=void 0,R=void 0;if((J=z[M])==null?0:(R=J.thirdPartyNetworkSection)==null?0:R.copyLinkContainer){var D=R=J=void 0;return(D=_.G((J=z[M])==null?void 0:(R=J.thirdPartyNetworkSection)==null?void 0:R.copyLinkContainer,jQc))==null?void 0:D.shortUrl}}};
_.P.maybeRenderQrCode=function(M){var z=this,J,R,D,N,Z,B,O,X,l;return _.k(function(e){if(e.nextAddress==1){J=_.SN(z.hostElement).querySelector("#qr-code");if(!z.qrCodeEnabled||!M)return J&&(J.style.display="none"),e.return();R=_.ftY(_.JF().resolve(_.XH),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});D=document.createElement("div");return typeof R==="function"?(R(D),e.jumpTo(2)):e.yield(R,3)}e.nextAddress!=2&&(N=e.yieldResult,N(D));O=(Z=D)==null?void 0:(B=Z.firstChild)==null?void 0:B.firstChild;
X=document.createElement("img");l=_.b30(mLG,btoa(O.outerHTML));X.onload=function(){var Q={canvas:J,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:X},v=new VgN;Cdu(v,M);bDv(v,!1,rNw(v));var x=v.modules,m=Object.assign({},Xhd,Q);x=structuredClone(x);Q=x.length;var y,H=(y=m.canvas)!=null?y:document.createElement("canvas");y=m.cellSize;v=m.logo;var q,b=(q=m.logoSize)!=null?q:Math.floor(Q/4);Q%2!==b%2&&b++;var V=m.logoPadding,E=m.backgroundColor;q=Q*y;var L=
m.width,z8=0;L&&(z8=m.padding,z8=Math.ceil(z8*q/(L-z8*2)),H.style.width=L+"px",H.style.height=L+"px");H.width!==q+z8*2&&(H.width=q+z8*2);H.height!==q+z8*2&&(H.height=q+z8*2);q=H.getContext("2d");m.autoClear&&q.clearRect(0,0,H.width,H.height);q.fillStyle=E;q.beginPath();q.roundRect(0,0,H.width,H.height,m.borderRadius);q.fill();q.save();q.translate(z8,z8);if(v)for(H=Math.floor(Q-b)/2-V,V=Math.floor(Q+b)/2+V,E=H;E<V;E++)for(L=H;L<V;L++)x[E][L]=!1;for(H=0;H<Q;H++)for(V=0;V<Q;V++)(H<7&&V<7||H<7&&V>=Q-
7||H>=Q-7&&V<7)&&(x[H][V]=!1);var O8;H=(O8=m.markerColor)!=null?O8:m.color;z8G(q,0,0,y,H);z8G(q,y*(Q-7),0,y,H);z8G(q,0,y*(Q-7),y,H);switch(m.cellStyle){case 0:O8=x;x=O8.length;H=m.cellSize;q.beginPath();for(V=0;V<x;V++)for(E=0;E<x;E++)O8[V][E]&&q.rect(V*H,E*H,H,H);q.fillStyle=m.color;q.fill();break;case 1:O8=x;x=O8.length;H=m.cellSize;V=H*m.relativeCircleSize;q.fillStyle=m.color;q.beginPath();for(m=0;m<x;m++)for(E=0;E<x;E++)O8[m][E]&&(q.beginPath(),q.ellipse((m+.5)*H,(E+.5)*H,V/2,V/2,0,0,2*Math.PI),
q.fill());q.fill();break;case 2:O8=x;x=O8.length;H=m.cellSize;q.fillStyle=m.color;m=[[1,1],[-1,1],[-1,-1],[1,-1]];q.beginPath();for(V=0;V<x;V++)for(E=0;E<x;E++)if(O8[V][E])q.roundRect(V*H,E*H,H,H,H/2),V+1<x&&O8[V+1][E]&&q.rect(V*H+H/2,E*H,H,H),E+1<x&&O8[V][E+1]&&q.rect(V*H,E*H+H/2,H,H);else{L=V*H+H/2;z8=E*H+H/2;for(var I3=0;I3<4;I3++){var vY=_.S(m[I3]),te=vY.next().value;vY=vY.next().value;V+te>=0&&V+te<x&&E+vY>=0&&E+vY<x&&O8[V+te][E]&&O8[V][E+vY]&&O8[V+te][E+vY]&&(te=I3*Math.PI/2,vY=H/2,q.moveTo(L+
vY*Math.cos(te),z8+vY*Math.sin(te)),q.arc(L,z8,H/2,te,te+Math.PI/2,!1),q.lineTo(L+vY*(Math.cos(te)-Math.sin(te)),z8+vY*(Math.cos(te)+Math.sin(te))),q.lineTo(L+vY*Math.cos(te),z8+vY*Math.sin(te)))}}q.fill()}v&&q.drawImage(v,(Q-b)*y/2,(Q-b)*y/2,b*y,b*y);q.restore();J.style.removeProperty("display")};
X.src=_.Yq(l);_.UI(e)})};
_.P.hasCommunityPostRenderer=function(){var M,z,J,R;return!!((M=this.data)==null?0:(z=M.header)==null?0:(J=z.sharePanelHeaderRenderer)==null?0:(R=J.communityPost)==null?0:R.communityPostSectionRenderer)};
_.P.onTapClose=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.P.getScreenLayer=function(){return this.screenLayer};
_.P.logSharePanelPage=function(){if(!_.U("enable_share_panel_navigation_logging_fix_on_web")){var M;if((M=this.data)!=null&&M.trackingParams){M=this.data.trackingParams;var z=this.parentClickTrackingParams;z=z?_.pe(z):void 0;var J=_.Gm();_.Xx(J,21760,z,{layer:7,parentLayer:0});J.graftServerVe(M,void 0,7);_.rA().dispatch(_.Nv({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
wK.prototype.onDataChanged=wK.prototype.onDataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],wK.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],wK.prototype,"data",void 0);_.u([_.Y({value:_.e9("SBOX_INAPPROPRIATE_CANCEL")}),_.W("design:type",String)],wK.prototype,"closeButtonAriaLabel",void 0);_.u([_.Qc("yt-share-panel-header-renderer"),_.W("design:type",HTMLElement)],wK.prototype,"header",void 0);_.u([_.Y({selector:function(M){return M.share.parentClickTrackingParams}}),
_.W("design:type",String)],wK.prototype,"parentClickTrackingParams",void 0);_.u([_.Y(),_.W("design:type",Object)],wK.prototype,"qrCodeEnabled",void 0);_.u([_.Qc("#scroller"),_.W("design:type",Object)],wK.prototype,"JSC$19923_scroller",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wK.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],wK);
_.d(wK,"ytd-unified-share-panel-renderer",function(){if(Rdc!==void 0)return Rdc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Rdc=M},{mode:1});var gYt;var xU=function(){var M=_.g.apply(this,arguments)||this;M.modernModal=!0;return M};
_.w(xU,_.g);xU.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
xU.prototype.computeShouldHideOldButtons=function(){var M;return!((M=this.data)==null?0:M.button)};
_.rX.Object.defineProperties(xU.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var M,z;return(M=this.data)==null?void 0:(z=M.button)==null?void 0:z.buttonRenderer}}});
_.u([_.Y(),_.W("design:type",Object)],xU.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],xU.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],xU.prototype,"modernModal",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xU.prototype,"buttonRendererData",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],xU);
_.d(xU,"ytd-modal-with-title-and-button-renderer",function(){if(gYt!==void 0)return gYt;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return gYt=M},{mode:1});var s5m;var tq=function(){return _.g.apply(this,arguments)||this};
_.w(tq,_.g);tq.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("page-changed",this.page))};
tq.prototype.pageChangedForBinding=tq.prototype.pageChangedForBinding;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tq.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],tq.prototype,"page",void 0);_.u([_.la("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tq.prototype,"pageChangedForBinding",null);
_.u([_.c({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],tq);
_.d(tq,"ytd-account-item-section-header-renderer",function(){if(s5m!==void 0)return s5m;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return s5m=M},{mode:1});var nYv;var j2=function(){return _.g.apply(this,arguments)||this};
_.w(j2,_.g);j2.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"}}}};
j2.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],j2.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],j2.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Function)],j2.prototype,"onAccountItemTap",void 0);
_.u([_.c({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],j2);
_.d(j2,"ytd-account-item-section-renderer",function(){if(nYv!==void 0)return nYv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nYv=M},{mode:1});var hds;var yUc;var pb=function(){return _.g.apply(this,arguments)||this};
_.w(pb,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pb.prototype,"data",void 0);_.u([_.c({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],pb);
_.d(pb,"ytd-accounts-dialog-header-renderer",function(){if(yUc!==void 0)return yUc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yUc=M},{mode:1});var H9v;var FN=function(){return _.g.apply(this,arguments)||this};
_.w(FN,_.g);FN.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],FN.prototype,"data",void 0);_.u([_.c({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],FN);
_.d(FN,"ytd-google-account-header-renderer",function(){if(H9v!==void 0)return H9v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return H9v=M},{mode:1});var YU=function(){return _.g.apply(this,arguments)||this};
_.w(YU,_.g);YU.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"}}}};
YU.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("page-changed",this.page))};
YU.prototype.pageChangedForBinding=YU.prototype.pageChangedForBinding;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YU.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],YU.prototype,"page",void 0);
_.u([_.la("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YU.prototype,"pageChangedForBinding",null);_.u([_.c({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],YU);
_.kS()(YU,"ytd-account-section-list-renderer",function(){if(hds===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);hds=M}M=hds;return M},{allowedProps:["data"],
mode:1});var cUc;var ml=function(){var M=_.g.apply(this,arguments)||this;M.enableHandlesAccountMenuSwitcher=_.U("enable_handles_account_menu_switcher");return M};
_.w(ml,_.g);ml.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ml.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ml.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.u([_.Qc("#avatar"),_.W("design:type",Object)],ml.prototype,"avatar",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ml.prototype,"dataChanged",null);_.u([_.c({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],ml);
_.kS()(ml,"ytd-active-account-header-renderer",function(){if(cUc===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);cUc=M}M=cUc;return M},{allowedProps:["data"],
mode:1});var dLi;var KEl;var gK=function(){return _.g.apply(this,arguments)||this};
_.w(gK,_.g);gK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gK.prototype.onBackTap=function(){_.Pv(this.hostElement,"yt-menu-back-tapped")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gK.prototype,"data",void 0);_.u([_.c({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],gK);
_.kS()(gK,"ytd-simple-menu-header-renderer",function(){if(KEl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);KEl=M}M=KEl;return M},{allowedProps:["data"],
mode:2});var $Lv;var s6=function(){return _.g.apply(this,arguments)||this};
_.w(s6,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],s6.prototype,"data",void 0);_.u([_.c({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],s6);
_.d(s6,"ytd-comment-video-thumbnail-header-renderer",function(){if($Lv!==void 0)return $Lv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $Lv=M},{mode:1});var ucv;var nb=function(){return _.g.apply(this,arguments)||this};
_.w(nb,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nb.prototype,"data",void 0);_.u([_.c({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],nb);
_.d(nb,"ytd-abuse-type-selector-renderer",function(){if(ucv!==void 0)return ucv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ucv=M},{mode:1});var qzl;var hq=function(){return _.g.apply(this,arguments)||this};
_.w(hq,_.g);hq.prototype.attached=function(){var M=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){M.additionalContextInput.focusTextInput()})};
hq.prototype.handleAdditionalContextChanged=function(){var M=this;_.Vc(this,"ytd-report-channel-additional-context-update",function(){M.ytdReduxBehavior.dispatch(_.Nv({type:"ADDITIONAL_CONTEXT_UPDATED",payload:M.additionalContext}))},300)};
hq.prototype.updateAdditionalContextFromBinding=function(M){this.additionalContext=M.detail.value};
hq.prototype.handleAdditionalContextChanged=hq.prototype.handleAdditionalContextChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],hq.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",String)],hq.prototype,"additionalContext",void 0);_.u([_.Y({selector:function(M){return M.reportChannelAbuse.additionalContext}}),
_.W("design:type",String)],hq.prototype,"additionalContextRedux",void 0);_.u([_.Y(),_.W("design:type",Object)],hq.prototype,"data",void 0);_.u([_.Qc("yt-text-input-form-field-renderer"),_.W("design:type",Object)],hq.prototype,"additionalContextInput",void 0);_.u([_.la("additionalContext"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hq.prototype,"handleAdditionalContextChanged",null);
_.u([_.c({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],hq);
_.d(hq,"ytd-report-channel-modal-additional-context-renderer",function(){if(qzl!==void 0)return qzl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qzl=M},{mode:1});var WEN;var yx=function(){var M=_.g.apply(this,arguments)||this;M.nextButtonDisabled=null;M.submitEndpoint=null;M.navigationEndpoint=null;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return M};
_.w(yx,_.g);_.P=yx.prototype;_.P.computeNextButtonData=function(M,z,J){var R={};z&&(R.navigationEndpoint=z);J&&(R.serviceEndpoint=J);M&&M.buttonRenderer&&_.gu.extend(R,M.buttonRenderer);return R};
_.P.handleReportChannelModalDisableNextButtonAction=function(M){this.setNextButtonIsDisabled(M)};
_.P.handleReportFormEndpointUpdateAction=function(M){this.setNextButtonIsDisabled(!!M.disableSubmitButton);this.resetEndpointData();M.submitEndpoint?this.submitEndpoint=M.submitEndpoint:M.submitNavigationEndpoint&&(this.navigationEndpoint=M.submitNavigationEndpoint)};
_.P.handleSignalActionSubmitForm=function(){var M,z=Object.keys(((M=this.reportChannelAbuseForm)==null?void 0:M.selectedVideoIds)||{}),J;M=((J=this.reportChannelAbuseForm)==null?void 0:J.additionalContext)||"";var R;J=((R=this.reportChannelAbuseForm)==null?void 0:R.impersonatedChannelUrl)||"";var D;if((D=this.data)==null?0:D.submitEndpoint){z={impersonated_channel_url:J,text:M,video_ids:z};var N;_.JF().resolve(_.Rb).resolveCommand((N=this.data)==null?void 0:N.submitEndpoint,{form:Object.assign({},
z,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.P.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.P.onYtServiceRequestError=function(M){this.setNextButtonIsDisabled(!1);_.Cf(this.hostElement,M.detail.error.message)};
_.P.setNextButtonIsDisabled=function(M){this.set("data.nextButton.buttonRenderer.isDisabled",M)};
_.P.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
yx.prototype.onYtServiceRequestError=yx.prototype.onYtServiceRequestError;yx.prototype.onYtServiceRequestCompleted=yx.prototype.onYtServiceRequestCompleted;_.u([_.Y(),_.W("design:type",Object)],yx.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],yx.prototype,"nextButtonDisabled",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],yx.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],yx.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yx.prototype,"submitEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],yx.prototype,"navigationEndpoint",void 0);_.u([_.Y({selector:function(M){return M.reportChannelAbuse}}),
_.W("design:type",Object)],yx.prototype,"reportChannelAbuseForm",void 0);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yx.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yx.prototype,"onYtServiceRequestError",null);
_.u([_.c({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],yx);
_.d(yx,"ytd-report-channel-modal-footer-renderer",function(){if(WEN!==void 0)return WEN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return WEN=M},{mode:1});var a7w;var Hr=function(){var M=_.g.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.closePopup()};
return M};
_.w(Hr,_.g);Hr.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Hr.prototype.handleDataChanged=function(){_.Lo(this.hostElement)};
Hr.prototype.closePopup=function(){_.S9(this.hostElement,"yt-close-popup-action")};
Hr.prototype.handleDataChanged=Hr.prototype.handleDataChanged;_.u([_.Y(),_.W("design:type",Object)],Hr.prototype,"boundOnTapDismissButton",void 0);_.u([_.Y(),_.W("design:type",Object)],Hr.prototype,"data",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hr.prototype,"handleDataChanged",null);_.u([_.c({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Hr);
_.d(Hr,"ytd-report-channel-modal-header-renderer",function(){if(a7w!==void 0)return a7w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return a7w=M},{mode:1});var VtN;var cr=function(){var M=_.g.apply(this,arguments)||this;M.autoValidate=!1;M.invalid=!1;M.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return M};
_.w(cr,_.g);_.P=cr.prototype;_.P.attached=function(){var M=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){M.channelUrlInput.focusTextInput()})};
_.P.disableNextButton=function(M){_.S9(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[M])};
_.P.handleImpersonatedChannelUrlChanged=function(){var M=this;this.disableNextButton(!0);this.invalid=!1;_.Vc(this,"ytd-report-channel-impersonated-channel-update",function(){var z=M.impersonatedChannelUrl.trim();M.ytdReduxBehavior.dispatch(_.Nv({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:z}));var J;((J=M.data)==null?0:J.submitEndpoint)&&z&&_.JF().resolve(_.Rb).resolveCommand(M.data.submitEndpoint,{form:{impersonated_channel_url:z,element:M.hostElement}})},500)};
_.P.handleModifyReportFormCommand=function(M){this.invalid=this.get("modifyReportFormCommand.action",M)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.P.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.P.updateImpersonatedChannelUrlFromBinding=function(M){this.impersonatedChannelUrl=M.detail.value};
cr.prototype.handleImpersonatedChannelUrlChanged=cr.prototype.handleImpersonatedChannelUrlChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],cr.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cr.prototype,"autoValidate",void 0);_.u([_.Y(),_.W("design:type",Object)],cr.prototype,"invalid",void 0);
_.u([_.Y(),_.W("design:type",String)],cr.prototype,"impersonatedChannelUrl",void 0);_.u([_.Y({selector:function(M){return M.reportChannelAbuse.impersonatedChannelUrl}}),
_.W("design:type",String)],cr.prototype,"impersonatedChannelUrlRedux",void 0);_.u([_.Y(),_.W("design:type",Object)],cr.prototype,"data",void 0);_.u([_.Qc("#text-input"),_.W("design:type",Object)],cr.prototype,"channelUrlInput",void 0);_.u([_.la("impersonatedChannelUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cr.prototype,"handleImpersonatedChannelUrlChanged",null);
_.u([_.c({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],cr);
_.d(cr,"ytd-report-channel-modal-impersonation-renderer",function(){if(VtN!==void 0)return VtN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return VtN=M},{mode:1});var EYs;var f7w;var dK=function(){return _.g.apply(this,arguments)||this};
_.w(dK,_.g);dK.prototype.onCheckboxToggled=function(M){var z,J,R=(J=_.G((z=this.data)==null?void 0:z.video,_.E4))==null?void 0:J.videoId;R&&this.ytdReduxBehavior.dispatch(M.target.checked?_.Nv({type:"VIDEO_SELECTED",payload:R}):_.Nv({type:"VIDEO_UNSELECTED",payload:R}))};
dK.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.rX.Object.defineProperties(dK.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.data)==null?void 0:M.video;if(!z)return{};var J;M=(J=_.G(z,_.E4))==null?void 0:J.navigationEndpoint;if(!M)return z;_.G(M==null?void 0:M.commandMetadata,_.X9)&&(_.G(M.commandMetadata,_.X9).ignoreNavigation=!0);return z}}});
_.u([_.Y({reflectToAttribute:!0,selector:function(M,z){return z in M.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.W("design:type",Boolean)],dK.prototype,"checked",void 0);_.u([_.Y(),_.W("design:type",Object)],dK.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dK.prototype,"video",null);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],dK.prototype,"ytdReduxBehavior",void 0);_.u([_.c({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],dK);
_.d(dK,"ytd-selectable-video-renderer",function(){if(f7w!==void 0)return f7w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return f7w=M},{mode:1});var Kb=function(){var M=_.g.apply(this,arguments)||this;M.monitorScroll=!0;return M};
_.w(Kb,_.g);Kb.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Kb.prototype,"data",void 0);_.u([_.c({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Kb);
_.d(Kb,"ytd-selectable-video-list-renderer",function(){if(EYs!==void 0)return EYs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return EYs=M},{mode:1});var LEl;_.nn("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var $U=function(){return _.g.apply(this,arguments)||this};
_.w($U,_.g);$U.prototype.onChange=function(M){if(M=_.b7(M).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.U("kevlar_command_handler_migration_killswitch"))_.Bv(this.hostElement,M,this.hostElement);else{M=_.S(M);for(var z=M.next();!z.done;z=M.next())this.ytComponentBehavior.resolveCommand(z.value)}};
$U.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
$U.prototype.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$U.prototype,"data",void 0);_.u([_.Y({computed:"isEnabled(data)"}),_.W("design:type",Boolean)],$U.prototype,"enabled",void 0);_.u([_.c({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],$U);
_.d($U,"ytd-toggle-item-renderer",function(){if(LEl!==void 0)return LEl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return LEl=M},{mode:1});var AUG;var i9w;var CjG;var u8=function(){var M=_.g.apply(this,arguments)||this;M.setVisible=!1;M.boundOnSubmitButtonClick=function(){M.onSubmitButtonClick()};
M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.w(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 M;((M=this.data)==null?0:M.submitEndpoint)&&!_.U("enable_ytc_refunds_submit_form_signal_action")&&_.kQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
u8.prototype.handleSignalActionSubmitForm=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&_.kQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.rX.Object.defineProperties(u8.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hiddenByDefault)&&!this.setVisible}}});
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],u8.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],u8.prototype,"setVisible",void 0);_.u([_.Y(),_.W("design:type",Object)],u8.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],u8.prototype,"surveyFeedbackData",void 0);_.u([_.Y(),_.W("design:type",Object)],u8.prototype,"boundOnSubmitButtonClick",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data","setVisible"),_.W("design:type",Object),_.W("design:paramtypes",[])],u8.prototype,"visibilityHidden",null);_.u([_.cU({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],u8);
_.d(u8,"yt-flow-footer-renderer",function(){if(CjG===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;i9w===void 0&&(i9w=document.createElement("template"));var R=i9w;J.call(z,R.content.cloneNode(!0),M.content.firstChild);CjG=M}M=CjG;return M},{mode:2});var qY=function(){return _.g.apply(this,arguments)||this};
_.w(qY,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],qY.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qY.prototype,"data",void 0);_.u([_.Y({selector:function(M){return M.ypc.surveyFeedbackData}}),
_.W("design:type",Object)],qY.prototype,"surveyFeedbackData",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],qY);
_.d(qY,"ytd-flow-footer-renderer",function(){if(AUG!==void 0)return AUG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return AUG=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var b9G;var rUw;var Wr=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return M};
_.w(Wr,_.g);_.P=Wr.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.hM("multiPageMenuSectionItems")}}};
_.P.handleHideEnclosingAction_=function(M){if(this.data&&this.data.items)for(var z=0;z<this.data.items.length;z++){var J=this.data.items[z].notificationRenderer;if(J&&J.notificationId==M.hideEnclosingAction.notificationId){this.splice("data.items",z,1);_.S9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.P.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.BU(this.hostElement,"hidden",!0)};
_.P.updateMenu_=function(M){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&M&&!M.doNotRefreshInbox){M=this.data.continuations;for(var z=0;z<M.length;z++)if(M[z].invalidationContinuationData){var J=void 0;var R=(J=M[z].invalidationContinuationData)==null?void 0:J.continuation;break}M=_.gu.clone(this.data.continuationUpdateEndpoint||null);M.continuation=R;M.click_tracking_params=this.data.trackingParams;_.kQ(this.hostElement,[M])}};
_.P.onServiceRequestCompleted_=function(M,z){if(this.data&&(M=z.actions)){z=0;for(var J=M.length;z<J;z++){var R=_.G(M[z],_.mkQ);if(!R)break;if((R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||R.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&R.continuationItems&&this.data.items){var D=this.data.items.length-1;this.data.items[D].continuationItemRenderer&&(R=["data.items",D,1].concat(R.continuationItems),this.splice.apply(this,R))}}}};
Wr.prototype.onServiceRequestCompleted_=Wr.prototype.onServiceRequestCompleted_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Wr.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Wr.prototype,"data",void 0);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],Wr.prototype,"onServiceRequestCompleted_",null);_.u([_.cU({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Wr);
_.kS()(Wr,"yt-multi-page-menu-section-renderer",function(){if(rUw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;b9G===void 0&&(b9G=document.createElement("template"));var R=b9G;J.call(z,R.content.cloneNode(!0),M.content.firstChild);rUw=M}M=rUw;return M},{allowedProps:["data"],
mode:2});var MKu;var zWs;var a1=function(){return _.g.apply(this,arguments)||this};
_.w(a1,_.g);a1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.rX.Object.defineProperties(a1.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)==null?0:this.data.progress*100}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],a1.prototype,"data",void 0);_.u([_.F("data.progress"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],a1.prototype,"showProgressBar",null);
_.u([_.F("data.progress"),_.W("design:type",Number),_.W("design:paramtypes",[])],a1.prototype,"progress",null);_.u([_.cU({is:"yt-flow-header-renderer",disableElementRegistration:!0})],a1);
_.d(a1,"yt-flow-header-renderer",function(){if(zWs===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;MKu===void 0&&(MKu=document.createElement("template"));var R=MKu;J.call(z,R.content.cloneNode(!0),M.content.firstChild);zWs=M}M=zWs;return M},{mode:2});var JBw;var RWl;var Vx=function(){return _.g.apply(this,arguments)||this};
_.w(Vx,_.g);Vx.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Vx.prototype,"data",void 0);_.u([_.cU({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Vx);
_.d(Vx,"yt-post-confirmation-flow-step-renderer",function(){if(RWl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;JBw===void 0&&(JBw=document.createElement("template"));var R=JBw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);RWl=M}M=RWl;return M},{mode:2});var DVN;var N2d;var E6=function(){return _.g.apply(this,arguments)||this};
_.w(E6,_.g);
E6.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],E6.prototype,"data",void 0);_.u([_.cU({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],E6);
_.d(E6,"yt-refund-confirmation-flow-step-renderer",function(){if(N2d===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;DVN===void 0&&(DVN=document.createElement("template"));var R=DVN;J.call(z,R.content.cloneNode(!0),M.content.firstChild);N2d=M}M=N2d;return M},{mode:2});_.RO($3w);_.RO(uww);var qVt=_.gZ({avatarViewModel:_.dj});_.RO(Wxl);var e8=_.gZ({commentInteractionViewModel:uww,sharedSubscriptionViewModel:Wxl,buttonViewModel:_.lT,horizontalShelfViewModel:_.WB}),PLl=_.lP(AJi);_.RO(VNt);_.RO(Ezi);_.RO(fEd);_.RO(LxN);_.RO(AJi);var idw=_.gZ({profileIdentityInfoViewModel:_.iqw,profileInfoViewModel:AJi});_.RO(Cam);var S1w=_.Mf(function(M){var z=M.data;var J=function(){return z().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.T("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.T(_.t_,{data:function(){return z().profileIdentityInfo}},{profileIdentityInfoViewModel:function(R){return _.T(_.Dcs,{data:R.data,
hideDivider:J,isChannelInfoCard:J})},
profileInfoViewModel:PLl}),_.T(_.t_,{data:function(){return z().profileInfo}},{profileIdentityInfoViewModel:_.Dcs,
profileInfoViewModel:PLl}))},"Lg"),ZzN=_.U("web_enable_sink_profile_card_view_model")?S1w:Cam,kuw=_.U("web_enable_sink_profile_card_view_model")?S1w:_.lP(Cam);
S1w.idomCompat=!0;_.U("web_enable_sink_profile_card_view_model")?_.N7(kuw,"yt-profile-card-view-model",{props:{data:_.zn}}):_.Il(ZzN,"yt-profile-card-view-model",{propNames:["data"]});var fb=function(){var M=_.g.apply(this,arguments)||this;M.enableFocusFix=_.U("music_web_enable_focus_on_setting_menu_fix")&&_.cW("IS_MOBILE_WEB",!1);M.covered=!1;M.hideMenu=!1;M.isCommentNotificationOnProfileCard=!1;M.scrolledByTouch=!1;M.disableBackdropFilter=_.U("web_disable_backdrop_filter");M.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return M};
_.w(fb,_.g);_.P=fb.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.P.ready=function(){var M=this;this.JSC$20035_containerElement.addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.P.attributeChanged=function(M,z){M==="menu-style"&&_.S9(this.hostElement,"yt-multi-page-menu-closed-action",[z])};
_.P.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ou(this,this.focusOnStampFinished))};
_.P.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ou(this,this.focusOnStampFinished))};
_.P.reset=function(){this.closeJobId&&(_.no.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.P.focusOnStampFinished=function(M){M.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ou(this,this.focusOnStampFinished)),this.doFocus())};
_.P.doFocus=function(){var M=_.hYu(this.sectionsElement);M.length&&M[0].focus()};
_.P.computeMenuStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.P.computeIsCommentNotificationOnProfileCard=function(M){return _.U("enable_profile_cards_on_comments")&&M.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.P.computeHideMenu=function(M,z){return M||!(!z||!z.showLoadingSpinner)};
_.P.onPopupClosed=function(){this.isPopUpOpen=!1;_.S9(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.P.onPopupOpened=function(M,z){this.isPopUpOpen=!0;z.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Pv(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Nv({type:"CHANNEL_REPORT_RESET"})))};
_.P.onYtNavigate=function(M,z){this.shouldCloseOnNavigateEvent(z.endpoint)&&_.S9(this.hostElement,"yt-close-all-popups-action")};
_.P.handleEndpoint=function(M){M=_.G(M,_.$B);!this.isCommentNotificationOnProfileCard&&M&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20035_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.P.handleActions=function(M){for(var z=0,J=M.length;z<J;z++){var R=_.G(M[z],YEu);R&&this.handleGetMultiPageMenuAction(R);(R=_.G(M[z],_.mkQ))&&this.handleAppendContinuationItemsAction(R)}};
_.P.onServiceRequestSentOrCompleted=function(M,z){M.detail&&M.detail.endpoint&&this.handleEndpoint(M.detail.endpoint);z.actions&&this.handleActions(z.actions)};
_.P.handleGetMultiPageMenuAction=function(M){var z=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.SN(this.submenuElement).appendChild(z);(M=M.menu.multiPageMenuRenderer)&&this.logSubmenu(M);z.data=M;z.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.P.handleAppendContinuationItemsAction=function(M){if(this.data&&M.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&M.continuationItems&&this.data.sections){var z=this.data.sections.length-1;this.data.sections[z].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),z--);if(this.data.sections[z].multiPageMenuNotificationSectionRenderer&&M.continuationItems){M=_.S(M==null?void 0:M.continuationItems);for(var J=M.next();!J.done;J=M.next())if(J=J.value,_.G(J,z1w)){var R=
void 0,D=void 0,N=void 0,Z=void 0,B=void 0;((R=this)==null?0:(D=R.data)==null?0:(N=D.sections)==null?0:(Z=N[z])==null?0:(B=Z.multiPageMenuNotificationSectionRenderer)==null?0:B.items)&&this.push("data.sections."+z+".multiPageMenuNotificationSectionRenderer.items",J)}else if(_.G(J,_.QI$)||_.G(J,_.z0))this.push("data.sections",J),z++}}};
_.P.logSubmenu=function(M){if(!_.U("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var z=this.ytRendererBehavior.getScreenLayer(),J=_.y5(z),R=_.hu(z);if((M=M.trackingParams)&&J&&R){var D=_.pe(M);_.U("combine_ve_grafts")?_.Gm().graftServerVe(M,R,z):_.qs(J,R,D)}}};
_.P.emptySubmenuContainer=function(){for(var M=_.SN(this.submenuElement);M.firstChild;)M.removeChild(M.firstChild)};
_.P.onMenuBackTap=function(M){_.Pv(this.hostElement,"yt-submenu-closed");M.stopPropagation()};
_.P.onSubmenuClosed=function(M){_.b7(M)!==this.hostElement&&(this.covered=!1,_.Pv(this.hostElement,"yt-refit"),M.stopPropagation())};
_.P.onRetrieveLocation=function(M,z){z.hasComments&&(z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),M.stopPropagation())};
_.P.shouldCloseOnNavigateEvent=function(M){if(!M)return!0;if(_.G(M,_.Gdu)||_.G(M,_.ww$)||_.G(M,_.v7a)||_.G(M,_.af))return!1;var z;return((z=_.G(M==null?void 0:M.commandMetadata,_.X9))==null?0:z.ignoreNavigation)?!1:!0};
_.P.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.P.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.P.refitAfterRender=function(){var M=this;_.C4(this,function(){_.Pv(M.hostElement,"yt-refit")})};
fb.prototype.refitAfterRender=fb.prototype.refitAfterRender;fb.prototype.onRetrieveLocation=fb.prototype.onRetrieveLocation;fb.prototype.onSubmenuClosed=fb.prototype.onSubmenuClosed;fb.prototype.onMenuBackTap=fb.prototype.onMenuBackTap;fb.prototype.onServiceRequestSentOrCompleted=fb.prototype.onServiceRequestSentOrCompleted;fb.prototype.onYtNavigate=fb.prototype.onYtNavigate;fb.prototype.onPopupOpened=fb.prototype.onPopupOpened;fb.prototype.onPopupClosed=fb.prototype.onPopupClosed;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],fb.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],fb.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],fb.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],fb.prototype,"enableFocusFix",void 0);_.u([_.Y(),_.W("design:type",Object)],fb.prototype,"covered",void 0);_.u([_.Y({computed:"computeHideMenu(covered, data)"}),_.W("design:type",Object)],fb.prototype,"hideMenu",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.W("design:type",String)],fb.prototype,"menuStyle",void 0);
_.u([_.Y({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.W("design:type",Object)],fb.prototype,"isCommentNotificationOnProfileCard",void 0);_.u([_.Y(),_.W("design:type",Boolean)],fb.prototype,"isPopUpOpen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],fb.prototype,"scrolledByTouch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],fb.prototype,"disableBackdropFilter",void 0);
_.u([_.Qc("#sections"),_.W("design:type",HTMLElement)],fb.prototype,"sectionsElement",void 0);_.u([_.Qc("#spinner"),_.W("design:type",HTMLElement)],fb.prototype,"spinnerElement",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],fb.prototype,"headerElement",void 0);_.u([_.Qc("#container"),_.W("design:type",HTMLElement)],fb.prototype,"JSC$20035_containerElement",void 0);_.u([_.Qc("#submenu"),_.W("design:type",HTMLElement)],fb.prototype,"submenuElement",void 0);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fb.prototype,"onPopupClosed",null);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],fb.prototype,"onPopupOpened",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],fb.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-service-request-completed"),_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],fb.prototype,"onServiceRequestSentOrCompleted",null);_.u([_.Xw("yt-menu-back-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fb.prototype,"onMenuBackTap",null);
_.u([_.Xw("yt-submenu-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fb.prototype,"onSubmenuClosed",null);_.u([_.Xw("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],fb.prototype,"onRetrieveLocation",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fb.prototype,"refitAfterRender",null);
_.u([_.c({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],fb);
_.d(fb,"ytd-multi-page-menu-renderer",function(){if(dLi!==void 0)return dLi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dLi=M},{mode:1});var B2u;var Lb=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return M};
_.w(Lb,_.g);_.P=Lb.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.computeAccessibility_=function(M){return this.get("accessibility.accessibilityData",M)||null};
_.P.onTap=function(){var M=_.ZL(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(M&&M.length===1&&M[0])_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var z;if((z=this.data)==null?0:z.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var J;((J=this.data)==null?0:J.menuRequest)&&_.kQ(this.hostElement,[this.data.menuRequest])}}};
_.P.handleTopbarMenuClosedAction=function(M){var z,J;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(M)===((z=this.data)==null?void 0:(J=z.icon)==null?void 0:J.iconType)&&this.toggleIconState(!1)};
_.P.toggleIconState=function(M){_.U("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=M)};
_.P.handleUpdateTopbarAvatarAction=function(M){var z;M=(z=_.G(M,GNl))==null?void 0:z.avatarUrl;var J,R;z=(J=this.data)==null?void 0:(R=J.avatar)==null?void 0:R.thumbnails;M&&z&&(J={thumbnails:[Object.assign({},z[0],{url:M})]},this.set("data.avatar",J))};
_.rX.Object.defineProperties(Lb.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.SN(this.hostElement).querySelector("#button")}}});
Lb.prototype.onTap=Lb.prototype.onTap;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Lb.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],Lb.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.ReQ.YtButtonBehavior),_.W("design:type",Object)],Lb.prototype,"ytButtonBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Lb.prototype,"data",void 0);
_.u([_.Qc("yt-icon-button#button"),_.W("design:type",Object)],Lb.prototype,"iconButton",void 0);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Lb.prototype,"onTap",null);_.u([_.c({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Lb);
_.d(Lb,"ytd-topbar-menu-button-renderer",function(){if(B2u!==void 0)return B2u;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return B2u=M},{mode:1});var Ozi;var Aq=function(){return _.g.apply(this,arguments)||this};
_.w(Aq,_.g);Aq.prototype.getSelected=function(){return this.reasons.selected};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Aq.prototype,"data",void 0);_.u([_.Qc("#reasons"),_.W("design:type",Object)],Aq.prototype,"reasons",void 0);_.u([_.c({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Aq);
_.d(Aq,"ytd-ad-feedback-content",function(){if(Ozi!==void 0)return Ozi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Ozi=M},{mode:1});var T2l;var i8=function(){return _.g.apply(this,arguments)||this};
_.w(i8,_.g);_.P=i8.prototype;_.P.onPopupOpened=function(){_.S9(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.P.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
_.P.computeCancelButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.cancelLabel}};
_.P.onConfirmTap=function(){var M=this.content.getSelected();M!==void 0&&(M=this.data.reasons[M].endpoint)&&(_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}}),_.S9(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.P.sendFeedbackSubmitToastAction=function(){var M;(M=this.data)!=null&&M.completionMessage&&_.S9(this.hostElement,"yt-open-popup-action",[_.zh(this.data.completionMessage),this])};
_.P.onCancelTap=function(){_.S9(this.hostElement,"yt-close-popup-action")};
i8.prototype.onPopupOpened=i8.prototype.onPopupOpened;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],i8.prototype,"data",void 0);_.u([_.Qc("#content"),_.W("design:type",Object)],i8.prototype,"content",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],i8.prototype,"onPopupOpened",null);
_.u([_.c({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],i8);
_.d(i8,"ytd-ad-feedback-renderer",function(){if(T2l!==void 0)return T2l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return T2l=M},{mode:1});var ImN;var Cb=function(){return _.g.apply(this,arguments)||this};
_.w(Cb,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Cb.prototype,"data",void 0);_.u([_.c({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Cb);
_.d(Cb,"ytd-ad-info-dialog-content",function(){if(ImN!==void 0)return ImN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ImN=M},{mode:1});var obw;var b8=function(){return _.g.apply(this,arguments)||this};
_.w(b8,_.g);b8.prototype.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
b8.prototype.onConfirmTap=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
b8.prototype.computeShouldShowTitle=function(){var M;return!((M=this.data)==null||!M.title)};
b8.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
b8.prototype.onPopupClosed=b8.prototype.onPopupClosed;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],b8.prototype,"data",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],b8.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],b8);
_.d(b8,"ytd-ad-info-dialog-renderer",function(){if(obw!==void 0)return obw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return obw=M},{mode:1});var Xoc;var rK=function(){var M=_.g.apply(this,arguments)||this;M.actionButtonClass="action-button";M.dismissButtonId="dismiss-button";M.dialogDismiss=!0;return M};
_.w(rK,_.g);_.P=rK.prototype;_.P.computeInPlayer=function(M){return(M==null?void 0:M.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.P.computedLogo=function(){var M,z;return this.isDarkTheme()?(M=this.data)==null?void 0:M.logoDark:(z=this.data)==null?void 0:z.logo};
_.P.computedHeaderImage=function(){var M,z;return this.isDarkTheme()?(M=this.data)==null?void 0:M.headerImageDark:(z=this.data)==null?void 0:z.headerImage};
_.P.computeLogoIconId=function(){var M,z,J,R=(M=this.computedLogo())==null?void 0:(z=M.sources)==null?void 0:(J=z[0])==null?void 0:J.height;return R&&R%31===0?"logo-icon-with-padding":"logo-icon"};
_.P.computeLogoIconHeight=function(){var M,z,J,R=(M=this.computedLogo())==null?void 0:(z=M.sources)==null?void 0:(J=z[0])==null?void 0:J.height;return R&&R%31===0?"31":"24"};
_.P.onPopupClosed=function(){_.JF().resolve(_.UH).dispose()};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.P.onShow=function(){this.inPlayer&&_.QO(6)};
_.P.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++){var z=_.G(this.data.impressionEndpoints[M],_.dv);z&&this.ytComponentBehavior.resolveCommand(z)}};
_.P.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.S9(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.rX.Object.defineProperties(rK.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var M,z;return!((M=this.data)==null||!M.headerImageDark)&&!((z=this.data)==null||!z.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.secondaryButton)}}});
rK.prototype.onPopupClosed=rK.prototype.onPopupClosed;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.CZ.YtVisibilityBehavior),_.W("design:type",Object)],rK.prototype,"ytVisibilityBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rK.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],rK.prototype,"actionButtonClass",void 0);_.u([_.Y(),_.W("design:type",Object)],rK.prototype,"dismissButtonId",void 0);_.u([_.Y(),_.W("design:type",Object)],rK.prototype,"dialogDismiss",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rK.prototype,"hasHeaderImage",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rK.prototype,"hasPremiumButton",null);
_.u([_.Y({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.W("design:type",Boolean)],rK.prototype,"inPlayer",void 0);_.u([_.Qc("#dismiss-button"),_.W("design:type",HTMLElement)],rK.prototype,"dismissButton",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rK.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],rK);
_.d(rK,"ytd-enforcement-message-view-model",function(){if(Xoc!==void 0)return Xoc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="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" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Xoc=M},{mode:1});var lmm;var eW5;var MQ=function(){var M=_.g.apply(this,arguments)||this;M.TEST_ONLY={immediateValidation:function(){M.immediateValidation()},
onValidationResponse:function(z){M.onValidationResponse(z)},
onGenerateHandleFromNameResponse:function(z){M.onGenerateHandleFromNameResponse(z)}};
return M};
_.w(MQ,_.g);_.P=MQ.prototype;_.P.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.P.validate=function(){this.immediateValidation()};
_.P.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.P.setHandleInputValue=function(M){this.handleDir=this.getHandleDir(M);this.handleInput.value=M;this.validationState={status:"PENDING"};this.immediateValidation()};
_.P.getHandleDir=function(M){var z=M===""&&!1;return(z=_.xp$.test.call(_.xp$,M))?"rtl":"ltr"};
_.P.onDataChanged=function(){var M,z;this.handleDir=this.getHandleDir((z=(M=this.data)==null?void 0:M.handle)!=null?z:"");var J;this.validationState=((J=this.data)==null?0:J.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var R;((R=this.data)==null?0:R.validateOnInit)&&this.immediateValidation()};
_.P.stopPropagation=function(M){M.stopPropagation()};
_.P.onInput=function(){var M;this.handleDir=this.getHandleDir((M=this.handleInput.value)!=null?M:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.P.onFocusout=function(M){this.handleInput.contains(M.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.P.delayedValidation=function(){var M,z;this.debouncedValidation((z=(M=this.data)==null?void 0:M.validationDelayMs)!=null?z:1E3)};
_.P.immediateValidation=function(){this.debouncedValidation(0)};
_.P.debouncedValidation=function(M){var z=this;_.Vc(this,"debouncedValidation",function(){var J,R=z.staticValidation((J=z.handleInput.value)!=null?J:"");if(R!==void 0)z.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:R};else{var D;if((D=z.data)!=null&&D.validateChannelHandleCommand){z.validationState={status:"LOADING"};var N;z.ytComponentBehavior.resolveCommand(z.data.validateChannelHandleCommand,{form:{handle:(N=z.handleInput.value)!=null?N:""},commandController:{onSuccess:function(Z,
B){z.onValidationResponse(B)},
onServerError:function(Z,B){z.onValidationServerError(B)}}})}else z.handleUnexpectedValidationError(new _.xN("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",z.data))}},M)};
_.P.staticValidation=function(M){var z;if(((z=this.data)==null?void 0:z.channelHandleStaticValidationParams)!==void 0){z=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(M)&&z.validValueRegexpErrorMessage!==void 0)return z.validValueRegexpErrorMessage;if(z.minLength!==void 0&&M.length<z.minLength&&z.minLengthErrorMessage!==void 0)return z.minLengthErrorMessage;if(z.maxLength!==void 0&&M.length>z.maxLength&&z.maxLengthErrorMessage!==void 0)return z.maxLengthErrorMessage}};
_.P.onValidationResponse=function(M){var z=_.G(M.result,wad);z===void 0?this.handleUnexpectedValidationError(new _.xN("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",M)):this.handleValidationResultRenderer(z)};
_.P.onValidationServerError=function(M){this.handleUnexpectedValidationError(new _.xN("ValidateChannelHandle request failed.",M))};
_.P.handleValidationResultRenderer=function(M){if(M.handle===void 0)this.handleUnexpectedValidationError(new _.xN("ChannelHandleValidationResultRenderer does not contain handle.",M));else if(M.handle===this.handleInput.value)switch(M.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:M.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:M.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.xN("Unrecognized ChannelHandleValidationResult",M));break;default:_.uJ(M.result)}};
_.P.handleUnexpectedValidationError=function(M){var z;this.validationState={status:"UNKNOWN",handle:(z=this.handleInput.value)!=null?z:""};_.yA(M)};
_.P.stopEventPropagation=function(M){M.stopPropagation()};
_.P.updateHandleOnChannelNameInputChange=function(M){if(!this.wasEdited){var z,J;this.debouncedGenerateHandleFromName(M,(J=(z=this.data)==null?void 0:z.validationDelayMs)!=null?J:1E3)}};
_.P.debouncedGenerateHandleFromName=function(M,z){var J=this;_.Vc(this,"debouncedGenerateHandleFromName",function(){var R;(R=J.data)!=null&&R.validateChannelHandleCommand?J.ytComponentBehavior.resolveCommand(J.data.validateChannelHandleCommand,{form:{name:M},commandController:{onSuccess:function(D,N){J.onGenerateHandleFromNameResponse(N)},
onServerError:function(D,N){_.yA(new _.xN("Error calling GenerateHandleFromName",N))}}}):_.yA(new _.xN("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",J.data))},z)};
_.P.onGenerateHandleFromNameResponse=function(M){this.wasEdited||((M=_.G(M.result,xnu))?this.setHandleInputValue(M.handle):_.yA(new _.xN("Invalid results when generate handle from name")))};
_.rX.Object.defineProperties(MQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M;if(M=this.validationState)M=this.validationState,M=M.status==="OK"||M.status==="UNKNOWN";if(M)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.validationState)==null?void 0:M.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var M,z=(M=this.channelHandleEntity)==null?void 0:M.handleEdit;this.handleDir=this.getHandleDir(z!=null?z:"");return z}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var M,z;if(((M=this.data)==null?void 0:(z=M.channelHandleStaticValidationParams)==null?void 0:z.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
MQ.prototype.stopEventPropagation=MQ.prototype.stopEventPropagation;MQ.prototype.onDataChanged=MQ.prototype.onDataChanged;MQ.prototype.applyHandleEdit=MQ.prototype.applyHandleEdit;MQ.prototype.onValueChanged=MQ.prototype.onValueChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],MQ.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],MQ.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],MQ.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],MQ.prototype,"wasEdited",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],MQ.prototype,"handleDir",void 0);_.u([_.Qc("#handle-input"),_.W("design:type",Object)],MQ.prototype,"handleInput",void 0);_.u([_.Y(),_.F("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],MQ.prototype,"value",null);
_.u([_.la("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MQ.prototype,"onValueChanged",null);_.u([_.F("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],MQ.prototype,"errorIndicator",null);_.u([_.Y({reflectToAttribute:!0}),_.F("errorIndicator"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MQ.prototype,"borderErrorIndicator",null);
_.u([_.Y({selectorArgs:["data.channelHandleEntityKey"],selector:function(M,z){return _.Is(M.entities,"channelHandle",z)}}),
_.W("design:type",Object)],MQ.prototype,"channelHandleEntity",void 0);_.u([_.F("channelHandleEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],MQ.prototype,"handleEdit",null);_.u([_.la("handleEdit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MQ.prototype,"applyHandleEdit",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MQ.prototype,"onDataChanged",null);
_.u([_.F("data.channelHandleStaticValidationParams.validValueRegexp"),_.W("design:type",Object),_.W("design:paramtypes",[])],MQ.prototype,"validValueRegexp",null);_.u([_.Xw("yt-service-request-sent"),_.Xw("yt-service-request-completed"),_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],MQ.prototype,"stopEventPropagation",null);_.u([_.c({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],MQ);
_.d(MQ,"ytd-channel-handle-input-renderer",function(){if(eW5!==void 0)return eW5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return eW5=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var z7=function(){var M=_.g.apply(this,arguments)||this;M.data=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!1;M.enableNewChannelCreationOnIdForAll=_.U("enable_new_channel_creation_for_id4all");M.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};M.testOnly={setErrorMessage:function(z){M.resetErrorState();
M.setErrorState(z)}};
return M};
_.w(z7,_.g);_.P=z7.prototype;_.P.created=function(){this.logScreenVe()};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var M;((M=this.zeroStepErrorMessageEntity)==null?0:M.value)&&this.set("errorMessage",_.id(this.zeroStepErrorMessageEntity.value))};
_.P.onCreateTap=function(){var M=this;if(this.data&&this.data.channelCreationEndpoint){var z,J;if(!((z=this.data.createChannelButton)==null?0:(J=z.buttonRenderer)==null?0:J.isDisabled)){var R;if((R=this.nameInput)!=null&&R.value){this.setLoadingState();var D,N;z=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(D=this.handleInput)==null?void 0:D.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((N=this.handleInput)==null?void 0:N.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:z,commandController:{onSuccess:function(Z,B){M.onChannelCreationEndpointSuccess(B);M.obakeImageSource&&_.gP("channelCreatedWithObakeImage",{imageSourceType:M.obakeImageSource})},
onServerError:function(){M.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.P.endpointRequiresServiceRequestAction=function(M){return!!_.G(M,_.yq)||!!_.G(M,GNl)};
_.P.isNavigateAction=function(M){var z;return!!_.G(M,_.kW)||!!_.G((z=_.G(M,paw))==null?void 0:z.command,_.kW)};
_.P.isPlaylistAction=function(M){return!!_.G(M,_.uU)||!!_.G(M,_.fM)};
_.P.onChannelCreationEndpointSuccess=function(M){if(M.createChannelError){var z;this.setErrorState((z=M.createChannelError)==null?void 0:z.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.U("enable_secondary_channel_creation_form")&&M.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(M.navigationEndpoint);if(M.actions){z=_.S(M.actions);for(var J=z.next();!J.done;J=z.next())if(J=J.value,this.endpointRequiresServiceRequestAction(J)&&this.ytComponentBehavior.resolveCommand(J),
this.isNavigateAction(J)){var R=void 0;J=_.G((R=_.G(J,paw))==null?void 0:R.command,_.kW);R=void 0;this.isPlaylistAction((R=J)==null?void 0:R.endpoint)&&(_.S9(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),R=void 0,this.ytComponentBehavior.resolveCommand((R=J)==null?void 0:R.endpoint))}}M.actions&&M.actions.some(function(D){var N;return _.G(D,_.kW)||_.G((N=_.G(D,paw))==null?void 0:N.command,_.kW)})||_.S9(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.P.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.P.onCancelTap=function(){var M,z,J;if(!((M=this.data)==null?0:(z=M.cancelButton)==null?0:(J=z.buttonRenderer)==null?0:J.isDisabled)){var R,D,N;M=(R=this.data)==null?void 0:(D=R.cancelButton)==null?void 0:(N=D.buttonRenderer)==null?void 0:N.command;if(!M||!_.G(M,_.pkn)){var Z;this.nameInput&&((Z=this.data)==null?0:Z.name)&&(this.nameInput.value=this.data.name);var B;this.handleInput&&((B=this.data)==null?0:B.channelHandleInput)&&(this.handleInput.data=_.G(this.data.channelHandleInput,tEw));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.P.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.P.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.P.onClearProfilePhotoTap=function(){var M,z,J;((M=this.data)==null?0:(z=M.clearProfilePhotoButton)==null?0:(J=z.buttonRenderer)==null?0:J.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.P.onEditAvatarTap=function(){var M,z,J;((M=this.data)==null?0:(z=M.editAvatarButton)==null?0:(J=z.buttonRenderer)==null?0:J.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.P.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.P.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var M;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((M=this.data)==null?0:M.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.P.setErrorState=function(M){this.resetErrorState();if(M)this.set("errorMessage",M);else{var z;if((z=this.zeroStepErrorMessageEntity)==null?0:z.value)this.set("errorMessage",_.id(this.zeroStepErrorMessageEntity.value));else{var J;((J=this.data)==null?0:J.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.P.fetchImageBlobWithAlr=function(M,z){z=z===void 0?5:z;var J=this,R,D,N,Z,B;return _.k(function(O){switch(O.nextAddress){case 1:return O.yield(fetch(M,{method:"GET",mode:"cors"}),2);case 2:R=O.yieldResult;if(R.ok){O.jumpTo(3);break}if(z===0)throw Error();D=J.addJitter(Math.pow(2,5-z));return O.yield(new Promise(function(X){setTimeout(X,D*1E3)}),4);
case 4:return O.return(J.fetchImageBlobWithAlr(M,z-1));case 3:if(!R.headers.get("content-type").split(";").some(function(X){return X.trim()==="text/plain"})){O.jumpTo(5);
break}N=J;Z=N.fetchImageBlobWithAlr;return O.yield(R.text(),6);case 6:return O.return(Z.call(N,O.yieldResult,z-1));case 5:return O.yield(R.blob(),7);case 7:return B=O.yieldResult,O.return(B)}})};
_.P.addJitter=function(M){var z=M*.3*Math.random();Math.random()>.5&&(z*=-1);return M+z};
_.P.openProfilePicturePicker=function(){var M=this,z,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){z=M.data.scottyUploadUrl;if(!z)return Z.return();J=document.documentElement.hasAttribute("dark");R=document.body.style.colorScheme;J&&(document.body.style.colorScheme="dark");D=Ykd(mDl(Fvw(veN(J?"dark":"light")),function(B){var O,X,l,e,Q;return _.k(function(v){if(v.nextAddress==1)return O=_.fQ(Eei(new V2(B.photoUrl,!1)).build(),"alr","yes"),M.obakeImageSource=M.pictureChangeSourceToObakeImageSourceType(B.photoSource),
_.Io(v,2),M.setLoadingState(),v.yield(M.fetchImageBlobWithAlr(O),4);if(v.nextAddress!=2)return X=v.yieldResult,l=new FileReader,l.addEventListener("load",function(){var x,m,y,H,q,b;return _.k(function(V){if(V.nextAddress==1){if(X.size>15728640)return M.setErrorState((x=M.data)==null?void 0:x.imageSizeErrorMessage),_.yA(Error("ml")),V.return();if(!l.result)return M.setErrorState((m=M.data)==null?void 0:m.genericImageLoadErrorMessage),_.yA(Error("nl")),V.return();y=l.result;_.Io(V,2);return V.yield(bdu(X,
z),4)}if(V.nextAddress!=2)return H=V.yieldResult,M.handleImageUpdatedAction(y,H),M.resetErrorState(),_.ab(V,0);q=_.Qa(V);M.setErrorState((b=M.data)==null?void 0:b.uploadErrorMessage);if(q instanceof Error)_.nc(q);else{var E=new _.xN(JSON.stringify(q));_.nc(E)}_.UI(V)})}),l.readAsDataURL(X),_.ab(v,0);
e=_.Qa(v);M.setErrorState((Q=M.data)==null?void 0:Q.genericImageLoadErrorMessage);e instanceof Error?_.nc(e):_.hL(new _.xN(JSON.stringify(e)));_.UI(v)})}),function(){M.hideContainer=!1;
document.body.style.colorScheme=R});
_.Io(Z,2);return Z.yield(D.openPicker(),4)}if(Z.nextAddress!=2)return _.ab(Z,0);_.Qa(Z);M.setErrorState((N=M.data)==null?void 0:N.selectImageErrorMessage);_.UI(Z)})};
_.P.pictureChangeSourceToObakeImageSourceType=function(M){switch(M){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.P.logScreenVe=function(){_.Xx(_.Gm(),124448)};
_.P.graftServerVe=function(){var M=_.hu(),z,J,R=(z=this.data)==null?void 0:(J=z.loggingDirectives)==null?void 0:J.trackingParams;R&&M&&(this.channelCreationFormVe=_.Gm().graftServerVe(R,M),M={visualElement:this.channelCreationFormVe},_.UU().reportShown(M))};
_.P.isNameChanged=function(M){var z;return((z=this.data)==null?void 0:z.name)!==M};
_.P.isHandleChanged=function(M){var z,J=_.G((z=this.data)==null?void 0:z.channelHandleInput,tEw);return J&&M?J.handle!==M:!1};
_.P.handleImageUpdatedAction=function(M,z){this.hideContainer=!1;this.previewDataUrl=M;this.encryptedBlobId=z};
_.P.handleImageSelectionErrorAction=function(M){this.hideContainer=!1;this.setErrorState(M)};
_.P.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.P.showContainer=function(){this.hideContainer=!1};
_.P.maybeWipeZeroStepErrorMessage=function(){var M,z=(M=this.data)==null?void 0:M.zeroStepErrorMessageEntityKey,J;z&&((J=this.zeroStepErrorMessageEntity)==null?0:J.value)&&this.ytdReduxBehavior.dispatch(_.pf("stringEntity",z,{key:z,value:""}))};
_.rX.Object.defineProperties(z7.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var M;return((M=this.photoThumbnail)==null?0:M.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.descriptionInfo}}});
z7.prototype.dataChanged=z7.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],z7.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],z7.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],z7.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],z7.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],z7.prototype,"errorMessage",void 0);
_.u([_.Y(),_.W("design:type",Object)],z7.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",String)],z7.prototype,"previewDataUrl",void 0);_.u([_.Y(),_.W("design:type",Number)],z7.prototype,"obakeImageSource",void 0);_.u([_.Y(),_.W("design:type",Object)],z7.prototype,"hideContainer",void 0);_.u([_.Qc("#title-input"),_.W("design:type",Object)],z7.prototype,"nameInput",void 0);_.u([_.Qc("#handle-input"),_.W("design:type",Object)],z7.prototype,"handleInput",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],z7.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.u([_.Y({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.$n}),_.W("design:type",Object)],z7.prototype,"zeroStepErrorMessageEntity",void 0);_.u([_.F("data","data.isDefaultProfilePhoto","previewDataUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],z7.prototype,"photoThumbnail",null);
_.u([_.F("data","data.isDefaultProfilePhoto","photoThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],z7.prototype,"userSetPhotoThumbnailUrl",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z7.prototype,"hideProfilePhotoButtonLayer",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z7.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.u([_.wH("data","zeroStepErrorMessageEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z7.prototype,"dataChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.descriptionInfo","zeroStepErrorMessageEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],z7.prototype,"description",null);_.u([_.c({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],z7);
_.d(z7,"ytd-channel-creation-dialog-renderer",function(){if(lmm!==void 0)return lmm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return lmm=M},{mode:1});var QPd;var JR=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;M.isDisabled=!1;return M};
_.w(JR,_.g);JR.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
JR.prototype.updateDisabled=function(){var M;this.isDisabled=this.isLoading||((M=this.handleInput)==null?void 0:M.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
JR.prototype.onSaveClick=function(){var M=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var z;((z=this.data)==null?void 0:z.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 J;if((J=M.data)==null?0:J.nextEndpoint){var R;M.ytComponentBehavior.resolveCommand((R=M.data)==null?void 0:R.nextEndpoint)}else M.isLoading=
!1,M.closeDialog()},
onServerError:function(){M.isLoading=!1;M.handleInput.validate();var J;M.errorMessage=(J=M.data)==null?void 0:J.errorMessage}}}))}};
JR.prototype.closeDialog=function(){_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
JR.prototype.updateDisabled=JR.prototype.updateDisabled;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],JR.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],JR.prototype,"data",void 0);_.u([_.Qc("#handle-input"),_.W("design:type",Object)],JR.prototype,"handleInput",void 0);_.u([_.la("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JR.prototype,"updateDisabled",null);
_.u([_.c({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],JR);
_.d(JR,"ytd-channel-handle-edit-dialog-renderer",function(){if(QPd!==void 0)return QPd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return QPd=M},{mode:1});var UVv;var R0=function(){return _.g.apply(this,arguments)||this};
_.w(R0,_.g);R0.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],R0.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],R0);
_.d(R0,"ytd-channel-switcher-footer-renderer",function(){if(UVv!==void 0)return UVv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return UVv=M},{mode:1});var vbi;var Gut;var DY=function(){return _.g.apply(this,arguments)||this};
_.w(DY,_.g);DY.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
DY.prototype.onIronChange=DY.prototype.onIronChange;_.u([_.Y(),_.W("design:type",Object)],DY.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Function)],DY.prototype,"onDontAskAgainChanged",void 0);_.u([_.Qc("#checkbox"),_.W("design:type",Object)],DY.prototype,"checkbox",void 0);_.u([_.Xw("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DY.prototype,"onIronChange",null);
_.u([_.c({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],DY);
_.d(DY,"ytd-identity-prompt-footer-renderer",function(){if(Gut!==void 0)return Gut;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Gut=M},{mode:1});var NQ=function(){var M=_.g.apply(this,arguments)||this;M.dontAskAgain=!1;M.showPopup=!1;M.boundDontAskAgainChanged=function(z){M.dontAskAgainChanged(z)};
M.boundOnAccountItemTap=function(z){M.onAccountItemTap(z)};
return M};
_.w(NQ,_.g);_.P=NQ.prototype;
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.P.ready=function(){var M=this;_.SN(this.hostElement).querySelector("#container").addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.P.dontAskAgainChanged=function(M){this.dontAskAgain=M};
_.P.onAccountItemTap=function(M){if(M){var z={};this.dontAskAgain&&(z={dont_ask_again:this.dontAskAgain});_.EA(M,z)}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.P.redirectOnlyAccount=function(M){M.sections&&M.sections.length>0&&(M=_.G(M.sections[0],_.QNk),(M==null?0:M.contents)&&(M==null?void 0:M.contents.length)<=1?(M=_.fh(window.location.href),(M==null?0:M.next)&&_.vQ3(M.next)?_.EA(M.next):_.EA("/")):this.showPopup=!0)};
NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],NQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Object)],NQ.prototype,"dontAskAgain",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],NQ.prototype,"showPopup",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Object)],NQ.prototype,"boundDontAskAgainChanged",void 0);_.u([_.Y({reflectToAttribute:!1}),_.W("design:type",Object)],NQ.prototype,"boundOnAccountItemTap",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NQ.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],NQ);
_.d(NQ,"ytd-channel-switcher-renderer",function(){if(vbi!==void 0)return vbi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vbi=M},{mode:1});var wol;var Pz=function(){return _.g.apply(this,arguments)||this};
_.w(Pz,_.g);_.rX.Object.defineProperties(Pz.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.u([_.Y(),_.W("design:type",Object)],Pz.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],Pz.prototype,"steps",null);_.u([_.c({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Pz);
_.d(Pz,"ytd-channel-transfer-stepper-renderer",function(){if(wol!==void 0)return wol;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wol=M},{mode:1});var xVi;var SV=function(){var M=_.g.apply(this,arguments)||this;M.data=null;M.isError=!1;M.isLoading=!1;return M};
_.w(SV,_.g);_.P=SV.prototype;_.P.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.P.computeProfileName=function(M){return M?M.givenNameValue+" "+M.familyNameValue:""};
_.P.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.P.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
SV.prototype.onYtServiceRequestError=SV.prototype.onYtServiceRequestError;SV.prototype.onYtServiceRequestSent=SV.prototype.onYtServiceRequestSent;SV.prototype.dataChanged=SV.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SV.prototype,"data",void 0);
_.u([_.Y({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.W("design:type",String)],SV.prototype,"profileName",void 0);_.u([_.Y(),_.W("design:type",Object)],SV.prototype,"isError",void 0);_.u([_.Y(),_.W("design:type",Object)],SV.prototype,"isLoading",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SV.prototype,"dataChanged",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],SV.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],SV.prototype,"onYtServiceRequestError",null);_.u([_.c({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],SV);
_.d(SV,"ytd-channel-warm-welcome-cont-renderer",function(){if(xVi!==void 0)return xVi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return xVi=M},{mode:1});var tKw;var ZY=function(){var M=_.g.apply(this,arguments)||this;M.data=null;return M};
_.w(ZY,_.g);ZY.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ZY.prototype,"data",void 0);_.u([_.c({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],ZY);
_.d(ZY,"ytd-channel-warm-welcome-renderer",function(){if(tKw!==void 0)return tKw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return tKw=M},{mode:1});var jPv;var T7=function(){return _.g.apply(this,arguments)||this};
_.w(T7,_.g);_.rX.Object.defineProperties(T7.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.authorThumbnail)||{}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],T7.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],T7.prototype,"thumbnailDetails",null);_.u([_.c({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],T7);
_.d(T7,"ytd-comment-preview-renderer",function(){if(jPv!==void 0)return jPv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return jPv=M},{mode:1});var poN;var I0=function(){return _.g.apply(this,arguments)||this};
_.w(I0,_.g);I0.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rX.Object.defineProperties(I0.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.submitButton}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],I0.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],I0.prototype,"submitButton",null);_.u([_.c({is:"ytd-notice-renderer",disableElementRegistration:!0})],I0);
_.d(I0,"ytd-notice-renderer",function(){if(poN!==void 0)return poN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return poN=M},{mode:1});var Fmd;var o0=function(){return _.g.apply(this,arguments)||this};
_.w(o0,_.g);o0.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],o0.prototype,"data",void 0);_.u([_.c({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],o0);
_.d(o0,"ytd-preview-comment-dialog-content",function(){if(Fmd!==void 0)return Fmd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Fmd=M},{mode:1});var Y1m;var Xv=function(){return _.g.apply(this,arguments)||this};
_.w(Xv,_.g);Xv.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Xv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Xv.prototype,"data",void 0);_.u([_.c({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Xv);
_.d(Xv,"ytd-preview-comment-dialog-renderer",function(){if(Y1m!==void 0)return Y1m;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Y1m=M},{mode:1});var mVd;var gbm=_.U("web_button_rework")&&_.cW("BUTTON_REWORK")||_.U("web_button_rework_with_live"),lB=function(){var M=_.g.apply(this,arguments)||this;M.closeLabel=_.e9("CLOSE");M.selectedAmountIndex=1;M.privacyCheckboxValue=!1;M.useAmsterdamStyle=gbm;M.amountPlaceholderIndex=-1;return M};
_.w(lB,_.g);_.P=lB.prototype;_.P.onAmountClick=function(M){this.selectedAmountIndex=_.SN(this.hostElement).querySelector("#amounts").indexForElement(M.currentTarget)};
_.P.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.S9(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.P.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.S9(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.S9(this.hostElement,"yt-close-popup-action",[this.is]);var M;(M=_.J_())==null||M.getPlayerPromise().then(function(z){z.pauseVideo()})}};
_.P.donationCallback=function(M){M.success?(this.hostElement.hasAttribute("live-chat")&&M.response&&M.response.data&&M.response.data.actions&&_.S9(this.hostElement,"yt-live-chat-open-popup",[M.response.data.actions[0]]),_.S9(this.hostElement,"yt-close-popup-action",[this.is]),_.S9(this.hostElement,"yt-live-chat-close-buy-flow")):M.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(M.errorMessageRenderer)};
_.P.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.SN(this.hostElement).querySelector("#custom-amount-input").focus()};
_.P.updateConfirmationDialogTextWithAmount=function(M){var z=this.getConfirmDialogRuns();z&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(z),"text"],this.getFormattedAmount(M))};
_.P.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.P.getAmountPlaceholderIndex=function(M){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=M.findIndex(function(z){return z.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.P.getFormattedAmount=function(M){var z;return(new _.as(4,((z=this.data)==null?void 0:z.currencyCode)||"")).format(M)};
_.P.isAmountValid=function(M){if(M==="")return!1;M=Number(M)*1E6;var z=this.get("minAmountMicros",this.data),J=this.get("maxAmountMicros",this.data);return z&&M<z||J&&M>J?!1:!0};
_.P.setInputError=function(){this.shouldShowValidationError?_.SN(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.SN(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.P.setInitialCheckboxValue=function(){var M;this.privacyCheckboxValue=!((M=this.data)==null||!M.privacyCheckboxInitialState)};
_.P.updateCustomAmountInputFromBinding=function(M){this.customAmountInput=M.detail.value};
_.P.updatePrivacyCheckboxValueFromBinding=function(M){this.privacyCheckboxValue=M.detail.value};
_.rX.Object.defineProperties(lB.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var M=this,z,J;return((z=this.data)==null?void 0:(J=z.suggestedAmounts)==null?void 0:J.map(function(R,D){return{buttonRenderer:{style:M.selectedAmountIndex===D?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:R.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var M=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(M&&this.amountMicros!==null)return Object.assign({},M,{ypcGetCartEndpoint:Object.assign({},M.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var M=this.get("confirmLargeAmount",this.data);if(M&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),M}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.get("donateButton.buttonRenderer",this.data);if(M)return Object.assign({},M,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
lB.prototype.setInitialCheckboxValue=lB.prototype.setInitialCheckboxValue;lB.prototype.setInputError=lB.prototype.setInputError;lB.prototype.setFocusOnCustomAmountInput=lB.prototype.setFocusOnCustomAmountInput;_.u([_.p(AXw),_.W("design:type",Object)],lB.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],lB.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],lB.prototype,"closeLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],lB.prototype,"selectedAmountIndex",void 0);_.u([_.Y(),_.W("design:type",String)],lB.prototype,"customAmountInput",void 0);_.u([_.Y(),_.W("design:type",Object)],lB.prototype,"privacyCheckboxValue",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],lB.prototype,"useAmsterdamStyle",void 0);_.u([_.la("customAmount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lB.prototype,"setFocusOnCustomAmountInput",null);_.u([_.F("data","selectedAmountIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],lB.prototype,"suggestedAmountButtons",null);
_.u([_.F("data","selectedAmountIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lB.prototype,"isCustomAmountSelected",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lB.prototype,"showPrivacyCheckbox",null);_.u([_.F("data","selectedAmountIndex","customAmount"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"amountMicros",null);
_.u([_.F("isCustomAmountSelected","customAmountInput"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"customAmount",null);_.u([_.F("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lB.prototype,"shouldShowValidationError",null);_.u([_.F("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lB.prototype,"isDonateButtonEnabled",null);
_.u([_.F("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"donateCommand",null);_.u([_.F("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"donateCommandWithConfirmation",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"largeDonationThreshold",null);
_.u([_.F("customAmount","donateCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"confirmLargeAmountCommand",null);_.u([_.F("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.W("design:type",Object),_.W("design:paramtypes",[])],lB.prototype,"donateButtonRenderer",null);_.u([_.la("shouldShowValidationError"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lB.prototype,"setInputError",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lB.prototype,"setInitialCheckboxValue",null);_.u([_.c({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],lB);
_.d(lB,"ytd-donation-amount-picker-renderer",function(){if(mVd!==void 0)return mVd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return mVd=M},{mode:1});var sPG;var eV=function(){return _.g.apply(this,arguments)||this};
_.w(eV,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],eV.prototype,"ytComponentBehavior",void 0);_.u([_.Y({}),_.W("design:type",Object)],eV.prototype,"data",void 0);_.u([_.c({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],eV);
_.d(eV,"ytd-donation-post-transaction-content",function(){if(sPG!==void 0)return sPG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return sPG=M},{mode:1});var nbw;var QF=function(){return _.g.apply(this,arguments)||this};
_.w(QF,_.g);QF.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.u([_.Y({}),_.W("design:type",Object)],QF.prototype,"data",void 0);_.u([_.c({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],QF);
_.d(QF,"ytd-donation-post-transaction-renderer",function(){if(nbw!==void 0)return nbw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return nbw=M},{mode:1});var hWc;var yBu;var Ui=function(){return _.g.apply(this,arguments)||this};
_.w(Ui,_.g);Ui.prototype.computeIsStreamingProvider=function(M){return!!M.isStreamingShelf};
Ui.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ui.prototype,"data",void 0);_.u([_.Y({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Ui.prototype,"isStreamingProvider",void 0);
_.u([_.c({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Ui);
_.d(Ui,"ytd-media-provider-renderer",function(){if(yBu!==void 0)return yBu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yBu=M},{mode:1});var Hzi;var vz=function(){return _.g.apply(this,arguments)||this};
_.w(vz,_.g);vz.prototype.observeLightsourcePalette=function(){var M,z=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;z&&_.g4(this.hostElement,z)};
vz.prototype.observeLightsourcePalette=vz.prototype.observeLightsourcePalette;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vz.prototype,"data",void 0);
_.u([_.la("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vz.prototype,"observeLightsourcePalette",null);_.u([_.c({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],vz);
_.d(vz,"ytd-streaming-pop-up-dialog",function(){if(Hzi!==void 0)return Hzi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Hzi=M},{mode:1});var G7=function(){return _.g.apply(this,arguments)||this};
_.w(G7,_.g);G7.prototype.onPopupOpened_=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.JF().resolve(_.Rb).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
G7.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
G7.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"}}}}};
G7.prototype.onPopupOpened_=G7.prototype.onPopupOpened_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],G7.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.AU),_.W("design:type",Object)],G7.prototype,"ytContinuationHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],G7.prototype,"data",void 0);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G7.prototype,"onPopupOpened_",null);_.u([_.c({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],G7);
_.d(G7,"ytd-brandconnect-popup-renderer",function(){if(hWc!==void 0)return hWc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hWc=M},{mode:1});var cBN;var wO=function(){return _.g.apply(this,arguments)||this};
_.w(wO,_.g);_.P=wO.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){for(var M=0;M<this.getOptionRenderers().length;M++)this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.P.updateSubmitButton=function(M){this.set("data.submitButton.buttonRenderer.isDisabled",!M)};
_.P.computeAlt=function(M){return _.CD(M)};
_.P.onDismissTap=function(){_.S9(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.getOptionRenderers=function(M){return(M=M||this.data)&&M.options?M.options.reduce(function(z,J){J.checkboxSurveyOptionRenderer&&z.push(J.checkboxSurveyOptionRenderer);return z},[]):[]};
_.P.onOptionChange=function(M){var z=this,J=!1;if(M.detail.checked)for(var R=this.getOptionRenderers().find(function(B){return B.value===M.detail.value}),D=this.getOptionRenderers(),N=0;N<D.length;N++){var Z=D[N];
this.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked");Z.checked&&((R==null?0:R.isExclusiveOption)?!Z.isExclusiveOption:Z.isExclusiveOption)?this.set("data.options."+N+".checkboxSurveyOptionRenderer.checked",!1):Z.checked&&(J=!0)}else J=this.getOptionRenderers().some(function(B,O){z.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");return B.checked});
this.updateSubmitButton(J)};
_.P.onSubmitTap=function(){var M=this.getOptionRenderers().filter(function(N){return N.checked});
if(M.length!==0){var z=M.map(function(N){return N.responseEndpoint});
M=[];for(var J=1;J<z.length;J++){var R=void 0,D=(R=_.G(z[J],_.Hf))==null?void 0:R.feedbackToken;D&&M.push(D)}z=[z[0]];M.length&&z.push({extra_feedback_tokens:M});_.kQ(this.hostElement,z);_.S9(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);M=this.data&&this.data.submitActions||[];if(_.U("kevlar_command_handler_migration_killswitch"))_.Bv(this.hostElement,M,this.hostElement);else for(M=_.S(M),z=M.next();!z.done;z=M.next())this.ytComponentBehavior.resolveCommand(z.value)}};
wO.prototype.onOptionChange=wO.prototype.onOptionChange;wO.prototype.dataChanged=wO.prototype.dataChanged;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],wO.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wO.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.u([_.p(Inv),_.W("design:type",Object)],wO.prototype,"ytdHatsSurveyBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wO.prototype,"data",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wO.prototype,"dataChanged",null);
_.u([_.Xw("ytd-checkbox-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wO.prototype,"onOptionChange",null);_.u([_.c({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],wO);
_.d(wO,"ytd-checkbox-survey-renderer",function(){if(cBN!==void 0)return cBN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cBN=M},{mode:1});var dVd;var Kms;var xL=function(){return _.g.apply(this,arguments)||this};
_.w(xL,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.u([_.p(Tjv),_.W("design:type",Object)],xL.prototype,"ytdDismissalReasonBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],xL.prototype,"data",void 0);_.u([_.c({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],xL);
_.d(xL,"ytd-dismissal-reason-text-renderer",function(){if(Kms!==void 0)return Kms;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Kms=M},{mode:1});var $Vw;var tR=function(){return _.g.apply(this,arguments)||this};
_.w(tR,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.u([_.p(Tjv),_.W("design:type",Object)],tR.prototype,"ytdDismissalReasonBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tR.prototype,"data",void 0);_.u([_.c({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],tR);
_.d(tR,"ytd-dismissal-reason-video-renderer",function(){if($Vw!==void 0)return $Vw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return $Vw=M},{mode:1});var jV=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(jV,_.g);_.P=jV.prototype;_.P.created=function(){this.selectedFeedbackTokens=new Ze};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.P.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.P.onDismissalReasonSelected=function(M,z){_.Pv(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(z);this.hasReasonsSelected=!0};
_.P.onDismissalReasonDeselected=function(M,z){_.Pv(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(z);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.P.onCancelTap=function(){_.S9(this.hostElement,"yt-close-popup-action")};
_.P.onSubmitTap=function(){var M=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(M={feedback_tokens:M},_.JF().resolve(_.Rb).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}));_.S9(this.hostElement,"yt-close-popup-action")};
jV.prototype.onDismissalReasonDeselected=jV.prototype.onDismissalReasonDeselected;jV.prototype.onDismissalReasonSelected=jV.prototype.onDismissalReasonSelected;jV.prototype.dataChanged=jV.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jV.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],jV.prototype,"hasReasonsSelected",void 0);_.u([_.Y(),_.W("design:type",Ze)],jV.prototype,"selectedFeedbackTokens",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],jV.prototype,"darkerDarkTheme",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jV.prototype,"dataChanged",null);
_.u([_.Xw("yt-dismissal-reason-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],jV.prototype,"onDismissalReasonSelected",null);_.u([_.Xw("yt-dismissal-reason-deselected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],jV.prototype,"onDismissalReasonDeselected",null);_.u([_.c({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],jV);
_.d(jV,"ytd-dismissal-follow-up-renderer",function(){if(dVd!==void 0)return dVd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return dVd=M},{mode:1});var uE5;var p$=function(){return _.g.apply(this,arguments)||this};
_.w(p$,_.g);_.P=p$.prototype;_.P.onCheckedChange=function(){this.multiselect||_.Pv(this.hostElement,"yt-feedback-single-select-changed");_.SN(this.hostElement).querySelector("#freeform").focus();_.Pv(this.hostElement,"yt-refit")};
_.P.showTextBox=function(M,z){return M&&z};
_.P.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.P.updateDataCheckedFromBinding=function(M){this.set("data.checked",M.detail.value)};
_.P.updateDataResultTextFromBinding=function(M){this.set("data.resultText",M.detail.value)};
p$.prototype.dataChanged=p$.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],p$.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],p$.prototype,"multiselect",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p$.prototype,"dataChanged",null);
_.u([_.c({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],p$);
_.d(p$,"ytd-feedback-option-renderer",function(){if(uE5!==void 0)return uE5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uE5=M},{mode:1});var q1m;var Fv=function(){return _.g.apply(this,arguments)||this};
_.w(Fv,_.g);Fv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Fv.prototype.onSingleSelectCheckedChanged=function(M){M=_.b7(M);for(var z=0;z<this.data.options.length;z++)if(M.data!==_.G(this.data.options[z],Bxm)){var J="data.options."+z+".feedbackOptionRenderer.checked";this.notifyPath(J);this.set(J,!1)}};
Fv.prototype.onSingleSelectCheckedChanged=Fv.prototype.onSingleSelectCheckedChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fv.prototype,"data",void 0);
_.u([_.Xw("yt-feedback-single-select-changed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],Fv.prototype,"onSingleSelectCheckedChanged",null);_.u([_.c({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Fv);
_.d(Fv,"ytd-feedback-question-renderer",function(){if(q1m!==void 0)return q1m;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return q1m=M},{mode:1});var Wmd;var YL=function(){return _.g.apply(this,arguments)||this};
_.w(YL,_.g);YL.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
YL.prototype.getSelectedFeedbackResults=function(){for(var M={},z=0;z<this.data.questions.length;z++)for(var J=_.G(this.data.questions[z],knl),R=0;R<J.options.length;R++){var D=_.G(J.options[R],Bxm);D&&D.checked&&(M[D.optionKey]=D.resultText)}return M};
YL.prototype.onKeyUp=function(){var M=this;_.BS(_.no,function(){_.Pv(M.hostElement,"yt-refit")});
_.no.start()};
YL.prototype.submitSurvey=function(){var M=this.getSelectedFeedbackResults();Object.keys(M).length>0&&this.data.submitFeedbackEndpoint&&(M={survey_results:M,is_feedback_token_unencrypted:!0},_.JF().resolve(_.Rb).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],YL.prototype,"data",void 0);_.u([_.c({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],YL);
_.d(YL,"ytd-feedback-survey-renderer",function(){if(Wmd!==void 0)return Wmd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Wmd=M},{mode:1});var aml;var VKl;var mI=function(){return _.g.apply(this,arguments)||this};
_.w(mI,_.g);mI.prototype.computeAlt=function(M){return _.CD(M)};
mI.prototype.submitResponse=function(){var M,z;(M=this.data)!=null&&M.feedbackToken&&((z=this.data)==null?void 0:z.nextStageIndex)!==void 0&&(_.ZL(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.ZL(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
mI.prototype.onClick=function(){this.submitResponse()};
mI.prototype.onClick=mI.prototype.onClick;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],mI.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],mI.prototype,"vertical",void 0);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mI.prototype,"onClick",null);
_.u([_.c({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],mI);
_.d(mI,"ytd-single-select-answer-option-renderer",function(){if(VKl!==void 0)return VKl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return VKl=M},{mode:1});var EbG;var gO=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return M};
_.w(gO,_.g);gO.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
gO.prototype.dataChanged=function(){var M,z;this.vertical=((z=(M=this.data)==null?void 0:M.answerOrientation)!=null?z:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
gO.prototype.submitFeedback=function(M){var z;((z=this.data)==null?0:z.responseEndpoint)&&M&&_.kQ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[M]}])};
gO.prototype.dataChanged=gO.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],gO.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],gO.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],gO.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],gO.prototype,"vertical",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],gO.prototype,"darkerDarkTheme",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gO.prototype,"dataChanged",null);_.u([_.c({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],gO);
_.d(gO,"ytd-single-select-question-renderer",function(){if(EbG!==void 0)return EbG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return EbG=M},{mode:1});var si=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return M};
_.w(si,_.g);_.P=si.prototype;_.P.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.P.dataChanged=function(){this.jumpToStage(0)};
_.P.jumpToStage=function(M){var z,J;if((z=this.data)==null?0:(J=z.stages)==null?0:J[M])this.currentStage=this.data.stages[M],this.refitAfterRender()};
_.P.computeAlt=function(M){return _.CD(M)};
_.P.computeSimpleMessage=function(M){var z;return(z=_.G(M,IJm))==null?void 0:z.messageText};
_.P.computeHideDismiss=function(M){var z;return(z=_.G(M,$nc))==null?void 0:z.hideParentDismissButton};
_.P.onDismissTap=function(){_.S9(this.hostElement,"yt-close-popup-action");_.G(this.currentStage,IJm)||this.data.dismissalEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.refitAfterRender=function(){var M=this;_.C4(this,function(){_.Pv(M.hostElement,"yt-refit")})};
si.prototype.dataChanged=si.prototype.dataChanged;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],si.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);
_.u([_.p(Inv),_.W("design:type",Object)],si.prototype,"ytdHatsSurveyBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],si.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],si.prototype,"currentStage",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],si.prototype,"dataChanged",null);_.u([_.c({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],si);
_.d(si,"ytd-multi-stage-survey-renderer",function(){if(aml!==void 0)return aml;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return aml=M},{mode:1});var fmw;var n$=function(){return _.g.apply(this,arguments)||this};
_.w(n$,_.g);n$.prototype.computeAlt=function(M){return _.CD(M)};
n$.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.JF().resolve(_.Rb).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.S9(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.kSu(!1)))};
n$.prototype.onTap=function(){this.vertical&&this.submitResponse()};
n$.prototype.onTap=n$.prototype.onTap;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],n$.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],n$.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"vertical",void 0);
_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"onTap",null);_.u([_.c({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],n$);
_.d(n$,"ytd-single-option-survey-option-renderer",function(){if(fmw!==void 0)return fmw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fmw=M},{mode:1});var Lmw;var hR=function(){return _.g.apply(this,arguments)||this};
_.w(hR,_.g);_.P=hR.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){var M,z;this.vertical=(((M=this.data)==null?void 0:(z=M.surveyOrientation)==null?void 0:z.type)||"HORIZONTAL")==="VERTICAL"};
_.P.computeAlt=function(M){return _.CD(M)};
_.P.onDismissTap=function(){_.S9(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.JF().resolve(_.Rb).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.kSu(!1))};
hR.prototype.dataChanged=hR.prototype.dataChanged;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],hR.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(Inv),_.W("design:type",Object)],hR.prototype,"ytdHatsSurveyBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],hR.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hR.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],hR.prototype,"vertical",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hR.prototype,"dataChanged",null);_.u([_.c({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],hR);
_.d(hR,"ytd-single-option-survey-renderer",function(){if(Lmw!==void 0)return Lmw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Lmw=M},{mode:1});var ABc;var yF=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(yF,_.g);yF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yF.prototype.onDismissTap=function(){_.S9(this.hostElement,"yt-close-popup-action")};
yF.prototype.onNavigate=function(){_.S9(this.hostElement,"yt-close-popup-action")};
yF.prototype.onNavigate=yF.prototype.onNavigate;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],yF.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yF.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yF.prototype,"darkerDarkTheme",void 0);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yF.prototype,"onNavigate",null);_.u([_.c({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],yF);
_.d(yF,"ytd-survey-follow-up-renderer",function(){if(ABc!==void 0)return ABc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ABc=M},{mode:1});var izd;var CLN;var bzw;var Hz=function(){var M=_.g.apply(this,arguments)||this;M.polymer2="Element"in Polymer;return M};
_.w(Hz,_.g);_.P=Hz.prototype;_.P.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.P.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.P.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.P.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("minutes-changed",this.minutes))};
_.P.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("seconds-changed",this.seconds))};
_.P.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.P.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
Hz.prototype.secondsChangedForBinding=Hz.prototype.secondsChangedForBinding;Hz.prototype.minutesChangedForBinding=Hz.prototype.minutesChangedForBinding;Hz.prototype.secondsChanged=Hz.prototype.secondsChanged;_.u([_.Y(),_.W("design:type",String)],Hz.prototype,"minutes",void 0);_.u([_.Y(),_.W("design:type",String)],Hz.prototype,"seconds",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Hz.prototype,"polymer2",void 0);
_.u([_.Qc("#seconds"),_.W("design:type",Object)],Hz.prototype,"secondsEl",void 0);_.u([_.la("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hz.prototype,"secondsChanged",null);_.u([_.la("minutes"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hz.prototype,"minutesChangedForBinding",null);
_.u([_.la("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Hz.prototype,"secondsChangedForBinding",null);_.u([_.cU({is:"yt-timestamp-input",disableElementRegistration:!0})],Hz);
_.d(Hz,"yt-timestamp-input",function(){if(bzw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;CLN===void 0&&(CLN=document.createElement("template"));var R=CLN;J.call(z,R.content.cloneNode(!0),M.content.firstChild);bzw=M}M=bzw;return M},{mode:2});var cz=function(){return _.g.apply(this,arguments)||this};
_.w(cz,_.g);_.P=cz.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20207_scroller.dialogElement=this.hostElement.parentNode};
_.P.dataChanged=function(){var M=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.R9().getPlayerPromise().then(function(z){z=z.getCurrentTime();M.minutes=Math.floor(z/60).toString();M.seconds=(Math.floor(z)%60).toString()})};
_.P.onTapSubmit=function(M){M.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(M={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(M.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(M.minutes=this.minutes,M.seconds=this.seconds),_.JF().resolve(_.Rb).resolveCommand(this.serviceEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.P.onYtServiceRequestCompleted=function(M,z){z=z.actions;if(Array.isArray(z))for(var J=0,R=z.length;J<R;J++)_.G(z[J],_.nM)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(z[J]))};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.P.toggleSubmitButton=function(M){this.set("submitButton.isDisabled",!M)};
_.P.handleInput=function(){var M=this.issueType,z=this.affiliation,J=this.minutes,R=this.seconds;J=!this.showTimestamp||!!J&&!!R;this.toggleSubmitButton(!!this.descriptionText&&!!M&&!!z&&J)};
_.P.computeServiceEndpoint=function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)};
_.P.computeSubmitButton=function(M){(M=this.get("submitButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.P.computeShowTimestamp=function(M){return!!M};
_.P.onValueChangedForIssueType=function(M){this.issueType=M.detail.value};
_.P.onValueChangedForAffiliation=function(M){this.affiliation=M.detail.value};
_.P.updateDescriptionTextFromBinding=function(M){this.descriptionText=M.detail.value};
_.P.updateFullNameTextFromBinding=function(M){this.fullNameText=M.detail.value};
_.P.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.P.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
cz.prototype.handleInput=cz.prototype.handleInput;cz.prototype.onYtServiceRequestError=cz.prototype.onYtServiceRequestError;cz.prototype.onYtServiceRequestCompleted=cz.prototype.onYtServiceRequestCompleted;cz.prototype.onYtServiceRequestSent=cz.prototype.onYtServiceRequestSent;cz.prototype.dataChanged=cz.prototype.dataChanged;_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],cz.prototype,"ytOpenPopupBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.u([_.Qc("#scroller"),_.W("design:type",Object)],cz.prototype,"JSC$20207_scroller",void 0);_.u([_.Qc("#description"),_.W("design:type",HTMLInputElement)],cz.prototype,"description",void 0);_.u([_.Qc("#full-name"),_.W("design:type",Object)],cz.prototype,"fullName",void 0);_.u([_.Y(),_.W("design:type",Object)],cz.prototype,"data",void 0);
_.u([_.Y({computed:"computeShowTimestamp(data.timestampLabel)"}),_.W("design:type",Boolean)],cz.prototype,"showTimestamp",void 0);_.u([_.Y({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.W("design:type",Object)],cz.prototype,"serviceEndpoint",void 0);_.u([_.Y({computed:"computeSubmitButton(data)"}),_.W("design:type",Object)],cz.prototype,"submitButton",void 0);_.u([_.Y(),_.W("design:type",String)],cz.prototype,"descriptionText",void 0);
_.u([_.Y(),_.W("design:type",Number)],cz.prototype,"issueType",void 0);_.u([_.Y(),_.W("design:type",Number)],cz.prototype,"affiliation",void 0);_.u([_.Y(),_.W("design:type",String)],cz.prototype,"fullNameText",void 0);_.u([_.Y(),_.W("design:type",String)],cz.prototype,"minutes",void 0);_.u([_.Y(),_.W("design:type",String)],cz.prototype,"seconds",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cz.prototype,"dataChanged",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],cz.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],cz.prototype,"onYtServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cz.prototype,"onYtServiceRequestError",null);_.u([_.la("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cz.prototype,"handleInput",null);_.u([_.c({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],cz);
_.d(cz,"ytd-legal-report-details-form-renderer",function(){if(izd!==void 0)return izd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return izd=M},{mode:1});var rBl;var dO=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return M};
_.w(dO,_.g);dO.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
dO.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var M=this.formRenderer.getForm();M&&this.data.submitEndpoint&&(_.JF().resolve(_.Rb).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},M,{element:this.hostElement})}),_.S9(this.hostElement,"yt-close-popup-action"))}};
dO.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.S9(this.hostElement,"yt-close-popup-action"))};
dO.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
dO.prototype.onPopupClosed=dO.prototype.onPopupClosed;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],dO.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],dO.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);
_.u([_.Qc("yt-form-renderer"),_.W("design:type",Object)],dO.prototype,"formRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],dO.prototype,"data",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dO.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-form-popup-content",disableElementRegistration:!0})],dO);
_.d(dO,"ytd-form-popup-content",function(){if(rBl!==void 0)return rBl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rBl=M},{mode:1});var MGd;var K$=function(){return _.g.apply(this,arguments)||this};
_.w(K$,_.g);K$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
K$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
K$.prototype.onPopupOpened=function(){_.Pv(this.hostElement,"yt-invalidate-popup-tabbables")};
K$.prototype.onYtServiceRequestCompleted=function(M,z){z.data&&z.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Pv(this.hostElement,"yt-invalidate-popup-tabbables"))};
K$.prototype.onYtServiceRequestCompleted=K$.prototype.onYtServiceRequestCompleted;K$.prototype.onPopupOpened=K$.prototype.onPopupOpened;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],K$.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],K$.prototype,"data",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K$.prototype,"onPopupOpened",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],K$.prototype,"onYtServiceRequestCompleted",null);_.u([_.c({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],K$);
_.d(K$,"ytd-form-popup-renderer",function(){if(MGd!==void 0)return MGd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return MGd=M},{mode:1});var zss;var $L=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;return M};
_.w($L,_.g);_.P=$L.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Zuw(this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.isLoading=!0};
_.P.onYtServiceRequestCompleted=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.P.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Bv(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.P.closePopupHandler=function(){this.fireOnCloseActions()};
_.P.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var M=this.get("data.headerImage.thumbnails");M&&(M=_.PS(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")")}};
_.P.onYtNavigate=function(M){(M=_.b7(M))&&M.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
$L.prototype.onYtNavigate=$L.prototype.onYtNavigate;$L.prototype.onHeaderImageChanged=$L.prototype.onHeaderImageChanged;$L.prototype.closePopupHandler=$L.prototype.closePopupHandler;$L.prototype.onYtServiceRequestCompleted=$L.prototype.onYtServiceRequestCompleted;$L.prototype.onYtServiceRequestSent=$L.prototype.onYtServiceRequestSent;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],$L.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$L.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$L.prototype,"isLoading",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLDivElement)],$L.prototype,"header",void 0);_.u([_.Qc("#confirm-button"),_.W("design:type",_.gx)],$L.prototype,"confirmButton",void 0);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$L.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$L.prototype,"onYtServiceRequestCompleted",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],$L.prototype,"closePopupHandler",null);_.u([_.la("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$L.prototype,"onHeaderImageChanged",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$L.prototype,"onYtNavigate",null);
_.u([_.c({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$L);
_.d($L,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(zss!==void 0)return zss;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return zss=M},{mode:1});var JCl;var uB=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;return M};
_.w(uB,_.g);_.P=uB.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Zuw(this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.P.onYtServiceRequestError=function(M){_.Cf(this.hostElement,M.detail.error.message)};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.S9(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.P.onDataChanged=function(){this.isLoading=!1;var M=this.get("data.headerImage.thumbnails");M&&(M=_.PS(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")");M=_.y5();var z=_.hu(),J=this.get("data.trackingParams");J&&z&&M&&_.qs(M,z,_.pe(J))};
_.rX.Object.defineProperties(uB.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
uB.prototype.onDataChanged=uB.prototype.onDataChanged;uB.prototype.onDomChange=uB.prototype.onDomChange;uB.prototype.onYtServiceRequestError=uB.prototype.onYtServiceRequestError;uB.prototype.onYtServiceRequestCompleted=uB.prototype.onYtServiceRequestCompleted;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],uB.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],uB.prototype,"isLoading",void 0);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],uB.prototype,"hasDescription",null);_.u([_.Qc("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],uB.prototype,"scrollable",void 0);_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],uB.prototype,"header",void 0);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uB.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uB.prototype,"onYtServiceRequestError",null);
_.u([_.Xw("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uB.prototype,"onDomChange",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uB.prototype,"onDataChanged",null);_.u([_.c({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],uB);
_.d(uB,"ytd-gaming-account-link-setting-renderer",function(){if(JCl!==void 0)return JCl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return JCl=M},{mode:1});var Rsw;var DON;var qQ=function(){var M=_.g.apply(this,arguments)||this;M.isHeader=!1;M.getEndpointForm=function(){return Dfd(M.data)};
return M};
_.w(qQ,_.g);_.P=qQ.prototype;_.P.triggerHintActions=function(){var M=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var z=_.ZL(M.hostElement,"yt-get-opened-popups-action");!(z&&z.length===1?z[0]:[]).some(function(J){J=J.openPopupAction.popupType;return J==="SURVEY"||J==="MEALBAR"||J==="HINT"})&&M.data.hintActions&&M.guideOpened&&(_.Bv(M.hostElement,M.data.hintActions,M.hostElement),M.data.hintActions=void 0)})};
_.P.getBadgeIconType=function(M){return M&&M.liveBroadcasting?"live":null};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(M){if(this.data.serviceEndpoint){var z;_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.G(this.data.serviceEndpoint,_.je))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Rtl(this.data.serviceEndpoint,this);M.preventDefault()}else this.data.navigationEndpoint&&!_.bP(_.CX(M),this.hostElement,["A".toString()])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.P.computeActive=function(M,z){if(!M)return!1;var J=M.navigationEndpoint;M=M.serviceEndpoint;if(!J&&!M||!z)return!1;if(J){M=(M=_.vP(z))&&["subscriptions","filteredsubscriptions"].includes(M);if(_.G(J,_.Gh)&&_.G(z,_.Gh)&&!M){var R=_.G(J,_.Gh).browseId;z=_.G(z,_.Gh).browseId;return R!==void 0&&z!==void 0&&(R===z||R==="VLWL"&&z==="FEwatch_later"||R==="FEwatch_later"&&z==="VLWL")}var D;J=(D=_.G(J.commandMetadata,_.X9))==null?void 0:D.url;z=(R=_.G(z.commandMetadata,_.X9))==null?void 0:R.url;return!(!J||
!z||J!==z&&J!==_.Ib(z))}return this.isActiveShortsTab(M,z)};
_.P.isActiveShortsTab=function(M,z){z=!!_.G(z,_.je)||!!_.G(z,_.qj);return(!!_.G(M,_.je)||!!_.G(M,_.qj))&&z};
_.P.computeIsPrimary=function(M){return!!M};
_.rX.Object.defineProperties(qQ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&M)return M}}});
qQ.prototype.onTap=qQ.prototype.onTap;qQ.prototype.onUp=qQ.prototype.onUp;qQ.prototype.onDown=qQ.prototype.onDown;qQ.prototype.triggerHintActions=qQ.prototype.triggerHintActions;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],qQ.prototype,"componentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],qQ.prototype,"rendererBehavior",void 0);_.u([_.p(_.Pm.YtTaskEmitterBehavior),_.W("design:type",Object)],qQ.prototype,"taskEmitterBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],qQ.prototype,"activeEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],qQ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qQ.prototype,"guideOpened",void 0);_.u([_.Y(),_.W("design:type",String)],qQ.prototype,"type",void 0);_.u([_.Qc("yt-interaction"),_.W("design:type",Object)],qQ.prototype,"interaction",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],qQ.prototype,"isHeader",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data","activeEndpoint"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qQ.prototype,"active",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qQ.prototype,"isPrimary",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.count","data.presentationStyle","data.badges.*"),_.W("design:type",String),_.W("design:paramtypes",[])],qQ.prototype,"lineEndStyle",null);
_.u([_.F("lineEndStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],qQ.prototype,"ariaLabel",null);_.u([_.la("data.hintActions","guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qQ.prototype,"triggerHintActions",null);_.u([_.Xw("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qQ.prototype,"onDown",null);
_.u([_.Xw("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qQ.prototype,"onUp",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],qQ.prototype,"onTap",null);_.u([_.c({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],qQ);
_.d(qQ,"ytd-guide-entry-renderer",function(){if(DON!==void 0)return DON;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return DON=M},{mode:1});var Wz=function(){var M=_.g.apply(this,arguments)||this;M.userToggled=!1;return M};
_.w(Wz,_.g);_.P=Wz.prototype;_.P.getItemsPath=function(){return"data.expandableItems"};
_.P.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.P.onExpanderItemTapped=function(M){var z=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.U("kevlar_guide_expandable_items_killswitch")&&_.C4(this,function(){_.Ao(z.expandableItems)});
M.preventDefault()};
_.P.onCollapserItemTapped=function(M){var z=this;this._setExpanded(!1);this.userToggled=!0;M.preventDefault();this.expandableItems&&!_.U("kevlar_guide_collapsible_items_killswitch")&&_.C4(this,function(){_.Lo(z.hostElement)})};
_.P.observeActiveEndpoint=function(){for(var M=this.activeEndpoint,z=this.data,J=this.expandableItems.children,R=0,D=J.length;R<D;R++)J[R].activeEndpoint=M;z&&z.autoExpandCommand&&M&&!this.userToggled&&(J=this.data.autoExpandCommand,z=!(!_.G(J,_.Gh)||!_.G(M,_.Gh)||_.G(J,_.Gh).browseId!==_.G(M,_.Gh).browseId),M=this.get("commandMetadata.webCommandMetadata.url",M),J=this.get("commandMetadata.webCommandMetadata.url",J),z=z||!!(M&&J&&M.includes(J)),this._setExpanded(z),z&&this.ytLazyListBehavior.fillRemainingListItems())};
Wz.prototype.observeActiveEndpoint=Wz.prototype.observeActiveEndpoint;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],Wz.prototype,"ytLazyListBehavior",void 0);_.u([_.Qc("#expandable-items"),_.W("design:type",HTMLElement)],Wz.prototype,"expandableItems",void 0);
_.u([_.Y(),_.W("design:type",Object)],Wz.prototype,"data",void 0);_.u([_.Y({readOnly:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],Wz.prototype,"expanded",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],Wz.prototype,"initialCount",void 0);_.u([_.Y(),_.W("design:type",Object)],Wz.prototype,"activeEndpoint",void 0);_.u([_.la("data","activeEndpoint","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Wz.prototype,"observeActiveEndpoint",null);
_.u([_.c({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Wz);
_.d(Wz,"ytd-guide-collapsible-entry-renderer",function(){if(Rsw!==void 0)return Rsw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Rsw=M},{mode:_.B5("kevlar_poly_si_batch_j079")?1:2});var N5v;var PV5;var a0=function(){var M=_.g.apply(this,arguments)||this;M.allVideosCount=0;M.renderGuideEntry=!1;return M};
_.w(a0,_.g);a0.prototype.observeRenderEntry=function(){var M;this.renderGuideEntry=!((M=this.data)==null||!M.alwaysShow)||!!this.allVideosCount};
a0.prototype.observeRenderEntry=a0.prototype.observeRenderEntry;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],a0.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],a0.prototype,"activeEndpoint",void 0);_.u([_.Y({selector:_.bNp}),_.W("design:type",Object)],a0.prototype,"allVideosCount",void 0);
_.u([_.Y(),_.W("design:type",Object)],a0.prototype,"renderGuideEntry",void 0);_.u([_.wH("allVideosCount","data.alwaysShow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a0.prototype,"observeRenderEntry",null);_.u([_.c({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],a0);
_.d(a0,"ytd-guide-downloads-entry-renderer",function(){if(PV5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);PV5=M}M=PV5;return M},{mode:1});var VF=function(){var M=_.g.apply(this,arguments)||this;M.youtab=_.U("web_enable_youtab");M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return M};
_.w(VF,_.g);_.P=VF.prototype;_.P.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.P.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var M=this.sectionItems.children,z=0,J=M.length;z<J;z++)M[z].activeEndpoint=this.activeEndpoint}};
_.P.handleAddToGuideSectionAction=function(M){var z=_.G(M,mnl);if(z&&this.data&&(M=z.items,z=z.handlerData,M&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1)){z=0;for(var J=M.length;z<J;z++)M[z].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,M[z])}};
_.P.handleRemoveFromGuideSectionAction=function(M){var z=_.G(M,g5l);z&&this.data&&(M=z.guideEntryId,z=z.handlerData,M&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(M,this.data.sectionItems),this.removeFromCollapsedSection(M,this.data.sectionItems)))};
_.P.removeFromExpandedSection=function(M,z){M=this.getEntryIndexMatchingId(M,z);M!==-1&&this.splice("data.sectionItems",M,1)};
_.P.removeFromCollapsedSection=function(M,z){var J=z.findIndex(function(R){return!!_.G(R,f1d)});
J&&J!==-1&&z[J]&&_.G(z[J],f1d)&&(z=_.G(z[J],f1d).expandableItems)&&(M=this.getEntryIndexMatchingId(M,z),M!==-1&&this.splice("data.sectionItems."+J+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.P.getEntryIndexMatchingId=function(M,z){var J=this;return z.findIndex(function(R){return J.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
VF.prototype.activeEndpointChanged=VF.prototype.activeEndpointChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],VF.prototype,"actionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#section-items"),_.W("design:type",HTMLDivElement)],VF.prototype,"sectionItems",void 0);
_.u([_.Qc("#header-entry"),_.W("design:type",Object)],VF.prototype,"headerEntry",void 0);_.u([_.Y(),_.W("design:type",Object)],VF.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],VF.prototype,"activeEndpoint",void 0);_.u([_.Y(),_.W("design:type",Object)],VF.prototype,"youtab",void 0);_.u([_.la("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VF.prototype,"activeEndpointChanged",null);
_.u([_.c({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],VF);
_.d(VF,"ytd-guide-collapsible-section-entry-renderer",function(){if(N5v===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);N5v=M}M=N5v;return M},{mode:1});var SOG;var ZUl;var Ei=function(){var M=_.g.apply(this,arguments)||this;M.modernTypography=_.U("web_modern_typography");M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return M};
_.w(Ei,_.g);_.P=Ei.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.P.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var M=_.ZL(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);M&&M.length===1&&M[0]&&_.ZL(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.P.handleResetChannelUnreadCountCommand=function(M){var z;(M=(z=_.G(M,n5u))==null?void 0:z.channelId)&&this.data&&this.data.items&&(z=this.getPathToEntryMatchingId(M))&&(this.set(z+".guideEntryRenderer.count",0),this.set(z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.handleResetSubscriptionsUnreadDotCommand=function(M){var z,J=(z=_.G(M,hyi))==null?void 0:z.targetId,R;J&&(R=this.data)!=null&&R.items&&(M=this.data.items.findIndex(function(D){var N;return((N=D.guideEntryRenderer)==null?void 0:N.targetId)===J}),M<0||this.set("data.items."+M+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.getPathToEntryMatchingId=function(M){if(this.data&&this.data.items){var z=this.getEntryIndexMatchingId(M,this.data.items);if(z>-1)return"data.items."+z;for(var J=0;J<this.data.items.length;J++)if(z=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[J]))if(z=this.getEntryIndexMatchingId(M,z),z>-1)return"data.items."+J+".guideCollapsibleEntryRenderer.expandableItems."+z}};
_.P.handleAddToGuideSectionAction=function(M){var z=this;if(_.G(M,mnl)){var J=_.G(M,mnl).items;M=_.G(M,mnl).handlerData;var R,D;if(J&&M&&((R=this.data)==null?void 0:(D=R.handlerDatas)==null?void 0:D.indexOf(M))>-1){J=J.filter(function(Z){return(Z=z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z))&&!z.isGuideItemPresent(Z)});
var N;if(M==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((N=this.data)==null?0:N.items)&&(R=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),R>-1)){this.splice.apply(this,["data.items",R+1,0].concat(_.Yj(J)));return}this.unshift.apply(this,["data.items"].concat(_.Yj(J)))}}};
_.P.isGuideItemPresent=function(M){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(M,this.data.items)!==-1)return!0;var z=this.data.items.find(function(J){return!!J.guideCollapsibleEntryRenderer});
if((z==null?0:z.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(M,z.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.P.getEntryIndexMatchingId=function(M,z){var J=this;return z.findIndex(function(R){return J.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
_.P.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(M,z){var J=this;return z.findIndex(function(R){return J.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
_.P.handleRemoveFromGuideSectionAction=function(M){if(_.G(M,g5l)){var z=_.G(M,g5l).guideEntryId;M=_.G(M,g5l).handlerData;var J,R;z&&M&&((J=this.data)==null?void 0:(R=J.handlerDatas)==null?void 0:R.indexOf(M))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(z,this.data.items),this.removeFromCollapsedSection(z,this.data.items))}};
_.P.removeFromExpandedSection=function(M,z){M=this.getEntryIndexMatchingId(M,z);M!==-1&&this.splice("data.items",M,1)};
_.P.removeFromCollapsedSection=function(M,z){var J=z.findIndex(function(R){return!!R.guideCollapsibleEntryRenderer});
J!==-1&&(z=z[J].guideCollapsibleEntryRenderer.expandableItems)&&(M=this.getEntryIndexMatchingId(M,z),M!==-1&&this.splice("data.items."+J+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.P.activeEndpointChanged=function(){for(var M=_.SN(this.hostElement).querySelector("#items").children,z=0,J=M.length;z<J;z++)M[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.guideOpenedChanged=function(){for(var M=_.SN(this.hostElement).querySelector("#items").children,z=0,J=M.length;z<J;z++)M[z].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Ei.prototype.guideOpenedChanged=Ei.prototype.guideOpenedChanged;Ei.prototype.activeEndpointChanged=Ei.prototype.activeEndpointChanged;Ei.prototype.persistentGuideChanged=Ei.prototype.persistentGuideChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Ei.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],Ei.prototype,"ytLazyListBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],Ei.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ei.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Ei.prototype,"modernTypography",void 0);_.u([_.Y(),_.W("design:type",String)],Ei.prototype,"type",void 0);_.u([_.Y({value:20}),_.W("design:type",Number)],Ei.prototype,"initialCount",void 0);_.u([_.Y({value:10}),_.W("design:type",Number)],Ei.prototype,"targetFramerate",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],Ei.prototype,"autoFill",void 0);_.u([_.Y({value:50}),_.W("design:type",Number)],Ei.prototype,"renderDelay",void 0);
_.u([_.la("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ei.prototype,"persistentGuideChanged",null);_.u([_.wH("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ei.prototype,"activeEndpointChanged",null);_.u([_.wH("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ei.prototype,"guideOpenedChanged",null);
_.u([_.c({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Ei);
_.d(Ei,"ytd-guide-section-renderer",function(){if(ZUl!==void 0)return ZUl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return ZUl=M},{mode:_.B5("kevlar_poly_si_batch_j073")?1:2});var kgc;var f$=function(){return _.g.apply(this,arguments)||this};
_.w(f$,_.g);_.rX.Object.defineProperties(f$.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],f$.prototype,"rendererBehaviors",void 0);_.u([_.Y(),_.W("design:type",Object)],f$.prototype,"data",void 0);_.u([_.Y(),_.F("data.signInButton.buttonRenderer.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],f$.prototype,"alignByText",null);_.u([_.c({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],f$);
_.d(f$,"ytd-guide-signin-promo-renderer",function(){if(kgc===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);kgc=M}M=kgc;return M},{mode:1});var L$=function(){var M=_.g.apply(this,arguments)||this;M.showFooter=!1;return M};
_.w(L$,_.g);L$.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}}}}};
L$.prototype.attached=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1){z=_.JF().resolve(_.zw(_.Lk));if(!z)return J.jumpTo(0);z.setGuideData(M.hostElement);return J.yield(0,3)}M.ytLazyListBehavior.initialCount=2;return J.return()})};
L$.prototype.onMouseExit=function(){_.U("web_guide_hover_expansion")&&_.ZL(this.hostElement,"yt-guide-mouseleaved",[])};
L$.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
L$.prototype.dataChanged=L$.prototype.dataChanged;L$.prototype.onMouseExit=L$.prototype.onMouseExit;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],L$.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.BH.YtLazyListBehavior),_.W("design:type",Object)],L$.prototype,"ytLazyListBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],L$.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],L$.prototype,"showFooter",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],L$.prototype,"autoFill",void 0);_.u([_.Xw("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L$.prototype,"onMouseExit",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L$.prototype,"dataChanged",null);_.u([_.c({is:"ytd-guide-renderer",disableElementRegistration:!0})],L$);
_.d(L$,"ytd-guide-renderer",function(){if(SOG!==void 0)return SOG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return SOG=M},{mode:_.B5("kevlar_poly_si_batch_j073")?1:2});var B5d;var AR=function(){var M=_.g.apply(this,arguments)||this;M.systemIcons=_.U("kevlar_system_icons");M.frostedGlass=_.U("web_frosted_glass");M.getEndpointForm=function(){return Dfd(M.data)};
return M};
_.w(AR,_.g);_.P=AR.prototype;_.P.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.P.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.CD(this.data.formattedTitle))};
_.P.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(M){if(this.data.serviceEndpoint){var z;_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.G(this.data.serviceEndpoint,_.je))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Rtl(this.data.serviceEndpoint,this);M.preventDefault()}else{var J;((J=this.data)==null?0:J.navigationEndpoint)&&!_.bP(_.CX(M),this.hostElement,["A".toString()])&&_.Pv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.P.computeActive=function(M,z){if(!M)return!1;var J=M.navigationEndpoint;M=M.serviceEndpoint;if(!J&&!M||!z)return!1;if(J){M=_.G(J,_.Gh);var R=_.G(z,_.Gh);if(M&&R)return M.browseId===R.browseId&&M.params===R.params;var D;J=(D=_.G(J.commandMetadata,_.X9))==null?void 0:D.url;var N;z=(N=_.G(z.commandMetadata,_.X9))==null?void 0:N.url;return!(!J||!z||J!==z&&J!==_.Ib(z))}return this.isActiveShortsTab(M,z)};
_.P.isActiveShortsTab=function(M,z){z=!!_.G(z,_.je)||!!_.G(z,_.qj);return(!!_.G(M,_.je)||!!_.G(M,_.qj))&&z};
_.P.computeTitle=function(M,z){return z?"":_.CD(M)};
_.rX.Object.defineProperties(AR.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
AR.prototype.onTap=AR.prototype.onTap;AR.prototype.onUp=AR.prototype.onUp;AR.prototype.onDown=AR.prototype.onDown;AR.prototype.onActiveStateChange=AR.prototype.onActiveStateChange;AR.prototype.dataChanged=AR.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0);
_.u([_.p(_.dL),_.W("design:type",Object)],AR.prototype,"ironButtonState",void 0);_.u([_.Y(),_.W("design:type",Object)],AR.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],AR.prototype,"activeEndpoint",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],AR.prototype,"noLabels",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.W("design:type",Boolean)],AR.prototype,"isActive",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],AR.prototype,"systemIcons",void 0);_.u([_.Qc("yt-interaction"),_.W("design:type",Object)],AR.prototype,"interaction",void 0);_.u([_.F("isActive"),_.W("design:type",Object),_.W("design:paramtypes",[])],AR.prototype,"ariaSelected",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],AR.prototype,"frostedGlass",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AR.prototype,"dataChanged",null);_.u([_.la("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AR.prototype,"onActiveStateChange",null);_.u([_.Xw("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AR.prototype,"onDown",null);
_.u([_.Xw("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AR.prototype,"onUp",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AR.prototype,"onTap",null);_.u([_.c({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],AR);
_.d(AR,"ytd-mini-guide-entry-renderer",function(){if(B5d!==void 0)return B5d;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return B5d=M},{mode:_.B5("kevlar_poly_si_batch_j063")?1:2});var OUl;var iB=function(){var M=_.g.apply(this,arguments)||this;M.allVideosCount=0;M.noLabels=_.U("kevlar_mini_guide_no_labels");M.frostedGlass=_.U("web_frosted_glass");return M};
_.w(iB,_.g);_.P=iB.prototype;_.P.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.P.onMouseEnter=function(){_.U("web_guide_hover_expansion")&&_.ZL(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.P.visibleChanged=function(){if(this.visible&&!this.data){var M=_.JF().resolve(_.zw(_.Lk));M&&M.setGuideData(this.hostElement)}};
_.P.dataChanged=function(){var M=[],z;if((z=this.data)!=null&&z.items){z=_.S(this.data.items);for(var J=z.next();!J.done;J=z.next()){J=J.value;var R=void 0;if((R=J.guideSectionRenderer)==null?0:R.items)for(R=void 0,J=_.S((R=J.guideSectionRenderer)==null?void 0:R.items),R=J.next();!R.done;R=J.next())if(R=R.value,R.guideEntryRenderer)R=R.guideEntryRenderer,R.isPrimary&&M.push({guideEntryRenderer:R});else if(R.guideCollapsibleSectionEntryRenderer){var D=void 0;((D=_.G(R.guideCollapsibleSectionEntryRenderer.headerEntry,
BT))==null?0:D.isPrimary)&&M.push({guideEntryRenderer:_.G(R.guideCollapsibleSectionEntryRenderer.headerEntry,BT)});if(R=R.guideCollapsibleSectionEntryRenderer.sectionItems)for(R=_.S(R),D=R.next();!D.done;D=R.next()){var N=D.value;D=_.G(N,L_N);var Z=void 0;((Z=_.G(N,BT))==null?0:Z.isPrimary)?M.push({guideEntryRenderer:_.G(N,BT)}):D&&(N=void 0,_.G((N=D)==null?void 0:N.entryRenderer,BT)&&(D.alwaysShow||this.allVideosCount)&&M.push({guideEntryRenderer:_.G(D.entryRenderer,BT)}))}}}}this.miniGuideItems=
M};
_.P.activeEndpointChanged=function(){for(var M=this.items.children,z=0;z<M.length;z++)M[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.registerWithViewTransitionManager=function(){var M=this;_.x4(_.no,function(){var z=_.JF().resolve(_.zw(_.xm));if(z&&z.isAnyTransitionEnabled){var J={};z.viewTransitionCoordinator.registerElement(M.hostElement,(J.slide="mini-guide-page-transition",J))}})};
iB.prototype.activeEndpointChanged=iB.prototype.activeEndpointChanged;iB.prototype.dataChanged=iB.prototype.dataChanged;iB.prototype.visibleChanged=iB.prototype.visibleChanged;iB.prototype.onMouseEnter=iB.prototype.onMouseEnter;_.u([_.p(_.Wg),_.W("design:type",Object)],iB.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],iB.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],iB.prototype,"ytComponentBehavior",void 0);_.u([_.Qc("#items"),_.W("design:type",Object)],iB.prototype,"items",void 0);_.u([_.Y(),_.W("design:type",Object)],iB.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],iB.prototype,"visible",void 0);_.u([_.Y(),_.W("design:type",Object)],iB.prototype,"miniGuideItems",void 0);_.u([_.Y({selector:_.bNp}),_.W("design:type",Object)],iB.prototype,"allVideosCount",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iB.prototype,"noLabels",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],iB.prototype,"frostedGlass",void 0);
_.u([_.Xw("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iB.prototype,"onMouseEnter",null);_.u([_.wH("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iB.prototype,"visibleChanged",null);_.u([_.wH("data","allVideosCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iB.prototype,"dataChanged",null);
_.u([_.wH("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iB.prototype,"activeEndpointChanged",null);_.u([_.c({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],iB);
_.d(iB,"ytd-mini-guide-renderer",function(){if(OUl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);OUl=M}M=OUl;return M},{mode:1});var T5u;var Iqu=/^[\x00-\x7F]+$/,C$=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(C$,_.g);_.rX.Object.defineProperties(C$.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var M,z=_.CD((M=this.data)==null?void 0:M.handle);if(z)return _.id("@"+z)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.CD(this.displayHandle),z,J=_.CD((z=this.data)==null?void 0:z.handleUrl);if(M&&J)return _.id(J+M)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var M=_.CD(this.displayHandle);if(M&&!Iqu.test(M)){var z;return(z=this.data)==null?void 0:z.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.CD(this.displayHandleUrl),z,J=_.CD((z=this.data)==null?void 0:z.urlInfoText);if(M&&J)return _.id(J+" "+M)}}});
_.u([_.Y(),_.W("design:type",Object)],C$.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"displayHandle",null);_.u([_.F("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"displayHandleUrl",null);_.u([_.F("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"warningText",null);
_.u([_.F("displayHandleUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"urlInfoTextWithUrl",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"darkerDarkTheme",void 0);_.u([_.c({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],C$);
_.d(C$,"ytd-handles-claiming-confirm-dialog-content",function(){if(T5u!==void 0)return T5u;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return T5u=M},{mode:1});var oxl;var bB=function(){var M=_.g.apply(this,arguments)||this;M.okButtonOverride={style:"mono",type:"outline",size:"M"};return M};
_.w(bB,_.g);bB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bB.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],bB.prototype,"okButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],bB.prototype,"data",void 0);_.u([_.c({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],bB);
_.d(bB,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(oxl!==void 0)return oxl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return oxl=M},{mode:1});var Xeu;var lqw=/^[\x00-\x7F]+$/,rO=function(){var M=_.g.apply(this,arguments)||this;M.isLoading=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(rO,_.g);rO.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var M;this.selectedHandle=(M=this.handleInput)==null?void 0:M.value;this.onSelectedHandleChanged(this.selectedHandle);_.ZL(this.hostElement,"yt-refit-popups-action")}};
_.rX.Object.defineProperties(rO.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.id("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.id(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!lqw.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],rO.prototype,"selectedHandle",void 0);_.u([_.Y(),_.W("design:type",Object)],rO.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Function)],rO.prototype,"onSelectedHandleChanged",void 0);_.u([_.Qc("#channel-handle-input"),_.W("design:type",Object)],rO.prototype,"handleInput",void 0);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rO.prototype,"handleUrlPrefix",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],rO.prototype,"displayHandle",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],rO.prototype,"displayHandleUrl",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],rO.prototype,"warningText",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],rO.prototype,"darkerDarkTheme",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.u([_.c({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],rO);
_.d(rO,"ytd-handles-claiming-edit-dialog-content",function(){if(Xeu!==void 0)return Xeu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Xeu=M},{mode:1});var esu;var Ml=function(){var M=_.g.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.selectButtonDisabled=!1;M.isLoading=!1;M.hasSelectedHandleEventListener=!1;M.selectedHandleChanged=function(z){M.selectedHandle=z};
return M};
_.w(Ml,_.g);_.P=Ml.prototype;_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.P.onDataChanged=function(){var M,z;this.selectedHandle=(z=_.G((M=this.data)==null?void 0:M.inputField,tEw))==null?void 0:z.handle};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.selectedHandle="";_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(J,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Cf(M.hostElement,_.CD(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var D;if((D=M.data)==null?0:D.onChannelUpdateSuccess){J=M.data.onChannelUpdateSuccess;var N,Z;if(R=(N=_.G(J,_.nM))==null?void 0:(Z=N.popup)==null?void 0:Z.handlesClaimingConfirmDialogRenderer)R.handle=_.id(M.selectedHandle);M.ytComponentBehavior.resolveCommand(J);_.S9(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){var J;M.content&&((J=M.content)==null?0:J.handleInput)&&M.content.handleInput.validate();M.isLoading=!1;_.Cf(M.hostElement,_.e9("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Ml.prototype.onDataChanged=Ml.prototype.onDataChanged;Ml.prototype.onSelectedHandleChanged=Ml.prototype.onSelectedHandleChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Ml.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"actionButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"cancelButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",String)],Ml.prototype,"selectedHandle",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"selectButtonDisabled",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"hasSelectedHandleEventListener",void 0);_.u([_.Y(),_.W("design:type",Object)],Ml.prototype,"handleInput",void 0);
_.u([_.la("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ml.prototype,"onSelectedHandleChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ml.prototype,"onDataChanged",null);_.u([_.Qc("ytd-handles-claiming-edit-dialog-content"),_.W("design:type",Object)],Ml.prototype,"content",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.u([_.c({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Ml);
_.d(Ml,"ytd-handles-claiming-edit-dialog-renderer",function(){if(esu!==void 0)return esu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return esu=M},{mode:1});var Q8w;var zK=function(){return _.g.apply(this,arguments)||this};
_.w(zK,_.g);_.rX.Object.defineProperties(zK.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.handle){var z;return _.id("@"+_.CD((z=this.data)==null?void 0:z.handle))}}}});
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"formattedHandle",null);_.u([_.Y(),_.W("design:type",Object)],zK.prototype,"data",void 0);_.u([_.c({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],zK);
_.d(zK,"ytd-handles-claiming-radio-option-renderer",function(){if(Q8w!==void 0)return Q8w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Q8w=M},{mode:1});var UOi;var vxw=/^[\x00-\x7F]+$/,Jl=function(){var M=_.g.apply(this,arguments)||this;M.initialRadioIndex="-1";M.isLoading=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.feedbackSurveyRenderer.submitSurvey()};
return M};
_.w(Jl,_.g);Jl.prototype.updateSelectedHandleIndexFromBinding=function(M){this.selectedRadioIndex=+M.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(M)};
Jl.prototype.selectedHandleChanged=function(M){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var z;this.selectedHandle=(z=this.handleInput)==null?void 0:z.value;this.onSelectedHandleChanged(M)}};
_.rX.Object.defineProperties(Jl.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return this.ytRendererBehavior.getSimpleString((M=this.data)==null?void 0:M.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.id("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.id(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!vxw.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.u([_.Y(),_.W("design:type",Object)],Jl.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Jl.prototype,"initialRadioIndex",void 0);_.u([_.Y(),_.W("design:type",Number)],Jl.prototype,"selectedRadioIndex",void 0);_.u([_.Y(),_.W("design:type",String)],Jl.prototype,"selectedHandle",void 0);_.u([_.Y(),_.W("design:type",Object)],Jl.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Function)],Jl.prototype,"onSelectedHandleChanged",void 0);
_.u([_.Y(),_.W("design:type",Function)],Jl.prototype,"onSelectedRadioIndexChanged",void 0);_.u([_.Qc("#channel-handle-input"),_.W("design:type",Object)],Jl.prototype,"handleInput",void 0);_.u([_.Qc("ytd-feedback-survey-renderer"),_.W("design:type",Object)],Jl.prototype,"feedbackSurveyRenderer",void 0);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],Jl.prototype,"radioButtonLength",null);
_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Jl.prototype,"handleUrlPrefix",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],Jl.prototype,"displayHandle",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],Jl.prototype,"displayHandleUrl",null);_.u([_.F("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],Jl.prototype,"warningText",null);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Jl.prototype,"darkerDarkTheme",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.u([_.c({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Jl);
_.d(Jl,"ytd-handles-claiming-select-dialog-content",function(){if(UOi!==void 0)return UOi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return UOi=M},{mode:1});var Ggw;var RD=function(){var M=_.g.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.initialRadioIndex="-1";M.selectButtonDisabled=!1;M.isLoading=!1;M.selectedRadioIndexChanged=function(z){M.selectedRadioIndex=Number(z.detail.value)};
M.selectedHandleChanged=function(z){M.selectedHandle=z.detail.value};
M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(RD,_.g);_.P=RD.prototype;_.P.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.P.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.ZL(this.hostElement,"yt-refit-popups-action")};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(J,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Cf(M.hostElement,_.CD(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var D;if((D=M.data)==null?0:D.onChannelUpdateSuccess){J=M.data.onChannelUpdateSuccess;R=_.G(J,_.nM);var N;if(R==null?0:(N=R.popup)==null?0:N.handlesClaimingConfirmDialogRenderer)R.popup.handlesClaimingConfirmDialogRenderer.handle=_.id(M.selectedHandle);M.ytComponentBehavior.resolveCommand(J);_.S9(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){if(M.selectedRadioIndex===M.radioButtonLength){var J;M.content&&((J=M.content)==null?0:J.handleInput)&&M.content.handleInput.validate()}M.isLoading=!1;_.Cf(M.hostElement,_.e9("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var M,z;this.selectedHandle=(M=this.content)==null?void 0:(z=M.handleInput)==null?void 0:z.value}else this.selectedRadioIndex>=0&&((M=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(M==null?void 0:M.handle):this.selectedHandle=void 0)};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.P.getRadioItem=function(M){if(this.radioButtonLength>M&&M>=0)return _.G(this.data.radioButton[M],ufw)};
_.rX.Object.defineProperties(RD.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}}});
RD.prototype.onSelectedHandleChanged=RD.prototype.onSelectedHandleChanged;RD.prototype.onSelectedHandleIndexChanged=RD.prototype.onSelectedHandleIndexChanged;RD.prototype.onDataChanged=RD.prototype.onDataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],RD.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"actionButtonOverride",void 0);_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"cancelButtonOverride",void 0);
_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"initialRadioIndex",void 0);_.u([_.Y(),_.W("design:type",Number)],RD.prototype,"selectedRadioIndex",void 0);_.u([_.Y(),_.W("design:type",String)],RD.prototype,"selectedHandle",void 0);_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"selectButtonDisabled",void 0);_.u([_.Y(),_.W("design:type",Object)],RD.prototype,"isLoading",void 0);
_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],RD.prototype,"radioButtonLength",null);_.u([_.Qc("ytd-handles-claiming-select-dialog-content"),_.W("design:type",Object)],RD.prototype,"content",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"onDataChanged",null);
_.u([_.la("selectedRadioIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"onSelectedHandleIndexChanged",null);_.u([_.la("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RD.prototype,"onSelectedHandleChanged",null);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],RD.prototype,"darkerDarkTheme",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.u([_.c({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],RD);
_.d(RD,"ytd-handles-claiming-select-dialog-renderer",function(){if(Ggw!==void 0)return Ggw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Ggw=M},{mode:1});var wem;var xOi;var D5=function(){return _.g.apply(this,arguments)||this};
_.w(D5,_.g);D5.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],D5.prototype,"data",void 0);_.u([_.c({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],D5);
_.d(D5,"ytd-hotkey-dialog-section-option-renderer",function(){if(xOi!==void 0)return xOi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return xOi=M},{mode:1});var tGw;var Nl=function(){return _.g.apply(this,arguments)||this};
_.w(Nl,_.g);Nl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Nl.prototype,"data",void 0);_.u([_.c({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Nl);
_.d(Nl,"ytd-hotkey-dialog-section-renderer",function(){if(tGw!==void 0)return tGw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return tGw=M},{mode:1});var PQ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(PQ,_.g);PQ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],PQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],PQ.prototype,"darkerDarkTheme",void 0);_.u([_.c({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],PQ);
_.d(PQ,"ytd-hotkey-dialog-content",function(){if(wem!==void 0)return wem;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return wem=M},{mode:1});var j8G;var Sv=function(){return _.g.apply(this,arguments)||this};
_.w(Sv,_.g);Sv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M=document.querySelector("ytd-hotkey-dialog-content #scrollable");M&&(M.dialogElement=this.hostElement.parentElement)};
Sv.prototype.onCloseTap=function(){_.S9(this.hostElement,"yt-close-popup-action")};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Sv.prototype,"data",void 0);_.u([_.c({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Sv);
_.d(Sv,"ytd-hotkey-dialog-renderer",function(){if(j8G!==void 0)return j8G;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return j8G=M},{mode:1});var pem;var Z5=function(){return _.g.apply(this,arguments)||this};
_.w(Z5,_.g);Z5.prototype.onYtServiceRequestError=function(){if(this.blocked){var M;var z=(M=this.data)==null?void 0:M.defaultServiceEndpoint}else{var J;z=(J=this.data)==null?void 0:J.toggledServiceEndpoint}var R;(z=(R=_.G(z,_.vDV))==null?void 0:R.onFailureAction)&&this.ytComponentBehavior.resolveCommand(z);this.updateBlockState(!this.blocked)};
Z5.prototype.onYtToggleButton=function(M){this.updateBlockState(M.detail.toggled)};
Z5.prototype.updateBlockState=function(M){if(M!==this.blocked){var z=this.blockedEntityKey;z&&this.ytdReduxBehavior.dispatch(_.pf("blockStateEntity",z,{key:z,blocked:M}));this.set("data.isToggled",M)}};
_.rX.Object.defineProperties(Z5.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)}}});
Z5.prototype.onYtToggleButton=Z5.prototype.onYtToggleButton;Z5.prototype.onYtServiceRequestError=Z5.prototype.onYtServiceRequestError;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Z5.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Z5.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Z5.prototype,"blockedEntityKey",void 0);
_.u([_.Y({selectorArgs:["blockedEntityKey"],selector:function(M,z){return _.Is(M.entities,"blockStateEntity",z)}}),
_.W("design:type",Object)],Z5.prototype,"blockStateEntity",void 0);_.u([_.F("data","blockStateEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z5.prototype,"blocked",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Z5.prototype,"onYtServiceRequestError",null);
_.u([_.Xw("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Z5.prototype,"onYtToggleButton",null);_.u([_.c({is:"ytd-block-button",disableElementRegistration:!0})],Z5);
_.d(Z5,"ytd-block-button",function(){if(pem!==void 0)return pem;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return pem=M},
{mode:1});var F0w;var YOw;var k3=function(){return _.g.apply(this,arguments)||this};
_.w(k3,_.g);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],k3.prototype,"data",void 0);_.u([_.c({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],k3);
_.d(k3,"ytd-kids-blocklist-picker-item-renderer",function(){if(YOw!==void 0)return YOw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return YOw=M},{mode:1});var BQ=function(){return _.g.apply(this,arguments)||this};
_.w(BQ,_.g);BQ.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],BQ.prototype,"data",void 0);_.u([_.c({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],BQ);
_.d(BQ,"ytd-kids-blocklist-picker-content",function(){if(F0w!==void 0)return F0w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return F0w=
M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var mOw;var Op=function(){var M=_.g.apply(this,arguments)||this;M.hasAnyRequestSucceeded=!1;M.hasAnyRequestFailed=!1;M.numPendingRequests=0;return M};
_.w(Op,_.g);_.P=Op.prototype;_.P.attached=function(){this.hostElement.setAttribute("dialog","")};
_.P.onDoneButtonTap=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.P.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.P.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.P.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.P.onPopupClosed=function(M){var z,J;if(((z=M.detail)==null?void 0:(J=z.popup)==null?void 0:J.is)==="tp-yt-paper-dialog"){var R;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((R=this.data)==null?0:R.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.zh(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Op.prototype.onPopupClosed=Op.prototype.onPopupClosed;Op.prototype.onYtServiceRequestError=Op.prototype.onYtServiceRequestError;Op.prototype.onYtServiceRequestCompleted=Op.prototype.onYtServiceRequestCompleted;Op.prototype.onYtServiceRequestSent=Op.prototype.onYtServiceRequestSent;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Op.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Op.prototype,"data",void 0);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Op.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Op.prototype,"onYtServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Op.prototype,"onYtServiceRequestError",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Op.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Op);
_.d(Op,"ytd-kids-blocklist-picker-renderer",function(){if(mOw!==void 0)return mOw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return mOw=M},{mode:1});var gxw;var s8l;var TK=function(){return _.g.apply(this,arguments)||this};
_.w(TK,_.g);TK.prototype.setTip=function(M){var z=this;this.data&&(this.tip=gkw(YSc.getInstance(),M,this.data),_.C4(this,function(){_.Pv(z.hostElement,"yt-refit")}))};
TK.prototype.clearTip=function(){this.tip=void 0};
TK.prototype.computeHidden=function(M){return!M};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],TK.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.W("design:type",Boolean)],TK.prototype,"hidden",void 0);_.u([_.Y(),_.W("design:type",Object)],TK.prototype,"tip",void 0);_.u([_.c({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],TK);
_.d(TK,"ytd-menu-popup-tip-renderer",function(){if(s8l!==void 0)return s8l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);
return s8l=M},{mode:1});var nxN;var ID=function(){var M=_.g.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.U("kevlar_system_icons");M.useListItemStyles=_.U("web_list_item_style_for_menu_items");return M};
_.w(ID,_.g);_.P=ID.prototype;_.P.onFocus=function(){var M;(M=_.SN(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.P.onTap=function(){var M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(M&&_.G(M,_.TV))this.componentBehavior.resolveCommand(M),this.updateToggledStateInEntity();else if(M){this.componentBehavior.resolveCommand(M)||_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}});var z;((z=_.G(M,_.on))==null?void 0:z.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.P.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.P.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.P.updateToggledStateInEntity=function(){var M=this.data.toggleMenuServiceItemEntityKey,z=!this.data.isToggled;M&&this.ytdReduxBehavior.dispatch(_.pf("toggleMenuServiceItemEntity",M,{key:M,isToggled:z}))};
_.P.computeIcon=function(M,z,J){return(M=M?J:z)&&M.iconType?_.oE(M.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.isIconActive=function(M){return!_.U("toggle_menu_active_icon_killswitch")&&M};
_.rX.Object.defineProperties(ID.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?0:M.isToggled)?(z=this.data)==null?void 0:z.toggledText:(J=this.data)==null?void 0:J.defaultText}}});
ID.prototype.toggledStateEntityChanged=ID.prototype.toggledStateEntityChanged;ID.prototype.onYtServiceRequestCompleted=ID.prototype.onYtServiceRequestCompleted;ID.prototype.onTap=ID.prototype.onTap;ID.prototype.onFocus=ID.prototype.onFocus;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ID.prototype,"componentBehavior",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],ID.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ID.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ID.prototype,"useIcons",void 0);_.u([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],ID.prototype,"icon",void 0);
_.u([_.Y({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(M,z){return _.Is(M.entities,"toggleMenuServiceItemEntity",z)}}),
_.W("design:type",Object)],ID.prototype,"toggleMenuServiceItemEntity",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ID.prototype,"systemIcons",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ID.prototype,"useListItemStyles",void 0);_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ID.prototype,"onFocus",null);
_.u([_.F("data.isToggled"),_.W("design:type",Object),_.W("design:paramtypes",[])],ID.prototype,"toggleButtonText",null);_.u([_.Xw("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ID.prototype,"onTap",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ID.prototype,"onYtServiceRequestCompleted",null);
_.u([_.la("toggleMenuServiceItemEntity.isToggled","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ID.prototype,"toggledStateEntityChanged",null);_.u([_.c({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ID);
_.d(ID,"ytd-toggle-menu-service-item-renderer",function(){if(nxN!==void 0)return nxN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return nxN=M},{mode:1});var hs5;var oD=function(){return _.g.apply(this,arguments)||this};
_.w(oD,_.g);oD.prototype.onFocus=function(){var M;(M=_.SN(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.rX.Object.defineProperties(oD.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.hr(this.data.iconUrl)}}});
oD.prototype.onFocus=oD.prototype.onFocus;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oD.prototype,"rendererBehavior",void 0);_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],oD.prototype,"ytEndpointBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],oD.prototype,"data",void 0);_.u([_.Xw("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oD.prototype,"onFocus",null);
_.u([_.F("data.iconUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],oD.prototype,"imageSource",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],oD);
_.d(oD,"ytd-menu-custom-icon-item-renderer",function(){if(hs5!==void 0)return hs5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return hs5=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});_.N7(_.uI,"yt-list-item-view-model",{props:{data:_.zn,isMenuItem:_.zn,isCompact:_.zn,onTap:_.Dv,trailingAccessory:_.Dv,hideSelectionTextChevron:_.zn,disabled:_.zn,inPopup:_.zn,disableHorizontalPadding:_.zn,isOverlay:_.zn,isToggled:_.zn,ariaLabel:_.zn,ariaPressed:_.zn}});var XO=function(){var M=_.g.apply(this,arguments)||this;M.disableBackdropFilter=_.U("web_disable_backdrop_filter");return M};
_.w(XO,_.g);_.P=XO.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.P.computeAriaLabel=function(M){return M};
_.P.onPopupOpened=function(){this.items.selected=0;for(var M=_.S(_.SN(this.items).children),z=M.next();!z.done;z=M.next())z.value.popupPositionTarget=this.positionTarget;if(M=this.popupTip||void 0)M.setTip(this.source||""),this.source=void 0;this.veData&&(M=_.y5())&&_.VC(M,[this.veData])};
_.P.onPopupClosed=function(){var M=this.popupTip||void 0;M&&M.clearTip()};
_.P.onIronActivate=function(M){this.shouldPersist(M)||_.S9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(M=_.y5())&&_.fY(M,this.veData)};
_.P.shouldPersist=function(M){var z,J;if(((z=M.detail)==null?void 0:z.selected)===void 0||(J=this.data)==null||!J.items)return!1;var R,D;return!((D=(R=this.data.items[M.detail.selected])==null?void 0:R.toggleMenuServiceItemRenderer)==null||!D.persistentOnMenuPopup)};
_.P.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(M){return M.menuNavigationItemRenderer?!!M.menuNavigationItemRenderer.icon:M.menuServiceItemRenderer?!!M.menuServiceItemRenderer.icon:M.menuConditionalServiceItemRenderer?!!M.menuConditionalServiceItemRenderer.icon:M.menuConditionalNavigationItemRenderer?!!M.menuConditionalNavigationItemRenderer.icon:M.toggleMenuServiceItemRenderer?!!M.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
XO.prototype.onPopupClosed=XO.prototype.onPopupClosed;XO.prototype.onPopupOpened=XO.prototype.onPopupOpened;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],XO.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],XO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],XO.prototype,"veData",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.W("design:type",String)],XO.prototype,"ariaLabel",void 0);_.u([_.Y({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],XO.prototype,"useIcons",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],XO.prototype,"disableBackdropFilter",void 0);_.u([_.Qc("#items"),_.W("design:type",Object)],XO.prototype,"items",void 0);_.u([_.Qc("ytd-menu-popup-tip-renderer"),_.W("design:type",Object)],XO.prototype,"popupTip",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"onPopupOpened",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],XO);
_.d(XO,"ytd-menu-popup-renderer",function(){if(gxw!==void 0)return gxw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return gxw=M},{mode:1});var yCl;var HUi=_.Mf(function(M){M=_.rH(M,{icon:void 0});var z=M.data;M=M.icon;var J=function(){return z().iconBadgeText},R={},D=_.Qe("yt-spec-icon-badge-shape",function(){a:switch(z().iconBadgeType){case "notification":var N="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":N="yt-spec-icon-badge-shape--type-cart";break a;default:N=""}return N},function(){a:switch(z().iconBadgeStyle){case "overlay":var N="yt-spec-icon-badge-shape--style-overlay";
break a;default:N=""}return N},(R["yt-spec-icon-badge-shape--text-size-small"]=function(){var N=J();
return!!((N==null?0:N.length)&&N.length>2)},R));
return _.T("yt-icon-badge-shape",null,_.T(_.I,{cond:M,then:function(N){return _.T("div",{class:D},_.T("div",{class:"yt-spec-icon-badge-shape__icon"},_.T(_.vS,{icon:N})),_.T(_.I,{cond:J,then:function(Z){return _.T("div",{class:"yt-spec-icon-badge-shape__badge"},Z)}}))}}))},"Mg");
HUi.idomCompat=!0;_.N7(HUi,"yt-icon-badge-shape",{props:{data:_.zn,icon:_.zn}});var le=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};M.unseenCount=0;M.isOverlay=!1;return M};
_.w(le,_.g);_.P=le.prototype;_.P.attached=function(){var M=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(z){M.onServiceWorkerMessage(z)})};
_.P.onDataChanged=function(){this.isAttached&&!this.JSC$20338_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20338_lastData=this.data};
_.P.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.computeIcon=function(){var M,z;return(M=this.data)==null?void 0:(z=M.icon)==null?void 0:z.iconType};
_.P.onServiceWorkerMessage=function(M){M.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.P.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.G(this.data.updateUnseenCountEndpoint,_.on)&&_.G(this.data.updateUnseenCountEndpoint,_.on).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.P.handleUpdateNotificationsUnseenCountAction=function(M){var z=this;M=_.G(M,sQw);M!=null&&M.unseenCount&&M.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(M.unseenCount),_.no.addLowPriorityJob(function(){z.data.updateUnseenCountEndpoint&&z.ytComponentBehavior.resolveCommand(z.data.updateUnseenCountEndpoint)},M.timeoutMs))};
_.P.onClick=function(){_.Pv(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var M=_.ZL(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),z=this.data.menuRequest;M&&M.length===1&&M[0]?_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):z&&this.ytComponentBehavior.resolveCommand(z)};
_.P.handleTopbarMenuClosedAction=function(M){M==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.P.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
_.P.sendUnseenCountRequest=function(M){var z=this;_.x4(_.no,function(){z.ytComponentBehavior.resolveCommand(M)})};
_.P.updateCountUI=function(M){this.set("unseenCount",M<9?M:"9+")};
_.rX.Object.defineProperties(le.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
le.prototype.handleUpdateNotificationsUnseenCountAction=le.prototype.handleUpdateNotificationsUnseenCountAction;le.prototype.onDataChanged=le.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],le.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.N4),_.W("design:type",Object)],le.prototype,"ytdOpenPopupBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],le.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],le.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],le.prototype,"unseenCount",void 0);_.u([_.Y(),_.W("design:type",Object)],le.prototype,"isOverlay",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],le.prototype,"showTooltips",void 0);_.u([_.Qc("yt-icon-button"),_.W("design:type",Object)],le.prototype,"iconButton",void 0);
_.u([_.F("unseenCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],le.prototype,"showNotificationCount",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],le.prototype,"onDataChanged",null);_.u([_.Xw("yt-update-notifications-unseen-count-action"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],le.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.u([_.c({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],le);
_.d(le,"ytd-notification-topbar-button-renderer",function(){if(yCl!==void 0)return yCl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return yCl=M},{mode:_.B5("kevlar_poly_si_batch_j025")?1:2});var cCd;var ev=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return M};
_.w(ev,_.g);ev.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}}}}}};
ev.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
ev.prototype.onDarkModeToggled=function(M){this.dark=M};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ev.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ev.prototype,"data",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],ev.prototype,"dark",void 0);
_.u([_.c({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],ev);
_.d(ev,"yt-pdg-buy-flow-header-renderer",function(){if(cCd!==void 0)return cCd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return cCd=M},{mode:1});var dOu;var K0l;var Qd=function(){var M=_.g.apply(this,arguments)||this;M.immediateValue=0;M.isDarkTheme=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w(Qd,_.g);_.P=Qd.prototype;_.P.created=function(){_.Vv.requestAvailability()};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.dataChanged=function(){var M=_.SN(this.hostElement).querySelector("#color-slider");M.immediateValue&&this.updateSliderKnobAndGradientStyles(M.immediateValue);this.data.notches[0].knobColorArgb&&_.Tp(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.qG(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.HW("HTML_DIR")==="rtl"&&_.SN(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.P.onSliderImmediateChange=function(){var M=_.SN(this.hostElement).querySelector("#color-slider");M.dragging&&(M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue)),this.updateSliderAria())};
_.P.onSliderChange=function(){var M=_.SN(this.hostElement).querySelector("#color-slider");M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue));this.updateSliderAria()};
_.P.updateSliderAria=function(){var M=_.SN(this.hostElement).querySelector("#color-slider"),z=_.SN(this.hostElement).querySelector("#color-slider");z=_.CD(this.data.notches[z.immediateValue].tierValue);_.BRb()&&_.Pv(this.hostElement,"iron-announce",{text:z});M.setAttribute("aria-valuetext",z)};
_.P.updateSuperThanksSelectedTierEntity=function(M){if(M!==this.immediateValue){var z,J,R=this==null?void 0:(z=this.data)==null?void 0:(J=z.superThanksSelectedTierEntity)==null?void 0:J.key;R&&R.length>0&&this.ytdReduxBehavior.dispatch(_.pf("superThanksSelectedTierEntity",R,{key:R,index:M}))}};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.updateSliderKnobAndGradientStyles=function(M){this.immediateValue=M;M=this.data.notches[M];if(M==null?0:M.knobColorArgb)var z={"--ytd-pdg-color-slider-knob-color":_.qG(M.knobColorArgb)};(M==null?0:M.linearGradientCssStyle)&&z!==null&&(z=Object.assign({},z,{"--ytd-pdg-color-slider-active-color":M==null?void 0:M.linearGradientCssStyle}));z!==null&&_.Tp(this.hostElement,z)};
Qd.prototype.onSliderChange=Qd.prototype.onSliderChange;Qd.prototype.onSliderImmediateChange=Qd.prototype.onSliderImmediateChange;Qd.prototype.dataChanged=Qd.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],Qd.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Qd.prototype,"immediateValue",void 0);_.u([_.Y(),_.W("design:type",Number)],Qd.prototype,"maxMarkers",void 0);
_.u([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Usd}),_.W("design:type",Object)],Qd.prototype,"superThanksSelectedTierEntity",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Qd.prototype,"isDarkTheme",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Qd.prototype,"ytdReduxBehavior",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qd.prototype,"dataChanged",null);
_.u([_.Xw("immediate-value-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qd.prototype,"onSliderImmediateChange",null);_.u([_.Xw("change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Qd.prototype,"onSliderChange",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Qd);
_.d(Qd,"ytd-pdg-color-slider-renderer",function(){if(K0l!==void 0)return K0l;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return K0l=M},{mode:1});var $Ot;var uFG;var Up=null;
_.sV({is:"ytd-comment-input",_template:function(){if(uFG!==void 0)return uFG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return uFG=M},
behaviors:[_.B2H.YtHostElementBehavior,_.pH,_.LZ.YtComponentBehavior,_.Bm.YtRendererstamperBehavior,_.H1k.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 _.As}},
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",_.ou(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;_.Q7();this.focus()},
detached:function(){document.removeEventListener("tap",_.ou(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,M);this.maybeUpdateTextDirection_();_.Pv(this.hostElement,"input")},
getInputRange_:function(){var M=_.oZ();if(M){M=M.getBrowserRangeObject();for(var z=M.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return M;z=z.parentNode}}M=this.getEditableTextArea_();M=_.qP(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,z,J){(z=this.emojiManager.createDocumentFragment(z,!0,!1,J===void 0?!0:J))&&z.childNodes.length!==0&&(M.collapsed||M.deleteContents(),J=z.lastChild,M.insertNode(z),_.y9v(J).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var M=_.oZ();if(M){var z=M.JSC$11258_getStartNode(),J=M.JSC$11258_getEndNode();if(Nvs(z)&&Nvs(J)){var R=M.JSC$11258_getStartOffset(),D;if(_.lN&&z.nodeType===Node.ELEMENT_NODE&&(D=_.ySQ(z)))_.qP(D,0).select();else{D=Qm(z)?z:_.cj(z,Qm);var N=Qm(J)?J:_.cj(J,Qm);if(D||N)if(M.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){M=!0;R===z.length&&(M=!1);if(Up==="end"||Up==="right")M=!1;z=z.parentNode;M=[].concat(_.Yj(z.parentNode.childNodes)).indexOf(z)+(M?0:1);_.qP(z.parentNode,
M).select()}}else D?D.previousSibling&&D.previousSibling.length>0?_.W0(J,M.JSC$11258_getEndOffset(),D.previousSibling,D.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),D.parentNode.insertBefore(z,D),_.W0(J,M.JSC$11258_getEndOffset(),z,0).select()):N&&(N.nextSibling&&N.nextSibling.length>0?_.W0(z,M.JSC$11258_getStartOffset(),N.nextSibling,1).select():(J=document.createTextNode("\u200b"),N.parentNode.insertBefore(J,N.nextSibling),_.W0(z,M.JSC$11258_getStartOffset(),J,J.length).select()));
Up=null}}else Up=null}else Up=null},
leftKeyPressed_:function(){Up="left"},
rightKeyPressed_:function(){Up="right"},
endKeyPressed_:function(){Up="end"},
maybeDeleteChip_:function(){var M=OeN(!0);if(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();_.c0(J,z,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=OeN(!1);if(M){var z=_.oZ(),J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();_.c0(J,z,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var z=_.oZ();if(z.isCollapsed()){var J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();var R=Tvw(J,z,!0);R&&(_.c0(J,z,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var z=_.oZ();if(z.isCollapsed()){var J=z.JSC$11258_getStartNode();z=z.JSC$11258_getStartOffset();var R=Tvw(J,z,!1);R&&(_.c0(J,z,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onContentClick:function(M){M.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(M){M.defaultPrevented||M.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Qm(M.target)&&M.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.SN(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.SN(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(M,z){M=SUv(M,this.emojiManager,z).cloneNode(!0);for(z=M.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var J=_.nQ();_.W$V(J,z);z=J.nextSibling;break;case "DIV":(J=z.lastChild)&&z.nextSibling&&_.cK(_.nQ(),J);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.HK(_.nQ(),z);J&&J.nodeName==="BR"&&_.eJ(J);J=z;z.hasChildNodes()?(z=z.firstChild,
_.aV2(J)):(z=z.nextSibling,_.eJ(J));break;default:z=z.nextSibling}return Ifm(M)},
setTextAreaValue:function(M){M||(M="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});z.text=M},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Up=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.qP(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.HW("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",z)}},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(M=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(M,!0);this.updateCharCount_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(M){this.isEmojiButtonDisplayed&&(M.preventDefault(),M.stopImmediatePropagation(),M=M.clipboardData.getData("text/plain"),this.insertText_(M,!1,!1),_.Pv(this.hostElement,"input"))},
insertText_:function(M,z,J){z=z===void 0?!1:z;J=J===void 0?!0:J;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(z&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,J),P5w(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
getSimpleString:_.CD,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computePlaceholderText_:function(M){return this.getSimpleString(M)},
computeEditableText_:function(M){return this.getSimpleString(M)},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(M,z){M?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var z=this.getEditableTextArea_();[].concat(_.Yj(M.dataTransfer.items)).forEach(function(J){J.kind==="string"&&J.type.match("^text/plain")&&J.getAsString(function(R){z.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.SN(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,J=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-J)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-z;_.SN(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dc("yt-post"));return this.localStorage}});var vQ=function(){var M=_.g.apply(this,arguments)||this;M.currentCommentOptionIndex=0;M.isEmojiPickerDisplayed=!1;M.emojiManager=_.As;M.isUgcEmpty=!1;M.userGeneratedCommentChangedHandler=function(){_.Pv(M.hostElement,"ytd-pdg-user-generated-comment-changed");M.isEmojiYtdCommentInputEnabled&&(M.isUgcEmpty=!M.ytdCommentInputEl.getTextAreaValue())};
M.pasteHandler=function(z){z.preventDefault();z.stopImmediatePropagation();var J;if(z=(J=z.clipboardData)==null?void 0:J.getData("text/plain"))J=document.getSelection().getRangeAt(0),J.collapsed||J.deleteContents(),z=document.createTextNode(z),J.insertNode(z),J.selectNodeContents(z),J.collapse(!1),z=window.getSelection(),z.removeAllRanges(),z.addRange(J)};
M.onDocumentClick=function(z){if(M.isEmojiPickerDisplayed){var J,R,D;!(z.target instanceof Node)||(J=z.composedPath())!=null&&J.includes(M.editableTextEl)||(R=z.composedPath())!=null&&R.includes(M.emojiButtonEl)||(D=z.composedPath())!=null&&D.includes(M.emojiPickerEl)||(M.isEmojiPickerDisplayed=!1)}};
return M};
_.w(vQ,_.g);_.P=vQ.prototype;_.P.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.P.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.P.detached=function(){var M;(M=this.contentEl)==null||M.removeEventListener("input",this.userGeneratedCommentChangedHandler);var z;(z=this.contentEl)==null||z.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.P.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.P.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var M;this.contentEl.textContent=this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.P.reloadEmojis=function(){this.emojiPickerEl&&_.G(this.emojiPicker,_.nDV)&&this.emojiPickerEl.updateEmojiCategories()};
_.P.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Tp(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.P.handleBackgroundColorStyling=function(){var M;if((M=this.currentCommentOption)==null?0:M.commentBackgroundColorArgb){var z;_.Tp(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.qG((z=this.currentCommentOption)==null?void 0:z.commentBackgroundColorArgb)})}else _.Tp(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.P.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var M;(M=this.contentEl)==null||M.focus()}};
_.P.onEditButtonClick=function(M){var z=document.getSelection();z&&this.contentEl&&(M.stopPropagation(),M.preventDefault(),z.selectAllChildren(this.contentEl),z.collapseToEnd())};
_.P.onContentDrop=function(M){var z=this;if(M.dataTransfer){M=_.S(M.dataTransfer.items);for(var J=M.next();!J.done;J=M.next())J=J.value,J.kind==="string"&&J.type.match("^text/plain")&&J.getAsString(function(R){var D;(D=z.contentEl)==null||D.appendChild(document.createTextNode(R))})}};
_.P.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.P.getUserGeneratedCommentText=function(){var M,z=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(M=this.contentEl)==null?void 0:M.textContent;return z?z.trim():""};
_.P.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.P.onEmojiSelect=function(M){this.ytdCommentInputEl.onEmojiSelect(M)};
_.rX.Object.defineProperties(vQ.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.currentCommentOption)==null||!M.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(_.G((M=this.currentCommentOption)==null?void 0:M.chipRenderer,_.C$$)){var z;return _.G((z=this.currentCommentOption)==null?void 0:z.chipRenderer,_.C$$)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var M,z;return((M=this.data)==null?0:M.commentOptionRenderers)?_.G((z=this.data)==null?void 0:z.commentOptionRenderers[this.superThanksSelectedTierEntity.index],DKu):void 0}var J,R;return((J=this.data)==null?0:J.commentOptionRenderers)?_.G((R=this.data)==null?void 0:R.commentOptionRenderers[this.currentCommentOptionIndex],DKu):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.commentDialog,_.wR2))==null?void 0:z.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.commentDialog,_.wR2))==null?void 0:z.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=_.G((M=this.data)==null?void 0:M.commentDialog,_.wR2))==null?void 0:z.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(z=_.G((M=this.data)==null?void 0:M.commentDialog,_.wR2))==null?void 0:z.emojiPicker;if(!_.G(J,_.nDV)||!_.G(J,_.nDV).categories)return!1;M=function(N){return N.emojiPickerCategoryRenderer?N.emojiPickerCategoryRenderer.emojiIds&&N.emojiPickerCategoryRenderer.emojiIds.length>0:N.emojiPickerUpsellCategoryRenderer?N.emojiPickerUpsellCategoryRenderer.emojis&&N.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var R,D;return((R=_.G(J,_.nDV))==null?0:(D=R.categories)==null?0:D.find(M))?!0:!1}}});
vQ.prototype.onEmojiSelect=vQ.prototype.onEmojiSelect;vQ.prototype.dataChanged=vQ.prototype.dataChanged;vQ.prototype.currentCommentOptionChanged=vQ.prototype.currentCommentOptionChanged;_.u([_.p(_.Wg),_.W("design:type",Object)],vQ.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vQ.prototype,"rendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Qc("#content-dom-if"),_.W("design:type",_.hJ)],vQ.prototype,"contentDomIfEl",void 0);_.u([_.Qc("#content-no-emojis"),_.W("design:type",HTMLElement)],vQ.prototype,"contentEl",void 0);_.u([_.Qc("#container"),_.W("design:type",HTMLElement)],vQ.prototype,"containerEl",void 0);_.u([_.Qc("#comment-chip-container"),_.W("design:type",HTMLElement)],vQ.prototype,"paidCommentChipContainerEl",void 0);_.u([_.Qc("#text-input"),_.W("design:type",HTMLElement)],vQ.prototype,"editableTextEl",void 0);
_.u([_.Qc("#emoji-button"),_.W("design:type",HTMLElement)],vQ.prototype,"emojiButtonEl",void 0);_.u([_.Qc("#emoji-picker > yt-emoji-picker-renderer"),_.W("design:type",Object)],vQ.prototype,"emojiPickerEl",void 0);_.u([_.Qc("#text-input > ytd-comment-input"),_.W("design:type",Object)],vQ.prototype,"ytdCommentInputEl",void 0);_.u([_.Y(),_.W("design:type",Object)],vQ.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],vQ.prototype,"currentCommentOptionIndex",void 0);
_.u([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Usd}),_.W("design:type",Object)],vQ.prototype,"superThanksSelectedTierEntity",void 0);_.u([_.Y(),_.W("design:type",Object)],vQ.prototype,"isEmojiPickerDisplayed",void 0);_.u([_.Y(),_.W("design:type",Object)],vQ.prototype,"emojiManager",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],vQ.prototype,"isUgcEmpty",void 0);
_.u([_.la("currentCommentOption"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vQ.prototype,"currentCommentOptionChanged",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vQ.prototype,"dataChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vQ.prototype,"isEmojiYtdCommentInputEnabled",null);
_.u([_.F("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"title",null);_.u([_.F("data.authorText"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"channelName",null);_.u([_.F("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vQ.prototype,"shouldShowPaidCommentChipRenderer",null);
_.u([_.F("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"paidCommentChipRenderer",null);_.u([_.F("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"currentCommentOption",null);
_.u([_.F("data.defaultCommentText","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"commentText",null);_.u([_.F("data.placeholderText"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"placeholderText",null);_.u([_.F("data.commentDialog.commentDialogRenderer.editableText"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"editableText",null);
_.u([_.F("data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"emojiButton",null);_.u([_.F("data.commentDialog.commentDialogRenderer.emojiPicker"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"emojiPicker",null);
_.u([_.F("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vQ.prototype,"isEmojiButtonDisplayed",null);_.u([_.Xw("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],vQ.prototype,"onEmojiSelect",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],vQ);
_.d(vQ,"ytd-pdg-comment-preview-renderer",function(){if($Ot!==void 0)return $Ot;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return $Ot=M},{mode:2});var qON;var GK=function(){var M=_.g.apply(this,arguments)||this;M.selected=!1;return M};
_.w(GK,_.g);_.P=GK.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.P.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.P.dataChanged=function(){this.data&&(_.ZE(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Tp(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.qG(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.qG(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.P.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.P.onClick=function(){this.logClick()};
_.P.onKeyboardSelect=function(){_.Pv(this.hostElement,"tap");this.onClick()};
_.P.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
GK.prototype.onClick=GK.prototype.onClick;GK.prototype.selectedChanged=GK.prototype.selectedChanged;GK.prototype.dataChanged=GK.prototype.dataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],GK.prototype,"componentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.pH),_.W("design:type",Object)],GK.prototype,"ironA11yKeysBehavior",void 0);
_.u([_.p(_.fd),_.W("design:type",Object)],GK.prototype,"ironSelectableBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],GK.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],GK.prototype,"shownThumbnail",void 0);_.u([_.Y(),_.W("design:type",Object)],GK.prototype,"basePriceText",void 0);_.u([_.Y(),_.W("design:type",Object)],GK.prototype,"purchaseCommand",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],GK.prototype,"selected",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GK.prototype,"dataChanged",null);_.u([_.la("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GK.prototype,"selectedChanged",null);_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GK.prototype,"onClick",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],GK);
_.d(GK,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(qON!==void 0)return qON;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return qON=M},{mode:1});var wz=function(){var M=_.g.apply(this,arguments)||this;M.selectedItemIndex=0;M.buyButtonDisabled=!1;return M};
_.w(wz,_.g);_.P=wz.prototype;
_.P.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.P.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var M;var z=(M=_.G(this.data.colorSlider,R1t))==null?void 0:M.notches[this.selectedItemIndex].purchaseCommand}else{var J;z=(J=_.G(this.data.selectableItemButtons[this.selectedItemIndex],PTw))==null?void 0:J.purchaseCommand}if(z){M=_.G(z,_.sYa);M.productData||(M.productData={});var R;M.productData={pdgData:{commentMessageText:(R=this.commentPreviewRenderer)==null?void 0:R.getUserGeneratedCommentText()}};
_.Pv(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(z)}}};
_.P.dataChanged=function(){if(this.data){_.As.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.OPp(_.As,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.As.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var M;this.buyButtonDisabled=!((M=_.G(this.data.commentPreview,Nxw))==null||!M.placeholderText);this.updatePriceSelectorStatus();var z;if((z=this.data)==null?0:z.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;M=[];this.data.preloadImages&&(M=this.data.preloadImages);
M=M.map(function(J){return _.PS(J.thumbnails,1920)});
M=_.S(M);for(z=M.next();!z.done;z=M.next())(z=z.value)&&_.dwp(z).thenCatch(function(){_.yA(Error("ol"))})}};
_.P.superThanksSelectedTierEntityChanged=function(){var M;(this==null?void 0:(M=this.superThanksSelectedTierEntity)==null?void 0:M.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.P.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.P.updatePriceSelectorStatus=function(){this.isColorSlider?(_.SN(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.SN(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.SN(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.SN(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.P.closeBuyFlow=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.P.onUserGeneratedContentChanged=function(){var M;this.buyButtonDisabled=!((M=this.commentPreviewRenderer)==null?0:M.getUserGeneratedCommentText())};
_.P.updateSelectedItemIndexFromBinding=function(M){this.selectedItemIndex=M.detail.value};
_.rX.Object.defineProperties(wz.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disclaimerText)}}});
wz.prototype.onUserGeneratedContentChanged=wz.prototype.onUserGeneratedContentChanged;wz.prototype.closeBuyFlow=wz.prototype.closeBuyFlow;wz.prototype.selectedItemIndexChanged=wz.prototype.selectedItemIndexChanged;wz.prototype.superThanksSelectedTierEntityChanged=wz.prototype.superThanksSelectedTierEntityChanged;wz.prototype.dataChanged=wz.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],wz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],wz.prototype,"selectedItemIndex",void 0);_.u([_.Y(),_.W("design:type",Boolean)],wz.prototype,"isColorSlider",void 0);
_.u([_.Y(),_.W("design:type",Object)],wz.prototype,"buyButtonDisabled",void 0);_.u([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Usd}),_.W("design:type",Object)],wz.prototype,"superThanksSelectedTierEntity",void 0);_.u([_.Qc("ytd-pdg-comment-preview-renderer"),_.W("design:type",Object)],wz.prototype,"commentPreviewRenderer",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wz.prototype,"dataChanged",null);_.u([_.la("superThanksSelectedTierEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wz.prototype,"superThanksSelectedTierEntityChanged",null);_.u([_.la("selectedItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wz.prototype,"selectedItemIndexChanged",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wz.prototype,"closeBuyFlow",null);_.u([_.Xw("ytd-pdg-user-generated-comment-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wz.prototype,"onUserGeneratedContentChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wz.prototype,"isDisclaimerTextShown",null);
_.u([_.c({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],wz);
_.d(wz,"yt-super-vod-buy-flow-content-renderer",function(){if(dOu!==void 0)return dOu;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return dOu=M},{mode:1});var W0s;var x3=function(){var M=_.g.apply(this,arguments)||this;M.lottieAnimationRef={};return M};
_.w(x3,_.g);_.P=x3.prototype;_.P.created=function(){_.Vv.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ou(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.P.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Pv(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.P.detached=function(){this.autoCloseJobId&&_.no.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ou(this,this.onPopupIronOverlayOpened))};
_.P.dataChanged=function(){var M=this;this.data&&this.data.autoCloseDelay&&(_.S9(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.BS(_.no,function(){M.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Tp(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.P.onDOMLoadedLottie=function(){var M=this,z,J,R=Number((z=this.data)==null?void 0:(J=z.autoCloseDelay)==null?void 0:J.seconds)||0;this.fadeOutJobId=_.BS(_.no,function(){M.lottiePlayerEl.classList.add("fadeout")},(R-.25)*1E3);
this.autoCloseJobId=_.BS(_.no,function(){M.closePopup()},R*1E3)};
_.P.openPopup=function(){this.ironOverlayBehavior.open()};
_.P.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.S9(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Bv(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.JF().resolve(_.Rb).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.no.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.no.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.P.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var M,z;(M=this.lottieAnimationRef)==null||(z=M.lottieEl)==null||z.destroy();M=this.data.lottie;var J,R;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:M.url+"_"+Math.random(),path:M.url,autoplay:!0,loop:(R=(J=M.settings)==null?void 0:J.loop)!=null?R:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.rX.Object.defineProperties(x3.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var M,z;return!!((M=this.data)==null?0:(z=M.lottie)==null?0:z.url)}}});
x3.prototype.maybeInitializeLottie=x3.prototype.maybeInitializeLottie;x3.prototype.dataChanged=x3.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],x3.prototype,"rendererBehavior",void 0);_.u([_.p(_.i$),_.W("design:type",Object)],x3.prototype,"ironOverlayBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],x3.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],x3.prototype,"lottiePlayerProps",void 0);
_.u([_.Y(),_.W("design:type",Object)],x3.prototype,"lottieAnimationRef",void 0);_.u([_.Qc("ytd-lottie-player"),_.W("design:type",HTMLElement)],x3.prototype,"lottiePlayerEl",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"dataChanged",null);_.u([_.F("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],x3.prototype,"hasLottieAnimation",null);
_.u([_.la("data.lottie.url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"maybeInitializeLottie",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],x3);
_.d(x3,"ytd-desktop-image-overlay-renderer",function(){if(W0s!==void 0)return W0s;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return W0s=M},{mode:1});var aqG;var tl=function(){return _.g.apply(this,arguments)||this};
_.w(tl,_.g);_.P=tl.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.ou(this,this.closePopup))};
_.P.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ou(this,this.closePopup))};
_.P.dataChanged=function(){_.ZL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.G(this.data.header,Jsu)&&(this.hasBackgroundBanner=!!_.G(this.data.header,Jsu).backgroundBanner)};
_.P.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ou(this,this.closePopup))};
_.P.closePopup=function(){this.data&&this.data.onCloseCommand&&_.kQ(this.hostElement,[this.data.onCloseCommand])};
tl.prototype.handleBuyflowSelectionSubmitted=tl.prototype.handleBuyflowSelectionSubmitted;tl.prototype.dataChanged=tl.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tl.prototype,"data",void 0);
_.u([_.Y({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],tl.prototype,"hasBackgroundBanner",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tl.prototype,"dataChanged",null);_.u([_.Xw("yt-pdg-buy-flow-selection-submitted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tl.prototype,"handleBuyflowSelectionSubmitted",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],tl);
_.d(tl,"ytd-pdg-buy-flow-renderer",function(){if(aqG!==void 0)return aqG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return aqG=M},{mode:1});var VGl;var jv=function(){var M=_.g.apply(this,arguments)||this;M.isOpen=!1;M.isPlaylistCreated=!1;return M};
_.w(jv,_.g);_.P=jv.prototype;_.P.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.P.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Pv(this.hostElement,"yt-refit")};
_.P.onCreateTap=function(){var M=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.kQ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(z,J){if(!_.U("killswitch_ep_in_create_playlist_response")&&(J==null?0:J.actions))for(z=_.S(J.actions),J=z.next();!J.done;J=z.next())J=J.value,_.G(J,_.yq)&&M.ytComponentBehavior.resolveCommand(J)}}]),this.isPlaylistCreated=!0)};
_.P.onKeydown=function(M){if(M.keyCode===13)this.onCreateTap()};
_.P.onServiceRequestCompleted=function(M){M.stopPropagation();_.S9(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.P.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
jv.prototype.onServiceRequestCompleted=jv.prototype.onServiceRequestCompleted;jv.prototype.onKeydown=jv.prototype.onKeydown;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],jv.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jv.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],jv.prototype,"isOpen",void 0);
_.u([_.Y(),_.W("design:type",Object)],jv.prototype,"isPlaylistCreated",void 0);_.u([_.Y({value:{REQUIRED_LABEL:_.e9("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.e9("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],jv.prototype,"addToStrings",void 0);_.u([_.Y({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.W("design:type",Array)],jv.prototype,"privacyBadge",void 0);
_.u([_.Qc("#privacy-input"),_.W("design:type",Object)],jv.prototype,"privacyInput",void 0);_.u([_.Qc("#name-input"),_.W("design:type",Object)],jv.prototype,"nameInput",void 0);_.u([_.Xw("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],jv.prototype,"onKeydown",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jv.prototype,"onServiceRequestCompleted",null);
_.u([_.c({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],jv);
_.d(jv,"ytd-add-to-playlist-create-renderer",function(){if(VGl!==void 0)return VGl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return VGl=M},{mode:1});var Exi;var fq5;var pI=function(){var M=_.g.apply(this,arguments)||this;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.w(pI,_.g);pI.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
pI.prototype.onCheckboxChange=function(M){var z=this;this.data&&_.Vc(this,"yt-playlist-checkbox-changed",function(){var J=_.b7(M).checked?z.data.addToPlaylistServiceEndpoint:z.data.removeFromPlaylistServiceEndpoint;J&&_.JF().resolve(_.Rb).resolveCommand(J,{form:{element:z.hostElement}});_.U("dl_playlist_killswitch")||z.transferState!=="TRANSFER_STATE_UNKNOWN"&&z.transferState!=="TRANSFER_STATE_FAILED"&&z.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:z.data.playlistId,action:"ACTION_SYNC"}})},
100)};
pI.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
pI.prototype.dataChanged=pI.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pI.prototype,"data",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],pI.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);_.u([_.Qc("#checkbox"),_.W("design:type",HTMLInputElement)],pI.prototype,"checkbox",void 0);
_.u([_.Y({selector:_.$f,selectorArgs:["data.playlistId"]}),_.W("design:type",String)],pI.prototype,"transferState",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pI.prototype,"dataChanged",null);_.u([_.c({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],pI);
_.d(pI,"ytd-playlist-add-to-option-renderer",function(){if(fq5!==void 0)return fq5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fq5=M},{mode:1});_.RO(oSl);var L0i=_.Mf(function(M){var z=M.data;return _.T("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.T("div",null,_.T(_.m3,{text:function(){return z().title}})),_.T(_.I,{cond:function(){return z().subtitle},
then:function(J){return _.T("div",{class:"ytd-menu-title-renderer__subtitle"},_.T(_.m3,{text:J}))}}))},"Ng"),ACm=_.U("web_enable_sink_ytd_menu_title_renderer_ks")?oSl:L0i,iUw=_.U("web_enable_sink_ytd_menu_title_renderer_ks")?_.lP(oSl):L0i;
L0i.idomCompat=!0;_.U("web_enable_sink_ytd_menu_title_renderer_ks")?_.Il(ACm,"ytd-menu-title-renderer",{propNames:["data"]}):_.N7(iUw,"ytd-menu-title-renderer",{props:{data:_.zn}});var FO=function(){var M=_.g.apply(this,arguments)||this;M.addToStrings={ADD_TO_DROPDOWN_LABEL:_.e9("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};M.closeButtonAriaLabel=_.e9("SBOX_INAPPROPRIATE_CANCEL");M.dialog=_.U("desktop_add_to_playlist_renderer_dialog_popup");return M};
_.w(FO,_.g);_.P=FO.prototype;_.P.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.P.onPopupOpened=function(){_.kz(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.P.onPopupClosed=function(){_.kz(this.playlists,"scrollable",!1)};
_.P.computeAriaLabel=function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.S(this.data.actions);for(var z=M.next();!z.done;z=M.next())if(z=z.value,z.menuTitleRenderer)return _.CD(z.menuTitleRenderer.title)}};
_.P.onTapClose=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.rX.Object.defineProperties(FO.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.S(this.data.actions);for(var z=M.next();!z.done;z=M.next())if(z=z.value,z.menuTitleRenderer)return z.menuTitleRenderer}return!1}}});
FO.prototype.onPopupClosed=FO.prototype.onPopupClosed;FO.prototype.onPopupOpened=FO.prototype.onPopupOpened;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],FO.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],FO.prototype,"ytRendererStamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],FO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],FO.prototype,"addToStrings",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],FO.prototype,"ariaLabel",void 0);_.u([_.Y(),_.W("design:type",String)],FO.prototype,"closeButtonAriaLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],FO.prototype,"dialog",void 0);
_.u([_.Qc("#playlists"),_.W("design:type",HTMLElement)],FO.prototype,"playlists",void 0);_.u([_.Qc("ytd-add-to-playlist-create-renderer"),_.W("design:type",Object)],FO.prototype,"createRenderer",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],FO.prototype,"menuTitleRenderer",null);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FO.prototype,"onPopupOpened",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FO.prototype,"onPopupClosed",null);_.u([_.c({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],FO);
_.d(FO,"ytd-add-to-playlist-renderer",function(){if(Exi!==void 0)return Exi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Exi=M},{mode:1});var CVt;var Y3=function(){var M=_.g.apply(this,arguments)||this;M.isPlaylistEditComplete=!1;M.isCollabEngagementDisabled=!1;M.closeButtonAriaLabel=_.e9("SBOX_INAPPROPRIATE_CANCEL");M.saveButton={title:_.e9("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};M.onValueChanged=function(){M.updateSaveButtonState();M.computeCollabEngagementDisabled()};
return M};
_.w(Y3,_.g);_.P=Y3.prototype;_.P.attached=function(){this.JSC$20394_scroller&&(this.JSC$20394_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20394_scroller.attached&&typeof this.JSC$20394_scroller.attached==="function"&&this.JSC$20394_scroller.attached())};
_.P.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.P.onPopupClosed=function(){this.reset()};
_.P.close=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.P.onClickSave=function(){var M=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var z=[];this.nameInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var J=Number(this.privacyInput.value);isNaN(J)||z.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:J})}this.votingInput.value!==null&&(J=this.votingInput.value)&&z.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:J});if(z.length>0){var R;_.G((R=this.data)==null?void 0:R.updateSettingsEndpoint,_.uU).actions=z;var D;if((D=this.data)==null?0:D.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){M.close()}}}),this.isPlaylistEditComplete=!0}}};
_.P.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
_.P.computeEditorData=function(M){var z,J;return M==null?void 0:(z=M.sections)==null?void 0:(J=z[0])==null?void 0:J.playlistSettingsEditorCasualSectionRenderer};
_.P.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.P.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.P.computeAriaLabel=function(){var M,z,J,R=(M=this.data)==null?void 0:(z=M.sections)==null?void 0:(J=z[0])==null?void 0:J.playlistSettingsEditorCasualSectionRenderer;return _.CD(R==null?void 0:R.title)};
_.P.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.P.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.P.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.P.isNameChanged=function(){var M,z,J;return(((M=this.editorData)==null?void 0:(z=M.name)==null?void 0:(J=z.textInputFormFieldRenderer)==null?void 0:J.value)||"")!==(this.nameInput.value||"")};
_.P.isDescriptionChanged=function(){var M,z,J;return(((M=this.editorData)==null?void 0:(z=M.description)==null?void 0:(J=z.textInputFormFieldRenderer)==null?void 0:J.value)||"")!==(this.descriptionInput.value||"")};
_.P.isPrivacyChanged=function(){var M,z,J,R,D,N,Z,B;return((Z=(M=this.editorData)==null?void 0:(z=M.privacy)==null?void 0:(J=z.dropdownFormFieldRenderer)==null?void 0:(R=J.dropdown)==null?void 0:(D=R.dropdownRenderer)==null?void 0:(N=D.entries)==null?void 0:N.find(function(O){var X;return O==null?void 0:(X=O.privacyDropdownItemRenderer)==null?void 0:X.isSelected}))==null?void 0:(B=Z.privacyDropdownItemRenderer)==null?void 0:B.int32Value)!==this.privacyInput.value};
_.P.isVotingChanged=function(){var M,z,J,R,D,N,Z,B;return((Z=(M=this.editorData)==null?void 0:(z=M.voting)==null?void 0:(J=z.dropdownFormFieldRenderer)==null?void 0:(R=J.dropdown)==null?void 0:(D=R.dropdownRenderer)==null?void 0:(N=D.entries)==null?void 0:N.find(function(O){var X;return O==null?void 0:(X=O.privacyDropdownItemRenderer)==null?void 0:X.isSelected}))==null?void 0:(B=Z.privacyDropdownItemRenderer)==null?void 0:B.int32Value)!==this.votingInput.value};
Y3.prototype.onPopupClosed=Y3.prototype.onPopupClosed;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Y3.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Y3.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererStamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Y3.prototype,"data",void 0);_.u([_.Y({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.W("design:type",Array)],Y3.prototype,"privacyBadge",void 0);_.u([_.Y({computed:"computeEditorData(data)"}),_.W("design:type",Object)],Y3.prototype,"editorData",void 0);_.u([_.Y(),_.W("design:type",Object)],Y3.prototype,"isPlaylistEditComplete",void 0);_.u([_.Y(),_.W("design:type",Object)],Y3.prototype,"isCollabEngagementDisabled",void 0);
_.u([_.Y({value:{REQUIRED_LABEL:_.e9("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.e9("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],Y3.prototype,"addToStrings",void 0);_.u([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],Y3.prototype,"ariaLabel",void 0);_.u([_.Y(),_.W("design:type",String)],Y3.prototype,"closeButtonAriaLabel",void 0);
_.u([_.Y(),_.W("design:type",Object)],Y3.prototype,"saveButton",void 0);_.u([_.Qc("#name-input"),_.W("design:type",Object)],Y3.prototype,"nameInput",void 0);_.u([_.Qc("#description-input"),_.W("design:type",Object)],Y3.prototype,"descriptionInput",void 0);_.u([_.Qc("#privacy-input"),_.W("design:type",Object)],Y3.prototype,"privacyInput",void 0);_.u([_.Qc("#voting-input"),_.W("design:type",Object)],Y3.prototype,"votingInput",void 0);
_.u([_.Qc("#scroller"),_.W("design:type",Object)],Y3.prototype,"JSC$20394_scroller",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y3.prototype,"onPopupClosed",null);_.u([_.Y(),_.W("design:type",Object)],Y3.prototype,"onValueChanged",void 0);_.u([_.c({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Y3);
_.d(Y3,"ytd-playlist-settings-editor-renderer",function(){if(CVt===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);CVt=M}M=CVt;return M},{mode:1});var bUm;_.nn("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var mP=function(){return _.g.apply(this,arguments)||this};
_.w(mP,_.g);_.P=mP.prototype;_.P.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var M=this.get("data.nextButton.buttonRenderer.navigationEndpoint");M&&(this.nextNavigationEndpoint=M,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.P.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var M={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",M)}}};
_.P.onPopupOpened=function(M){M.detail!==this&&M.detail!==this.hostElement||!_.U("enable_premium_voluntary_pause")||_.S9(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.P.onNextButtonTap=function(){var M=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);M&&this.ytdOpenPopupBehavior.openPopup(M)};
_.P.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
mP.prototype.onPopupOpened=mP.prototype.onPopupOpened;mP.prototype.onSelectedResponseIndexChange=mP.prototype.onSelectedResponseIndexChange;mP.prototype.dataChanged=mP.prototype.dataChanged;_.u([_.p(_.N4),_.W("design:type",Object)],mP.prototype,"ytdOpenPopupBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],mP.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],mP.prototype,"selectedResponseIndex",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mP.prototype,"dataChanged",null);_.u([_.la("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mP.prototype,"onSelectedResponseIndexChange",null);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],mP.prototype,"onPopupOpened",null);_.u([_.c({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],mP);
_.d(mP,"ytd-red-cancel-survey-renderer",function(){if(bUm!==void 0)return bUm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return bUm=M},{mode:1});var rCd;var gz=function(){var M=_.g.apply(this,arguments)||this;M.closeButtonAriaLabel=_.e9("SBOX_INAPPROPRIATE_CANCEL");return M};
_.w(gz,_.g);gz.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
gz.prototype.onClickClose=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],gz.prototype,"rendererStamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],gz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],gz.prototype,"closeButtonAriaLabel",void 0);_.u([_.c({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],gz);
_.d(gz,"ytd-search-filter-options-dialog-renderer",function(){if(rCd!==void 0)return rCd;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return rCd=M},{mode:1});var MYw;var etG=function(){return function(M){M=M.availabilityType;return M===void 0||M==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||M==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var sp=function(){var M=_.g.apply(this,arguments)||this;M.qualityOptions=[];M.upsellOptions=[];M.showUpsellSection=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.rememberSettingsChecked=!1;return M};
_.w(sp,_.g);_.P=sp.prototype;_.P.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.P.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.P.updateQualityOptions=function(){if(this.formats===void 0)_.S9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var M=[],z=[];this.showUpsellSection=!1;for(var J=_.S(this.formats),R=J.next();!R.done;R=J.next())(R=R.value)&&(R.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?z.push(R):M.push(R));M.length&&(this.qualityOptions=lfG(M));z.length&&(this.showUpsellSection=!0,this.upsellOptions=lfG(z))}};
_.P.updateRememberString=function(){if(this.downloadQualityPickerEntity)var M=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var z;M=(z=this.data)==null?void 0:z.premiumRememberSettingString}else{var J;M=(J=this.data)==null?void 0:J.rememberSettingString}M=M===void 0?_.e9("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):M;this.rememberSettingsCheckboxRenderer={title:_.JN(M),disabled:!1}};
_.P.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.rX.Object.defineProperties(sp.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
sp.prototype.updateRememberString=sp.prototype.updateRememberString;sp.prototype.updateQualityOptions=sp.prototype.updateQualityOptions;sp.prototype.dataChanged=sp.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],sp.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sp.prototype,"data",void 0);
_.u([_.p(_.Wg),_.W("design:type",Object)],sp.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Boolean)],sp.prototype,"selectedUpsellQuality",void 0);_.u([_.Y({computed:"computeIcon_(data.premiumIcon)",value:""}),_.W("design:type",String)],sp.prototype,"premiumIcon",void 0);_.u([_.Y({selector:TMv,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],sp.prototype,"downloadQualityPickerEntity",void 0);
_.u([_.Y(),_.W("design:type",Array)],sp.prototype,"qualityOptions",void 0);_.u([_.Y(),_.W("design:type",Array)],sp.prototype,"upsellOptions",void 0);_.u([_.Y(),_.W("design:type",Object)],sp.prototype,"showUpsellSection",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],sp.prototype,"darkerDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],sp.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.u([_.Qc("#remember-settings"),_.W("design:type",HTMLInputElement)],sp.prototype,"rememberSettingsCheckbox",void 0);_.u([_.Y(),_.W("design:type",Object)],sp.prototype,"rememberSettingsChecked",void 0);_.u([_.Y(),_.W("design:type",Function)],sp.prototype,"onRememberSettingsCheckedChanged",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sp.prototype,"dataChanged",null);
_.u([_.la("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sp.prototype,"updateQualityOptions",null);_.u([_.la("selectedUpsellQuality"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sp.prototype,"updateRememberString",null);_.u([_.c({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],sp);
_.d(sp,"ytd-download-quality-selector-content",function(){if(MYw!==void 0)return MYw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return MYw=M},{mode:1});var zFi;var nI=function(){var M=_.g.apply(this,arguments)||this;M.selectedUpsellQuality=!1;M.qualityOptions=[];M.darkerDarkTheme=_.U("web_darker_dark_theme");M.useUpsellDismissAlternate=_.U("use_not_now_dl_upsell_dismiss_cta");M.shouldShowAlternateUpsellDimiss=!1;M.rememberSettings=!1;M.rememberSettingsChecked=!1;M.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};M.rememberSettingsCheckedChanged=function(z){M.rememberSettingsChecked=z};
return M};
_.w(nI,_.g);_.P=nI.prototype;
_.P.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.JN(_.e9("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.P.updateQualityOptions=function(){this.formats===void 0?_.S9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=lfG(this.formats)};
_.P.onQualityOptionsSelect=function(M){if(this.qualityOptions&&M){M!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var z=_.S(this.qualityOptions.entries()),J=z.next();!J.done;J=
z.next()){J=_.S(J.value);var R=J.next().value;J=J.next().value;var D=void 0,N=void 0;if(((D=J)==null?void 0:(N=D.settingsRadioOptionRenderer)==null?void 0:N.id)===M){this.selectedQualityIndex=R;M=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((M=this.formats[R])==null?void 0:M.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.P.onClickSubmit=function(){var M;if((M=this.downloadButtonRenderer)==null||!M.isDisabled){var z,J;M=(J=(z=this.data)==null?void 0:z.onSubmitEndpoint)!=null?J:{};var R,D;if(this.formats&&(((R=_.G(M,_.lE))==null?0:R.videoId)||((D=_.G(M,_.Q9))==null?0:D.playlistId))){var N,Z,B,O,X,l;z={formatType:(O=(N=this.formats)==null?void 0:(Z=N[(B=this.selectedQualityIndex)!=null?B:0])==null?void 0:Z.format)!=null?O:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(X=this.getOfflineEndpoint(M))==null?void 0:(l=X.actionParams)==null?void 0:l.settingsAction)};this.getOfflineEndpoint(M).actionParams=z;this.ytComponentBehavior.resolveCommand(M)}_.S9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.P.onClickUpsell=function(){var M;if((M=this.upsellButtonRenderer)==null||!M.isDisabled){var z,J;M=(J=(z=this.data)==null?void 0:z.upsellEndpoint)!=null?J:{};this.ytComponentBehavior.resolveCommand(M);_.S9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);z="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var R,D,N,Z;z=(Z=(R=this.formats)==null?void 0:(D=R[(N=this.selectedQualityIndex)!=null?N:0])==null?void 0:D.format)!=null?Z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:z}})}};
_.P.onClickClose=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.P.getOfflineSettingsAction=function(M,z){return M?z===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":z:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.P.getOfflineEndpoint=function(M){return _.G(M,_.lE)?_.G(M,_.lE):_.G(M,_.Q9)};
_.rX.Object.defineProperties(nI.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.JN(_.e9("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
nI.prototype.updateQualityOptions=nI.prototype.updateQualityOptions;nI.prototype.dataChanged=nI.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],nI.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],nI.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Number)],nI.prototype,"selectedQualityIndex",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"selectedUpsellQuality",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],nI.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y({selector:TMv,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],nI.prototype,"downloadQualityPickerEntity",void 0);_.u([_.Y(),_.W("design:type",Array)],nI.prototype,"qualityOptions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],nI.prototype,"darkerDarkTheme",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],nI.prototype,"useUpsellDismissAlternate",void 0);
_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"downloadButtonRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"upsellButtonRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"cancelButtonRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"upsellCancelButtonRenderer",void 0);_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"rememberSettings",void 0);
_.u([_.Y(),_.W("design:type",Object)],nI.prototype,"rememberSettingsChecked",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nI.prototype,"dataChanged",null);_.u([_.la("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nI.prototype,"updateQualityOptions",null);_.u([_.c({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],nI);
_.d(nI,"ytd-download-quality-selector-renderer",function(){if(zFi!==void 0)return zFi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return zFi=M},{mode:1});var J5c;var hl=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(hl,_.g);hl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hl.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],hl.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],hl.prototype,"darkerDarkTheme",void 0);_.u([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],hl.prototype,"infoIcon",void 0);
_.u([_.Y({computed:"computeIcon_(data.warningIcon)"}),_.W("design:type",Object)],hl.prototype,"warningIcon",void 0);_.u([_.c({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],hl);
_.d(hl,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(J5c!==void 0)return J5c;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return J5c=M},{mode:1});var RFw;var yd=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(yd,_.g);yd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yd.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"}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],yd.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],yd.prototype,"darkerDarkTheme",void 0);_.u([_.c({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],yd);
_.d(yd,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(RFw!==void 0)return RFw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return RFw=M},{mode:1});var Dzs;var HQ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(HQ,_.g);HQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
HQ.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"}}}}};
HQ.prototype.onServiceRequestSentOrCompleted=function(M,z){z&&z.actions&&z.actions.length>0&&_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
HQ.prototype.onServiceRequestSentOrCompleted=HQ.prototype.onServiceRequestSentOrCompleted;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],HQ.prototype,"darkerDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],HQ.prototype,"data",void 0);
_.u([_.Xw("yt-service-request-completed"),_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],HQ.prototype,"onServiceRequestSentOrCompleted",null);_.u([_.c({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],HQ);
_.d(HQ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Dzs!==void 0)return Dzs;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Dzs=M},{mode:1});var Nrl;var cQ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.submitButtonDisabled=!0;return M};
_.w(cQ,_.g);_.P=cQ.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.P.onDataChanged=function(){var M,z,J;if(((M=this.data)==null?void 0:(z=M.confirmButton)==null?void 0:(J=z.buttonRenderer)==null?void 0:J.isDisabled)!==void 0){var R,D,N;this.submitButtonDisabled=(R=this.data)==null?void 0:(D=R.confirmButton)==null?void 0:(N=D.buttonRenderer)==null?void 0:N.isDisabled}};
_.P.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.P.updateSubmitButtonDisabledFromBinding=function(M){this.submitButtonDisabled=M.detail.value};
_.P.updateSubmitButtonDisabledFromConfirmCheckbox=function(M){this.submitButtonDisabled=!M.detail.value};
cQ.prototype.onDataChanged=cQ.prototype.onDataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],cQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],cQ.prototype,"darkerDarkTheme",void 0);
_.u([_.Y(),_.W("design:type",Object)],cQ.prototype,"submitButtonDisabled",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cQ.prototype,"onDataChanged",null);_.u([_.c({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],cQ);
_.d(cQ,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Nrl!==void 0)return Nrl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Nrl=M},{mode:1});var PQl;var dz=function(){return _.g.apply(this,arguments)||this};
_.w(dz,_.g);_.rX.Object.defineProperties(dz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M,z,J;return((M=this.data)==null?void 0:M.title)+" "+((z=this.data)==null?void 0:z.metadataPrimary)+" "+((J=this.data)==null?void 0:J.metadataSecondary)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],dz.prototype,"data",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dz.prototype,"ariaLabel",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],dz);
_.d(dz,"ytd-compact-product-list-item-renderer",function(){if(PQl!==void 0)return PQl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return PQl=M},{mode:1});var S2c;var KI=function(){return _.g.apply(this,arguments)||this};
_.w(KI,_.g);KI.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]]"}}}}}};
_.rX.Object.defineProperties(KI.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],KI.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],KI.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],KI);
_.d(KI,"ytd-compact-product-list-renderer",function(){if(S2c!==void 0)return S2c;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return S2c=M},{mode:1});var Z7m;var $3=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w($3,_.g);_.P=$3.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.getBackgroundUrl=function(){var M=this.get("data.headerImage.thumbnails");return M?"url("+_.PS(M,this.hostElement.clientWidth)+")":""};
_.P.onDataChanged=function(){var M=this.getBackgroundUrl();M&&(this.header.style.backgroundImage=M);M=_.y5();var z=_.hu(),J=this.get("data.trackingParams");J&&z&&M&&_.qs(M,z,_.pe(J));M=_.S(this.hostElement.querySelectorAll("yt-img-shadow"));for(z=M.next();!z.done;z=M.next())z.value.onShow()};
_.P.onPopupClosed=function(M){_.b7(M).localName==="ytd-membership-post-cancel-renderer"&&_.S9(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
$3.prototype.onPopupClosed=$3.prototype.onPopupClosed;$3.prototype.onDataChanged=$3.prototype.onDataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],$3.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],$3.prototype,"darkerDarkTheme",void 0);
_.u([_.Qc("#header"),_.W("design:type",HTMLDivElement)],$3.prototype,"header",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$3.prototype,"onDataChanged",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$3.prototype,"onPopupClosed",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],$3);
_.d($3,"ytd-membership-post-cancel-renderer",function(){if(Z7m!==void 0)return Z7m;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Z7m=M},{mode:1});var kGl;var ue=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(ue,_.g);ue.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ue.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ue.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ue.prototype,"darkerDarkTheme",void 0);_.u([_.Qc("ytd-feedback-survey-renderer"),_.W("design:type",Object)],ue.prototype,"feedbackSurveyRenderer",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ue);
_.d(ue,"ytd-sponsorship-confirm-cancel-content",function(){if(kGl!==void 0)return kGl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return kGl=M},{mode:1});var Brl;var ql=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.content&&M.content.maybeSubmitFeedback()};
return M};
_.w(ql,_.g);_.P=ql.prototype;_.P.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.P.onYtPopupOpened=function(M,z){z===this&&this.data&&this.data.onOpenCommands&&_.Bv(this.hostElement,this.data.onOpenCommands,this.hostElement);_.S9(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.P.onYtPopupClosed=function(M,z){(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Bv(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.P.onYtServiceRequestError=function(M){_.Cf(this.hostElement,M.detail.error.message)};
_.P.onDataChanged=function(){if(this.isAttached){var M=this.backgroundUrl;M&&(_.SN(this.hostElement).querySelector("#header").style.backgroundImage=M)}};
_.rX.Object.defineProperties(ql.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return M?"url("+_.PS(M,this.hostElement.clientWidth)+")":""}}});
ql.prototype.onDataChanged=ql.prototype.onDataChanged;ql.prototype.onYtServiceRequestError=ql.prototype.onYtServiceRequestError;ql.prototype.onYtServiceRequestCompleted=ql.prototype.onYtServiceRequestCompleted;ql.prototype.onYtPopupClosed=ql.prototype.onYtPopupClosed;ql.prototype.onYtPopupOpened=ql.prototype.onYtPopupOpened;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ql.prototype,"data",void 0);_.u([_.Y({value:function(){return _.e9("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],ql.prototype,"closeButtonAriaLabel",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],ql.prototype,"darkerDarkTheme",void 0);_.u([_.Qc("#scrollable"),_.W("design:type",Object)],ql.prototype,"scrollable",void 0);_.u([_.Qc("ytd-sponsorship-confirm-cancel-content"),_.W("design:type",Object)],ql.prototype,"content",void 0);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],ql.prototype,"onYtPopupOpened",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],ql.prototype,"onYtPopupClosed",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ql.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ql.prototype,"onYtServiceRequestError",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ql.prototype,"onDataChanged",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ql);
_.d(ql,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Brl!==void 0)return Brl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Brl=M},{mode:_.B5("kevlar_poly_si_batch_j081")?1:2});var O7s;var WQ=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(WQ,_.g);WQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],WQ.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],WQ.prototype,"darkerDarkTheme",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],WQ);
_.d(WQ,"ytd-sponsorships-celebration-content",function(){if(O7s!==void 0)return O7s;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return O7s=
M},{mode:1});var Tr5;var IIc=_.Ca(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),aD=function(){var M=_.g.apply(this,arguments)||this;M.scriptsAppended=!1;M.useFullWidthPrimaryButton=!1;M.buttonOverrides={type:"tonal",style:"overlay-dark"};return M};
_.w(aD,_.g);_.P=aD.prototype;_.P.dataChanged=function(){var M;this.useFullWidthPrimaryButton=!((M=this.data)==null||!M.useFullWidthPrimaryButton)};
_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.U("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var M;(M=this.header)==null||M.style.setProperty("background-color",this.backgroundColor);if(M=this.headerImageUrl){var z;(z=this.header)==null||z.style.setProperty("background-image",M)}z=_.y5(4);M=_.hu(4);var J=this.get("data.trackingParams");if(J&&M&&z){var R=_.pe(J);_.qs(z,M,R);_.U("combine_ve_grafts")?_.Gm().graftServerVe(J,M,4):_.qs(z,M,R)}z=_.S(this.hostElement.querySelectorAll("yt-img-shadow"));for(M=z.next();!M.done;M=z.next())M.value.onShow();if(z=this.get("data.gtmId"))_.Ha(z,
_.HW("GL","")),this.setupConversionTracking()};
_.P.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("script");var z=_.L3(IIc.join(""));_.Ar(M,z);document.head.appendChild(M);M=document.createElement("noscript");M.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(M);this.scriptsAppended=!0}};
_.P.onPopupClosed=function(M){if(_.b7(M).localName==="ytd-sponsorships-celebration-renderer"){_.S9(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var z;this.data&&((z=this.data)==null?0:z.dismissCommand)&&_.l5.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.rX.Object.defineProperties(aD.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.qG(M)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return M?"url("+_.PS(M,this.hostElement.getBoundingClientRect().width)+")":""}}});
aD.prototype.onPopupClosed=aD.prototype.onPopupClosed;aD.prototype.onDataChanged=aD.prototype.onDataChanged;aD.prototype.dataChanged=aD.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],aD.prototype,"data",void 0);
_.u([_.Qc("#header"),_.W("design:type",HTMLElement)],aD.prototype,"header",void 0);_.u([_.Y(),_.W("design:type",Object)],aD.prototype,"scriptsAppended",void 0);_.u([_.Y({type:Boolean,reflectToAttribute:!0}),_.W("design:type",Object)],aD.prototype,"useFullWidthPrimaryButton",void 0);_.u([_.Y(),_.W("design:type",Object)],aD.prototype,"buttonOverrides",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aD.prototype,"dataChanged",null);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aD.prototype,"onDataChanged",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aD.prototype,"onPopupClosed",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],aD);
_.d(aD,"ytd-sponsorships-celebration-renderer",function(){if(Tr5!==void 0)return Tr5;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Tr5=M},{mode:1});var omw;var Vd=function(){var M=_.g.apply(this,arguments)||this;M.isToggleChecked=!1;return M};
_.w(Vd,_.g);Vd.prototype.onDataChanged=function(){var M;this.isToggleChecked=((M=this.data)==null?void 0:M.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Vd.prototype.close=function(){var M;((M=this.data)==null?0:M.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Vd.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var M,z=_.G((M=this.data)==null?void 0:M.switchButton,SQw);z&&(this.isToggleChecked&&z.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOnInnertubeCommand),!this.isToggleChecked&&z.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOffInnertubeCommand))};
Vd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Vd.prototype.onDataChanged=Vd.prototype.onDataChanged;_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Vd.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Vd.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Vd.prototype,"isToggleChecked",void 0);_.u([_.Y({value:_.e9("CLOSE")}),_.W("design:type",String)],Vd.prototype,"closeButtonAriaLabel",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Vd.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Vd);
_.d(Vd,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(omw!==void 0)return omw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return omw=M},{mode:1});var Xpl;var Ep=function(){return _.g.apply(this,arguments)||this};
_.w(Ep,_.g);_.P=Ep.prototype;_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.playerElement.stop()};
_.P.onYtServiceRequestCompleted=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.P.onYtServiceRequestError=function(M){_.Cf(this.hostElement,M.detail.error.message)};
_.P.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.P.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.P.getTier=function(M,z){return!M||!M.tiers||z<0?null:_.G(M.tiers[z],OEl)};
_.P.moreThanOne=function(M){return!!(M&&M.length>1)};
_.P.tierOverviewTap=function(M){var z=this;this.selectedTier=M.model.index;_.C4(this,function(){_.Pv(z.hostElement,"yt-refit")})};
_.P.computeSelectedClass=function(M,z){return this.isSelected(M,z)?"selected":""};
_.P.computeButtonAriaPressed=function(M,z){return this.isSelected(M,z)?"true":"false"};
_.P.isSelected=function(M,z){return M===z};
_.P.onDataChanged=function(){_.SN(this.hostElement).querySelector("#header-overlay").style.visibility="";_.SN(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var M=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),
z=M.next();!z.done;z=M.next())z.value.onShow();var J;this.set("selectedTier",(J=this.get("data.targetTierIndex"))!=null?J:0);var R;(M=(R=this.data)==null?void 0:R.onVisible)&&this.ytComponentBehavior.resolveCommand(M)};
_.P.initializeVe=function(M){var z=_.y5(),J=_.hu(),R=this.get("data.trackingParams");J&&z&&(this.screenLayer=4,z=_.ui(_.eOR)(void 0,69877,{clientScreenNonce:z,visualElement:J},void 0,void 0,void 0),_.cs(z,69877,4),J=_.hu(4),R&&J&&(R=_.pe(R),_.qs(z,J,R),M&&(this.offerVideoVe=_.O3(74659),_.qs(z,R,this.offerVideoVe))))};
_.P.setHeaderBackground=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.SN(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.qG(M);if(M=this.getHeaderImage())M=_.PS(M,screen.width),_.SN(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+M+")"};
_.P.getHeaderImage=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&M?M:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setupVideoPlayer=function(M){var z=this,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1)return J=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),R=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.U("kevlar_player_update_killswitch")?z.playerElement.update({args:{autoplay:J,video_id:M,player_params:R}}):z.playerElement.loadVideoWithPlayerVars({autoplay:J,video_id:M,player_params:R}),
Z.yield(z.playerElement.getPlayerPromise(),2);D=Z.yieldResult;D.addEventListener("onStateChange",function(B){z.onPlayerStateChange(B)});
D.setScreenLayer(z.screenLayer);(N=_.y5(4))&&z.offerVideoVe&&_.an(N,z.offerVideoVe);J&&(z.pauseOtherPlayers(),z.playerElement.focusOnPlayer(),z.playerElement.getPlayer().hideControls(),_.x4(_.no,function(){z.fadeOutHeaderOverlay()},4E3));
_.UI(Z)})};
_.P.onPlayerStateChange=function(M){M===1?this.backgroundPlayerElement&&(M=this.backgroundPlayerElement.player_.getPlayerState(),M!==1&&M!==3||this.backgroundPlayerElement.pause()):M===0&&(_.SN(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.SN(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.P.fadeOutHeaderOverlay=function(){_.SN(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.P.onHeaderTap=function(){if(this.offerVideo){_.SN(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var M;((M=this.playerElement.player_)==null?void 0:M.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(M=_.y5(4))&&this.offerVideoVe&&_.fY(M,this.offerVideoVe)}};
_.P.getBackgroundImageLayerClass=function(M){return M?"background-image-layer-with-video":""};
_.P.getHeaderClass=function(M){return M?"header-with-video":""};
_.P.getHeaderOverlayClass=function(M){return M?"header-overlay-with-video":""};
_.P.getTitleContainerClass=function(M,z){return M?"title-container-with-video":z?"title-container-without-video-flexible":"title-container-without-video"};
_.P.tierTitleDisplayStatus=function(M){return this.moreThanOne(M)?"hide":"show"};
_.P.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.JF().resolve(_.q5).getPlayerElement():this.backgroundPlayerElement=_.J_();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var M=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=M===1||M===3;this.backgroundPlayerElement.pause()}};
_.P.isMiniplayerActive=function(){return _.JF().resolve(_.q5).isMiniplayerActive()};
_.P.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("selected-tier-changed",this.selectedTier))};
Ep.prototype.selectedTierChangedForBinding=Ep.prototype.selectedTierChangedForBinding;Ep.prototype.onDataChanged=Ep.prototype.onDataChanged;Ep.prototype.onYtPopupClosed=Ep.prototype.onYtPopupClosed;Ep.prototype.onYtPopupOpened=Ep.prototype.onYtPopupOpened;Ep.prototype.onYtServiceRequestError=Ep.prototype.onYtServiceRequestError;Ep.prototype.onYtServiceRequestCompleted=Ep.prototype.onYtServiceRequestCompleted;
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Ep.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ep.prototype,"data",void 0);_.u([_.Y({value:0}),_.W("design:type",Number)],Ep.prototype,"selectedTier",void 0);
_.u([_.Y({value:""}),_.W("design:type",String)],Ep.prototype,"offerVideo",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Ep.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.u([_.Y({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.fp(this)}}),
_.W("design:type",String)],Ep.prototype,"playerId",void 0);_.u([_.Qc("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],Ep.prototype,"scrollable",void 0);_.u([_.Qc("ytd-sponsorships-tier-renderer"),_.W("design:type",Object)],Ep.prototype,"tierRenderer",void 0);_.u([_.Qc("#player"),_.W("design:type",Object)],Ep.prototype,"playerElement",void 0);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ep.prototype,"onYtServiceRequestCompleted",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Ep.prototype,"onYtServiceRequestError",null);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"onYtPopupOpened",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"onYtPopupClosed",null);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"onDataChanged",null);
_.u([_.la("selectedTier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Ep.prototype,"selectedTierChangedForBinding",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Ep);
_.d(Ep,"ytd-sponsorships-offer-renderer",function(){if(Xpl!==void 0)return Xpl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Xpl=M},{mode:_.B5("kevlar_poly_si_batch_j077")?1:2});var lIc;var fI=function(){var M=_.g.apply(this,arguments)||this;M.buttonOverrides={type:"filled",style:"mono"};return M};
_.w(fI,_.g);fI.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}}}}}};
fI.prototype.backgroundColorChanged=function(){var M,z,J,R=(z=_.G((M=this.data)==null?void 0:M.content,Txw))==null?void 0:(J=z.backgroundColor)==null?void 0:J.backgroundColor;R&&(M=_.u7(R),_.SN(this.hostElement).querySelector("#banner").style.backgroundColor=M,_.SN(this.hostElement).querySelector("#abstract-art").style.backgroundColor=M)};
fI.prototype.attached=function(){this.JSC$20480_scroller&&(this.JSC$20480_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20480_scroller.attached&&typeof this.JSC$20480_scroller.attached==="function"&&this.JSC$20480_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fI.prototype.backgroundColorChanged=fI.prototype.backgroundColorChanged;_.u([_.Y(),_.W("design:type",Object)],fI.prototype,"data",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#scroller"),_.W("design:type",Object)],fI.prototype,"JSC$20480_scroller",void 0);_.u([_.Y(),_.W("design:type",Object)],fI.prototype,"buttonOverrides",void 0);
_.u([_.la("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fI.prototype,"backgroundColorChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],fI);
_.d(fI,"ytd-sponsorships-promotion-celebration-renderer",function(){if(lIc!==void 0)return lIc;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return lIc=M},{mode:_.B5("kevlar_poly_si_batch_j077")?1:2});var eFm;var QgN;var LI=function(){return _.g.apply(this,arguments)||this};
_.w(LI,_.g);LI.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
LI.prototype.computeIsInitiallyChecked=function(M){return M===1};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],LI.prototype,"data",void 0);_.u([_.Qc("#checkbox"),_.W("design:type",Object)],LI.prototype,"checkbox",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],LI);
_.d(LI,"ytd-subscription-toggle-option-renderer",function(){if(QgN!==void 0)return QgN;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return QgN=M},{mode:1});var Al=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return M};
_.w(Al,_.g);Al.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"}}}};
Al.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Al.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var M=_.SN(this.hostElement).querySelector("#options").selected;M=this.data.options[M].subscriptionRadioOptionRenderer.serviceEndpoint;var z=_.SN(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");z&&M&&M.modifyChannelNotificationPreferenceEndpoint&&(z=z.getValue())&&(M.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[z]);_.JF().resolve(_.Rb).resolveCommand(M,{form:{element:this.hostElement}});
_.S9(this.hostElement,"yt-close-popup-action")};
_.rX.Object.defineProperties(Al.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var M=this.data.options,z=0;z<M.length;z++){var J=M[z].subscriptionRadioOptionRenderer;if(J&&J.selected)return z}return null}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Al.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Al.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Al.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Al.prototype,"darkerDarkTheme",void 0);_.u([_.F("data.options"),_.W("design:type",Object),_.W("design:paramtypes",[])],Al.prototype,"initialIndex",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Al);
_.d(Al,"ytd-subscription-notification-options-renderer",function(){if(eFm!==void 0)return eFm;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return eFm=M},{mode:1});var Uzw;var ie=function(){return _.g.apply(this,arguments)||this};
_.w(ie,_.g);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ie.prototype,"data",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],ie);
_.d(ie,"ytd-tvfilm-offer-groups-renderer",function(){if(Uzw!==void 0)return Uzw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Uzw=M},{mode:1});var vmi;var CI=function(){var M=_.g.apply(this,arguments)||this;M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(CI,_.g);_.P=CI.prototype;_.P.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.P.computeThumbnailClass=function(M){return M.thumbnailOverlays?M.isShow?"thumbnail-show":"thumbnail-movie":M.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.P.computeCommerceSectionClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.P.computeTitleClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.P.onDataChanged=function(){[].concat(_.Yj(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(M){M.onShow()})};
CI.prototype.onDataChanged=CI.prototype.onDataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],CI.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],CI.prototype,"darkerDarkTheme",void 0);
_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CI.prototype,"onDataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],CI);
_.d(CI,"ytd-ypc-offers-overlay-renderer",function(){if(vmi!==void 0)return vmi;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return vmi=M},{mode:_.B5("kevlar_poly_si_batch_j028")?1:2});var GGw;var wps=function(){this.usedMethods=new Set};
wps.prototype.add=function(M){this.usedMethods.add(M)};
wps.prototype.reset=function(){this.usedMethods.clear()};var jgl=function(M,z){this.query=M;this.previousSearchQuery=z;this.id=xzl++;if(!tYi){z=_.HW("SBOX_SETTINGS");M="https://"+((z==null?void 0:z.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var J=z==null?void 0:z.REQUEST_LANGUAGE;J&&(M+="&hl="+J);(J=z==null?void 0:z.REQUEST_DOMAIN)&&(M+="&gl="+J);M+="&client=youtube&gs_ri=youtube";(J=z==null?void 0:z.SUGG_EXP_ID)&&(M+="&sugexp="+encodeURIComponent(J));(J=z==null?void 0:z.PSUGGEST_TOKEN)&&(M+="&tok="+J);(z=
z==null?void 0:z.SESSION_INDEX)&&(M+="&authuser="+z);_.U("desktop_enable_visual_suggest")&&(M+="&h=180&w=320&ytvs=1");tYi=M}},ppd=function(M){var z="q="+encodeURIComponent(M.query);
M.previousSearchQuery&&(z+="&pq="+encodeURIComponent(M.previousSearchQuery));return z},FH5=function(){var M=_.HW("SBOX_SETTINGS"),z={};
if(M==null?0:M.SEND_VISITOR_DATA)z["X-Goog-Visitor-Id"]=M==null?void 0:M.VISITOR_DATA;return z},Y2d=function(M){var z=tYi;
z+="&gs_id="+M.id.toString(36);z+="&q="+encodeURIComponent(M.query);z+="&cp="+M.query.length;M.previousSearchQuery&&(z+="&pq="+encodeURIComponent(M.previousSearchQuery));(M=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(z+="&video_id="+M);return z},xzl=0,tYi="";var mzc=_.BD.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,gmG=_.BD.SEARCH_ENTITY_SUGGESTION_MOVIE,sg5=_.BD.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,nml=_.BD.SEARCH_ENTITY_SUGGESTION_TV_SHOW,hFu=function(M,z){this.text=M;this.bold=z},y5w=function(M,z,J){this.input=z;
this.index=J;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=M[0];this.type=M[1];this.subtypes=M[2];var R;this.displayText=v1((R=M[3])==null?void 0:R.b);var D;this.ignoredPrefix=v1((D=M[3])==null?void 0:D.a);var N,Z;this.hasNewVideo=((N=M[3])==null?void 0:(Z=N.zam)==null?void 0:Z.toString())==="true"?!0:!1;var B;this.visualSuggestUrl=(B=M[3])==null?void 0:B.zai;var O;this.entityType=v1((O=M[3])==null?void 0:O.zap);var X;this.entityName=v1((X=M[3])==null?void 0:X.zao);var l;z=v1((l=
M[3])==null?void 0:l.zaf);var e;this.entityMid=(e=M[3])==null?void 0:e.zae;l=Uft(this.subtypes,this.entityMid);if(z&&l){if(z){e="";switch(l){case "YOUTUBE_ENTITY_TYPE_SONG":e=sg5;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":e=mzc;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":e=nml;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":e=gmG}l=l==="YOUTUBE_ENTITY_TYPE_SONG"||l==="YOUTUBE_ENTITY_TYPE_ALBUM"?e+" \u2022  \u2022 "+z:z}else l="";this.entitySubtitle=l}var Q;this.externalChannelId=(Q=M[3])==null?void 0:Q.zav;var v;
this.entityThumbnailAttributionUrl=(v=M[3])==null?void 0:v.zaq},c5t=function(M,z){var J=[],R,D=(R=M.displayText)!=null?R:M.text;
(z==null?0:z.useEntityName)&&H7u(M)&&M.entityName&&(D=M.entityName);if(M.type===33)return J.push(new hFu(D,!1)),J;if(D.length>=M.input.length&&D.substring(0,M.input.length)===M.input)J.push(new hFu(M.input,!1)),J.push(new hFu(D.substring(M.input.length),!0));else{var N=new Set(M.input.split(/\s/)),Z=D.split(/\s/);J=Z.map(function(B,O){return new hFu(B.trim()+(O===Z.length-1?"":" "),!N.has(B))})}return J},H7u=function(M){var z=!!Uft(M.subtypes);
M=!!M.entityMid;return z||M};var dzi=function(M){this.rawResponse=["",[],{}];this.suggestions=[];try{var z=JSON.parse(vSw(M));if(typeof z==="object"&&z!==null)this.rawResponse=z;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(R){console.log("Suggest: Failed to parse SuggestResponse!");return}var J=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(R,D){return new y5w(R,J,D)})};var KHd=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new wps;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20517_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},$zG,ubi=function(){$zG||($zG=new KHd);
return $zG};
KHd.prototype.updateSuggestions=function(M){var z=this;this.availableSuggestions.forEach(function(J){z.previousSuggestions[J]=!0});
this.availableSuggestions=M.map(function(J){var R=J.type.toString();J.subtypes.length>0&&(R+="i"+J.subtypes.join("i"),R+="k"+J.suggestionSources.COMPLETE_SERVER.toString());return R})};
var q2v=function(M,z){var J=Date.now();M.firstEditTime<0&&(M.firstEditTime=J);z&&(M.lastQueryBuildTime=J);M.lastEditTime=J};
KHd.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20517_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var WHd=function(M){var z="";M.availableSuggestions.forEach(function(D){delete M.previousSuggestions[D]});
for(var J=_.S(Object.keys(M.previousSuggestions)),R=J.next();!R.done;R=J.next())R=R.value,M.previousSuggestions[R]&&(z+=(z?"j":"")+R);return z},aIt=function(M,z){var J=[];
z&&(J[1]=z.toString());J[0]="youtube";J[7]=Date.now()-M.startTime;J[6]=M.sessionNumber;M.zeroPrefixSuggestionCount>=0&&(J[33]=M.zeroPrefixSuggestionCount);J[13]=M.outOfSyncResponseCount;if(M.availableSuggestions.length>0){for(var R=z="",D=0,N=_.S(M.availableSuggestions),Z=N.next();!Z.done;Z=N.next())Z=Z.value,Z!==R&&(D>1&&(z+="l"+D),z+=(R?"j":"")+Z,D=0,R=Z),D+=1;D>1&&(z+="l"+D);J[3]=z}J[35]=WHd(M);M.selectedSuggestionIndex>=0&&(J[2]=M.selectedSuggestionIndex);var B;if(z=(B=_.HW("SBOX_SETTINGS"))==
null?void 0:B.SUGG_EXP_ID)J[19]=M.normalize(z),B=0,M.experimentTriggeredBeforeFinal&&(B|=1),M.experimentTriggeredFinal&&(B|=2),J[20]=B;J[26]=Array.from(M.inputMethodsTracker.usedMethods).join("j");if(M.JSC$20517_totalRoundTripTime>0){J[15]=M.JSC$20517_totalRoundTripTime;J[14]=M.maxRoundTripTime;B=[];for(D=z=0;D<10;D++)R=M.roundTripTimeHistogram[D],R===0?z++:(z>1?B.push(D+"-"+R):z===1?B.push("0j"+R):B.push(R.toString()),z=0);B=B.join("j");J[16]=B}M.zeroPrefixRoundTripTime>0&&(J[36]=M.zeroPrefixRoundTripTime);
M.lastQueryBuildTime>0&&(J[18]=M.lastQueryBuildTime-M.startTime);M.firstEditTime>0&&(J[4]=M.firstEditTime-M.startTime);M.lastEditTime>0&&(J[5]=M.lastEditTime-M.startTime);return J.join(".")};
KHd.prototype.normalize=function(M){return M.replaceAll(".","-")};
var VYw=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var be=function(){var M=_.g.apply(this,arguments)||this;M.microphoneSpinnerActive=!1;M.noAnimations=!1;M.boundExitClick=function(){M.onExitButtonClick()};
M.speechOverlayClassName="";M.isLevelAnimating=!1;M.playCloseDialogAudioFeedback=!0;M.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return M};
_.w(be,_.g);_.P=be.prototype;_.P.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=c3l()};
_.P.dataChanged=function(){this.logDialog()};
_.P.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var M;(M=this.manager.audioPlayer)!=null&&(M.JSC$19826_audioEnabled=!1)}this.manager.stop();(M=this.manager.audioPlayer)!=null&&(M.JSC$19826_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.P.handleSpeechQueryCompleteAction=function(M){var z=M.navigationAction;z&&(M.trackingParams&&_.Gm().graftServerVe(M.trackingParams,this.dialogVe,5),_.Pv(this.hostElement,"yt-navigate",{endpoint:z,tempData:this.getNavigationParams(z),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.P.onExitButtonClick=function(){this.closeDialog()};
_.P.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var M;if((M=this.manager)!=null){var z;(z=M.audioPlayer)==null||Jq(z,"failure");M.setState("microphone-off");M.stop()}}else(M=this.manager)==null||M.start()};
_.P.transcriptionChanged=function(){var M,z;(((M=this.transcription)==null?0:M.low)||((z=this.transcription)==null?0:z.high))&&this.setState("transcribing",this.transcription)};
_.P.stateChanged=function(){this.setState(this.state,this.transcription)};
_.P.logDialog=function(){var M;(M=this.data)!=null&&M.trackingParams&&(M=_.Gm(),_.Xx(M,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=M.graftServerVe(this.data.trackingParams,void 0,5))};
_.P.getNavigationParams=function(M){var z={};if(_.U("web_yt_searchbox")){var J=ubi();J.inputMethodsTracker.add(6);J=aIt(J,15);z.gs_l=J;var R;z.oq=((R=_.G(M,_.wB))==null?void 0:R.query)||""}else if(M=window.ytvoicesearchloggingparams){if(M=M())z.oq=M.oq,z.gs_l=M.gs_l}else _.WW(Error("pl"));return z};
_.P.closeDialog=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.P.setState=function(M,z){if(this.data){var J=this.data,R={};switch(M){case "listening":R={headerText:J.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:J.microphoneButtonAriaLabel};break;case "timeout":R={headerText:J.promptHeader,microphoneState:"try-again",microphoneLabel:J.promptMicrophoneLabel,microphoneAriaLabel:J.promptMicrophoneLabel};break;case "microphone-off":R={headerText:J.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:J.promptMicrophoneLabel,
microphoneAriaLabel:J.promptMicrophoneLabel};break;case "transcribing":(z==null?0:z.low)||(z==null?0:z.high)?R={transcriptionLow:z==null?void 0:z.low,transcriptionHigh:z==null?void 0:z.high,microphoneState:"speaking",microphoneAriaLabel:J.microphoneButtonAriaLabel}:R={headerText:J.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:J.microphoneButtonAriaLabel};break;case "processing":R={headerText:J.loadingHeader,microphoneState:"processing",microphoneAriaLabel:J.microphoneButtonAriaLabel};
break;case "offline":R={headerText:J.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:J.connectionErrorMicrophoneLabel,microphoneAriaLabel:J.connectionErrorMicrophoneLabel};break;case "permission":R={headerText:J.permissionsHeader,bodyLine1:J.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:J.permissionsSubtext};break;case "permission-denied":R={headerText:J.disabledHeader,bodyLine1:J.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:J.disabledSubtext}}R.className=
M;this.speechOverlayState=R;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.P.setMicrophoneState=function(M){var z=this.isLevelAnimating;this.isLevelAnimating=M==="speaking";!z&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=M==="processing"&&!this.noAnimations};
_.P.setClass=function(M){this.speechOverlayClassName&&_.kz(this.hostElement,this.speechOverlayClassName,!1);M&&(this.speechOverlayClassName=M,_.kz(this.hostElement,M,!0))};
_.P.runLevelAnimation=function(){var M=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var z=1+Math.random()*.75,J=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+J/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+z+")");_.no.addJob(function(){M.runLevelAnimation()},3,J)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
be.prototype.stateChanged=be.prototype.stateChanged;be.prototype.transcriptionChanged=be.prototype.transcriptionChanged;be.prototype.onPopupClosed=be.prototype.onPopupClosed;be.prototype.dataChanged=be.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],be.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],be.prototype,"rendererStamperBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],be.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],be.prototype,"eventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],be.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],be.prototype,"speechOverlayState",void 0);
_.u([_.Y(),_.W("design:type",Object)],be.prototype,"microphoneSpinnerActive",void 0);_.u([_.Y({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.W("design:type",Object)],be.prototype,"noAnimations",void 0);_.u([_.Y({selector:function(M){var z;return(z=M.voiceSearch)==null?void 0:z.transcription}}),
_.W("design:type",Object)],be.prototype,"transcription",void 0);_.u([_.Y({selector:function(M){var z;return(z=M.voiceSearch)==null?void 0:z.overlay}}),
_.W("design:type",String)],be.prototype,"state",void 0);_.u([_.Y(),_.W("design:type",Object)],be.prototype,"boundExitClick",void 0);_.u([_.Qc("#microphone-levels"),_.W("design:type",HTMLElement)],be.prototype,"level",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"dataChanged",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"onPopupClosed",null);
_.u([_.wH("transcription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"transcriptionChanged",null);_.u([_.wH("state"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],be.prototype,"stateChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],be);
_.d(be,"ytd-voice-search-dialog-renderer",function(){if(GGw!==void 0)return GGw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return GGw=M},{mode:1});var Emw;var rz=function(){var M=_.g.apply(this,arguments)||this;M.isOverlay=!1;M.hidden=!1;return M};
_.w(rz,_.g);_.P=rz.prototype;_.P.onPopupClosed=function(){this.toggleIconState(!1)};
_.P.computeIcon=function(){var M,z,J;return(z=_.G((M=this.data)==null?void 0:M.icon,e1v))==null?void 0:(J=z.icon)==null?void 0:J.iconType};
_.P.computeIconBadgeShape=function(){var M;return{iconBadgeType:"cart",iconBadgeText:(M=this.iconBadgeEntity)==null?void 0:M.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.onClick=function(){var M;(M=this.data)!=null&&M.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.P.computeHidden=function(M){return!M};
_.P.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
rz.prototype.onPopupClosed=rz.prototype.onPopupClosed;_.u([_.p(_.Wg),_.W("design:type",Object)],rz.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],rz.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],rz.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],rz.prototype,"isOverlay",void 0);
_.u([_.Y({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.W("design:type",Object)],rz.prototype,"hidden",void 0);_.u([_.Y({selectorArgs:["data.iconBadgeEntityKey"],selector:function(M,z){return _.Is(M.entities,"iconBadgeEntity",z)}}),
_.W("design:type",Object)],rz.prototype,"iconBadgeEntity",void 0);_.u([_.Qc("yt-icon-button"),_.W("design:type",HTMLButtonElement)],rz.prototype,"iconButton",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rz.prototype,"onPopupClosed",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],rz);
_.d(rz,"ytd-icon-badge-topbar-button-renderer",function(){if(Emw!==void 0)return Emw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return Emw=M},{mode:1});var fIw;var Mq=function(){var M=_.g.apply(this,arguments)||this;M.premiumOptions=[];M.darkerDarkTheme=_.U("web_darker_dark_theme");return M};
_.w(Mq,_.g);Mq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.rX.Object.defineProperties(Mq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Mq.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Array)],Mq.prototype,"premiumOptions",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Mq.prototype,"darkerDarkTheme",void 0);_.u([_.F("premiumOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],Mq.prototype,"hasPremiumOptions",null);
_.u([_.c({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Mq);
_.d(Mq,"ytd-offline-promo-content",function(){if(fIw!==void 0)return fIw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return fIw=M},{mode:1});var LHl;var ze=function(){var M=_.g.apply(this,arguments)||this;M.premiumOptions=[];return M};
_.w(ze,_.g);ze.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M;this.premiumOptions=QE5((M=this.data)==null?void 0:M.formats)};
ze.prototype.onClickSubmit=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var M;(M=_.J_())==null||M.pause()};
ze.prototype.attached=function(){this.JSC$20537_scroller&&(this.JSC$20537_scroller.dialogElement=this.hostElement.parentNode)};
_.rX.Object.defineProperties(ze.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
ze.prototype.dataChanged=ze.prototype.dataChanged;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ze.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ze.prototype,"data",void 0);
_.u([_.Y({computed:"computeIcon_(data.headersIcon)",value:""}),_.W("design:type",String)],ze.prototype,"headersIcon",void 0);_.u([_.Y(),_.W("design:type",Array)],ze.prototype,"premiumOptions",void 0);_.u([_.Qc("#scroller"),_.W("design:type",Object)],ze.prototype,"JSC$20537_scroller",void 0);_.u([_.F("headersIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],ze.prototype,"showIcon",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ze.prototype,"dataChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],ze);
_.d(ze,"ytd-offline-promo-renderer",function(){if(LHl!==void 0)return LHl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return LHl=M},{mode:1});var A5w;var JO=function(){var M=_.g.apply(this,arguments)||this;M.playbackPauseInterval=NaN;M.isLoading=!1;M.hasError=!1;M.dialogClass="";M.youtubeLabel=_.e9("LOGO_ALT_LABEL",{},"YouTube Home");M.logoName="yt-logos-ext:yt-logo-updated";M.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return M};
_.w(JO,_.g);_.P=JO.prototype;_.P.onDataChange=function(){var M;if(this.showEOMV1Text=!((M=this.data)==null||!M.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.P.attached=function(){this.pausePlayer()};
_.P.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.P.handleLangSelect=function(M){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[M.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.P.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.P.handleSaveConsent=function(M){var z=this;this.showLoadingSpinner();this.showLoadingSpinner();zMG(_.G(M,QQi)).catch(function(J){_.yA(new _.xN("Something went wrong when save consent "+(J.message?J.message:J)+"."));z.hideLoadingSpinner();z.showErrorMessage()})};
_.P.handleDisablePersonalization=function(M){var z=this;this.showLoadingSpinner();Juw(_.G(M,eyu)).then(function(){z.dialog.close();z.resumePlayer()}).catch(function(J){_.yA(new _.xN("Something went wrong when disable personalization "+(J.message?J.message:J)+"."));
z.hideLoadingSpinner();z.showErrorMessage()})};
_.P.showLoadingSpinner=function(){var M=this;this.showSpinnerJobId=_.no.addLowPriorityJob(function(){M.isLoading=!0},500)};
_.P.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.no.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.P.showErrorMessage=function(){var M=this;this.hasError=!0;_.no.addLowPriorityJob(function(){M.hasError=!1},2E3)};
_.P.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.O7(function(){try{var M=_.J_();M&&M.pause()}catch(z){}},100))};
_.P.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var M=_.J_();M&&M.play()}catch(z){}};
_.rX.Object.defineProperties(JO.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var z=["SHIELD","WARNING","BAR_CHART"],J=this.data.eomV1Text.essentialCookieMsg.items,R=0;R<z.length&&R<J.length;R++)M.push({icon:z[R],text:J[R]});return M}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var z=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],J=this.data.eomV1Text.nonEssentialCookieMsg.items,R=0;R<z.length&&R<J.length;R++)M.push({icon:z[R],text:J[R]});return M}}});
JO.prototype.onDataChange=JO.prototype.onDataChange;_.u([_.Y(),_.W("design:type",Object)],JO.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],JO.prototype,"showEOMV1Text",void 0);_.u([_.Y(),_.W("design:type",Object)],JO.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Object)],JO.prototype,"hasError",void 0);_.u([_.Y(),_.W("design:type",Number)],JO.prototype,"showSpinnerJobId",void 0);_.u([_.Y(),_.W("design:type",Object)],JO.prototype,"dialogClass",void 0);
_.u([_.Qc("#dialog"),_.W("design:type",Object)],JO.prototype,"dialog",void 0);_.u([_.Qc("#cb-header"),_.W("design:type",HTMLElement)],JO.prototype,"header",void 0);_.u([_.Qc("#lang-select"),_.W("design:type",HTMLElement)],JO.prototype,"langSelect",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],JO.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],JO.prototype,"ytComponentBehavior",void 0);
_.u([_.Y(),_.W("design:type",String)],JO.prototype,"youtubeLabel",void 0);_.u([_.Y(),_.W("design:type",Object)],JO.prototype,"logoName",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JO.prototype,"onDataChange",null);_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],JO.prototype,"eomEssentialCookieMsgItems",null);
_.u([_.F("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],JO.prototype,"eomNonEssentialCookieMsgItems",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],JO);
_.d(JO,"ytd-consent-bump-v2-lightbox",function(){if(A5w!==void 0)return A5w;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return A5w=M},{mode:1});var i7v;var Re=function(){return _.g.apply(this,arguments)||this};
_.w(Re,_.g);Re.prototype.ready=function(){if(!_.vJ()||gTv)var M=!0;else gTv=!0,M=!1;M||(M=document.querySelector("ytd-app"),M||(M=document.body),this.internalLightBox=_.SN(M).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.u([_.Y(),_.W("design:type",Object)],Re.prototype,"data",void 0);_.u([_.Qc("#lightbox"),_.W("design:type",Object)],Re.prototype,"lightBox",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Re);
_.d(Re,"ytd-consent-bump-v2-renderer",function(){if(i7v!==void 0)return i7v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return i7v=M},{mode:1});var CQv;var b7N;var r5w;var D$=function(){return _.g.apply(this,arguments)||this};
_.w(D$,_.g);_.P=D$.prototype;_.P.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&d9w(this.toastManager,this.toastType)};
_.P.open=function(M){this.toast&&(this.ephemeralAction&&_.JF().resolve(_.g1).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=M!=null?M:0,this.toastManager.enqueue(this.toast,M)):this.toast.open())};
_.P.close=function(M){var z;(z=this.toast)==null||z.close();this.toastManager&&M===1&&d9w(this.toastManager,M)};
_.P.refit=function(){var M;(M=this.toast)==null||M.refit()};
_.P.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var M;(M=this.toast)==null||M.close()}};
_.P.setVerticalOffset=function(M){this.toast&&(this.toast.verticalOffset=M,this.toast.fit())};
_.P.computeButtonClass_=function(M){return M?"toast-button":""};
_.P.computeText_=function(M){return _.CD(M)};
_.P.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rx("toast-opened-changed",this.toastOpened))};
_.P.updateToastOpenedFromBinding=function(M){this.toastOpened=M.detail.value};
_.rX.Object.defineProperties(D$.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var M,z,J=(M=this.data)==null?void 0:(z=M.actionButton)==null?void 0:z.buttonRenderer;return(J==null?void 0:J.command)||(J==null?void 0:J.serviceEndpoint)||(J==null?void 0:J.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var M=[],z;((z=this.data)==null?0:z.responseText)&&M.push(_.CD(this.data.responseText));var J;((J=this.data)==null?0:J.subText)&&M.push(_.CD(this.data.subText));var R,D;if((R=this.data)==null?0:(D=R.actionButton)==null?0:D.buttonRenderer){var N,Z;M.push(((N=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Z=N.accessibilityData)==null?void 0:Z.label)||_.CD(this.data.actionButton.buttonRenderer.text))}return M.filter(function(B){return B}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var M,z;return(z=(M=this.toast)==null?void 0:M.opened)!=null?z:!1}}});
D$.prototype.toastOpenedChangedForBinding=D$.prototype.toastOpenedChangedForBinding;D$.prototype.toastOpenedChanged=D$.prototype.toastOpenedChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],D$.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],D$.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],D$.prototype,"duration",void 0);
_.u([_.Y(),_.W("design:type",Number)],D$.prototype,"toastType",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],D$.prototype,"useCloseButton",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],D$.prototype,"closeToastOnActionButtonClick",void 0);_.u([_.Y({value:function(){return _.e9("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],D$.prototype,"closeButtonAriaLabel",void 0);_.u([_.Y(),_.W("design:type",Boolean)],D$.prototype,"toastOpened",void 0);_.u([_.Y(),_.W("design:type",Boolean)],D$.prototype,"hasOpened",void 0);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"command",null);_.u([_.F("labelText","command","duration"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"ephemeralAction",null);
_.u([_.F("ephemeralAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"hasEphemeralAction",null);_.u([_.Qc("#toast"),_.W("design:type",Object)],D$.prototype,"toast",void 0);_.u([_.Y({value:function(){return{style:"call-to-action-inverse"}}}),
_.W("design:type",Object)],D$.prototype,"buttonOverrides",void 0);_.u([_.Y({value:{style:"mono-inverse"}}),_.W("design:type",Object)],D$.prototype,"closeButtonOverrides",void 0);_.u([_.Y({value:function(){return _.JF().resolve(_.zw(_.jk))}}),
_.W("design:type",Object)],D$.prototype,"toastManager",void 0);_.u([_.F("data.responseText","data.subText","data.actionButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"labelText",null);_.u([_.la("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"toastOpenedChanged",null);
_.u([_.la("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"toastOpenedChangedForBinding",null);_.u([_.cU({is:"yt-notification-action-renderer",disableElementRegistration:!0})],D$);
_.d(D$,"yt-notification-action-renderer",function(){if(r5w===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;b7N===void 0&&(b7N=document.createElement("template"));var R=b7N;J.call(z,R.content.cloneNode(!0),M.content.firstChild);r5w=M}M=r5w;return M},{mode:2});var Nq=function(){var M=_.g.apply(this,arguments)||this;M.duration=4E3;M.downloadingCount=0;M.downloadedCount=0;M.downloadingOnlySmartDownloads=!1;M.sessionTotalDownloads=0;M.sessionDownloaded=0;M.previousSessionsDownloaded=0;M.totalDownloadPercentage=0;M.currentDownloadProgress=0;M.currentDownloadPercentage=0;M.isLeaderTab=!0;M.isFullScreen=!1;M.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};M.boundBeforeUnload=function(z){M.isLeaderTab&&M.downloadingCount>0&&(z.preventDefault(),
z.returnValue=!0)};
return M};
_.w(Nq,_.g);_.P=Nq.prototype;
_.P.open=function(){this.updateDownloadState();if(this.data){var M=this.sessionDownloaded+1,z=this.sessionTotalDownloads>1?_.e9("VIDEOS_DOWNLOADING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+M+"/"+this.sessionTotalDownloads):_.e9("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(z=this.sessionTotalDownloads>1?_.e9("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
M+"/"+this.sessionTotalDownloads):_.e9("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));M=this.isLeaderTab?_.e9("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.CD(this.data.responseText)!==z||_.CD(this.data.subText)!==M)this.set("data.responseText",_.id(z)),this.set("data.subText",_.id(M)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.P.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.P.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.P.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.P.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var M=this.downloadedCount-this.previousSessionsDownloaded;M<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-M);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.P.handleFullscreenChange=function(M){(this.isFullScreen=M)||this.updatePopup()};
Nq.prototype.updateCurrentDownloadProgress=Nq.prototype.updateCurrentDownloadProgress;Nq.prototype.updatePopup=Nq.prototype.updatePopup;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Nq.prototype,"ytEventForwardingBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Nq.prototype,"actionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"duration",void 0);_.u([_.Y({selector:function(M){return _.CUo(M.entities).length}}),
_.W("design:type",Object)],Nq.prototype,"downloadingCount",void 0);_.u([_.Y({selector:Oul}),_.W("design:type",Object)],Nq.prototype,"downloadedCount",void 0);_.u([_.Y({selector:function(M){var z=_.CUo(M.entities);return BMt(M.entities,z)}}),
_.W("design:type",Object)],Nq.prototype,"downloadingOnlySmartDownloads",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"sessionTotalDownloads",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"sessionDownloaded",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"previousSessionsDownloaded",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"totalDownloadPercentage",void 0);
_.u([_.Y({selector:function(M){var z;M=(z=_.CUo(M.entities))!=null?z:[];return M.length>0?_.$jY(M.slice(-1)):0}}),
_.W("design:type",Object)],Nq.prototype,"currentDownloadProgress",void 0);_.u([_.Y(),_.W("design:type",Object)],Nq.prototype,"currentDownloadPercentage",void 0);_.u([_.Y({selector:_.JE8}),_.W("design:type",Object)],Nq.prototype,"isLeaderTab",void 0);_.u([_.Qc("yt-notification-action-renderer"),_.W("design:type",Object)],Nq.prototype,"notificationActionRenderer",void 0);
_.u([_.wH("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nq.prototype,"updatePopup",null);_.u([_.wH("currentDownloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Nq.prototype,"updateCurrentDownloadProgress",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Nq);
_.d(Nq,"ytd-video-download-toast-renderer",function(){if(CQv!==void 0)return CQv;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return CQv=M},{mode:1});var Mow;var z5G;var Pi=function(){return _.g.apply(this,arguments)||this};
_.w(Pi,_.g);Pi.prototype.computeIsRedLogo=function(M,z){!M&&z&&(M=z);return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
Pi.prototype.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Pi.prototype,"componentBehavior",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.W("design:type",Boolean)],Pi.prototype,"isRedLogo",void 0);_.u([_.Y({computed:"computeLogoName(data)"}),_.W("design:type",String)],Pi.prototype,"logoName",void 0);_.u([_.Y({value:{}}),_.W("design:type",Object)],Pi.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],Pi.prototype,"logoType",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-logo"})],Pi);
_.d(Pi,"ytd-logo",function(){if(z5G!==void 0)return z5G;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return z5G=M},{mode:_.B5("kevlar_poly_si_batch_j074")?1:2});var SM=function(){var M=_.g.apply(this,arguments)||this;M.animationRef={};return M};
_.w(SM,_.g);_.P=SM.prototype;_.P.attached=function(){document.addEventListener("yt-navigate-finish",_.ou(this,this.logYoodle))};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.ou(this,this.logYoodle))};
_.P.logYoodle=function(){var M,z;if((M=this.data)==null?0:(z=M.loggingDirectives)==null?0:z.trackingParams)this.ytRendererBehavior.markDirty(),_.Gm().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.P.computeHideImg=function(M,z){return!!M||!!z};
_.P.computeHideYtdLogo=function(M,z){return!M||!!z};
_.P.computeHideLottie=function(M){return!M};
_.P.computeIsRedLogo=function(M){return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
_.P.renderLogoEntity=function(){var M=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),z=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),J=this.getLogoTitleText(this.data),R=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==M&&(this.url=M);this.animatedUrl!==z&&(this.animatedUrl=z);this.logoTitleText!==J&&(this.logoTitleText=J);this.lottieUrl!==R&&(this.lottieUrl=R,this.lottiePlayerProps=this.computeLottiePlayerProps(R))};
_.P.getSanitizedThumbnail=function(M){return M&&M.thumbnails?_.RkY(M.thumbnails,122)||"":""};
_.P.getThumbnailUrl=function(M,z){if(!z)return"";var J,R;M=M?(J=z.darkThemeLogo)==null?void 0:J.thumbnail:(R=z.lightThemeLogo)==null?void 0:R.thumbnail;return this.getSanitizedThumbnail(M)};
_.P.getAnimatedThumbnailUrl=function(M,z){return z?this.getSanitizedThumbnail(M?z.darkThemeAnimatedLogo:z.lightThemeAnimatedLogo):""};
_.P.getLogoTitleText=function(M){if(M)return _.CD(M.tooltipText)};
_.P.computeLogoIcon=function(M,z){if(z){var J,R;return M?(J=z.darkThemeLogo)==null?void 0:J.icon:(R=z.lightThemeLogo)==null?void 0:R.icon}};
_.P.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.P.getLottieUrl=function(M,z){var J,R,D,N;return M?z==null?void 0:(J=z.darkThemeLogo)==null?void 0:(R=J.lottieAnimation)==null?void 0:R.url:z==null?void 0:(D=z.lightThemeLogo)==null?void 0:(N=D.lottieAnimation)==null?void 0:N.url};
_.P.computeLottiePlayerProps=function(M){if(M){var z;if((z=this.animationRef)==null?0:z.lottieEl){var J;(J=this.animationRef)==null||J.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:M,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.P.onLottieError=function(){this.data&&this.lottieUrl&&_.Pv(this.hostElement,"yoodle-error")};
_.P.onImgError=function(){this.data&&!this.lottieUrl&&_.Pv(this.hostElement,"yoodle-error")};
SM.prototype.playAnimation=SM.prototype.playAnimation;SM.prototype.renderLogoEntity=SM.prototype.renderLogoEntity;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],SM.prototype,"data",void 0);_.u([_.Y({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],SM.prototype,"hideImg",void 0);
_.u([_.Y({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],SM.prototype,"hideYtdLogo",void 0);_.u([_.Y({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.W("design:type",Boolean)],SM.prototype,"hideLottie",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.W("design:type",Boolean)],SM.prototype,"isRedLogo",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],SM.prototype,"useDarkThemeYoodle",void 0);_.u([_.Y(),_.W("design:type",String)],SM.prototype,"url",void 0);_.u([_.Y(),_.W("design:type",String)],SM.prototype,"animatedUrl",void 0);_.u([_.Y(),_.W("design:type",String)],SM.prototype,"logoTitleText",void 0);_.u([_.Y({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.W("design:type",Object)],SM.prototype,"logoIcon",void 0);_.u([_.Y(),_.W("design:type",Object)],SM.prototype,"logoType",void 0);
_.u([_.Y(),_.W("design:type",String)],SM.prototype,"lottieUrl",void 0);_.u([_.Y(),_.W("design:type",Object)],SM.prototype,"lottiePlayerProps",void 0);_.u([_.Y(),_.W("design:type",Object)],SM.prototype,"animationRef",void 0);_.u([_.la("data"),_.la("useDarkThemeYoodle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SM.prototype,"renderLogoEntity",null);
_.u([_.Xw("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],SM.prototype,"playAnimation",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],SM);
_.d(SM,"ytd-yoodle-renderer",function(){if(Mow!==void 0)return Mow;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return Mow=M},{mode:_.B5("kevlar_poly_si_batch_j074")?1:2});var JjG;var R5u;var Z$=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return M};
_.w(Z$,_.g);_.P=Z$.prototype;_.P.onYoodleError=function(){_.U("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.P.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.P.computeTitle=function(M,z,J){return J&&(z==null?0:z.tooltipText)?_.CD(z.tooltipText):_.CD(M)};
_.P.computeAriaLabel=function(M,z,J){return J&&(z==null?0:z.tooltipText)?_.CD(M):""};
_.P.computeShowYoodle=function(M,z,J){return!M||!z&&!!J&&!_.gu.isEmpty(J)};
_.P.onNavigateHomeAction=function(){if(_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M;(M=_.SN(this.hostElement).querySelector(".yt-simple-endpoint"))==null||M.click()}};
_.P.computeLogoHref=function(M,z,J){var R;(J==null?0:J.onTapCommand)?R=this.componentBehavior.computeHref_(J.onTapCommand):M&&(R=this.componentBehavior.computeHref_(M));return R?R:z};
_.P.computeCommand=function(M,z){return(z==null?void 0:z.onTapCommand)||M};
_.P.getEndpointForm=function(){if(_.U("kevlar_topbar_disable_cache_only_home")){var M=_.JF().resolve(_.Vo),z=GVN(M.getState())||"";M=_.YrR(M.getState())||"";return{disableCache:z==="ytd-browse"&&M==="home"}}return{disableCache:!0}};
Z$.prototype.onYoodleError=Z$.prototype.onYoodleError;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Z$.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],Z$.prototype,"componentBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],Z$.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],Z$.prototype,"countryCode",void 0);_.u([_.Y({selectorArgs:["data.overrideEntityKey"],selector:function(M,z){return _.Is(M.entities,"logoEntity",z)}}),
_.W("design:type",Object)],Z$.prototype,"logoEntity",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.W("design:type",Boolean)],Z$.prototype,"showYoodle",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],Z$.prototype,"yoodleError",void 0);_.u([_.Y({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],Z$.prototype,"titleText",void 0);
_.u([_.Y({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],Z$.prototype,"ariaLabelText",void 0);_.u([_.Y({value:"/"}),_.W("design:type",String)],Z$.prototype,"defaultEndpointUrl",void 0);_.u([_.Y({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.W("design:type",String)],Z$.prototype,"endpointUrl",void 0);
_.u([_.Y({computed:"computeCommand(data.endpoint, logoEntity)"}),_.W("design:type",String)],Z$.prototype,"command",void 0);_.u([_.Y(),_.W("design:type",Object)],Z$.prototype,"logoType",void 0);_.u([_.Y({}),_.W("design:type",Boolean)],Z$.prototype,"useDarkThemeYoodle",void 0);_.u([_.Xw("yoodle-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"onYoodleError",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Z$);
_.d(Z$,"ytd-topbar-logo-renderer",function(){if(R5u!==void 0)return R5u;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return R5u=M},{mode:_.B5("kevlar_poly_si_batch_j027")?1:2});var Diw=0;var NeG=_.BD.SEARCH_APPEND_LABEL,PIv=_.BD.SUGGESTION_NEW_VIDEOS_TEXT,SWl=_.BD.SUGGESTION_THUMBNAIL_LABEL,ZLl=_.BD.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,k1i=_.Mf(function(M){function z(Yp){var Gc,By;return _.k(function(Xl){if(Xl.nextAddress==1)return Gc=new Request(Yp),_.Io(Xl,2),Xl.yield(fetch(Gc,{credentials:"include"}),4);if(Xl.nextAddress!=2)return pw(!0),_.ab(Xl,0);By=_.Qa(Xl);_.yA(By);_.UI(Xl)})}
var J=M.isHighlighted;var R=M.suggestion;var D=M.onClickCallback;var N=M.onHoverUpdateCallback;var Z=M.labels;var B=M.queryBuilderFunction;var O=M.onRemoveCallback;var X=M.suggestionIndex;var l=M.generateUniqueId;var e=M.highlightedId;var Q=M.useScrollMargin;var v=M.isKeyboardMode;var x=null,m=null,y=_.AL("div"),H=_.AL("span");M=_.S(_.kE(!1,void 0,"CgAMgc"));var q=M.next().value,b=M.next().value,V=_.iW("a",function(Yp){Yp&&_.pr(237477,Yp,m,function(Gc){m=Gc})}),E=_.iW("button",function(Yp){Yp&&_.pr(237477,
Yp,m,function(Gc){m=Gc})}),L=_.ol(function(Yp){if((Yp==null?void 0:Yp.button)===2)return Yp.preventDefault(),!1;
var Gc=_.y5();Gc&&x&&_.LY(Gc,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var By;D(Yp,R().text,R().index,R().entityMid,Yp==null?void 0:(By=Yp.detail)==null?void 0:By.wasSelectedByKeyboard);return!1}),z8=function(){return R().type===35},O8=function(){return _.U("desktop_enable_single_suggestion_highlight")},I3=function(){return _.NC("desktop_suggestions_panel_row_height")||0},vY=function(){var Yp;
return _.U("desktop_enable_new_video_metadata")&&((Yp=R())==null?void 0:Yp.hasNewVideo)===!0},te=function(){return _.U("desktop_enable_visual_suggest")},wR=function(){return _.U("desktop_enable_entity_suggest")&&H7u(R())},qb=function(){return R().entitySubtitle},cY=function(){return O8()?(J==null?void 0:J())||MB()&&!(v==null?0:v()):(J==null?void 0:J())||MB()},Pu=function(){var Yp=_.HW("SBOX_SETTINGS");
return z8()&&!(Yp==null?0:Yp.HIDE_REMOVE_LINK)},yV=function(){return c5t(R(),{useEntityName:wR()})},Ik,rR=!((Ik=_.JF().resolve(_.zw(_.Ah)))==null||!Ik()),ea=function(){return z8()?_.U("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},ok=function(){return Z==null?void 0:Z().SUGGESTION_DISMISS_LABEL},s$=function(){return Z==null?void 0:Z().SUGGESTION_DISMISSED_LABEL};
M=_.S(_.kE(!1,void 0,"RcUcKd"));Ik=M.next().value;var pw=M.next().value;M=_.S(_.kE(!1,void 0,"yGR7je"));var iJ=M.next().value,Nb=M.next().value,MB=iJ,vu=_.ol(function(){B(H.value.innerText);return!1}),Tc=_.ol(function(Yp){Yp.preventDefault();
return!1}),Gt=_.ol(function(Yp){var Gc=R().text,By=_.HW("SBOX_SETTINGS"),Xl="https://"+(By.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Xl+="&delq="+encodeURIComponent(Gc);(Gc=By==null?void 0:By.PSUGGEST_TOKEN)&&(Xl+="&tok="+Gc);(By=By==null?void 0:By.SESSION_INDEX)&&(Xl+="&authuser="+By);z(Xl);Yp.preventDefault();(Yp=_.y5())&&m&&_.LY(Yp,m,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");O(X==null?void 0:X());return!1}),zc=_.ol(function(){if(O8()&&(v==null?0:v()))return!1;
Nb(!0);N(!0);return!1}),My=_.ol(function(){Nb(!1);
N(!1);return!1}),MN=_.ol(function(){b(!0);
return!1}),ZV=_.ol(function(){b(!1);
return!1}),Lv=_.ol(function(Yp){Yp.preventDefault();
var Gc;(Yp=(Gc=R().entityThumbnailAttributionUrl)!=null?Gc:"")&&_.tbY(Yp);return!1});
M=_.S(_.kE("",void 0,"k9uVge"));var em=M.next().value,FQ=M.next().value;_.FT(function(){Pu()&&FQ(l==null?void 0:l(X==null?void 0:X()));y.value&&_.pr(12453,y.value,x,function(Yp){x=Yp})});
return _.T(_.I,{cond:Ik,then:function(){var Yp={};return _.T("div",{class:_.Qe("ytSuggestionComponentRemovedText",(Yp.ytSuggestionComponentLargerRemovedText=function(){return te()},Yp)),
style:function(){return I3()>0?"height: "+I3()+"px;":""},
role:"button"},s$)},
else:function(){var Yp={},Gc={};return _.T("div",{class:_.Qe("ytSuggestionComponentSuggestion",(Yp.ytSuggestionComponentSuggestionHover=function(){return!O8()},Yp.ytSuggestionComponentHighlighted=cY,Yp.ytSuggestionComponentPersonalizedSuggestion=z8,Yp.ytSuggestionComponentMweb=!1,Yp.ytSuggestionComponentLargerSuggestion=function(){return vY()||te()},Yp.ytSuggestionComponentThumbnailSuggestion=function(){return te()},Yp.ytSuggestionComponentRoundedSuggestion=function(){return _.U("desktop_enable_scrollable_suggestions_panel")&&
_.U("desktop_enable_suggestions_panel_padding")},Yp.ytSuggestionComponentThumbnailPadding=function(){return te()&&!z8()},Yp)),
style:function(){return I3()>0?"height: "+I3()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":zc,"on:mouseout":My,el:y},_.T("div",{class:_.Qe("ytSuggestionComponentText",(Gc.ytSuggestionComponentScrollMargin=Q,Gc)),"aria-label":function(){return vY()?R().text+" "+PIv:R().text},
id:function(){return l==null?void 0:l(X==null?void 0:X())},
"on:mousedown":L,role:"option"},_.T(_.I,{cond:function(){return R().type!==33},
then:function(){return _.T(_.vS,{icon:ea,className:"ytSuggestionComponentIcon"})}}),_.T("div",{class:"ytSuggestionComponentLeftContainer"},_.T("span",{el:H,
role:"button",tabindex:0},_.T(_.G4,{each:yV},function(By){return By.bold?_.T("span",{class:"ytSuggestionComponentBold"},By.text):_.T("span",null,By.text)})),_.T(_.I,{cond:function(){return wR()&&!!R().entitySubtitle||vY()},
then:function(){return _.T("div",{class:"ytSuggestionComponentMetadataContainer"},_.T(_.I,{cond:function(){return wR()&&!!R().entitySubtitle},
then:function(){return _.T("div",{class:"ytSuggestionComponentEntitySubtitle"},qb)}}),_.T(_.I,{cond:function(){return vY()},
then:function(){return _.T("div",{class:"ytSuggestionComponentNewVideoContainer"},_.T("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.T("div",{class:"ytSuggestionComponentNewVideoText"},PIv))}}))}}))),_.T("div",{class:"ytSuggestionComponentRightContainer"},_.T(_.I,{cond:function(){return te()&&R().visualSuggestUrl!==void 0},
then:function(){var By={};return _.T("div",{class:"ytSuggestionComponentThumbnailContainer"},_.T("img",{"aria-label":SWl,class:_.Qe("ytSuggestionComponentVisualSuggestThumbnail",(By.ytSuggestionComponentCircularFrame=function(){return wR()&&R().subtypes.includes(790)},By.ytSuggestionComponentEntitySuggestThumbnail=function(){return wR()},By)),
src:function(){return R().visualSuggestUrl}}),_.T(_.I,{cond:function(){return wR()&&!!R().entityThumbnailAttributionUrl},
then:function(){var Xl={};return _.T("span",{title:ZLl,role:"tooltip"},_.T("div",{"on:mouseover":MN,"on:mouseout":ZV,"on:mousedown":Lv,class:_.Qe("ytSuggestionComponentThumbnailOverlay",(Xl.ytSuggestionComponentThumbnailOverlayHidden=function(){return!q()},Xl))},_.T(_.vS,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.T(_.tg,null,_.T(_.w3,{when:function(){return te()&&Pu()}},function(){var By={};
return _.T("button",{class:_.Qe("ytSuggestionComponentRemoveLinkClearButton",(By.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return em()&&em()===(e==null?void 0:e())},By.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!cY()},By)),
el:E,"on:mousedown":Gt,"aria-label":ok,id:function(){return em()}},_.T(_.vS,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.T(_.w3,{when:function(){return!(te()&&R().visualSuggestUrl!==void 0)&&Pu()}},function(){var By={};
return _.T("a",{class:_.Qe("ytSuggestionComponentRemoveLink",(By.ytSuggestionComponentRemoveLinkDark=rR,By.ytSuggestionComponentRemoveLinkSelected=function(){return em()&&em()===(e==null?void 0:e())},By)),
el:V,"on:mousedown":Gt,"aria-label":ok,tabindex:0,role:"button",id:function(){return em()}},ok)}),_.T(_.w3,{when:function(){return!1}},function(){return _.T("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":vu,"on:mousedown":Tc,role:"button","aria-label":NeG},_.T(_.vS,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Og");var Bed=_.Ca(["//www.google.com/textinputassistant/","/","_tia.js"]),OLw=_.Mf(function(){return _.T("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.T("button",{class:"ytdTextInputAssistantButton","on:click":_.ol(function(){ubi().inputMethodsTracker.add(3);var M,z=(M=_.HW("SBOX_SETTINGS"))==null?void 0:M.REQUEST_LANGUAGE;if(z)return _.qI(_.Nx(Bed,14,z)),!1})},_.T("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Pg");var Tec=function(){this.cache=new Map},IAl=function(M){for(var z=_.S(M.cache.entries()),J=z.next();!J.done;J=z.next()){var R=_.S(J.value);
J=R.next().value;R=R.next().value;R.suggestions.some(function(D){return D.type===35})&&M.cache.delete(J)}};var oOw=_.BD.SEARCH,XB5=_.BD.SEARCH_CLEAR_LABEL,lAw=new _.Nh("FAKE_SUGGEST_RESPONSE");_.N7(_.Mf(function(M){function z(){MN||(MN=setTimeout(function(){Lv()},1E3))}
function J(xp,wg,yu){if(xp.trim()){My=xp;_.yU("REFINEMENTS_TUPLE",void 0);Gt=!0;var ls;wg=aIt(iJ,wg);var lJ=(ls=M.searchEndpoint)==null?void 0:ls.call(M);_.w5d(xp,wg,lJ,ea.value.value,yu);Lv();ea.value.value=xp;ea.value.blur();iJ.reset()}}
function R(xp){return _.k(function(wg){return wg.return(new Promise(function(yu){var ls=new XMLHttpRequest;ls.open("GET",Y2d(xp),!0);ls.withCredentials=!0;var lJ=_.HW("SBOX_SETTINGS");(lJ==null?0:lJ.SEND_VISITOR_DATA)&&ls.setRequestHeader("X-Goog-Visitor-Id",lJ==null?void 0:lJ.VISITOR_DATA);ls.onload=function(){yu(ls.responseText)};
ls.onerror=function(){_.yA(Error("rl"));yu(null)};
setTimeout(function(){ls.abort()},1E4);
ls.send(null)}))})}
function D(xp){var wg,yu,ls,lJ;return _.k(function(wu){switch(wu.nextAddress){case 1:return wg={credentials:"include",headers:FH5()},window.AbortController&&(yu=new AbortController,setTimeout(function(){yu.abort("ytsbox-suggest-timeout")},1E4),wg.signal=yu.signal),_.Io(wu,2),wu.yield(fetch(Y2d(xp),wg),4);
case 4:ls=wu.yieldResult.text();_.ab(wu,3);break;case 2:return lJ=_.Qa(wu),lJ!=="ytsbox-abort-last"&&lJ!=="ytsbox-suggest-timeout"&&_.yA(lJ),wu.return(null);case 3:return wu.return(ls)}})}
function N(xp){var wg,yu,ls;return _.k(function(lJ){switch(lJ.nextAddress){case 1:if(wg=_.JF().resolve(_.zw(lAw)))return lJ.return(wg);yu=Date.now();z();return _.U("yt_searchbox_xhr")?lJ.yield(R(xp),5):lJ.yield(D(xp),4);case 4:ls=lJ.yieldResult;lJ.jumpTo(3);break;case 5:ls=lJ.yieldResult;case 3:if(ls){MN&&(clearTimeout(MN),MN=null);var wu=iJ,Na=yu,di=xp.query.length===0;Na=Date.now()-Na;di?wu.zeroPrefixRoundTripTime=Na:(wu.JSC$20517_totalRoundTripTime+=Na,wu.maxRoundTripTime=Math.max(wu.maxRoundTripTime,
Na),di=Math.floor(Na/100),di>=VYw.length?++wu.roundTripTimeHistogram[9]:++wu.roundTripTimeHistogram[VYw[di]])}return lJ.return(ls)}})}
function Z(xp){var wg,yu,ls;return _.k(function(lJ){if(lJ.nextAddress==1)return(wg=pw.cache.get(ppd(xp)))?lJ.return(wg):lJ.yield(N(xp),2);yu=lJ.yieldResult;if(yu===null)return lJ.return(null);ls=new dzi(yu);xp.query.length===0&&ls.suggestions.length===0||pw.cache.set(ppd(xp),ls);return lJ.return(ls)})}
function B(xp){var wg,yu;return _.k(function(ls){if(ls.nextAddress==1){zc=!1;var lJ=My;lJ=_.gR8()==="search"?(_.KW(location.href,"search_query")||_.KW(location.href,"q"))===lJ:!1;wg=new jgl(xp,lJ?My:null);return ls.yield(Z(wg),2)}yu=ls.yieldResult;if(yu===null)return ls.return();wg.query.length===0&&(iJ.zeroPrefixSuggestionCount=yu.suggestions.length);if(wg.id<=ZV)return iJ.outOfSyncResponseCount++,ls.return();if(document.activeElement!==ea.value)return ls.return();ZV=wg.id;var wu=iJ,Na=yu.rawResponse[2]||
{};wu.experimentTriggeredBeforeFinal||(wu.experimentTriggeredBeforeFinal=wu.experimentTriggeredFinal);wu.experimentTriggeredFinal=!!Na.e;iJ.updateSuggestions(yu.suggestions);y(-1);Pu([]);yu.suggestions!==v()&&PW(yu.suggestions.length);x(yu.suggestions);O8(yu.suggestions.length>0&&yu.suggestions[0].type===33);s$&&(s$.hidden=yu.suggestions.length===0,z8()?(s$.style.minWidth="",wu=s$.style,Na=(lJ=v()[0])==null?void 0:lJ.ignoredPrefix,wu.marginLeft=(Na?Math.min(Na.length*6,ok.value.offsetWidth):0).toString()+
"px"):(s$.style.minWidth=ok.value.offsetWidth+"px",s$.style.marginLeft="0"),dV());_.UI(ls)})}
function O(){if(!Gt)return!1;var xp=_.HW("REFINEMENTS_TUPLE");return xp?(xp=xp[1].map(function(wg,yu){return new y5w([wg,0,[71]],ea.value.value,yu)}),v()!==xp&&PW(xp.length),Pu([]),x(xp),iJ.updateSuggestions(xp),Gt=!1,s$.hidden=xp.length===0,zc=xp.length>0,!0):!1}
function X(){var xp=ea.value.value;(typeof xp==="string"||xp instanceof String)&&xp!==""?V(!0):V(!1)}
function l(){if(_.gR8()==="search"){var xp=window.location.href;try{var wg=_.KW(xp,"search_query")||_.KW(xp,"q")||""}catch(yu){wg=""}wg&&(ea.value.value=wg,V(!0))}}
var e=_.S(_.kE([],void 0,"kGFAjf")),Q=e.next().value;e=e.next().value;var v=Q,x=e;Q=_.S(_.kE(-1,void 0,"mLGL9e"));var m=Q.next().value,y=Q.next().value;Q=_.S(_.kE(-1,void 0,"u2rYdc"));var H=Q.next().value,q=Q.next().value;Q=_.S(_.kE(!1,void 0,"W9DFC"));var b=Q.next().value,V=Q.next().value;Q=_.S(_.kE(!1,void 0,"Ip4dNc"));var E=Q.next().value,L=Q.next().value;e=_.S(_.kE(!1,void 0,"ZNKSQb"));Q=e.next().value;e=e.next().value;var z8=Q,O8=e;e=_.S(_.kE(!1,void 0,"JBrGLd"));Q=e.next().value;var I3=e.next().value;
e=_.S(_.kE(!1,void 0,"P2pD6e"));var vY=e.next().value,te=e.next().value;e=_.S(_.kE(1,void 0,"SjP20c"));var wR=e.next().value,qb=e.next().value;e=_.S(_.kE([],void 0,"h4dRaf"));var cY=e.next().value,Pu=e.next().value;e=_.S(_.kE(!1,void 0,"TUTzaf"));var yV=e.next().value,Ik=e.next().value;e=_.U("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var rR=_.AL("yt-searchbox"),ea=_.AL("input"),ok=_.AL("div"),s$,pw=
new Tec,iJ=ubi(),Nb=_.JF().resolve(_.zw(_.Ah)),MB=function(){var xp;return((xp=M.forceDarkMode)==null?void 0:xp.call(M))||!(Nb==null||!Nb())},vu=function(){return _.U("desktop_enable_scrollable_suggestions_panel")},Tc="i"+Diw++,Gt=!1,zc=!1,My="",MN=null,ZV=-1,Lv=function(){Pu([]);
x([]);O8(!1);s$&&(s$.hidden=!0);MN&&(clearTimeout(MN),MN=null);y(-1)},em=function(xp,wg){xp.preventDefault();
Ik(!0);s$&&(s$.hidden=!1);var yu=m();xp=v();var ls=cY();wg=xfd(wg);yu+=wg;for(yu>=xp.length?yu=-1:yu<-1&&(yu=xp.length-1);yu!==-1&&(ls.includes(yu)||yu>=xp.length||yu<0);)yu+=wg,yu>=xp.length&&(yu=-1);y(yu);m()>=0&&(ea.value.value=v()[m()].text,q(0),X(),xp=m(),ls=H(),(ls=document.getElementById(o$[xp][ls]))&&vu()&&(xp===v().length-1?s$.scrollTop=s$.scrollHeight:ls.scrollIntoView({block:"nearest",inline:"start"})))},FQ=_.ol(function(xp){if(!(xp.relatedTarget instanceof Element&&xp.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!0);
var wg;(wg=M.focusCallback)==null||wg.call(M,!0);O()||(zc?s$.hidden=!1:(_.Pv(rR.value,"yt-autonav-pause-focus",{}),B(xp.target.value)))}}),Yp=_.ol(function(xp){if(!(xp.relatedTarget instanceof Element&&xp.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!1);
var wg;(wg=M.focusCallback)==null||wg.call(M,!1);s$.scrollTop=0;s$.hidden=!0;_.Pv(rR.value,"yt-autonav-pause-blur",{})}}),Gc=function(xp){xp=xfd(xp);
var wg;((wg=o$[m()])==null?0:wg[H()+xp])&&q(H()+xp)},By=_.ol(function(xp){var wg=xp.target;
switch(xp.keyCode){case 13:xp.preventDefault();var yu;if((yu=o$[m()])==null?0:yu[H()]){var ls;(ls=document.getElementById(o$[m()][H()]))==null||ls.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}xp=xp.shiftKey?4:3;yu=iJ;ls=m();yu.selectedSuggestionIndex=ls;J(wg.value,xp);break;case 27:s$&&(s$.hidden=!0);break;case 40:em(xp,40);break;case 38:em(xp,38);break;case 39:Gc(39);break;case 37:Gc(37);break;case 229:iJ.inputMethodsTracker.add(4);break;default:iJ.inputMethodsTracker.add(1),
q2v(iJ)}return!1}),Xl=_.ol(function(xp){B(xp.target.value);
X();vu()&&s$&&(s$.scrollTop=0);return!1}),F3=_.ol(function(){iJ.inputMethodsTracker.add(2);
q2v(iJ);return!1});
_.FT(function(){if(s$){iJ.reset();if(window.ResizeObserver){var xp=new ResizeObserver(function(){z8()||(s$.style.minWidth=ok.value.offsetWidth+"px")});
xp.observe(ok.value);(new ResizeObserver(function(){dV()})).observe(s$);
_.pq(function(){xp.disconnect()})}l();
window.addEventListener("yt-navigate-finish",l);window.addEventListener("yt-focus-searchbox",function(){ea.value.focus()});
var wg;I3((wg=_.HW("SBOX_SETTINGS"))==null?void 0:wg.HAS_ON_SCREEN_KEYBOARD)}else _.nc(new _.xN("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var UF=_.ol(function(xp){xp.preventDefault();J(ea.value.value,12);return!1}),qB=_.ol(function(xp){xp.preventDefault();
var wg,yu;(wg=ea)==null||(yu=wg.value)==null||yu.focus();var ls,lJ;((ls=ea)==null?void 0:(lJ=ls.value)==null?void 0:lJ.value)!==""&&(ea.value.value="",ea.value.dispatchEvent(new Event("input")));return!1}),Ht=_.ol(function(){var xp=wvl(ea.value.value,v().filter(function(wg){return wg.type!==35}).map(function(wg){return{label:wg.text}}));
_.S9(rR.value,"yt-open-popup-action",[{openPopupAction:xp},document.body]);return!1}),Vu=_.ol(function(){ea.value.focus();
return!1}),Rr=function(xp,wg,yu,ls,lJ){iJ.selectedSuggestionIndex=yu;
J(wg,lJ?3:1,ls)},NH=function(xp){ea.value.value=xp;
ea.value.dispatchEvent(new Event("input"));iJ.inputMethodsTracker.add(5);q2v(iJ,!0)},o$=[[]],wc=function(xp){var wg="searchbox-suggestion"+_.dq(_.HB);
o$[xp].push(wg);return wg},PW=function(xp){if(v()){o$=[[]];
for(var wg=0;wg<xp;wg++)o$.push([])}},dV=function(){if(vu()){var xp=s$,wg=xp.scrollTop;
xp=xp.scrollHeight-xp.clientHeight;te(wg>=xp);wg=Math.abs(xp-wg);wg<=40?qb(1-(40-wg)/40):qb(1)}},CY=function(){return"opacity: "+wR()*100+"%"},Fn=_.ol(function(){dV();
return!1}),dR=_.ol(function(){Ik(!1);
return!1}),VH,QV={},Iv={},gi={},ti={};
return _.T("yt-searchbox",{class:_.Qe("ytSearchboxComponentHost",(QV.ytSearchboxComponentMweb=!1,QV.ytSearchboxComponentDesktop=!0,QV["yt-searchbox-filled-query"]=function(){return b()},QV["ytd-masthead"]=function(){return!E()},QV.ytSearchboxComponentHostDark=MB,QV)),
role:"search",el:rR,"client-ve-type":10349},_.T("div",{el:ok,"on:click":Vu,class:_.Qe("ytSearchboxComponentInputBox",(Iv.ytSearchboxComponentInputBoxDark=MB,Iv.ytSearchboxComponentInputBoxHasFocus=E,Iv))},_.T("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":UF},_.T(_.I,{cond:E,then:function(){return _.T("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.T(_.vS,{icon:"SEARCH"}))}}),_.T("input",{el:ea,
class:_.Qe("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Tc,"aria-expanded":!((VH=s$)==null?0:VH.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Yp,"on:focus":FQ,"on:input":Xl,"on:keydown":By,"on:paste":F3,placeholder:M.placeholderText,"aria-activedescendant":function(){var xp;return(xp=o$[m()])==null?void 0:xp[H()]},
"aria-autocomplete":"list",role:"combobox"})),_.T(_.I,{cond:Q,then:function(){return _.T("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.T(OLw,null))}}),_.T(_.I,{cond:b,
then:function(){return _.T("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.T("button",{class:"ytSearchboxComponentClearButton","on:click":qB,"aria-label":M.clearButtonAriaLabel||XB5},_.T(_.vS,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.T(_.Tn,{model:{}})))}})),_.T("button",{class:_.Qe("ytSearchboxComponentSearchButton",(gi.ytSearchboxComponentSearchButtonDark=MB,gi)),
"on:click":UF,"aria-label":oOw,title:M.placeholderText},_.T(_.vS,{icon:"SEARCH"})),_.T(_.I,{cond:function(){if(d3u()&&_.U("mweb_voice_search")&&M.voiceSearchButton)return M.voiceSearchButton()},
then:function(xp){var wg={};return _.T("div",{class:_.Qe("ytSearchboxComponentVoiceSearchWrapper",(wg.ytSearchboxComponentHideVoiceSearchButton=function(){return b()},wg))},_.T(_.t_,{data:xp},{buttonRenderer:function(yu){return _.T(_.ML,{data:yu.data,
onButtonClickCallback:function(){}})}}))}}),_.T("div",{el:_.zL(function(xp){return void(s$=xp)}),
id:Tc,class:_.Qe("ytSearchboxComponentSuggestionsContainer",(ti.ytSearchboxComponentSuggestionsContainerDark=MB,ti["yt-searchbox-suggestions-container"]=!1,ti.ytSearchboxComponentSuggestionsContainerScrollable=vu(),ti.ytSearchboxComponentSuggestionsContainerAnimated=e,ti)),"on:scroll":Fn,"on:mousemove":dR,role:"listbox",hidden:!0},_.T(_.G4,{each:v},function(xp,wg){return _.T(k1i,{suggestion:xp,isHighlighted:function(){return wg()===m()},
onClickCallback:Rr,onHoverUpdateCallback:function(yu){if(_.U("desktop_enable_single_suggestion_highlight")){var ls=wg();yu&&(q(0),y(ls))}},
onRemoveCallback:function(yu){IAl(pw);yu===void 0||yu<0||cY().includes(yu)||Pu([].concat(_.Yj(cY()),[yu]))},
labels:M.labels,queryBuilderFunction:NH,suggestionIndex:wg,generateUniqueId:wc,highlightedId:function(){var yu;return(yu=o$[m()])==null?void 0:yu[H()]},
useScrollMargin:vu(),isKeyboardMode:yV})}),_.T(_.I,{cond:function(){return!z8()&&v().find(function(xp){return xp.type!==35})&&_.U("searchbox_reporting")},
then:function(){return _.T("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Ht},_.e9("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.T(_.I,{cond:function(){return!vY()&&vu()},
then:function(){return _.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:CY}))}})))},"Qg"),"yt-searchbox",{props:{searchEndpoint:_.zn,
placeholderText:_.zn,labels:_.zn,voiceSearchButton:_.zn,focusCallback:_.Dv,clearButtonAriaLabel:_.zn,forceDarkMode:_.zn}});var k6=function(){var M=_.g.apply(this,arguments)||this;M.menuButtonTargetId="topbar-guide-menu";M.narrow=!1;M.menuStrings={BACK_ALT_LABEL:_.e9("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.e9("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.e9("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.e9("SBOX_PLACEHOLDER",void 0,"Search")};M.pageDarkTheme=document.documentElement.hasAttribute("dark");M.watchPageScrollTop=0;M.theater=!1;M.fullscreen=!1;M.disableFrostedGlassDuringViewTransition=
!1;M.desktopUnifiedSearchPanelMode=_.U("desktop_enable_unified_search_panel");M.cinematicTheaterMode=_.U("web_cinematic_theater_mode");M.ytSearchboxFocused=!1;M.searchboxLabels=_.HW("SBOX_LABELS");M.topbarIsAboveChipbar=!1;M.isDarkThemeForced=!1;M.areGhostCardsHidden=!1;M.guideKeyboardToggle=!1;M.voiceSearchManager=c3l();M.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};M.setYtSearchboxFocused=function(z){M.ytSearchboxFocused=
z};
M.toggleFrostedGlassDuringViewTransition=function(z){M.disableFrostedGlassDuringViewTransition=z};
return M};
_.w(k6,_.g);_.P=k6.prototype;_.P.computeSimpleText=function(M){return _.CD(M)};
_.P.onDarkChanged=function(){for(var M=_.S(this.buttons||[]),z=M.next();!z.done;z=M.next())z.value.isOverlay=!!this.dark;M=_.S(this.buttonRenderers||[]);for(z=M.next();!z.done;z=M.next())z.value.overrides=this.computeButtonOverride()};
_.P.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.P.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var M=_.fN(_.Eb(),"aa");_.kz(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||M||(this.isDarkThemeForced=this.dark=!0);this.logoType?(M=this.hostElement.querySelector("#masthead-logo"))&&(_.U("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.eJ(M)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ou(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ou(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.P.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ou(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ou(this,this.onSetTheaterModeEnabled))};
_.P.dataChanged=function(){var M=this.data;M&&(this.voiceEnabled=M.voiceSearchButton?c3l().isSupported():!1,_.oxQ(_.sE(),this.menuButtonTargetId,this.guideButton),M.onReceivedActions&&M.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Bv(this.hostElement,M.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&M&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.kz(this.hostElement,"dark",!1),_.kz(this.hostElement,"theater",!1),
(M=this.hostElement.querySelector("#masthead-logo"))&&(_.U("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.eJ(M))))};
_.P.computeCenterHidden=function(){var M;return this.data&&!((M=this.data.searchbox)==null?0:M.fusionSearchboxRenderer)};
_.P.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.kz(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.P.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.P.onWatchScroll=function(M){this.watchPageScrollTop=M.detail||0;this.updateMastheadBackgroundOpacity()};
_.P.onFullscreenChangeAction=function(M){M||(this.watchPageScrollTop=0);this.fullscreen=M;this.updateMastheadBackgroundOpacity()};
_.P.onSetTheaterModeEnabled=function(M){this.theater=M.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.P.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.P.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.P.setBackgroundOpacity=function(M){M=this.calculateBackgroundOpacity(M);this.background.style.opacity=""+M};
_.P.calculateBackgroundOpacity=function(M){var z=this.theater&&this.cinematicTheaterMode?.6:0,J=this.hostElement.clientHeight/2;return Math.min(Math.max(M,0),J)/J*(1-z)+z};
_.P.shouldShowCinematicMastHead=function(){var M=_.U("kevlar_watch_grid")&&!_.U("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(M||this.pageDarkTheme)};
_.P.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.P.focusGuide=function(){this.guideButton.focus()};
_.P.onGuideToggleTap=function(){_.Pv(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.P.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.P.onGuideToggleHover=function(){_.Pv(this.hostElement,"yt-guide-hover")};
_.P.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.P.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.P.closeOnOutsideClickCondition=function(M){for(M=_.CX(M);M[0];){var z=M.shift();if(z instanceof Element&&z.id==="kbd")return!1}return!0};
_.P.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.P.pausePlayer=function(){var M;(M=_.J_())==null||M.pause();this.pauseMiniplayer()};
_.P.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var M;(M=_.JF().resolve(_.q5).getPlayerElement())==null||M.pause()}};
_.P.isMiniplayerActive=function(){return _.JF().resolve(_.q5).isMiniplayerActive()};
_.P.updateNarrowFromBinding=function(M){this.narrow=M.detail.value};
_.P.onYtSendFeedbackAction=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.registerWithViewTransitionManager=function(){irm(_.JF().resolve(_.xm),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.rX.Object.defineProperties(k6.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var M;return(M=this.data)==null?void 0:M.voiceSearchButton}}}});
k6.prototype.narrowChanged=k6.prototype.narrowChanged;k6.prototype.onWatchPageChange=k6.prototype.onWatchPageChange;k6.prototype.onRendererStamperFinished=k6.prototype.onRendererStamperFinished;k6.prototype.dataChanged=k6.prototype.dataChanged;k6.prototype.onDarkChanged=k6.prototype.onDarkChanged;_.u([_.p(_.Hw),_.W("design:type",Object)],k6.prototype,"ironResizableBehavior",void 0);_.u([_.p(_.tPm),_.W("design:type",Object)],k6.prototype,"ytdExpandableInputBehavior",void 0);
_.u([_.p(_.Ap.YtdGuideStateAwareBehavior),_.W("design:type",Object)],k6.prototype,"ytdGuideStateAwareBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],k6.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],k6.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Wg),_.W("design:type",Object)],k6.prototype,"ytdReduxBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"narrow",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"logoType",void 0);_.u([_.Y(),_.W("design:type",Boolean)],k6.prototype,"voiceEnabled",void 0);
_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"menuStrings",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],k6.prototype,"dark",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],k6.prototype,"pageDarkTheme",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"watchPageScrollTop",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.aup}),_.W("design:type",Boolean)],k6.prototype,"isWatchPage",void 0);
_.u([_.Y({reflectToAttribute:!0,selector:_.Vx8}),_.W("design:type",Boolean)],k6.prototype,"isShortsPage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],k6.prototype,"theater",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],k6.prototype,"fullscreen",void 0);_.u([_.Y({reflectToAttribute:!0,selector:_.Amp}),_.W("design:type",String)],k6.prototype,"frostedGlassMode",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],k6.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"ytSearchboxFocused",void 0);_.u([_.UV("#buttons > *"),_.W("design:type",Array)],k6.prototype,"buttons",void 0);_.u([_.UV("ytd-button-renderer"),_.W("design:type",Array)],k6.prototype,"buttonRenderers",void 0);_.u([_.Qc("#background"),_.W("design:type",HTMLDivElement)],k6.prototype,"background",void 0);
_.u([_.Qc("#guide-button"),_.W("design:type",Object)],k6.prototype,"guideButton",void 0);_.u([_.Qc("#logo"),_.W("design:type",Object)],k6.prototype,"logo",void 0);_.u([_.Y({computed:"computeButtonOverride(dark)"}),_.W("design:type",Object)],k6.prototype,"buttonOverrides",void 0);_.u([_.wH("dark"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k6.prototype,"onDarkChanged",null);_.u([_.Y({value:function(){return this.onVoiceTap.bind(this)}}),
_.W("design:type",Function)],k6.prototype,"boundOnTapVoiceButton",void 0);_.u([_.Y(),_.W("design:type",Object)],k6.prototype,"topbarIsAboveChipbar",void 0);_.u([_.Y(),_.W("design:type",String),_.W("design:paramtypes",[])],k6.prototype,"guideIcon",null);_.u([_.F("voiceEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],k6.prototype,"shouldShowVoiceSearchButton",null);_.u([_.F("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],k6.prototype,"voiceSearchButton",null);
_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k6.prototype,"dataChanged",null);_.u([_.Xw("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k6.prototype,"onRendererStamperFinished",null);_.u([_.wH("isWatchPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k6.prototype,"onWatchPageChange",null);
_.u([_.wH("narrow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k6.prototype,"narrowChanged",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-masthead"})],k6);
_.d(k6,"ytd-masthead",function(){if(JjG!==void 0)return JjG;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return JjG=M},{mode:_.B5("kevlar_poly_si_batch_j036")?1:2});var e5v;var QMm={},Ui5={},vOG={},G1d={},wBw=(G1d.OFFLINE=(QMm["publicytnetworkstatus-online"]="BACK_ONLINE",QMm),G1d.ONLINE=(Ui5["publicytnetworkstatus-offline"]="OFFLINE",Ui5),G1d.BACK_ONLINE=(vOG["publicytnetworkstatus-offline"]="OFFLINE",vOG.TIMER_TRIGGER="ONLINE",vOG),G1d),Bi=function(){var M=_.g.apply(this,arguments)||this;M.currentState="ONLINE";M.scheduledJobId=0;M.bannerString="";M.bannerVe=null;M.networkStatusManagerInstance=new _.VS;return M};
_.w(Bi,_.g);_.P=Bi.prototype;_.P.attached=function(){var M=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.detached=function(){var M=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.enterState=function(M){var z=this;this.scheduledJobId&&_.no.cancelJob(this.scheduledJobId);M==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):M==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.e9("NO_INTERNET_CONNECTION",void 0,"No internet connection")):M==="BACK_ONLINE"&&(this.bannerString=_.e9("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.x4(_.no,function(){z.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=M};
_.P.stateChangeHandler=function(M){(M=wBw[this.currentState][M])&&this.enterState(M)};
_.P.logVisibility=function(M){var z=_.y5();this.createBannerVe(M);z&&this.bannerVe&&(M?_.VC(z,[this.bannerVe]):_.Ef(z,[this.bannerVe]))};
_.P.createBannerVe=function(M){!this.bannerVe&&M&&(this.bannerVe=_.O3(37929),_.ex(_.Gm(),this.bannerVe))};
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",String)],Bi.prototype,"currentState",void 0);_.u([_.Y(),_.W("design:type",Object)],Bi.prototype,"scheduledJobId",void 0);_.u([_.Y(),_.W("design:type",Object)],Bi.prototype,"bannerString",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Bi);
_.d(Bi,"ytd-network-status-banner",function(){if(e5v!==void 0)return e5v;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return e5v=
M},{mode:1});var xiw;var OT=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};M.hidden=!0;M.frostedGlass=_.U("web_frosted_glass");return M};
_.w(OT,_.g);OT.prototype.computeHidden=function(M){return M&&M.status?!1:!0};
OT.prototype.handleUpdatePermissionRoleCommand=function(M){if(M=_.G(M,_.rTV))if(M=_.G(M.renderer,_.bHS))this.data=M};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],OT.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],OT.prototype,"componentBehavior",void 0);_.u([_.Y({value:!0,computed:"computeHidden(data)"}),_.W("design:type",Object)],OT.prototype,"hidden",void 0);_.u([_.Y(),_.W("design:type",Object)],OT.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],OT.prototype,"frostedGlass",void 0);
_.u([_.c({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],OT);
_.d(OT,"ytd-permission-role-bottom-bar-renderer",function(){if(xiw!==void 0)return xiw;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return xiw=M},{mode:1});var tot;var jMl;var t5N={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Te=function(){return _.g.apply(this,arguments)||this};
_.w(Te,_.g);_.P=Te.prototype;_.P.attached=function(){this.JSC$20620_scroller&&(this.JSC$20620_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20620_scroller.attached&&typeof this.JSC$20620_scroller.attached==="function"&&this.JSC$20620_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(J){J.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var M=_.SN(this.hostElement);M.querySelector("tp-yt-paper-radio-group").selected="";var z=M.querySelector("#reason-text");z&&(z.value="");M.querySelector("#description-text").value=""}};
_.P.canSubmit=function(M,z){_.Pv(this.hostElement,"yt-invalidate-popup-tabbables");return!(M&&z)};
_.P.onCancel=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.P.onSubmit=function(){var M=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(N){return N.active}).map(function(N){return N.innerText.trim()}),z=this.hostElement.querySelector("tp-yt-paper-radio-group"),J=z.selectedItem,R=J.name;
J=J.innerText.trim();var D=z.querySelector("#reason-text");z=void 0;D&&(z=D.value);(D=this.descriptionText.value)&&(D=D.trim());jEw(this.data.searchQuery,M,R,J,D,z);_.S9(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.P.sendFormSubmitToast=function(){var M=_.J9(_.e9("SBOX_INAPPROPRIATE_TOAST"));_.S9(this.hostElement,"yt-open-popup-action",[M,this])};
_.P.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(M){return M.active})};
_.P.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Te.prototype.onIronSelect=Te.prototype.onIronSelect;Te.prototype.onIronChange=Te.prototype.onIronChange;Te.prototype.dataChanged=Te.prototype.dataChanged;_.u([_.Y(),_.W("design:type",Object)],Te.prototype,"data",void 0);_.u([_.Y({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.W("design:type",Boolean)],Te.prototype,"submitDisabled",void 0);_.u([_.Y(),_.W("design:type",Boolean)],Te.prototype,"suggestionSelected",void 0);
_.u([_.Y(),_.W("design:type",Boolean)],Te.prototype,"catagorySelected",void 0);_.u([_.Qc("#scroller"),_.W("design:type",Object)],Te.prototype,"JSC$20620_scroller",void 0);_.u([_.Qc("#description-text"),_.W("design:type",Object)],Te.prototype,"descriptionText",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Te.prototype,"dataChanged",null);
_.u([_.Xw("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Te.prototype,"onIronChange",null);_.u([_.Xw("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Te.prototype,"onIronSelect",null);_.u([_.c({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Te);
_.d(Te,"ytd-search-suggestion-report-dialog",function(){if(jMl!==void 0)return jMl;var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);return jMl=M},{mode:1});var Ie=function(M){var z=M.openPopupAction;var J=M.target;var R=M.container;var D=M.popupContainerConfig;var N=M.getElement;M=M.removeWhenClosed===void 0?!1:M.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=z;this.target=J;this.container=R;this.popupContainerConfig=D;this.getElement=N;this.JSC$20626_popupConfig=this.popupContainerConfig.JSC$19761_popupConfig[this.openPopupAction.popupType];this.rendererName=(z=this.getName())?_.nC8(z,ohc(this.popupContainerConfig,
z)):"";_.U("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=M);this.createPopup()};
Ie.prototype.updatePopup=function(M){this.openPopupAction=M;this.JSC$20626_popupConfig=this.popupContainerConfig.JSC$19761_popupConfig[this.openPopupAction.popupType];pBw(this);_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Ie.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var mis=function(M,z,J){(z=z&&M.JSC$20626_popupConfig.narrowProperties?M.JSC$20626_popupConfig.narrowProperties:M.JSC$20626_popupConfig.properties)&&J!==void 0&&(z.isAriaModal=J);FJ5(M,z);M.isRtl()&&FJ5(M,M.JSC$20626_popupConfig.rtlProperties);YWv(M)};
Ie.prototype.createPopup=function(){var M=this.JSC$20626_popupConfig.component;if(this.popupContent=gOv(this,this.rendererName)){if(M){this.popup=gOv(this,M);var z=this.popupContent;_.U("web_enable_wrapper_for_cow_component_in_popup")&&(z=document.createElement("div"),z.appendChild(this.popupContent));_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20626_popupConfig.slotName&&z.setAttribute("slot",this.JSC$20626_popupConfig.slotName);M=this.popup;var J=this.container.tagName.toLowerCase(),
R=_.rB(z);_.TGn(_.zp(M),_.DE(z,J,R));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.U("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.SN(this.container).appendChild(this.popup)}};
var pBw=function(M){var z,J,R=(z=M.openPopupAction.accessibilityData)==null?void 0:(J=z.accessibilityData)==null?void 0:J.label;R&&(M.popup.ariaLabel=R);var D;((D=M.popupContent.polymerController)!=null?D:M.popupContent).data=(0,_.gu.unsafeClone)(M.openPopupAction.popup[M.getName()]);M.popupContent.duration=sMG(M);M.popupContent.positionType=M.openPopupAction.position;var N=M.openPopupAction.properties;N&&Object.keys(N).forEach(function(Z){M.popupContent[Z]=N[Z]})},FJ5=function(M,z){if(z)for(var J=
_.S(Object.keys(z)),R=J.next();!R.done;R=J.next())R=R.value,M.popup[R]=z[R]},YWv=function(M){if(M.openPopupAction.position){var z=M.JSC$20626_popupConfig.positionalProperties&&M.JSC$20626_popupConfig.positionalProperties[M.openPopupAction.position],J=M.JSC$20626_popupConfig.rtlPositionalProperties&&M.JSC$20626_popupConfig.rtlPositionalProperties[M.openPopupAction.position];
z=M.isRtl()&&J?J:z;z.shiftedHorizontalOffset&&(J=M.popup.style.display,M.popup.style.display="block",M.popupContent&&M.popup.positionTarget&&M.popupContent.clientWidth>M.popup.positionTarget.clientWidth&&(z.horizontalOffset=M.popup.positionTarget.clientWidth/2-z.shiftedHorizontalOffset),M.popup.style.display=J);FJ5(M,z)}},nOw=function(M,z){if(z)for(var J=_.S(Object.keys(z)),R=J.next();!R.done;R=J.next())R=R.value,M.popup.style[R]=z[R]};
Ie.prototype.getName=function(){return _.nh(this.openPopupAction.popup,"renderer")||_.nh(this.openPopupAction.popup,"dialog")||_.nh(this.openPopupAction.popup,"model")||void 0};
var sMG=function(M){M=M.openPopupAction.durationHintMs;return M===0?M:Math.max(4E3,M||4E3)};
Ie.prototype.isRtl=function(){return _.HW("HTML_DIR")==="rtl"};
var gOv=function(M,z){M=M.getElement(z,M.target);M==null&&_.yA(new _.xN("popup getElement returned null",z));return M};var h5u={};
h5u.YtPopupContainerBehavior=[_.LZ.YtComponentBehavior,_.wx.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.DL(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Ns(this.hostElement)},
closePopup:function(M){var z=this.createCacheKey(void 0,M);this.popups_[z]&&this.handleClosePopupAction_(void 0,M)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.no.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.no.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(M){M.opened&&M.keepBelowPlayer&&this.ensurePopupBelowPlayer(M)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var M in this.popups_){var z=this.popups_[M];if(z.popup.scrollAction==="refit"){var J=z.popup.positionTarget.getBoundingClientRect(),R=z.popup;J=J.top;var D=z;if(!D.naturalHeight){D.popup.hidden=!1;D.popup.style.position="fixed";D.popup.style.top="0px";D.popup.style.left="0px";var N=D.popup.getBoundingClientRect();D.naturalHeight=N.bottom-N.top;D.popup.refit()}R.hidden=!(J>=D.naturalHeight+60);z.popupContent.clientHeight===0&&z.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(M){this.popupContainerConfig=M},
handleOpenPopupAction:function(M,z){var J=M.openPopupAction,R=_.JF().resolve(_.zw(_.jk))&&J.popupType==="TOAST";R&&!J.uniqueId&&(J.uniqueId=_.A7());if(!_.U("popup_container_parent_target_killswitch")){var D;z=(D=this.getParentTarget(z))!=null?D:z}var N=this.ensurePopup_(J,z);return new _.If(function(Z){N.then(function(B){if(!B)return Z();this.maybeCreateNarrowMediaQuery_();var O=this.createCacheKey(B.rendererName,B.openPopupAction.uniqueId);if(J.showOncePerUniqueId){if(this.shownPopupKeys_.has(O))return Z();
this.shownPopupKeys_.add(O)}O=this.popups_[O];var X=!(!O||!O.openPopupAction.beReused);X=!!J.reusePopup||X;if(B.popup.opened&&!X){R&&!B.openPopupAction.replacePopup||this.handleClosePopupAction_(B.rendererName,B.openPopupAction.uniqueId);X=J.popupType==="DIALOG"&&!_.U("popup_container_dialog_reopen_killswitch");if(!R&&!X&&O&&O.target==z&&!B.openPopupAction.replacePopup)return Z();_.C4(B.popup,function(){this.completeOpenPopupAction_(J,z,B);Z()}.bind(this))}else B.popup.opened?B.updatePopup(J):this.completeOpenPopupAction_(J,
z,B),Z()}.bind(this))}.bind(this))},
getParentTarget:function(M){if(M&&M instanceof HTMLElement)for(var z=_.S(Object.entries(this.popups_)),J=z.next();!J.done;J=z.next())if(J=_.S(J.value),J.next(),J=J.next().value,J.popup.tagName==="TP-YT-IRON-DROPDOWN"&&M.closest(J.rendererName))return J.target},
completeOpenPopupAction_:function(M,z,J){J.updatePopup(M);M=this.narrowMediaQuery_.queryMatches;var R=this.isAriaModal;J.target=z;var D;z=((D=J.target.polymerController)!=null?D:J.target).popupPositionTarget||J.target;J.JSC$20626_popupConfig.targetContainer&&(z=J.container);J.popup.positionTarget=z;J.popupContent.positionTarget=z;YWv(J);J.JSC$20626_popupConfig.forceFocus&&(J.popupContent.style.outline="none");J.popupContent.tabIndex=-1;J.JSC$20626_popupConfig.narrowProperties&&(J.popup.style.position=
"static");J.JSC$20626_popupConfig.preventAutonav&&J.popup.setAttribute("prevent-autonav",!0);J.JSC$20626_popupConfig.forceCloseOnOutsideClick&&J.popup.setAttribute("force-close-on-outside-click",!0);mis(J,M,R);nOw(J,J.JSC$20626_popupConfig.styles);J.isRtl()&&nOw(J,J.JSC$20626_popupConfig.rtlStyles);if(!J.openPopupAction.shouldStopParentSignal){var N;D=(N=J.target.polymerController)!=null?N:J.target;(J.popupContent.startForwardingEvents||J.popupContainerConfig.forwardingEnabledPopups.has(J.rendererName))&&
D.parentComponent!==J.popupContent&&J.popupContent!==J.target&&J.target!==document.body&&(J.popupContent.startForwardingEvents?J.popupContent.startForwardingEvents(J.popupContainerConfig.forwardedEvents,J.target):(J.JSC$20626_eventForwarder||(J.JSC$20626_eventForwarder=new _.Zz(J.popupContent)),J.JSC$20626_eventForwarder.start(J.popupContainerConfig.forwardedEvents,J.target)))}J=J.popup;J.addEventListener("iron-overlay-opened",_.ou(this,this.onPopupIronOverlayOpened_));J.addEventListener("iron-overlay-closed",
_.ou(this,this.onPopupIronOverlayClosed_));J.addEventListener("iron-overlay-canceled",_.ou(this,this.onPopupIronOverlayCanceled_));J.addEventListener("yt-refit",_.ou(this,this.refitPopup_));J.addEventListener("yt-invalidate-popup-tabbables",_.ou(this,this.handleInvalidatePopupTabbables_));J.open()},
getPopupDurationMs_:function(M){return M.durationHintMs===0?M.durationHintMs:Math.max(4E3,M.durationHintMs||4E3)},
handleClosePopupAction_:function(M,z){var J=_.U("web_popup_cache_key_killswitch")||!!z;if(M||J){var R=this.createCacheKey(M,z);M=(M=this.popups_[R])&&M.popup}else M=_.ckV(_.LH);if(M&&M.close){if(z=_.JF().resolve(_.zw(_.OQ)))M.restoreFocusOnClose=z.isKeyBoardInUse();M.close();this.removePopup_(M,R)}},
handleClosePopupCommand_:function(M){M.closePopupCommand&&M.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,M.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(M){var z={},J;for(J in this.popups_)if(z={key$jscomp$1184:z.key$jscomp$1184},z.key$jscomp$1184=J,!M||!M.some(function(N){return function(Z){return Z==N.key$jscomp$1184}}(z))){var R=this.popups_[z.key$jscomp$1184],D=R.popup;
_.JF().resolve(_.zw(_.jk))&&R.openPopupAction.popupType==="TOAST"||(D&&D.close&&D.close(),this.removePopup_(D,z.key$jscomp$1184))}},
handleClosePopupsAction_:function(M){M.forEach(function(z){var J=this.popups_[z];J&&((J=J.popup)&&J.close&&J.close(),this.removePopup_(J,z))}.bind(this))},
handleGetPopupOpenedAction_:function(M,z){return(z=this.createCacheKey(M,z))&&this.popups_[z]?this.popups_[M].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var M=[],z;for(z in this.popups_){var J=this.popups_[z];J.popup.opened&&M.push(J)}return M},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(M,z){_.U("ytpopup_disable_default_html_caching")&&M&&M.removeWhenClosed&&(_.SN(this.hostElement).removeChild(M),z&&this.popups_[z]&&delete this.popups_[z])},
shouldReusePopup_:function(M){return!(!M||!M.reusePopup)||!(!M||!M.beReused)},
ensurePopup_:function(M,z){this.maybeCreateNarrowMediaQuery_();var J=_.nh(M.popup,"renderer")||_.nh(M.popup,"dialog")||_.nh(M.popup,"model");if(!J)return _.Of();J=_.nC8(J,ohc(this.popupContainerConfig,J));return _.Of(this.getAndMaybeCreatePopup_(M,J,z))},
getAndMaybeCreatePopup_:function(M,z,J){var R=this.createCacheKey(z,M.uniqueId);if(this.popups_[R])return this.popups_[R];M=new Ie({openPopupAction:M,target:J,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(z)});return this.popups_[R]=M},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(M){return _.U("ytpopup_disable_default_html_caching")?M&&M.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.ou(this,this.openPopupQueryMatchesChanged_)),_.SN(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(M){M=M.detail.value;for(var z in this.popups_)mis(this.popups_[z],M)},
onPopupIronOverlayClosed_:function(M){var z=M.currentTarget,J=_.nY3(z);J=J.length>0?J[0]:z;if(J.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){M.detail.popup=z;M.detail.popupRenderer=J;var R,D={context:{openingElement:((R=this.popups_[(J==null?void 0:J.is)||""])==null?void 0:R.target)||void 0}};Object.assign(D,M.detail);var N;_.Pv((N=J.hostElement)!=null?N:J,"yt-popup-closed",D);z.removeEventListener("yt-refit",_.ou(this,this.refitPopup_));z.removeEventListener("yt-invalidate-popup-tabbables",
_.ou(this,this.handleInvalidatePopupTabbables_));z.removeEventListener("iron-overlay-canceled",_.ou(this,this.onPopupIronOverlayCanceled_));z.removeEventListener("iron-overlay-closed",_.ou(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(z)}},
onPopupIronOverlayCanceled_:function(M,z){var J=M.currentTarget,R=_.nY3(J);R=R.length>0?R[0]:J;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){var D;_.Pv((D=R.hostElement)!=null?D:R,"yt-popup-canceled",M.detail);D=z?_.CX(z):null;(!z||["click","tap"].includes(z.type))&&!J.hasAttribute("force-close-on-outside-click")&&J.positionTarget&&D&&D.includes(J.positionTarget)&&M.preventDefault();J.restoreFocusOnClose=_.pH.keyboardEventMatchesKeys(z,"esc")}},
onPopupIronOverlayOpened_:function(M){M=M.currentTarget;var z=_.nY3(M);z=z.length>0?z[0]:M;var J,R;_.Pv((J=z.hostElement)!=null?J:z,"yt-popup-opened",(R=z.hostElement)!=null?R:z);M.keepBelowPlayer&&(this.ensurePopupBelowPlayer(M,!0),this.dynamicallyPositionedElements_.add(M));J=_.JF().resolve(_.zw(_.OQ));R=!!z.querySelector("#toast");J&&J.isKeyBoardInUse()&&!R&&(typeof z.focusFirstItem==="function"?z.focusFirstItem():(z=_.hYu(M),z.length&&z[0].focus()));M.removeEventListener("iron-overlay-opened",
_.ou(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(M){M=M.currentTarget;M.refit&&M.refit()},
refitPopups_:function(){for(var M in this.popups_)this.popups_[M].refit()},
handleInvalidatePopupTabbables_:function(M){M=M.currentTarget;M.invalidateTabbables&&M.invalidateTabbables()},
createCacheKey:function(M,z){return _.U("web_popup_cache_key_killswitch")?z?M+"#"+z:M:z?"#"+z:M},
openSheet:function(M,z){var J=M==null?void 0:M.openPopupActionCommand;!J&&(M==null?0:M.viewModel)&&(J={openPopupAction:{popup:{sheetViewModel:M.viewModel},popupType:"CONTEXTUAL_SHEET"}});J&&this.handleOpenPopupAction(J,z)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var M=this;return _.k(function(z){return z.return(M.handleGetOpenedPopupsAction_().filter(function(J){var R;return((R=J.openPopupAction)==null?void 0:R.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(M,z,J){if(_.U("web_dialog_utils_killswitch")){var R=M==null?void 0:M.openPopupActionCommand,D=(J==null?0:J.ariaLabel)?{accessibilityData:{accessibilityData:{label:J.ariaLabel}}}:void 0;!R&&(M==null?0:M.viewModel)&&(R={openPopupAction:Object.assign({},{popup:{dialogViewModel:M.viewModel},popupType:(J==null?0:J.isModal)?"MODAL":"DIALOG"},D&&D)});R&&this.handleOpenPopupAction(R,z)}else{if(D=M==null?void 0:M.viewModel){var N=J=J===void 0?{}:J;J=N.ariaLabel;D={popup:{dialogViewModel:D},
popupType:N.isModal?"MODAL":"DIALOG"};N={accessibilityData:{label:J}};J&&(D.accessibilityData=N);D={openPopupAction:D}}else D=void 0;if(D=(R=D)!=null?R:M==null?void 0:M.openPopupActionCommand)this.isAriaModal=_.U("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(D,z)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var M=this;return _.k(function(z){return z.return(M.handleGetOpenedPopupsAction_().filter(function(J){var R;return((R=J.openPopupAction)==null?void 0:R.popupType)==="DIALOG"}).length>0)})}}];var yju;var HL5;var cjw=_.Ca(["about:blank"]),oe=function(){var M=_.g.apply(this,arguments)||this;M.isMuted=!1;M.pageLoadTimeoutId=void 0;return M};
_.w(oe,_.g);_.P=oe.prototype;_.P.dataChanged=function(){var M=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var z=this.data.url,J=_.ho(z);_.U("enable_yt_ata_iframe_authuser")?(J=_.ho(z),_.W4(this.iframe,p55(J))):_.W4(this.iframe,J);this.pageLoadTimeoutId=_.x4(_.sj(),function(){return void M.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Dk({destination:window,iframe:this.iframe,origin:_.Y5u(J.toString()),channelName:"ataiframe",onMessage:_.hpw(Unl,function(R){v5N(R.data)?(R=_.av(R.data,1,_.Cv,_.JK()),R.length!==1?_.yA(Error("sl")):(R=R[0],R===3?(M.isMuted=!0,M.logStateChanged({adMuteRequested:!0})):R===1&&M.close())):_.yA(Error("tl"))}),
onEstablished:function(){M.cancelPageLoadTimeout();M.logStateChanged({pageLoadSucceeded:!0})}})}};
_.P.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.sj().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.P.logStateChanged=function(M){var z;if((z=this.data)==null?0:z.trackingParams)M={adsClientData:{aboutThisAdData:M}},_.Gm().stateChanged(this.data.trackingParams,M)};
_.P.close=function(){_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.handlesPopupClosed=function(M,z){var J=this,R,D;return _.k(function(N){if(N.nextAddress==1)return _.HW("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.S9(J.hostElement,"on-about-this-ad-popup-closed",[J.isMuted,z]),N.jumpTo(0)):M&&FKv(M)?N.yield(YUu(M),4):(J.isMuted&&_.S9(J.hostElement,"yt-mute-ad-action",[J.is,J]),N.jumpTo(0));if(R=N.yieldResult){var Z=D=new _.sz(R),B=J.isMuted;Z.getOptions().includes("onAboutThisAdPopupClosed")?_.ER$(Z,"onAboutThisAdPopupClosed",{isMuted:B,layoutId:z}):_.iE("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.UI(N)})};
_.P.onPopupClosed=function(M){var z=this,J,R;return _.k(function(D){J=_.Nx(cjw);_.W4(z.iframe,J);z.cancelPageLoadTimeout();if(!z.data)return D.jumpTo(0);z.ytRendererBehavior.markDirty();R=M.detail.context.openingElement;return D.yield(z.handlesPopupClosed(R,z.data.layoutId),0)})};
_.P.detached=function(){this.cancelPageLoadTimeout()};
_.P.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oe.prototype.onPopupClosed=oe.prototype.onPopupClosed;oe.prototype.dataChanged=oe.prototype.dataChanged;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.u([_.Qc("#iframe"),_.W("design:type",HTMLIFrameElement)],oe.prototype,"iframe",void 0);_.u([_.Y(),_.W("design:type",Object)],oe.prototype,"data",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oe.prototype,"dataChanged",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],oe.prototype,"onPopupClosed",null);_.u([_.cU({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],oe);
_.d(oe,"yt-about-this-ad-renderer",function(){if(HL5===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;yju===void 0&&(yju=document.createElement("template"));var R=yju;J.call(z,R.content.cloneNode(!0),M.content.firstChild);HL5=M}M=HL5;return M},{mode:2});var dim;var KJw;var Xu=function(M){var z=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=z.message;"stack"in z&&(this.stack=z.stack);this.maxFileSizeMB=M;Object.setPrototypeOf(this,Xu.prototype)};
_.w(Xu,Error);var $iw=function(M,z){var J=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=J.message;"stack"in J&&(this.stack=J.stack);this.minWidth=M;this.minHeight=z;Object.setPrototypeOf(this,$iw.prototype)};
_.w($iw,Error);var uot=function(M){this.requirements=M;this.JSC$20654_maxFileSize=M.maxFileSizeMB*1024*1024},qWm=function(M,z){if(z.size>M.JSC$20654_maxFileSize)throw new Xu(M.requirements.maxFileSizeMB);
};var WJd=function(M,z){this.canvas=M;this.imageEditorBuilder=z};
WJd.prototype.addEventListeners=function(M){var z=function(D){aA5(M,D)};
this.JSC$20660_mouseDownEvent=z;var J=function(D){Vod(M,D)};
this.JSC$20660_mouseMoveEvent=J;var R=function(){EOl(M)};
this.JSC$20660_mouseUpEvent=R;this.canvas.addEventListener("mousedown",z);this.canvas.addEventListener("mousemove",J);document.addEventListener("mouseup",R)};
WJd.prototype.removeEventListeners=function(){this.JSC$20660_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20660_mouseDownEvent);this.JSC$20660_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20660_mouseMoveEvent);this.JSC$20660_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20660_mouseUpEvent)};
var fAw=function(M,z){M.removeEventListeners();return new Promise(function(J){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var D=M.imageEditorBuilder(M.canvas,R);M.addEventListeners(D);J(D)};
R.src=z})},lu=function(M,z,J,R,D,N,Z,B){this.canvas=M;
this.image=z;this.requiredRatio=J;this.minImageCropDimension=R;this.minOutputImageResolution=D;this.component=N;this.styleFocusedCorner=B===void 0?!0:B;this.action=2;this.focusedCorner=this.resizeCorner=0;M=this.canvas.getContext("2d");if(!M)throw Error("ul");this.ctx=M;this.canvasMargin=Z!=null?Z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Z=this.image;M=this.canvasInnerWidth/Z.width;Z.height*M>912&&(M=Z.width/Z.height*912/Z.width);Z=M;this.scaledImageWidth=this.canvas.width%2?
gS5(this.image.width*Z):mfd(this.image.width*Z);this.scaledImageHeight=Math.round(this.image.height*Z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20663_overlayMarginBottom=this.JSC$20663_overlayMarginTop=this.canvasMargin;this.JSC$20663_overlayMarginRight=this.JSC$20663_overlayMarginLeft=this.horizontalMargin;this.JSC$20663_overlayWidth=this.scaledImageWidth;this.JSC$20663_overlayHeight=this.scaledImageHeight;
M=this.image.width/this.image.height;M>this.requiredRatio?(this.JSC$20663_overlayWidth=this.canvas.width%2?gS5(this.scaledImageHeight*this.requiredRatio):mfd(this.scaledImageHeight*this.requiredRatio),this.JSC$20663_overlayMarginRight=this.JSC$20663_overlayMarginLeft=(this.canvas.width-this.JSC$20663_overlayWidth)/2):M<this.requiredRatio&&(this.JSC$20663_overlayHeight=this.canvas.height%2?gS5(this.scaledImageWidth/this.requiredRatio):mfd(this.scaledImageWidth/this.requiredRatio),this.JSC$20663_overlayMarginBottom=
this.JSC$20663_overlayMarginTop=(this.canvas.height-this.JSC$20663_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Z,this.scaledImageWidth);LJw(this)};
lu.prototype.getContext=function(){return this.ctx};
var aA5=function(M,z){z={x:Math.round(z.pageX-M.canvas.getBoundingClientRect().left),y:Math.round(z.pageY-M.canvas.getBoundingClientRect().top)};M.dragStart=z;Ajw(M,z)!==0?(M.action=1,iLw(M,z),M.resizeCorner=Ajw(M,z)):z.x>M.JSC$20663_overlayMarginLeft&&z.x<M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth&&z.y>M.JSC$20663_overlayMarginTop&&z.y<M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight&&(M.action=0)},CIt=function(M,z){switch(z){case 1:return{x:M.JSC$20663_overlayMarginLeft,
y:M.JSC$20663_overlayMarginTop};case 2:return{x:M.JSC$20663_overlayMarginLeft,y:M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight};case 3:return{x:M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth,y:M.JSC$20663_overlayMarginTop};case 4:return{x:M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth,y:M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight};default:throw Error("vl");}},rju=function(M,z){if(M.focusedCorner!==0){M.dragStart=CIt(M,M.focusedCorner);
M.action=1;M.resizeCorner=M.focusedCorner;var J=M.dragStart.x,R=M.dragStart.y;switch(z){case 0:M.focusedCorner===1||M.focusedCorner===4?(J-=10,R-=10):(J-=10,R+=10);break;case 1:M.focusedCorner===1||M.focusedCorner===4?(J+=10,R+=10):(J+=10,R-=10);break;case 2:J=M.focusedCorner===1||M.focusedCorner===4?J-10:J+10;R-=10;break;case 3:J=M.focusedCorner===1||M.focusedCorner===4?J+10:J-10;R+=10;break;default:throw Error("wl");}bLd(M,{x:J,y:R});LJw(M);M.action=2;M.dragStart=void 0}},Vod=function(M,z){z={x:Math.round(z.pageX-
M.canvas.getBoundingClientRect().left),
y:Math.round(z.pageY-M.canvas.getBoundingClientRect().top)};iLw(M,z);switch(M.action){case 1:bLd(M,z);break;case 0:M.dragStart&&(M.JSC$20663_overlayMarginLeft=Math.max(M.horizontalMargin,Math.min(M.JSC$20663_overlayMarginLeft-(M.dragStart.x-z.x),M.horizontalMargin+M.scaledImageWidth-M.JSC$20663_overlayWidth)),M.JSC$20663_overlayMarginRight=M.canvas.width-M.JSC$20663_overlayMarginLeft-M.JSC$20663_overlayWidth,M.JSC$20663_overlayMarginTop=Math.max(M.canvasMargin,Math.min(M.JSC$20663_overlayMarginTop-
(M.dragStart.y-z.y),M.scaledImageHeight-M.JSC$20663_overlayHeight+M.canvasMargin)),M.JSC$20663_overlayMarginBottom=M.canvas.height-(M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight));break;default:return}LJw(M);M.dragStart=z},EOl=function(M){M.action=2;
M.dragStart=void 0;document.body.style.cursor="auto"},iLw=function(M,z){switch(Ajw(M,z)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:M.action!==1&&(document.body.style.cursor="auto")}},Ajw=function(M,z){var J=M.JSC$20663_overlayMarginLeft-5,R=M.JSC$20663_overlayMarginTop-5,D=M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth-5;
M=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-5;return M1c(z,{x:J,y:R})?1:M1c(z,{x:D,y:R})?3:M1c(z,{x:J,y:M})?2:M1c(z,{x:D,y:M})?4:0},M1c=function(M,z){return M.x>=z.x&&M.x<=z.x+10&&M.y>=z.y&&M.y<=z.y+10},bLd=function(M,z){if(M.dragStart)switch(M.resizeCorner){case 2:Math.abs((M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth-z.x)/(z.y-M.JSC$20663_overlayMarginTop))>=M.requiredRatio?z3w(M,z.x):J25(M,z.y);
break;case 1:Math.abs((M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth-z.x)/(M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-z.y))>=M.requiredRatio?R3c(M,z.x):J25(M,z.y);break;case 4:Math.abs((z.x-M.JSC$20663_overlayMarginLeft)/(z.y-M.JSC$20663_overlayMarginTop))>=M.requiredRatio?z3w(M,z.x):Dtv(M,z.y);break;case 3:Math.abs((z.x-M.JSC$20663_overlayMarginLeft)/(M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-z.y))>=M.requiredRatio?R3c(M,z.x):Dtv(M,z.y);break;default:throw Error("xl");
}},z3w=function(M,z){var J=M.JSC$20663_overlayMarginTop;
M.JSC$20663_overlayMarginBottom=N9v(M,z);M.JSC$20663_overlayHeight=M.canvas.height-M.JSC$20663_overlayMarginBottom-J;M.JSC$20663_overlayWidth=Math.round(M.JSC$20663_overlayHeight*M.requiredRatio);PX5(M)},R3c=function(M,z){var J=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight;
M.JSC$20663_overlayMarginTop=N9v(M,z);M.JSC$20663_overlayHeight=J-M.JSC$20663_overlayMarginTop;M.JSC$20663_overlayWidth=Math.round(M.JSC$20663_overlayHeight*M.requiredRatio);PX5(M)},PX5=function(M){switch(M.resizeCorner){case 2:case 1:M.JSC$20663_overlayMarginLeft=M.canvas.width-M.JSC$20663_overlayMarginRight-M.JSC$20663_overlayWidth;
break;case 4:case 3:M.JSC$20663_overlayMarginRight=M.canvas.width-M.JSC$20663_overlayMarginLeft-M.JSC$20663_overlayWidth;break;default:throw Error("xl");}},J25=function(M,z){var J=M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth;
M.JSC$20663_overlayMarginLeft=Sst(M,z);M.JSC$20663_overlayWidth=J-M.JSC$20663_overlayMarginLeft;M.JSC$20663_overlayHeight=Math.round(M.JSC$20663_overlayWidth/M.requiredRatio);Z6u(M)},Dtv=function(M,z){var J=M.JSC$20663_overlayMarginLeft;
M.JSC$20663_overlayMarginRight=Sst(M,z);M.JSC$20663_overlayWidth=M.canvas.width-M.JSC$20663_overlayMarginRight-J;M.JSC$20663_overlayHeight=Math.round(M.JSC$20663_overlayWidth/M.requiredRatio);Z6u(M)},Z6u=function(M){switch(M.resizeCorner){case 2:case 4:M.JSC$20663_overlayMarginBottom=M.canvas.height-M.JSC$20663_overlayMarginTop-M.JSC$20663_overlayHeight;
break;case 1:case 3:M.JSC$20663_overlayMarginTop=M.canvas.height-M.JSC$20663_overlayMarginBottom-M.JSC$20663_overlayHeight;break;default:throw Error("xl");}},N9v=function(M,z){switch(M.resizeCorner){case 2:z=M.canvas.height-(M.JSC$20663_overlayMarginTop+kZu(M,z));
break;case 4:z=M.canvas.height-(M.JSC$20663_overlayMarginTop+B9c(M,z));break;case 1:z=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-kZu(M,z);break;case 3:z=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-B9c(M,z);break;default:throw Error("xl");}return Math.max(z,M.canvasMargin)},kZu=function(M,z){z=M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth-Math.max(z,M.horizontalMargin);
z=z<0?M.JSC$20663_overlayWidth:Math.max(z,M.minOverlayWidth);return Math.round(z/M.requiredRatio)},B9c=function(M,z){z=M.canvas.width-Math.max(M.canvas.width-z,M.horizontalMargin)-M.JSC$20663_overlayMarginLeft;
z=z<0?M.JSC$20663_overlayWidth:Math.max(z,M.minOverlayWidth);return Math.round(z/M.requiredRatio)},Sst=function(M,z){switch(M.resizeCorner){case 2:z=M.canvas.width-M.JSC$20663_overlayMarginRight-O6w(M,z);
break;case 4:z=M.canvas.width-M.JSC$20663_overlayMarginLeft-O6w(M,z);break;case 1:z=M.canvas.width-M.JSC$20663_overlayMarginRight-T95(M,z);break;case 3:z=M.canvas.width-M.JSC$20663_overlayMarginLeft-T95(M,z);break;default:throw Error("xl");}return Math.max(z,M.horizontalMargin)},O6w=function(M,z){z=M.canvas.height-Math.max(M.canvas.height-z,M.canvasMargin)-M.JSC$20663_overlayMarginTop;
return z<0?M.JSC$20663_overlayWidth:Math.max(Math.round(z*M.requiredRatio),M.minOverlayWidth)},T95=function(M,z){z=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-Math.max(z,M.canvasMargin);
return z<0?M.JSC$20663_overlayWidth:Math.max(Math.round(z*M.requiredRatio),M.minOverlayWidth)},LJw=function(M){M.ctx.clearRect(0,0,M.canvas.width,M.canvas.height);
M.ctx.drawImage(M.image,0,0,M.image.width,M.image.height,M.horizontalMargin,M.canvasMargin,M.canvas.width-2*M.horizontalMargin,M.scaledImageHeight);M.ctx.fillStyle="rgba(0, 0, 0, 0.7)";M.ctx.fillRect(M.horizontalMargin,M.JSC$20663_overlayMarginTop,M.JSC$20663_overlayMarginLeft-M.horizontalMargin,M.JSC$20663_overlayHeight);M.ctx.fillRect(M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth,M.JSC$20663_overlayMarginTop,M.JSC$20663_overlayMarginRight-M.horizontalMargin,M.JSC$20663_overlayHeight);M.ctx.fillRect(M.horizontalMargin,
M.canvasMargin,M.scaledImageWidth,M.JSC$20663_overlayMarginTop-M.canvasMargin);M.ctx.fillRect(M.horizontalMargin,M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight,M.scaledImageWidth,M.JSC$20663_overlayMarginBottom-M.canvasMargin);M.drawOverlay();M.component&&_.Pv(M.component,"image-updated")};
lu.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20663_overlayMarginLeft,this.JSC$20663_overlayMarginTop,this.JSC$20663_overlayWidth,this.JSC$20663_overlayHeight);IO5(this)};
var IO5=function(M){var z=M.JSC$20663_overlayMarginLeft-5,J=M.JSC$20663_overlayMarginTop-5,R=M.JSC$20663_overlayMarginLeft+M.JSC$20663_overlayWidth-5,D=M.JSC$20663_overlayMarginTop+M.JSC$20663_overlayHeight-5;M.ctx.fillStyle="#FFF";M.ctx.fillRect(z,J,10,10);M.ctx.strokeRect(z,J,10,10);M.ctx.fillRect(R,J,10,10);M.ctx.strokeRect(R,J,10,10);M.ctx.fillRect(z,D,10,10);M.ctx.strokeRect(z,D,10,10);M.ctx.fillRect(R,D,10,10);M.ctx.strokeRect(R,D,10,10);if(M.focusedCorner!==0&&M.styleFocusedCorner){M.ctx.lineWidth=
4;M.ctx.strokeStyle="#3EA6FF";switch(M.focusedCorner){case 1:--z;--J;break;case 2:--z;J=D-1;break;case 3:z=R-1;--J;break;case 4:z=R-1;J=D-1;break;default:return}M.ctx.strokeRect(z,J,12,12)}};
lu.prototype.crop=function(M,z){z=z===void 0?!0:z;var J=this.image.width/this.scaledImageWidth,R=document.createElement("canvas"),D=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],N=this.JSC$20663_overlayWidth*J,Z=this.JSC$20663_overlayHeight*J;R.width=Math.max(N,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);R.height=Math.max(Z,D);M&&(R.width=Math.min(R.width,R.height),R.height=Math.min(R.width,R.height));
M=R.getContext("2d");if(!M)throw Error("ll");D=(this.JSC$20663_overlayMarginLeft-this.horizontalMargin)*J;J*=this.JSC$20663_overlayMarginTop-this.canvasMargin;z||(M.fillStyle="white",M.fillRect(0,0,R.width,R.height));M.drawImage(this.image,D,J,N,Z,0,0,R.width,R.height);return R};var ocm=function(M,z,J,R,D){lu.call(this,M,z,J,R,void 0,D,8,!1)};
_.w(ocm,lu);ocm.prototype.drawOverlay=function(){var M=this.getContext(),z=this.JSC$20663_overlayWidth,J=this.JSC$20663_overlayHeight,R=this.JSC$20663_overlayMarginTop,D=this.JSC$20663_overlayMarginLeft;M.lineWidth=2;M.strokeStyle="#3EA6FF";M.beginPath();M.arc(D+z/2,R+J/2,z/2,0,2*Math.PI);M.stroke();M.strokeRect(D,R,z,J);IO5(this)};
var XLd={maxFileSizeMB:15,minWidth:98,minHeight:98},lOw=["image/png","image/jpeg","image/gif"],eM=function(){var M=_.g.apply(this,arguments)||this;M.fileSelectorFocusListener=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!0;M.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return M};
_.w(eM,_.g);_.P=eM.prototype;_.P.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.P.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.P.computePlaylistThumbnail=function(M){return M==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.P.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.S9(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.P.setErrorState=function(M){this.resetErrorState();M&&(this.errorMessage=M)};
_.P.showPopup=function(){var M=this;this.hideContainer=!1;_.x4(_.no,function(){_.Pv(M.hostElement,"yt-refit")});
this.isLoading=!1};
_.P.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.P.closePopup=function(){this.resetFileSelector();_.S9(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onCancelTap=function(){this.isPlaylistThumbnail||_.S9(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.P.openFileSelector=function(){var M=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.x4(_.no,function(){setTimeout(function(){if(!M.fileSelector.files||M.fileSelector.files.length===0)M.onCancelTap();M.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(z){z instanceof Error?_.nc(z):_.hL(new _.xN(JSON.stringify(z)))}};
_.P.handleFileSelection=function(){var M=this,z,J,R,D,N,Z;return _.k(function(B){switch(B.nextAddress){case 1:_.Io(B,2);if(!M.fileSelector.files||!M.imageEditorCanvas)return M.onCancelTap(),B.return();z=M.fileSelector.files[0];qWm(M.imageChecker,z);_.Io(B,4);return B.yield(M5N(z),6);case 6:M.mimeType=B.yieldResult;_.ab(B,5,2);break;case 4:_.Qa(B,2),_.S9(M.hostElement,"yt-image-selection-error-action",[(J=M.data)==null?void 0:J.genericImageLoadErrorMessage]),M.onCancelTap();case 5:R=new FileReader;
R.addEventListener("load",function(){var O,X;return _.k(function(l){if(l.nextAddress==1){if(!R.result)return _.yA(Error("nl")),l.return();O=R.result;X=new Image;X.src=O;X.onload=function(){try{var e=M.imageChecker;if(X.width<e.requirements.minWidth||X.height<e.requirements.minHeight)throw new $iw(e.requirements.minWidth,e.requirements.minHeight);}catch(v){if(v instanceof $iw){var Q;_.S9(M.hostElement,"yt-image-selection-error-action",[(Q=M.data)==null?void 0:Q.imageDimensionErrorMessage]);M.logImageDimensionErrorVe()}else v instanceof
Error?_.nc(v):(e=new _.xN(JSON.stringify(v)),_.nc(e));M.onCancelTap()}M.showPopup()};
X.onerror=function(){var e;_.S9(M.hostElement,"yt-image-selection-error-action",[(e=M.data)==null?void 0:e.genericImageLoadErrorMessage]);M.onCancelTap()};
return l.yield(fAw(M.imageEditorCanvas,O),2)}M.imageEditor=l.yieldResult;M.updatePositionOfAllCorners();M.addEventListeners(M.imageEditor);_.UI(l)})},!1);
R.readAsDataURL(z);_.ab(B,0);break;case 2:D=_.Qa(B),D instanceof Xu?_.S9(M.hostElement,"yt-image-selection-error-action",[(N=M.data)==null?void 0:N.imageSizeErrorMessage]):(D instanceof Error?_.nc(D):_.hL(new _.xN(JSON.stringify(D))),_.S9(M.hostElement,"yt-image-selection-error-action",[(Z=M.data)==null?void 0:Z.genericImageLoadErrorMessage])),M.onCancelTap(),_.UI(B)}})};
_.P.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var M=_.v5(_.Gm(),{veType:232707,visualElement:_.O3(232707)});M&&(M={visualElement:M},_.UU().reportShown(M))}};
_.P.handleImageSelectionErrorAction=function(M){this.isPlaylistThumbnail&&_.xFG(this.hostElement,M)};
_.P.convertToImageFormatBundle=function(M){var z=this,J,R,D;return _.k(function(N){switch(N.nextAddress){case 1:return J=M.toDataURL(z.outputMimeType,1),N.yield(ztw(J),2);case 2:R=N.yieldResult;_.Io(N,3);qWm(z.imageChecker,R);_.ab(N,4);break;case 3:D=_.Qa(N);if(!(D instanceof Xu))throw D;_.yA(new _.xN("Output size is bigger than input size for image",z.mimeType,z.outputMimeType,R.size));J=M.toDataURL("image/jpeg",.95);return N.yield(ztw(J),6);case 6:R=N.yieldResult;case 4:return N.return({dataUrl:J,
imageFile:R})}})};
_.P.handleUploadImageToScottyCommand=function(M){var z=this,J,R,D,N,Z,B,O,X,l,e;return _.k(function(Q){switch(Q.nextAddress){case 1:if(!z.imageEditor||!_.G(M,HZl))return Q.return();J=_.G(M,HZl).scottyUploadUrl;if(!J){var v=new _.xN("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.nc(v);return Q.return()}_.Io(Q,2);z.setLoadingState();R=z.imageEditor.crop(!1,!1);return Q.yield(z.convertToImageFormatBundle(R),4);case 4:return D=Q.yieldResult,Q.yield(bdu(D.imageFile,J),5);
case 5:N=Q.yieldResult;((Z=z.data)==null?0:Z.onUploadEndpoint)?(B=z.buildUploadServiceEndpoint(N),z.ytComponentBehavior.resolveCommand(B),O=_.G(B,_.uU),((X=O)==null?0:X.params)?z.closePopup():z.resetFileSelector()):(_.S9(z.hostElement,"yt-image-updated-action",[D.dataUrl,N]),z.closePopup());_.ab(Q,0);break;case 2:l=_.Qa(Q),z.setErrorState((e=z.data)==null?void 0:e.uploadErrorMessage),l instanceof Error?_.nc(l):(v=new _.xN(JSON.stringify(l)),_.nc(v)),_.UI(Q)}})};
_.P.buildUploadServiceEndpoint=function(M){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",M),this.data.onUploadEndpoint):null};
_.P.dataChanged=function(){var M=this,z;return _.k(function(J){if(J.nextAddress==1){if(!M.data||!M.canvasElement)return J.return();M.data.imageRatio&&M.data.minImageCropWidth||_.hL(new _.xN("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));z=function(R,D){return M.data.imageType==="IMAGE_TYPE_AVATAR"?new ocm(R,D,M.data.imageRatio,[M.data.minImageCropWidth,M.data.minImageCropWidth/M.data.imageRatio],M.hostElement):new lu(R,D,M.data.imageRatio,[M.data.minImageCropWidth,
M.data.minImageCropWidth/M.data.imageRatio],void 0,M.hostElement,8,!1)};
M.imageEditorCanvas=new WJd(M.canvasElement,z);return M.data.url?J.yield(fAw(M.imageEditorCanvas,M.data.url),3):(M.hideContainer=!0,M.openFileSelector(),J.jumpTo(0))}M.imageEditor=J.yieldResult;M.showPopup();M.addEventListeners(M.imageEditor);_.UI(J)})};
_.P.addEventListeners=function(M){this.removeEventListeners();var z=function(D){aA5(M,D)};
this.JSC$20671_mouseDownEvent=z;var J=function(D){Vod(M,D)};
this.JSC$20671_mouseMoveEvent=J;var R=function(){EOl(M)};
this.JSC$20671_mouseUpEvent=R;this.topLeftCorner.addEventListener("mousedown",z);this.topLeftCorner.addEventListener("mousemove",J);this.topLeftCorner.addEventListener("mouseup",R);this.topRightCorner.addEventListener("mousedown",z);this.topRightCorner.addEventListener("mousemove",J);this.topRightCorner.addEventListener("mouseup",R);this.bottomLeftCorner.addEventListener("mousedown",z);this.bottomLeftCorner.addEventListener("mousemove",J);this.bottomLeftCorner.addEventListener("mouseup",R);this.bottomRightCorner.addEventListener("mousedown",
z);this.bottomRightCorner.addEventListener("mousemove",J);this.bottomRightCorner.addEventListener("mouseup",R)};
_.P.removeEventListeners=function(){this.JSC$20671_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20671_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20671_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20671_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20671_mouseDownEvent));this.JSC$20671_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20671_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20671_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20671_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20671_mouseMoveEvent));this.JSC$20671_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20671_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20671_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20671_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20671_mouseUpEvent))};
_.P.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var M=document.activeElement;M&&M.shadowRoot&&M.shadowRoot.activeElement;)M=M.shadowRoot.activeElement;switch(M){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.P.updatePositionOfCorner=function(M,z){var J=M.y-z.offsetHeight/2+4;z.style.left=M.x-z.offsetWidth/2+16+"px";z.style.top=J+"px"};
_.P.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var M=_.S([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),z=M.next();!z.done;z=M.next()){z=z.value;var J=CIt(this.imageEditor,z.corner);this.updatePositionOfCorner(J,z.div)}};
_.P.onLeft=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(rju(this.imageEditor,0),this.updatePositionOfAllCorners(),M.preventDefault())};
_.P.onRight=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(rju(this.imageEditor,1),this.updatePositionOfAllCorners(),M.preventDefault())};
_.P.onUp=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(rju(this.imageEditor,2),this.updatePositionOfAllCorners(),M.preventDefault())};
_.P.onDown=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(rju(this.imageEditor,3),this.updatePositionOfAllCorners(),M.preventDefault())};
_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.rX.Object.defineProperties(eM.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&lOw.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var M,z,J;((z=this.data)==null?0:z.imageRatio)&&((J=this.data)==null?0:J.minImageCropWidth)?M={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:M=XLd;return new uot(M)}}});
eM.prototype.updatePositionOfAllCorners=eM.prototype.updatePositionOfAllCorners;eM.prototype.dataChanged=eM.prototype.dataChanged;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);_.u([_.p(_.pH),_.W("design:type",Object)],eM.prototype,"ironA11yKeysBehavior",void 0);
_.u([_.Qc("#canvas"),_.W("design:type",HTMLCanvasElement)],eM.prototype,"canvasElement",void 0);_.u([_.Qc("#file-selector"),_.W("design:type",HTMLInputElement)],eM.prototype,"fileSelector",void 0);_.u([_.Qc("#top-left-corner"),_.W("design:type",HTMLDivElement)],eM.prototype,"topLeftCorner",void 0);_.u([_.Qc("#top-right-corner"),_.W("design:type",HTMLDivElement)],eM.prototype,"topRightCorner",void 0);
_.u([_.Qc("#bottom-left-corner"),_.W("design:type",HTMLDivElement)],eM.prototype,"bottomLeftCorner",void 0);_.u([_.Qc("#bottom-right-corner"),_.W("design:type",HTMLDivElement)],eM.prototype,"bottomRightCorner",void 0);_.u([_.Y(),_.W("design:type",Object)],eM.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],eM.prototype,"errorMessage",void 0);_.u([_.Y(),_.W("design:type",Object)],eM.prototype,"isLoading",void 0);_.u([_.Y(),_.W("design:type",Object)],eM.prototype,"hideContainer",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.W("design:type",Boolean)],eM.prototype,"isPlaylistThumbnail",void 0);_.u([_.wH("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],eM.prototype,"dataChanged",null);_.u([_.Xw("image-updated"),_.Xw("yt-refit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eM.prototype,"updatePositionOfAllCorners",null);
_.u([_.cU({is:"yt-image-editor-renderer",disableElementRegistration:!0})],eM);
_.d(eM,"yt-image-editor-renderer",function(){if(KJw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;dim===void 0&&(dim=document.createElement("template"));var R=dim;J.call(z,R.content.cloneNode(!0),M.content.firstChild);KJw=M}M=KJw;return M},{mode:2});var e3l;var Qxw;var QM=function(){return _.g.apply(this,arguments)||this};
_.w(QM,_.g);QM.prototype.updateMinutesFromBinding=function(M){this.handleMinutesChanged&&this.handleMinutesChanged(M)};
QM.prototype.updateSecondsFromBinding=function(M){this.handleSecondsChanged&&this.handleSecondsChanged(M)};
QM.prototype.updateDescriptionFromBinding=function(M){this.handleDescriptionChanged&&this.handleDescriptionChanged(M)};
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],QM.prototype,"ytComponentBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],QM.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",String)],QM.prototype,"minutes",void 0);_.u([_.Y(),_.W("design:type",String)],QM.prototype,"seconds",void 0);_.u([_.Y(),_.W("design:type",String)],QM.prototype,"description",void 0);_.u([_.Y(),_.W("design:type",Function)],QM.prototype,"handleMinutesChanged",void 0);
_.u([_.Y(),_.W("design:type",Function)],QM.prototype,"handleSecondsChanged",void 0);_.u([_.Y(),_.W("design:type",Function)],QM.prototype,"handleDescriptionChanged",void 0);_.u([_.Y(),_.W("design:type",Number)],QM.prototype,"characterLimit",void 0);_.u([_.Y(),_.W("design:type",Number)],QM.prototype,"textNumRows",void 0);_.u([_.cU({is:"yt-report-details-form-content",disableElementRegistration:!0})],QM);
_.d(QM,"yt-report-details-form-content",function(){if(Qxw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;e3l===void 0&&(e3l=document.createElement("template"));var R=e3l;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Qxw=M}M=Qxw;return M},{mode:2});var Utw;var vcd;var UT=function(){var M=_.g.apply(this,arguments)||this;M.updateMinutesFromBinding=function(z){M.minutes=z.detail.value};
M.updateSecondsFromBinding=function(z){M.seconds=z.detail.value};
M.updateDescriptionFromBinding=function(z){M.description=z.detail.value};
return M};
_.w(UT,_.g);_.P=UT.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.ready=function(){_.SN(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.P.onSubmitYtAction=function(M){var z=M.detail;z.actionName==="yt-service-request"&&(z=z.args[1],z.flagEndpoint&&(M.stopPropagation(),this.refireAction(z)))};
_.P.refireAction=function(M){var z={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(z.vss_id=this.vssId);_.kQ(this.hostElement,[M,z]);this.submitDisabled=!0};
_.P.dataChanged=function(){var M=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var z=_.J_();z&&z.getPlayerPromise().then(function(J){var R=J.getOption("cc","track")||J.getOption("captions","track");R&&(M.vssId=R.vss_id);J=J.getCurrentTime();M.minutes=Math.floor(J/60).toString();M.seconds=(Math.floor(J)%60).toString()})};
_.P.updateSubmitButtonState=function(){var M;((M=this.data)==null?0:M.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.P.onYtServiceRequestCompleted=function(){_.S9(this.hostElement,"yt-close-popup-action")};
_.P.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.rX.Object.defineProperties(UT.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.textNumRows)||4}}});
UT.prototype.onYtServiceRequestError=UT.prototype.onYtServiceRequestError;UT.prototype.onYtServiceRequestCompleted=UT.prototype.onYtServiceRequestCompleted;UT.prototype.updateSubmitButtonState=UT.prototype.updateSubmitButtonState;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);
_.u([_.Y({observer:"dataChanged"}),_.W("design:type",Object)],UT.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Boolean)],UT.prototype,"submitDisabled",void 0);_.u([_.Y(),_.W("design:type",String)],UT.prototype,"minutes",void 0);_.u([_.Y(),_.W("design:type",String)],UT.prototype,"seconds",void 0);_.u([_.Y(),_.W("design:type",String)],UT.prototype,"description",void 0);_.u([_.Y(),_.W("design:type",String)],UT.prototype,"vssId",void 0);
_.u([_.Y({value:_.HW("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],UT.prototype,"isMusic",void 0);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],UT.prototype,"characterLimit",null);_.u([_.F("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],UT.prototype,"textNumRows",null);
_.u([_.wH("minutes","seconds","description","submitDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UT.prototype,"updateSubmitButtonState",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UT.prototype,"onYtServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UT.prototype,"onYtServiceRequestError",null);_.u([_.cU({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],UT);
_.d(UT,"yt-report-details-form-renderer",function(){if(vcd===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Utw===void 0&&(Utw=document.createElement("template"));var R=Utw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);vcd=M}M=vcd;return M});var GZw;var wLm;var xtw;var t1m;var vi=function(){return _.g.apply(this,arguments)||this};
_.w(vi,_.g);
vi.prototype.onCheckedChanged_=function(){if(this.data){var M=_.SN(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.S9(this.hostElement,"yt-additional-detail-checkbox-update",[M]):this.data.identifier==="yt-hide-user-checkbox"?_.S9(this.hostElement,"yt-hide-user-checkbox-update",[M]):M&&this.data.enableCommand?_.S9(this.hostElement,"yt-modify-report-form-command",[_.G(this.data.enableCommand,W_v)]):!M&&this.data.disableCommand&&_.S9(this.hostElement,
"yt-modify-report-form-command",[_.G(this.data.enableCommand,W_v)])}};
vi.prototype.onLabelTap_=function(M){M.target.tagName!="A"&&(_.SN(this.hostElement).querySelector("#checkbox").checked=!_.SN(this.hostElement).querySelector("#checkbox").checked)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],vi.prototype,"data",void 0);_.u([_.cU({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],vi);
_.d(vi,"yt-boolean-form-field-v2-renderer",function(){if(t1m===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;xtw===void 0&&(xtw=document.createElement("template"));var R=xtw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);t1m=M}M=t1m;return M});var Ge=function(){var M=_.g.apply(this,arguments)||this;M.canShowAdditionalDetailCheckbox=!1;M.canShowCheckbox=!1;M.keepDropdownFocusedAfterSelection=!0;return M};
_.w(Ge,_.g);Ge.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}}}}};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Ge.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],Ge.prototype,"canShowAdditionalDetailCheckbox",void 0);_.u([_.Y(),_.W("design:type",Object)],Ge.prototype,"canShowCheckbox",void 0);_.u([_.Y(),_.W("design:type",Object)],Ge.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.u([_.cU({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Ge);
_.d(Ge,"yt-report-form-modal-content",function(){if(wLm===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;GZw===void 0&&(GZw=document.createElement("template"));var R=GZw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);wLm=M}M=wLm;return M},{mode:2});var jxd;var pLu;var w8=function(){var M=_.g.apply(this,arguments)||this;M.submitting=!1;M.submitButtonDisabled=!0;M.command=null;M.canShowCheckbox=!1;M.canShowAdditionalDetailCheckbox=!1;M.canShowNextButton=!1;M.additionalDetailCheckboxChecked=!1;M.refitJob=0;M.keepDropdownFocusedAfterSelection=!0;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return M};
_.w(w8,_.g);_.P=w8.prototype;_.P.created=function(){this.refitJob=0};
_.P.attached=function(){this.JSC$20694_scroller&&(this.JSC$20694_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20694_scroller.attached&&typeof this.JSC$20694_scroller.attached==="function"&&this.JSC$20694_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(M){M&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,M.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),M.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.P.onYtPopupOpened=function(){var M=_.J_();M&&M.getPlayerPromise().then(function(z){z.pauseVideo()})};
_.P.onYtNavigate=function(M){_.G(M.detail.endpoint,_.CoS)&&(M.stopPropagation(),this.hideReportForm=!0)};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.P.onYtServiceRequestCompleted=function(M,z){var J=z.actions;if(J){if(J.length===1&&_.G(J[0],_.TV)){var R;J=((R=_.G(J[0],_.TV))==null?void 0:R.commands)||[]}R=0;for(var D=J.length;R<D;R++)_.G(J[R],_.nM)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(J[R]))}if(z.data&&(M=this.get("feedbackResponses",z.data)))for(z=0;z<M.length;z++)if(M[z].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.P._onDescendantIronResize=function(M){M.stopPropagation();return!1};
_.P.handleReportFormEndpointUpdateAction=function(M){if(M.submitEndpoint){var z=this.command=M.submitEndpoint;z=_.G(z,_.Lv2);if(z==null?0:z.additionalDetailCheckboxChecked)z.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else M.submitNavigationEndpoint?(this.command=M.submitNavigationEndpoint,this.toggleSubmitButton(!1)):M.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:M.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;M.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",M));this.refit()};
_.P.handleConfirmDialogCloseAction=function(M){M.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.P.submitButtonDisabledChanged=function(){var M=this.hostElement.parentElement;M&&M.invalidateTabbables&&M.invalidateTabbables()};
_.P.handleModifyReportFormCommand=function(M){M=this.get("action",M);M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:M==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:M==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.P.updateDialogStyling=function(){var M,z,J,R,D,N=((D=(M=this.data)==null?void 0:(z=M.optionsSupportedRenderers)==null?void 0:(J=z.optionsRenderer)==null?void 0:(R=J.items)==null?void 0:R.length)!=null?D:0)<=2?0:240;_.Tp(this.hostElement,{"--yt-report-form-modal-renderer-min-width":N+"px"})};
_.P.toggleSubmitButton=function(M){this.submitButtonDisabled=!M;this.submitButtonDisabled=M};
_.P.computeSubmitButtonData=function(M,z){var J={};_.G(z,_.CoS)?J.navigationEndpoint=z:J.command=z||void 0;M&&M.buttonRenderer&&_.gu.extend(J,M.buttonRenderer);return J};
_.P.computeNextButtonData=function(M,z){var J={};if(!M||!M.buttonRenderer)return J;_.gu.extend(J,M.buttonRenderer);if(!z)return J;if(_.G(z,_.CoS))J.navigationEndpoint=Rci(z);else if(J.command=Rci(z),M=_.G(J.command,_.Lv2))M.legalCheckboxChecked=!0;return J};
_.P.computeShowNextButton=function(M,z,J){return!!M&&z&&J};
_.P.refit=function(){var M=this;this.refitJob||(this.refitJob=_.no.addLowPriorityJob(function(){_.Pv(M.hostElement,"yt-refit");M.refitJob=0}))};
_.P.handleAdditionalDetailCheckboxUpdateAction=function(M){this.additionalDetailCheckboxChecked=M;_.G(this.command,_.Lv2).additionalDetailCheckboxChecked=M};
_.rX.Object.defineProperties(w8,{template:{configurable:!0,enumerable:!0,get:function(){if(pLu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;jxd===void 0&&(jxd=document.createElement("template"));var R=jxd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);pLu=M}M=pLu;return M}}});
w8.prototype.onYtServiceRequestError=w8.prototype.onYtServiceRequestError;w8.prototype.onYtServiceRequestCompleted=w8.prototype.onYtServiceRequestCompleted;w8.prototype.onYtServiceRequestSent=w8.prototype.onYtServiceRequestSent;w8.prototype.onYtNavigate=w8.prototype.onYtNavigate;w8.prototype.onYtPopupOpened=w8.prototype.onYtPopupOpened;_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],w8.prototype,"openPopupBehavior",void 0);
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],w8.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],w8.prototype,"eventForwardingBehavior",void 0);_.u([_.p(_.Hw),_.W("design:type",Object)],w8.prototype,"ironResizableBehavior",void 0);_.u([_.Y({observer:"dataChanged"}),_.W("design:type",Object)],w8.prototype,"data",void 0);
_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"submitting",void 0);_.u([_.Y({observer:"submitButtonDisabledChanged"}),_.W("design:type",Object)],w8.prototype,"submitButtonDisabled",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"command",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],w8.prototype,"hideReportForm",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"canShowCheckbox",void 0);
_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"canShowAdditionalDetailCheckbox",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"canShowNextButton",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"additionalDetailCheckboxChecked",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"refitJob",void 0);_.u([_.Y(),_.W("design:type",Object)],w8.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.u([_.Qc("#scroller"),_.W("design:type",Object)],w8.prototype,"JSC$20694_scroller",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onYtPopupOpened",null);_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w8.prototype,"onYtNavigate",null);
_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],w8.prototype,"onYtServiceRequestSent",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],w8.prototype,"onYtServiceRequestCompleted",null);
_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],w8.prototype,"onYtServiceRequestError",null);_.u([_.cU({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],w8);var F5i;var Ysw;var x6=function(){return _.g.apply(this,arguments)||this};
_.w(x6,_.g);_.P=x6.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.P.onVisible=function(){var M,z;(z=_.JF().resolve(_.zw(_.g1)))==null||z.enqueue({label:_.CD((M=this.data)==null?void 0:M.messageTitle),elementToFocus:this.hostElement})};
_.P.onThumbnailLoaded=function(){_.Pv(this.hostElement,"yt-refit")};
_.P.onDismissTap=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.P.computeAlternateIcon=function(M){return M?M==="BACKSTAGE_ARTWORK"?"backstage:artwork":M:null};
_.P.computeFontFamily=function(M){return M==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.P.computeBackgroundStyle=function(M,z){if(M=this.computeBackgroundImage(M,z))if(M=_.Sh(M.thumbnails))return'background-image: url("'+M+'");'};
_.P.computeHasFullHeightImage=function(M){return!(!(M&&M.thumbnails&&M.thumbnails.length>0)||this.modern)};
_.P.isModernStyle=function(M){return M.style==="STYLE_MODERN"};
_.P.computeIcon=function(M,z){if(M&&M.icon)return z?M.iconDark:M.icon};
_.P.computeBackgroundImage=function(M,z){if(M&&M.backgroundImage)return z?M.backgroundImageDark:M.backgroundImage};
_.P.computeLogo=function(M,z){if(M&&M.logo)return z?M.logoDark:M.logo};
_.P.computeShouldShowModernIcon=function(M,z){return M&&!!z};
_.P.getLogoContainerClassName=function(M){return this.logoWithPadding(M)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.P.getLogoImageId=function(M){return this.logoWithPadding(M)?"mealbar-logo-with-padding":"mealbar-logo"};
_.P.logoWithPadding=function(M){var z,J,R;return(M=(z=this.computeLogo(M,this.isDarkTheme))==null?void 0:(J=z.thumbnails)==null?void 0:(R=J[0])==null?void 0:R.height)&&M%31===0?!0:!1};
x6.prototype.onThumbnailLoaded=x6.prototype.onThumbnailLoaded;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.u([_.Y({}),_.W("design:type",Object)],x6.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.W("design:type",Boolean)],x6.prototype,"modern",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],x6.prototype,"isDarkTheme",void 0);
_.u([_.Y({computed:"computeIcon(data, isDarkTheme)"}),_.W("design:type",Object)],x6.prototype,"icon",void 0);_.u([_.Y({computed:"computeLogo(data, isDarkTheme)"}),_.W("design:type",Object)],x6.prototype,"logo",void 0);_.u([_.Y({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.W("design:type",Object)],x6.prototype,"backgroundStyle",void 0);_.u([_.Y({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.W("design:type",Object)],x6.prototype,"alternateIcon",void 0);
_.u([_.Y({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.W("design:type",Boolean)],x6.prototype,"hasFullHeightImage",void 0);_.u([_.Y({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.W("design:type",Boolean)],x6.prototype,"useYoutubeSans",void 0);_.u([_.Y({computed:"computeShouldShowModernIcon(modern, icon)"}),_.W("design:type",Boolean)],x6.prototype,"shouldShowModernIcon",void 0);
_.u([_.Xw("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x6.prototype,"onThumbnailLoaded",null);_.u([_.cU({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],x6);
_.d(x6,"yt-mealbar-promo-renderer",function(){if(Ysw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;F5i===void 0&&(F5i=document.createElement("template"));var R=F5i;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Ysw=M}M=Ysw;return M},{mode:2});var mtw;var gcw;var tO=function(){return _.g.apply(this,arguments)||this};
_.w(tO,_.g);_.P=tO.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.P.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.acceptButton)};
_.P.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P.observeImpressionEndpoints_=function(){var M=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;_.kQ(M.hostElement,[z])})};
_.P.onTap_=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
tO.prototype.observeImpressionEndpoints_=tO.prototype.observeImpressionEndpoints_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],tO.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],tO.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],tO.prototype,"positionType",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],tO.prototype,"hasButtons_",void 0);_.u([_.Y({value:function(){return this.onTap_.bind(this)}}),
_.W("design:type",Function)],tO.prototype,"boundOnTap_",void 0);_.u([_.Y({value:{style:"mono-inverse"}}),_.W("design:type",Object)],tO.prototype,"buttonOverride",void 0);_.u([_.la("data.promoConfig.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tO.prototype,"observeImpressionEndpoints_",null);_.u([_.cU({is:"yt-tooltip-renderer",disableElementRegistration:!0})],tO);
_.d(tO,"yt-tooltip-renderer",function(){if(gcw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;mtw===void 0&&(mtw=document.createElement("template"));var R=mtw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);gcw=M}M=gcw;return M},{mode:2});var sxl;var ncu;var h3u={},y2c=(h3u.WEB_REMIX="music.youtube.com",h3u),jM=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return M};
_.w(jM,_.g);_.P=jM.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.created=function(){this.embedHost_=y2c[_.HW("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.P.ready=function(){_.SN(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.P.computeEmbedCode_=function(M,z,J,R,D){if(!M)return"";var N=M.videoId,Z=M.fullListId,B=[];M.attributionId&&B.push("si="+M.attributionId);R||B.push("controls=0");J&&Number(z)>0&&B.push("start="+z);Z&&(N="videoseries",B.push("list="+Z));J="https://"+(D?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+N;M.clipId&&(B.push("clip="+M.clipId),B.push("clipt="+M.clipTiming));z=B.length>0?J+"?"+B.join("&amp;"):J;M.encryptedEmbedConfig&&B.push("embed_config="+JSON.stringify({enc:M.encryptedEmbedConfig}));
B=B.length>0?J+"?"+B.join("&amp;"):J;_.U("web_sharing_embed_preview_killswitch")?_.SN(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(B,M.previewWidth||854,M.previewHeight||480):(_.yD(this.videoPreviewContainer),_.SN(this.videoPreviewContainer).appendChild(this.buildIframeElement(B)));return this.getEmbedCode_(z,M.width||560,M.height||315)};
_.P.buildIframeElement=function(M){var z=document.createElement("iframe"),J,R;z.width=""+((R=(J=this.data)==null?void 0:J.previewWidth)!=null?R:854);var D,N;z.height=""+((N=(D=this.data)==null?void 0:D.previewHeight)!=null?N:480);_.Dye(z,2,M);z.title="YouTube video player";z.frameBorder="0";z.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";z.referrerPolicy="strict-origin-when-cross-origin";z.allowFullscreen=!0;return z};
_.P.computeIsSquareAspectRatio_=function(M){return M.previewHeight&&M.previewWidth?M.previewHeight==M.previewWidth:!1};
_.P.computeShowEmbedOptions_=function(M){return!!M.enablePrivacyModeOptionLabel||!!M.showPlayerControlsOptionLabel};
_.P.getEmbedCode_=function(M,z,J){return'<iframe width="'+z+'" height="'+J+'" src="'+M+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.P.handleSignalActionCopyShareEmbedUrl_=function(){_.SN(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.P.handleSetTimestamp_=function(M){this.startAtTimeStamp_=(this.startAtChecked_=M.isSet)?M.timestamp:0};
_.P.closePanel_=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.P.onEmbedCode_=function(){_.SN(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.P.onYtPopupClosed_=function(){_.yD(_.SN(this.hostElement).querySelector("#video-preview"))};
_.P.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.G(this.data.actionButtons[0],_.aR)&&this.ytRendererBehavior.logExplicitClick(_.G(this.data.actionButtons[0],_.aR))};
jM.prototype.onYtPopupClosed_=jM.prototype.onYtPopupClosed_;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],jM.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],jM.prototype,"data",void 0);
_.u([_.Y({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.W("design:type",String)],jM.prototype,"embedCode_",void 0);_.u([_.Y({value:!0}),_.W("design:type",Boolean)],jM.prototype,"isPlayerControlsOptionChecked_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],jM.prototype,"isPrivacyModeOptionChecked_",void 0);_.u([_.Y({value:!1,notify:!0}),_.W("design:type",Boolean)],jM.prototype,"startAtChecked_",void 0);
_.u([_.Y({value:0}),_.W("design:type",Number)],jM.prototype,"startAtTimeStamp_",void 0);_.u([_.Y({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jM.prototype,"isSquareAspectRatio_",void 0);_.u([_.Qc("#video-preview"),_.W("design:type",HTMLElement)],jM.prototype,"videoPreviewContainer",void 0);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jM.prototype,"onYtPopupClosed_",null);
_.u([_.cU({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],jM);
_.d(jM,"yt-sharing-embed-renderer",function(){if(ncu===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;sxl===void 0&&(sxl=document.createElement("template"));var R=sxl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);ncu=M}M=ncu;return M},{mode:2});var H6w={};
H6w.YtUnlimitedFamilyInterstitialBehavior=[_.UQ.YtOpenPopupBehavior,_.wx.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(M){M=_.DNV(_.b7(M),"yt-button-renderer");return M?M.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(M){this.dialogHistory_.push(M)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var M=this.popFromHistory();if(M){var z={openPopupAction:{popupType:"DIALOG",popup:{}}};z.openPopupAction.popup[M.renderer]=M.data;this.showingPreviousDialog_=!0;this.openPopup(z)}},
handleOpenPopupAction_:function(M){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var z=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(R){return!!M.openPopupAction.popup[R]}),J=this.getElementName_();
z&&this.data&&(this.pushToHistory({renderer:J,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(M){if(M=_.G(M,lJG))this.loading=!0,_.S9(this.hostElement,"yt-open-create-family-dialog",[M,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var M=this.hostElement.nodeName.split("-").slice(1).map(function(z){return""+z[0].toUpperCase()+z.slice(1).toLowerCase()}).join("");
return M[0].toLowerCase()+M.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var c2m;var dts;var pB=function(){return _.g.apply(this,arguments)||this};
_.w(pB,_.g);_.P=pB.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S9(this.hostElement,"yt-register-create-family-dialog");_.SN(this.hostElement).querySelector("#thumbnail").onShow()};
_.P.fireOnCloseCommand_=function(){var M;((M=this.data)==null?0:M.onCloseCommand)&&_.Bv(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.P.onYtServiceRequestSent_=function(M,z){z&&z.endpoint&&_.G(z.endpoint,_.on)||(this.loading=!0)};
_.P.onYtServiceRequestCompleted_=function(){var M=this.hostElement.parentElement;M.close&&M.close();this.loading=!1};
_.P.openPopupHandler_=function(M){if(M.detail==this){var z;((z=this.data)==null?0:z.onOpenCommands)&&_.Bv(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.P.closePopupHandler_=function(M,z){this.fireOnCloseCommand_();if(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1){var J;((J=this.data)==null?0:J.onDismissCommands)&&_.Bv(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.P.dataChanged_=function(){this.loading=!1};
pB.prototype.dataChanged_=pB.prototype.dataChanged_;pB.prototype.closePopupHandler_=pB.prototype.closePopupHandler_;pB.prototype.openPopupHandler_=pB.prototype.openPopupHandler_;pB.prototype.onYtServiceRequestCompleted_=pB.prototype.onYtServiceRequestCompleted_;pB.prototype.onYtServiceRequestSent_=pB.prototype.onYtServiceRequestSent_;_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],pB.prototype,"ytEventForwardingBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(H6w.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],pB.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],pB.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],pB.prototype,"loading",void 0);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],pB.prototype,"onYtServiceRequestSent_",null);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],pB.prototype,"onYtServiceRequestCompleted_",null);
_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],pB.prototype,"openPopupHandler_",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],pB.prototype,"closePopupHandler_",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pB.prototype,"dataChanged_",null);
_.u([_.cU({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],pB);
_.d(pB,"yt-unlimited-family-message-interstitial-renderer",function(){if(dts===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;c2m===void 0&&(c2m=document.createElement("template"));var R=c2m;J.call(z,R.content.cloneNode(!0),M.content.firstChild);dts=M}M=dts;return M},{mode:2});var K5m;var $tw;var Fu=function(){return _.g.apply(this,arguments)||this};
_.w(Fu,_.g);Fu.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"}}}};
Fu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SN(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(M){M.onShow()});
_.SN(this.hostElement).querySelector("#main-thumbnail").onShow()};
Fu.prototype.onButtonTap_=function(M){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(M)};
Fu.prototype.computeMainThumbnailWidth_=function(M){return M&&M.length!==0?72:96};
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.u([_.p(H6w.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],Fu.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Fu.prototype,"data",void 0);
_.u([_.Y({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.W("design:type",Number)],Fu.prototype,"mainThumbnailWidth_",void 0);_.u([_.Y({value:function(){return this.onButtonTap_.bind(this)}}),
_.W("design:type",Function)],Fu.prototype,"boundButtonTap_",void 0);_.u([_.cU({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Fu);
_.d(Fu,"yt-unlimited-family-profile-interstitial-renderer",function(){if($tw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;K5m===void 0&&(K5m=document.createElement("template"));var R=K5m;J.call(z,R.content.cloneNode(!0),M.content.firstChild);$tw=M}M=$tw;return M},{mode:2});var ugw;var qsm;var Y6=function(){var M=_.g.apply(this,arguments)||this;M.sliderAriaValueText_=null;M.selectedIndex_=0;M.messages={PAUSE_SLIDER:_.e9("PAUSE_SLIDER",void 0,"Pause Duration")};return M};
_.w(Y6,_.g);_.P=Y6.prototype;_.P.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.P.onPopupOpened_=function(M){M.detail==this&&_.U("enable_premium_voluntary_pause")&&(_.S9(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.setDialogData=function(M){this.data=M;this.resetSlider_()};
_.P.dataChanged_=function(){this.data&&this.resetSlider_()};
_.P.onSubmitTap_=function(){if(this.data.confirmCommand){var M=this.data.confirmCommand;_.G(M,_.lJp)&&_.kQ(this.hostElement,[M,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.P.onExitButtonTap_=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.P.closePopupHandler_=function(M,z){(z&&z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.handleOnDismissCommands_()};
_.P.onSliderChange_=function(){this.selectedIndex_=_.SN(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.P.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.P.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.P.resetSlider_=function(){if(this.data){var M=this.data.defaultEndOptionIndex||0,z=_.SN(this.hostElement).querySelector("#id-pause-slider");if(z.immediateValue<M)for(;z.immediateValue!=M;)z.increment();else if(M<z.immediateValue)for(;z.immediateValue!=M;)z.decrement();this.selectedIndex_=M;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.P.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Bv(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Bv(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.loading=!0};
_.P.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Y6.prototype.onYtServiceRequestCompleted=Y6.prototype.onYtServiceRequestCompleted;Y6.prototype.onYtServiceRequestSent=Y6.prototype.onYtServiceRequestSent;Y6.prototype.closePopupHandler_=Y6.prototype.closePopupHandler_;Y6.prototype.dataChanged_=Y6.prototype.dataChanged_;Y6.prototype.onPopupOpened_=Y6.prototype.onPopupOpened_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Y6.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Y6.prototype,"loading",void 0);_.u([_.Y(),_.W("design:type",Number)],Y6.prototype,"selectIndexMax_",void 0);_.u([_.Y(),_.W("design:type",Object)],Y6.prototype,"selectedData_",void 0);
_.u([_.Y(),_.W("design:type",Object)],Y6.prototype,"sliderAriaValueText_",void 0);_.u([_.Y({value:function(){return this.onSubmitTap_.bind(this)}}),
_.W("design:type",Function)],Y6.prototype,"onButtonTap_",void 0);_.u([_.Y({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.W("design:type",Function)],Y6.prototype,"onSecondaryTap_",void 0);_.u([_.Y(),_.W("design:type",Object)],Y6.prototype,"messages",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Y6.prototype,"onPopupOpened_",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y6.prototype,"dataChanged_",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Y6.prototype,"closePopupHandler_",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],Y6.prototype,"onYtServiceRequestSent",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],Y6.prototype,"onYtServiceRequestCompleted",null);_.u([_.cU({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Y6);
_.d(Y6,"yt-unplugged-pause-membership-dialog-renderer",function(){if(qsm===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;ugw===void 0&&(ugw=document.createElement("template"));var R=ugw;J.call(z,R.content.cloneNode(!0),M.content.firstChild);qsm=M}M=qsm;return M},{mode:2});var W5s;var aOs;var m1=function(){return _.g.apply(this,arguments)||this};
_.w(m1,_.g);m1.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.hM("vcBalanceRenderer")}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],m1.prototype,"data",void 0);_.u([_.cU({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],m1);
_.d(m1,"yt-vc-offer-layout-header-renderer",function(){if(aOs===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;W5s===void 0&&(W5s=document.createElement("template"));var R=W5s;J.call(z,R.content.cloneNode(!0),M.content.firstChild);aOs=M}M=aOs;return M},{mode:2});var V1m;var Ecw;var fOG;var L5d;var g8=function(){return _.g.apply(this,arguments)||this};
_.w(g8,_.g);g8.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.rX.Object.defineProperties(g8.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)}}});
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.dMv.YtTappableItemBehavior),_.W("design:type",Object)],g8.prototype,"ytTappableItemBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],g8.prototype,"data",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.F("data.accessibilityText"),_.W("design:type",String),_.W("design:paramtypes",[])],g8.prototype,"ariaLabel",null);_.u([_.Y({reflectToAttribute:!0}),_.F("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],g8.prototype,"vcOfferStyle",null);_.u([_.F("data.style","data.titleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],g8.prototype,"showTitleText",null);_.u([_.cU({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],g8);
_.d(g8,"yt-vc-offer-renderer",function(){if(L5d===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;fOG===void 0&&(fOG=document.createElement("template"));var R=fOG;J.call(z,R.content.cloneNode(!0),M.content.firstChild);L5d=M}M=L5d;return M},{mode:2});var sT=function(){return _.g.apply(this,arguments)||this};
_.w(sT,_.g);sT.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],sT.prototype,"data",void 0);_.u([_.cU({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],sT);
_.d(sT,"yt-vc-offer-layout-renderer",function(){if(Ecw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;V1m===void 0&&(V1m=document.createElement("template"));var R=V1m;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Ecw=M}M=Ecw;return M},{mode:2});var A2l;var i6l;var CXl;var b6t;var nB=function(){return _.g.apply(this,arguments)||this};
_.w(nB,_.g);nB.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}}}}}};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],nB.prototype,"data",void 0);_.u([_.cU({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],nB);
_.d(nB,"yt-ypc-offers-modal-top-bar-renderer",function(){if(b6t===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;CXl===void 0&&(CXl=document.createElement("template"));var R=CXl;J.call(z,R.content.cloneNode(!0),M.content.firstChild);b6t=M}M=b6t;return M},{mode:2});var hO=function(){return _.g.apply(this,arguments)||this};
_.w(hO,_.g);hO.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"}}}}};
hO.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
hO.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var M=this.scrollable;M.attached&&typeof M.attached==="function"&&M.attached()};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Qc("#scrollable"),_.W("design:type",Object)],hO.prototype,"scrollable",void 0);_.u([_.Y(),_.W("design:type",Object)],hO.prototype,"data",void 0);_.u([_.cU({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],hO);
_.d(hO,"yt-ypc-offers-modal-renderer",function(){if(i6l===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;A2l===void 0&&(A2l=document.createElement("template"));var R=A2l;J.call(z,R.content.cloneNode(!0),M.content.firstChild);i6l=M}M=i6l;return M},{mode:2});var r2w;var M7w;var yM=function(){return _.g.apply(this,arguments)||this};
_.w(yM,_.g);_.P=yM.prototype;_.P.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SN(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.P.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.S9(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.P.onYtPopupOpened_=function(M,z){(z==null?void 0:z.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Bv(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.onYtPopupClosed_=function(M,z){this.continueButtonTapped||z&&(z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.data.onDismissCommands&&_.Bv(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestError_=function(M){this.set("showSpinner",!1);_.Cf(this.hostElement,M.detail.error.message)};
_.P.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.U("enable_ypc_spinners")?_.S9(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
yM.prototype.onYtServiceRequestError_=yM.prototype.onYtServiceRequestError_;yM.prototype.onYtPopupClosed_=yM.prototype.onYtPopupClosed_;yM.prototype.onYtPopupOpened_=yM.prototype.onYtPopupOpened_;yM.prototype.onYtServiceRequestCompleted_=yM.prototype.onYtServiceRequestCompleted_;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);
_.u([_.Y(),_.W("design:type",Object)],yM.prototype,"data",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],yM.prototype,"showSpinner",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],yM.prototype,"continueButtonTapped",void 0);_.u([_.Y({value:function(){return this.onContinueTapped_.bind(this)}}),
_.W("design:type",Function)],yM.prototype,"bindOnContinueTapped_",void 0);_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yM.prototype,"onYtServiceRequestCompleted_",null);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],yM.prototype,"onYtPopupOpened_",null);
_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],yM.prototype,"onYtPopupClosed_",null);_.u([_.Xw("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yM.prototype,"onYtServiceRequestError_",null);_.u([_.cU({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],yM);
_.d(yM,"yt-ypc-upgrade-dialog-renderer",function(){if(M7w===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;r2w===void 0&&(r2w=document.createElement("template"));var R=r2w;J.call(z,R.content.cloneNode(!0),M.content.firstChild);M7w=M}M=M7w;return M},{mode:2});var zew;var JDm;var Hi=function(){return _.g.apply(this,arguments)||this};
_.w(Hi,_.g);Hi.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Hi.prototype.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.confirmButton)};
Hi.prototype.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],Hi.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],Hi.prototype,"data",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],Hi.prototype,"positionType",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],Hi.prototype,"hasButtons_",void 0);_.u([_.Y({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Hi.prototype,"style_",void 0);_.u([_.cU({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Hi);
_.d(Hi,"yt-bubble-hint-renderer",function(){if(JDm===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;zew===void 0&&(zew=document.createElement("template"));var R=zew;J.call(z,R.content.cloneNode(!0),M.content.firstChild);JDm=M}M=JDm;return M},{mode:2});var Rel;var DTG;var ci=function(){var M=_.MI.apply(this,arguments)||this;M.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return M};
_.w(ci,_.MI);_.P=ci.prototype;_.P.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.P.attached=function(){var M=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){M.$.thumbnail.onShow();M.$["header-image"].onShow()})};
_.P.handleCheckBoxUpdateAction_=function(M){this.canShowCheckboxEnabledConfirmButton=M};
_.P.computeUseOverlayForSpinner_=function(M,z){return!!M&&z};
_.P.computeShowSpinner_=function(M,z){return M||!!z};
_.P.fireOnCloseActions_=function(){var M,z=_.S(((M=this.data)==null?void 0:M.onClosedActions)||[]);for(M=z.next();!M.done;M=z.next())this.ytRendererBehavior.resolveCommand(M.value)};
_.P.fireOnOpenCommands_=function(M){var z,J=(z=this.data)==null?void 0:z.onOpenCommands;if(J)for(M.stopImmediatePropagation(),M=_.S(J),z=M.next();!z.done;z=M.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.P.fireOnDismissCommands_=function(M){var z,J=(z=this.data)==null?void 0:z.onDismissCommands;if(J)for(M.stopImmediatePropagation(),M=_.S(J),z=M.next();!z.done;z=M.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.P.openPopupHandler_=function(M){M.detail==this&&this.fireOnOpenCommands_(M)};
_.P.closePopupHandler_=function(M,z){_.ZL(this,"yt-confirm-dialog-close-action",[z]);this.fireOnCloseActions_();(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.fireOnDismissCommands_(M)};
_.P.onHeaderImageChanged_=function(){var M;((M=this.data)==null?0:M.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.P.computeHasHeaderImageWidth_=function(M){return M!=void 0};
_.P.computeHasLoadingMessage=function(M){return!!M};
_.P.onHeaderImageWidthChanged_=function(){var M,z=(M=this.data)==null?void 0:M.headerImageWidth;if(z){if(M=1.25*z*2+z,this.$.main.style.width=M+"px",z=this.$.scroller.firstElementChild)z.style.minWidth=M+"px"}else this.$.main.style.width="100%"};
_.P.onThumbnailChanged_=function(){var M;((M=this.data)==null?0:M.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.P.onYtNavigate_=function(M){M=_.b7(M);M instanceof Node&&_.ZE(this.$["confirm-button"]).contains(M)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.P.computePrimaryIsCancel_=function(M){return M};
_.P.computeIsCancelButtonHidden_=function(M){return M.skipCancelButton||!M.cancelButton};
_.P.computeIsCheckboxHidden_=function(M){return!M.checkbox};
_.P.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.P.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.P.onYtServiceRequestCompleted_=function(){var M;((M=this.data)==null?0:M.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.rX.Object.defineProperties(ci,{template:{configurable:!0,enumerable:!0,get:function(){if(DTG===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;Rel===void 0&&(Rel=document.createElement("template"));var R=Rel;J.call(z,R.content.cloneNode(!0),M.content.firstChild);DTG=M}M=DTG;return M}}});
ci.prototype.onYtServiceRequestCompleted_=ci.prototype.onYtServiceRequestCompleted_;ci.prototype.onYtServiceRequestSent_=ci.prototype.onYtServiceRequestSent_;ci.prototype.onThumbnailLoaded_=ci.prototype.onThumbnailLoaded_;ci.prototype.onYtNavigate_=ci.prototype.onYtNavigate_;ci.prototype.onThumbnailChanged_=ci.prototype.onThumbnailChanged_;ci.prototype.onHeaderImageWidthChanged_=ci.prototype.onHeaderImageWidthChanged_;ci.prototype.onHeaderImageChanged_=ci.prototype.onHeaderImageChanged_;
ci.prototype.closePopupHandler_=ci.prototype.closePopupHandler_;ci.prototype.openPopupHandler_=ci.prototype.openPopupHandler_;_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);
_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],ci.prototype,"ytEventForwardingBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],ci.prototype,"data",void 0);_.u([_.Y({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],ci.prototype,"primaryIsCancel",void 0);_.u([_.Y({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],ci.prototype,"isCancelButtonHidden",void 0);
_.u([_.Y({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],ci.prototype,"isCheckboxHidden",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],ci.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.u([_.Y({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.W("design:type",Boolean)],ci.prototype,"useOverlayForSpinner_",void 0);
_.u([_.Y({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.W("design:type",Boolean)],ci.prototype,"showSpinner_",void 0);_.u([_.Y({value:!1}),_.W("design:type",Boolean)],ci.prototype,"isActionInProgress_",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.W("design:type",Boolean)],ci.prototype,"hasHeaderImageWidth_",void 0);
_.u([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.W("design:type",Boolean)],ci.prototype,"hasLoadingMessage",void 0);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],ci.prototype,"openPopupHandler_",null);_.u([_.Xw("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],ci.prototype,"closePopupHandler_",null);
_.u([_.la("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ci.prototype,"onHeaderImageChanged_",null);_.u([_.la("data.headerImageWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ci.prototype,"onHeaderImageWidthChanged_",null);_.u([_.la("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ci.prototype,"onThumbnailChanged_",null);
_.u([_.Xw("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ci.prototype,"onYtNavigate_",null);_.u([_.Xw("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ci.prototype,"onThumbnailLoaded_",null);_.u([_.Xw("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.WS]),_.W("design:returntype")],ci.prototype,"onYtServiceRequestSent_",null);
_.u([_.Xw("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Cn]),_.W("design:returntype")],ci.prototype,"onYtServiceRequestCompleted_",null);_.u([_.cU({is:"yt-confirm-dialog-renderer",noInjection:!0})],ci);var Nhs;var POw;var d8=function(){return _.g.apply(this,arguments)||this};
_.w(d8,_.g);d8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SN(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
d8.prototype.computeConfirmButton_=function(M){var z={text:M.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};M.confirmNavigationEndpoint?z.navigationEndpoint=M.confirmNavigationEndpoint:M.confirmServiceEndpoint&&(z.serviceEndpoint=M.confirmServiceEndpoint);return z};
d8.prototype.computeShowTitle_=function(M){return!(M==null||!M.title)};
_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],d8.prototype,"data",void 0);_.u([_.Y({computed:"computeShowTitle_(data)"}),_.W("design:type",Boolean)],d8.prototype,"showTitle",void 0);_.u([_.cU({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],d8);
_.d(d8,"yt-fancy-dismissible-dialog-renderer",function(){if(POw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Nhs===void 0&&(Nhs=document.createElement("template"));var R=Nhs;J.call(z,R.content.cloneNode(!0),M.content.firstChild);POw=M}M=POw;return M});var SHN;var Z25;var KB=function(){var M=_.g.apply(this,arguments)||this;M.spinnerActive=!1;return M};
_.w(KB,_.g);KB.prototype.created=function(){j9v(2201)};
KB.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
KB.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
KB.prototype.onIronOverlayClosed=KB.prototype.onIronOverlayClosed;KB.prototype.onIronOverlayOpened=KB.prototype.onIronOverlayOpened;_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.i$),_.W("design:type",Object)],KB.prototype,"tpYtIronOverlayBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],KB.prototype,"data",void 0);_.u([_.Y(),_.W("design:type",Object)],KB.prototype,"spinnerActive",void 0);
_.u([_.Xw("iron-overlay-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KB.prototype,"onIronOverlayOpened",null);_.u([_.Xw("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KB.prototype,"onIronOverlayClosed",null);_.u([_.cU({is:"yt-loading-renderer",disableElementRegistration:!0})],KB);
_.d(KB,"yt-loading-renderer",function(){if(Z25===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;SHN===void 0&&(SHN=document.createElement("template"));var R=SHN;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Z25=M}M=Z25;return M},{mode:2});var kRd;var Bhl;var $6=function(){var M=_.g.apply(this,arguments)||this;M.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.w($6,_.g);_.P=$6.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.P.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.P.openPopupHandler_=function(M){M.detail===this.hostElement&&this.hostElement.hidden&&_.S9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.P.onDismissButtonTap_=function(){var M;this.closeOnDismissButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.S9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.onAcceptButtonTap_=function(){var M;this.closeOnAcceptButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.S9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.computeHasHeader_=function(M){return!!M.headerBackgroundImage};
_.P.computeLayoutStyle_=function(M){return M};
_.P.computePopupSize_=function(M){return M};
_.P.computeIconType_=function(M){return M.dialogIcon&&M.dialogIcon.iconType?M.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":M.dialogIcon.iconType:""};
_.P.computeIsLogo_=function(M){return!!M.dialogIcon&&!!M.dialogIcon.iconType&&(M.dialogIcon.iconType==="YOUTUBE_LOGO"||M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||M.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.P.computeHasCustomLogo=function(M){return!(M==null||!M.headerForegroundImage)};
_.P.computeCustomLogo=function(M,z){if(M!=null&&M.headerForegroundImage)return M.headerForegroundImageDark?z?M.headerForegroundImageDark:M.headerForegroundImage:M.headerForegroundImage};
_.P.computeHeaderBackgroundImage=function(M,z){if(M!=null&&M.headerBackgroundImage)return z&&(M==null?0:M.headerBackgroundImageDark)?M.headerBackgroundImageDark:M.headerBackgroundImage};
_.P.shouldShowIconContainer=function(M,z){return M&&!z};
_.P.shouldShowNonYouTubeIcon=function(M,z){return!M&&!z};
_.P.getLogoImageId=function(M){var z,J,R;return(M=(z=this.computeCustomLogo(M,this.isDarkTheme))==null?void 0:(J=z.thumbnails)==null?void 0:(R=J[0])==null?void 0:R.height)&&M%31===0?"custom-logo-with-padding":"custom-logo"};
$6.prototype.openPopupHandler_=$6.prototype.openPopupHandler_;$6.prototype.dataChanged_=$6.prototype.dataChanged_;_.u([_.p(_.Bm.YtRendererstamperBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.u([_.Y(),_.W("design:type",Boolean)],$6.prototype,"isDarkTheme",void 0);
_.u([_.Y({computed:"computeCustomLogo(data, isDarkTheme)"}),_.W("design:type",Object)],$6.prototype,"customLogo",void 0);_.u([_.Y({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.W("design:type",Object)],$6.prototype,"headerBackgroundImage",void 0);_.u([_.Y(),_.W("design:type",Object)],$6.prototype,"data",void 0);_.u([_.Y({computed:"computeHasHeader_(data)"}),_.W("design:type",Boolean)],$6.prototype,"hasHeader",void 0);
_.u([_.Y({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.W("design:type",Object)],$6.prototype,"layoutStyle",void 0);_.u([_.Y({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.W("design:type",Object)],$6.prototype,"popupSize",void 0);_.u([_.Y({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$6.prototype,"hasLogo",void 0);
_.u([_.Y({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$6.prototype,"hasCustomLogo",void 0);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$6.prototype,"dataChanged_",null);_.u([_.Xw("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$6.prototype,"openPopupHandler_",null);
_.u([_.cU({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],$6);
_.d($6,"yt-upsell-dialog-renderer",function(){if(Bhl===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;kRd===void 0&&(kRd=document.createElement("template"));var R=kRd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Bhl=M}M=Bhl;return M},{mode:2});var O2w=_.Mf(function(M){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.T(_.I,{cond:M.title,then:function(z){return _.T("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},z)}}))},"Rg"),Thi=_.Mf(function(M){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.T(_.t_,{data:M.closeButton},{buttonViewModel:function(z){return _.T("div",null,_.T(_.lT,{data:z.data}))}}))},"Sg"),I_5=_.Mf(function(M){var z=
M.data;
return _.T(_.MH,null,_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.T(_.I,{cond:function(){return!!z().image&&!!z().title},
then:function(){return _.T(_.rv,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.T(_.I,{cond:function(){return z().title},
then:function(J){return _.T("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},J)}}),_.T(_.I,{cond:function(){return z().primaryGenre},
then:function(J){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},J)}}))),_.T(_.I,{cond:function(){var J=z().description;
return J&&J.length<=150},
then:function(){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return z().description}))}}))},"Tg"),oHt=_.Mf(function(M){M=M.infoRows;
var z=_.JF().resolve(_.A2),J=_.U("enable_displaying_ppn");return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.T(_.G4,{each:M},function(R){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.T(_.I,{cond:function(){return R.label},
then:function(D){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},D)}}),_.T(_.I,{cond:function(){return R.attributedLabel},
then:function(D){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.T(_.m3,{text:D,noPreWrap:!0}))}}),_.T(_.I,{cond:function(){return R.value},
then:function(D){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},D)}}),_.T(_.I,{cond:function(){return R.attributedValue},
then:function(D){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.T(_.m3,{text:D,noPreWrap:!0}))}}))}),_.T(_.I,{cond:function(){return J&&z.clientData.has("post_play_nonce")},
then:function(){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},z.getData("post_play_nonce")))}}))},"Ug"),XGm=_.Mf(function(M){var z=M.data;
return _.T("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.T(O2w,{title:function(){return z().dialogTitle}}),_.T(I_5,{data:z}),_.T(_.I,{cond:function(){return z().infoRow},
then:function(J){return _.T(oHt,{infoRows:J})}}),_.T(Thi,{closeButton:function(){return z().closeButton}}))},"Vg");
XGm.idomCompat=!0;_.N7(XGm,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;return _.T("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.T(_.rv,{data:function(){return z().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.T("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.T(_.I,{cond:function(){var J=z().ytLogo;return J?J.iconType:null},
then:function(J){return _.T(_.vS,{icon:J,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.T("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.T(_.m3,{text:function(){return z().body}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.T(_.m3,{text:function(){return z().verifyStateText}}))),
_.T("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.T("div",null,_.T(_.t_,{data:function(){return z().dismissButton}},{buttonViewModel:_.lT})),_.T("div",null,_.T(_.t_,{data:function(){return z().linkParentButton}},{buttonViewModel:_.lT})))))},"Wg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.zn}});var l_t=_.Mf(function(M){var z=M.data;M=_.ba(function(){return z().agreements},[]);
return _.T("installment-agreements-view-model",{class:_.Qe("ytInstallmentAgreementsViewModelHost")},_.T(_.G4,{each:M},function(J){return _.T("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.T(_.m3,{text:J.label})),_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.T(_.t_,{data:function(){return J.openButton}},{buttonViewModel:_.lT})))}))},"Xg");
l_t.idomCompat=!0;var eev=_.Mf(function(M){return _.T("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.T(_.m3,{text:function(){return M.data().inviteMessage}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.T(_.m3,{text:function(){return M.data().attributedAccountSectionHeaderText}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.T(_.t_,{data:function(){return M.data().accountAvatar}},{avatarViewModel:_.dj}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.T(_.m3,{text:function(){return M.data().accountName}}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.T(_.m3,{text:function(){return M.data().handle}}))),_.T(_.t_,{data:function(){return M.data().trailingButton}},{buttonViewModel:_.lT})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.T(_.m3,{text:function(){return M.data().termsOfService}})))},"Yg");var Qmw=_.Mf(function(M){var z=_.S(_.eh(function(){var L,z8;return((L=M.data().createPlaylistDialogFormSchema)==null?0:(z8=L.initialValues)==null?0:z8.title)?M.data().createPlaylistDialogFormSchema.initialValues.title:""})),J=z.next().value,R=z.next().value;
z=_.S(_.eh(function(){M.data();return!1}));
var D=z.next().value,N=z.next().value;z=_.S(_.eh(function(){M.data();return!1}));
var Z=z.next().value,B=z.next().value;z=_.S(_.eh(function(){var L,z8;return(L=M.data().createPlaylistDialogFormSchema)==null?void 0:(z8=L.initialValues)==null?void 0:z8.visibility}));
var O=z.next().value,X=z.next().value;z=_.S(_.eh(function(){M.data();return!1}));
var l=z.next().value,e=z.next().value;z=_.S(_.eh(function(){var L,z8;return(L=M.data().createPlaylistDialogFormSchema)==null?void 0:(z8=L.initialValues)==null?void 0:z8.isCollaborative}));
var Q=z.next().value,v=z.next().value,x=_.AL("div");_.jP(function(){var L=x.value.querySelector("textarea");L&&(L.value=J())},"OCauEe");
_.mF(function(){var L;_.jXv((L=M.data().createPlaylistDialogFormSchema)==null?void 0:L.id,{onSubmit:function(){var z8=J();var O8=O(),I3=Q(),vY=M.data();z8={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:z8,privacyStatus:O8,videoIds:vY.videoIds,sourcePlaylistId:vY.sourcePlaylistId,params:I3?vY.createPlaylistParamsCollaborationEnabled:vY.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.JF().resolve(_.Rb).resolveCommand(z8)},
isValid:function(){return D()&&!Z()&&!l()}})});
var m=function(L){if(L!==void 0&&(R(L),!D()&&L.length>0&&N(!0),D())){var z8=sEt(M.data());if(z8){var O8=z8.minLength;z8=z8.maxLength;O8&&L.length<O8?B(!0):z8&&L.length>z8?B(!0):B(!1)}}},y=function(){var L=!(!Q()||O()!=="PRIVATE");
e(L)},H=function(L){L!==void 0&&(X(L),y())},q=function(){if(l())return hti(M.data())},b=function(){v(!Q());
y()},V=function(){return{validate:function(L){if(D()){var z8=sEt(M.data());
if(z8){var O8=z8.minLength;z8=z8.translations;if(O8&&L.length<O8)return z8==null?void 0:z8.minLengthErrorMessage}}}}},E=function(){var L=sEt(M.data()),z8=L==null?void 0:L.maxLength,O8;
L=L==null?void 0:(O8=L.translations)==null?void 0:O8.maxLengthErrorMessage;if(z8&&L)return{maxChars:z8,errorMessage:L}};
return _.T("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.T("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:x},_.T(_.t_,{data:function(){return M.data().playlistTitle}},{textFormFieldViewModel:function(L){return _.T(_.Qfs,{data:L.data,
text:J,onInput:m,validation:V,characterLimit:E})},
textFieldViewModel:function(L){return _.T(_.eAt,{data:L.data,text:J,onInput:m,validation:V,characterLimit:E})}})),_.T("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.T(_.t_,{data:function(){return M.data().playlistVisibility}},{dropdownViewModel:function(L){return _.T(_.g4u,{data:L.data,
onSelected:H,error:q})}})),_.T(_.I,{cond:function(){return!!M.data().playlistCollaborate},
then:function(){return _.T("div",null,_.T(_.t_,{data:function(){return M.data().playlistCollaborate}},{switchListItemViewModel:function(L){return _.T(_.cIV,{data:L.data,
onTap:b})}}))}}))},"Zg");var UT5=_.Mf(function(M){var z=M.data;return _.T("upsell-offer-table-cell-content-view-model",null,_.T("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.T(_.tg,null,_.T(_.w3,{when:function(){return z().iconType}},function(){return _.T("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.T(_.vS,{icon:function(){return z().iconType.toString()}}))}),_.T(_.w3,{when:function(){return z().title}},function(){return _.T(_.m3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return z().title}})}),_.T(_.w3,{when:function(){return z().subtitle}},function(){return _.T(_.m3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return z().subtitle}})}),_.T(_.w3,{when:function(){return z().infoText}},function(){return _.T(_.m3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return z().infoText}})}),_.T(_.w3,{when:function(){return z().featureDescription}},function(){return _.T(_.m3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return z().featureDescription}})}),_.T(_.w3,{when:function(){return z().note}},function(){return _.T(_.m3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return z().note}})}))))},"$g");
UT5.idomCompat=!0;var vHc=_.Mf(function(M){var z=M.data;return _.T("upsell-offer-table-cell-view-model",null,_.T("div",{class:_.Qe("ytUpsellOfferTableCellViewModelCellWrapper",function(){return z().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.T(_.t_,{data:function(){return z().contents}},{upsellOfferTableCellContentViewModel:UT5})))},"ah");
vHc.idomCompat=!0;var GRv=_.Mf(function(M){var z=M.data;var J=M.upsellTableIsFirstRow;var R=function(){return(J==null?0:J())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},D=function(){return(J==null?0:J())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.T("ytm-upsell-offer-table-row-view-model",null,_.T("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.T(_.t_,{data:function(){return z().rowHeaderCell}},{upsellOfferTableCellViewModel:function(N){return _.T("div",{class:R},_.T(vHc,{data:N.data}))}}),_.T(_.t_,{data:function(){return z().contentCells}},{upsellOfferTableCellViewModel:function(N){return _.T("div",{class:D},_.T(vHc,{data:N.data}))}})))},"bh");
GRv.idomCompat=!0;var wGs=_.Mf(function(M){var z=M.data;return _.T("ytm-upsell-offer-table-view-model",null,_.T("div",{class:"ytUpsellOfferTableViewModelHost"},_.T("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.T(_.t_,{data:function(){return z().rows}},{upsellOfferTableRowViewModel:function(J,R){return _.T(GRv,{data:J.data,
upsellTableIsFirstRow:function(){return R()===0}})}}))))},"ch");
wGs.idomCompat=!0;var xTl=_.Mf(function(M){var z=_.ba(M.noPadding,!1),J=function(){var N,Z;return(Z=(N=M.data().logo.accessibilityData)==null?void 0:N.label)!=null?Z:""},R=function(){return M.data().offerTable},D={};
return _.T("upsell-view-model",{class:_.Qe("ytUpsellViewModelHost",(D.ytUpsellViewModelHostNoPadding=function(){return z()},D.ytUpsellViewModelHostWide=function(){return R()!==void 0},D))},_.T("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.T(_.I,{cond:function(){return _.Lf(M.data().logo)},
then:function(N){return _.T(_.rv,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:J})}})),_.T("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.T(_.m3,{text:function(){return M.data().title}})),_.T("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.T(_.G4,{each:function(){var N;
return(N=M.data().subtitles)!=null?N:[]},
keyBy:"INDEX"},function(N){var Z={};return _.T("div",{class:_.Qe("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(Z.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return R()!==void 0},Z))},_.T(_.m3,{text:N}))})),_.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.T(_.G4,{each:function(){var N;
return(N=M.data().benefitInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.T(_.I,{cond:function(){return N().info},
then:function(Z){return _.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.T(_.vS,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.T(_.m3,{text:Z}))}})})),_.T(_.I,{cond:function(){return R()!==void 0},
then:function(){return _.T("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.T(wGs,{data:R}))}}),_.T("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.T(_.G4,{each:function(){var N;
return(N=M.data().legalInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){var Z={};return _.T("div",{class:_.Qe("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(Z.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return R()!==void 0},Z))},_.T(_.m3,{text:N}))})))},"dh");var t7d=_.Mf(function(M){var z=M.data;M={};M=(M.ytMiniAppScoreChallengeViewModelScoreRadial=!0,M.ytMiniAppScoreChallengeViewModelDarkScoreRadial=yhi(),M);return _.T("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.T("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return z().title}),_.T("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return z().subtitle}),_.T("div",{class:_.jF(M)},_.T("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return z().score})),_.T("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return z().prompt}))},"eh");var jml=function(){this.store=_.ia();this.formId=""};
jml.prototype.onInit=function(M){M.formId&&(this.formId=M.formId,this.store.dispatch(_.Nv({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var pGs=_.Mf(function(M){function z(B){if(B&&(B=_.G(B,_.YC)))return Object.assign({},B,{isSelected:N()})}
var J=_.S(_.eh(function(){var B,O;return(O=(B=_.G(M.data().option,_.YC))==null?void 0:B.isSelected)!=null?O:!1})),R=J.next().value,D=J.next().value,N=R;
_.mF(function(){var B;_.jXv((B=M.data().formSchema)==null?void 0:B.id,{onSubmit:function(){var O=_.JF().resolve(_.Rb),X=!!M.data().selectedCommand,l=!!M.data().unselectedCommand;if(N()){if(X)var e=M.data().selectedCommand}else l&&(e=M.data().unselectedCommand);e=_.$S(e);z(M.data().option)&&!e?(O="",!X&&l?O="selected ":X&&!l&&(O="unselected "),X=new _.xN("No "+O+"command found for SelectionListItemFormViewModel"),_.nc(X)):e&&O.resolveCommand(e)},
isValid:function(){return!0}})});
var Z=function(){D(!N())};
_.pq(function(){var B,O,X=(B=M.data())==null?void 0:(O=B.formSchema)==null?void 0:O.id;X&&_.xHw()().delete(X)});
return _.T("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.T("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.T(_.m3,{text:function(){return M.data().paragraph}})),_.T(_.I,{cond:function(){return z(M.data().option)},
then:function(B){return _.T(_.uI,{data:B,isCompact:!0,hideSelectionTextChevron:!0,onTap:Z,disableHorizontalPadding:!0})}}))},"fh");var Ffv=_.Mf(function(M){var z=M.data;var J=M.disablePadding;var R=M.className;var D=_.AL("yt-dialog-header-view-model"),N=function(){var B=z().imageBanner;a:switch(z().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var O="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:O="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:B,style:O,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Z=function(){return z().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.mF(function(){var B=function(){_.S9(D.value,"yt-refit-popups-action")},O;
(O=D.value)==null||O.addEventListener("image-loaded",B);_.pq(function(){var X;(X=D.value)==null||X.removeEventListener("image-loaded",B)})});
M={};return _.T("yt-dialog-header-view-model",{el:D,class:_.Qe(R,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=J,M))},_.T(_.I,{cond:function(){return z().imageBanner},
then:function(){var B={};return _.T("div",{class:_.Qe(R,(B.ytDialogHeaderViewModelBanner=!0,B.ytDialogHeaderViewModelBannerFullBleed=Z,B)),style:_.UN({"max-height":function(){return z().assetContainerMaxHeight!==void 0?z().assetContainerMaxHeight+"px":void 0}})},_.T(_.BC,{data:N,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.T(_.I,{cond:function(){return z().headerBlock},
then:function(){return _.T("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.T(_.t_,{data:function(){return z().headerBlock}},{contentPreviewImageViewModel:function(B){return _.T(_.BC,{data:B.data,
notifyOnLoaded:!0})}}))}}),_.T(_.I,{cond:function(){return z().customBanner},
then:function(B){return _.T("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.T(_.t_,{data:B},{avatarStackViewModel:_.$h}))}}),_.T(_.I,{cond:function(){return z().headline},
then:function(B){return _.T("h2",null,_.T(_.m3,{text:B,className:"ytDialogHeaderViewModelText"}))}}))},"gh");
Ffv.idomCompat=!0;var YHN=_.Mf(function(M){var z=_.pWw(function(){return M.data().formId}),J=z.onSubmit,R=z.isValid;
return _.T("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.T(_.t_,{data:function(){return M.data().panelFooter}},{panelFooterViewModel:function(D){return _.T(_.PD,{data:D.data,
disablePadding:!0,disablePrimaryButton:function(){return!R()},
onClickPrimaryButton:function(){J()}})}}))},"hh");var mTv=_.Mf(function(M){var z=function(){var J,R;return(R=(J=_.G(M.data().rendererContext,_.pM))==null?void 0:J.label)!=null?R:""};
return _.T("yt-dialog-image-content-view-model",{class:_.Qe("ytDialogImageContentViewModelHost",M.className)},_.T(_.I,{cond:function(){return _.Lf(M.data().image)},
then:function(J){var R={};return _.T("div",{style:_.UN((R.width=(0,_.cB)(function(){var D;return(D=M.data().imageMaxWidth)!=null?D:""}),R)),
class:"ytDialogImageContentViewModelImage"},_.T(_.rv,{data:J,alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.T(_.m3,{text:function(){return M.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ih");var nHw=_.Mf(function(M){var z=_.rH(M,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),J=z.elRefCallback;M=z.iconWiz;var R=z.assetWiz,D=z.assetType,N=z.titleWiz,Z=z.leadingActionHeaderWiz,B=z.trailingActionHeaderWiz,O=z.headerPosition,X=z.contentWiz,l=z.buttonLayout,e=z.buttonStyle,Q=z.primaryButtonWiz,v=z.secondaryButtonWiz,x=z.contentAlignment,m=z.isFullscreen,y=z.width,H=z.maxHeight,q=z.isHeaderWizDefined,
b=z.headerWiz,V=z.isFooterWizDefined,E=z.footerWiz;z=_.AL("dialog-layout",function(cY){J==null||J(cY)});
var L=R?function(){return R({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,z8=Q?function(){var cY={};
return Q({buttonOverrides:function(){return{style:(e==null?void 0:e())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Qe((cY["yt-spec-dialog-layout__dialog-layout-button"]=!0,cY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(l==null?void 0:l())===0||(l==null?void 0:l())===2},cY))})}:void 0,O8=v?function(){var cY={};
return v({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Qe((cY["yt-spec-dialog-layout__dialog-layout-button"]=!0,cY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(l==null?void 0:l())===0||(l==null?void 0:l())===2},cY))})}:void 0,I3=function(){return(!!N||!!Z||!!B)&&O()===0},vY={},te={},wR={},qb={};
return _.T("dialog-layout",{el:z,class:_.Qe((vY["yt-spec-dialog-layout"]=!0,vY["yt-spec-dialog-layout--dialog-layout-fullscreen"]=m,vY["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!m()},vY["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return H()===1},vY["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(D==null?void 0:D())===1},vY)),
style:function(){return(y==null?void 0:y())!==void 0?"width: "+y+"px;":""}},M?_.T("div",{class:_.Qe((te["yt-spec-dialog-layout__dialog-layout-icon"]=!0,te["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!R&&O()===1},te["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return x()===1},te))},_.T(M,null)):null,_.T(_.I,{cond:q,
then:function(){return b?_.T("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.T(b,null)):null},
else:function(){return _.T(_.MH,null,_.T(_.I,{cond:I3,then:function(){return _.T(gHw,{contentAlignment:x,LeadingActionHeader:Z,TrailingActionHeader:B,Title:N,isAboveAsset:!!L})}}),L?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.T(L,null)):null)}}),_.T("div",{class:_.Qe((wR["yt-spec-dialog-layout__dialog-layout-container"]=!0,wR["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(x==null?void 0:x())===1},wR["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!N&&!b||!!L&&(O==null?void 0:O())===0},wR))},_.T(_.I,{cond:function(){return N&&!b&&(O==null?void 0:O())===1},
then:function(){return _.T(gHw,{contentAlignment:x,LeadingActionHeader:Z,TrailingActionHeader:B,Title:N,isAboveAsset:!1})}}),X?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.T(X,null))):null,_.T(_.I,{cond:V,
then:function(){return E?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.T(E,null)):null}}),z8||O8?_.T(smw,{footerClasses:_.Qe((qb["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,qb["yt-spec-dialog-layout__dialog-layout-footer"]=!0,qb["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(l==null?void 0:l())===2},qb["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(l==null?void 0:l())===1},qb)),
PrimaryButton:z8,SecondaryButton:O8}):null))},"jh"),gHw=_.Mf(function(M){var z=_.rH(M,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),J=z.contentAlignment,R=z.LeadingActionHeader;M=z.Title;var D=z.TrailingActionHeader,N=z.isAboveAsset,Z=z.enableLeadingActionHeader;z={};return _.T("div",{class:_.Qe((z["yt-spec-dialog-layout__dialog-header-container"]=!0,z["yt-spec-dialog-layout__dialog-header"]=!0,z["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=N,z["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(J==null?void 0:J())===1&&Z()},z))},_.T(_.I,{cond:function(){return Z()},
then:function(){return R?_.T("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.T(R,null)):null}}),M?_.T("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.T(M,null)):null,D?_.T("div",null,_.T(D,null)):null)},"kh"),smw=_.Mf(function(M){var z=M.footerClasses;
var J=M.PrimaryButton;M=M.SecondaryButton;return _.T("div",{class:z},M?_.T(M,null):null,J?_.T(J,null):null)},"lh");var hev=_.Mf(function(M){var z=M.data;return _.T("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.T("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.T(_.t_,{data:function(){return z().avatar}},{avatarViewModel:_.dj})),_.T("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T(_.m3,{text:function(){return z().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"mh");var yDw=_.Mf(function(M){var z=M.data;return _.T("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.T("div",{class:"ytAccessConfirmationViewModelContent"},_.T(_.t_,{data:function(){var J;return(J=z().avatar)!=null?J:z().dualAvatar}},{dualAvatarViewModel:function(J){return _.T(_.w7g,{data:J.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(J){return _.T(_.Km,{data:J.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.T("h2",{class:"ytAccessConfirmationViewModelTitle"},_.T(_.m3,{text:function(){return z().title}})),_.T(_.m3,{text:function(){return z().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"nh");var H2l=_.Mf(function(M){var z=M.data;var J=void 0;M=_.S(_.eh(function(){var X;return((X=_.G(z().content,_.aRd))==null?void 0:X.defaultSelectedKey)||""}));
var R=M.next().value,D=M.next().value,N,Z=function(){D("");var X;(X=J)!=null&&X.store.dispatch(_.Nv({type:"RESET_COMMAND_MAP"}))};
_.mF(function(){J=new jml;window.addEventListener("yt-popup-closed",Z)});
_.jP(function(){if(J&&N!==z().formId&&(J.onInit(z()),(N=z().formId)&&R())){var X=J,l={key:R()};l.command&&X.store.dispatch(sht(N,l.command))}},"k6b6Qe");
_.pq(function(){window.removeEventListener("yt-popup-closed",Z)});
var B=function(X,l,e){l.key&&e&&l.key!==R()&&(D(l.key),J&&l.command&&J.store.dispatch(sht(e,l.command)))},O=function(){if(_.G(z().content,_.aRd))return!(R==null?0:R())};
return _.T("yt-dialog-view-model",{class:_.Qe("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.T(nHw,{headerWiz:function(){return _.T("span",{skip:!0},_.T(_.t_,{data:function(){return z().header}},{dialogHeaderViewModel:function(X){return _.T(Ffv,{data:X.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!z().header},
contentWiz:function(){return _.T("span",{skip:!0},_.T(_.t_,{data:function(){return z().customContent?z().customContent:z().content}},{basicContentViewModel:_.xNw,
createPlaylistDialogFormViewModel:Qmw,collaborativePlaylistInviteMessageViewModel:eev,miniAppScoreChallengeViewModel:t7d,radioButtonGroupViewModel:function(X){var l=X.data;return _.T(_.FhN,{data:l,selectedKey:R,onSelected:B,groupName:function(){return l().formId}})},
selectionListItemFormViewModel:pGs,upsellViewModel:function(X){return _.T(xTl,{data:X.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:hev,installmentAgreementsViewModel:l_t,accessConfirmationViewModel:yDw,listViewModel:function(X){return _.T(_.VSQ,{data:X.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:mTv}))},
footerWiz:function(){return _.T("span",{skip:!0},_.T(_.t_,{data:function(){return z().footer}},{panelFooterViewModel:function(X){return _.T(_.PD,{data:X.data,
disablePadding:!0,disablePrimaryButton:O})},
formPanelFooterViewModel:YHN,formFooterViewModel:function(X){return _.T(_.TPm,{data:X.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!z().footer}}))},"oh");
H2l.idomCompat=!0;_.N7(H2l,"yt-dialog-view-model",{props:{data:_.zn},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var cD5=_.Mf(function(M){var z=M.data;M={};return _.T("yt-panel-header-view-model",{class:_.Qe("yt-panel-header-view-model-wiz",(M["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!z().shouldHideDivider},M["yt-panel-header-view-model-wiz--compact"]=function(){return!!z().subtitle},M))},_.T("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.T(_.I,{cond:function(){return z().title},
then:function(J){return _.T(_.m3,{text:J,className:"yt-panel-header-view-model-wiz__title"})}}),_.T(_.I,{cond:function(){return z().subtitle},
then:function(J){return _.T(_.m3,{text:J,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.T("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.T(_.t_,{data:function(){return z().trailingButtons}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"ph");
cD5.idomCompat=!0;var dTw=_.Mf(function(M){var z=_.ol(function(N){var Z;if((Z=M.skipContentClick)==null?0:Z.call(M))return!1;M.onContentWrapperClick(N);return!0}),J,R,D;
return _.T("div",{class:_.Qe("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return M.isAnimating()?"transform: translateY("+M.currentY()+"px);transition: 0.2s":""}},(J=M.header)==null?void 0:J.call(M),_.T("div",{id:M.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.UN({"max-height":(0,_.cB)(M.maxHeightForContentWrapper)}),"on:scroll":KKw(M.onScroll),"on:touchmove":KKw(function(N){return void N.stopPropagation()})},_.T("div",{el:{onRender:M.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":z},(R=M.body)==null?void 0:R.call(M))),(D=M.footer)==null?void 0:D.call(M))},"qh");
dTw.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Kfw=_.Mf(function(M){var z=_.ba(M.leadingLabel),J=_.ba(M.trailingLabel),R=_.ba(M.footerButtonType),D=function(){return z()||J()||M.hasPrimaryButton()||M.hasSecondaryButton()},N={},Z=_.Qe("yt-spec-bottom-sheet-layout__primary-button",(N["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return R()===0&&M.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return R()===1&&M.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return R()===2&&M.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},N));
N={};var B=_.Qe("yt-spec-bottom-sheet-layout__secondary-button",(N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return R()===1&&M.hasSecondaryButton()},N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return R()===2&&M.hasSecondaryButton()},N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},N));
return _.T(_.I,{cond:M.hasFooterOverride,then:function(){var O;return _.T(_.MH,null,(O=M.footerOverride)==null?void 0:O.call(M))},
else:function(){return _.T(_.I,{cond:D,then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.T(_.I,{cond:function(){return z()||J()},
then:function(){var O={};return _.T("div",{class:_.Qe("yt-spec-bottom-sheet-layout__footer-label-wrapper",(O["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!M.hasPrimaryButton()},O))},_.T(_.I,{cond:z,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},z)}}),_.T(_.I,{cond:J,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},J)}}))}}),_.T(_.I,{cond:function(){return M.hasPrimaryButton()||M.hasSecondaryButton()},
then:function(){var O={};return _.T("div",{class:_.Qe("yt-spec-bottom-sheet-layout__footer-button-wrapper",(O["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$iJ,O))},_.T(_.I,{cond:function(){return M.hasSecondaryButton()&&R()!==0},
then:function(){var X;return _.T("div",{class:B},(X=M.secondaryButton)==null?void 0:X.call(M))}}),_.T(_.I,{cond:M.hasPrimaryButton,
then:function(){var X;return _.T("div",{class:Z},(X=M.primaryButton)==null?void 0:X.call(M))}}))}}))}})}})},"rh");
Kfw.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var $Tc=_.Mf(function(M){var z=_.ba(M.title),J=_.ba(M.subtitle);return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:M.headerId,"on:touchstart":_.ol(function(R){var D;(D=M.touchstart)==null||D.call(M,R);return!1}),
"on:touchmove":_.ol(function(R){var D;(D=M.touchmove)==null||D.call(M,R);return!1}),
"on:touchend":_.ol(function(R){var D;(D=M.touchend)==null||D.call(M,R);return!1})},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.T(_.I,{cond:M.hasHeaderOverride,
then:function(){var R;return _.T(_.MH,null,(R=M.headerOverride)==null?void 0:R.call(M))},
else:function(){var R={};return _.T("div",{class:_.Qe((R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=z,R))},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.T(_.I,{cond:z,then:function(){return _.T(_.MH,null,_.T("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},z),_.T(_.I,{cond:J,then:function(){return _.T("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
J)}}))}})),_.T(_.I,{cond:function(){return z()&&M.hasActionHeader()},
then:function(){var D;return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(D=M.actionHeader)==null?void 0:D.call(M))}}))}}))},"sh");
$Tc.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Mf(function(M){function z(L){if(!H&&typeof MutationObserver!=="undefined"){var z8={childList:!0};"MutationObserver"in window&&(H=new MutationObserver(J.bind(void 0,L)),H.observe(L,z8))}}
function J(L){typeof H!=="undefined"&&(q["content-wrapper"]===void 0&&(q["content-wrapper"]=L.children[0].clientHeight),v(q["content-wrapper"]),Q()>x()||m(Q()))}
function R(){e(window.innerHeight);Q()>x()||m(Q());b.isFullScreen[0]()&&Q()>x()?V().dispatch("Snap To Full Screen",{maxHeight:y()}):V().dispatch("Snap To Neutral Position",{maxHeight:x()})}
function D(L){document.body.style.overscrollBehavior="none";L.preventDefault();V().dispatch("Touch Start",{event:L})}
function N(L){L.preventDefault();V().dispatch("Touch Move",{event:L,contentScrollable:Q()>x(),fullContentWrapperHeight:y(),contentWrapperHeight:x(),contentHeightMap:q,contentWrapperId:"content-wrapper",header:uHw(M),footer:uHw(M)})}
function Z(){document.body.style.overscrollBehavior="";b.isFullScreen[0]()?b.currentY[0]()>=60?V().dispatch("Snap To Neutral Position",{maxHeight:x()}):V().dispatch("Snap To Full Screen",{maxHeight:y()}):b.currentY[0]()>=60?B():b.currentY[0]()<=-60&&Q()>x()?V().dispatch("Snap To Full Screen",{maxHeight:y()}):V().dispatch("Snap To Neutral Position",{maxHeight:x()})}
function B(){V().dispatch("Close Sheet",{clientHeight:l(),maxHeight:0});setTimeout(function(){$fi()},250)}
var O=_.S(_.kE(window.innerHeight,void 0,"NWeFS")),X=O.next().value;O=O.next().value;var l=X,e=O;O=_.S(_.kE(0,void 0,"oxfm4"));X=O.next().value;O=O.next().value;var Q=X,v=O;O=_.S(_.eh(function(){var L=uHw(M);return.6*l()-Hem(L)-chi(L)}));
X=O.next().value;O=O.next().value;var x=X,m=O,y=function(){var L=uHw(M);return l()-Hem(L)-chi(L)-24-24},H=null,q={},b={initialY:_.kE(0,void 0,"cYBE5c"),
currentY:_.kE(0,void 0,"RndqHc"),isAnimating:_.kE(!1,void 0,"vO9DVd"),isFullScreen:_.kE(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.eh(x)},V=function(){var L=null;return function(){if(!L){var z8={initialY:b.initialY[0](),currentY:b.currentY[0](),isAnimating:b.isAnimating[0](),isFullScreen:b.isFullScreen[0](),maxHeightForContentWrapper:b.maxHeightForContentWrapper[0]()};L=dfG(z8)}return L}}();
_.mF(function(){window.addEventListener("resize",R);V().subscribe(function(L){b.initialY[1](L.initialY);b.currentY[1](L.currentY);b.isAnimating[1](L.isAnimating);b.isFullScreen[1](L.isFullScreen);b.maxHeightForContentWrapper[1](L.maxHeightForContentWrapper)})});
_.pq(function(){window.removeEventListener("resize",R);H&&(H.disconnect(),H=null)});
var E=_.Qe({"bottom-sheet-content-without-icon":function(){var L;return!((L=M.shouldShowIcons)==null?0:L.call(M))}});
return _.T("bottom-sheet-layout",null,_.T(dTw,{contentWrapperId:"content-wrapper",isAnimating:function(){return b.isAnimating[0]()},
currentY:function(){return b.currentY[0]()},
maxHeightForContentWrapper:function(){return b.maxHeightForContentWrapper[0]()},
shouldShowIcons:M.shouldShowIcons,skipContentClick:M.skipContentClick,onScroll:function(){var L=document.getElementById("header-wrapper"),z8=document.getElementById("content-wrapper");if(L&&z8){var O8={};O8=(O8["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,O8["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,O8);L.className=z8.scrollTop>1?_.jF(O8):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:$fi,contentWrapperEl:function(L){z(L);requestAnimationFrame(function(){J(L)})},
header:function(){return _.T($Tc,{touchstart:D,touchmove:N,touchend:Z,title:M.headerTitle,subtitle:M.headerSubtitle,headerId:"header-wrapper",headerOverride:M.headerFn,hasHeaderOverride:M.hasHeaderFn,actionHeader:M.headerActionHeader,hasActionHeader:M.hasHeaderActionHeader})},
footer:function(){return _.T(Kfw,{footerButtonType:M.footerButtonType,leadingLabel:M.footerLeadingLabel,trailingLabel:M.footerTrailingLabel,primaryButton:M.footerPrimaryButton,hasPrimaryButton:M.hasFooterPrimaryButton,secondaryButton:M.footerSecondaryButton,hasSecondaryButton:M.hasFooterSecondaryButton,footerOverride:M.footerFn,hasFooterOverride:M.hasFooterFn})},
body:function(){return _.T(_.I,{cond:M.hasContentFn,then:function(){var L;return _.T("div",{class:E},(L=M.contentFn)==null?void 0:L.call(M))}})}}))},"th").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var uzw=_.Mf(function(M){var z=_.JF().resolve(_.hX);return _.T("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.ol(function(){return void z.closeSheet()})},_.T(_.I,{cond:function(){return!!M.header},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},M.header())}}),_.T(_.I,{cond:function(){return!!M.content},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},M.content())}}),_.T(_.I,{cond:function(){return!!M.footer},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},M.footer())}}))},"uh");
uzw.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var qHs=_.Mf(function(M){M=M.data;var z=_.AL("yt-sheet-view-model",function(R){if(_.U("web_focus_first_element_sheet")||!_.U("sheet_focus_first_killswitch"))return R.addEventListener("focus",function(){dsu(R)}),function(){R.removeEventListener("focus",function(){dsu(R)})}}),J={};
return _.T("yt-sheet-view-model",{"on:mousedown":_.ol(function(R){_.U("sheet_focus_first_killswitch")||R.currentTarget!==R.target&&R.preventDefault()}),
"on:focus":_.ol(function(){_.U("sheet_focus_first_killswitch")||dsu(z.value)}),
class:_.Qe("yt-sheet-view-model-wiz",(J["yt-sheet-view-model-wiz--contextual"]=!0,J["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.U("web_disable_backdrop_filter"),J)),el:z,tabindex:-1},_.T(_.I,{cond:M,then:function(R){return _.T(uzw,{header:function(){return _.T(_.t_,{data:function(){return R().header}},{panelHeaderViewModel:cD5})},
content:function(){return _.T(_.t_,{data:function(){return R().content}},{listViewModel:function(D){return _.T(_.VSQ,{data:D.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:xTl,miniAppScoreChallengeViewModel:t7d})},
footer:function(){return _.T(_.t_,{data:function(){return R().footer}},{panelFooterViewModel:_.PD})}})}}))},"vh");
qHs.idomCompat=!0;_.N7(qHs,"yt-sheet-view-model",{props:{data:_.zn}});var a_u=_.Mf(function(M){var z=function(){var J;return(J=M.data().enableDebuggingFeatures)!=null?J:!1};
return _.T("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.T(_.G4,{each:function(){var J;return(J=M.data().stickers)!=null?J:[]}},function(J){return _.T(Wfd,{data:function(){return J},
debugMode:z})}))},"wh"),Wfd=_.Mf(function(M){var z=_.rH(M,{debugMode:!1}).debugMode,J=_.ba(function(){var O;
return(O=M.data().region)==null?void 0:O.w},0),R=_.ba(function(){var O;
return(O=M.data().region)==null?void 0:O.h},0),D=_.ba(function(){var O;
return(O=M.data().region)==null?void 0:O.x},0),N=_.ba(function(){var O;
return(O=M.data().region)==null?void 0:O.y},0),Z=_.ol(function(){var O=M.data().onTap;
O&&_.aE(O)}),B={};
return _.T("div",{class:_.Qe("ytStoriesStickerLayerViewModelSticker",(B.ytStoriesStickerLayerViewModelDebugMode=z,B)),style:_.UN({width:function(){return 100*J()+"%"},
height:function(){return 100*R()+"%"},
left:function(){return 100*D()+"%"},
top:function(){return 100*N()+"%"},
"flex-direction":function(){return qUw(M.data().flexDirection)},
"justify-content":function(){return WK5(M.data().justifyContent)},
"align-items":function(){return afw(M.data().alignItems)}}),
"on:click":Z},_.T(_.t_,{data:function(){return M.data().button||M.data().toggleButton}},{buttonViewModel:function(O){return _.T(_.lT,{data:O.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(O){return _.T(_.cm,{data:O.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"xh");var EHl=_.Mf(function(M){var z=function(){return M.data()},J={},R=_.ba(function(){return z().backgroundColor},0),D=_.ba(function(){return z().actionButtons},[]),N=_.ba(function(){return z().stickerLayer},{}),Z=function(){var O,X;
return{animationRef:J,animationConfig:{autoplay:!1,loop:!1,path:(X=(O=z().foregroundAnimation)==null?void 0:O.url)!=null?X:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){M.navigateToNextItemOnLottieComplete()}}}},B=function(){var O,X,l,e,Q,v,x,m;
return{animationConfig:{autoplay:(v=(O=z().backgroundAnimation)==null?void 0:(X=O.settings)==null?void 0:X.autoplay)!=null?v:!1,loop:(x=(l=z().backgroundAnimation)==null?void 0:(e=l.settings)==null?void 0:e.loop)!=null?x:!1,path:(m=(Q=z().backgroundAnimation)==null?void 0:Q.url)!=null?m:"",name:"stories_item_background_animation"}}};
_.jP(function(){if(M.isVisible()){var O;(O=J.lottieEl)==null||O.play();M.animationRef()&&(M.animationRef().lottieEl=J.lottieEl)}else{var X;(X=J.lottieEl)==null||X.stop()}},"Cbnkwd");
return _.T("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.UN({"background-color":function(){return _.qG(R())+";"}})},_.T("div",{class:"ytStoriesItemViewModelAssetContent"},_.T(_.I,{cond:function(){return!!z().backgroundAnimation},
then:function(){return _.T(_.xK,{data:B,animationName:function(){return B().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.I,{cond:function(){return!!z().backgroundImage},
then:function(){return _.T(_.rv,{data:function(){return z().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.T(_.I,{cond:function(){return!!z().foregroundAnimation},
then:function(){return _.T(_.xK,{data:Z,animationName:function(){return Z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.I,{cond:function(){return!!z().foregroundImage},
then:function(){return _.T(_.rv,{data:function(){return z().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.T("div",{class:"ytStoriesItemViewModelTopShadow"}),_.T(_.t_,{data:function(){return N()}},{storiesStickerLayerViewModel:a_u})),_.T("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.UN({"background-color":function(){return _.qG(R())}})},_.T("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.T(_.G4,{each:D},function(O){return _.T(V7d,{data:function(){return O},
pauseAutoNavigation:M.pauseAutoNavigation})}))))},"yh"),f_w={style:"overlay",
type:"outline"},V7d=_.Mf(function(M){var z={};return _.T("div",{class:_.Qe("ytStoriesItemViewModelActionButton",(z.ytStoriesItemViewModelStretchedActionButton=function(){return M.data().size==="STORIES_BUTTON_SIZE_STRETCH"},z)),
"on:click":_.ol(M.pauseAutoNavigation)},_.T(_.t_,{data:function(){return M.data().button}},{buttonViewModel:function(J){return _.T(_.lT,{data:J.data,
buttonOverrides:f_w})}}))},"zh");_.N7(_.Mf(function(M){var z=function(){var O8;return(O8=M.data().startIndex)!=null?O8:0},J=_.S(_.eh(z)),R=J.next().value,D=J.next().value;
J=_.S(_.kE(!1,void 0,"O8yPf"));var N=J.next().value,Z=J.next().value,B=function(){var O8;return(O8=M.data().storyItems)!=null?O8:[]},O={},X=function(){return M.data().dismissButton},l=function(){var O8;
return _.$S((O8=_.G(X(),_.s3))==null?void 0:O8.onTap)},e=_.AL("div"),Q,v,x=!1,m=function(){var O8;
(O8=Q)==null||O8.cancel();Q=y(R()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});Q.onfinish=function(){y(R()).style.width="100%";var I3=_.G(B()[R()],C_s),vY,te;I3!=null&&I3.foregroundAnimation&&((I3==null?0:(vY=I3.foregroundAnimation)==null?0:vY.url)||(I3==null?0:(te=I3.foregroundAnimation)==null?0:te.payload))||(R()!==B().length-1?(D(R()+1),m()):l()&&_.u5(l()))}},y=function(O8){return e.value.children[O8].children[0]},H=function(){for(var O8=0;O8<R();O8++)y(O8).style.width=
"100%"};
J=_.ol(function(){x||(N()?Z(!1):(R()===B().length-1&&l()&&_.u5(l()),y(R()).style.width="100%",R()!==B().length-1&&(D(R()+1),m())))});
var q=_.ol(function(){x||(N()?Z(!1):(y(R()).style.width="0%",R()!==0?D(R()-1):D(R()),m()))}),b=function(){Z(!0)},V=function(){y(R()).style.width="100%";
R()!==B().length-1?(D(R()+1),m()):l()&&_.u5(l())},E=_.ol(function(){x=!1;
v=setTimeout(function(){Z(!0);x=!0},300)}),L=_.ol(function(){clearTimeout(v);
x&&N()&&Z(!1)});
_.jP(function(){if(N()){var O8;(O8=Q)==null||O8.pause();var I3;(I3=O.lottieEl)==null||I3.pause()}else{var vY;(vY=Q)==null||vY.play();var te;(te=O.lottieEl)==null||te.play()}},"DIHTEd");
_.jP(function(){H();R()===z()&&m()},"ze5F8b");
var z8=function(){var O8=l();O8&&_.u5(O8)};
_.mF(function(){H();m();window.addEventListener("yt-popup-closed",z8)});
_.pq(function(){clearTimeout(v);window.removeEventListener("yt-popup-closed",z8)});
return _.T("yt-stories-viewer-view-model",{class:_.Qe("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.T("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.T("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":q,"on:mousedown":E,"on:mouseup":L,"on:mouseleave":L}),_.T("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":J,"on:mousedown":E,"on:mouseup":L,"on:mouseleave":L})),_.T("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.T(_.t_,{data:B},{storiesItemViewModel:function(O8,I3){var vY=O8.data;return _.T(_.I,{cond:function(){return Math.abs(I3()-R())<=1},
then:function(){var te={};return _.T("div",{class:_.Qe("ytStoriesViewerViewModelStoryItem",(te.ytStoriesViewerViewModelActiveStoryItem=function(){return I3()===R()},te))},_.T(EHl,{data:vY,
pauseAutoNavigation:b,navigateToNextItemOnLottieComplete:V,isVisible:function(){return I3()===R()},
animationRef:O}))}})}})),_.T("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:e},_.T(_.G4,{each:B},function(){return _.T("div",{class:"ytStoriesViewerViewModelProgressBar"},_.T("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.T("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.T(_.t_,{data:X},{buttonViewModel:_.lT})))},"Ah"),"yt-stories-viewer-view-model",{props:{data:_.zn}});_.N7(_.Mf(function(M){var z=M.data;var J=_.AL("yt-gen-ai-feedback-form-view-model"),R=[];return _.T("yt-gen-ai-feedback-form-view-model",{el:J,class:"ytGenAiFeedbackFormViewModelHost"},_.T(_.m3,{text:function(){return z().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.T(_.t_,{data:function(){return z().feedbackChips}},{toggleButtonViewModel:function(D){var N=D.data;
return _.T(_.cm,{data:N,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Z){var B=N();B=_.G(B,_.nf);B=_.G(B==null?void 0:B.defaultButtonViewModel,_.s3).trackingParams;Z?R.push(B):(Z=R.indexOf(B),Z>-1&&R.splice(Z,1))}})}})),_.T(_.m3,{text:function(){return z().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.T(_.t_,{data:function(){return z().submitButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){V5l(J.value,R,z().uniqueId)}})}}),_.T(_.t_,{data:function(){return z().moreFeedbackButton}},{buttonViewModel:function(D){return _.T(_.lT,{data:D.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Bh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.zn},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var uu=function(){return _.g.apply(this,arguments)||this};
_.w(uu,_.g);uu.prototype.created=function(){j9v(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(lnw);var M=_.JF().resolve(_.zww);M&&(M.container=this.ytPopupContainerBehavior);if(M=_.JF().resolve(_.hX))M.container=this.ytPopupContainerBehavior;if(M=_.JF().resolve(_.yw)){var z=this.ytPopupContainerBehavior;M.containerWasInjected?_.yA(Error("ej")):M.container=z}};
uu.prototype.ensurePopupBelowPlayer=function(M,z){var J=_.JF().resolve(_.zw(_.M6));if(!J||!J.isOnWatch()||!_.J_())return!1;J=J.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.t9().height>J+this.getPopupHeight(M,z)?(M.style.top="auto",M.style.bottom="0px"):(M.style.top=J+"px",M.style.bottom="auto");return!0};
uu.prototype.getPopupHeight=function(M,z){z&&(M.cachedPopupHeight=0);if(!M.cachedPopupHeight){z=0;var J=M.clientHeight,R=window.getComputedStyle(M);z+=parseInt(R.marginTop,10);z+=parseInt(R.marginBottom,10);M.cachedPopupHeight=J+z}return M.cachedPopupHeight};
uu.prototype.getElement=function(M){return document.createElement(M)};
_.u([_.p(h5u.YtPopupContainerBehavior),_.W("design:type",Object)],uu.prototype,"ytPopupContainerBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],uu.prototype,"ytComponentBehavior",void 0);_.u([_.c({disableElementRegistration:!0,is:"ytd-popup-container"})],uu);
_.d(uu,"ytd-popup-container",function(){if(tot!==void 0)return tot;var M=document.createElement("template");_.t(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);return tot=M},{mode:1});var Lfw;var ADv={};ADv.YtLogYpcFlowCommandsBehavior=[_.wx.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(M){_.G(M,Xmw)&&(M=_.G(M,Xmw))&&(M.serializedTransactionFlowLoggingParams?_.nhp(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.bg("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.bg("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=M.serializedYpcPauseFlowLoggingParams)&&
_.bg("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams?(M=M.serializedYpcRefundFlowLoggingParams)&&ZYv("YPC_EVENT_TYPE_START",M):M.serializedYpcDeactivateFlowLoggingParams?(M=M.serializedYpcDeactivateFlowLoggingParams)&&_.bg("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",M):M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(M=M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.bg("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",M))},
handleLogYpcFlowDismiss_:function(M){_.G(M,oKN)&&(M=_.G(M,oKN),M.serializedTransactionFlowLoggingParams?_.hle(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.bg("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.bg("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=
M.serializedYpcPauseFlowLoggingParams)&&_.bg("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams&&(M=M.serializedYpcRefundFlowLoggingParams)&&ZYv("YPC_EVENT_TYPE_CANCEL",M))}}];var i2l={};i2l.YtCancelRecurrenceBehavior=[_.LZ.YtComponentBehavior,_.nvp,{attached:function(){var M=this;Zrd(this,function(z,J){return M.ypcCancelRecurrenceHandler(z,J)})},
ypcCancelRecurrenceHandler:function(M,z){var J=this;if(!z||!z.ypcCancelRecurrenceEndpoint)return!1;if(!z.ypcCancelRecurrenceEndpoint.params)return _.$y(Error("yl")),!0;_.WX(this.hostElement);var R=_.Ve.instance,D=_.JF().resolve(_.zw(_.HP));R&&_.EN(R,z)?_.fn(R,z).then(function(N){J.ypcCancelRecurrenceSuccess_(M,z,{data:N})},function(N){J.ypcCancelRecurrenceFailure_(M,z,N)}).thenCatch(function(){_.$y(Error("zl"))}):D?D.requestDataForServiceEndpoint(z).then(function(N){J.ypcCancelRecurrenceSuccess_(M,
z,N)},function(N){J.ypcCancelRecurrenceFailure_(M,z,N)}).thenCatch(function(){_.$y(Error("zl"))}):_.$y(Error("Al"));
return!0},
ypcCancelRecurrenceSuccess_:function(M,z,J){_.aZ(this.hostElement);J.data||(J={data:J});J.data&&J.data.actions&&_.Bv(this.hostElement,J.data.actions,this.hostElement);J.data.messageRenderer?BEc(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(z=z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.bg("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",z);_.Pv(M,"yt-service-request-completed",J)},
ypcCancelRecurrenceFailure_:function(M,z,J){_.aZ(this.hostElement);BEc(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Pv(M,"yt-service-request-error",{error:J,params:[M,z]})}}];var COu=function(M,z){_.Mb.call(this,z)};
_.w(COu,V3u);var b2i={};b2i.YtCompleteTransactionBehavior=[_.LZ.YtComponentBehavior,_.nvp,{attached:function(){var M=this;Zrd(this,function(z,J){return M.ypcCompleteTransactionHandler(z,J)})},
completeTransaction:function(M,z){var J=this;z={payments_payload:window.btoa(z.integratorData),buybucket_params:M.data.buybucketParams,offer_params:M.data.offerParams};var R=_.JF().resolve(_.HP),D=M.data.completeTransactionEndpoint,N=this.get("ypcCompleteTransactionEndpoint.actions",D);N&&_.Bv(this.hostElement,N,this.hostElement);return(N=_.Ve.instance)&&_.EN(N,D)?_.fn(N,D,z).then(function(Z){return!Z||(Z==null?0:Z.error)?(Z=J.get("data.serializedTransactionFlowLoggingParams",M),_.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Z))):{data:Z}}).then(function(Z){return J.handleCompleteTransactionSuccess_(Z,M)},function(){return J.handleCompleteTransactionFailure_(M)}):R.requestDataForServiceEndpoint(D,z).then(function(Z){return J.handleCompleteTransactionSuccess_(Z,M)},function(){return J.handleCompleteTransactionFailure_(M)})},
handleCompleteTransactionSuccess_:function(M,z){M.data||(M={data:M});if(M.data.messageRenderer)return _.gv(new COu(M.data.messageRenderer));if(M.data.trackingParams){var J=_.y5(),R=_.hu();J&&R&&_.qs(J,R,_.pe(M.data.trackingParams))}z=this.get("data.serializedTransactionFlowLoggingParams",z);kVl(z);return _.Of(M)},
handleCompleteTransactionFailure_:function(M){M=this.get("data.serializedTransactionFlowLoggingParams",M);_.A9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M);return _.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))},
ypcCompleteTransactionHandler:function(M,z){var J=this;if(!z.ypcCompleteTransactionEndpoint)return!1;if(!z.ypcCompleteTransactionEndpoint.transactionParams)return _.$y(Error("Bl")),!0;z.ypcCompleteTransactionEndpoint&&z.ypcCompleteTransactionEndpoint.gtmData&&_.ca(z.ypcCompleteTransactionEndpoint.gtmData);var R=_.JF().resolve(_.zw(_.HP));if(R){_.WX(this.hostElement);var D=_.Ve.instance;D&&_.EN(D,z)?_.fn(D,z).then(function(N){return!N||(N==null?0:N.error)?(N=J.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
z),_.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N))):{data:N}}).then(function(N){_.Pv(M,"yt-service-request-completed");
J.ypcCompleteTransactionSuccess_(z,N)},function(){return J.ypcCompleteTransactionFailure_(z)}):R.requestDataForServiceEndpoint(z).then(function(N){_.Pv(M,"yt-service-request-completed");
J.ypcCompleteTransactionSuccess_(z,N)},function(){return J.ypcCompleteTransactionFailure_(z)})}return!0},
ypcCompleteTransactionSuccess_:function(M,z){_.aZ(this.hostElement);z.data||(z={data:z});_.S9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);z.data.messageRenderer||z.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(M):(_.ca('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",M));z.data.actions&&(M=jud(z.data.actions),z=pUu(z.data.actions),M.length&&_.kQ(this.hostElement,
M),z.length&&_.Bv(this.hostElement,z,this.hostElement))},
ypcCompleteTransactionFailure_:function(M){_.aZ(this.hostElement);_.S9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",M,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(M,z,J){if(z=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",z))z={serializedTransactionFlowLoggingParams:z},J&&(z.errorType=J),_.gP(M,z),_.sB()}}];var rDt={};rDt.YtEndpointHandlerWithYpcBehavior=[_.nvp,_.wx.YtActionHandlerBehavior,[{openWalletDialog:function(M,z,J,R,D,N,Z){var B=this,O=_.Ln();z=z.replace(/-/g,"+").replace(/_/g,"/");var X=_.vv().get("hl");_.cO8(_.Jx(_.i7),z,O.resolve,D,function(l){N&&N();O.reject(l)},X,function(l){return B.onServerBackendAnalyticEvent_(M,J,l)},this.onDialogClose_.bind(this),R,Z);
return O.promise},
openFixFlowDialog:function(M,z,J,R){M=M.replace(/-/g,"+").replace(/_/g,"/");_.Jx(_.i7).openFixFlowDialog(M,z,J,R)},
onDialogClose_:function(){_.S9(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(M,z,J){_.Pv(M,"yt-commerce-action-init-done");z&&_.kQ(this.hostElement,[z,{backend_analytics:J}])}}],
_.UQ.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(M,z){M=this.get("data.nativeFlowEndpoint",z);z=this.get("data.fallbackEndpoint",z);M?_.kQ(this.hostElement,[M]):z&&_.Pv(this.hostElement,"yt-navigate",{endpoint:z})}}],
i2l.YtCancelRecurrenceBehavior,b2i.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var M=this;Zrd(this,function(z,J,R){return M.handleYPCEndpoint(z,J,R)});
this.ypcRegisterActionMapJobId_=_.x4(_.no,function(){M.registerActionMap(M.buyFlowActionMap_)})},
detached:function(){var M=this;_.no.cancelJob(this.ypcRegisterActionMapJobId_);_.x4(_.no,function(){M.unregisterActionMap(M.buyFlowActionMap_)})},
handleYPCEndpoint:function(M,z,J){var R=z.ypcGetCartEndpoint;if(R){_.nY("commerce_transaction");var D=R.gtmId;D&&_.Ha(D);(R=R.gtmData)&&_.ca(R)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",z)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(M,z),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",z)!=null?(this.handleYPCFixInstrumentEndpoint_(M,z),!0):z.ypcPauseSubscriptionCommand?(Mhv(this.hostElement,M,z,J),
!0):z.ypcResumeSubscriptionCommand?(RUi(this.hostElement,M,z),!0):z.getPaymentInstrumentsParamsCommand?(C5l(this.hostElement,M,z),!0):z.ypcHandleTransactionEndpoint?(Ahu(this.hostElement,M,z,J),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(M,z){var J=this;_.hd("ttcr",void 0,"commerce_transaction");z=z.ypcGetCartEndpoint;var R=z.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,D=R.encryptedPurchaseParams,N=R.serializedTransactionFlowLoggingParams,Z=R.serializedPaymentsClientParams,B=this.createGetCartResponseFromParams_(R,z.offerParams,N);this.changeButtonState(M,!0);_.mi(this.openWalletDialog(M,D,R.ypcLogWalletAnalyticDataEndpoint,N,function(){J.changeButtonState(M,!1)},function(){J.changeButtonState(M,
!1)},Z).then(function(O){return J.handleBuyFlowCompleteCallback_(M,B,O)},function(){return J.handleOnLoadError(B)}).then(function(O){return void J.handlePostPurchaseSuccess_(M,B,O)},function(O){return void J.handlePostPurchaseError_(O)}),function(){J.changeButtonState(M,!1);
M instanceof Element&&_.Pv(M,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(M,z,J){var R=M.completeTransactionEndpoint,D=M.handleTransactionEndpoint;z={data:{offerParams:window.btoa(z),serializedTransactionFlowLoggingParams:J}};D?z.data.handleTransactionEndpoint=D:z.data.completeTransactionEndpoint=R;M.onCartDismissCommand&&(z.data.onCartDismissCommand=M.onCartDismissCommand);return z},
onGetCartServiceRequestCompleted_:function(M,z){var J=this,R=M.target;if(z&&z.data&&z.data.messageRenderer)_.aZ(this.hostElement),this.handleMessageRenderer_(z.data.messageRenderer),this.changeButtonState(R,!1);else{var D=this.get("data.encryptedPurchaseParams",z),N=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",z),Z=this.get("data.ypcLogWalletAnalyticDataEndpoint",z),B=this.get("data.serializedPaymentsClientParams",z),O=this.getLoggingParams_(z);if(O||D||N)M.stopPropagation(),_.hd("ttcr",
void 0,"commerce_transaction"),D||_.aZ(this.hostElement),this.changeButtonState(R,!1),N?_.S9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.HW("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:N}}},this]):D&&(this.changeButtonState(R,!0),M=null,M=this.openWalletDialog(R,D,Z,O,function(){_.aZ(J.hostElement);J.changeButtonState(R,!1)},function(){_.aZ(J.hostElement);
J.changeButtonState(R,!1)},B),_.mi(M.then(function(X){return J.handleBuyFlowCompleteCallback_(R,z,X)},function(){return J.handleOnLoadError(z)}).then(function(X){return J.handlePostPurchaseSuccess_(R,z,X)},function(X){return J.handlePostPurchaseError_(X)}),function(){J.changeButtonState(R,!1);
_.Pv(R,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(M,z){z&&z.endpoint&&z.endpoint.ypcGetCartEndpoint&&!z.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)&&_.Bv(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)],M.target),_.WX(this.hostElement),this.changeButtonState(M.target,!0))},
onServiceRequestError_:function(M,z){if(z&&z.params&&z.params.length){z=_.S(z.params);for(var J=z.next();!J.done;J=z.next())if((J=J.value)&&J.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",J.ypcGetCartEndpoint)&&_.Bv(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",J.ypcGetCartEndpoint)],M.target);_.aZ(this.hostElement);this.changeButtonState(M.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(M,z,J){var R=J.integratorData;return R==null||R===""||J.error!=null?(R=this.getLoggingParams_(z),String(J.error)==="-1"?(z.data.onCartDismissCommand&&_.Bv(this.hostElement,[z.data.onCartDismissCommand],M),_.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R,!0))):_.gv(new Gv("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R))):z.data.handleTransactionEndpoint?ieN(this.hostElement,z.data.handleTransactionEndpoint,{payments_payload:R,funds_guarantee_callback_client_data:J.integratorClientCallbackData}):
this.completeTransaction(z,J)},
handlePostPurchaseSuccess_:function(M,z,J){z=J.data;var R=!1,D,N;if(z&&((D=z.command)==null?0:(N=D.commandExecutorCommand)==null?0:N.commands)){var Z,B;D=(Z=z.command)==null?void 0:(B=Z.commandExecutorCommand)==null?void 0:B.commands;for(Z=0;Z<D.length;Z++)if(_.G(D[Z],_.oKB)){R=!0;break}}R||(z&&z.gtmDatas&&z.gtmDatas.length?_.ca(z.gtmDatas[0]):_.ca('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));J.data&&J.data.actions&&(z=jud(J.data.actions),J=pUu(J.data.actions),z.length&&
_.kQ(this.hostElement,z),J.length&&_.Bv(this.hostElement,J,M))},
handlePostPurchaseError_:function(M){M&&M.payload&&M.payload.isUserDismiss||_.nc(Error("Dl"))},
handleOnLoadError:function(M){M=this.getLoggingParams_(M);return _.gv(new Gv("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M))},
getLoggingParams_:function(M){return this.get("data.serializedTransactionFlowLoggingParams",M)},
handleMessageRenderer_:function(M){var z=_.nh(M,"renderer"),J=_.HW("openPopupConfig");z==="confirmDialogRenderer"&&J&&_.S9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:J.popupTypeMap[z],popup:M}},this])},
handleYPCFixInstrumentEndpoint_:function(M,z){var J=this,R=z.ypcFixInstrumentEndpoint;z=R.encryptedFixInstrumentParameters;this.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(M,!0);this.openFixFlowDialog(z,function(D,N){J.onFixFlowCompleteCallback_(R,D,N)},function(){return J.changeButtonState(M,!1)},function(){J.changeButtonState(M,!1);
J.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(M,z,J){var R=_.qH("payments.business.integration.scenario.FixInstrument");if(z==R.IntegratorCallbackType.ON_COMPLETE){z="FIX_FOP_EVENT_TYPE_CANCEL";var D=null;J.error!=null?J.error!=R.OnCompleteCallbackError.USER_CANCELLED&&(_.Bv(this.hostElement,[M.errorAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_FAILURE",D="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Bv(this.hostElement,[M.successAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_SUCCESS");_.Bv(this.hostElement,[M.onFinishAction],
this.hostElement);this.logFixFopEvent_(M,z,D)}},
logFixFopEvent_:function(M,z,J){(M=M.serializedFixFopLoggingParams)?(z={eventType:z,serializedFixFopLoggingParams:M},J!=null&&(z.errorType=J),_.gP("fixFopFlow",z),_.sB()):_.nc(Error("El"))},
changeButtonState:function(M,z){_.U("enable_ypc_spinners")&&M&&(M.is==="yt-button-renderer"||M.is==="ytd-button-renderer")&&(M.disabled=z)}}];var MAw=function(M){this.JSC$32201_clientRoot=M;this.feedbackCollectorActionMap={"yt-help-dialog-requested":N4l,"yt-feedback-dialog-requested":D7N,"yt-signal-action-help":PPs,"yt-signal-action-send-feedback":SNw,"yt-send-feedback-action":kLv,"yt-user-feedback-endpoint":B4m};_.EB(_.VA.getInstance(),this.feedbackCollectorActionMap,this.JSC$32201_clientRoot)},zkm;var JYc=function(M){this.JSC$32206_clientRoot=M;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Onw.bind(null,this.JSC$32206_clientRoot),"yt-signal-action-delete-all-downloads":Ivl,"yt-signal-action-delete-download":onl,"yt-signal-action-delete-playlist-download":lv5,"yt-signal-action-install-pwa":wSm,"yt-signal-action-refresh-downloads":vnw,"yt-offline-video-endpoint":thw,"yt-offline-playlist-endpoint":pSd,"yt-update-local-app-setting-command":YNt,"yt-offline-orchestration-action-command":gnt,
"yt-signal-action-undo-delete-download":Ql5,"yt-local-watch-history-command":hUN};_.EB(_.VA.getInstance(),this.downloadManagerActionMap,this.JSC$32206_clientRoot);_.nX.instance=new _.nX},Rkt;var qq=function(){var M=_.g.apply(this,arguments)||this;M.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};M.remoteApi_=null;return M};
_.w(qq,_.g);_.P=qq.prototype;
_.P.ready=function(){_.U("polymer_enable_mdx")&&(euG({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.U("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.U("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.U("enable_cast_short_lived_lounge_token")}),_.SI("yt-remote-connection-change",this.handleConnectionChange_,this),_.SI("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=t0d())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.P.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.P.handleConnectionChange_=function(M){(this.mdxConnected=M)?(M=vk5(),!M&&BHl()&&Ods()&&(M={key:"cast-selector-receiver",name:Ods()}),M=M.name):M=null;this.receiverName=M;_.bv(this.remoteApi_);(this.remoteApi_=t0d())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.P.handleReceiverAvailabilityChange_=function(){var M=Umw();BHl()&&_.UE("yt-remote-cast-available")&&M.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=M.length>0};
_.P.handleRemoteQueueChange_=function(){var M=this.currentVideoId_,z=this.currentListId_,J=jr(this.remoteApi_);this.currentVideoId_=J.videoId;this.currentListId_=J.listId;this.currentVideoId_&&_.S9(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.U("polymer_enable_mdx_queue")?this.currentListId_:null,M,z])};
_.P.handleAddToQueueAction_=function(M){M=_.G(M,bZ5);this.remoteApi_&&(M.videoId?this.remoteApi_.addVideo(M.videoId):M.playlistId&&this.remoteApi_.addPlaylist(M.playlistId))};
_.P.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.P.handleInsertInQueueAction_=function(M){M=_.G(M,rEd);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$19667_insertVideo(M.videoId)};
_.P.handleRemoveFromQueueAction_=function(M){M=_.G(M,Muv);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$19667_removeVideo(M.videoId)};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y(),_.W("design:type",Object)],qq.prototype,"appId",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qq.prototype,"mdxConnected",void 0);_.u([_.Y(),_.W("design:type",Boolean)],qq.prototype,"receiverAvailable",void 0);_.u([_.Y(),_.W("design:type",Object)],qq.prototype,"receiverName",void 0);_.u([_.Y(),_.W("design:type",Object)],qq.prototype,"currentVideoId_",void 0);
_.u([_.Y(),_.W("design:type",Object)],qq.prototype,"currentListId_",void 0);_.u([_.cU({is:"yt-mdx-manager",disableElementRegistration:!0})],qq);_.d(qq,"yt-mdx-manager",void 0,{mode:2});var D1w;var Ntw;var Wi=function(){var M=_.g.apply(this,arguments)||this;M.APP_IDS={ytr:3,ytm:5};M.JSC$20886_timeoutId_=0;M.actionMap={"yt-open-create-family-dialog":"open"};return M};
_.w(Wi,_.g);_.P=Wi.prototype;_.P.created=function(){j9v(2200)};
_.P.detached=function(){this.observer_&&this.observer_.disconnect()};
_.P.open=function(M,z){var J=this,R=M.serializedYpcFamilyCreateLoggingParams;this.JSC$20886_timeoutId_=setTimeout(this.abort_.bind(this,M.postFlowErrorEndpoint,R),3E4);z&&(this.onReadyCallback_=z);var D=_.SN(this.hostElement).querySelector("#unicorn-iframe");R&&R&&Sfu("ypcFamilyCreateFlowStarted",R);_.lyo("family_creation",function(){var N=_.qH("gapi.family_creation.render");_.qH("gapi.config.update")("iframes/family_creation/url",J.getFamilyCreationUrlWithUnicornParams_());var Z=3;M.appId&&M.appId in
J.APP_IDS&&(Z=J.APP_IDS[M.appId]);Z={authUser:_.HW("SESSION_INDEX")||0,clientId:Z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.HW("HL"),initialflow:[4,5,6,7],m:J.isMobile?1:0,onFlowComplete:J.onUnicornFlowComplete_.bind(J,M.postFlowSuccessEndpoint,R),onError:J.onUnicornFlowError_.bind(J,M.postFlowErrorEndpoint,R),onReady:J.onUnicornFlowReady_.bind(J,M.referencePcidParams)};N(D,Z)})};
_.P.close=function(){_.SN(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.P.onUnicornFlowComplete_=function(M,z){this.close();z&&z&&Sfu("ypcFamilyCreateFlowSucceeded",z);_.Pv(this.hostElement,"yt-navigate",{endpoint:M})};
_.P.onUnicornFlowError_=function(M,z){this.close();z&&Sfu("ypcFamilyCreateFlowCancelled",z);_.Pv(this.hostElement,"yt-navigate",{endpoint:M})};
_.P.onUnicornFlowReady_=function(M){var z=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();M&&_.qH("gapi.family_creation.setConfig")(0,M);this.observer_=new MutationObserver(function(){_.SN(z.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.SN(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.SN(this.hostElement).querySelector("#dialog").open()};
_.P.getFamilyCreationUrlWithUnicornParams_=function(){return _.HW("YTR_FAMILY_CREATION_URL")};
_.P.getCurrentUrl_=function(){return document.location.href};
_.P.abort_=function(M,z){this.clearTimeout_();this.onUnicornFlowError_(M,z)};
_.P.clearTimeout_=function(){clearTimeout(this.JSC$20886_timeoutId_)};
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],Wi.prototype,"isMobile",void 0);_.u([_.Y(),_.W("design:type",Object)],Wi.prototype,"onReadyCallback_",void 0);_.u([_.Y(),_.W("design:type",Object)],Wi.prototype,"observer_",void 0);_.u([_.cU({is:"yt-create-family-dialog",disableElementRegistration:!0})],Wi);
_.d(Wi,"yt-create-family-dialog",function(){if(Ntw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);var z=M.content,J=z.insertBefore;D1w===void 0&&(D1w=document.createElement("template"));var R=D1w;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Ntw=M}M=Ntw;return M},{mode:2});var Pxd;var Sod;var ae=function(){var M=_.g.apply(this,arguments)||this;M.STEP=1;M.BLOCK_ON=80;M.MIN_PROGESS=0;M.MAX_PROGESS=100;return M};
_.w(ae,_.g);_.P=ae.prototype;_.P.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.P.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.JF().addProvider({provide:Mbm,useValue:this})};
_.P.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.P.finish=function(){var M=this;this.progress=this.MAX_PROGESS;yMd(function(){M.progress==M.MAX_PROGESS&&(M.hostElement.hidden=!0)})};
_.P.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.rX.Object.defineProperties(ae.prototype,{progress:{configurable:!0,enumerable:!0,set:function(M){this.progress_=M;var z="scaleX("+M/this.MAX_PROGESS+")",J=_.SN(this.hostElement).querySelector("#progress").style;J.transform=z;J.webkitTransform=z;this.hostElement.setAttribute("aria-valuenow",String(M))},
get:function(){return this.progress_}}});
_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],ae.prototype,"ytComponentBehavior",void 0);_.u([_.cU({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ae);
_.d(ae,"yt-page-navigation-progress",function(){if(Sod===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');M.content.insertBefore(_.a().content.cloneNode(!0),
M.content.firstChild);var z=M.content,J=z.insertBefore;Pxd===void 0&&(Pxd=document.createElement("template"));var R=Pxd;J.call(z,R.content.cloneNode(!0),M.content.firstChild);Sod=M}M=Sod;return M},{mode:2});var ZPu={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"},kYu={"font-size":"12px","font-style":"italic"},BtN={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.KNw=function(){return _.k(function(M){_.UI(M)})};var OPG=_.Mf(function(M){var z=function(){return M.data().subtext},J={};
return _.T("snackbar-view-model",{class:_.Qe("snackbarViewModelHost",M.className)},_.T("div",{class:_.Qe("snackbarViewModelEngagementBarWrapper",M.className)},_.T(_.I,{cond:function(){return M.data().image},
then:function(R){return _.T(_.rv,{data:R,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.T(_.I,{cond:function(){return M.data().imageContent},
then:function(){return _.T("div",{class:"snackbarViewModelAvatarContainer"},_.T(_.t_,{data:function(){return M.data().imageContent}},{decoratedAvatarViewModel:_.Km}))}}),_.T("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.T("div",{class:_.Qe((J.snackbarViewModelTitle=!0,J.snackbarViewModelTitleWithSubtext=z,J))},_.T(_.m3,{text:function(){return M.data().text}})),_.T(_.I,{cond:z,
then:function(){return _.T("div",{class:"snackbarViewModelSubtext"},_.T(_.m3,{text:function(){return z()}}))}})),_.T(_.I,{cond:function(){return M.data().buttons},
then:function(){return _.T("div",{class:"snackbarViewModelButtonClassWrapper"},_.T(_.t_,{data:function(){return M.data().buttons}},{buttonViewModel:function(R){return _.T(_.lT,{data:R.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:M.target})}}))}})))},"Ch");_.N7(_.Mf(function(){function M(q,b,V){x(q);y(V);Q("in");l(!0);z(q,b);Z=setTimeout(function(){J()},b)}
function z(q,b){var V,E=(V=q.text)==null?void 0:V.content;q=_.dZ(q.rendererContext);E&&(b={label:E,command:q,durationMs:b},_.JF().resolve(_.g1).enqueue(b))}
function J(q){Q("out");q&&clearTimeout(Z)}
function R(){J(!0)}
function D(q){if(q){var b=q.snackbarViewModel,V=q.durationMs,E=q.target;V||(V=3E3);b&&(q=_.JF().resolve(_.zw(_.jk)))&&q.enqueue({isOpened:X,open:function(){M(b,V,E)},
close:J},0)}}
var N=_.iW("snackbar-container"),Z=void 0,B=_.S(_.kE(!1,void 0,"jJ4tBf")),O=B.next().value;B=B.next().value;var X=O,l=B;O=_.S(_.kE("out",void 0,"M6Rbpb"));var e=O.next().value,Q=O.next().value;O=_.S(_.kE(void 0,void 0,"aFswib"));var v=O.next().value,x=O.next().value;O=_.S(_.kE(void 0,void 0,"mlWWhb"));var m=O.next().value,y=O.next().value,H=_.ol(function(){if(e()==="out"){l(!1);x(void 0);y(void 0);var q=_.JF().resolve(_.zw(_.jk));q&&d9w(q,0)}});
_.mF(function(){var q=_.JF().resolve(_.zw(_.pYt));q&&(q.showSnackbarFn=D,q.closeSnackbarFn=R)});
return _.T("snackbar-container",{class:"ytSnackbarContainerHost",el:N},_.T(_.I,{cond:function(){return X()&&!!v()},
then:function(){var q={};return _.T("div",{class:_.Qe("ytSnackbarContainerSnackbarContainer",(q.ytSnackbarContainerMobile=!1,q.ytSnackbarContainerPivotBar=function(){var b;return!((b=_.JF().resolve(_.zw(_.Fwm)))==null||!b())},q.ytSnackbarContainerOpened=function(){return X()&&e()==="in"},q.ytSnackbarContainerClosed=function(){return X()&&e()==="out"},q)),
"on:animationend":H},_.T(OPG,{data:function(){return v()},
target:function(){return m()}}))}}))},"Dh"),"snackbar-container");_.N7(_.ncV,"yt-tooltip");_.N7(_.Mf(function(){var M=_.d4(_.Pzw);return _.T("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var z;return(z=M())==null?void 0:z.announcement})},"Eh"),"yt-ephemeral-actions");var R$v=new Map;var uKi=function(M,z){var J=this;this.handleError=M;this.logEventInternal=z;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){J.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
uKi.prototype.logError=function(M){this.handleError(M)};
uKi.prototype.logEvent=function(M,z){switch(M){case "IDB_DATA_CORRUPTED":_.U("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":_.U("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":Tti(this,z);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":M=Object.assign({},z,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",M)}};
var Tti=function(M,z){_.h7.getInstance().estimate().then(function(J){J=Object.assign({},z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:NZi(J==null?void 0:J.usage),deviceStorageQuotaMbytes:NZi(J==null?void 0:J.quota)});M.logEventInternal("idbQuotaExceeded",J)})};var I6t=_.Mf(function(M){var z=_.AL("yt-draggable"),J=M.onDrag,R=M.onDragStart,D=M.onDragEnd,N=_.rH(M,{allowClicks:!1,dragThreshold:5}),Z=N.dragThreshold,B=N.allowClicks;M=N.children;N=N.className;var O=void 0,X=void 0,l=new _.nO(0,0),e=!1;_.mF(function(){O=new _.qD(z.value);X=new _.Ju(v);Q(O,X);if(B()){_.RXg(O,Z());var m;(m=z.value)==null||m.addEventListener("click",x,{capture:!0})}_.pq(function(){var y;(y=O)==null||y.dispose();if(B()){var H;(H=z.value)==null||H.removeEventListener("click",x,{capture:!0})}})});
var Q=function(m,y){_.YS(m,"earlycancel",function(){B()&&(e=!1)});
_.YS(m,"start",function(H){R==null||R(H);H.defaultPrevented||B()&&(e=!0)});
_.YS(m,"beforedrag",function(H){O&&X&&(H.preventDefault(),l=new _.nO(H.clientX-O.startX,H.clientY-O.startY),X.start())});
_.YS(m,"end",function(){y.stop();D==null||D();l=new _.nO(0,0)})},v=function(){l&&J(l)},x=function(m){e&&(e=!1,m.stopPropagation(),m.preventDefault())};
return _.T("yt-draggable",{el:z,class:_.Qe("ytDraggableComponentHost",N)},M)},"Fh");var ovw=_.Mf(function(M){var z=_.S(_.kE(0,void 0,"CvAwBd")),J=z.next().value,R=z.next().value;z=function(D){var N={},Z={};return _.T(I6t,{className:_.Qe("ytdMiniplayerComponentResizer",(N.ytdMiniplayerComponentResizerDisabled=function(){return D===M.horizontalAlignment()||D===M.verticalAlignment()},N.ytdMiniplayerComponentResizerNorth=D==="north",N.ytdMiniplayerComponentResizerEast=D==="east",N.ytdMiniplayerComponentResizerSouth=D==="south",N.ytdMiniplayerComponentResizerWest=D==="west",N)),
onDragStart:function(){R(M.currentMiniplayerSize());if(M.onResizeStart)M.onResizeStart()},
onDrag:function(B){D!=="north"&&D!=="west"||B.scale(-1);var O;B=(O=D==="north"||D==="south")?B.y:B.x;var X=M.currentAspectRatio();O&&X>=1?B*=X:!O&&X<1&&(B/=X);O=B;M.onResize(J()+O)}},_.T("div",{class:_.Qe("ytdMiniplayerComponentResizerCorner",(Z.ytdMiniplayerComponentResizerNorthCorner=D==="north",Z.ytdMiniplayerComponentResizerEastCorner=D==="east",Z.ytdMiniplayerComponentResizerSouthCorner=D==="south",Z.ytdMiniplayerComponentResizerWestCorner=D==="west",Z))}))};
return _.T("div",{class:"ytdMiniplayerComponentResizers"},z("north"),z("east"),z("south"),z("west"))},"Gh");var XVs=16/9;_.N7(_.Mf(function(){var M=_.AL("ytd-miniplayer"),z=_.S(_.kE(new _.eU(NaN,NaN),void 0,"GNXZTe")),J=z.next().value,R=z.next().value;z=_.S(_.kE(!1,void 0,"XqI9xc"));var D=z.next().value,N=z.next().value;z=_.S(_.kE(!1,void 0,"k3iLGe"));var Z=z.next().value,B=z.next().value;z=_.S(_.kE(!1,void 0,"ApjQ9b"));var O=z.next().value,X=z.next().value;z=_.S(_.kE(!1,void 0,"PzlhGe"));var l=z.next().value,e=z.next().value;z=_.S(_.kE(!1,void 0,"pm6fl"));var Q=z.next().value,v=z.next().value;z=_.S(_.kE(!1,void 0,
"xQrL1e"));var x=z.next().value,m=z.next().value;z=_.S(_.kE(XVs,void 0,"NcrWZb"));var y=z.next().value,H=z.next().value,q=_.S(_.kE(!1,void 0,"e5rxBc"));z=q.next().value;var b=q.next().value;q=_.S(_.kE(!1,void 0,"uZtCde"));var V=q.next().value,E=q.next().value;q=_.S(_.kE(void 0,void 0,"wKFvEe"));var L=q.next().value,z8=q.next().value;q=_.S(_.kE(_.HW("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var O8=q.next().value,I3=q.next().value;q=_.S(_.kE("south",void 0,"QXcssb"));var vY=q.next().value,
te=q.next().value;q=_.S(_.kE(400,void 0,"Fr8gSb"));var wR=q.next().value,qb=q.next().value,cY=_.JF().resolve(_.q5).miniplayerPropSignalMap[0],Pu=cY.data,yV=cY.externalPlaylistData;q=cY.toastData;var Ik=cY.playabilityStatus,rR=cY.isReadyToResume,ea=cY.isDisabled,ok=cY.watchWhile,s$=cY.playerVe,pw=cY.expandVe,iJ=cY.closeVe,Nb=cY.readyToResumeVe,MB=cY.readyToResumeCloseVe,vu=cY.repositionVe,Tc=cY.resizeVe;cY=_.S(_.eh(rR));var Gt=cY.next().value,zc=cY.next().value,My=!1,MN=!1,ZV;_.mF(function(){R(_.t9());
M.value.addEventListener("animationend",function(qB){qB.target===M.value&&(v(!1),m(!1))});
Ofw(M.value)});
_.Lc("yt-window-resized",function(qB){qB&&R(qB)});
var Lv=function(){ZV&&H(ZV.getVideoAspectRatio())},em=function(){if(ZV){var qB=ZV.getPlayerState()===1;
Gt()&&qB&&zc(!1)}},FQ=function(){var qB=pw();
if(qB){var Ht=_.y5(3);Ht&&_.fY(Ht,qB)}},Yp=function(){var qB=iJ(),Ht=MB();
qB&&_.fY(_.y5(3),qB);rR()&&Ht&&_.fY(_.y5(3),Ht)};
_.Lc("yt-activate-miniplayer",function(qB){var Ht;return _.k(function(Vu){if(Vu.nextAddress==1)return D()?Vu.return():Vu.yield((Ht=_.JF().resolve(_.q5).getPlayerElement())==null?void 0:Ht.getPlayerPromise(),2);ZV=Vu.yieldResult;if(!ZV)return Vu.return();!V()&&_.U("kevlar_watch_while_v2")&&(te(qB&&!_.U("kevlar_watch_while_bottom_align")?"north":"south"),I3(_.HW("HTML_DIR")==="rtl"?"west":"east"));var Rr=ZV;Rr.addEventListener("onVideoDataChange",Lv);Rr.addEventListener("onStateChange",em);Rr.addEventListener("onExpandMiniplayer",
FQ);Rr.addEventListener("onCloseMiniplayer",Yp);H(ZV.getVideoAspectRatio());N(!0);BZl()||v(!0);_.UI(Vu)})});
_.Lc("yt-deactivate-miniplayer",function(qB){return _.k(function(Ht){if(!D())return Ht.return();N(!1);zc(!1);m(qB);e(!1);B(!1);if(ZV){var Vu=ZV;Vu.removeEventListener("onVideoDataChange",Lv);Vu.removeEventListener("onStateChange",em);Vu.removeEventListener("onExpandMiniplayer",FQ);Vu.removeEventListener("onCloseMiniplayer",Yp)}BZl()||v(!0);_.UI(Ht)})});
var Gc=function(){return!(ok()&&_.U("kevlar_watch_while_modern"))},By=function(){var qB;
return!((qB=yV())==null||!qB.contents)},Xl=function(){var qB=wR();
var Ht=J();Ht=Math.min(Math.min(Ht.width,Ht.height)-32,720);var Vu=y(),Rr=Gc(),NH=By()&&Z(),o$=Math.min(qB,Ht);qB=new _.eU(192,Rr?116:192);Vu=new _.eU(NH?XVs:Vu,1);o$=new _.eU(o$,Rr?o$-76:o$);o$=Vu.aspectRatio()>o$.aspectRatio()?o$.width/Vu.width:o$.height/Vu.height;Vu=Vu.scale(o$);qB.width<=Vu.width&&qB.height<=Vu.height||(qB=Vu.aspectRatio()<=qB.aspectRatio()?qB.width/Vu.width:qB.height/Vu.height,Vu.scale(qB),Vu.width=Math.min(Vu.width,Ht),Vu.height=Math.min(Vu.height,Ht));return new _.eU(Vu.width,
_.dy(192,Vu.height+Xnv(Rr,NH),720))},F3=function(){var qB=Xl(),Ht=Gc(),Vu=By()&&Z();
return new _.eU(qB.width,qB.height-Xnv(Ht,Vu))},UF=function(){var qB=function(Ht){Ht.target===M.value&&l()&&(e(!1),M.value.removeEventListener("transitionend",qB))};
BZl()||(M.value.addEventListener("transitionend",qB),e(!0));B(!Z())};
_.jP(function(){var qB=s$(),Ht=_.y5(3),Vu=_.hu(3);if(Ht&&Vu&&qB){_.qs(Ht,Vu,qB);Vu=vu();var Rr=Tc(),NH=pw(),o$=iJ(),wc=MB();NH&&o$&&wc&&(_.Wv(Ht,qB,[NH,o$,wc]),_.VC(Ht,[NH,o$]));Vu&&Rr&&_.Wv(Ht,qB,[Vu,Rr])}},"Snz6Ld");
_.jP(function(){var qB=Nb();if(qB){var Ht=_.y5(0),Vu=_.hu(0);Ht&&Vu&&(_.qs(Ht,Vu,qB),_.VC(Ht,[qB]))}},"X1FpHd");
cY={};return _.T("ytd-miniplayer",{el:M,class:_.Qe("ytdMiniplayerComponentHost",(cY.ytdMiniplayerComponentVisible=function(){return D()||Q()},cY.ytdMiniplayerComponentAnimatingSnap=O,cY.ytdMiniplayerComponentAnimatingPlaylistExpand=l,cY.ytdMiniplayerComponentAnimatingFade=Q,cY),function(){if(Q()){var qB=vY();
var Ht=D(),Vu=x();qB=Ht?qB==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Vu?qB==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":qB==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else qB="";return qB}),
style:_.UN({top:function(){return vY()==="north"?"16px":""},
right:function(){return O8()==="east"?"16px":""},
bottom:function(){return vY()==="south"?"16px":""},
left:function(){return O8()==="west"?"16px":""},
width:function(){return Xl().width+"px"},
height:function(){return Xl().height+"px"},
transform:function(){var qB=L();return qB?"translate("+qB.x+"px, "+qB.y+"px)":""}})},_.T("div",{class:"ytdMiniplayerComponentContent"},_.T(I6t,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(qB){var Ht=oCG(O8(),vY(),J(),Xl(),L()),Vu=F3();Math.abs(qB.clientY-(Ht.y+Vu.height))>15?(b(!0),qB=_.y5(3),Ht=vu(),My||(My=!0,qB&&Ht&&_.VC(qB,[Ht])),qB&&Ht&&_.fY(qB,Ht)):qB.preventDefault()},
onDrag:function(qB){z8(qB)},
onDragEnd:function(){var qB=TZu(oCG(O8(),vY(),J(),Xl(),L()),J(),Xl()),Ht=IU5(O8(),vY(),J(),Xl()),Vu=IU5(qB.horizontalAlignment,qB.verticalAlignment,J(),Xl());Vu=new _.nO(Vu.x-Ht.x,Vu.y-Ht.y);var Rr;Ht=Ht.y+(((Rr=L())==null?void 0:Rr.y)||0)+Xl().height/2;var NH=function(){O8()===qB.horizontalAlignment&&vY()===qB.verticalAlignment||E(!0);I3(qB.horizontalAlignment);te(qB.verticalAlignment);z8(void 0)},o$=function(wc){wc.target===M.value&&O()&&(X(!1),NH(),M.value.removeEventListener("transitionend",o$))};
b(!1);vY()==="south"&&Ht>J().height?(NH(),_.JF().resolve(_.q5).close()):(M.value.addEventListener("transitionend",o$),X(!0),z8(Vu))}},_.T(_.I,{cond:D,
then:function(){return _.T(_.KWm,{isDisabled:ea,playabilityStatus:Ik,size:F3})}}),_.T(_.I,{cond:Gc,
then:function(){return _.T(_.cGw,{isReadyToResume:Gt,data:Pu,expanded:Z,onExpandClick:UF,playlistData:yV})}}),_.T(_.I,{cond:z,
then:function(){return _.T("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.T(_.I,{cond:function(){return By()&&Z()||l()},
then:function(){return _.T(_.dRV,{className:"ytdMiniplayerComponentPlaylistPanel",data:yV,hideHeaderText:!0,withinMiniplayer:!0})}}),_.T("div",{class:"ytdMiniplayerComponentToast"},_.T(_.$yd,{toastData:q}))),_.T(ovw,{onResize:function(qB){qb(_.dy(192,qB,720))},
onResizeStart:function(){var qB=_.y5(3),Ht=Tc();MN||(MN=!0,qB&&Ht&&_.VC(qB,[Ht]));qB&&Ht&&_.fY(qB,Ht)},
currentAspectRatio:y,currentMiniplayerSize:wR,horizontalAlignment:O8,verticalAlignment:vY}))},"Hh"),"ytd-miniplayer",{});var VM=function(){var M=_.g.apply(this,arguments)||this;M.tabGesturesIsActive=!1;M.deprecateFullerscreenUi=_.U("web_watch_fullerscreen_deprecation_ui");M.hasDelegation=!1;M.darkerDarkTheme=_.U("web_darker_dark_theme");M.isFrostedGlassInitialized=!1;M.frostedGlassExp=_.U("web_frosted_glass");M.mastheadHiddenFocusWithinKillswitch=_.U("web_masthead_hidden_focus_within_killswitch");M.clientOnlyWizTooltipsEnabled=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");M.scrollAtTop=
!0;M.guideScrollTop=0;M.isTheaterModeSession=_.cW("START_IN_THEATER_MODE");M.iMaxTheaterMode=_.U("web_watch_imax_theater_mode");M.isFullWindowSession=_.cW("START_IN_FULL_WINDOW_MODE");M.hasCreateFamilyDialog=!1;M.mastheadHeight=56;M.networkStatusManager=new _.VS;M.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};M.dynamicActionMap={"yt-run-attestation-command":function(z){var J=_.xrv.instance,R=_.G(z,_.oiJ);return R?_.U("use_rta_manager_for_async")&&
pNw()?o8w(J,R,z.clickTrackingParams):IKG(J,R,z.clickTrackingParams):_.gv(Error("mi"))}};
M.isFrostedGlassDisabled=!1;M.isChannelOrPlaylistPage=!1;return M};
_.w(VM,_.g);_.P=VM.prototype;_.P.created=function(){var M=_.JF();_.U("kevlar_clear_duplicate_pref_cookie")&&_.x4(_.no,function(){var z=_.Qy.get("PREF");z&&!/f\d=/.test(z)&&(z=_.Sz("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=z?"PREF=null;domain="+z+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.U("gzip_gel_with_worker")&&_.m38();_.U("jspb_serialize_with_worker")&&C45();_.U("web_worker_availability_check")&&D6w();_.U("nwl_init_killswitch")||A1s().then(function(){_.no.addLowPriorityJob(efi)});
this.pageManagerAttachedPromise=_.Ln();this.ytdAppBehavior.loadDepsPromise=_.Ys([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.A_(this.onThrottledScroll,200,this);_.U("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);qFN();Wzc=!!_.qH("ytappsettings.initialized");mr=_.qH("ytappsettings.previousValue");tnl=_.qH("ytappsettings.previousSnapshotTime");Wzc||(Wzc=!0,jTd());x3c();tNu();_.yU("DEFERRED_DETACH",
_.U("kevlar_tuner_should_defer_detach"));_.yU("REUSE_COMPONENTS",!0);_.yU("STAMPER_STABLE_LIST",!0);_.yU("SCHEDULED_LAZY_LIST",!0);_.yU("openPopupConfig",X8G);_.yU("useClickHandler",!0);_.U("kevlar_shell_cleanup")&&_.no.addLowPriorityJob(nls.bind(this,_.R3.caches));_.cW("IS_SHELL_LOAD")&&_.sf({shellStartupDurationMs:Math.round((0,_.zU)()-_.pY())});WNm(this.networkStatusManager);_.U("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Hnl(ZPu)),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!",
Hnl(kYu)),console.log("%cVisit http://go/join-youtube-web to apply today.",Hnl(BtN)));_.hVv(M.resolve(_.YM),1E3)};
_.P.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var M=SKv();M&&!_.U("external_fullscreen_killswitch")&&document.addEventListener(M,this.setFullscreen.bind(this));(M=window.matchMedia("(prefers-color-scheme: dark)"))&&M.addEventListener&&M.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.P.attached=function(){var M=this;_.Eb().processSignal("ci");_.U("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Fu0?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Ih(_.c$p(),"SUCCESS");this.updateIconSet();_.DL(this.guideInnerContent,!1);_.sE().initVisibilityObserver();this.guideService.guideElement=this.guide;var z=document.createElement("ytd-miniplayer"),J=_.SN(this.hostElement).querySelector("#content");
_.SN(this.hostElement).insertBefore(z,J);_.Eb().processSignal("ma");_.JF().resolve(_.q5).init(z);_.cW("IS_SHELL_LOAD")&&(J=document.createElement("ytd-network-status-banner"),_.SN(this.hostElement).insertBefore(J,z));_.U("kevlar_right_click_on_lockups")&&_.LH._onCaptureClick&&document.addEventListener("contextmenu",_.LH._onCaptureClick.bind(_.LH),!0);var R=function(){var D=_.Su("yt-page-navigation-progress");_.SN(M.hostElement).appendChild(D)};
setTimeout(function(){_.Eb().parkOrScheduleJob(R,0,"eocs",16)},0);
_.U("service_worker_push_enabled")&&_.x4(_.no,P3s);_.EB(_.VA.getInstance(),this.dynamicActionMap,this.hostElement);_.Pv(this.hostElement,"ytd-app-attached");_.Eb().processSignal("aa");xIt(this.hostElement);_.b9("gapi.load",_.lyo);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.x4(_.no,
function(){var D=document.createElement("ytd-video-preview");_.SN(_.SN(M.hostElement).querySelector("#video-preview")).appendChild(D)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.x4(_.no,function(){$7N();M.registerWithViewTransitionManager()});
if(_.sA()&&this.isAppDarkTheme()!==_.mQ())this.onDarkModeToggledAction();else z=_.gB()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==z&&(_.U("enable_dark_theme_only_on_shorts")?_.EA(_.U("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Lh(window.location.href,{theme:"dark"})):_.yA(new _.xN("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(UAl=new QSw(this.hostElement)),Rkt=new JYc(this.hostElement),zkm=new MAw(this.hostElement),KYw=new dAl(this.hostElement)};
_.P.getThemeSettingsToLog=function(){var M=_.gB()==="USER_INTERFACE_THEME_DARK";M=_.sA()?_.mQ()?"os-dark":"os-light":M?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:M,cookiesEnabled:_.vJ()}};
_.P.detached=function(){_.Ns(this.guideInnerContent);_.no.cancelJob(pg);pg=0;_.no.cancelJob(YJ);YJ=0;_.WK8(wsi);wsi.length=0;UIt=_.T0p=null;_.sE().dispose();_.U("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.fc(_.VA.getInstance(),UAl.playlistHandlerActionMap,UAl.JSC$31902_clientRoot);_.fc(_.VA.getInstance(),Rkt.downloadManagerActionMap,Rkt.JSC$32206_clientRoot);_.fc(_.VA.getInstance(),zkm.feedbackCollectorActionMap,zkm.JSC$32201_clientRoot);
for(var M=_.S(KYw.eventListeners),z=M.next();!z.done;z=M.next()){var J=_.S(z.value);z=J.next().value;J=J.next().value;J=_.S(J);for(var R=J.next();!R.done;R=J.next()){var D=_.S(R.value);R=D.next().value;D=D.next().value;z.removeEventListener(R,D)}}_.fc(_.VA.getInstance(),KYw.autonavPauseActionMap,KYw.JSC$19848_clientRoot)};
_.P.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.vv().getFlag(186)};
_.P.computeIsInlinePreviewEnabled=function(M,z,J){return!J&&_.mCN({miniplayerIsActive:M,miniplayerPlaybackState:z})};
_.P.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_FROSTED_GLASS_MODE",payload:!_.U("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.P.computeIsFrostedGlassDisabled=function(M,z,J,R){return M||z||J||R&&_.U("web_frosted_glass_disable_watch")};
_.P.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.U("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.P.computeIsHomePage=function(M,z){if(!M||z==null||!z.endpoint)return!1;var J;return((J=_.G(z.endpoint,_.Gh))==null?void 0:J.browseId)==="FEwhat_to_watch"};
_.P.updateIsChannelOrPlaylistPage=function(){if(_.U("web_frosted_glass")){var M,z,J=(z=(M=_.JF().resolve(_.zw(_.M6)))==null?void 0:M.getCurrentPage())==null?void 0:z.pageSubtype;this.isChannelOrPlaylistPage=J?["channel","channels","playlist"].includes(J):!1}};
_.P.scheduleFrostedGlassInitialization=function(){var M=this;_.U("web_frosted_glass")&&_.Eb().parkOrScheduleJob(function(){M.isFrostedGlassInitialized=!0},0,_.r1(["eocs",
"cr"]),300)};
_.P.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.kM2(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Nv({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.P.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(hcc(!0))};
_.P.onYtSignalActionRequestPersistentStorage=function(){if(!_.U("request_persistent_storage_killswitch")){var M=_.JF().resolve(_.lsw);M.cachedPersistStatePromise||(M.cachedPersistStatePromise=L3w())}};
_.P.handleYtChannelCreationFormEndpoints=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.P.handleShowEngagementPanelEndpoint=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.P.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(hcc(!1))};
_.P.initIconDefs=function(M,z){var J=document.createElement("iron-iconset-svg");J.name=M;M=document.createElementNS("http://www.w3.org/2000/svg","svg");J.appendChild(M);M.appendChild(z);document.body.appendChild(J);return J};
_.P.onWindowResized=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var M=_.vbS.getInstance();M.documentWidth_=document.body.clientWidth;uam(M)};
_.P.onWindowScrolled=function(){var M=_.JF().resolve(_.M6).getCurrentPage();if(M!=null&&M.getScrollTop){var z=this.ytdReduxBehavior,J=z.dispatch;M=M.getScrollTop()<=0;J.call(z,_.Nv({type:"SET_SCROLL_AT_TOP",payload:M}))}};
_.P.guideIsVisibleButNotPersistentSelectorChanged=function(){var M=_.JF().resolve(_.M6).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=M.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
M.setScrollTop(this.guideScrollTop));_.ZL(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.P.getCurrentPageScrollableElementType=function(){var M=_.JF().resolve(_.M6).getCurrentPage();if(M&&M.getPageScrollingElement())return M.getPageScrollingElement().nodeName};
_.P.observeGuideVisibility=function(){var M=_.vbS.getInstance(),z=this.miniGuideVisible;M.guidePersistentAndVisible_=this.guidePersistentAndVisible;M.miniGuideVisible_=z;uam(M)};
_.P.handleEduDismissAction=function(M){M&&M.eduDismissAction&&(_.S9(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Xot.getInstance(),_.Pa.set(M.eduDismissAction.key+"-dismissed",!0))};
_.P.handleEduImpressionAction=function(M){if(M&&M.eduImpressionAction){var z=_.Xot.getInstance();M=M.eduImpressionAction.key;z.JSC$12925_eduDisplayedThisLoad_[_.obJ[M].setKey||M]=!0;_.Pa.set(M+"-impression",parseInt(_.Pa.get(M+"-impression")||0,10)+1)}};
_.P.onYtSignalActionConfirmMentionsEdu=function(){_.S9(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.k5.getInstance();_.Z1.set("edu-dismissed",!0)};
_.P.onYtSignalActionRecordMentionsEduImpression=function(){_.k5.getInstance();var M=_.Z1.set,z=parseInt(_.Z1.get("edu-impressions"),10);M.call(_.Z1,"edu-impressions",(isFinite(z)?z:0)+1)};
_.P.onYtPageManagerAttached=function(M){var z;((z=_.b7(M))==null?void 0:z.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.P.onInvokeInstrumentManagerAction=function(M,z){k_i(z,M)};
_.P.updateIconSet=function(){var M=this.hostElement.querySelector("#masthead");if(M){var z=_.ZE(M),J=z.querySelector("g#yt-logo-updated");J&&(M=document.createElementNS("http://www.w3.org/2000/svg","defs"),M.appendChild(J.cloneNode(!0)),(z=z.querySelector("g#yt-logo-red-updated"))&&M.appendChild(z.cloneNode(!0)),this.initIconDefs("yt-logos-ext",M))}};
_.P.updateMastheadData=function(){var M=this,z,J,R,D,N;return _.k(function(Z){if(Z.nextAddress==1){z=M.data;J=M.hostElement.querySelector("#masthead");if(!J)return Z.return();_.C4(M,function(){J.data=M.topbarData});
if(!M.get("response.topbar",z)||M.get("response.topbar.responseContext.maxAgeSeconds",z)===0)return Z.jumpTo(0);if(R=_.JF().resolve(_.Z4))return Z.yield(R(),6);D=_.JF().resolve(_.lA);return Z.yield(D.put("service:topbar:fallback",new _.e0({innertubeResponse:M.get("response.topbar",z)})),0)}return(N=Z.yieldResult)?Z.yield(N.put("service:topbar:fallback",new _.e0({innertubeResponse:M.get("response.topbar",z)})),0):Z.jumpTo(0)})};
_.P.computeTopbarData=function(M){if(!M)return null;var z;return this.isShortsPage&&this.topbarData&&!_.G((z=M.response)==null?void 0:z.topbar,K_G)?this.topbarData:M.response&&"topbar"in M.response?_.G(M.response.topbar,K_G)||null:null};
_.P.onSetTheaterModeEnabled=function(M,z){this.isTheaterModeSession=z.enabled;this.setTheaterModeStyles(z.enabled)};
_.P.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.P.onDarkModeToggledAction=function(){var M=_.Ib(window.location.href);if(!_.xmo(M)){(M=!!_.fh(window.location.href).themeRefresh)&&_.yA(new _.xN("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!M){jTd();M={themeRefresh:1};var z=_.JF().resolve(_.M6);if(z.isOnWatch()){var J,R;z=((J=z.getPlayerFromWatch())==null?void 0:(R=J.getPlayer())==null?void 0:R.getCurrentTime())||0;z>=1&&(M.time_continue=Math.floor(z))}_.vJ()||_.gB()!=="USER_INTERFACE_THEME_DARK"||(M.theme="dark");_.EA(_.Lh(window.location.href,
M))}_.U("web_appshell_refresh_trigger")&&_.R3.caches&&this.refreshAppShellResponse();J=_.aT(window.location.href);_.vH(_.JF().resolve(_.GW),_.Ms(J,"theme"))}};
_.P.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.P.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.P.onPlayerFullscreen=function(M){_.zV();this.playerFullscreen=M};
_.P.setRestrictedMode=function(M){var z=_.vv();_.GV(0,58,M);z.save();_.JF().resolve(_.g_).reload()};
_.P.onPageChanged=function(M){M.detail.newPageType==="ytd-watch-flexy"||M.detail.newPageType==="ytd-watch-fixie"||M.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.na("WEB_PAGE_TYPE_WATCH")):M.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.na("WEB_PAGE_TYPE_SHORTS")):M.detail.newPageType==="ytd-browse"&&M.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.na("WEB_PAGE_TYPE_MINI_APP")):_.U("web_frosted_glass")&&M.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.na("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.na("WEB_PAGE_TYPE_UNKNOWN"));M.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.P.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.P.onGuideToggleTap=function(){_.Pv(this.hostElement,"yt-guide-toggle")};
_.P.onGuideToggleHover=function(){_.Pv(this.hostElement,"yt-guide-hover")};
_.P.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setMastheadTheme=function(){var M=_.ZE(this.hostElement).querySelector("#masthead");M&&(M.dark=M.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),M.isDarkThemeForced=!1)};
_.P.onRequestPanelModeChange=function(M,z){this.hideHeaderShadow=z.mode!=="seamed"};
_.P.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.P.onDrawerIronSelect=function(M){_.b7(M).id==="guide"&&this.processDrawerIronSelect()};
_.P.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var M="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(M="opened"));_.Pv(this.hostElement,"yt-autonav-pause-guide-"+M)};
_.P.onAddElementToApp=function(M){_.SN(this.hostElement).appendChild(M.detail)};
_.P.onThrottledScroll=function(){var M=_.JF().resolve(_.M6).getCurrentPage();M&&(this.scrollAtTop=M.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.P.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.P.setFullscreen=function(){if(_.U("external_fullscreen")||!this.isWatchPage){var M=_.U("kevlar_fullerscreen_root_only_killswitch")?!!_.zV():!!_.zV()&&_.zV()===document.documentElement;M=(this.isWatchPage||_.U("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(M||this.isFullWindowSession);this.fullscreen!==M&&((this.fullscreen=M)&&_.ZL(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.rA().dispatch(_.r3u(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.S9(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.P.setFullscreenLoggingForShorts=function(M){var z,J,R;return _.k(function(D){if(D.nextAddress==1)return D.yield((z=_.J_())==null?void 0:z.getPlayerPromise(),2);J=D.yieldResult;(R=J)==null||R.setAppFullscreen(M);_.UI(D)})};
_.P.updateMastheadCssHeight=function(){var M=this.mastheadHeight;this.fullscreen&&(M=0);_.Tp(this.hostElement,{"--ytd-masthead-height":M+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.P.updateNetworkStatusBannerDisplayStatus=function(){var M="unset";this.fullscreen&&(M="none");_.Tp(this.hostElement,{"--ytd-network-status-banner-display":M})};
_.P.updateNetworkStatusBannerCssHeight=function(){var M="unset";this.fullscreen&&(M="0px");_.Tp(this.hostElement,{"--ytd-network-status-banner-max-height":M})};
_.P.updateScrollAndMasthead=function(M,z,J,R){this.iMaxTheaterMode||(R=!1);var D=_.JF().resolve(_.M6).getCurrentPage();M||z||R?(document.body.classList.add("no-scroll"),D.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ou(this,this.onScroll)),D.setScrollTop(0),_.Tp(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.ig()+"px"})):J?_.Pv(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Pv(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
D.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ou(this,this.onScroll)));this.mastheadHidden=M||z||J;this.updateMastheadCssHeight();_.U("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.P.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.P.onYtNavigateAction=function(M){M=this.get("navigateAction.endpoint",M);_.Pv(this.hostElement,"yt-navigate",{endpoint:M})};
_.P.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var M=document.createElement("yt-create-family-dialog");_.SN(this.hostElement).appendChild(M);this.hasCreateFamilyDialog=!0}};
_.P.onSetPushNotificationsEnabledCommand=function(M){var z=this,J=_.G(M,dnd);J&&typeof J.enabled==="boolean"&&(Notification.permission!=="granted"?z45().then(function(){Notification.permission==="granted"?($Iw(!J.enabled).then(W4m),J.successAction&&_.kQ(z.hostElement,[J.successAction])):J.failureAction&&_.kQ(z.hostElement,[J.failureAction])}):($Iw(!J.enabled).then(W4m),J.successAction&&_.kQ(this.hostElement,[J.successAction])))};
_.P.onYtSignalActionEnableChromeNotifications=function(){Jdc(!0)};
_.P.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.G(this.topbarData.hotkeyDialog,qEw)}}})};
_.P.onYtSignalActionShowKeyboardShortcutDialog=function(){_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.P.onYtEndpointChangeHandler=function(M,z){var J=_.Jx(_.m_);J.pendingPrefetchJob_&&(z=!(!z||z.autonav!="1"),J.pendingPrefetchJob_.resolve(M&&_.IXc(M)?_.oko(M,z):""),J.pendingPrefetchJob_=null);_.S9(this.hostElement,"yt-pause-active-page-context");_.S9(this.hostElement,"ytd-log-youthere-nav");_.S9(this.hostElement,"yt-prepare-page-dispose")};
_.P.handleCommandWithCommandHandler=function(M,z){_.l5.instance.resolveCommand(M,{form:{element:z}})};
_.P.onYtTimedCommand=function(M){var z=this;M=_.G(M,paw);var J=M.command;J&&_.xC(_.no,function(){var R=_.G(J,_.HMv);R?(_.l5.instance.resolveCommand(J),z.maybeLogGetAnswerRequestTick(R)):_.Bv(z.hostElement,[J],z.hostElement)},M.timeoutMs||0)};
_.P.maybeLogGetAnswerRequestTick=function(M){M&&M.isFirstRequest&&(_.nY("search_overview_answer"),_.hd("so_rq",void 0,"search_overview_answer"))};
_.P.onYtSignalActionSkipNavigation=function(){var M=_.JF().resolve(_.M6).getCurrentPage();_.Ao(M)};
_.P.onYtSignalActionCopyDebugData=function(){Qnl()};
_.P.handleEntityUpdateCommand=function(M){_.Uh(_.G(M,_.hht).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.P.logFlowLoggingEventCommand=function(M){if(M=_.G(M,_.R38))if(M.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var z=M.flowEventNamespace,J=M.flowEventType,R=M.flowType;R&&z&&J&&_.PA0(_.oz(z,J,M.flowEventMetadata),R)}else{z=_.ee();J=M.flowEventNamespace;R=M.flowEventType;var D=M.flowType;D&&J&&R&&_.l7(z,_.oz(J,R,M.flowEventMetadata),D,M.flowNonce)}};
_.P.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.P.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.P.onTouchStart=function(){var M=_.nZ();_.y5()&&_.al(M.JSC$13152_screenManager,{visualElement:M.ve})};
_.P.handleSelectLanguageCommand=function(M){if(M=_.G(M,yEG).hl){var z=_.vv();z.set("hl",M);z.save();_.JF().resolve(_.g_).reload()}};
_.P.handleConfirmDialogEndpoint=function(M){(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M)};
_.P.handleOpenPopupNavigationEndpoints=function(M,z){_.U("web_button_rework")&&(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M,z)};
_.P.handleSaveCommandToSessionStorage=function(M){if(M=_.G(M,_.vig)){var z=M.key;z&&M.command&&window.sessionStorage.setItem(z,JSON.stringify(M.command))}};
_.P.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(M){M&&M.active&&M.active.postMessage({type:"refresh_shell"})}).catch(function(M){M.name!=="SecurityError"&&_.nc(M)})};
_.P.onDeviceThemeChanged=function(){var M=_.mQ();_.GV(_.vv(),185,M);_.vv().save()};
_.P.handleYtRegisterPromoCommand=function(M){if(_.G(M,cEl)){var z=_.JF().resolve(_.M6).getCurrentPage()||this.hostElement;LSs().registerPromoCommand(_.G(M,cEl),z)}};
_.P.onYtNavigateHomeAction=function(){if(!_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M,z,J,R,D=(R=(M=this.topbarData)==null?void 0:(z=M.logo)==null?void 0:(J=z.topbarLogoRenderer)==null?void 0:J.endpoint)!=null?R:_.tm;this.ytComponentBehavior.resolveCommand(D)}};
_.P.onYtLocationCollectionCommand=function(M){d7w(_.G(M,iZw))};
_.P.onYtGetLocationCommand=function(M){YVd(_.G(M,AEN),this)};
_.P.updateRenderGuideFromBinding=function(M){this.renderGuide=M.detail.value};
_.P.updateGuidePersistentAndVisibleFromBinding=function(M){this.guidePersistentAndVisible=M.detail.value};
_.P.updateMiniGuideVisibleFromBinding=function(M){this.miniGuideVisible=M.detail.value};
_.P.onThemeSelected=function(M,z){var J=_.vv(),R=M||z?M:_.mQ(),D=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.xmo(_.Ib(window.location.href));_.GV(0,165,M);_.GV(0,174,z);J.save();D&&_.S9(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.S9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.getCurrentTheme=function(){return _.sA()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.gB()};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.P.handleShowConsentPrimitive=function(M){var z=this,J,R;return _.k(function(D){if(D.nextAddress==1){try{J=(R=_.J_())==null?void 0:R.getPlayerPromise()}catch(N){}return D.yield(J_G(M,J),2)}_.S9(z.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.UI(D)})};
_.P.handleSelectActiveIdentityEndpointInternal=function(M){_.az();M=_.G(M,_.CUp);if(M!=null&&M.supportedTokens){M=_.S(M.supportedTokens);for(var z=M.next();!z.done;z=M.next())z=z.value,z.accountSigninToken&&_.EA(z.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.P.handleUpdatePermissionRoleCommand=function(M){if(M=_.G(M,_.rTV)){var z;this.hasDelegation=!((z=_.G(M.renderer,_.bHS))==null||!z.status)}};
_.P.registerWithViewTransitionManager=function(){var M=_.JF().resolve(_.zw(_.xm));if(M){var z,J=(z=this.guide)==null?void 0:z.querySelector("#scrim"),R;z=(R=this.guide)==null?void 0:R.querySelector("#contentContainer");J&&z&&M.isAnyTransitionEnabled&&(R={},M.viewTransitionCoordinator.registerElement(J,(R.slide="app-drawer-scrim-page-transition",R["lockup-to-watch"]="app-drawer-scrim-page-transition",R["learning-journey"]="app-drawer-scrim-page-transition",R)),J={},M.viewTransitionCoordinator.registerElement(z,
(J.slide="app-drawer-container-page-transition",J["lockup-to-watch"]="app-drawer-container-page-transition",J["learning-journey"]="app-drawer-container-page-transition",J)))}};
_.rX.Object.defineProperties(VM.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.U("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.rX.Object.defineProperties(VM,{template:{configurable:!0,enumerable:!0,get:function(){if(Lfw===void 0){var M=document.createElement("template");_.t(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
M.content.insertBefore(_.a().content.cloneNode(!0),M.content.firstChild);Lfw=M}M=Lfw;return M}}});
VM.prototype.onOpenHotkeyDialog=VM.prototype.onOpenHotkeyDialog;VM.prototype.setFullscreen=VM.prototype.setFullscreen;VM.prototype.onAddElementToApp=VM.prototype.onAddElementToApp;VM.prototype.onDrawerIronSelect=VM.prototype.onDrawerIronSelect;VM.prototype.onGuideOpenButtonHover=VM.prototype.onGuideOpenButtonHover;VM.prototype.onRequestPanelModeChange=VM.prototype.onRequestPanelModeChange;VM.prototype.onPageDataUpdated=VM.prototype.onPageDataUpdated;VM.prototype.onPageChanged=VM.prototype.onPageChanged;
VM.prototype.onSetTheaterModeEnabled=VM.prototype.onSetTheaterModeEnabled;VM.prototype.updateMastheadData=VM.prototype.updateMastheadData;VM.prototype.onYtPageManagerAttached=VM.prototype.onYtPageManagerAttached;VM.prototype.observeGuideVisibility=VM.prototype.observeGuideVisibility;VM.prototype.guideIsVisibleButNotPersistentSelectorChanged=VM.prototype.guideIsVisibleButNotPersistentSelectorChanged;VM.prototype.isInlinePreviewEnabledChanged=VM.prototype.isInlinePreviewEnabledChanged;
VM.prototype.isWatchPageChanged=VM.prototype.isWatchPageChanged;VM.prototype.dispatchFrostedGlassMode=VM.prototype.dispatchFrostedGlassMode;_.u([_.p(_.Wg),_.W("design:type",Object)],VM.prototype,"ytdReduxBehavior",void 0);_.u([_.p(_.Yh.YtEventForwardingBehavior),_.W("design:type",Object)],VM.prototype,"ytEventForwardingBehavior",void 0);_.u([_.p(_.UQ.YtOpenPopupBehavior),_.W("design:type",Object)],VM.prototype,"ytOpenPopupBehavior",void 0);
_.u([_.p(_.wx.YtActionHandlerBehavior),_.W("design:type",Object)],VM.prototype,"ytActionHandlerBehavior",void 0);_.u([_.p({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.VA.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.U("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(M){this.actionRouter_.handleAction(M.detail)}}),
_.W("design:type",Object)],VM.prototype,"ytActionRouterBehavior",void 0);_.u([_.p(zll.YtdAppBehavior),_.W("design:type",Object)],VM.prototype,"ytdAppBehavior",void 0);_.u([_.p(_.Gn.YtEndpointBehavior),_.W("design:type",Object)],VM.prototype,"ytEndpointBehavior",void 0);_.u([_.p(rDt.YtEndpointHandlerWithYpcBehavior),_.W("design:type",Object)],VM.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.u([_.p(ADv.YtLogYpcFlowCommandsBehavior),_.W("design:type",Object)],VM.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.u([_.p(_.f.YtRendererBehavior),_.W("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.u([_.p(_.LZ.YtComponentBehavior),_.W("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);_.u([_.Y({selector:_.Oqw}),_.W("design:type",Object)],VM.prototype,"tabGesturesIsActive",void 0);_.u([_.Y(),_.W("design:type",Boolean)],VM.prototype,"renderGuide",void 0);
_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"guidePersistentAndVisible",void 0);_.u([_.Y({selector:_.BfG}),_.W("design:type",Boolean)],VM.prototype,"guideIsVisibleButNotPersistent",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"standalone",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"miniGuideVisible",void 0);
_.u([_.Y({selector:_.L9G}),_.W("design:type",Number)],VM.prototype,"miniplayerPlaybackState",void 0);_.u([_.Y({selector:_.HA,reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"miniplayerIsActive",void 0);_.u([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],VM.prototype,"isInlinePreviewEnabled",void 0);_.u([_.Y(),_.W("design:type",Boolean)],VM.prototype,"isInlinePreviewDisabled",void 0);
_.u([_.Y({reflectToAttribute:!0,value:function(){return _.cW("START_IN_FULL_WINDOW_MODE")}}),
_.W("design:type",Boolean)],VM.prototype,"mastheadHidden",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"playerFullscreen",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VM.prototype,"deprecateFullerscreenUi",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"fullscreen",void 0);_.u([_.Y({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"hideHeaderShadow",void 0);
_.u([_.Y({value:{GUIDE_ALT_LABEL:_.e9("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.W("design:type",Object)],VM.prototype,"menuStrings",void 0);_.u([_.Y({computed:"computeTopbarData(data)"}),_.W("design:type",Object)],VM.prototype,"topbarData",void 0);_.u([_.Y({selector:_.aup}),_.W("design:type",Boolean)],VM.prototype,"isWatchPage",void 0);_.u([_.Y({selector:_.Vx8,reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"isShortsPage",void 0);_.u([_.Y({selector:function(M){return _.cA(M)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.W("design:type",Boolean)],VM.prototype,"isMiniAppPage",void 0);_.u([_.Y({selector:function(M){return _.cA(M)==="WEB_PAGE_TYPE_BROWSE"}}),
_.W("design:type",Boolean)],VM.prototype,"isBrowsePage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"scrolling",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VM.prototype,"hasDelegation",void 0);_.u([_.Y({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],VM.prototype,"guideScrolledByTouch",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VM.prototype,"darkerDarkTheme",void 0);
_.u([_.Y(),_.W("design:type",Object)],VM.prototype,"isFrostedGlassInitialized",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VM.prototype,"frostedGlassExp",void 0);_.u([_.Y({selector:function(M){return M.ui.chipBarIsSticky}}),
_.W("design:type",Boolean)],VM.prototype,"chipBarIsSticky",void 0);_.u([_.Y({computed:"computeIsHomePage(isBrowsePage, data)"}),_.W("design:type",Boolean)],VM.prototype,"isHomePage",void 0);_.u([_.Y({reflectToAttribute:!0}),_.W("design:type",Object)],VM.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.u([_.Y(),_.W("design:type",Object)],VM.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.u([_.XD("guide"),_.W("design:type",Object)],VM.prototype,"guide",void 0);
_.u([_.XD("guide-service"),_.W("design:type",qL5)],VM.prototype,"guideService",void 0);_.u([_.XD("guide-inner-content"),_.W("design:type",HTMLDivElement)],VM.prototype,"guideInnerContent",void 0);_.u([_.Y({selector:_.Amp}),_.W("design:type",String)],VM.prototype,"frostedGlassMode",void 0);
_.u([_.la("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"dispatchFrostedGlassMode",null);_.u([_.Y({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.W("design:type",Object)],VM.prototype,"isFrostedGlassDisabled",void 0);
_.u([_.la("isWatchPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"isWatchPageChanged",null);_.u([_.F("isHomePage","chipBarIsSticky"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VM.prototype,"applyFrostedGlassToChipBar",null);_.u([_.Y(),_.W("design:type",Object)],VM.prototype,"isChannelOrPlaylistPage",void 0);
_.u([_.wH("isInlinePreviewEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"isInlinePreviewEnabledChanged",null);_.u([_.la("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.u([_.la("guidePersistentAndVisible","miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"observeGuideVisibility",null);_.u([_.Xw("attached"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],VM.prototype,"onYtPageManagerAttached",null);_.u([_.la("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],VM.prototype,"updateMastheadData",null);
_.u([_.Xw("yt-set-theater-mode-enabled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],VM.prototype,"onSetTheaterModeEnabled",null);_.u([_.Xw("yt-page-type-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],VM.prototype,"onPageChanged",null);_.u([_.Xw("yt-page-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"onPageDataUpdated",null);
_.u([_.Xw("yt-request-panel-mode-change"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],VM.prototype,"onRequestPanelModeChange",null);_.u([_.Xw("yt-guide-hover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"onGuideOpenButtonHover",null);_.u([_.Xw("app-drawer-transitioned"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],VM.prototype,"onDrawerIronSelect",null);
_.u([_.Xw("yt-add-element-to-app"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],VM.prototype,"onAddElementToApp",null);_.u([_.Xw("yt-set-fullerscreen-styles"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"setFullscreen",null);_.u([_.Xw("yt-open-hotkey-dialog"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"onOpenHotkeyDialog",null);
_.u([_.c({is:"ytd-app"})],VM);_.Eb().processSignal("eor");
_.gS();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
